* doc/lispref/intro.texi (Evaluation Notation, A Sample Function Description)
[emacs.git] / autogen / configure
blob47c21af749d786668e4899cbffd4c13b53e8c9e9
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_func_list=
595 gl_getopt_required=POSIX
596 ac_header_list=
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 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 X_TOOLKIT_TYPE
633 GNUSTEP_CFLAGS
634 C_SWITCH_X_SITE
635 LD_SWITCH_X_SITE
636 gameuser
637 gamedir
638 bitmapdir
639 archlibdir
640 etcdir
641 x_default_search_path
642 lisppath
643 locallisppath
644 standardlisppath
645 leimdir
646 lispdir
647 srcdir
648 canonical
649 configuration
650 version
651 KRB4LIB
652 DESLIB
653 KRB5LIB
654 CRYPTOLIB
655 COM_ERRLIB
656 LIBRESOLV
657 LIBHESIOD
658 TERMCAP_OBJ
659 LIBS_TERMCAP
660 BLESSMAIL_TARGET
661 LIBS_MAIL
662 liblockfile
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 FREETYPE_LIBS
677 FREETYPE_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 SETTINGS_LIBS
688 SETTINGS_CFLAGS
689 GCONF_LIBS
690 GCONF_CFLAGS
691 GSETTINGS_LIBS
692 GSETTINGS_CFLAGS
693 DBUS_OBJ
694 DBUS_LIBS
695 DBUS_CFLAGS
696 GTK_OBJ
697 GTK_LIBS
698 GTK_CFLAGS
699 IMAGEMAGICK_LIBS
700 IMAGEMAGICK_CFLAGS
701 RSVG_LIBS
702 RSVG_CFLAGS
703 LIB_PTHREAD
704 VMLIMIT_OBJ
705 GMALLOC_OBJ
706 HAVE_XSERVER
707 LIB_STANDARD
708 NS_OBJC_OBJ
709 NS_OBJ
710 ns_self_contained
711 INSTALL_ARCH_INDEP_EXTRA
712 TEMACS_LDFLAGS2
713 LD_SWITCH_X_SITE_RPATH
714 XMKMF
715 DEPFLAGS
716 MKDEPDIR
717 CFLAGS_SOUND
718 ALSA_LIBS
719 ALSA_CFLAGS
720 LIBSOUND
721 PKG_CONFIG
722 LIBGNU_LTLIBDEPS
723 LIBGNU_LIBDEPS
724 gltests_WITNESS
725 gl_GNULIB_ENABLED_verify_FALSE
726 gl_GNULIB_ENABLED_verify_TRUE
727 gl_GNULIB_ENABLED_strtoull_FALSE
728 gl_GNULIB_ENABLED_strtoull_TRUE
729 gl_GNULIB_ENABLED_strtoll_FALSE
730 gl_GNULIB_ENABLED_strtoll_TRUE
731 gl_GNULIB_ENABLED_stat_FALSE
732 gl_GNULIB_ENABLED_stat_TRUE
733 gl_GNULIB_ENABLED_pathmax_FALSE
734 gl_GNULIB_ENABLED_pathmax_TRUE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
736 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
737 gl_GNULIB_ENABLED_dosname_FALSE
738 gl_GNULIB_ENABLED_dosname_TRUE
739 LTLIBINTL
740 LIBINTL
741 WINDOWS_64_BIT_OFF_T
742 HAVE_UNISTD_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
744 NEXT_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
749 NEXT_TIME_H
750 WINDOWS_64_BIT_ST_SIZE
751 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
752 NEXT_SYS_STAT_H
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
754 NEXT_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
756 NEXT_STDIO_H
757 REPLACE_VSPRINTF
758 REPLACE_VSNPRINTF
759 REPLACE_VPRINTF
760 REPLACE_VFPRINTF
761 REPLACE_VDPRINTF
762 REPLACE_VASPRINTF
763 REPLACE_TMPFILE
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
766 REPLACE_SPRINTF
767 REPLACE_SNPRINTF
768 REPLACE_RENAMEAT
769 REPLACE_RENAME
770 REPLACE_REMOVE
771 REPLACE_PRINTF
772 REPLACE_POPEN
773 REPLACE_PERROR
774 REPLACE_OBSTACK_PRINTF
775 REPLACE_GETLINE
776 REPLACE_GETDELIM
777 REPLACE_FTELLO
778 REPLACE_FTELL
779 REPLACE_FSEEKO
780 REPLACE_FSEEK
781 REPLACE_FREOPEN
782 REPLACE_FPURGE
783 REPLACE_FPRINTF
784 REPLACE_FOPEN
785 REPLACE_FFLUSH
786 REPLACE_FDOPEN
787 REPLACE_FCLOSE
788 REPLACE_DPRINTF
789 HAVE_VDPRINTF
790 HAVE_VASPRINTF
791 HAVE_RENAMEAT
792 HAVE_POPEN
793 HAVE_PCLOSE
794 HAVE_FTELLO
795 HAVE_FSEEKO
796 HAVE_DPRINTF
797 HAVE_DECL_VSNPRINTF
798 HAVE_DECL_SNPRINTF
799 HAVE_DECL_OBSTACK_PRINTF
800 HAVE_DECL_GETLINE
801 HAVE_DECL_GETDELIM
802 HAVE_DECL_FTELLO
803 HAVE_DECL_FSEEKO
804 HAVE_DECL_FPURGE
805 GNULIB_VSPRINTF_POSIX
806 GNULIB_VSNPRINTF
807 GNULIB_VPRINTF_POSIX
808 GNULIB_VPRINTF
809 GNULIB_VFPRINTF_POSIX
810 GNULIB_VFPRINTF
811 GNULIB_VDPRINTF
812 GNULIB_VSCANF
813 GNULIB_VFSCANF
814 GNULIB_VASPRINTF
815 GNULIB_TMPFILE
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
818 GNULIB_SPRINTF_POSIX
819 GNULIB_SNPRINTF
820 GNULIB_SCANF
821 GNULIB_RENAMEAT
822 GNULIB_RENAME
823 GNULIB_REMOVE
824 GNULIB_PUTS
825 GNULIB_PUTCHAR
826 GNULIB_PUTC
827 GNULIB_PRINTF_POSIX
828 GNULIB_PRINTF
829 GNULIB_POPEN
830 GNULIB_PERROR
831 GNULIB_PCLOSE
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
834 GNULIB_GETLINE
835 GNULIB_GETDELIM
836 GNULIB_GETCHAR
837 GNULIB_GETC
838 GNULIB_FWRITE
839 GNULIB_FTELLO
840 GNULIB_FTELL
841 GNULIB_FSEEKO
842 GNULIB_FSEEK
843 GNULIB_FSCANF
844 GNULIB_FREOPEN
845 GNULIB_FREAD
846 GNULIB_FPUTS
847 GNULIB_FPUTC
848 GNULIB_FPURGE
849 GNULIB_FPRINTF_POSIX
850 GNULIB_FPRINTF
851 GNULIB_FOPEN
852 GNULIB_FGETS
853 GNULIB_FGETC
854 GNULIB_FFLUSH
855 GNULIB_FDOPEN
856 GNULIB_FCLOSE
857 GNULIB_DPRINTF
858 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
859 NEXT_STDDEF_H
860 GL_GENERATE_STDDEF_H_FALSE
861 GL_GENERATE_STDDEF_H_TRUE
862 STDDEF_H
863 HAVE_WCHAR_T
864 REPLACE_NULL
865 HAVE__BOOL
866 GL_GENERATE_STDBOOL_H_FALSE
867 GL_GENERATE_STDBOOL_H_TRUE
868 STDBOOL_H
869 GL_GENERATE_STDARG_H_FALSE
870 GL_GENERATE_STDARG_H_TRUE
871 STDARG_H
872 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
873 NEXT_STDARG_H
874 GL_GENERATE_STDALIGN_H_FALSE
875 GL_GENERATE_STDALIGN_H_TRUE
876 STDALIGN_H
877 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
878 NEXT_SIGNAL_H
879 LIB_PTHREAD_SIGMASK
880 REPLACE_RAISE
881 REPLACE_PTHREAD_SIGMASK
882 HAVE_SIGHANDLER_T
883 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
884 HAVE_STRUCT_SIGACTION_SA_SIGACTION
885 HAVE_SIGACTION
886 HAVE_SIGINFO_T
887 HAVE_SIGSET_T
888 HAVE_RAISE
889 HAVE_PTHREAD_SIGMASK
890 HAVE_POSIX_SIGNALBLOCKING
891 GNULIB_SIGACTION
892 GNULIB_SIGPROCMASK
893 GNULIB_SIGNAL_H_SIGPIPE
894 GNULIB_RAISE
895 GNULIB_PTHREAD_SIGMASK
896 HAVE_SYS_SELECT_H
897 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
898 NEXT_SYS_SELECT_H
899 REPLACE_SELECT
900 REPLACE_PSELECT
901 HAVE_PSELECT
902 GNULIB_SELECT
903 GNULIB_PSELECT
904 REPLACE_TIMEGM
905 REPLACE_NANOSLEEP
906 REPLACE_MKTIME
907 REPLACE_LOCALTIME_R
908 HAVE_TIMEGM
909 HAVE_STRPTIME
910 HAVE_NANOSLEEP
911 HAVE_DECL_LOCALTIME_R
912 GNULIB_TIME_R
913 GNULIB_TIMEGM
914 GNULIB_STRPTIME
915 GNULIB_NANOSLEEP
916 GNULIB_MKTIME
917 REPLACE_UTIMENSAT
918 REPLACE_STAT
919 REPLACE_MKNOD
920 REPLACE_MKFIFO
921 REPLACE_MKDIR
922 REPLACE_LSTAT
923 REPLACE_FUTIMENS
924 REPLACE_FSTATAT
925 REPLACE_FSTAT
926 HAVE_UTIMENSAT
927 HAVE_MKNODAT
928 HAVE_MKNOD
929 HAVE_MKFIFOAT
930 HAVE_MKFIFO
931 HAVE_MKDIRAT
932 HAVE_LSTAT
933 HAVE_LCHMOD
934 HAVE_FUTIMENS
935 HAVE_FSTATAT
936 HAVE_FCHMODAT
937 GNULIB_UTIMENSAT
938 GNULIB_STAT
939 GNULIB_MKNODAT
940 GNULIB_MKNOD
941 GNULIB_MKFIFOAT
942 GNULIB_MKFIFO
943 GNULIB_MKDIRAT
944 GNULIB_LSTAT
945 GNULIB_LCHMOD
946 GNULIB_FUTIMENS
947 GNULIB_FSTATAT
948 GNULIB_FSTAT
949 GNULIB_FCHMODAT
950 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
951 NEXT_INTTYPES_H
952 UINT64_MAX_EQ_ULONG_MAX
953 UINT32_MAX_LT_UINTMAX_MAX
954 PRIPTR_PREFIX
955 PRI_MACROS_BROKEN
956 INT64_MAX_EQ_LONG_MAX
957 INT32_MAX_LT_INTMAX_MAX
958 REPLACE_STRTOIMAX
959 HAVE_DECL_STRTOUMAX
960 HAVE_DECL_STRTOIMAX
961 HAVE_DECL_IMAXDIV
962 HAVE_DECL_IMAXABS
963 GNULIB_STRTOUMAX
964 GNULIB_STRTOIMAX
965 GNULIB_IMAXDIV
966 GNULIB_IMAXABS
967 GL_GENERATE_STDINT_H_FALSE
968 GL_GENERATE_STDINT_H_TRUE
969 STDINT_H
970 WINT_T_SUFFIX
971 WCHAR_T_SUFFIX
972 SIG_ATOMIC_T_SUFFIX
973 SIZE_T_SUFFIX
974 PTRDIFF_T_SUFFIX
975 HAVE_SIGNED_WINT_T
976 HAVE_SIGNED_WCHAR_T
977 HAVE_SIGNED_SIG_ATOMIC_T
978 BITSIZEOF_WINT_T
979 BITSIZEOF_WCHAR_T
980 BITSIZEOF_SIG_ATOMIC_T
981 BITSIZEOF_SIZE_T
982 BITSIZEOF_PTRDIFF_T
983 APPLE_UNIVERSAL_BUILD
984 HAVE_SYS_BITYPES_H
985 HAVE_SYS_INTTYPES_H
986 HAVE_STDINT_H
987 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
988 NEXT_STDINT_H
989 HAVE_SYS_TYPES_H
990 HAVE_INTTYPES_H
991 HAVE_WCHAR_H
992 HAVE_UNSIGNED_LONG_LONG_INT
993 HAVE_LONG_LONG_INT
994 HAVE_WINSOCK2_H
995 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
996 NEXT_SYS_TIME_H
997 REPLACE_STRUCT_TIMEVAL
998 REPLACE_GETTIMEOFDAY
999 HAVE_SYS_TIME_H
1000 HAVE_STRUCT_TIMEVAL
1001 HAVE_GETTIMEOFDAY
1002 GNULIB_GETTIMEOFDAY
1003 GNULIB_GL_UNISTD_H_GETOPT
1004 GETOPT_H
1005 HAVE_GETOPT_H
1006 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1007 NEXT_GETOPT_H
1008 PRAGMA_COLUMNS
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1011 INCLUDE_NEXT
1012 GETLOADAVG_LIBS
1013 REPLACE_WCTOMB
1014 REPLACE_UNSETENV
1015 REPLACE_STRTOD
1016 REPLACE_SETENV
1017 REPLACE_REALPATH
1018 REPLACE_REALLOC
1019 REPLACE_RANDOM_R
1020 REPLACE_PUTENV
1021 REPLACE_PTSNAME_R
1022 REPLACE_MKSTEMP
1023 REPLACE_MBTOWC
1024 REPLACE_MALLOC
1025 REPLACE_CANONICALIZE_FILE_NAME
1026 REPLACE_CALLOC
1027 HAVE_DECL_UNSETENV
1028 HAVE_UNLOCKPT
1029 HAVE_SYS_LOADAVG_H
1030 HAVE_STRUCT_RANDOM_DATA
1031 HAVE_STRTOULL
1032 HAVE_STRTOLL
1033 HAVE_STRTOD
1034 HAVE_DECL_SETENV
1035 HAVE_SETENV
1036 HAVE_RPMATCH
1037 HAVE_REALPATH
1038 HAVE_RANDOM_R
1039 HAVE_RANDOM_H
1040 HAVE_RANDOM
1041 HAVE_PTSNAME_R
1042 HAVE_PTSNAME
1043 HAVE_POSIX_OPENPT
1044 HAVE_MKSTEMPS
1045 HAVE_MKSTEMP
1046 HAVE_MKOSTEMPS
1047 HAVE_MKOSTEMP
1048 HAVE_MKDTEMP
1049 HAVE_GRANTPT
1050 HAVE_GETSUBOPT
1051 HAVE_DECL_GETLOADAVG
1052 HAVE_CANONICALIZE_FILE_NAME
1053 HAVE_ATOLL
1054 HAVE__EXIT
1055 GNULIB_WCTOMB
1056 GNULIB_UNSETENV
1057 GNULIB_UNLOCKPT
1058 GNULIB_SYSTEM_POSIX
1059 GNULIB_STRTOULL
1060 GNULIB_STRTOLL
1061 GNULIB_STRTOD
1062 GNULIB_SETENV
1063 GNULIB_RPMATCH
1064 GNULIB_REALPATH
1065 GNULIB_REALLOC_POSIX
1066 GNULIB_RANDOM_R
1067 GNULIB_RANDOM
1068 GNULIB_PUTENV
1069 GNULIB_PTSNAME_R
1070 GNULIB_PTSNAME
1071 GNULIB_POSIX_OPENPT
1072 GNULIB_MKSTEMPS
1073 GNULIB_MKSTEMP
1074 GNULIB_MKOSTEMPS
1075 GNULIB_MKOSTEMP
1076 GNULIB_MKDTEMP
1077 GNULIB_MBTOWC
1078 GNULIB_MALLOC_POSIX
1079 GNULIB_GRANTPT
1080 GNULIB_GETSUBOPT
1081 GNULIB_GETLOADAVG
1082 GNULIB_CANONICALIZE_FILE_NAME
1083 GNULIB_CALLOC_POSIX
1084 GNULIB_ATOLL
1085 GNULIB__EXIT
1086 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1087 UNISTD_H_HAVE_WINSOCK2_H
1088 REPLACE_WRITE
1089 REPLACE_USLEEP
1090 REPLACE_UNLINKAT
1091 REPLACE_UNLINK
1092 REPLACE_TTYNAME_R
1093 REPLACE_SYMLINK
1094 REPLACE_SLEEP
1095 REPLACE_RMDIR
1096 REPLACE_READLINK
1097 REPLACE_READ
1098 REPLACE_PWRITE
1099 REPLACE_PREAD
1100 REPLACE_LSEEK
1101 REPLACE_LINKAT
1102 REPLACE_LINK
1103 REPLACE_LCHOWN
1104 REPLACE_ISATTY
1105 REPLACE_GETPAGESIZE
1106 REPLACE_GETGROUPS
1107 REPLACE_GETLOGIN_R
1108 REPLACE_GETDOMAINNAME
1109 REPLACE_GETCWD
1110 REPLACE_FTRUNCATE
1111 REPLACE_FCHOWNAT
1112 REPLACE_DUP2
1113 REPLACE_DUP
1114 REPLACE_CLOSE
1115 REPLACE_CHOWN
1116 HAVE_SYS_PARAM_H
1117 HAVE_OS_H
1118 HAVE_DECL_TTYNAME_R
1119 HAVE_DECL_SETHOSTNAME
1120 HAVE_DECL_GETUSERSHELL
1121 HAVE_DECL_GETPAGESIZE
1122 HAVE_DECL_GETLOGIN_R
1123 HAVE_DECL_GETDOMAINNAME
1124 HAVE_DECL_FDATASYNC
1125 HAVE_DECL_FCHDIR
1126 HAVE_DECL_ENVIRON
1127 HAVE_USLEEP
1128 HAVE_UNLINKAT
1129 HAVE_SYMLINKAT
1130 HAVE_SYMLINK
1131 HAVE_SLEEP
1132 HAVE_SETHOSTNAME
1133 HAVE_READLINKAT
1134 HAVE_READLINK
1135 HAVE_PWRITE
1136 HAVE_PREAD
1137 HAVE_PIPE2
1138 HAVE_PIPE
1139 HAVE_LINKAT
1140 HAVE_LINK
1141 HAVE_LCHOWN
1142 HAVE_GROUP_MEMBER
1143 HAVE_GETPAGESIZE
1144 HAVE_GETLOGIN
1145 HAVE_GETHOSTNAME
1146 HAVE_GETGROUPS
1147 HAVE_GETDTABLESIZE
1148 HAVE_FTRUNCATE
1149 HAVE_FSYNC
1150 HAVE_FDATASYNC
1151 HAVE_FCHOWNAT
1152 HAVE_FCHDIR
1153 HAVE_FACCESSAT
1154 HAVE_EUIDACCESS
1155 HAVE_DUP3
1156 HAVE_DUP2
1157 HAVE_CHOWN
1158 GNULIB_WRITE
1159 GNULIB_USLEEP
1160 GNULIB_UNLINKAT
1161 GNULIB_UNLINK
1162 GNULIB_UNISTD_H_SIGPIPE
1163 GNULIB_UNISTD_H_NONBLOCKING
1164 GNULIB_TTYNAME_R
1165 GNULIB_SYMLINKAT
1166 GNULIB_SYMLINK
1167 GNULIB_SLEEP
1168 GNULIB_SETHOSTNAME
1169 GNULIB_RMDIR
1170 GNULIB_READLINKAT
1171 GNULIB_READLINK
1172 GNULIB_READ
1173 GNULIB_PWRITE
1174 GNULIB_PREAD
1175 GNULIB_PIPE2
1176 GNULIB_PIPE
1177 GNULIB_LSEEK
1178 GNULIB_LINKAT
1179 GNULIB_LINK
1180 GNULIB_LCHOWN
1181 GNULIB_ISATTY
1182 GNULIB_GROUP_MEMBER
1183 GNULIB_GETUSERSHELL
1184 GNULIB_GETPAGESIZE
1185 GNULIB_GETLOGIN_R
1186 GNULIB_GETLOGIN
1187 GNULIB_GETHOSTNAME
1188 GNULIB_GETGROUPS
1189 GNULIB_GETDTABLESIZE
1190 GNULIB_GETDOMAINNAME
1191 GNULIB_GETCWD
1192 GNULIB_FTRUNCATE
1193 GNULIB_FSYNC
1194 GNULIB_FDATASYNC
1195 GNULIB_FCHOWNAT
1196 GNULIB_FCHDIR
1197 GNULIB_FACCESSAT
1198 GNULIB_EUIDACCESS
1199 GNULIB_ENVIRON
1200 GNULIB_DUP3
1201 GNULIB_DUP2
1202 GNULIB_DUP
1203 GNULIB_CLOSE
1204 GNULIB_CHOWN
1205 GNULIB_CHDIR
1206 LIB_CLOCK_GETTIME
1207 GL_GENERATE_ALLOCA_H_FALSE
1208 GL_GENERATE_ALLOCA_H_TRUE
1209 ALLOCA_H
1210 ALLOCA
1211 GL_COND_LIBTOOL_FALSE
1212 GL_COND_LIBTOOL_TRUE
1213 CRT_DIR
1214 START_FILES
1215 LIB_MATH
1216 LIBS_SYSTEM
1217 C_SWITCH_SYSTEM
1218 UNEXEC_OBJ
1219 C_SWITCH_MACHINE
1220 LD_SWITCH_SYSTEM
1221 CANNOT_DUMP
1222 INFO_OPTS
1223 INFO_EXT
1224 HAVE_MAKEINFO
1225 PAXCTL
1226 GZIP_PROG
1227 INSTALL_INFO
1228 GNULIB_WARN_CFLAGS
1229 WARN_CFLAGS
1230 WERROR_CFLAGS
1231 RANLIB
1232 ARFLAGS
1234 EGREP
1235 GREP
1237 am__fastdepCC_FALSE
1238 am__fastdepCC_TRUE
1239 CCDEPMODE
1240 AMDEPBACKSLASH
1241 AMDEP_FALSE
1242 AMDEP_TRUE
1243 am__quote
1244 am__include
1245 DEPDIR
1246 OBJEXT
1247 EXEEXT
1248 ac_ct_CC
1249 CPPFLAGS
1250 LDFLAGS
1251 CFLAGS
1253 host_os
1254 host_vendor
1255 host_cpu
1256 host
1257 build_os
1258 build_vendor
1259 build_cpu
1260 build
1261 PROFILING_CFLAGS
1262 GZIP_INFO
1263 cache_file
1264 am__untar
1265 am__tar
1266 AMTAR
1267 am__leading_dot
1268 SET_MAKE
1270 mkdir_p
1271 MKDIR_P
1272 INSTALL_STRIP_PROGRAM
1273 STRIP
1274 install_sh
1275 MAKEINFO
1276 AUTOHEADER
1277 AUTOMAKE
1278 AUTOCONF
1279 ACLOCAL
1280 VERSION
1281 PACKAGE
1282 CYGPATH_W
1283 am__isrc
1284 INSTALL_DATA
1285 INSTALL_SCRIPT
1286 INSTALL_PROGRAM
1287 target_alias
1288 host_alias
1289 build_alias
1290 LIBS
1291 ECHO_T
1292 ECHO_N
1293 ECHO_C
1294 DEFS
1295 mandir
1296 localedir
1297 libdir
1298 psdir
1299 pdfdir
1300 dvidir
1301 htmldir
1302 infodir
1303 docdir
1304 oldincludedir
1305 includedir
1306 localstatedir
1307 sharedstatedir
1308 sysconfdir
1309 datadir
1310 datarootdir
1311 libexecdir
1312 sbindir
1313 bindir
1314 program_transform_name
1315 prefix
1316 exec_prefix
1317 PACKAGE_URL
1318 PACKAGE_BUGREPORT
1319 PACKAGE_STRING
1320 PACKAGE_VERSION
1321 PACKAGE_TARNAME
1322 PACKAGE_NAME
1323 PATH_SEPARATOR
1324 SHELL'
1325 ac_subst_files='deps_frag
1326 lisp_frag
1327 ns_frag'
1328 ac_user_opts='
1329 enable_option_checking
1330 with_pop
1331 with_kerberos
1332 with_kerberos5
1333 with_hesiod
1334 with_mmdf
1335 with_mail_unlink
1336 with_mailhost
1337 with_sound
1338 with_sync_input
1339 with_x_toolkit
1340 with_wide_int
1341 with_xpm
1342 with_jpeg
1343 with_tiff
1344 with_gif
1345 with_png
1346 with_rsvg
1347 with_xml2
1348 with_imagemagick
1349 with_xft
1350 with_libotf
1351 with_m17n_flt
1352 with_toolkit_scroll_bars
1353 with_xaw3d
1354 with_xim
1355 with_ns
1356 with_gpm
1357 with_dbus
1358 with_gconf
1359 with_gsettings
1360 with_selinux
1361 with_gnutls
1362 with_makeinfo
1363 with_compress_info
1364 with_pkg_config_prog
1365 with_crt_dir
1366 with_gameuser
1367 with_gnustep_conf
1368 enable_ns_self_contained
1369 enable_locallisppath
1370 enable_checking
1371 enable_check_lisp_object_type
1372 enable_profiling
1373 enable_autodepend
1374 enable_dependency_tracking
1375 enable_largefile
1376 enable_gcc_warnings
1377 enable_link_time_optimization
1378 with_x
1380 ac_precious_vars='build_alias
1381 host_alias
1382 target_alias
1384 CFLAGS
1385 LDFLAGS
1386 LIBS
1387 CPPFLAGS
1389 XMKMF'
1392 # Initialize some variables set by options.
1393 ac_init_help=
1394 ac_init_version=false
1395 ac_unrecognized_opts=
1396 ac_unrecognized_sep=
1397 # The variables have the same names as the options, with
1398 # dashes changed to underlines.
1399 cache_file=/dev/null
1400 exec_prefix=NONE
1401 no_create=
1402 no_recursion=
1403 prefix=NONE
1404 program_prefix=NONE
1405 program_suffix=NONE
1406 program_transform_name=s,x,x,
1407 silent=
1408 site=
1409 srcdir=
1410 verbose=
1411 x_includes=NONE
1412 x_libraries=NONE
1414 # Installation directory options.
1415 # These are left unexpanded so users can "make install exec_prefix=/foo"
1416 # and all the variables that are supposed to be based on exec_prefix
1417 # by default will actually change.
1418 # Use braces instead of parens because sh, perl, etc. also accept them.
1419 # (The list follows the same order as the GNU Coding Standards.)
1420 bindir='${exec_prefix}/bin'
1421 sbindir='${exec_prefix}/sbin'
1422 libexecdir='${exec_prefix}/libexec'
1423 datarootdir='${prefix}/share'
1424 datadir='${datarootdir}'
1425 sysconfdir='${prefix}/etc'
1426 sharedstatedir='${prefix}/com'
1427 localstatedir='${prefix}/var'
1428 includedir='${prefix}/include'
1429 oldincludedir='/usr/include'
1430 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1431 infodir='${datarootdir}/info'
1432 htmldir='${docdir}'
1433 dvidir='${docdir}'
1434 pdfdir='${docdir}'
1435 psdir='${docdir}'
1436 libdir='${exec_prefix}/lib'
1437 localedir='${datarootdir}/locale'
1438 mandir='${datarootdir}/man'
1440 ac_prev=
1441 ac_dashdash=
1442 for ac_option
1444 # If the previous option needs an argument, assign it.
1445 if test -n "$ac_prev"; then
1446 eval $ac_prev=\$ac_option
1447 ac_prev=
1448 continue
1451 case $ac_option in
1452 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1453 *) ac_optarg=yes ;;
1454 esac
1456 # Accept the important Cygnus configure options, so we can diagnose typos.
1458 case $ac_dashdash$ac_option in
1460 ac_dashdash=yes ;;
1462 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1463 ac_prev=bindir ;;
1464 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1465 bindir=$ac_optarg ;;
1467 -build | --build | --buil | --bui | --bu)
1468 ac_prev=build_alias ;;
1469 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1470 build_alias=$ac_optarg ;;
1472 -cache-file | --cache-file | --cache-fil | --cache-fi \
1473 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1474 ac_prev=cache_file ;;
1475 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1476 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1477 cache_file=$ac_optarg ;;
1479 --config-cache | -C)
1480 cache_file=config.cache ;;
1482 -datadir | --datadir | --datadi | --datad)
1483 ac_prev=datadir ;;
1484 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1485 datadir=$ac_optarg ;;
1487 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1488 | --dataroo | --dataro | --datar)
1489 ac_prev=datarootdir ;;
1490 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1491 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1492 datarootdir=$ac_optarg ;;
1494 -disable-* | --disable-*)
1495 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1496 # Reject names that are not valid shell variable names.
1497 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1498 as_fn_error "invalid feature name: $ac_useropt"
1499 ac_useropt_orig=$ac_useropt
1500 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501 case $ac_user_opts in
1503 "enable_$ac_useropt"
1504 "*) ;;
1505 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1506 ac_unrecognized_sep=', ';;
1507 esac
1508 eval enable_$ac_useropt=no ;;
1510 -docdir | --docdir | --docdi | --doc | --do)
1511 ac_prev=docdir ;;
1512 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1513 docdir=$ac_optarg ;;
1515 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1516 ac_prev=dvidir ;;
1517 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1518 dvidir=$ac_optarg ;;
1520 -enable-* | --enable-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1524 as_fn_error "invalid feature name: $ac_useropt"
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1529 "enable_$ac_useropt"
1530 "*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval enable_$ac_useropt=\$ac_optarg ;;
1536 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1537 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1538 | --exec | --exe | --ex)
1539 ac_prev=exec_prefix ;;
1540 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1541 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1542 | --exec=* | --exe=* | --ex=*)
1543 exec_prefix=$ac_optarg ;;
1545 -gas | --gas | --ga | --g)
1546 # Obsolete; use --with-gas.
1547 with_gas=yes ;;
1549 -help | --help | --hel | --he | -h)
1550 ac_init_help=long ;;
1551 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1552 ac_init_help=recursive ;;
1553 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1554 ac_init_help=short ;;
1556 -host | --host | --hos | --ho)
1557 ac_prev=host_alias ;;
1558 -host=* | --host=* | --hos=* | --ho=*)
1559 host_alias=$ac_optarg ;;
1561 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1562 ac_prev=htmldir ;;
1563 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1564 | --ht=*)
1565 htmldir=$ac_optarg ;;
1567 -includedir | --includedir | --includedi | --included | --include \
1568 | --includ | --inclu | --incl | --inc)
1569 ac_prev=includedir ;;
1570 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1571 | --includ=* | --inclu=* | --incl=* | --inc=*)
1572 includedir=$ac_optarg ;;
1574 -infodir | --infodir | --infodi | --infod | --info | --inf)
1575 ac_prev=infodir ;;
1576 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1577 infodir=$ac_optarg ;;
1579 -libdir | --libdir | --libdi | --libd)
1580 ac_prev=libdir ;;
1581 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1582 libdir=$ac_optarg ;;
1584 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1585 | --libexe | --libex | --libe)
1586 ac_prev=libexecdir ;;
1587 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1588 | --libexe=* | --libex=* | --libe=*)
1589 libexecdir=$ac_optarg ;;
1591 -localedir | --localedir | --localedi | --localed | --locale)
1592 ac_prev=localedir ;;
1593 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1594 localedir=$ac_optarg ;;
1596 -localstatedir | --localstatedir | --localstatedi | --localstated \
1597 | --localstate | --localstat | --localsta | --localst | --locals)
1598 ac_prev=localstatedir ;;
1599 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1600 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1601 localstatedir=$ac_optarg ;;
1603 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1604 ac_prev=mandir ;;
1605 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1606 mandir=$ac_optarg ;;
1608 -nfp | --nfp | --nf)
1609 # Obsolete; use --without-fp.
1610 with_fp=no ;;
1612 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1613 | --no-cr | --no-c | -n)
1614 no_create=yes ;;
1616 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1617 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1618 no_recursion=yes ;;
1620 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1621 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1622 | --oldin | --oldi | --old | --ol | --o)
1623 ac_prev=oldincludedir ;;
1624 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1625 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1626 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1627 oldincludedir=$ac_optarg ;;
1629 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1630 ac_prev=prefix ;;
1631 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1632 prefix=$ac_optarg ;;
1634 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1635 | --program-pre | --program-pr | --program-p)
1636 ac_prev=program_prefix ;;
1637 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1638 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1639 program_prefix=$ac_optarg ;;
1641 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1642 | --program-suf | --program-su | --program-s)
1643 ac_prev=program_suffix ;;
1644 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1645 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1646 program_suffix=$ac_optarg ;;
1648 -program-transform-name | --program-transform-name \
1649 | --program-transform-nam | --program-transform-na \
1650 | --program-transform-n | --program-transform- \
1651 | --program-transform | --program-transfor \
1652 | --program-transfo | --program-transf \
1653 | --program-trans | --program-tran \
1654 | --progr-tra | --program-tr | --program-t)
1655 ac_prev=program_transform_name ;;
1656 -program-transform-name=* | --program-transform-name=* \
1657 | --program-transform-nam=* | --program-transform-na=* \
1658 | --program-transform-n=* | --program-transform-=* \
1659 | --program-transform=* | --program-transfor=* \
1660 | --program-transfo=* | --program-transf=* \
1661 | --program-trans=* | --program-tran=* \
1662 | --progr-tra=* | --program-tr=* | --program-t=*)
1663 program_transform_name=$ac_optarg ;;
1665 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1666 ac_prev=pdfdir ;;
1667 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1668 pdfdir=$ac_optarg ;;
1670 -psdir | --psdir | --psdi | --psd | --ps)
1671 ac_prev=psdir ;;
1672 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1673 psdir=$ac_optarg ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1677 silent=yes ;;
1679 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1680 ac_prev=sbindir ;;
1681 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1682 | --sbi=* | --sb=*)
1683 sbindir=$ac_optarg ;;
1685 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1686 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1687 | --sharedst | --shareds | --shared | --share | --shar \
1688 | --sha | --sh)
1689 ac_prev=sharedstatedir ;;
1690 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1691 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1692 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1693 | --sha=* | --sh=*)
1694 sharedstatedir=$ac_optarg ;;
1696 -site | --site | --sit)
1697 ac_prev=site ;;
1698 -site=* | --site=* | --sit=*)
1699 site=$ac_optarg ;;
1701 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1702 ac_prev=srcdir ;;
1703 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1704 srcdir=$ac_optarg ;;
1706 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1707 | --syscon | --sysco | --sysc | --sys | --sy)
1708 ac_prev=sysconfdir ;;
1709 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1710 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1711 sysconfdir=$ac_optarg ;;
1713 -target | --target | --targe | --targ | --tar | --ta | --t)
1714 ac_prev=target_alias ;;
1715 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1716 target_alias=$ac_optarg ;;
1718 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1719 verbose=yes ;;
1721 -version | --version | --versio | --versi | --vers | -V)
1722 ac_init_version=: ;;
1724 -with-* | --with-*)
1725 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1728 as_fn_error "invalid package name: $ac_useropt"
1729 ac_useropt_orig=$ac_useropt
1730 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1733 "with_$ac_useropt"
1734 "*) ;;
1735 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1736 ac_unrecognized_sep=', ';;
1737 esac
1738 eval with_$ac_useropt=\$ac_optarg ;;
1740 -without-* | --without-*)
1741 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1742 # Reject names that are not valid shell variable names.
1743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1744 as_fn_error "invalid package name: $ac_useropt"
1745 ac_useropt_orig=$ac_useropt
1746 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1747 case $ac_user_opts in
1749 "with_$ac_useropt"
1750 "*) ;;
1751 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1752 ac_unrecognized_sep=', ';;
1753 esac
1754 eval with_$ac_useropt=no ;;
1756 --x)
1757 # Obsolete; use --with-x.
1758 with_x=yes ;;
1760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1761 | --x-incl | --x-inc | --x-in | --x-i)
1762 ac_prev=x_includes ;;
1763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1765 x_includes=$ac_optarg ;;
1767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1769 ac_prev=x_libraries ;;
1770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1772 x_libraries=$ac_optarg ;;
1774 -*) as_fn_error "unrecognized option: \`$ac_option'
1775 Try \`$0 --help' for more information."
1778 *=*)
1779 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1780 # Reject names that are not valid shell variable names.
1781 case $ac_envvar in #(
1782 '' | [0-9]* | *[!_$as_cr_alnum]* )
1783 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1784 esac
1785 eval $ac_envvar=\$ac_optarg
1786 export $ac_envvar ;;
1789 # FIXME: should be removed in autoconf 3.0.
1790 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1791 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1792 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1793 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1796 esac
1797 done
1799 if test -n "$ac_prev"; then
1800 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1801 as_fn_error "missing argument to $ac_option"
1804 if test -n "$ac_unrecognized_opts"; then
1805 case $enable_option_checking in
1806 no) ;;
1807 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1808 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1809 esac
1812 # Check all directory arguments for consistency.
1813 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1814 datadir sysconfdir sharedstatedir localstatedir includedir \
1815 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1816 libdir localedir mandir
1818 eval ac_val=\$$ac_var
1819 # Remove trailing slashes.
1820 case $ac_val in
1821 */ )
1822 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1823 eval $ac_var=\$ac_val;;
1824 esac
1825 # Be sure to have absolute directory names.
1826 case $ac_val in
1827 [\\/$]* | ?:[\\/]* ) continue;;
1828 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1829 esac
1830 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1831 done
1833 # There might be people who depend on the old broken behavior: `$host'
1834 # used to hold the argument of --host etc.
1835 # FIXME: To remove some day.
1836 build=$build_alias
1837 host=$host_alias
1838 target=$target_alias
1840 # FIXME: To remove some day.
1841 if test "x$host_alias" != x; then
1842 if test "x$build_alias" = x; then
1843 cross_compiling=maybe
1844 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1845 If a cross compiler is detected then cross compile mode will be used." >&2
1846 elif test "x$build_alias" != "x$host_alias"; then
1847 cross_compiling=yes
1851 ac_tool_prefix=
1852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1854 test "$silent" = yes && exec 6>/dev/null
1857 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1858 ac_ls_di=`ls -di .` &&
1859 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1860 as_fn_error "working directory cannot be determined"
1861 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1862 as_fn_error "pwd does not report name of working directory"
1865 # Find the source files, if location was not specified.
1866 if test -z "$srcdir"; then
1867 ac_srcdir_defaulted=yes
1868 # Try the directory containing this script, then the parent directory.
1869 ac_confdir=`$as_dirname -- "$as_myself" ||
1870 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1871 X"$as_myself" : 'X\(//\)[^/]' \| \
1872 X"$as_myself" : 'X\(//\)$' \| \
1873 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1874 $as_echo X"$as_myself" |
1875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1876 s//\1/
1879 /^X\(\/\/\)[^/].*/{
1880 s//\1/
1883 /^X\(\/\/\)$/{
1884 s//\1/
1887 /^X\(\/\).*/{
1888 s//\1/
1891 s/.*/./; q'`
1892 srcdir=$ac_confdir
1893 if test ! -r "$srcdir/$ac_unique_file"; then
1894 srcdir=..
1896 else
1897 ac_srcdir_defaulted=no
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1900 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1901 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1903 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1904 ac_abs_confdir=`(
1905 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1906 pwd)`
1907 # When building in place, set srcdir=.
1908 if test "$ac_abs_confdir" = "$ac_pwd"; then
1909 srcdir=.
1911 # Remove unnecessary trailing slashes from srcdir.
1912 # Double slashes in file names in object file debugging info
1913 # mess up M-x gdb in Emacs.
1914 case $srcdir in
1915 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1916 esac
1917 for ac_var in $ac_precious_vars; do
1918 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1919 eval ac_env_${ac_var}_value=\$${ac_var}
1920 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1921 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1922 done
1925 # Report the --help message.
1927 if test "$ac_init_help" = "long"; then
1928 # Omit some internal or obsolete options to make the list less imposing.
1929 # This message is too long to be a string in the A/UX 3.1 sh.
1930 cat <<_ACEOF
1931 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1933 Usage: $0 [OPTION]... [VAR=VALUE]...
1935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1936 VAR=VALUE. See below for descriptions of some of the useful variables.
1938 Defaults for the options are specified in brackets.
1940 Configuration:
1941 -h, --help display this help and exit
1942 --help=short display options specific to this package
1943 --help=recursive display the short help of all the included packages
1944 -V, --version display version information and exit
1945 -q, --quiet, --silent do not print \`checking...' messages
1946 --cache-file=FILE cache test results in FILE [disabled]
1947 -C, --config-cache alias for \`--cache-file=config.cache'
1948 -n, --no-create do not create output files
1949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1951 Installation directories:
1952 --prefix=PREFIX install architecture-independent files in PREFIX
1953 [$ac_default_prefix]
1954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1955 [PREFIX]
1957 By default, \`make install' will install all the files in
1958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1960 for instance \`--prefix=\$HOME'.
1962 For better control, use the options below.
1964 Fine tuning of the installation directories:
1965 --bindir=DIR user executables [EPREFIX/bin]
1966 --sbindir=DIR system admin executables [EPREFIX/sbin]
1967 --libexecdir=DIR program executables [EPREFIX/libexec]
1968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1971 --libdir=DIR object code libraries [EPREFIX/lib]
1972 --includedir=DIR C header files [PREFIX/include]
1973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1974 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1975 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1976 --infodir=DIR info documentation [DATAROOTDIR/info]
1977 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1978 --mandir=DIR man documentation [DATAROOTDIR/man]
1979 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1980 --htmldir=DIR html documentation [DOCDIR]
1981 --dvidir=DIR dvi documentation [DOCDIR]
1982 --pdfdir=DIR pdf documentation [DOCDIR]
1983 --psdir=DIR ps documentation [DOCDIR]
1984 _ACEOF
1986 cat <<\_ACEOF
1988 Program names:
1989 --program-prefix=PREFIX prepend PREFIX to installed program names
1990 --program-suffix=SUFFIX append SUFFIX to installed program names
1991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1993 X features:
1994 --x-includes=DIR X include files are in DIR
1995 --x-libraries=DIR X library files are in DIR
1997 System types:
1998 --build=BUILD configure for building on BUILD [guessed]
1999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2000 _ACEOF
2003 if test -n "$ac_init_help"; then
2004 case $ac_init_help in
2005 short | recursive ) echo "Configuration of emacs 24.1.50:";;
2006 esac
2007 cat <<\_ACEOF
2009 Optional Features:
2010 --disable-option-checking ignore unrecognized --enable/--with options
2011 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2012 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2013 --disable-ns-self-contained
2014 disable self contained build under NeXTstep
2015 --enable-locallisppath=PATH
2016 directories Emacs should search for lisp files
2017 specific to this site
2018 --enable-checking[=LIST]
2019 enable expensive run-time checks. With LIST, enable
2020 only specific categories of checks. Categories are:
2021 all,yes,no. Flags are: stringbytes, stringoverrun,
2022 stringfreelist, xmallocoverrun, conslist, glyphs
2023 --enable-check-lisp-object-type
2024 enable compile time checks for the Lisp_Object data
2025 type. This is useful for development for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled if GNU Make and
2031 Gcc is found
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2036 --enable-link-time-optimization
2037 build emacs with link-time optimization. This is
2038 supported only for GCC since 4.5.0.
2040 Optional Packages:
2041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2043 --without-pop don't support POP mail retrieval with movemail
2044 --with-kerberos support Kerberos-authenticated POP
2045 --with-kerberos5 support Kerberos version 5 authenticated POP
2046 --with-hesiod support Hesiod to get the POP server host
2047 --with-mmdf support MMDF mailboxes
2048 --with-mail-unlink unlink, rather than empty, mail spool after reading
2049 --with-mailhost=HOSTNAME
2050 string giving default POP mail host
2051 --without-sound don't compile with sound support
2052 --without-sync-input process async input synchronously
2053 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2054 lucid or athena, motif, no)
2055 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2056 --without-xpm don't compile with XPM image support
2057 --without-jpeg don't compile with JPEG image support
2058 --without-tiff don't compile with TIFF image support
2059 --without-gif don't compile with GIF image support
2060 --without-png don't compile with PNG image support
2061 --without-rsvg don't compile with SVG image support
2062 --without-xml2 don't compile with XML parsing support
2063 --without-imagemagick don't compile with ImageMagick image support
2064 --without-xft don't use XFT for anti aliased fonts
2065 --without-libotf don't use libotf for OpenType font support
2066 --without-m17n-flt don't use m17n-flt for text shaping
2067 --without-toolkit-scroll-bars
2068 don't use Motif or Xaw3d scroll bars
2069 --without-xaw3d don't use Xaw3d
2070 --without-xim don't use X11 XIM
2071 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2072 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2073 console
2074 --without-dbus don't compile with D-Bus support
2075 --without-gconf don't compile with GConf support
2076 --without-gsettings don't compile with GSettings support
2077 --without-selinux don't compile with SELinux support
2078 --without-gnutls don't use -lgnutls for SSL/TLS support
2079 --without-makeinfo don't require makeinfo for building manuals
2080 --without-compress-info don't compress the installed Info pages
2081 --with-pkg-config-prog=PATH
2082 path to pkg-config for finding GTK and librsvg
2083 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2084 /usr/lib, or /usr/lib64 on some platforms.
2085 --with-gameuser=USER user for shared game score files
2086 --with-gnustep-conf=PATH
2087 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2088 or /etc/GNUstep/GNUstep.conf
2089 --with-x use the X Window System
2091 Some influential environment variables:
2092 CC C compiler command
2093 CFLAGS C compiler flags
2094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2095 nonstandard directory <lib dir>
2096 LIBS libraries to pass to the linker, e.g. -l<library>
2097 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2098 you have headers in a nonstandard directory <include dir>
2099 CPP C preprocessor
2100 XMKMF Path to xmkmf, Makefile generator for X Window System
2102 Use these variables to override the choices made by `configure' or to help
2103 it to find libraries and programs with nonstandard names/locations.
2105 Report bugs to the package provider.
2106 _ACEOF
2107 ac_status=$?
2110 if test "$ac_init_help" = "recursive"; then
2111 # If there are subdirs, report their specific --help.
2112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2113 test -d "$ac_dir" ||
2114 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2115 continue
2116 ac_builddir=.
2118 case "$ac_dir" in
2119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2122 # A ".." for each directory in $ac_dir_suffix.
2123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2124 case $ac_top_builddir_sub in
2125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2127 esac ;;
2128 esac
2129 ac_abs_top_builddir=$ac_pwd
2130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2131 # for backward compatibility:
2132 ac_top_builddir=$ac_top_build_prefix
2134 case $srcdir in
2135 .) # We are building in place.
2136 ac_srcdir=.
2137 ac_top_srcdir=$ac_top_builddir_sub
2138 ac_abs_top_srcdir=$ac_pwd ;;
2139 [\\/]* | ?:[\\/]* ) # Absolute name.
2140 ac_srcdir=$srcdir$ac_dir_suffix;
2141 ac_top_srcdir=$srcdir
2142 ac_abs_top_srcdir=$srcdir ;;
2143 *) # Relative name.
2144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2145 ac_top_srcdir=$ac_top_build_prefix$srcdir
2146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2147 esac
2148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2150 cd "$ac_dir" || { ac_status=$?; continue; }
2151 # Check for guested configure.
2152 if test -f "$ac_srcdir/configure.gnu"; then
2153 echo &&
2154 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2155 elif test -f "$ac_srcdir/configure"; then
2156 echo &&
2157 $SHELL "$ac_srcdir/configure" --help=recursive
2158 else
2159 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2160 fi || ac_status=$?
2161 cd "$ac_pwd" || { ac_status=$?; break; }
2162 done
2165 test -n "$ac_init_help" && exit $ac_status
2166 if $ac_init_version; then
2167 cat <<\_ACEOF
2168 emacs configure 24.1.50
2169 generated by GNU Autoconf 2.65
2171 Copyright (C) 2009 Free Software Foundation, Inc.
2172 This configure script is free software; the Free Software Foundation
2173 gives unlimited permission to copy, distribute and modify it.
2174 _ACEOF
2175 exit
2178 ## ------------------------ ##
2179 ## Autoconf initialization. ##
2180 ## ------------------------ ##
2182 # ac_fn_c_try_compile LINENO
2183 # --------------------------
2184 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_c_try_compile ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 rm -f conftest.$ac_objext
2189 if { { ac_try="$ac_compile"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_compile") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } && {
2205 test -z "$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 } && test -s conftest.$ac_objext; then :
2208 ac_retval=0
2209 else
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 ac_retval=1
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_c_try_compile
2220 # ac_fn_c_try_cpp LINENO
2221 # ----------------------
2222 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_cpp ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if { { ac_try="$ac_cpp conftest.$ac_ext"
2227 case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2234 ac_status=$?
2235 if test -s conftest.err; then
2236 grep -v '^ *+' conftest.err >conftest.er1
2237 cat conftest.er1 >&5
2238 mv -f conftest.er1 conftest.err
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; } >/dev/null && {
2242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2243 test ! -s conftest.err
2244 }; then :
2245 ac_retval=0
2246 else
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_retval=1
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 as_fn_set_status $ac_retval
2255 } # ac_fn_c_try_cpp
2257 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2258 # -------------------------------------------------------
2259 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2260 # the include files in INCLUDES and setting the cache variable VAR
2261 # accordingly.
2262 ac_fn_c_check_header_mongrel ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267 $as_echo_n "checking for $2... " >&6; }
2268 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 $as_echo_n "(cached) " >&6
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 else
2275 # Is the header compilable?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2277 $as_echo_n "checking $2 usability... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2281 #include <$2>
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_header_compiler=yes
2285 else
2286 ac_header_compiler=no
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2290 $as_echo "$ac_header_compiler" >&6; }
2292 # Is the header present?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2294 $as_echo_n "checking $2 presence... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 #include <$2>
2298 _ACEOF
2299 if ac_fn_c_try_cpp "$LINENO"; then :
2300 ac_header_preproc=yes
2301 else
2302 ac_header_preproc=no
2304 rm -f conftest.err conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2306 $as_echo "$ac_header_preproc" >&6; }
2308 # So? What about this header?
2309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2310 yes:no: )
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2312 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2316 no:yes:* )
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2318 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2320 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2322 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2324 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2328 esac
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=\$ac_header_compiler"
2336 eval ac_res=\$$3
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 } # ac_fn_c_check_header_mongrel
2344 # ac_fn_c_try_run LINENO
2345 # ----------------------
2346 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2347 # that executables *can* be run.
2348 ac_fn_c_try_run ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 if { { ac_try="$ac_link"
2352 case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355 esac
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358 (eval "$ac_link") 2>&5
2359 ac_status=$?
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2362 { { case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_try") 2>&5
2369 ac_status=$?
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; }; }; then :
2372 ac_retval=0
2373 else
2374 $as_echo "$as_me: program exited with status $ac_status" >&5
2375 $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2378 ac_retval=$ac_status
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 as_fn_set_status $ac_retval
2384 } # ac_fn_c_try_run
2386 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2387 # -------------------------------------------------------
2388 # Tests whether HEADER exists and can be compiled using the include files in
2389 # INCLUDES, setting the cache variable VAR accordingly.
2390 ac_fn_c_check_header_compile ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2394 $as_echo_n "checking for $2... " >&6; }
2395 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2401 #include <$2>
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2404 eval "$3=yes"
2405 else
2406 eval "$3=no"
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 eval ac_res=\$$3
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 } # ac_fn_c_check_header_compile
2417 # ac_fn_c_try_link LINENO
2418 # -----------------------
2419 # Try to link conftest.$ac_ext, and return whether this succeeded.
2420 ac_fn_c_try_link ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 rm -f conftest.$ac_objext conftest$ac_exeext
2424 if { { ac_try="$ac_link"
2425 case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430 $as_echo "$ac_try_echo"; } >&5
2431 (eval "$ac_link") 2>conftest.err
2432 ac_status=$?
2433 if test -s conftest.err; then
2434 grep -v '^ *+' conftest.err >conftest.er1
2435 cat conftest.er1 >&5
2436 mv -f conftest.er1 conftest.err
2438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest$ac_exeext && {
2443 test "$cross_compiling" = yes ||
2444 $as_test_x conftest$ac_exeext
2445 }; then :
2446 ac_retval=0
2447 else
2448 $as_echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 ac_retval=1
2453 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2454 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2455 # interfere with the next link command; also delete a directory that is
2456 # left behind by Apple's compiler. We do this before executing the actions.
2457 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 as_fn_set_status $ac_retval
2461 } # ac_fn_c_try_link
2463 # ac_fn_c_check_decl LINENO SYMBOL VAR
2464 # ------------------------------------
2465 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2466 ac_fn_c_check_decl ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2470 $as_echo_n "checking whether $2 is declared... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2478 main ()
2480 #ifndef $2
2481 (void) $2;
2482 #endif
2485 return 0;
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_decl
2502 # ac_fn_c_check_func LINENO FUNC VAR
2503 # ----------------------------------
2504 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2505 ac_fn_c_check_func ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2517 #define $2 innocuous_$2
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char $2 (); below.
2521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2522 <limits.h> exists even on freestanding compilers. */
2524 #ifdef __STDC__
2525 # include <limits.h>
2526 #else
2527 # include <assert.h>
2528 #endif
2530 #undef $2
2532 /* Override any GCC internal prototype to avoid an error.
2533 Use char because int might match the return type of a GCC
2534 builtin and then its argument prototype would still apply. */
2535 #ifdef __cplusplus
2536 extern "C"
2537 #endif
2538 char $2 ();
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined __stub_$2 || defined __stub___$2
2543 choke me
2544 #endif
2547 main ()
2549 return $2 ();
2551 return 0;
2553 _ACEOF
2554 if ac_fn_c_try_link "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2559 rm -f core conftest.err conftest.$ac_objext \
2560 conftest$ac_exeext conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_c_check_func
2569 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2570 # ----------------------------------------------------
2571 # Tries to find if the field MEMBER exists in type AGGR, after including
2572 # INCLUDES, setting cache variable VAR accordingly.
2573 ac_fn_c_check_member ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2577 $as_echo_n "checking for $2.$3... " >&6; }
2578 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2585 main ()
2587 static $2 ac_aggr;
2588 if (ac_aggr.$3)
2589 return 0;
2591 return 0;
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 eval "$4=yes"
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2601 main ()
2603 static $2 ac_aggr;
2604 if (sizeof 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 eval "$4=no"
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 eval ac_res=\$$4
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_member
2626 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2627 # --------------------------------------------
2628 # Tries to find the compile-time value of EXPR in a program that includes
2629 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2630 # computed
2631 ac_fn_c_compute_int ()
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 if test "$cross_compiling" = yes; then
2635 # Depending upon the size, compute the lo and hi bounds.
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2640 main ()
2642 static int test_array [1 - 2 * !(($2) >= 0)];
2643 test_array [0] = 0
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_lo=0 ac_mid=0
2651 while :; do
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2656 main ()
2658 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2659 test_array [0] = 0
2662 return 0;
2664 _ACEOF
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666 ac_hi=$ac_mid; break
2667 else
2668 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2669 if test $ac_lo -le $ac_mid; then
2670 ac_lo= ac_hi=
2671 break
2673 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 done
2677 else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2682 main ()
2684 static int test_array [1 - 2 * !(($2) < 0)];
2685 test_array [0] = 0
2688 return 0;
2690 _ACEOF
2691 if ac_fn_c_try_compile "$LINENO"; then :
2692 ac_hi=-1 ac_mid=-1
2693 while :; do
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2698 main ()
2700 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2701 test_array [0] = 0
2704 return 0;
2706 _ACEOF
2707 if ac_fn_c_try_compile "$LINENO"; then :
2708 ac_lo=$ac_mid; break
2709 else
2710 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2711 if test $ac_mid -le $ac_hi; then
2712 ac_lo= ac_hi=
2713 break
2715 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 done
2719 else
2720 ac_lo= ac_hi=
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 # Binary search between lo and hi bounds.
2726 while test "x$ac_lo" != "x$ac_hi"; do
2727 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2732 main ()
2734 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2735 test_array [0] = 0
2738 return 0;
2740 _ACEOF
2741 if ac_fn_c_try_compile "$LINENO"; then :
2742 ac_hi=$ac_mid
2743 else
2744 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 done
2748 case $ac_lo in #((
2749 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2750 '') ac_retval=1 ;;
2751 esac
2752 else
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2756 static long int longval () { return $2; }
2757 static unsigned long int ulongval () { return $2; }
2758 #include <stdio.h>
2759 #include <stdlib.h>
2761 main ()
2764 FILE *f = fopen ("conftest.val", "w");
2765 if (! f)
2766 return 1;
2767 if (($2) < 0)
2769 long int i = longval ();
2770 if (i != ($2))
2771 return 1;
2772 fprintf (f, "%ld", i);
2774 else
2776 unsigned long int i = ulongval ();
2777 if (i != ($2))
2778 return 1;
2779 fprintf (f, "%lu", i);
2781 /* Do not output a trailing newline, as this causes \r\n confusion
2782 on some platforms. */
2783 return ferror (f) || fclose (f) != 0;
2786 return 0;
2788 _ACEOF
2789 if ac_fn_c_try_run "$LINENO"; then :
2790 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2791 else
2792 ac_retval=1
2794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2795 conftest.$ac_objext conftest.beam conftest.$ac_ext
2796 rm -f conftest.val
2799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2800 as_fn_set_status $ac_retval
2802 } # ac_fn_c_compute_int
2804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2805 # -------------------------------------------
2806 # Tests whether TYPE exists after having included INCLUDES, setting cache
2807 # variable VAR accordingly.
2808 ac_fn_c_check_type ()
2810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2812 $as_echo_n "checking for $2... " >&6; }
2813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 eval "$3=no"
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 main ()
2823 if (sizeof ($2))
2824 return 0;
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 main ()
2836 if (sizeof (($2)))
2837 return 0;
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2844 else
2845 eval "$3=yes"
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 eval ac_res=\$$3
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2856 } # ac_fn_c_check_type
2858 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2859 # ----------------------------------------------
2860 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2861 ac_fn_c_check_header_preproc ()
2863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2865 $as_echo_n "checking for $2... " >&6; }
2866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2871 #include <$2>
2872 _ACEOF
2873 if ac_fn_c_try_cpp "$LINENO"; then :
2874 eval "$3=yes"
2875 else
2876 eval "$3=no"
2878 rm -f conftest.err conftest.$ac_ext
2880 eval ac_res=\$$3
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2882 $as_echo "$ac_res" >&6; }
2883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2885 } # ac_fn_c_check_header_preproc
2886 cat >config.log <<_ACEOF
2887 This file contains any messages produced by compilers while
2888 running configure, to aid debugging if configure makes a mistake.
2890 It was created by emacs $as_me 24.1.50, which was
2891 generated by GNU Autoconf 2.65. Invocation command line was
2893 $ $0 $@
2895 _ACEOF
2896 exec 5>>config.log
2898 cat <<_ASUNAME
2899 ## --------- ##
2900 ## Platform. ##
2901 ## --------- ##
2903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2920 _ASUNAME
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 $as_echo "PATH: $as_dir"
2928 done
2929 IFS=$as_save_IFS
2931 } >&5
2933 cat >&5 <<_ACEOF
2936 ## ----------- ##
2937 ## Core tests. ##
2938 ## ----------- ##
2940 _ACEOF
2943 # Keep a trace of the command line.
2944 # Strip out --no-create and --no-recursion so they do not pile up.
2945 # Strip out --silent because we don't want to record it for future runs.
2946 # Also quote any args containing shell meta-characters.
2947 # Make two passes to allow for proper duplicate-argument suppression.
2948 ac_configure_args=
2949 ac_configure_args0=
2950 ac_configure_args1=
2951 ac_must_keep_next=false
2952 for ac_pass in 1 2
2954 for ac_arg
2956 case $ac_arg in
2957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2959 | -silent | --silent | --silen | --sile | --sil)
2960 continue ;;
2961 *\'*)
2962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2963 esac
2964 case $ac_pass in
2965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2967 as_fn_append ac_configure_args1 " '$ac_arg'"
2968 if test $ac_must_keep_next = true; then
2969 ac_must_keep_next=false # Got value, back to normal.
2970 else
2971 case $ac_arg in
2972 *=* | --config-cache | -C | -disable-* | --disable-* \
2973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2975 | -with-* | --with-* | -without-* | --without-* | --x)
2976 case "$ac_configure_args0 " in
2977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2978 esac
2980 -* ) ac_must_keep_next=true ;;
2981 esac
2983 as_fn_append ac_configure_args " '$ac_arg'"
2985 esac
2986 done
2987 done
2988 { ac_configure_args0=; unset ac_configure_args0;}
2989 { ac_configure_args1=; unset ac_configure_args1;}
2991 # When interrupted or exit'd, cleanup temporary files, and complete
2992 # config.log. We remove comments because anyway the quotes in there
2993 # would cause problems or look ugly.
2994 # WARNING: Use '\'' to represent an apostrophe within the trap.
2995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2996 trap 'exit_status=$?
2997 # Save into config.log some information that might help in debugging.
2999 echo
3001 cat <<\_ASBOX
3002 ## ---------------- ##
3003 ## Cache variables. ##
3004 ## ---------------- ##
3005 _ASBOX
3006 echo
3007 # The following way of writing the cache mishandles newlines in values,
3009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3010 eval ac_val=\$$ac_var
3011 case $ac_val in #(
3012 *${as_nl}*)
3013 case $ac_var in #(
3014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3016 esac
3017 case $ac_var in #(
3018 _ | IFS | as_nl) ;; #(
3019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3020 *) { eval $ac_var=; unset $ac_var;} ;;
3021 esac ;;
3022 esac
3023 done
3024 (set) 2>&1 |
3025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3026 *${as_nl}ac_space=\ *)
3027 sed -n \
3028 "s/'\''/'\''\\\\'\'''\''/g;
3029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3030 ;; #(
3032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3034 esac |
3035 sort
3037 echo
3039 cat <<\_ASBOX
3040 ## ----------------- ##
3041 ## Output variables. ##
3042 ## ----------------- ##
3043 _ASBOX
3044 echo
3045 for ac_var in $ac_subst_vars
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3055 if test -n "$ac_subst_files"; then
3056 cat <<\_ASBOX
3057 ## ------------------- ##
3058 ## File substitutions. ##
3059 ## ------------------- ##
3060 _ASBOX
3061 echo
3062 for ac_var in $ac_subst_files
3064 eval ac_val=\$$ac_var
3065 case $ac_val in
3066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3067 esac
3068 $as_echo "$ac_var='\''$ac_val'\''"
3069 done | sort
3070 echo
3073 if test -s confdefs.h; then
3074 cat <<\_ASBOX
3075 ## ----------- ##
3076 ## confdefs.h. ##
3077 ## ----------- ##
3078 _ASBOX
3079 echo
3080 cat confdefs.h
3081 echo
3083 test "$ac_signal" != 0 &&
3084 $as_echo "$as_me: caught signal $ac_signal"
3085 $as_echo "$as_me: exit $exit_status"
3086 } >&5
3087 rm -f core *.core core.conftest.* &&
3088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3089 exit $exit_status
3091 for ac_signal in 1 2 13 15; do
3092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3093 done
3094 ac_signal=0
3096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3097 rm -f -r conftest* confdefs.h
3099 $as_echo "/* confdefs.h */" > confdefs.h
3101 # Predefined preprocessor variables.
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_NAME "$PACKAGE_NAME"
3105 _ACEOF
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3109 _ACEOF
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3113 _ACEOF
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_STRING "$PACKAGE_STRING"
3117 _ACEOF
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3121 _ACEOF
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_URL "$PACKAGE_URL"
3125 _ACEOF
3128 # Let the site file select an alternate cache file if it wants to.
3129 # Prefer an explicitly selected file to automatically selected ones.
3130 ac_site_file1=NONE
3131 ac_site_file2=NONE
3132 if test -n "$CONFIG_SITE"; then
3133 ac_site_file1=$CONFIG_SITE
3134 elif test "x$prefix" != xNONE; then
3135 ac_site_file1=$prefix/share/config.site
3136 ac_site_file2=$prefix/etc/config.site
3137 else
3138 ac_site_file1=$ac_default_prefix/share/config.site
3139 ac_site_file2=$ac_default_prefix/etc/config.site
3141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3143 test "x$ac_site_file" = xNONE && continue
3144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3147 sed 's/^/| /' "$ac_site_file" >&5
3148 . "$ac_site_file"
3150 done
3152 if test -r "$cache_file"; then
3153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3157 $as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3165 $as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3169 as_fn_append ac_func_list " readlinkat"
3170 gl_getopt_required=GNU
3171 as_fn_append ac_header_list " getopt.h"
3172 as_fn_append ac_func_list " gettimeofday"
3173 as_fn_append ac_func_list " nanotime"
3174 as_fn_append ac_header_list " sys/time.h"
3175 as_fn_append ac_header_list " sys/socket.h"
3176 as_fn_append ac_header_list " wchar.h"
3177 as_fn_append ac_header_list " stdint.h"
3178 as_fn_append ac_header_list " inttypes.h"
3179 as_fn_append ac_func_list " lstat"
3180 as_fn_append ac_header_list " unistd.h"
3181 as_fn_append ac_func_list " alarm"
3182 as_fn_append ac_header_list " sys/select.h"
3183 as_fn_append ac_func_list " pselect"
3184 as_fn_append ac_func_list " pthread_sigmask"
3185 as_fn_append ac_func_list " readlink"
3186 as_fn_append ac_func_list " tzset"
3187 as_fn_append ac_func_list " strtoimax"
3188 as_fn_append ac_func_list " strtoumax"
3189 as_fn_append ac_func_list " symlink"
3190 as_fn_append ac_header_list " sys/stat.h"
3191 as_fn_append ac_func_list " localtime_r"
3192 as_fn_append ac_header_list " utime.h"
3193 as_fn_append ac_func_list " futimes"
3194 as_fn_append ac_func_list " futimesat"
3195 as_fn_append ac_func_list " futimens"
3196 as_fn_append ac_func_list " utimensat"
3197 as_fn_append ac_func_list " lutimes"
3198 as_fn_append ac_header_list " sys/param.h"
3199 as_fn_append ac_header_list " linux/version.h"
3200 as_fn_append ac_header_list " sys/systeminfo.h"
3201 as_fn_append ac_header_list " stdio_ext.h"
3202 as_fn_append ac_header_list " fcntl.h"
3203 as_fn_append ac_header_list " coff.h"
3204 as_fn_append ac_header_list " pty.h"
3205 as_fn_append ac_header_list " sys/vlimit.h"
3206 as_fn_append ac_header_list " sys/resource.h"
3207 as_fn_append ac_header_list " sys/utsname.h"
3208 as_fn_append ac_header_list " pwd.h"
3209 as_fn_append ac_header_list " utmp.h"
3210 as_fn_append ac_header_list " dirent.h"
3211 as_fn_append ac_header_list " util.h"
3212 as_fn_append ac_header_list " stdlib.h"
3213 as_fn_append ac_header_list " pthread.h"
3214 as_fn_append ac_header_list " malloc/malloc.h"
3215 as_fn_append ac_header_list " maillock.h"
3216 as_fn_append ac_header_list " sys/un.h"
3217 # Check that the precious variables saved in the cache have kept the same
3218 # value.
3219 ac_cache_corrupted=false
3220 for ac_var in $ac_precious_vars; do
3221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3222 eval ac_new_set=\$ac_env_${ac_var}_set
3223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3224 eval ac_new_val=\$ac_env_${ac_var}_value
3225 case $ac_old_set,$ac_new_set in
3226 set,)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3229 ac_cache_corrupted=: ;;
3230 ,set)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3233 ac_cache_corrupted=: ;;
3234 ,);;
3236 if test "x$ac_old_val" != "x$ac_new_val"; then
3237 # differences in whitespace do not lead to failure.
3238 ac_old_val_w=`echo x $ac_old_val`
3239 ac_new_val_w=`echo x $ac_new_val`
3240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3243 ac_cache_corrupted=:
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3247 eval $ac_var=\$ac_old_val
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3253 fi;;
3254 esac
3255 # Pass precious variables to config.status.
3256 if test "$ac_new_set" = set; then
3257 case $ac_new_val in
3258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3259 *) ac_arg=$ac_var=$ac_new_val ;;
3260 esac
3261 case " $ac_configure_args " in
3262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3264 esac
3266 done
3267 if $ac_cache_corrupted; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3272 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3274 ## -------------------- ##
3275 ## Main body of script. ##
3276 ## -------------------- ##
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3288 ac_aux_dir=
3289 for ac_dir in build-aux "$srcdir"/build-aux; do
3290 for ac_t in install-sh install.sh shtool; do
3291 if test -f "$ac_dir/$ac_t"; then
3292 ac_aux_dir=$ac_dir
3293 ac_install_sh="$ac_aux_dir/$ac_t -c"
3294 break 2
3296 done
3297 done
3298 if test -z "$ac_aux_dir"; then
3299 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3302 # These three variables are undocumented and unsupported,
3303 # and are intended to be withdrawn in a future Autoconf release.
3304 # They can cause serious problems if a builder's source tree is in a directory
3305 # whose full name contains unusual characters.
3306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3311 am__api_version='1.11'
3313 # Find a good install program. We prefer a C program (faster),
3314 # so one script is as good as another. But avoid the broken or
3315 # incompatible versions:
3316 # SysV /etc/install, /usr/sbin/install
3317 # SunOS /usr/etc/install
3318 # IRIX /sbin/install
3319 # AIX /bin/install
3320 # AmigaOS /C/install, which installs bootblocks on floppy discs
3321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3324 # OS/2's system install, which has a completely different semantic
3325 # ./install, which can be erroneously created by make from ./install.sh.
3326 # Reject install programs that cannot install multiple files.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3328 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3329 if test -z "$INSTALL"; then
3330 if test "${ac_cv_path_install+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 # Account for people who put trailing slashes in PATH elements.
3339 case $as_dir/ in #((
3340 ./ | .// | /[cC]/* | \
3341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3342 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3343 /usr/ucb/* ) ;;
3345 # OSF1 and SCO ODT 3.0 have their own names for install.
3346 # Don't use installbsd from OSF since it installs stuff as root
3347 # by default.
3348 for ac_prog in ginstall scoinst install; do
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3351 if test $ac_prog = install &&
3352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3353 # AIX install. It has an incompatible calling convention.
3355 elif test $ac_prog = install &&
3356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3357 # program-specific install script used by HP pwplus--don't use.
3359 else
3360 rm -rf conftest.one conftest.two conftest.dir
3361 echo one > conftest.one
3362 echo two > conftest.two
3363 mkdir conftest.dir
3364 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3365 test -s conftest.one && test -s conftest.two &&
3366 test -s conftest.dir/conftest.one &&
3367 test -s conftest.dir/conftest.two
3368 then
3369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3370 break 3
3374 done
3375 done
3377 esac
3379 done
3380 IFS=$as_save_IFS
3382 rm -rf conftest.one conftest.two conftest.dir
3385 if test "${ac_cv_path_install+set}" = set; then
3386 INSTALL=$ac_cv_path_install
3387 else
3388 # As a last resort, use the slow shell script. Don't cache a
3389 # value for INSTALL within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the value is a relative name.
3392 INSTALL=$ac_install_sh
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3396 $as_echo "$INSTALL" >&6; }
3398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3399 # It thinks the first close brace ends the variable substitution.
3400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3407 $as_echo_n "checking whether build environment is sane... " >&6; }
3408 # Just in case
3409 sleep 1
3410 echo timestamp > conftest.file
3411 # Reject unsafe characters in $srcdir or the absolute working directory
3412 # name. Accept space and tab only in the latter.
3413 am_lf='
3415 case `pwd` in
3416 *[\\\"\#\$\&\'\`$am_lf]*)
3417 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3418 esac
3419 case $srcdir in
3420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3421 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3422 esac
3424 # Do `set' in a subshell so we don't clobber the current shell's
3425 # arguments. Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3428 # directory).
3429 if (
3430 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3431 if test "$*" = "X"; then
3432 # -L didn't work.
3433 set X `ls -t "$srcdir/configure" conftest.file`
3435 rm -f conftest.file
3436 if test "$*" != "X $srcdir/configure conftest.file" \
3437 && test "$*" != "X conftest.file $srcdir/configure"; then
3439 # If neither matched, then we have a broken ls. This can happen
3440 # if, for instance, CONFIG_SHELL is bash and it inherits a
3441 # broken ls alias from the environment. This has actually
3442 # happened. Such a system could not be considered "sane".
3443 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3444 alias in your environment" "$LINENO" 5
3447 test "$2" = conftest.file
3449 then
3450 # Ok.
3452 else
3453 as_fn_error "newly created file is older than distributed files!
3454 Check your system clock" "$LINENO" 5
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457 $as_echo "yes" >&6; }
3458 test "$program_prefix" != NONE &&
3459 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3460 # Use a double $ so make ignores it.
3461 test "$program_suffix" != NONE &&
3462 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3463 # Double any \ or $.
3464 # By default was `s,x,x', remove it if useless.
3465 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3466 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3468 # expand $ac_aux_dir to an absolute path
3469 am_aux_dir=`cd $ac_aux_dir && pwd`
3471 if test x"${MISSING+set}" != xset; then
3472 case $am_aux_dir in
3473 *\ * | *\ *)
3474 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3476 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3477 esac
3479 # Use eval to expand $SHELL
3480 if eval "$MISSING --run true"; then
3481 am_missing_run="$MISSING --run "
3482 else
3483 am_missing_run=
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3485 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3488 if test x"${install_sh}" != xset; then
3489 case $am_aux_dir in
3490 *\ * | *\ *)
3491 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3493 install_sh="\${SHELL} $am_aux_dir/install-sh"
3494 esac
3497 # Installed binaries are usually stripped using `strip' when the user
3498 # run `make install-strip'. However `strip' might not be the right
3499 # tool to use in cross-compilation environments, therefore Automake
3500 # will honor the `STRIP' environment variable to overrule this program.
3501 if test "$cross_compiling" != no; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}strip; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_STRIP+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$STRIP"; then
3511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 STRIP=$ac_cv_prog_STRIP
3531 if test -n "$STRIP"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3533 $as_echo "$STRIP" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_STRIP"; then
3542 ac_ct_STRIP=$STRIP
3543 # Extract the first word of "strip", so it can be a program name with args.
3544 set dummy strip; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_STRIP="strip"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3571 if test -n "$ac_ct_STRIP"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3573 $as_echo "$ac_ct_STRIP" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_STRIP" = x; then
3580 STRIP=":"
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 STRIP=$ac_ct_STRIP
3590 else
3591 STRIP="$ac_cv_prog_STRIP"
3595 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3598 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3599 if test -z "$MKDIR_P"; then
3600 if test "${ac_cv_path_mkdir+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_prog in mkdir gmkdir; do
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3611 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3612 'mkdir (GNU coreutils) '* | \
3613 'mkdir (coreutils) '* | \
3614 'mkdir (fileutils) '4.1*)
3615 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3616 break 3;;
3617 esac
3618 done
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 test -d ./--version && rmdir ./--version
3626 if test "${ac_cv_path_mkdir+set}" = set; then
3627 MKDIR_P="$ac_cv_path_mkdir -p"
3628 else
3629 # As a last resort, use the slow shell script. Don't cache a
3630 # value for MKDIR_P within a source directory, because that will
3631 # break other packages using the cache if that directory is
3632 # removed, or if the value is a relative name.
3633 MKDIR_P="$ac_install_sh -d"
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3637 $as_echo "$MKDIR_P" >&6; }
3640 mkdir_p="$MKDIR_P"
3641 case $mkdir_p in
3642 [\\/$]* | ?:[\\/]*) ;;
3643 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3644 esac
3646 for ac_prog in gawk mawk nawk awk
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_AWK+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$AWK"; then
3656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_AWK="$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 AWK=$ac_cv_prog_AWK
3676 if test -n "$AWK"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3678 $as_echo "$AWK" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3685 test -n "$AWK" && break
3686 done
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3690 set x ${MAKE-make}
3691 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3692 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat >conftest.make <<\_ACEOF
3696 SHELL = /bin/sh
3697 all:
3698 @echo '@@@%%%=$(MAKE)=@@@%%%'
3699 _ACEOF
3700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3701 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3702 *@@@%%%=?*=@@@%%%*)
3703 eval ac_cv_prog_make_${ac_make}_set=yes;;
3705 eval ac_cv_prog_make_${ac_make}_set=no;;
3706 esac
3707 rm -f conftest.make
3709 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711 $as_echo "yes" >&6; }
3712 SET_MAKE=
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3716 SET_MAKE="MAKE=${MAKE-make}"
3719 rm -rf .tst 2>/dev/null
3720 mkdir .tst 2>/dev/null
3721 if test -d .tst; then
3722 am__leading_dot=.
3723 else
3724 am__leading_dot=_
3726 rmdir .tst 2>/dev/null
3728 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3729 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3730 # is not polluted with repeated "-I."
3731 am__isrc=' -I$(srcdir)'
3732 # test to see if srcdir already configured
3733 if test -f $srcdir/config.status; then
3734 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3738 # test whether we have cygpath
3739 if test -z "$CYGPATH_W"; then
3740 if (cygpath --version) >/dev/null 2>/dev/null; then
3741 CYGPATH_W='cygpath -w'
3742 else
3743 CYGPATH_W=echo
3748 # Define the identity of the package.
3749 PACKAGE='emacs'
3750 VERSION='24.1.50'
3753 cat >>confdefs.h <<_ACEOF
3754 #define PACKAGE "$PACKAGE"
3755 _ACEOF
3758 cat >>confdefs.h <<_ACEOF
3759 #define VERSION "$VERSION"
3760 _ACEOF
3762 # Some tools Automake needs.
3764 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3767 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3770 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3773 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3776 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3778 # We need awk for the "check" target. The system "awk" is bad on
3779 # some platforms.
3780 # Always define AMTAR for backward compatibility.
3782 AMTAR=${AMTAR-"${am_missing_run}tar"}
3784 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3793 lispdir='${datadir}/emacs/${version}/lisp'
3794 leimdir='${datadir}/emacs/${version}/leim'
3795 standardlisppath='${lispdir}:${leimdir}'
3796 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3797 '${datadir}/emacs/site-lisp'
3798 lisppath='${locallisppath}:${standardlisppath}'
3799 etcdir='${datadir}/emacs/${version}/etc'
3800 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3801 docdir='${datadir}/emacs/${version}/etc'
3802 gamedir='${localstatedir}/games/emacs'
3807 # Check whether --with-pop was given.
3808 if test "${with_pop+set}" = set; then :
3809 withval=$with_pop;
3810 else
3811 with_pop=yes
3814 if test "$with_pop" = yes; then
3815 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3820 # Check whether --with-kerberos was given.
3821 if test "${with_kerberos+set}" = set; then :
3822 withval=$with_kerberos;
3823 else
3824 with_kerberos=no
3827 if test "$with_kerberos" != no; then
3828 $as_echo "#define KERBEROS 1" >>confdefs.h
3833 # Check whether --with-kerberos5 was given.
3834 if test "${with_kerberos5+set}" = set; then :
3835 withval=$with_kerberos5;
3836 else
3837 with_kerberos5=no
3840 if test "${with_kerberos5}" != no; then
3841 if test "${with_kerberos}" = no; then
3842 with_kerberos=yes
3843 $as_echo "#define KERBEROS 1" >>confdefs.h
3847 $as_echo "#define KERBEROS5 1" >>confdefs.h
3852 # Check whether --with-hesiod was given.
3853 if test "${with_hesiod+set}" = set; then :
3854 withval=$with_hesiod;
3855 else
3856 with_hesiod=no
3859 if test "$with_hesiod" != no; then
3861 $as_echo "#define HESIOD 1" >>confdefs.h
3866 # Check whether --with-mmdf was given.
3867 if test "${with_mmdf+set}" = set; then :
3868 withval=$with_mmdf;
3869 else
3870 with_mmdf=no
3873 if test "$with_mmdf" != no; then
3875 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3880 # Check whether --with-mail-unlink was given.
3881 if test "${with_mail_unlink+set}" = set; then :
3882 withval=$with_mail_unlink;
3883 else
3884 with_mail_unlink=no
3887 if test "$with_mail_unlink" != no; then
3889 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3894 # Check whether --with-mailhost was given.
3895 if test "${with_mailhost+set}" = set; then :
3896 withval=$with_mailhost;
3897 cat >>confdefs.h <<_ACEOF
3898 #define MAILHOST "$withval"
3899 _ACEOF
3905 # Check whether --with-sound was given.
3906 if test "${with_sound+set}" = set; then :
3907 withval=$with_sound;
3908 else
3909 with_sound=yes
3914 # Check whether --with-sync-input was given.
3915 if test "${with_sync_input+set}" = set; then :
3916 withval=$with_sync_input;
3917 else
3918 with_sync_input=yes
3921 if test "$with_sync_input" = yes; then
3923 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3928 # Check whether --with-x-toolkit was given.
3929 if test "${with_x_toolkit+set}" = set; then :
3930 withval=$with_x_toolkit; case "${withval}" in
3931 y | ye | yes ) val=gtk ;;
3932 n | no ) val=no ;;
3933 l | lu | luc | luci | lucid ) val=lucid ;;
3934 a | at | ath | athe | athen | athena ) val=athena ;;
3935 m | mo | mot | moti | motif ) val=motif ;;
3936 g | gt | gtk ) val=gtk ;;
3937 gtk3 ) val=gtk3 ;;
3939 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3941 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3943 esac
3944 with_x_toolkit=$val
3950 # Check whether --with-wide-int was given.
3951 if test "${with_wide_int+set}" = set; then :
3952 withval=$with_wide_int;
3953 else
3954 with_wide_int=no
3957 if test "$with_wide_int" = yes; then
3959 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3964 # Check whether --with-xpm was given.
3965 if test "${with_xpm+set}" = set; then :
3966 withval=$with_xpm;
3967 else
3968 with_xpm=yes
3972 # Check whether --with-jpeg was given.
3973 if test "${with_jpeg+set}" = set; then :
3974 withval=$with_jpeg;
3975 else
3976 with_jpeg=yes
3980 # Check whether --with-tiff was given.
3981 if test "${with_tiff+set}" = set; then :
3982 withval=$with_tiff;
3983 else
3984 with_tiff=yes
3988 # Check whether --with-gif was given.
3989 if test "${with_gif+set}" = set; then :
3990 withval=$with_gif;
3991 else
3992 with_gif=yes
3996 # Check whether --with-png was given.
3997 if test "${with_png+set}" = set; then :
3998 withval=$with_png;
3999 else
4000 with_png=yes
4004 # Check whether --with-rsvg was given.
4005 if test "${with_rsvg+set}" = set; then :
4006 withval=$with_rsvg;
4007 else
4008 with_rsvg=yes
4012 # Check whether --with-xml2 was given.
4013 if test "${with_xml2+set}" = set; then :
4014 withval=$with_xml2;
4015 else
4016 with_xml2=yes
4020 # Check whether --with-imagemagick was given.
4021 if test "${with_imagemagick+set}" = set; then :
4022 withval=$with_imagemagick;
4023 else
4024 with_imagemagick=yes
4029 # Check whether --with-xft was given.
4030 if test "${with_xft+set}" = set; then :
4031 withval=$with_xft;
4032 else
4033 with_xft=yes
4037 # Check whether --with-libotf was given.
4038 if test "${with_libotf+set}" = set; then :
4039 withval=$with_libotf;
4040 else
4041 with_libotf=yes
4045 # Check whether --with-m17n-flt was given.
4046 if test "${with_m17n_flt+set}" = set; then :
4047 withval=$with_m17n_flt;
4048 else
4049 with_m17n_flt=yes
4054 # Check whether --with-toolkit-scroll-bars was given.
4055 if test "${with_toolkit_scroll_bars+set}" = set; then :
4056 withval=$with_toolkit_scroll_bars;
4057 else
4058 with_toolkit_scroll_bars=yes
4062 # Check whether --with-xaw3d was given.
4063 if test "${with_xaw3d+set}" = set; then :
4064 withval=$with_xaw3d;
4065 else
4066 with_xaw3d=yes
4070 # Check whether --with-xim was given.
4071 if test "${with_xim+set}" = set; then :
4072 withval=$with_xim;
4073 else
4074 with_xim=yes
4078 # Check whether --with-ns was given.
4079 if test "${with_ns+set}" = set; then :
4080 withval=$with_ns;
4081 else
4082 with_ns=no
4087 # Check whether --with-gpm was given.
4088 if test "${with_gpm+set}" = set; then :
4089 withval=$with_gpm;
4090 else
4091 with_gpm=yes
4095 # Check whether --with-dbus was given.
4096 if test "${with_dbus+set}" = set; then :
4097 withval=$with_dbus;
4098 else
4099 with_dbus=yes
4103 # Check whether --with-gconf was given.
4104 if test "${with_gconf+set}" = set; then :
4105 withval=$with_gconf;
4106 else
4107 with_gconf=yes
4111 # Check whether --with-gsettings was given.
4112 if test "${with_gsettings+set}" = set; then :
4113 withval=$with_gsettings;
4114 else
4115 with_gsettings=yes
4119 # Check whether --with-selinux was given.
4120 if test "${with_selinux+set}" = set; then :
4121 withval=$with_selinux;
4122 else
4123 with_selinux=yes
4127 # Check whether --with-gnutls was given.
4128 if test "${with_gnutls+set}" = set; then :
4129 withval=$with_gnutls;
4130 else
4131 with_gnutls=yes
4135 ## For the times when you want to build Emacs but don't have
4136 ## a suitable makeinfo, and can live without the manuals.
4138 # Check whether --with-makeinfo was given.
4139 if test "${with_makeinfo+set}" = set; then :
4140 withval=$with_makeinfo;
4141 else
4142 with_makeinfo=yes
4146 ## Makefile.in needs the cache file name.
4149 ## This is an option because I do not know if all info/man support
4150 ## compressed files, nor how to test if they do so.
4152 # Check whether --with-compress-info was given.
4153 if test "${with_compress_info+set}" = set; then :
4154 withval=$with_compress_info;
4155 else
4156 with_compress_info=yes
4159 if test $with_compress_info = yes; then
4160 GZIP_INFO=yes
4161 else
4162 GZIP_INFO=
4167 # Check whether --with-pkg-config-prog was given.
4168 if test "${with_pkg_config_prog+set}" = set; then :
4169 withval=$with_pkg_config_prog;
4172 if test "X${with_pkg_config_prog}" != X; then
4173 if test "${with_pkg_config_prog}" != yes; then
4174 PKG_CONFIG="${with_pkg_config_prog}"
4178 CRT_DIR=
4180 # Check whether --with-crt-dir was given.
4181 if test "${with_crt_dir+set}" = set; then :
4182 withval=$with_crt_dir;
4185 CRT_DIR="${with_crt_dir}"
4188 # Check whether --with-gameuser was given.
4189 if test "${with_gameuser+set}" = set; then :
4190 withval=$with_gameuser;
4193 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4194 && gameuser="${with_gameuser}"
4195 test "X$gameuser" = X && gameuser=games
4198 # Check whether --with-gnustep-conf was given.
4199 if test "${with_gnustep_conf+set}" = set; then :
4200 withval=$with_gnustep_conf;
4203 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4204 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4205 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4206 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4208 # Check whether --enable-ns-self-contained was given.
4209 if test "${enable_ns_self_contained+set}" = set; then :
4210 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4211 else
4212 EN_NS_SELF_CONTAINED=yes
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 ac_glyphs_debug= ;;
4244 all) ac_enable_checking=1 ;
4245 ac_gc_check_stringbytes=1 ;
4246 ac_gc_check_string_overrun=1 ;
4247 ac_gc_check_string_free_list=1 ;
4248 ac_xmalloc_overrun=1 ;
4249 ac_gc_check_cons_list=1 ;
4250 ac_glyphs_debug=1 ;;
4251 # these enable particular checks
4252 stringbytes) ac_gc_check_stringbytes=1 ;;
4253 stringoverrun) ac_gc_check_string_overrun=1 ;;
4254 stringfreelist) ac_gc_check_string_free_list=1 ;;
4255 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4256 conslist) ac_gc_check_cons_list=1 ;;
4257 glyphs) ac_glyphs_debug=1 ;;
4258 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4259 esac
4260 done
4261 IFS="$ac_save_IFS"
4263 if test x$ac_enable_checking != x ; then
4265 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4268 if test x$ac_gc_check_stringbytes != x ; then
4270 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4273 if test x$ac_gc_check_string_overrun != x ; then
4275 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4278 if test x$ac_gc_check_string_free_list != x ; then
4280 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4283 if test x$ac_xmalloc_overrun != x ; then
4285 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4288 if test x$ac_gc_check_cons_list != x ; then
4290 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4293 if test x$ac_glyphs_debug != x ; then
4295 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4299 # Check whether --enable-check-lisp-object-type was given.
4300 if test "${enable_check_lisp_object_type+set}" = set; then :
4301 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4303 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4310 # Check whether --enable-profiling was given.
4311 if test "${enable_profiling+set}" = set; then :
4312 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4315 if test x$ac_enable_profiling != x ; then
4316 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4317 else
4318 PROFILING_CFLAGS=
4322 # Check whether --enable-autodepend was given.
4323 if test "${enable_autodepend+set}" = set; then :
4324 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4325 else
4326 ac_enable_autodepend=yes
4330 #### Make srcdir absolute, if it isn't already. It's important to
4331 #### avoid running the path through pwd unnecessarily, since pwd can
4332 #### give you automounter prefixes, which can go away. We do all this
4333 #### so Emacs can find its files when run uninstalled.
4334 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4335 unset CDPATH
4336 case "${srcdir}" in
4337 /* ) ;;
4339 ## We may be able to use the $PWD environment variable to make this
4340 ## absolute. But sometimes PWD is inaccurate.
4341 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4342 ## but that tested only for a well-formed and valid PWD,
4343 ## it did not object when PWD was well-formed and valid but just wrong.
4344 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4345 then
4346 srcdir="$PWD"
4347 else
4348 srcdir="`(cd ${srcdir}; pwd)`"
4351 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4352 esac
4354 #### Given the configuration name, set opsysfile to the
4355 #### name of s/*.h file we should use.
4357 ### Canonicalize the configuration name.
4359 # Make sure we can run config.sub.
4360 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4361 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4364 $as_echo_n "checking build system type... " >&6; }
4365 if test "${ac_cv_build+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_build_alias=$build_alias
4369 test "x$ac_build_alias" = x &&
4370 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4371 test "x$ac_build_alias" = x &&
4372 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4373 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4374 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4378 $as_echo "$ac_cv_build" >&6; }
4379 case $ac_cv_build in
4380 *-*-*) ;;
4381 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4382 esac
4383 build=$ac_cv_build
4384 ac_save_IFS=$IFS; IFS='-'
4385 set x $ac_cv_build
4386 shift
4387 build_cpu=$1
4388 build_vendor=$2
4389 shift; shift
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4392 build_os=$*
4393 IFS=$ac_save_IFS
4394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4398 $as_echo_n "checking host system type... " >&6; }
4399 if test "${ac_cv_host+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test "x$host_alias" = x; then
4403 ac_cv_host=$ac_cv_build
4404 else
4405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4406 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4411 $as_echo "$ac_cv_host" >&6; }
4412 case $ac_cv_host in
4413 *-*-*) ;;
4414 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4415 esac
4416 host=$ac_cv_host
4417 ac_save_IFS=$IFS; IFS='-'
4418 set x $ac_cv_host
4419 shift
4420 host_cpu=$1
4421 host_vendor=$2
4422 shift; shift
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4425 host_os=$*
4426 IFS=$ac_save_IFS
4427 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4430 canonical=$host
4431 configuration=${host_alias-${build_alias-$host}}
4435 ### If you add support for a new configuration, add code to this
4436 ### switch statement to recognize your configuration name and select
4437 ### the appropriate operating system file.
4439 ### You would hope that you could choose an s/*.h
4440 ### file based on the operating system portion. However, it turns out
4441 ### that each s/*.h file is pretty manufacturer-specific.
4442 ### So we basically have to have a special case for each
4443 ### configuration name.
4445 ### As far as handling version numbers on operating systems is
4446 ### concerned, make sure things will fail in a fixable way. If
4447 ### /etc/MACHINES doesn't say anything about version numbers, be
4448 ### prepared to handle anything reasonably. If version numbers
4449 ### matter, be sure /etc/MACHINES says something about it.
4451 opsys='' unported=no
4452 case "${canonical}" in
4454 ## GNU/Linux and similar ports
4455 *-*-linux* )
4456 opsys=gnu-linux
4459 ## FreeBSD ports
4460 *-*-freebsd* )
4461 opsys=freebsd
4464 ## FreeBSD kernel + glibc based userland
4465 *-*-kfreebsd*gnu* )
4466 opsys=gnu-kfreebsd
4469 ## NetBSD ports
4470 *-*-netbsd* )
4471 opsys=netbsd
4474 ## OpenBSD ports
4475 *-*-openbsd* )
4476 opsys=openbsd
4479 ## Apple Darwin / Mac OS X
4480 *-apple-darwin* )
4481 case "${canonical}" in
4482 i[3456]86-* ) ;;
4483 powerpc-* ) ;;
4484 x86_64-* ) ;;
4485 * ) unported=yes ;;
4486 esac
4487 opsys=darwin
4488 ## Use fink packages if available.
4489 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4490 ## if test -d /sw/include && test -d /sw/lib; then
4491 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4492 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4493 ## fi
4496 ## HP 9000 series 700 and 800, running HP/UX
4497 hppa*-hp-hpux10.2* )
4498 opsys=hpux10-20
4500 hppa*-hp-hpux1[1-9]* )
4501 opsys=hpux11
4502 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4505 ## IBM machines
4506 rs6000-ibm-aix4.[23]* )
4507 opsys=aix4-2
4509 powerpc-ibm-aix4.[23]* )
4510 opsys=aix4-2
4512 rs6000-ibm-aix[56]* )
4513 opsys=aix4-2
4515 powerpc-ibm-aix[56]* )
4516 opsys=aix4-2
4519 ## Silicon Graphics machines
4520 ## Iris 4D
4521 mips-sgi-irix6.5 )
4522 opsys=irix6-5
4523 # Without defining _LANGUAGE_C, things get masked out in the headers
4524 # so that, for instance, grepping for `free' in stdlib.h fails and
4525 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4526 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4529 ## Suns
4530 *-sun-solaris* \
4531 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4532 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4533 case "${canonical}" in
4534 i[3456]86-*-* ) ;;
4535 amd64-*-*|x86_64-*-*) ;;
4536 sparc* ) ;;
4537 * ) unported=yes ;;
4538 esac
4539 case "${canonical}" in
4540 *-sunos5.6* | *-solaris2.6* )
4541 opsys=sol2-6
4542 RANLIB="ar -ts"
4544 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4545 opsys=sol2-6
4546 emacs_check_sunpro_c=yes
4548 *-sunos5* | *-solaris* )
4549 opsys=sol2-10
4550 emacs_check_sunpro_c=yes
4552 esac
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* | *-sunos5* )
4556 if [ "x$CC" = x/usr/ucb/cc ]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4559 unset CC
4562 *) ;;
4563 esac
4566 ## Intel 386 machines where we don't care about the manufacturer.
4567 i[3456]86-*-* )
4568 case "${canonical}" in
4569 *-cygwin ) opsys=cygwin ;;
4570 *-darwin* ) opsys=darwin ;;
4571 *-sysv4.2uw* ) opsys=unixware ;;
4572 *-sysv5uw* ) opsys=unixware ;;
4573 *-sysv5OpenUNIX* ) opsys=unixware ;;
4574 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4575 esac
4579 unported=yes
4581 esac
4583 ### If the code above didn't choose an operating system, just choose
4584 ### an operating system based on the configuration name. You really
4585 ### only want to use this when you have no idea what the right
4586 ### operating system is; if you know what operating systems a machine
4587 ### runs, it's cleaner to make it explicit in the case statement
4588 ### above.
4589 if test x"${opsys}" = x; then
4590 case "${canonical}" in
4591 *-gnu* ) opsys=gnu ;;
4593 unported=yes
4595 esac
4600 if test $unported = yes; then
4601 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4602 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4605 opsysfile="s/${opsys}.h"
4608 #### Choose a compiler.
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646 $as_echo "$CC" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$ac_cv_prog_CC"; then
4655 ac_ct_CC=$CC
4656 # Extract the first word of "gcc", so it can be a program name with args.
4657 set dummy gcc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$ac_ct_CC"; then
4664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_CC="gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4684 if test -n "$ac_ct_CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4686 $as_echo "$ac_ct_CC" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4692 if test "x$ac_ct_CC" = x; then
4693 CC=""
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 CC=$ac_ct_CC
4703 else
4704 CC="$ac_cv_prog_CC"
4707 if test -z "$CC"; then
4708 if test -n "$ac_tool_prefix"; then
4709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}cc; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_CC+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_prog_CC="${ac_tool_prefix}cc"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4730 done
4731 done
4732 IFS=$as_save_IFS
4736 CC=$ac_cv_prog_CC
4737 if test -n "$CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4748 if test -z "$CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_CC+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 ac_prog_rejected=no
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4769 continue
4771 ac_cv_prog_CC="cc"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4779 if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_CC
4782 shift
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set CC to just the basename; use the full file name.
4787 shift
4788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4793 CC=$ac_cv_prog_CC
4794 if test -n "$CC"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4796 $as_echo "$CC" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4804 if test -z "$CC"; then
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in cl.exe
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_CC+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$CC"; then
4816 ac_cv_prog_CC="$CC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 CC=$ac_cv_prog_CC
4836 if test -n "$CC"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838 $as_echo "$CC" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 test -n "$CC" && break
4846 done
4848 if test -z "$CC"; then
4849 ac_ct_CC=$CC
4850 for ac_prog in cl.exe
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$ac_ct_CC"; then
4860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_CC="$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4880 if test -n "$ac_ct_CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4882 $as_echo "$ac_ct_CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$ac_ct_CC" && break
4890 done
4892 if test "x$ac_ct_CC" = x; then
4893 CC=""
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 CC=$ac_ct_CC
4908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4910 as_fn_error "no acceptable C compiler found in \$PATH
4911 See \`config.log' for more details." "$LINENO" 5; }
4913 # Provide some information about the compiler.
4914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4915 set X $ac_compile
4916 ac_compiler=$2
4917 for ac_option in --version -v -V -qversion; do
4918 { { ac_try="$ac_compiler $ac_option >&5"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924 $as_echo "$ac_try_echo"; } >&5
4925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4926 ac_status=$?
4927 if test -s conftest.err; then
4928 sed '10a\
4929 ... rest of stderr output deleted ...
4930 10q' conftest.err >conftest.er1
4931 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }
4936 done
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4942 main ()
4946 return 0;
4948 _ACEOF
4949 ac_clean_files_save=$ac_clean_files
4950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4951 # Try to create an executable without -o first, disregard a.out.
4952 # It will help us diagnose broken compilers, and finding out an intuition
4953 # of exeext.
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4955 $as_echo_n "checking whether the C compiler works... " >&6; }
4956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4958 # The possible output files:
4959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4961 ac_rmfiles=
4962 for ac_file in $ac_files
4964 case $ac_file in
4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4967 esac
4968 done
4969 rm -f $ac_rmfiles
4971 if { { ac_try="$ac_link_default"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977 $as_echo "$ac_try_echo"; } >&5
4978 (eval "$ac_link_default") 2>&5
4979 ac_status=$?
4980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }; then :
4982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4985 # so that the user can short-circuit this test for compilers unknown to
4986 # Autoconf.
4987 for ac_file in $ac_files ''
4989 test -f "$ac_file" || continue
4990 case $ac_file in
4991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4993 [ab].out )
4994 # We found the default executable, but exeext='' is most
4995 # certainly right.
4996 break;;
4997 *.* )
4998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4999 then :; else
5000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5002 # We set ac_cv_exeext here because the later test for it is not
5003 # safe: cross compilers may not add the suffix if given an `-o'
5004 # argument, so we may need to know it at that point already.
5005 # Even if this section looks crufty: it has the advantage of
5006 # actually working.
5007 break;;
5009 break;;
5010 esac
5011 done
5012 test "$ac_cv_exeext" = no && ac_cv_exeext=
5014 else
5015 ac_file=''
5017 if test -z "$ac_file"; then :
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 $as_echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 { as_fn_set_status 77
5026 as_fn_error "C compiler cannot create executables
5027 See \`config.log' for more details." "$LINENO" 5; }; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030 $as_echo "yes" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5033 $as_echo_n "checking for C compiler default output file name... " >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5035 $as_echo "$ac_file" >&6; }
5036 ac_exeext=$ac_cv_exeext
5038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5039 ac_clean_files=$ac_clean_files_save
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5041 $as_echo_n "checking for suffix of executables... " >&6; }
5042 if { { ac_try="$ac_link"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5048 $as_echo "$ac_try_echo"; } >&5
5049 (eval "$ac_link") 2>&5
5050 ac_status=$?
5051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5052 test $ac_status = 0; }; then :
5053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5055 # work properly (i.e., refer to `conftest.exe'), while it won't with
5056 # `rm'.
5057 for ac_file in conftest.exe conftest conftest.*; do
5058 test -f "$ac_file" || continue
5059 case $ac_file in
5060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5062 break;;
5063 * ) break;;
5064 esac
5065 done
5066 else
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5069 as_fn_error "cannot compute suffix of executables: cannot compile and link
5070 See \`config.log' for more details." "$LINENO" 5; }
5072 rm -f conftest conftest$ac_cv_exeext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5074 $as_echo "$ac_cv_exeext" >&6; }
5076 rm -f conftest.$ac_ext
5077 EXEEXT=$ac_cv_exeext
5078 ac_exeext=$EXEEXT
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <stdio.h>
5083 main ()
5085 FILE *f = fopen ("conftest.out", "w");
5086 return ferror (f) || fclose (f) != 0;
5089 return 0;
5091 _ACEOF
5092 ac_clean_files="$ac_clean_files conftest.out"
5093 # Check that the compiler produces executables we can run. If not, either
5094 # the compiler is broken, or we cross compile.
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5096 $as_echo_n "checking whether we are cross compiling... " >&6; }
5097 if test "$cross_compiling" != yes; then
5098 { { ac_try="$ac_link"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 $as_echo "$ac_try_echo"; } >&5
5105 (eval "$ac_link") 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }
5109 if { ac_try='./conftest$ac_cv_exeext'
5110 { { case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }; }; then
5120 cross_compiling=no
5121 else
5122 if test "$cross_compiling" = maybe; then
5123 cross_compiling=yes
5124 else
5125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127 as_fn_error "cannot run C compiled programs.
5128 If you meant to cross compile, use \`--host'.
5129 See \`config.log' for more details." "$LINENO" 5; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5134 $as_echo "$cross_compiling" >&6; }
5136 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5137 ac_clean_files=$ac_clean_files_save
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5139 $as_echo_n "checking for suffix of object files... " >&6; }
5140 if test "${ac_cv_objext+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5147 main ()
5151 return 0;
5153 _ACEOF
5154 rm -f conftest.o conftest.obj
5155 if { { ac_try="$ac_compile"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5161 $as_echo "$ac_try_echo"; } >&5
5162 (eval "$ac_compile") 2>&5
5163 ac_status=$?
5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165 test $ac_status = 0; }; then :
5166 for ac_file in conftest.o conftest.obj conftest.*; do
5167 test -f "$ac_file" || continue;
5168 case $ac_file in
5169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5171 break;;
5172 esac
5173 done
5174 else
5175 $as_echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5180 as_fn_error "cannot compute suffix of object files: cannot compile
5181 See \`config.log' for more details." "$LINENO" 5; }
5183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5186 $as_echo "$ac_cv_objext" >&6; }
5187 OBJEXT=$ac_cv_objext
5188 ac_objext=$OBJEXT
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5191 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5198 main ()
5200 #ifndef __GNUC__
5201 choke me
5202 #endif
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_compiler_gnu=yes
5210 else
5211 ac_compiler_gnu=no
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5219 if test $ac_compiler_gnu = yes; then
5220 GCC=yes
5221 else
5222 GCC=
5224 ac_test_CFLAGS=${CFLAGS+set}
5225 ac_save_CFLAGS=$CFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5227 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5228 if test "${ac_cv_prog_cc_g+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 ac_save_c_werror_flag=$ac_c_werror_flag
5232 ac_c_werror_flag=yes
5233 ac_cv_prog_cc_g=no
5234 CFLAGS="-g"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5239 main ()
5243 return 0;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247 ac_cv_prog_cc_g=yes
5248 else
5249 CFLAGS=""
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5263 else
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5265 CFLAGS="-g"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5270 main ()
5274 return 0;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_prog_cc_g=yes
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5288 $as_echo "$ac_cv_prog_cc_g" >&6; }
5289 if test "$ac_test_CFLAGS" = set; then
5290 CFLAGS=$ac_save_CFLAGS
5291 elif test $ac_cv_prog_cc_g = yes; then
5292 if test "$GCC" = yes; then
5293 CFLAGS="-g -O2"
5294 else
5295 CFLAGS="-g"
5297 else
5298 if test "$GCC" = yes; then
5299 CFLAGS="-O2"
5300 else
5301 CFLAGS=
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5306 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 ac_cv_prog_cc_c89=no
5310 ac_save_CC=$CC
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <stdarg.h>
5314 #include <stdio.h>
5315 #include <sys/types.h>
5316 #include <sys/stat.h>
5317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5318 struct buf { int x; };
5319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5320 static char *e (p, i)
5321 char **p;
5322 int i;
5324 return p[i];
5326 static char *f (char * (*g) (char **, int), char **p, ...)
5328 char *s;
5329 va_list v;
5330 va_start (v,p);
5331 s = g (p, va_arg (v,int));
5332 va_end (v);
5333 return s;
5336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5337 function prototypes and stuff, but not '\xHH' hex character constants.
5338 These don't provoke an error unfortunately, instead are silently treated
5339 as 'x'. The following induces an error, until -std is added to get
5340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5341 array size at least. It's necessary to write '\x00'==0 to get something
5342 that's true only with -std. */
5343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5346 inside strings and character constants. */
5347 #define FOO(x) 'x'
5348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5350 int test (int i, double x);
5351 struct s1 {int (*f) (int a);};
5352 struct s2 {int (*f) (double a);};
5353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5354 int argc;
5355 char **argv;
5357 main ()
5359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5361 return 0;
5363 _ACEOF
5364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5367 CC="$ac_save_CC $ac_arg"
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_prog_cc_c89=$ac_arg
5371 rm -f core conftest.err conftest.$ac_objext
5372 test "x$ac_cv_prog_cc_c89" != "xno" && break
5373 done
5374 rm -f conftest.$ac_ext
5375 CC=$ac_save_CC
5378 # AC_CACHE_VAL
5379 case "x$ac_cv_prog_cc_c89" in
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5382 $as_echo "none needed" >&6; } ;;
5383 xno)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5385 $as_echo "unsupported" >&6; } ;;
5387 CC="$CC $ac_cv_prog_cc_c89"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5390 esac
5391 if test "x$ac_cv_prog_cc_c89" != xno; then :
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400 DEPDIR="${am__leading_dot}deps"
5402 ac_config_commands="$ac_config_commands depfiles"
5405 am_make=${MAKE-make}
5406 cat > confinc << 'END'
5407 am__doit:
5408 @echo this is the am__doit target
5409 .PHONY: am__doit
5411 # If we don't find an include directive, just comment out the code.
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5413 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5414 am__include="#"
5415 am__quote=
5416 _am_result=none
5417 # First try GNU make style include.
5418 echo "include confinc" > confmf
5419 # Ignore all kinds of additional output from `make'.
5420 case `$am_make -s -f confmf 2> /dev/null` in #(
5421 *the\ am__doit\ target*)
5422 am__include=include
5423 am__quote=
5424 _am_result=GNU
5426 esac
5427 # Now try BSD make style include.
5428 if test "$am__include" = "#"; then
5429 echo '.include "confinc"' > confmf
5430 case `$am_make -s -f confmf 2> /dev/null` in #(
5431 *the\ am__doit\ target*)
5432 am__include=.include
5433 am__quote="\""
5434 _am_result=BSD
5436 esac
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5441 $as_echo "$_am_result" >&6; }
5442 rm -f confinc confmf
5444 # Check whether --enable-dependency-tracking was given.
5445 if test "${enable_dependency_tracking+set}" = set; then :
5446 enableval=$enable_dependency_tracking;
5449 if test "x$enable_dependency_tracking" != xno; then
5450 am_depcomp="$ac_aux_dir/depcomp"
5451 AMDEPBACKSLASH='\'
5453 if test "x$enable_dependency_tracking" != xno; then
5454 AMDEP_TRUE=
5455 AMDEP_FALSE='#'
5456 else
5457 AMDEP_TRUE='#'
5458 AMDEP_FALSE=
5463 depcc="$CC" am_compiler_list=
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5466 $as_echo_n "checking dependency style of $depcc... " >&6; }
5467 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5471 # We make a subdir and do the tests there. Otherwise we can end up
5472 # making bogus files that we don't know about and never remove. For
5473 # instance it was reported that on HP-UX the gcc test will end up
5474 # making a dummy file named `D' -- because `-MD' means `put the output
5475 # in D'.
5476 mkdir conftest.dir
5477 # Copy depcomp to subdir because otherwise we won't find it if we're
5478 # using a relative directory.
5479 cp "$am_depcomp" conftest.dir
5480 cd conftest.dir
5481 # We will build objects and dependencies in a subdirectory because
5482 # it helps to detect inapplicable dependency modes. For instance
5483 # both Tru64's cc and ICC support -MD to output dependencies as a
5484 # side effect of compilation, but ICC will put the dependencies in
5485 # the current directory while Tru64 will put them in the object
5486 # directory.
5487 mkdir sub
5489 am_cv_CC_dependencies_compiler_type=none
5490 if test "$am_compiler_list" = ""; then
5491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5493 am__universal=false
5494 case " $depcc " in #(
5495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5496 esac
5498 for depmode in $am_compiler_list; do
5499 # Setup a source with many dependencies, because some compilers
5500 # like to wrap large dependency lists on column 80 (with \), and
5501 # we should not choose a depcomp mode which is confused by this.
5503 # We need to recreate these files for each test, as the compiler may
5504 # overwrite some of them when testing with obscure command lines.
5505 # This happens at least with the AIX C compiler.
5506 : > sub/conftest.c
5507 for i in 1 2 3 4 5 6; do
5508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5510 # Solaris 8's {/usr,}/bin/sh.
5511 touch sub/conftst$i.h
5512 done
5513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5515 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5516 # mode. It turns out that the SunPro C++ compiler does not properly
5517 # handle `-M -o', and we need to detect this. Also, some Intel
5518 # versions had trouble with output in subdirs
5519 am__obj=sub/conftest.${OBJEXT-o}
5520 am__minus_obj="-o $am__obj"
5521 case $depmode in
5522 gcc)
5523 # This depmode causes a compiler race in universal mode.
5524 test "$am__universal" = false || continue
5526 nosideeffect)
5527 # after this tag, mechanisms are not by side-effect, so they'll
5528 # only be used when explicitly requested
5529 if test "x$enable_dependency_tracking" = xyes; then
5530 continue
5531 else
5532 break
5535 msvisualcpp | msvcmsys)
5536 # This compiler won't grok `-c -o', but also, the minuso test has
5537 # not run yet. These depmodes are late enough in the game, and
5538 # so weak that their functioning should not be impacted.
5539 am__obj=conftest.${OBJEXT-o}
5540 am__minus_obj=
5542 none) break ;;
5543 esac
5544 if depmode=$depmode \
5545 source=sub/conftest.c object=$am__obj \
5546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5548 >/dev/null 2>conftest.err &&
5549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5553 # icc doesn't choke on unknown options, it will just issue warnings
5554 # or remarks (even with -Werror). So we grep stderr for any message
5555 # that says an option was ignored or not supported.
5556 # When given -MP, icc 7.0 and 7.1 complain thusly:
5557 # icc: Command line warning: ignoring option '-M'; no argument required
5558 # The diagnosis changed in icc 8.0:
5559 # icc: Command line remark: option '-MP' not supported
5560 if (grep 'ignoring option' conftest.err ||
5561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5562 am_cv_CC_dependencies_compiler_type=$depmode
5563 break
5566 done
5568 cd ..
5569 rm -rf conftest.dir
5570 else
5571 am_cv_CC_dependencies_compiler_type=none
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5576 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5580 test "x$enable_dependency_tracking" != xno \
5581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5582 am__fastdepCC_TRUE=
5583 am__fastdepCC_FALSE='#'
5584 else
5585 am__fastdepCC_TRUE='#'
5586 am__fastdepCC_FALSE=
5590 if test "x$CC" != xcc; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5592 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5595 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5597 set dummy $CC; ac_cc=`$as_echo "$2" |
5598 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5599 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5606 main ()
5610 return 0;
5612 _ACEOF
5613 # Make sure it works both with $CC and with simple cc.
5614 # We do the test twice because some compilers refuse to overwrite an
5615 # existing .o file with -o, though they will create one.
5616 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5617 rm -f conftest2.*
5618 if { { case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5623 $as_echo "$ac_try_echo"; } >&5
5624 (eval "$ac_try") 2>&5
5625 ac_status=$?
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; } &&
5628 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5633 $as_echo "$ac_try_echo"; } >&5
5634 (eval "$ac_try") 2>&5
5635 ac_status=$?
5636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637 test $ac_status = 0; };
5638 then
5639 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5640 if test "x$CC" != xcc; then
5641 # Test first that cc exists at all.
5642 if { ac_try='cc -c conftest.$ac_ext >&5'
5643 { { case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5648 $as_echo "$ac_try_echo"; } >&5
5649 (eval "$ac_try") 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; }; }; then
5653 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5654 rm -f conftest2.*
5655 if { { case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660 $as_echo "$ac_try_echo"; } >&5
5661 (eval "$ac_try") 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; } &&
5665 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5670 $as_echo "$ac_try_echo"; } >&5
5671 (eval "$ac_try") 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; };
5675 then
5676 # cc works too.
5678 else
5679 # cc exists but doesn't like -o.
5680 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5684 else
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5687 rm -f core conftest*
5690 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692 $as_echo "yes" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5697 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5701 # FIXME: we rely on the cache variable name because
5702 # there is no other way.
5703 set dummy $CC
5704 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5705 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5706 if test "$am_t" != yes; then
5707 # Losing compiler, so override with the script.
5708 # FIXME: It is wrong to rewrite CC.
5709 # But if we don't then we get into trouble of one sort or another.
5710 # A longer-term fix would be to have automake use am__CC in this case,
5711 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5712 CC="$am_aux_dir/compile $CC"
5717 if test x$GCC = xyes; then
5718 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5719 else
5720 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5723 # Initialize gnulib right after choosing the compiler.
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5732 # On Suns, sometimes $CPP names a directory.
5733 if test -n "$CPP" && test -d "$CPP"; then
5734 CPP=
5736 if test -z "$CPP"; then
5737 if test "${ac_cv_prog_CPP+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 # Double quotes because CPP needs to be expanded
5741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5743 ac_preproc_ok=false
5744 for ac_c_preproc_warn_flag in '' yes
5746 # Use a header file that comes with gcc, so configuring glibc
5747 # with a fresh cross-compiler works.
5748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 # <limits.h> exists even on freestanding compilers.
5750 # On the NeXT, cc -E runs the code through the compiler's parser,
5751 # not just through cpp. "Syntax error" is here to catch this case.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #ifdef __STDC__
5755 # include <limits.h>
5756 #else
5757 # include <assert.h>
5758 #endif
5759 Syntax error
5760 _ACEOF
5761 if ac_fn_c_try_cpp "$LINENO"; then :
5763 else
5764 # Broken: fails on valid input.
5765 continue
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <ac_nonexistent.h>
5774 _ACEOF
5775 if ac_fn_c_try_cpp "$LINENO"; then :
5776 # Broken: success on invalid input.
5777 continue
5778 else
5779 # Passes both tests.
5780 ac_preproc_ok=:
5781 break
5783 rm -f conftest.err conftest.$ac_ext
5785 done
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then :
5789 break
5792 done
5793 ac_cv_prog_CPP=$CPP
5796 CPP=$ac_cv_prog_CPP
5797 else
5798 ac_cv_prog_CPP=$CPP
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5801 $as_echo "$CPP" >&6; }
5802 ac_preproc_ok=false
5803 for ac_c_preproc_warn_flag in '' yes
5805 # Use a header file that comes with gcc, so configuring glibc
5806 # with a fresh cross-compiler works.
5807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 # <limits.h> exists even on freestanding compilers.
5809 # On the NeXT, cc -E runs the code through the compiler's parser,
5810 # not just through cpp. "Syntax error" is here to catch this case.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #ifdef __STDC__
5814 # include <limits.h>
5815 #else
5816 # include <assert.h>
5817 #endif
5818 Syntax error
5819 _ACEOF
5820 if ac_fn_c_try_cpp "$LINENO"; then :
5822 else
5823 # Broken: fails on valid input.
5824 continue
5826 rm -f conftest.err conftest.$ac_ext
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <ac_nonexistent.h>
5833 _ACEOF
5834 if ac_fn_c_try_cpp "$LINENO"; then :
5835 # Broken: success on invalid input.
5836 continue
5837 else
5838 # Passes both tests.
5839 ac_preproc_ok=:
5840 break
5842 rm -f conftest.err conftest.$ac_ext
5844 done
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then :
5849 else
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5853 See \`config.log' for more details." "$LINENO" 5; }
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5865 if test "${ac_cv_path_GREP+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -z "$GREP"; then
5869 ac_path_GREP_found=false
5870 # Loop through the user's path and test for each of PROGNAME-LIST
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_prog in grep ggrep; do
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5880 # Check for GNU ac_path_GREP and select it if it is found.
5881 # Check for GNU $ac_path_GREP
5882 case `"$ac_path_GREP" --version 2>&1` in
5883 *GNU*)
5884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5886 ac_count=0
5887 $as_echo_n 0123456789 >"conftest.in"
5888 while :
5890 cat "conftest.in" "conftest.in" >"conftest.tmp"
5891 mv "conftest.tmp" "conftest.in"
5892 cp "conftest.in" "conftest.nl"
5893 $as_echo 'GREP' >> "conftest.nl"
5894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896 as_fn_arith $ac_count + 1 && ac_count=$as_val
5897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5898 # Best one so far, save it but keep looking for a better one
5899 ac_cv_path_GREP="$ac_path_GREP"
5900 ac_path_GREP_max=$ac_count
5902 # 10*(2^10) chars as input seems more than enough
5903 test $ac_count -gt 10 && break
5904 done
5905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 esac
5908 $ac_path_GREP_found && break 3
5909 done
5910 done
5911 done
5912 IFS=$as_save_IFS
5913 if test -z "$ac_cv_path_GREP"; then
5914 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5916 else
5917 ac_cv_path_GREP=$GREP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5922 $as_echo "$ac_cv_path_GREP" >&6; }
5923 GREP="$ac_cv_path_GREP"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5927 $as_echo_n "checking for egrep... " >&6; }
5928 if test "${ac_cv_path_EGREP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5932 then ac_cv_path_EGREP="$GREP -E"
5933 else
5934 if test -z "$EGREP"; then
5935 ac_path_EGREP_found=false
5936 # Loop through the user's path and test for each of PROGNAME-LIST
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_prog in egrep; do
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5946 # Check for GNU ac_path_EGREP and select it if it is found.
5947 # Check for GNU $ac_path_EGREP
5948 case `"$ac_path_EGREP" --version 2>&1` in
5949 *GNU*)
5950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5952 ac_count=0
5953 $as_echo_n 0123456789 >"conftest.in"
5954 while :
5956 cat "conftest.in" "conftest.in" >"conftest.tmp"
5957 mv "conftest.tmp" "conftest.in"
5958 cp "conftest.in" "conftest.nl"
5959 $as_echo 'EGREP' >> "conftest.nl"
5960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5962 as_fn_arith $ac_count + 1 && ac_count=$as_val
5963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5964 # Best one so far, save it but keep looking for a better one
5965 ac_cv_path_EGREP="$ac_path_EGREP"
5966 ac_path_EGREP_max=$ac_count
5968 # 10*(2^10) chars as input seems more than enough
5969 test $ac_count -gt 10 && break
5970 done
5971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5972 esac
5974 $ac_path_EGREP_found && break 3
5975 done
5976 done
5977 done
5978 IFS=$as_save_IFS
5979 if test -z "$ac_cv_path_EGREP"; then
5980 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5982 else
5983 ac_cv_path_EGREP=$EGREP
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5989 $as_echo "$ac_cv_path_EGREP" >&6; }
5990 EGREP="$ac_cv_path_EGREP"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5996 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5997 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6004 #ifdef __ACK__
6005 Amsterdam
6006 #endif
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6011 gl_cv_c_amsterdam_compiler=yes
6012 else
6013 gl_cv_c_amsterdam_compiler=no
6015 rm -f conftest*
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6020 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6021 if test -z "$AR"; then
6022 if test $gl_cv_c_amsterdam_compiler = yes; then
6023 AR='cc -c.a'
6024 if test -z "$ARFLAGS"; then
6025 ARFLAGS='-o'
6027 else
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}ar; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_AR+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$AR"; then
6037 ac_cv_prog_AR="$AR" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_AR="${ac_tool_prefix}ar"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6056 AR=$ac_cv_prog_AR
6057 if test -n "$AR"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6059 $as_echo "$AR" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_AR"; then
6068 ac_ct_AR=$AR
6069 # Extract the first word of "ar", so it can be a program name with args.
6070 set dummy ar; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_AR"; then
6077 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_AR="ar"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6097 if test -n "$ac_ct_AR"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6099 $as_echo "$ac_ct_AR" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_AR" = x; then
6106 AR="ar"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 AR=$ac_ct_AR
6116 else
6117 AR="$ac_cv_prog_AR"
6120 if test -z "$ARFLAGS"; then
6121 ARFLAGS='cru'
6124 else
6125 if test -z "$ARFLAGS"; then
6126 ARFLAGS='cru'
6131 if test -z "$RANLIB"; then
6132 if test $gl_cv_c_amsterdam_compiler = yes; then
6133 RANLIB=':'
6134 else
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6157 done
6158 done
6159 IFS=$as_save_IFS
6163 RANLIB=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6166 $as_echo "$RANLIB" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175 ac_ct_RANLIB=$RANLIB
6176 # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$ac_ct_RANLIB"; then
6184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_RANLIB="ranlib"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6197 done
6198 done
6199 IFS=$as_save_IFS
6203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6206 $as_echo "$ac_ct_RANLIB" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6212 if test "x$ac_ct_RANLIB" = x; then
6213 RANLIB=":"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221 RANLIB=$ac_ct_RANLIB
6223 else
6224 RANLIB="$ac_cv_prog_RANLIB"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6232 $as_echo_n "checking for ANSI C header files... " >&6; }
6233 if test "${ac_cv_header_stdc+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6244 main ()
6248 return 0;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 ac_cv_header_stdc=yes
6253 else
6254 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <string.h>
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "memchr" >/dev/null 2>&1; then :
6268 else
6269 ac_cv_header_stdc=no
6271 rm -f conftest*
6275 if test $ac_cv_header_stdc = yes; then
6276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <stdlib.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then :
6285 else
6286 ac_cv_header_stdc=no
6288 rm -f conftest*
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then :
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <ctype.h>
6300 #include <stdlib.h>
6301 #if ((' ' & 0x0FF) == 0x020)
6302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 #else
6305 # define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6310 #endif
6312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 main ()
6316 int i;
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6320 return 2;
6321 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_run "$LINENO"; then :
6326 else
6327 ac_cv_header_stdc=no
6329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6330 conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6346 do :
6347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6350 eval as_val=\$$as_ac_Header
6351 if test "x$as_val" = x""yes; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6358 done
6364 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6365 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6366 MINIX=yes
6367 else
6368 MINIX=
6372 if test "$MINIX" = yes; then
6374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6380 $as_echo "#define _MINIX 1" >>confdefs.h
6384 case "$host_os" in
6385 hpux*)
6387 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6390 esac
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6401 # define __EXTENSIONS__ 1
6402 $ac_includes_default
6404 main ()
6408 return 0;
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412 ac_cv_safe_to_define___extensions__=yes
6413 else
6414 ac_cv_safe_to_define___extensions__=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6420 test $ac_cv_safe_to_define___extensions__ = yes &&
6421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6425 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6431 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6440 # Check whether --enable-largefile was given.
6441 if test "${enable_largefile+set}" = set; then :
6442 enableval=$enable_largefile;
6445 if test "$enable_largefile" != no; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6448 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6449 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 ac_cv_sys_largefile_CC=no
6453 if test "$GCC" != yes; then
6454 ac_save_CC=$CC
6455 while :; do
6456 # IRIX 6.2 and later do not support large files by default,
6457 # so use the C compiler's -n32 option if that helps.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <sys/types.h>
6461 /* Check that off_t can represent 2**63 - 1 correctly.
6462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6463 since some C++ compilers masquerading as C compilers
6464 incorrectly reject 9223372036854775807. */
6465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6467 && LARGE_OFF_T % 2147483647 == 1)
6468 ? 1 : -1];
6470 main ()
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 break
6480 rm -f core conftest.err conftest.$ac_objext
6481 CC="$CC -n32"
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 ac_cv_sys_largefile_CC=' -n32'; break
6485 rm -f core conftest.err conftest.$ac_objext
6486 break
6487 done
6488 CC=$ac_save_CC
6489 rm -f conftest.$ac_ext
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6494 if test "$ac_cv_sys_largefile_CC" != no; then
6495 CC=$CC$ac_cv_sys_largefile_CC
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6500 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 while :; do
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6514 ? 1 : -1];
6516 main ()
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 ac_cv_sys_file_offset_bits=no; break
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #define _FILE_OFFSET_BITS 64
6530 #include <sys/types.h>
6531 /* Check that off_t can represent 2**63 - 1 correctly.
6532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6533 since some C++ compilers masquerading as C compilers
6534 incorrectly reject 9223372036854775807. */
6535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6537 && LARGE_OFF_T % 2147483647 == 1)
6538 ? 1 : -1];
6540 main ()
6544 return 0;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 ac_cv_sys_file_offset_bits=64; break
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 ac_cv_sys_file_offset_bits=unknown
6552 break
6553 done
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6556 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6557 case $ac_cv_sys_file_offset_bits in #(
6558 no | unknown) ;;
6560 cat >>confdefs.h <<_ACEOF
6561 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6562 _ACEOF
6564 esac
6565 rm -rf conftest*
6566 if test $ac_cv_sys_file_offset_bits = unknown; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6568 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6569 if test "${ac_cv_sys_large_files+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 while :; do
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6583 ? 1 : -1];
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_sys_large_files=no; break
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #define _LARGE_FILES 1
6599 #include <sys/types.h>
6600 /* Check that off_t can represent 2**63 - 1 correctly.
6601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6602 since some C++ compilers masquerading as C compilers
6603 incorrectly reject 9223372036854775807. */
6604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6606 && LARGE_OFF_T % 2147483647 == 1)
6607 ? 1 : -1];
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_sys_large_files=1; break
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 ac_cv_sys_large_files=unknown
6621 break
6622 done
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6625 $as_echo "$ac_cv_sys_large_files" >&6; }
6626 case $ac_cv_sys_large_files in #(
6627 no | unknown) ;;
6629 cat >>confdefs.h <<_ACEOF
6630 #define _LARGE_FILES $ac_cv_sys_large_files
6631 _ACEOF
6633 esac
6634 rm -rf conftest*
6640 case $ac_cv_prog_cc_stdc in #(
6641 no) :
6642 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6643 *) :
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6645 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6646 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_cv_prog_cc_c99=no
6650 ac_save_CC=$CC
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <stdarg.h>
6654 #include <stdbool.h>
6655 #include <stdlib.h>
6656 #include <wchar.h>
6657 #include <stdio.h>
6659 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6660 #define debug(...) fprintf (stderr, __VA_ARGS__)
6661 #define showlist(...) puts (#__VA_ARGS__)
6662 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6663 static void
6664 test_varargs_macros (void)
6666 int x = 1234;
6667 int y = 5678;
6668 debug ("Flag");
6669 debug ("X = %d\n", x);
6670 showlist (The first, second, and third items.);
6671 report (x>y, "x is %d but y is %d", x, y);
6674 // Check long long types.
6675 #define BIG64 18446744073709551615ull
6676 #define BIG32 4294967295ul
6677 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6678 #if !BIG_OK
6679 your preprocessor is broken;
6680 #endif
6681 #if BIG_OK
6682 #else
6683 your preprocessor is broken;
6684 #endif
6685 static long long int bignum = -9223372036854775807LL;
6686 static unsigned long long int ubignum = BIG64;
6688 struct incomplete_array
6690 int datasize;
6691 double data[];
6694 struct named_init {
6695 int number;
6696 const wchar_t *name;
6697 double average;
6700 typedef const char *ccp;
6702 static inline int
6703 test_restrict (ccp restrict text)
6705 // See if C++-style comments work.
6706 // Iterate through items via the restricted pointer.
6707 // Also check for declarations in for loops.
6708 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6709 continue;
6710 return 0;
6713 // Check varargs and va_copy.
6714 static void
6715 test_varargs (const char *format, ...)
6717 va_list args;
6718 va_start (args, format);
6719 va_list args_copy;
6720 va_copy (args_copy, args);
6722 const char *str;
6723 int number;
6724 float fnumber;
6726 while (*format)
6728 switch (*format++)
6730 case 's': // string
6731 str = va_arg (args_copy, const char *);
6732 break;
6733 case 'd': // int
6734 number = va_arg (args_copy, int);
6735 break;
6736 case 'f': // float
6737 fnumber = va_arg (args_copy, double);
6738 break;
6739 default:
6740 break;
6743 va_end (args_copy);
6744 va_end (args);
6748 main ()
6751 // Check bool.
6752 _Bool success = false;
6754 // Check restrict.
6755 if (test_restrict ("String literal") == 0)
6756 success = true;
6757 char *restrict newvar = "Another string";
6759 // Check varargs.
6760 test_varargs ("s, d' f .", "string", 65, 34.234);
6761 test_varargs_macros ();
6763 // Check flexible array members.
6764 struct incomplete_array *ia =
6765 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6766 ia->datasize = 10;
6767 for (int i = 0; i < ia->datasize; ++i)
6768 ia->data[i] = i * 1.234;
6770 // Check named initializers.
6771 struct named_init ni = {
6772 .number = 34,
6773 .name = L"Test wide string",
6774 .average = 543.34343,
6777 ni.number = 58;
6779 int dynamic_array[ni.number];
6780 dynamic_array[ni.number - 1] = 543;
6782 // work around unused variable warnings
6783 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6784 || dynamic_array[ni.number - 1] != 543);
6787 return 0;
6789 _ACEOF
6790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6792 CC="$ac_save_CC $ac_arg"
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_prog_cc_c99=$ac_arg
6796 rm -f core conftest.err conftest.$ac_objext
6797 test "x$ac_cv_prog_cc_c99" != "xno" && break
6798 done
6799 rm -f conftest.$ac_ext
6800 CC=$ac_save_CC
6803 # AC_CACHE_VAL
6804 case "x$ac_cv_prog_cc_c99" in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807 $as_echo "none needed" >&6; } ;;
6808 xno)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810 $as_echo "unsupported" >&6; } ;;
6812 CC="$CC $ac_cv_prog_cc_c99"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6814 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6815 esac
6816 if test "x$ac_cv_prog_cc_c99" != xno; then :
6817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6821 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 ac_cv_prog_cc_c89=no
6825 ac_save_CC=$CC
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <stdarg.h>
6829 #include <stdio.h>
6830 #include <sys/types.h>
6831 #include <sys/stat.h>
6832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6833 struct buf { int x; };
6834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6835 static char *e (p, i)
6836 char **p;
6837 int i;
6839 return p[i];
6841 static char *f (char * (*g) (char **, int), char **p, ...)
6843 char *s;
6844 va_list v;
6845 va_start (v,p);
6846 s = g (p, va_arg (v,int));
6847 va_end (v);
6848 return s;
6851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6852 function prototypes and stuff, but not '\xHH' hex character constants.
6853 These don't provoke an error unfortunately, instead are silently treated
6854 as 'x'. The following induces an error, until -std is added to get
6855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6856 array size at least. It's necessary to write '\x00'==0 to get something
6857 that's true only with -std. */
6858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6861 inside strings and character constants. */
6862 #define FOO(x) 'x'
6863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6865 int test (int i, double x);
6866 struct s1 {int (*f) (int a);};
6867 struct s2 {int (*f) (double a);};
6868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6869 int argc;
6870 char **argv;
6872 main ()
6874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6876 return 0;
6878 _ACEOF
6879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6882 CC="$ac_save_CC $ac_arg"
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884 ac_cv_prog_cc_c89=$ac_arg
6886 rm -f core conftest.err conftest.$ac_objext
6887 test "x$ac_cv_prog_cc_c89" != "xno" && break
6888 done
6889 rm -f conftest.$ac_ext
6890 CC=$ac_save_CC
6893 # AC_CACHE_VAL
6894 case "x$ac_cv_prog_cc_c89" in
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6897 $as_echo "none needed" >&6; } ;;
6898 xno)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6900 $as_echo "unsupported" >&6; } ;;
6902 CC="$CC $ac_cv_prog_cc_c89"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6905 esac
6906 if test "x$ac_cv_prog_cc_c89" != xno; then :
6907 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6908 else
6909 ac_cv_prog_cc_stdc=no
6914 esac
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6916 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6917 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6921 case $ac_cv_prog_cc_stdc in #(
6922 no) :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6924 $as_echo "unsupported" >&6; } ;; #(
6925 '') :
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6927 $as_echo "none needed" >&6; } ;; #(
6928 *) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6930 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6931 esac
6935 # Code from module alloca-opt:
6936 # Code from module allocator:
6937 # Code from module careadlinkat:
6938 # Code from module clock-time:
6939 # Code from module crypto/md5:
6940 # Code from module crypto/sha1:
6941 # Code from module crypto/sha256:
6942 # Code from module crypto/sha512:
6943 # Code from module dosname:
6944 # Code from module dtoastr:
6945 # Code from module dtotimespec:
6946 # Code from module dup2:
6947 # Code from module extensions:
6949 # Code from module filemode:
6950 # Code from module getloadavg:
6951 # Code from module getopt-gnu:
6952 # Code from module getopt-posix:
6953 # Code from module gettext-h:
6954 # Code from module gettime:
6955 # Code from module gettimeofday:
6956 # Code from module ignore-value:
6957 # Code from module include_next:
6958 # Code from module intprops:
6959 # Code from module inttypes-incomplete:
6960 # Code from module largefile:
6962 # Code from module lstat:
6963 # Code from module manywarnings:
6964 # Code from module mktime:
6965 # Code from module multiarch:
6966 # Code from module nocrash:
6967 # Code from module pathmax:
6968 # Code from module pselect:
6969 # Code from module pthread_sigmask:
6970 # Code from module readlink:
6971 # Code from module signal-h:
6972 # Code from module snippet/_Noreturn:
6973 # Code from module snippet/arg-nonnull:
6974 # Code from module snippet/c++defs:
6975 # Code from module snippet/warn-on-use:
6976 # Code from module socklen:
6977 # Code from module ssize_t:
6978 # Code from module stat:
6979 # Code from module stat-time:
6980 # Code from module stdalign:
6981 # Code from module stdarg:
6985 # Code from module stdbool:
6986 # Code from module stddef:
6987 # Code from module stdint:
6988 # Code from module stdio:
6989 # Code from module stdlib:
6990 # Code from module strftime:
6991 # Code from module strtoimax:
6992 # Code from module strtoll:
6993 # Code from module strtoull:
6994 # Code from module strtoumax:
6995 # Code from module symlink:
6996 # Code from module sys_select:
6997 # Code from module sys_stat:
6998 # Code from module sys_time:
6999 # Code from module time:
7000 # Code from module time_r:
7001 # Code from module timespec:
7002 # Code from module timespec-add:
7003 # Code from module timespec-sub:
7004 # Code from module u64:
7005 # Code from module unistd:
7006 # Code from module utimens:
7007 # Code from module verify:
7008 # Code from module warnings:
7011 # Check whether --enable-gcc-warnings was given.
7012 if test "${enable_gcc_warnings+set}" = set; then :
7013 enableval=$enable_gcc_warnings; case $enableval in
7014 yes|no) ;;
7015 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7016 esac
7017 gl_gcc_warnings=$enableval
7018 else
7019 gl_gcc_warnings=no
7024 # Check whether --enable-link-time-optimization was given.
7025 if test "${enable_link_time_optimization+set}" = set; then :
7026 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7028 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7029 ac_lto_supported=no
7030 if test x$GCC = xyes; then
7031 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7032 if test x$CPUS != x; then
7033 LTO="-flto=$CPUS"
7034 else
7035 LTO="-flto"
7037 old_CFLAGS=$CFLAGS
7038 CFLAGS="$CFLAGS $LTO"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7043 main ()
7047 return 0;
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051 ac_lto_supported=yes
7052 else
7053 ac_lto_supported=no
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 CFLAGS="$old_CFLAGS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7059 $as_echo "$ac_lto_supported" >&6; }
7060 if test "$ac_lto_supported" = "yes"; then
7061 CFLAGS="$CFLAGS $LTO"
7067 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7068 # ------------------------------------------------
7069 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7070 # Otherwise, run RUN-IF-NOT-FOUND.
7073 # When compiling with GCC, prefer -isystem to -I when including system
7074 # include files, to avoid generating useless diagnostics for the files.
7075 if test "$gl_gcc_warnings" != yes; then
7076 isystem='-I'
7077 else
7078 isystem='-isystem '
7080 # This, $nw, is the list of warnings we disable.
7083 case $with_x_toolkit in
7084 lucid | athena | motif)
7085 # Old toolkits mishandle 'const'.
7086 nw="$nw -Wwrite-strings"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7090 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7091 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7095 gl_save_compiler_FLAGS="$CFLAGS"
7096 as_fn_append CFLAGS " -Werror"
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7101 main ()
7105 return 0;
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 gl_cv_warn_c__Werror=yes
7110 else
7111 gl_cv_warn_c__Werror=no
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114 CFLAGS="$gl_save_compiler_FLAGS"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7118 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7119 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7120 as_fn_append WERROR_CFLAGS " -Werror"
7125 esac
7128 nw="$nw -Waggregate-return" # anachronistic
7129 nw="$nw -Wlong-long" # C90 is anachronistic
7130 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7131 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7132 nw="$nw -Wtraditional" # Warns on #elif which we use often
7133 nw="$nw -Wcast-qual" # Too many warnings for now
7134 nw="$nw -Wconversion" # Too many warnings for now
7135 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7136 nw="$nw -Wsign-conversion" # Too many warnings for now
7137 nw="$nw -Woverlength-strings" # Not a problem these days
7138 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7139 nw="$nw -Wpadded" # Our structs are not padded
7140 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7141 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7142 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7143 nw="$nw -Wvla" # warnings in gettext.h
7144 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7145 nw="$nw -Wswitch-enum" # Too many warnings for now
7146 nw="$nw -Wswitch-default" # Too many warnings for now
7147 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7148 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7150 # Emacs doesn't care about shadowing; see
7151 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7152 nw="$nw -Wshadow"
7154 # The following lines should be removable at some point.
7155 nw="$nw -Wstack-protector"
7156 nw="$nw -Wstrict-overflow"
7157 nw="$nw -Wsuggest-attribute=const"
7158 nw="$nw -Wsuggest-attribute=pure"
7160 # Some loops can't be optimized with -O1,
7161 # so remove -Wunsafe-loop-optimizations.
7162 if echo "$CFLAGS" | $EGREP 'O1' 1>/dev/null; then
7163 nw="$nw -Wunsafe-loop-optimizations"
7168 if test -n "$GCC"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7171 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7172 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7176 gl_save_CFLAGS="$CFLAGS"
7177 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7182 main ()
7186 return 0;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 gl_cv_cc_nomfi_supported=yes
7191 else
7192 gl_cv_cc_nomfi_supported=no
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 CFLAGS="$gl_save_CFLAGS"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7199 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7201 if test "$gl_cv_cc_nomfi_supported" = yes; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7203 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7204 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7208 gl_save_CFLAGS="$CFLAGS"
7209 CFLAGS="$CFLAGS -W -Werror"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 void f (void)
7214 typedef struct { int a; int b; } s_t;
7215 s_t s1 = { 0, };
7219 main ()
7223 return 0;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 gl_cv_cc_nomfi_needed=no
7228 else
7229 gl_cv_cc_nomfi_needed=yes
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 CFLAGS="$gl_save_CFLAGS"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7237 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7241 gl_manywarn_set=
7242 for gl_manywarn_item in \
7243 -Wall \
7244 -W \
7245 -Wformat-y2k \
7246 -Wformat-nonliteral \
7247 -Wformat-security \
7248 -Winit-self \
7249 -Wmissing-include-dirs \
7250 -Wswitch-default \
7251 -Wswitch-enum \
7252 -Wunused \
7253 -Wunknown-pragmas \
7254 -Wstrict-aliasing \
7255 -Wstrict-overflow \
7256 -Wsystem-headers \
7257 -Wfloat-equal \
7258 -Wtraditional \
7259 -Wtraditional-conversion \
7260 -Wdeclaration-after-statement \
7261 -Wundef \
7262 -Wshadow \
7263 -Wunsafe-loop-optimizations \
7264 -Wpointer-arith \
7265 -Wbad-function-cast \
7266 -Wc++-compat \
7267 -Wcast-qual \
7268 -Wcast-align \
7269 -Wwrite-strings \
7270 -Wconversion \
7271 -Wsign-conversion \
7272 -Wlogical-op \
7273 -Waggregate-return \
7274 -Wstrict-prototypes \
7275 -Wold-style-definition \
7276 -Wmissing-prototypes \
7277 -Wmissing-declarations \
7278 -Wmissing-noreturn \
7279 -Wmissing-format-attribute \
7280 -Wpacked \
7281 -Wpadded \
7282 -Wredundant-decls \
7283 -Wnested-externs \
7284 -Wunreachable-code \
7285 -Winline \
7286 -Winvalid-pch \
7287 -Wlong-long \
7288 -Wvla \
7289 -Wvolatile-register-var \
7290 -Wdisabled-optimization \
7291 -Wstack-protector \
7292 -Woverlength-strings \
7293 -Wbuiltin-macro-redefined \
7294 -Wmudflap \
7295 -Wpacked-bitfield-compat \
7296 -Wsync-nand \
7297 ; do
7298 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7299 done
7300 # The following are not documented in the manual but are included in
7301 # output from gcc --help=warnings.
7302 for gl_manywarn_item in \
7303 -Wattributes \
7304 -Wcoverage-mismatch \
7305 -Wunused-macros \
7306 ; do
7307 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7308 done
7309 # More warnings from gcc 4.6.2 --help=warnings.
7310 for gl_manywarn_item in \
7311 -Wabi \
7312 -Wcpp \
7313 -Wdeprecated \
7314 -Wdeprecated-declarations \
7315 -Wdiv-by-zero \
7316 -Wdouble-promotion \
7317 -Wendif-labels \
7318 -Wextra \
7319 -Wformat-contains-nul \
7320 -Wformat-extra-args \
7321 -Wformat-zero-length \
7322 -Wformat=2 \
7323 -Wmultichar \
7324 -Wnormalized=nfc \
7325 -Woverflow \
7326 -Wpointer-to-int-cast \
7327 -Wpragmas \
7328 -Wsuggest-attribute=const \
7329 -Wsuggest-attribute=noreturn \
7330 -Wsuggest-attribute=pure \
7331 -Wtrampolines \
7332 ; do
7333 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7334 done
7336 # Disable the missing-field-initializers warning if needed
7337 if test "$gl_cv_cc_nomfi_needed" = yes; then
7338 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7341 ws=$gl_manywarn_set
7344 gl_warn_set=
7345 set x $ws; shift
7346 for gl_warn_item
7348 case " $nw " in
7349 *" $gl_warn_item "*)
7352 gl_warn_set="$gl_warn_set $gl_warn_item"
7354 esac
7355 done
7356 ws=$gl_warn_set
7358 for w in $ws; do
7359 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7361 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7362 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7366 gl_save_compiler_FLAGS="$CFLAGS"
7367 as_fn_append CFLAGS " $w"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7372 main ()
7376 return 0;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 eval "$as_gl_Warn=yes"
7381 else
7382 eval "$as_gl_Warn=no"
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 CFLAGS="$gl_save_compiler_FLAGS"
7388 eval ac_res=\$$as_gl_Warn
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7390 $as_echo "$ac_res" >&6; }
7391 eval as_val=\$$as_gl_Warn
7392 if test "x$as_val" = x""yes; then :
7393 as_fn_append WARN_CFLAGS " $w"
7397 done
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7399 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7400 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7404 gl_save_compiler_FLAGS="$CFLAGS"
7405 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 gl_cv_warn_c__Wno_missing_field_initializers=yes
7419 else
7420 gl_cv_warn_c__Wno_missing_field_initializers=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CFLAGS="$gl_save_compiler_FLAGS"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7427 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7428 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7429 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7432 # We need this one
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7434 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7435 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7439 gl_save_compiler_FLAGS="$CFLAGS"
7440 as_fn_append CFLAGS " -Wno-sign-compare"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7445 main ()
7449 return 0;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 gl_cv_warn_c__Wno_sign_compare=yes
7454 else
7455 gl_cv_warn_c__Wno_sign_compare=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 CFLAGS="$gl_save_compiler_FLAGS"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7462 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7463 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7464 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7467 # Too many warnings for now
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7469 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7470 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7474 gl_save_compiler_FLAGS="$CFLAGS"
7475 as_fn_append CFLAGS " -Wno-type-limits"
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7480 main ()
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 gl_cv_warn_c__Wno_type_limits=yes
7489 else
7490 gl_cv_warn_c__Wno_type_limits=no
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 CFLAGS="$gl_save_compiler_FLAGS"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7497 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7498 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7499 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7502 # Too many warnings for now
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7504 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7505 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7509 gl_save_compiler_FLAGS="$CFLAGS"
7510 as_fn_append CFLAGS " -Wno-switch"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7515 main ()
7519 return 0;
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 gl_cv_warn_c__Wno_switch=yes
7524 else
7525 gl_cv_warn_c__Wno_switch=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 CFLAGS="$gl_save_compiler_FLAGS"
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7532 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7533 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7534 as_fn_append WARN_CFLAGS " -Wno-switch"
7537 # Too many warnings for now
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7539 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7540 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7544 gl_save_compiler_FLAGS="$CFLAGS"
7545 as_fn_append CFLAGS " -Wno-unused-parameter"
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7550 main ()
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 gl_cv_warn_c__Wno_unused_parameter=yes
7559 else
7560 gl_cv_warn_c__Wno_unused_parameter=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 CFLAGS="$gl_save_compiler_FLAGS"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7567 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7568 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7569 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7572 # Too many warnings for now
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7574 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7575 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7579 gl_save_compiler_FLAGS="$CFLAGS"
7580 as_fn_append CFLAGS " -Wno-format-nonliteral"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7585 main ()
7589 return 0;
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593 gl_cv_warn_c__Wno_format_nonliteral=yes
7594 else
7595 gl_cv_warn_c__Wno_format_nonliteral=no
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 CFLAGS="$gl_save_compiler_FLAGS"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7602 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7603 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7604 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7609 # In spite of excluding -Wlogical-op above, it is enabled, as of
7610 # gcc 4.5.0 20090517.
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7612 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7613 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7617 gl_save_compiler_FLAGS="$CFLAGS"
7618 as_fn_append CFLAGS " -Wno-logical-op"
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7623 main ()
7627 return 0;
7629 _ACEOF
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631 gl_cv_warn_c__Wno_logical_op=yes
7632 else
7633 gl_cv_warn_c__Wno_logical_op=no
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 CFLAGS="$gl_save_compiler_FLAGS"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7640 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7641 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7642 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7648 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7649 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7653 gl_save_compiler_FLAGS="$CFLAGS"
7654 as_fn_append CFLAGS " -fdiagnostics-show-option"
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7659 main ()
7663 return 0;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 gl_cv_warn_c__fdiagnostics_show_option=yes
7668 else
7669 gl_cv_warn_c__fdiagnostics_show_option=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 CFLAGS="$gl_save_compiler_FLAGS"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7676 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7677 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7678 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7683 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7684 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7688 gl_save_compiler_FLAGS="$CFLAGS"
7689 as_fn_append CFLAGS " -funit-at-a-time"
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7694 main ()
7698 return 0;
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 gl_cv_warn_c__funit_at_a_time=yes
7703 else
7704 gl_cv_warn_c__funit_at_a_time=no
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 CFLAGS="$gl_save_compiler_FLAGS"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7711 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7712 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7713 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7719 $as_echo "#define lint 1" >>confdefs.h
7722 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7725 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7728 # We use a slightly smaller set of warning options for lib/.
7729 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7731 nw="$nw -Wunused-macros"
7734 gl_warn_set=
7735 set x $WARN_CFLAGS; shift
7736 for gl_warn_item
7738 case " $nw " in
7739 *" $gl_warn_item "*)
7742 gl_warn_set="$gl_warn_set $gl_warn_item"
7744 esac
7745 done
7746 GNULIB_WARN_CFLAGS=$gl_warn_set
7754 # Extract the first word of "install-info", so it can be a program name with args.
7755 set dummy install-info; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 case $INSTALL_INFO in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7781 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7783 esac
7785 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7786 if test -n "$INSTALL_INFO"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7788 $as_echo "$INSTALL_INFO" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 # Extract the first word of "gzip", so it can be a program name with args.
7796 set dummy gzip; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 case $GZIP_PROG in
7803 [\\/]* | ?:[\\/]*)
7804 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7820 IFS=$as_save_IFS
7823 esac
7825 GZIP_PROG=$ac_cv_path_GZIP_PROG
7826 if test -n "$GZIP_PROG"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7828 $as_echo "$GZIP_PROG" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7836 if test $opsys = gnu-linux; then
7837 # Extract the first word of "paxctl", so it can be a program name with args.
7838 set dummy paxctl; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 case $PAXCTL in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7860 done
7861 done
7862 IFS=$as_save_IFS
7865 esac
7867 PAXCTL=$ac_cv_path_PAXCTL
7868 if test -n "$PAXCTL"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7870 $as_echo "$PAXCTL" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7879 ## Need makeinfo >= 4.7 (?) to build the manuals.
7880 # Extract the first word of "makeinfo", so it can be a program name with args.
7881 set dummy makeinfo; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 case $MAKEINFO in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7907 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7909 esac
7911 MAKEINFO=$ac_cv_path_MAKEINFO
7912 if test -n "$MAKEINFO"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7914 $as_echo "$MAKEINFO" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7921 if test "$MAKEINFO" != "no" && \
7922 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
7923 MAKEINFO=no
7926 ## Makeinfo is unusual. For a released Emacs, the manuals are
7927 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7928 ## therefore in the category of "special tools" not normally required, which
7929 ## configure does not have to check for (eg autoconf itself).
7930 ## In a Bazaar checkout on the other hand, the manuals are not included.
7931 ## So makeinfo is a requirement to build from Bazaar, and configure
7932 ## should test for it as it does for any other build requirement.
7933 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7934 ## with pre-built manuals, from a Bazaar checkout.
7935 HAVE_MAKEINFO=yes
7937 if test "$MAKEINFO" = "no"; then
7938 MAKEINFO=makeinfo
7939 if test "x${with_makeinfo}" = "xno"; then
7940 HAVE_MAKEINFO=no
7941 elif test ! -e $srcdir/info/emacs; then
7942 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7943 source tree does not seem to have pre-built manuals in the \`info' directory.
7944 Either install a suitable version of makeinfo, or re-run configure
7945 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7950 INFO_EXT=.info
7951 INFO_OPTS=--no-split
7956 if test x$GCC = xyes; then
7957 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7958 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7959 else
7960 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7961 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7965 late_LDFLAGS=$LDFLAGS
7966 if test x$GCC = xyes; then
7967 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7968 else
7969 LDFLAGS="$LDFLAGS -znocombreloc"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7973 $as_echo_n "checking for -znocombreloc... " >&6; }
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7978 main ()
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989 LDFLAGS=$late_LDFLAGS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7997 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7998 case "$opsys" in
7999 your-opsys-here) CANNOT_DUMP=yes ;;
8000 esac
8002 test "$CANNOT_DUMP" = "yes" && \
8004 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8010 UNEXEC_OBJ=unexelf.o
8011 case "$opsys" in
8012 # MSDOS uses unexcoff.o
8013 # MSWindows uses unexw32.o
8014 aix4-2)
8015 UNEXEC_OBJ=unexaix.o
8017 cygwin)
8018 UNEXEC_OBJ=unexcw.o
8020 darwin)
8021 UNEXEC_OBJ=unexmacosx.o
8023 hpux10-20 | hpux11)
8024 UNEXEC_OBJ=unexhp9k800.o
8026 sol2-10)
8027 # Use the Solaris dldump() function, called from unexsol.c, to dump
8028 # emacs, instead of the generic ELF dump code found in unexelf.c.
8029 # The resulting binary has a complete symbol table, and is better
8030 # for debugging and other observability tools (debuggers, pstack, etc).
8032 # If you encounter a problem using dldump(), please consider sending
8033 # a message to the OpenSolaris tools-linking mailing list:
8034 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8036 # It is likely that dldump() works with older Solaris too, but this has
8037 # not been tested, so for now this change is for Solaris 10 or newer.
8038 UNEXEC_OBJ=unexsol.o
8040 esac
8042 LD_SWITCH_SYSTEM=
8043 case "$opsys" in
8044 freebsd)
8045 ## Let `ld' find image libs and similar things in /usr/local/lib.
8046 ## The system compiler, GCC, has apparently been modified to not
8047 ## look there, contrary to what a stock GCC would do.
8048 ### It's not our place to do this. See bug#10313#17.
8049 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8053 gnu-linux)
8054 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8055 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8058 netbsd)
8059 ### It's not our place to do this. See bug#10313#17.
8060 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8064 openbsd)
8065 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8066 ## otherwise Emacs dumps core on elf systems.
8067 LD_SWITCH_SYSTEM="-Z"
8069 esac
8072 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8074 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8075 ## which has not been defined yet. When this was handled with cpp,
8076 ## it was expanded to null when configure sourced the s/*.h file.
8077 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8078 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8079 ## (or somesuch), but because it is supposed to go at the _front_
8080 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8081 ## Compare with the gnu-linux case below, which added to the end
8082 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8083 ## LD_SWITCH_SYSTEM_TEMACS.
8084 case "$opsys" in
8085 netbsd|openbsd)
8086 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8087 esac
8090 C_SWITCH_MACHINE=
8091 case $canonical in
8092 alpha*)
8093 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8094 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8098 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8099 ## With ELF, make sure that all common symbols get allocated to in the
8100 ## data section. Otherwise, the dump of temacs may miss variables in
8101 ## the shared library that have been initialized. For example, with
8102 ## GNU libc, __malloc_initialized would normally be resolved to the
8103 ## shared library's .bss section, which is fatal.
8104 if test "x$GCC" = "xyes"; then
8105 C_SWITCH_MACHINE="-fno-common"
8106 else
8107 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8109 else
8110 UNEXEC_OBJ=unexalpha.o
8113 esac
8118 C_SWITCH_SYSTEM=
8119 ## Some programs in src produce warnings saying certain subprograms
8120 ## are too complex and need a MAXMEM value greater than 2000 for
8121 ## additional optimization. --nils@exp-math.uni-essen.de
8122 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8123 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8124 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8125 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8129 LIBS_SYSTEM=
8130 case "$opsys" in
8131 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8132 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8134 freebsd) LIBS_SYSTEM="-lutil" ;;
8136 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8138 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8140 ## Motif needs -lgen.
8141 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8142 esac
8146 ### Make sure subsequent tests use flags consistent with the build flags.
8148 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8149 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8150 else
8151 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8154 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8156 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8160 LIB_MATH=-lm
8161 LIB_STANDARD=
8162 START_FILES=
8163 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8165 case $opsys in
8166 cygwin )
8167 LIB_MATH=
8168 START_FILES='pre-crt0.o'
8170 darwin )
8171 ## Adding -lm confuses the dynamic linker, so omit it.
8172 LIB_MATH=
8173 START_FILES='pre-crt0.o'
8175 freebsd )
8176 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8177 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8178 SYSTEM_TYPE=berkeley-unix
8180 gnu-linux | gnu-kfreebsd )
8181 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8182 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8184 hpux10-20 | hpux11 )
8185 LIB_STANDARD=-lc
8186 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8188 netbsd | openbsd )
8189 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8190 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8191 SYSTEM_TYPE=berkeley-unix
8194 sol2* | unixware )
8195 SYSTEM_TYPE=usg-unix-v
8198 esac
8203 cat >>confdefs.h <<_ACEOF
8204 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8205 _ACEOF
8208 crt_files=
8210 for file in x $LIB_STANDARD $START_FILES; do
8211 case "$file" in
8212 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8213 esac
8214 done
8216 if test "x$crt_files" != x; then
8218 ## If user specified a crt-dir, use that unconditionally.
8219 crt_gcc=no
8221 if test "X$CRT_DIR" = "X"; then
8223 CRT_DIR=/usr/lib # default
8225 case "$canonical" in
8226 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8227 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8228 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8229 ## For anything else (eg /usr/lib32), it is up the user to specify
8230 ## the location (bug#5655).
8231 ## Test for crtn.o, not just the directory, because sometimes the
8232 ## directory exists but does not have the relevant files (bug#1287).
8233 ## FIXME better to test for binary compatibility somehow.
8234 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8237 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8238 esac
8240 case "$opsys" in
8241 hpux10-20) CRT_DIR=/lib ;;
8242 esac
8244 test "x${GCC}" = xyes && crt_gcc=yes
8246 fi # CRT_DIR = ""
8248 crt_missing=
8250 for file in $crt_files; do
8252 ## If we're using gcc, try to determine it automatically by asking
8253 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8254 ## system-dependent default from above.]
8255 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8257 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8258 case "$crt_file" in
8259 */*)
8260 CRT_DIR=`$as_dirname -- "$crt_file" ||
8261 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X"$crt_file" : 'X\(//\)[^/]' \| \
8263 X"$crt_file" : 'X\(//\)$' \| \
8264 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8265 $as_echo X"$crt_file" |
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8267 s//\1/
8270 /^X\(\/\/\)[^/].*/{
8271 s//\1/
8274 /^X\(\/\/\)$/{
8275 s//\1/
8278 /^X\(\/\).*/{
8279 s//\1/
8282 s/.*/./; q'`
8284 esac
8287 crt_gcc=no
8289 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8290 done # $crt_files
8292 test "x$crt_missing" = x || \
8293 as_fn_error "Required file(s) not found:$crt_missing
8294 Try using the --with-crt-dir option." "$LINENO" 5
8296 fi # crt_files != ""
8300 case $opsys in
8301 netbsd | openbsd )
8302 if test -f $CRT_DIR/crti.o; then
8304 test -f $CRT_DIR/crtn.o || \
8305 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8307 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8308 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8311 esac
8314 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8315 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8316 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8328 LIBC_FATAL_STDERR_=1
8329 export LIBC_FATAL_STDERR_
8331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8332 # for constant arguments. Useless!
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8334 $as_echo_n "checking for working alloca.h... " >&6; }
8335 if test "${ac_cv_working_alloca_h+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <alloca.h>
8342 main ()
8344 char *p = (char *) alloca (2 * sizeof (int));
8345 if (p) return 0;
8347 return 0;
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 ac_cv_working_alloca_h=yes
8352 else
8353 ac_cv_working_alloca_h=no
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8359 $as_echo "$ac_cv_working_alloca_h" >&6; }
8360 if test $ac_cv_working_alloca_h = yes; then
8362 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8367 $as_echo_n "checking for alloca... " >&6; }
8368 if test "${ac_cv_func_alloca_works+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #ifdef __GNUC__
8374 # define alloca __builtin_alloca
8375 #else
8376 # ifdef _MSC_VER
8377 # include <malloc.h>
8378 # define alloca _alloca
8379 # else
8380 # ifdef HAVE_ALLOCA_H
8381 # include <alloca.h>
8382 # else
8383 # ifdef _AIX
8384 #pragma alloca
8385 # else
8386 # ifndef alloca /* predefined by HP cc +Olibcalls */
8387 char *alloca ();
8388 # endif
8389 # endif
8390 # endif
8391 # endif
8392 #endif
8395 main ()
8397 char *p = (char *) alloca (1);
8398 if (p) return 0;
8400 return 0;
8402 _ACEOF
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 ac_cv_func_alloca_works=yes
8405 else
8406 ac_cv_func_alloca_works=no
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8412 $as_echo "$ac_cv_func_alloca_works" >&6; }
8414 if test $ac_cv_func_alloca_works = yes; then
8416 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8418 else
8419 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8420 # that cause trouble. Some versions do not even contain alloca or
8421 # contain a buggy version. If you still want to use their alloca,
8422 # use ar to extract alloca.o from them instead of compiling alloca.c.
8428 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8430 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8434 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8435 if test "${ac_cv_os_cray+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #if defined CRAY && ! defined CRAY2
8441 webecray
8442 #else
8443 wenotbecray
8444 #endif
8446 _ACEOF
8447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8448 $EGREP "webecray" >/dev/null 2>&1; then :
8449 ac_cv_os_cray=yes
8450 else
8451 ac_cv_os_cray=no
8453 rm -f conftest*
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8457 $as_echo "$ac_cv_os_cray" >&6; }
8458 if test $ac_cv_os_cray = yes; then
8459 for ac_func in _getb67 GETB67 getb67; do
8460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8462 eval as_val=\$$as_ac_var
8463 if test "x$as_val" = x""yes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define CRAY_STACKSEG_END $ac_func
8467 _ACEOF
8469 break
8472 done
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8476 $as_echo_n "checking stack direction for C alloca... " >&6; }
8477 if test "${ac_cv_c_stack_direction+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test "$cross_compiling" = yes; then :
8481 ac_cv_c_stack_direction=0
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8487 find_stack_direction (int *addr, int depth)
8489 int dir, dummy = 0;
8490 if (! addr)
8491 addr = &dummy;
8492 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8493 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8494 return dir + dummy;
8498 main (int argc, char **argv)
8500 return find_stack_direction (0, argc + !argv + 20) < 0;
8502 _ACEOF
8503 if ac_fn_c_try_run "$LINENO"; then :
8504 ac_cv_c_stack_direction=1
8505 else
8506 ac_cv_c_stack_direction=-1
8508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8509 conftest.$ac_objext conftest.beam conftest.$ac_ext
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8514 $as_echo "$ac_cv_c_stack_direction" >&6; }
8515 cat >>confdefs.h <<_ACEOF
8516 #define STACK_DIRECTION $ac_cv_c_stack_direction
8517 _ACEOF
8525 for ac_func in $ac_func_list
8526 do :
8527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8529 eval as_val=\$$as_ac_var
8530 if test "x$as_val" = x""yes; then :
8531 cat >>confdefs.h <<_ACEOF
8532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8533 _ACEOF
8536 done
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8542 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8543 if test "${ac_cv_c_bigendian+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 ac_cv_c_bigendian=unknown
8547 # See if we're dealing with a universal compiler.
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #ifndef __APPLE_CC__
8551 not a universal capable compiler
8552 #endif
8553 typedef int dummy;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8558 # Check for potential -arch flags. It is not universal unless
8559 # there are at least two -arch flags with different values.
8560 ac_arch=
8561 ac_prev=
8562 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8563 if test -n "$ac_prev"; then
8564 case $ac_word in
8565 i?86 | x86_64 | ppc | ppc64)
8566 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8567 ac_arch=$ac_word
8568 else
8569 ac_cv_c_bigendian=universal
8570 break
8573 esac
8574 ac_prev=
8575 elif test "x$ac_word" = "x-arch"; then
8576 ac_prev=arch
8578 done
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 if test $ac_cv_c_bigendian = unknown; then
8582 # See if sys/param.h defines the BYTE_ORDER macro.
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8589 main ()
8591 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8592 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8593 && LITTLE_ENDIAN)
8594 bogus endian macros
8595 #endif
8598 return 0;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 # It does; now see whether it defined to BIG_ENDIAN or not.
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8606 #include <sys/param.h>
8609 main ()
8611 #if BYTE_ORDER != BIG_ENDIAN
8612 not big endian
8613 #endif
8616 return 0;
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 ac_cv_c_bigendian=yes
8621 else
8622 ac_cv_c_bigendian=no
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 if test $ac_cv_c_bigendian = unknown; then
8629 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <limits.h>
8635 main ()
8637 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8638 bogus endian macros
8639 #endif
8642 return 0;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 # It does; now see whether it defined to _BIG_ENDIAN or not.
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <limits.h>
8652 main ()
8654 #ifndef _BIG_ENDIAN
8655 not big endian
8656 #endif
8659 return 0;
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 ac_cv_c_bigendian=yes
8664 else
8665 ac_cv_c_bigendian=no
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 if test $ac_cv_c_bigendian = unknown; then
8672 # Compile a test program.
8673 if test "$cross_compiling" = yes; then :
8674 # Try to guess by grepping values from an object file.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 short int ascii_mm[] =
8678 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8679 short int ascii_ii[] =
8680 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8681 int use_ascii (int i) {
8682 return ascii_mm[i] + ascii_ii[i];
8684 short int ebcdic_ii[] =
8685 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8686 short int ebcdic_mm[] =
8687 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8688 int use_ebcdic (int i) {
8689 return ebcdic_mm[i] + ebcdic_ii[i];
8691 extern int foo;
8694 main ()
8696 return use_ascii (foo) == use_ebcdic (foo);
8698 return 0;
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8703 ac_cv_c_bigendian=yes
8705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8706 if test "$ac_cv_c_bigendian" = unknown; then
8707 ac_cv_c_bigendian=no
8708 else
8709 # finding both strings is unlikely to happen, but who knows?
8710 ac_cv_c_bigendian=unknown
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 $ac_includes_default
8720 main ()
8723 /* Are we little or big endian? From Harbison&Steele. */
8724 union
8726 long int l;
8727 char c[sizeof (long int)];
8728 } u;
8729 u.l = 1;
8730 return u.c[sizeof (long int) - 1] == 1;
8733 return 0;
8735 _ACEOF
8736 if ac_fn_c_try_run "$LINENO"; then :
8737 ac_cv_c_bigendian=no
8738 else
8739 ac_cv_c_bigendian=yes
8741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8742 conftest.$ac_objext conftest.beam conftest.$ac_ext
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8748 $as_echo "$ac_cv_c_bigendian" >&6; }
8749 case $ac_cv_c_bigendian in #(
8750 yes)
8751 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8752 ;; #(
8754 ;; #(
8755 universal)
8757 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8759 ;; #(
8761 as_fn_error "unknown endianness
8762 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8763 esac
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8767 $as_echo_n "checking for inline... " >&6; }
8768 if test "${ac_cv_c_inline+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 ac_cv_c_inline=no
8772 for ac_kw in inline __inline__ __inline; do
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #ifndef __cplusplus
8776 typedef int foo_t;
8777 static $ac_kw foo_t static_foo () {return 0; }
8778 $ac_kw foo_t foo () {return 0; }
8779 #endif
8781 _ACEOF
8782 if ac_fn_c_try_compile "$LINENO"; then :
8783 ac_cv_c_inline=$ac_kw
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 test "$ac_cv_c_inline" != no && break
8787 done
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8791 $as_echo "$ac_cv_c_inline" >&6; }
8793 case $ac_cv_c_inline in
8794 inline | yes) ;;
8796 case $ac_cv_c_inline in
8797 no) ac_val=;;
8798 *) ac_val=$ac_cv_c_inline;;
8799 esac
8800 cat >>confdefs.h <<_ACEOF
8801 #ifndef __cplusplus
8802 #define inline $ac_val
8803 #endif
8804 _ACEOF
8806 esac
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8810 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8811 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 /* On HP-UX before 11.23, strtold returns a struct instead of
8817 long double. Reject implementations like that, by requiring
8818 compatibility with the C99 prototype. */
8819 #include <stdlib.h>
8820 static long double (*p) (char const *, char **) = strtold;
8821 static long double
8822 test (char const *nptr, char **endptr)
8824 long double r;
8825 r = strtold (nptr, endptr);
8826 return r;
8829 main ()
8831 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8833 return 0;
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837 gl_cv_func_c99_strtold=yes
8838 else
8839 gl_cv_func_c99_strtold=no
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8845 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8846 if test $gl_cv_func_c99_strtold = yes; then
8848 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8853 GNULIB_CHDIR=0;
8854 GNULIB_CHOWN=0;
8855 GNULIB_CLOSE=0;
8856 GNULIB_DUP=0;
8857 GNULIB_DUP2=0;
8858 GNULIB_DUP3=0;
8859 GNULIB_ENVIRON=0;
8860 GNULIB_EUIDACCESS=0;
8861 GNULIB_FACCESSAT=0;
8862 GNULIB_FCHDIR=0;
8863 GNULIB_FCHOWNAT=0;
8864 GNULIB_FDATASYNC=0;
8865 GNULIB_FSYNC=0;
8866 GNULIB_FTRUNCATE=0;
8867 GNULIB_GETCWD=0;
8868 GNULIB_GETDOMAINNAME=0;
8869 GNULIB_GETDTABLESIZE=0;
8870 GNULIB_GETGROUPS=0;
8871 GNULIB_GETHOSTNAME=0;
8872 GNULIB_GETLOGIN=0;
8873 GNULIB_GETLOGIN_R=0;
8874 GNULIB_GETPAGESIZE=0;
8875 GNULIB_GETUSERSHELL=0;
8876 GNULIB_GROUP_MEMBER=0;
8877 GNULIB_ISATTY=0;
8878 GNULIB_LCHOWN=0;
8879 GNULIB_LINK=0;
8880 GNULIB_LINKAT=0;
8881 GNULIB_LSEEK=0;
8882 GNULIB_PIPE=0;
8883 GNULIB_PIPE2=0;
8884 GNULIB_PREAD=0;
8885 GNULIB_PWRITE=0;
8886 GNULIB_READ=0;
8887 GNULIB_READLINK=0;
8888 GNULIB_READLINKAT=0;
8889 GNULIB_RMDIR=0;
8890 GNULIB_SETHOSTNAME=0;
8891 GNULIB_SLEEP=0;
8892 GNULIB_SYMLINK=0;
8893 GNULIB_SYMLINKAT=0;
8894 GNULIB_TTYNAME_R=0;
8895 GNULIB_UNISTD_H_NONBLOCKING=0;
8896 GNULIB_UNISTD_H_SIGPIPE=0;
8897 GNULIB_UNLINK=0;
8898 GNULIB_UNLINKAT=0;
8899 GNULIB_USLEEP=0;
8900 GNULIB_WRITE=0;
8901 HAVE_CHOWN=1;
8902 HAVE_DUP2=1;
8903 HAVE_DUP3=1;
8904 HAVE_EUIDACCESS=1;
8905 HAVE_FACCESSAT=1;
8906 HAVE_FCHDIR=1;
8907 HAVE_FCHOWNAT=1;
8908 HAVE_FDATASYNC=1;
8909 HAVE_FSYNC=1;
8910 HAVE_FTRUNCATE=1;
8911 HAVE_GETDTABLESIZE=1;
8912 HAVE_GETGROUPS=1;
8913 HAVE_GETHOSTNAME=1;
8914 HAVE_GETLOGIN=1;
8915 HAVE_GETPAGESIZE=1;
8916 HAVE_GROUP_MEMBER=1;
8917 HAVE_LCHOWN=1;
8918 HAVE_LINK=1;
8919 HAVE_LINKAT=1;
8920 HAVE_PIPE=1;
8921 HAVE_PIPE2=1;
8922 HAVE_PREAD=1;
8923 HAVE_PWRITE=1;
8924 HAVE_READLINK=1;
8925 HAVE_READLINKAT=1;
8926 HAVE_SETHOSTNAME=1;
8927 HAVE_SLEEP=1;
8928 HAVE_SYMLINK=1;
8929 HAVE_SYMLINKAT=1;
8930 HAVE_UNLINKAT=1;
8931 HAVE_USLEEP=1;
8932 HAVE_DECL_ENVIRON=1;
8933 HAVE_DECL_FCHDIR=1;
8934 HAVE_DECL_FDATASYNC=1;
8935 HAVE_DECL_GETDOMAINNAME=1;
8936 HAVE_DECL_GETLOGIN_R=1;
8937 HAVE_DECL_GETPAGESIZE=1;
8938 HAVE_DECL_GETUSERSHELL=1;
8939 HAVE_DECL_SETHOSTNAME=1;
8940 HAVE_DECL_TTYNAME_R=1;
8941 HAVE_OS_H=0;
8942 HAVE_SYS_PARAM_H=0;
8943 REPLACE_CHOWN=0;
8944 REPLACE_CLOSE=0;
8945 REPLACE_DUP=0;
8946 REPLACE_DUP2=0;
8947 REPLACE_FCHOWNAT=0;
8948 REPLACE_FTRUNCATE=0;
8949 REPLACE_GETCWD=0;
8950 REPLACE_GETDOMAINNAME=0;
8951 REPLACE_GETLOGIN_R=0;
8952 REPLACE_GETGROUPS=0;
8953 REPLACE_GETPAGESIZE=0;
8954 REPLACE_ISATTY=0;
8955 REPLACE_LCHOWN=0;
8956 REPLACE_LINK=0;
8957 REPLACE_LINKAT=0;
8958 REPLACE_LSEEK=0;
8959 REPLACE_PREAD=0;
8960 REPLACE_PWRITE=0;
8961 REPLACE_READ=0;
8962 REPLACE_READLINK=0;
8963 REPLACE_RMDIR=0;
8964 REPLACE_SLEEP=0;
8965 REPLACE_SYMLINK=0;
8966 REPLACE_TTYNAME_R=0;
8967 REPLACE_UNLINK=0;
8968 REPLACE_UNLINKAT=0;
8969 REPLACE_USLEEP=0;
8970 REPLACE_WRITE=0;
8971 UNISTD_H_HAVE_WINSOCK2_H=0;
8972 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8976 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8977 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8983 #include <sys/types.h>
8984 #include <sys/stat.h>
8986 main ()
8988 struct stat s; s.st_dm_mode;
8990 return 0;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 ac_cv_struct_st_dm_mode=yes
8995 else
8996 ac_cv_struct_st_dm_mode=no
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
9001 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
9003 if test $ac_cv_struct_st_dm_mode = yes; then
9005 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
9010 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
9011 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
9012 ac_have_decl=1
9013 else
9014 ac_have_decl=0
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_DECL_STRMODE $ac_have_decl
9019 _ACEOF
9022 GNULIB__EXIT=0;
9023 GNULIB_ATOLL=0;
9024 GNULIB_CALLOC_POSIX=0;
9025 GNULIB_CANONICALIZE_FILE_NAME=0;
9026 GNULIB_GETLOADAVG=0;
9027 GNULIB_GETSUBOPT=0;
9028 GNULIB_GRANTPT=0;
9029 GNULIB_MALLOC_POSIX=0;
9030 GNULIB_MBTOWC=0;
9031 GNULIB_MKDTEMP=0;
9032 GNULIB_MKOSTEMP=0;
9033 GNULIB_MKOSTEMPS=0;
9034 GNULIB_MKSTEMP=0;
9035 GNULIB_MKSTEMPS=0;
9036 GNULIB_POSIX_OPENPT=0;
9037 GNULIB_PTSNAME=0;
9038 GNULIB_PTSNAME_R=0;
9039 GNULIB_PUTENV=0;
9040 GNULIB_RANDOM=0;
9041 GNULIB_RANDOM_R=0;
9042 GNULIB_REALLOC_POSIX=0;
9043 GNULIB_REALPATH=0;
9044 GNULIB_RPMATCH=0;
9045 GNULIB_SETENV=0;
9046 GNULIB_STRTOD=0;
9047 GNULIB_STRTOLL=0;
9048 GNULIB_STRTOULL=0;
9049 GNULIB_SYSTEM_POSIX=0;
9050 GNULIB_UNLOCKPT=0;
9051 GNULIB_UNSETENV=0;
9052 GNULIB_WCTOMB=0;
9053 HAVE__EXIT=1;
9054 HAVE_ATOLL=1;
9055 HAVE_CANONICALIZE_FILE_NAME=1;
9056 HAVE_DECL_GETLOADAVG=1;
9057 HAVE_GETSUBOPT=1;
9058 HAVE_GRANTPT=1;
9059 HAVE_MKDTEMP=1;
9060 HAVE_MKOSTEMP=1;
9061 HAVE_MKOSTEMPS=1;
9062 HAVE_MKSTEMP=1;
9063 HAVE_MKSTEMPS=1;
9064 HAVE_POSIX_OPENPT=1;
9065 HAVE_PTSNAME=1;
9066 HAVE_PTSNAME_R=1;
9067 HAVE_RANDOM=1;
9068 HAVE_RANDOM_H=1;
9069 HAVE_RANDOM_R=1;
9070 HAVE_REALPATH=1;
9071 HAVE_RPMATCH=1;
9072 HAVE_SETENV=1;
9073 HAVE_DECL_SETENV=1;
9074 HAVE_STRTOD=1;
9075 HAVE_STRTOLL=1;
9076 HAVE_STRTOULL=1;
9077 HAVE_STRUCT_RANDOM_DATA=1;
9078 HAVE_SYS_LOADAVG_H=0;
9079 HAVE_UNLOCKPT=1;
9080 HAVE_DECL_UNSETENV=1;
9081 REPLACE_CALLOC=0;
9082 REPLACE_CANONICALIZE_FILE_NAME=0;
9083 REPLACE_MALLOC=0;
9084 REPLACE_MBTOWC=0;
9085 REPLACE_MKSTEMP=0;
9086 REPLACE_PTSNAME_R=0;
9087 REPLACE_PUTENV=0;
9088 REPLACE_RANDOM_R=0;
9089 REPLACE_REALLOC=0;
9090 REPLACE_REALPATH=0;
9091 REPLACE_SETENV=0;
9092 REPLACE_STRTOD=0;
9093 REPLACE_UNSETENV=0;
9094 REPLACE_WCTOMB=0;
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9099 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9100 if test "${gl_cv_have_include_next+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 rm -rf conftestd1a conftestd1b conftestd2
9104 mkdir conftestd1a conftestd1b conftestd2
9105 cat <<EOF > conftestd1a/conftest.h
9106 #define DEFINED_IN_CONFTESTD1
9107 #include_next <conftest.h>
9108 #ifdef DEFINED_IN_CONFTESTD2
9109 int foo;
9110 #else
9111 #error "include_next doesn't work"
9112 #endif
9114 cat <<EOF > conftestd1b/conftest.h
9115 #define DEFINED_IN_CONFTESTD1
9116 #include <stdio.h>
9117 #include_next <conftest.h>
9118 #ifdef DEFINED_IN_CONFTESTD2
9119 int foo;
9120 #else
9121 #error "include_next doesn't work"
9122 #endif
9124 cat <<EOF > conftestd2/conftest.h
9125 #ifndef DEFINED_IN_CONFTESTD1
9126 #error "include_next test doesn't work"
9127 #endif
9128 #define DEFINED_IN_CONFTESTD2
9130 gl_save_CPPFLAGS="$CPPFLAGS"
9131 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #include <conftest.h>
9135 _ACEOF
9136 if ac_fn_c_try_compile "$LINENO"; then :
9137 gl_cv_have_include_next=yes
9138 else
9139 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 #include <conftest.h>
9143 _ACEOF
9144 if ac_fn_c_try_compile "$LINENO"; then :
9145 gl_cv_have_include_next=buggy
9146 else
9147 gl_cv_have_include_next=no
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 CPPFLAGS="$gl_save_CPPFLAGS"
9154 rm -rf conftestd1a conftestd1b conftestd2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9158 $as_echo "$gl_cv_have_include_next" >&6; }
9159 PRAGMA_SYSTEM_HEADER=
9160 if test $gl_cv_have_include_next = yes; then
9161 INCLUDE_NEXT=include_next
9162 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9163 if test -n "$GCC"; then
9164 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9166 else
9167 if test $gl_cv_have_include_next = buggy; then
9168 INCLUDE_NEXT=include
9169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9170 else
9171 INCLUDE_NEXT=include
9172 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9179 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9180 if test "${gl_cv_pragma_columns+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 #ifdef __TANDEM
9187 choke me
9188 #endif
9190 _ACEOF
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "choke me" >/dev/null 2>&1; then :
9193 gl_cv_pragma_columns=yes
9194 else
9195 gl_cv_pragma_columns=no
9197 rm -f conftest*
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9202 $as_echo "$gl_cv_pragma_columns" >&6; }
9203 if test $gl_cv_pragma_columns = yes; then
9204 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9205 else
9206 PRAGMA_COLUMNS=
9213 for ac_header in $ac_header_list
9214 do :
9215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9218 eval as_val=\$$as_ac_Header
9219 if test "x$as_val" = x""yes; then :
9220 cat >>confdefs.h <<_ACEOF
9221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 _ACEOF
9226 done
9243 if test $gl_cv_have_include_next = yes; then
9244 gl_cv_next_getopt_h='<'getopt.h'>'
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9247 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9248 if test "${gl_cv_next_getopt_h+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9252 if test $ac_cv_header_getopt_h = yes; then
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <getopt.h>
9259 _ACEOF
9260 case "$host_os" in
9261 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9262 *) gl_absname_cpp="$ac_cpp" ;;
9263 esac
9265 case "$host_os" in
9266 mingw*)
9267 gl_dirsep_regex='[/\\]'
9270 gl_dirsep_regex='\/'
9272 esac
9273 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9275 gl_header_literal_regex=`echo 'getopt.h' \
9276 | sed -e "$gl_make_literal_regex_sed"`
9277 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9278 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9279 s|^/[^/]|//&|
9283 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9284 sed -n "$gl_absolute_header_sed"`'"'
9285 else
9286 gl_cv_next_getopt_h='<'getopt.h'>'
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9292 $as_echo "$gl_cv_next_getopt_h" >&6; }
9294 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9296 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9298 gl_next_as_first_directive='<'getopt.h'>'
9299 else
9300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9301 gl_next_as_first_directive=$gl_cv_next_getopt_h
9303 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9308 if test $ac_cv_header_getopt_h = yes; then
9309 HAVE_GETOPT_H=1
9310 else
9311 HAVE_GETOPT_H=0
9315 gl_replace_getopt=
9317 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9318 for ac_header in getopt.h
9319 do :
9320 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9321 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9322 cat >>confdefs.h <<_ACEOF
9323 #define HAVE_GETOPT_H 1
9324 _ACEOF
9326 else
9327 gl_replace_getopt=yes
9330 done
9334 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9335 for ac_func in getopt_long_only
9336 do :
9337 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9338 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9339 cat >>confdefs.h <<_ACEOF
9340 #define HAVE_GETOPT_LONG_ONLY 1
9341 _ACEOF
9343 else
9344 gl_replace_getopt=yes
9346 done
9350 if test -z "$gl_replace_getopt"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9352 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9353 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9357 if test $cross_compiling = no; then
9358 if test "$cross_compiling" = yes; then :
9359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9361 as_fn_error "cannot run test program while cross compiling
9362 See \`config.log' for more details." "$LINENO" 5; }
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 #include <unistd.h>
9368 #include <stdlib.h>
9369 #include <string.h>
9372 main ()
9374 static char program[] = "program";
9375 static char a[] = "-a";
9376 static char foo[] = "foo";
9377 static char bar[] = "bar";
9378 char *argv[] = { program, a, foo, bar, NULL };
9379 int c;
9381 c = getopt (4, argv, "ab");
9382 if (!(c == 'a'))
9383 return 1;
9384 c = getopt (4, argv, "ab");
9385 if (!(c == -1))
9386 return 2;
9387 if (!(optind == 2))
9388 return 3;
9389 return 0;
9392 _ACEOF
9393 if ac_fn_c_try_run "$LINENO"; then :
9394 gl_cv_func_getopt_posix=maybe
9395 else
9396 gl_cv_func_getopt_posix=no
9398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9399 conftest.$ac_objext conftest.beam conftest.$ac_ext
9402 if test $gl_cv_func_getopt_posix = maybe; then
9403 if test "$cross_compiling" = yes; then :
9404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9406 as_fn_error "cannot run test program while cross compiling
9407 See \`config.log' for more details." "$LINENO" 5; }
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9412 #include <unistd.h>
9413 #include <stdlib.h>
9414 #include <string.h>
9417 main ()
9419 static char program[] = "program";
9420 static char donald[] = "donald";
9421 static char p[] = "-p";
9422 static char billy[] = "billy";
9423 static char duck[] = "duck";
9424 static char a[] = "-a";
9425 static char bar[] = "bar";
9426 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9427 int c;
9429 c = getopt (7, argv, "+abp:q:");
9430 if (!(c == -1))
9431 return 4;
9432 if (!(strcmp (argv[0], "program") == 0))
9433 return 5;
9434 if (!(strcmp (argv[1], "donald") == 0))
9435 return 6;
9436 if (!(strcmp (argv[2], "-p") == 0))
9437 return 7;
9438 if (!(strcmp (argv[3], "billy") == 0))
9439 return 8;
9440 if (!(strcmp (argv[4], "duck") == 0))
9441 return 9;
9442 if (!(strcmp (argv[5], "-a") == 0))
9443 return 10;
9444 if (!(strcmp (argv[6], "bar") == 0))
9445 return 11;
9446 if (!(optind == 1))
9447 return 12;
9448 return 0;
9451 _ACEOF
9452 if ac_fn_c_try_run "$LINENO"; then :
9453 gl_cv_func_getopt_posix=maybe
9454 else
9455 gl_cv_func_getopt_posix=no
9457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9458 conftest.$ac_objext conftest.beam conftest.$ac_ext
9462 if test $gl_cv_func_getopt_posix = maybe; then
9463 if test "$cross_compiling" = yes; then :
9464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9466 as_fn_error "cannot run test program while cross compiling
9467 See \`config.log' for more details." "$LINENO" 5; }
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9472 #include <unistd.h>
9473 #include <stdlib.h>
9474 #include <string.h>
9477 main ()
9479 static char program[] = "program";
9480 static char ab[] = "-ab";
9481 char *argv[3] = { program, ab, NULL };
9482 if (getopt (2, argv, "ab:") != 'a')
9483 return 13;
9484 if (getopt (2, argv, "ab:") != '?')
9485 return 14;
9486 if (optopt != 'b')
9487 return 15;
9488 if (optind != 2)
9489 return 16;
9490 return 0;
9493 _ACEOF
9494 if ac_fn_c_try_run "$LINENO"; then :
9495 gl_cv_func_getopt_posix=yes
9496 else
9497 gl_cv_func_getopt_posix=no
9499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9500 conftest.$ac_objext conftest.beam conftest.$ac_ext
9504 else
9505 case "$host_os" in
9506 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
9507 *) gl_cv_func_getopt_posix="guessing yes";;
9508 esac
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9513 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9514 case "$gl_cv_func_getopt_posix" in
9515 *no) gl_replace_getopt=yes ;;
9516 esac
9519 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9521 $as_echo_n "checking for working GNU getopt function... " >&6; }
9522 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9526 # optstring is necessary for programs like m4 that have POSIX-mandated
9527 # semantics for supporting options interspersed with files.
9528 # Also, since getopt_long is a GNU extension, we require optind=0.
9529 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9530 # so take care to revert to the correct (non-)export state.
9531 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9532 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9533 xx) gl_had_POSIXLY_CORRECT=exported ;;
9534 x) gl_had_POSIXLY_CORRECT=yes ;;
9535 *) gl_had_POSIXLY_CORRECT= ;;
9536 esac
9537 POSIXLY_CORRECT=1
9538 export POSIXLY_CORRECT
9539 if test "$cross_compiling" = yes; then :
9540 gl_cv_func_getopt_gnu="guessing no"
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #include <getopt.h>
9546 #include <stddef.h>
9547 #include <string.h>
9549 #include <stdlib.h>
9550 #if defined __MACH__ && defined __APPLE__
9551 /* Avoid a crash on Mac OS X. */
9552 #include <mach/mach.h>
9553 #include <mach/mach_error.h>
9554 #include <mach/thread_status.h>
9555 #include <mach/exception.h>
9556 #include <mach/task.h>
9557 #include <pthread.h>
9558 /* The exception port on which our thread listens. */
9559 static mach_port_t our_exception_port;
9560 /* The main function of the thread listening for exceptions of type
9561 EXC_BAD_ACCESS. */
9562 static void *
9563 mach_exception_thread (void *arg)
9565 /* Buffer for a message to be received. */
9566 struct {
9567 mach_msg_header_t head;
9568 mach_msg_body_t msgh_body;
9569 char data[1024];
9570 } msg;
9571 mach_msg_return_t retval;
9572 /* Wait for a message on the exception port. */
9573 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9574 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9575 if (retval != MACH_MSG_SUCCESS)
9576 abort ();
9577 exit (1);
9579 static void
9580 nocrash_init (void)
9582 mach_port_t self = mach_task_self ();
9583 /* Allocate a port on which the thread shall listen for exceptions. */
9584 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9585 == KERN_SUCCESS) {
9586 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9587 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9588 MACH_MSG_TYPE_MAKE_SEND)
9589 == KERN_SUCCESS) {
9590 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9591 for us. */
9592 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9593 /* Create the thread listening on the exception port. */
9594 pthread_attr_t attr;
9595 pthread_t thread;
9596 if (pthread_attr_init (&attr) == 0
9597 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9598 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9599 pthread_attr_destroy (&attr);
9600 /* Replace the exception port info for these exceptions with our own.
9601 Note that we replace the exception port for the entire task, not only
9602 for a particular thread. This has the effect that when our exception
9603 port gets the message, the thread specific exception port has already
9604 been asked, and we don't need to bother about it.
9605 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9606 task_set_exception_ports (self, mask, our_exception_port,
9607 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9612 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9613 /* Avoid a crash on native Windows. */
9614 #define WIN32_LEAN_AND_MEAN
9615 #include <windows.h>
9616 #include <winerror.h>
9617 static LONG WINAPI
9618 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9620 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9622 case EXCEPTION_ACCESS_VIOLATION:
9623 case EXCEPTION_IN_PAGE_ERROR:
9624 case EXCEPTION_STACK_OVERFLOW:
9625 case EXCEPTION_GUARD_PAGE:
9626 case EXCEPTION_PRIV_INSTRUCTION:
9627 case EXCEPTION_ILLEGAL_INSTRUCTION:
9628 case EXCEPTION_DATATYPE_MISALIGNMENT:
9629 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9630 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9631 exit (1);
9633 return EXCEPTION_CONTINUE_SEARCH;
9635 static void
9636 nocrash_init (void)
9638 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9640 #else
9641 /* Avoid a crash on POSIX systems. */
9642 #include <signal.h>
9643 /* A POSIX signal handler. */
9644 static void
9645 exception_handler (int sig)
9647 exit (1);
9649 static void
9650 nocrash_init (void)
9652 #ifdef SIGSEGV
9653 signal (SIGSEGV, exception_handler);
9654 #endif
9655 #ifdef SIGBUS
9656 signal (SIGBUS, exception_handler);
9657 #endif
9659 #endif
9663 main ()
9666 int result = 0;
9668 nocrash_init();
9670 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9671 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9672 OSF/1 5.1, Solaris 10. */
9674 static char conftest[] = "conftest";
9675 static char plus[] = "-+";
9676 char *argv[3] = { conftest, plus, NULL };
9677 opterr = 0;
9678 if (getopt (2, argv, "+a") != '?')
9679 result |= 1;
9681 /* This code succeeds on glibc 2.8, mingw,
9682 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9683 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9685 static char program[] = "program";
9686 static char p[] = "-p";
9687 static char foo[] = "foo";
9688 static char bar[] = "bar";
9689 char *argv[] = { program, p, foo, bar, NULL };
9691 optind = 1;
9692 if (getopt (4, argv, "p::") != 'p')
9693 result |= 2;
9694 else if (optarg != NULL)
9695 result |= 4;
9696 else if (getopt (4, argv, "p::") != -1)
9697 result |= 6;
9698 else if (optind != 2)
9699 result |= 8;
9701 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9703 static char program[] = "program";
9704 static char foo[] = "foo";
9705 static char p[] = "-p";
9706 char *argv[] = { program, foo, p, NULL };
9707 optind = 0;
9708 if (getopt (3, argv, "-p") != 1)
9709 result |= 16;
9710 else if (getopt (3, argv, "-p") != 'p')
9711 result |= 16;
9713 /* This code fails on glibc 2.11. */
9715 static char program[] = "program";
9716 static char b[] = "-b";
9717 static char a[] = "-a";
9718 char *argv[] = { program, b, a, NULL };
9719 optind = opterr = 0;
9720 if (getopt (3, argv, "+:a:b") != 'b')
9721 result |= 32;
9722 else if (getopt (3, argv, "+:a:b") != ':')
9723 result |= 32;
9725 /* This code dumps core on glibc 2.14. */
9727 static char program[] = "program";
9728 static char w[] = "-W";
9729 static char dummy[] = "dummy";
9730 char *argv[] = { program, w, dummy, NULL };
9731 optind = opterr = 1;
9732 if (getopt (3, argv, "W;") != 'W')
9733 result |= 64;
9735 return result;
9738 return 0;
9740 _ACEOF
9741 if ac_fn_c_try_run "$LINENO"; then :
9742 gl_cv_func_getopt_gnu=yes
9743 else
9744 gl_cv_func_getopt_gnu=no
9746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9747 conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 case $gl_had_POSIXLY_CORRECT in
9751 exported) ;;
9752 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9753 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9754 esac
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9758 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9759 if test "$gl_cv_func_getopt_gnu" != yes; then
9760 gl_replace_getopt=yes
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9763 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9764 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 if test "$cross_compiling" = yes; then :
9768 case "$host_os" in
9769 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
9770 *) gl_cv_func_getopt_long_gnu="guessing yes";;
9771 esac
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <getopt.h>
9777 #include <stddef.h>
9778 #include <string.h>
9781 main ()
9783 static const struct option long_options[] =
9785 { "xtremely-",no_argument, NULL, 1003 },
9786 { "xtra", no_argument, NULL, 1001 },
9787 { "xtreme", no_argument, NULL, 1002 },
9788 { "xtremely", no_argument, NULL, 1003 },
9789 { NULL, 0, NULL, 0 }
9791 /* This code fails on OpenBSD 5.0. */
9793 static char program[] = "program";
9794 static char xtremel[] = "--xtremel";
9795 char *argv[] = { program, xtremel, NULL };
9796 int option_index;
9797 optind = 1; opterr = 0;
9798 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9799 return 1;
9801 return 0;
9804 return 0;
9806 _ACEOF
9807 if ac_fn_c_try_run "$LINENO"; then :
9808 gl_cv_func_getopt_long_gnu=yes
9809 else
9810 gl_cv_func_getopt_long_gnu=no
9812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9813 conftest.$ac_objext conftest.beam conftest.$ac_ext
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9819 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9820 case "$gl_cv_func_getopt_long_gnu" in
9821 *yes) ;;
9822 *) gl_replace_getopt=yes ;;
9823 esac
9831 REPLACE_GETOPT=0
9834 if test -n "$gl_replace_getopt"; then :
9836 REPLACE_GETOPT=1
9841 if test $REPLACE_GETOPT = 1; then
9843 GETOPT_H=getopt.h
9845 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9851 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9852 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9853 ac_have_decl=1
9854 else
9855 ac_have_decl=0
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_DECL_GETENV $ac_have_decl
9860 _ACEOF
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9870 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9871 if test "${ac_cv_c_restrict+set}" = set; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 ac_cv_c_restrict=no
9875 # The order here caters to the fact that C++ does not require restrict.
9876 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 typedef int * int_ptr;
9880 int foo (int_ptr $ac_kw ip) {
9881 return ip[0];
9884 main ()
9886 int s[1];
9887 int * $ac_kw t = s;
9888 t[0] = 0;
9889 return foo(t)
9891 return 0;
9893 _ACEOF
9894 if ac_fn_c_try_compile "$LINENO"; then :
9895 ac_cv_c_restrict=$ac_kw
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 test "$ac_cv_c_restrict" != no && break
9899 done
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9903 $as_echo "$ac_cv_c_restrict" >&6; }
9905 case $ac_cv_c_restrict in
9906 restrict) ;;
9907 no) $as_echo "#define restrict /**/" >>confdefs.h
9909 *) cat >>confdefs.h <<_ACEOF
9910 #define restrict $ac_cv_c_restrict
9911 _ACEOF
9913 esac
9916 GNULIB_GETTIMEOFDAY=0;
9917 HAVE_GETTIMEOFDAY=1;
9918 HAVE_STRUCT_TIMEVAL=1;
9919 HAVE_SYS_TIME_H=1;
9920 REPLACE_GETTIMEOFDAY=0;
9921 REPLACE_STRUCT_TIMEVAL=0;
9940 if test $gl_cv_have_include_next = yes; then
9941 gl_cv_next_sys_time_h='<'sys/time.h'>'
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9944 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9945 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9949 if test $ac_cv_header_sys_time_h = yes; then
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 #include <sys/time.h>
9956 _ACEOF
9957 case "$host_os" in
9958 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9959 *) gl_absname_cpp="$ac_cpp" ;;
9960 esac
9962 case "$host_os" in
9963 mingw*)
9964 gl_dirsep_regex='[/\\]'
9967 gl_dirsep_regex='\/'
9969 esac
9970 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9972 gl_header_literal_regex=`echo 'sys/time.h' \
9973 | sed -e "$gl_make_literal_regex_sed"`
9974 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9975 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9976 s|^/[^/]|//&|
9980 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9981 sed -n "$gl_absolute_header_sed"`'"'
9982 else
9983 gl_cv_next_sys_time_h='<'sys/time.h'>'
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9989 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9991 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9993 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9995 gl_next_as_first_directive='<'sys/time.h'>'
9996 else
9997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9998 gl_next_as_first_directive=$gl_cv_next_sys_time_h
10000 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
10006 if test $ac_cv_header_sys_time_h != yes; then
10007 HAVE_SYS_TIME_H=0
10014 if test $ac_cv_header_sys_socket_h != yes; then
10015 for ac_header in winsock2.h
10016 do :
10017 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10018 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_WINSOCK2_H 1
10021 _ACEOF
10025 done
10028 if test "$ac_cv_header_winsock2_h" = yes; then
10029 HAVE_WINSOCK2_H=1
10030 UNISTD_H_HAVE_WINSOCK2_H=1
10031 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10032 else
10033 HAVE_WINSOCK2_H=0
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10038 $as_echo_n "checking for struct timeval... " >&6; }
10039 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10044 #if HAVE_SYS_TIME_H
10045 #include <sys/time.h>
10046 #endif
10047 #include <time.h>
10048 #if HAVE_WINSOCK2_H
10049 # include <winsock2.h>
10050 #endif
10053 main ()
10055 static struct timeval x; x.tv_sec = x.tv_usec;
10057 return 0;
10059 _ACEOF
10060 if ac_fn_c_try_compile "$LINENO"; then :
10061 gl_cv_sys_struct_timeval=yes
10062 else
10063 gl_cv_sys_struct_timeval=no
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10069 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10070 if test $gl_cv_sys_struct_timeval != yes; then
10071 HAVE_STRUCT_TIMEVAL=0
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
10074 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
10075 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 #if HAVE_SYS_TIME_H
10081 #include <sys/time.h>
10082 #endif
10083 #include <time.h>
10084 #if HAVE_WINSOCK2_H
10085 # include <winsock2.h>
10086 #endif
10089 main ()
10091 static struct timeval x;
10092 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
10095 return 0;
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"; then :
10099 gl_cv_sys_struct_timeval_tv_sec=yes
10100 else
10101 gl_cv_sys_struct_timeval_tv_sec=no
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10107 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10108 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10109 REPLACE_STRUCT_TIMEVAL=1
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10120 $as_echo_n "checking for unsigned long long int... " >&6; }
10121 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_cv_type_unsigned_long_long_int=yes
10125 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* For now, do not test the preprocessor; as of 2007 there are too many
10130 implementations with broken preprocessors. Perhaps this can
10131 be revisited in 2012. In the meantime, code should not expect
10132 #if to work with literals wider than 32 bits. */
10133 /* Test literals. */
10134 long long int ll = 9223372036854775807ll;
10135 long long int nll = -9223372036854775807LL;
10136 unsigned long long int ull = 18446744073709551615ULL;
10137 /* Test constant expressions. */
10138 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10139 ? 1 : -1)];
10140 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10141 ? 1 : -1)];
10142 int i = 63;
10144 main ()
10146 /* Test availability of runtime routines for shift and division. */
10147 long long int llmax = 9223372036854775807ll;
10148 unsigned long long int ullmax = 18446744073709551615ull;
10149 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10150 | (llmax / ll) | (llmax % ll)
10151 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10152 | (ullmax / ull) | (ullmax % ull));
10154 return 0;
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10160 else
10161 ac_cv_type_unsigned_long_long_int=no
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10168 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10169 if test $ac_cv_type_unsigned_long_long_int = yes; then
10171 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10178 $as_echo_n "checking for long long int... " >&6; }
10179 if test "${ac_cv_type_long_long_int+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_cv_type_long_long_int=yes
10183 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10184 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10185 if test $ac_cv_type_long_long_int = yes; then
10186 if test "$cross_compiling" = yes; then :
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <limits.h>
10192 #ifndef LLONG_MAX
10193 # define HALF \
10194 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10195 # define LLONG_MAX (HALF - 1 + HALF)
10196 #endif
10198 main ()
10200 long long int n = 1;
10201 int i;
10202 for (i = 0; ; i++)
10204 long long int m = n << i;
10205 if (m >> i != n)
10206 return 1;
10207 if (LLONG_MAX / 2 < m)
10208 break;
10210 return 0;
10212 return 0;
10214 _ACEOF
10215 if ac_fn_c_try_run "$LINENO"; then :
10217 else
10218 ac_cv_type_long_long_int=no
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10228 $as_echo "$ac_cv_type_long_long_int" >&6; }
10229 if test $ac_cv_type_long_long_int = yes; then
10231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10240 gl_cv_c_multiarch=no
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 #ifndef __APPLE_CC__
10244 not a universal capable compiler
10245 #endif
10246 typedef int dummy;
10248 _ACEOF
10249 if ac_fn_c_try_compile "$LINENO"; then :
10251 arch=
10252 prev=
10253 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10254 if test -n "$prev"; then
10255 case $word in
10256 i?86 | x86_64 | ppc | ppc64)
10257 if test -z "$arch" || test "$arch" = "$word"; then
10258 arch="$word"
10259 else
10260 gl_cv_c_multiarch=yes
10263 esac
10264 prev=
10265 else
10266 if test "x$word" = "x-arch"; then
10267 prev=arch
10270 done
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 if test $gl_cv_c_multiarch = yes; then
10275 APPLE_UNIVERSAL_BUILD=1
10276 else
10277 APPLE_UNIVERSAL_BUILD=0
10284 if test $ac_cv_type_long_long_int = yes; then
10285 HAVE_LONG_LONG_INT=1
10286 else
10287 HAVE_LONG_LONG_INT=0
10291 if test $ac_cv_type_unsigned_long_long_int = yes; then
10292 HAVE_UNSIGNED_LONG_LONG_INT=1
10293 else
10294 HAVE_UNSIGNED_LONG_LONG_INT=0
10299 if test $ac_cv_header_wchar_h = yes; then
10300 HAVE_WCHAR_H=1
10301 else
10302 HAVE_WCHAR_H=0
10306 if test $ac_cv_header_inttypes_h = yes; then
10307 HAVE_INTTYPES_H=1
10308 else
10309 HAVE_INTTYPES_H=0
10313 if test $ac_cv_header_sys_types_h = yes; then
10314 HAVE_SYS_TYPES_H=1
10315 else
10316 HAVE_SYS_TYPES_H=0
10329 if test $gl_cv_have_include_next = yes; then
10330 gl_cv_next_stdint_h='<'stdint.h'>'
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10333 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10334 if test "${gl_cv_next_stdint_h+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10338 if test $ac_cv_header_stdint_h = yes; then
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #include <stdint.h>
10345 _ACEOF
10346 case "$host_os" in
10347 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10348 *) gl_absname_cpp="$ac_cpp" ;;
10349 esac
10351 case "$host_os" in
10352 mingw*)
10353 gl_dirsep_regex='[/\\]'
10356 gl_dirsep_regex='\/'
10358 esac
10359 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10361 gl_header_literal_regex=`echo 'stdint.h' \
10362 | sed -e "$gl_make_literal_regex_sed"`
10363 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10364 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10365 s|^/[^/]|//&|
10369 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10370 sed -n "$gl_absolute_header_sed"`'"'
10371 else
10372 gl_cv_next_stdint_h='<'stdint.h'>'
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10378 $as_echo "$gl_cv_next_stdint_h" >&6; }
10380 NEXT_STDINT_H=$gl_cv_next_stdint_h
10382 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10384 gl_next_as_first_directive='<'stdint.h'>'
10385 else
10386 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10387 gl_next_as_first_directive=$gl_cv_next_stdint_h
10389 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10394 if test $ac_cv_header_stdint_h = yes; then
10395 HAVE_STDINT_H=1
10396 else
10397 HAVE_STDINT_H=0
10401 if test $ac_cv_header_stdint_h = yes; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10403 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10404 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 gl_cv_header_working_stdint_h=no
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10412 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10413 #include <stdint.h>
10414 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10415 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10416 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10417 #endif
10420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10421 included before <wchar.h>. */
10422 #include <stddef.h>
10423 #include <signal.h>
10424 #if HAVE_WCHAR_H
10425 # include <stdio.h>
10426 # include <time.h>
10427 # include <wchar.h>
10428 #endif
10431 #ifdef INT8_MAX
10432 int8_t a1 = INT8_MAX;
10433 int8_t a1min = INT8_MIN;
10434 #endif
10435 #ifdef INT16_MAX
10436 int16_t a2 = INT16_MAX;
10437 int16_t a2min = INT16_MIN;
10438 #endif
10439 #ifdef INT32_MAX
10440 int32_t a3 = INT32_MAX;
10441 int32_t a3min = INT32_MIN;
10442 #endif
10443 #ifdef INT64_MAX
10444 int64_t a4 = INT64_MAX;
10445 int64_t a4min = INT64_MIN;
10446 #endif
10447 #ifdef UINT8_MAX
10448 uint8_t b1 = UINT8_MAX;
10449 #else
10450 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10451 #endif
10452 #ifdef UINT16_MAX
10453 uint16_t b2 = UINT16_MAX;
10454 #endif
10455 #ifdef UINT32_MAX
10456 uint32_t b3 = UINT32_MAX;
10457 #endif
10458 #ifdef UINT64_MAX
10459 uint64_t b4 = UINT64_MAX;
10460 #endif
10461 int_least8_t c1 = INT8_C (0x7f);
10462 int_least8_t c1max = INT_LEAST8_MAX;
10463 int_least8_t c1min = INT_LEAST8_MIN;
10464 int_least16_t c2 = INT16_C (0x7fff);
10465 int_least16_t c2max = INT_LEAST16_MAX;
10466 int_least16_t c2min = INT_LEAST16_MIN;
10467 int_least32_t c3 = INT32_C (0x7fffffff);
10468 int_least32_t c3max = INT_LEAST32_MAX;
10469 int_least32_t c3min = INT_LEAST32_MIN;
10470 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10471 int_least64_t c4max = INT_LEAST64_MAX;
10472 int_least64_t c4min = INT_LEAST64_MIN;
10473 uint_least8_t d1 = UINT8_C (0xff);
10474 uint_least8_t d1max = UINT_LEAST8_MAX;
10475 uint_least16_t d2 = UINT16_C (0xffff);
10476 uint_least16_t d2max = UINT_LEAST16_MAX;
10477 uint_least32_t d3 = UINT32_C (0xffffffff);
10478 uint_least32_t d3max = UINT_LEAST32_MAX;
10479 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10480 uint_least64_t d4max = UINT_LEAST64_MAX;
10481 int_fast8_t e1 = INT_FAST8_MAX;
10482 int_fast8_t e1min = INT_FAST8_MIN;
10483 int_fast16_t e2 = INT_FAST16_MAX;
10484 int_fast16_t e2min = INT_FAST16_MIN;
10485 int_fast32_t e3 = INT_FAST32_MAX;
10486 int_fast32_t e3min = INT_FAST32_MIN;
10487 int_fast64_t e4 = INT_FAST64_MAX;
10488 int_fast64_t e4min = INT_FAST64_MIN;
10489 uint_fast8_t f1 = UINT_FAST8_MAX;
10490 uint_fast16_t f2 = UINT_FAST16_MAX;
10491 uint_fast32_t f3 = UINT_FAST32_MAX;
10492 uint_fast64_t f4 = UINT_FAST64_MAX;
10493 #ifdef INTPTR_MAX
10494 intptr_t g = INTPTR_MAX;
10495 intptr_t gmin = INTPTR_MIN;
10496 #endif
10497 #ifdef UINTPTR_MAX
10498 uintptr_t h = UINTPTR_MAX;
10499 #endif
10500 intmax_t i = INTMAX_MAX;
10501 uintmax_t j = UINTMAX_MAX;
10503 #include <limits.h> /* for CHAR_BIT */
10504 #define TYPE_MINIMUM(t) \
10505 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10506 #define TYPE_MAXIMUM(t) \
10507 ((t) ((t) 0 < (t) -1 \
10508 ? (t) -1 \
10509 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10510 struct s {
10511 int check_PTRDIFF:
10512 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10513 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10514 ? 1 : -1;
10515 /* Detect bug in FreeBSD 6.0 / ia64. */
10516 int check_SIG_ATOMIC:
10517 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10518 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10519 ? 1 : -1;
10520 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10521 int check_WCHAR:
10522 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10523 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10524 ? 1 : -1;
10525 /* Detect bug in mingw. */
10526 int check_WINT:
10527 WINT_MIN == TYPE_MINIMUM (wint_t)
10528 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10529 ? 1 : -1;
10531 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10532 int check_UINT8_C:
10533 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10534 int check_UINT16_C:
10535 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10537 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10538 #ifdef UINT8_MAX
10539 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10540 #endif
10541 #ifdef UINT16_MAX
10542 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10543 #endif
10544 #ifdef UINT32_MAX
10545 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10546 #endif
10547 #ifdef UINT64_MAX
10548 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10549 #endif
10550 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10551 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10552 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10553 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10554 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10555 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10556 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10557 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10558 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10559 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10560 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10564 main ()
10568 return 0;
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"; then :
10572 if test "$cross_compiling" = yes; then :
10573 gl_cv_header_working_stdint_h=yes
10575 else
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10580 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10581 #include <stdint.h>
10584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10585 included before <wchar.h>. */
10586 #include <stddef.h>
10587 #include <signal.h>
10588 #if HAVE_WCHAR_H
10589 # include <stdio.h>
10590 # include <time.h>
10591 # include <wchar.h>
10592 #endif
10595 #include <stdio.h>
10596 #include <string.h>
10597 #define MVAL(macro) MVAL1(macro)
10598 #define MVAL1(expression) #expression
10599 static const char *macro_values[] =
10601 #ifdef INT8_MAX
10602 MVAL (INT8_MAX),
10603 #endif
10604 #ifdef INT16_MAX
10605 MVAL (INT16_MAX),
10606 #endif
10607 #ifdef INT32_MAX
10608 MVAL (INT32_MAX),
10609 #endif
10610 #ifdef INT64_MAX
10611 MVAL (INT64_MAX),
10612 #endif
10613 #ifdef UINT8_MAX
10614 MVAL (UINT8_MAX),
10615 #endif
10616 #ifdef UINT16_MAX
10617 MVAL (UINT16_MAX),
10618 #endif
10619 #ifdef UINT32_MAX
10620 MVAL (UINT32_MAX),
10621 #endif
10622 #ifdef UINT64_MAX
10623 MVAL (UINT64_MAX),
10624 #endif
10625 NULL
10629 main ()
10632 const char **mv;
10633 for (mv = macro_values; *mv != NULL; mv++)
10635 const char *value = *mv;
10636 /* Test whether it looks like a cast expression. */
10637 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10638 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10639 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10640 || strncmp (value, "((int)"/*)*/, 6) == 0
10641 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10642 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10643 return mv - macro_values + 1;
10645 return 0;
10648 return 0;
10650 _ACEOF
10651 if ac_fn_c_try_run "$LINENO"; then :
10652 gl_cv_header_working_stdint_h=yes
10654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10655 conftest.$ac_objext conftest.beam conftest.$ac_ext
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10664 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10666 if test "$gl_cv_header_working_stdint_h" = yes; then
10667 STDINT_H=
10668 else
10669 for ac_header in sys/inttypes.h sys/bitypes.h
10670 do :
10671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10673 eval as_val=\$$as_ac_Header
10674 if test "x$as_val" = x""yes; then :
10675 cat >>confdefs.h <<_ACEOF
10676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677 _ACEOF
10681 done
10683 if test $ac_cv_header_sys_inttypes_h = yes; then
10684 HAVE_SYS_INTTYPES_H=1
10685 else
10686 HAVE_SYS_INTTYPES_H=0
10689 if test $ac_cv_header_sys_bitypes_h = yes; then
10690 HAVE_SYS_BITYPES_H=1
10691 else
10692 HAVE_SYS_BITYPES_H=0
10698 if test $APPLE_UNIVERSAL_BUILD = 0; then
10701 for gltype in ptrdiff_t size_t ; do
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10703 $as_echo_n "checking for bit size of $gltype... " >&6; }
10704 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10708 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10709 included before <wchar.h>. */
10710 #include <stddef.h>
10711 #include <signal.h>
10712 #if HAVE_WCHAR_H
10713 # include <stdio.h>
10714 # include <time.h>
10715 # include <wchar.h>
10716 #endif
10718 #include <limits.h>"; then :
10720 else
10721 result=unknown
10724 eval gl_cv_bitsizeof_${gltype}=\$result
10727 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10729 $as_echo "$ac_res" >&6; }
10730 eval result=\$gl_cv_bitsizeof_${gltype}
10731 if test $result = unknown; then
10732 result=0
10734 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10735 cat >>confdefs.h <<_ACEOF
10736 #define BITSIZEOF_${GLTYPE} $result
10737 _ACEOF
10739 eval BITSIZEOF_${GLTYPE}=\$result
10740 done
10746 for gltype in sig_atomic_t wchar_t wint_t ; do
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10748 $as_echo_n "checking for bit size of $gltype... " >&6; }
10749 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10753 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10754 included before <wchar.h>. */
10755 #include <stddef.h>
10756 #include <signal.h>
10757 #if HAVE_WCHAR_H
10758 # include <stdio.h>
10759 # include <time.h>
10760 # include <wchar.h>
10761 #endif
10763 #include <limits.h>"; then :
10765 else
10766 result=unknown
10769 eval gl_cv_bitsizeof_${gltype}=\$result
10772 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10774 $as_echo "$ac_res" >&6; }
10775 eval result=\$gl_cv_bitsizeof_${gltype}
10776 if test $result = unknown; then
10777 result=0
10779 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10780 cat >>confdefs.h <<_ACEOF
10781 #define BITSIZEOF_${GLTYPE} $result
10782 _ACEOF
10784 eval BITSIZEOF_${GLTYPE}=\$result
10785 done
10790 for gltype in sig_atomic_t wchar_t wint_t ; do
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10792 $as_echo_n "checking whether $gltype is signed... " >&6; }
10793 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10800 included before <wchar.h>. */
10801 #include <stddef.h>
10802 #include <signal.h>
10803 #if HAVE_WCHAR_H
10804 # include <stdio.h>
10805 # include <time.h>
10806 # include <wchar.h>
10807 #endif
10809 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10811 main ()
10815 return 0;
10817 _ACEOF
10818 if ac_fn_c_try_compile "$LINENO"; then :
10819 result=yes
10820 else
10821 result=no
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 eval gl_cv_type_${gltype}_signed=\$result
10827 eval ac_res=\$gl_cv_type_${gltype}_signed
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10829 $as_echo "$ac_res" >&6; }
10830 eval result=\$gl_cv_type_${gltype}_signed
10831 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10832 if test "$result" = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_SIGNED_${GLTYPE} 1
10835 _ACEOF
10837 eval HAVE_SIGNED_${GLTYPE}=1
10838 else
10839 eval HAVE_SIGNED_${GLTYPE}=0
10841 done
10844 gl_cv_type_ptrdiff_t_signed=yes
10845 gl_cv_type_size_t_signed=no
10846 if test $APPLE_UNIVERSAL_BUILD = 0; then
10849 for gltype in ptrdiff_t size_t ; do
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10851 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10852 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 eval gl_cv_type_${gltype}_suffix=no
10856 eval result=\$gl_cv_type_${gltype}_signed
10857 if test "$result" = yes; then
10858 glsufu=
10859 else
10860 glsufu=u
10862 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10863 case $glsuf in
10864 '') gltype1='int';;
10865 l) gltype1='long int';;
10866 ll) gltype1='long long int';;
10867 i64) gltype1='__int64';;
10868 u) gltype1='unsigned int';;
10869 ul) gltype1='unsigned long int';;
10870 ull) gltype1='unsigned long long int';;
10871 ui64)gltype1='unsigned __int64';;
10872 esac
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10876 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10877 included before <wchar.h>. */
10878 #include <stddef.h>
10879 #include <signal.h>
10880 #if HAVE_WCHAR_H
10881 # include <stdio.h>
10882 # include <time.h>
10883 # include <wchar.h>
10884 #endif
10886 extern $gltype foo;
10887 extern $gltype1 foo;
10889 main ()
10893 return 0;
10895 _ACEOF
10896 if ac_fn_c_try_compile "$LINENO"; then :
10897 eval gl_cv_type_${gltype}_suffix=\$glsuf
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 eval result=\$gl_cv_type_${gltype}_suffix
10901 test "$result" != no && break
10902 done
10904 eval ac_res=\$gl_cv_type_${gltype}_suffix
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10906 $as_echo "$ac_res" >&6; }
10907 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10908 eval result=\$gl_cv_type_${gltype}_suffix
10909 test "$result" = no && result=
10910 eval ${GLTYPE}_SUFFIX=\$result
10911 cat >>confdefs.h <<_ACEOF
10912 #define ${GLTYPE}_SUFFIX $result
10913 _ACEOF
10915 done
10921 for gltype in sig_atomic_t wchar_t wint_t ; do
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10923 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10924 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 eval gl_cv_type_${gltype}_suffix=no
10928 eval result=\$gl_cv_type_${gltype}_signed
10929 if test "$result" = yes; then
10930 glsufu=
10931 else
10932 glsufu=u
10934 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10935 case $glsuf in
10936 '') gltype1='int';;
10937 l) gltype1='long int';;
10938 ll) gltype1='long long int';;
10939 i64) gltype1='__int64';;
10940 u) gltype1='unsigned int';;
10941 ul) gltype1='unsigned long int';;
10942 ull) gltype1='unsigned long long int';;
10943 ui64)gltype1='unsigned __int64';;
10944 esac
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10949 included before <wchar.h>. */
10950 #include <stddef.h>
10951 #include <signal.h>
10952 #if HAVE_WCHAR_H
10953 # include <stdio.h>
10954 # include <time.h>
10955 # include <wchar.h>
10956 #endif
10958 extern $gltype foo;
10959 extern $gltype1 foo;
10961 main ()
10965 return 0;
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"; then :
10969 eval gl_cv_type_${gltype}_suffix=\$glsuf
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 eval result=\$gl_cv_type_${gltype}_suffix
10973 test "$result" != no && break
10974 done
10976 eval ac_res=\$gl_cv_type_${gltype}_suffix
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10978 $as_echo "$ac_res" >&6; }
10979 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10980 eval result=\$gl_cv_type_${gltype}_suffix
10981 test "$result" = no && result=
10982 eval ${GLTYPE}_SUFFIX=\$result
10983 cat >>confdefs.h <<_ACEOF
10984 #define ${GLTYPE}_SUFFIX $result
10985 _ACEOF
10987 done
10991 if test $BITSIZEOF_WINT_T -lt 32; then
10992 BITSIZEOF_WINT_T=32
10995 STDINT_H=stdint.h
10998 if test -n "$STDINT_H"; then
10999 GL_GENERATE_STDINT_H_TRUE=
11000 GL_GENERATE_STDINT_H_FALSE='#'
11001 else
11002 GL_GENERATE_STDINT_H_TRUE='#'
11003 GL_GENERATE_STDINT_H_FALSE=
11010 GNULIB_IMAXABS=0;
11011 GNULIB_IMAXDIV=0;
11012 GNULIB_STRTOIMAX=0;
11013 GNULIB_STRTOUMAX=0;
11014 HAVE_DECL_IMAXABS=1;
11015 HAVE_DECL_IMAXDIV=1;
11016 HAVE_DECL_STRTOIMAX=1;
11017 HAVE_DECL_STRTOUMAX=1;
11018 REPLACE_STRTOIMAX=0;
11019 INT32_MAX_LT_INTMAX_MAX=1;
11020 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11021 PRI_MACROS_BROKEN=0;
11022 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11023 UINT32_MAX_LT_UINTMAX_MAX=1;
11024 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11040 if test $gl_cv_have_include_next = yes; then
11041 gl_cv_next_inttypes_h='<'inttypes.h'>'
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11044 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11045 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11049 if test $ac_cv_header_inttypes_h = yes; then
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 #include <inttypes.h>
11056 _ACEOF
11057 case "$host_os" in
11058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11059 *) gl_absname_cpp="$ac_cpp" ;;
11060 esac
11062 case "$host_os" in
11063 mingw*)
11064 gl_dirsep_regex='[/\\]'
11067 gl_dirsep_regex='\/'
11069 esac
11070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11072 gl_header_literal_regex=`echo 'inttypes.h' \
11073 | sed -e "$gl_make_literal_regex_sed"`
11074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11076 s|^/[^/]|//&|
11080 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11081 sed -n "$gl_absolute_header_sed"`'"'
11082 else
11083 gl_cv_next_inttypes_h='<'inttypes.h'>'
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11089 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11091 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11093 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11095 gl_next_as_first_directive='<'inttypes.h'>'
11096 else
11097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11098 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11100 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11112 case "$host_os" in
11113 mingw*)
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11115 $as_echo_n "checking for 64-bit off_t... " >&6; }
11116 if test "${gl_cv_type_off_t_64+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include <sys/types.h>
11122 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11125 main ()
11129 return 0;
11131 _ACEOF
11132 if ac_fn_c_try_compile "$LINENO"; then :
11133 gl_cv_type_off_t_64=yes
11134 else
11135 gl_cv_type_off_t_64=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11141 $as_echo "$gl_cv_type_off_t_64" >&6; }
11142 if test $gl_cv_type_off_t_64 = no; then
11143 WINDOWS_64_BIT_OFF_T=1
11144 else
11145 WINDOWS_64_BIT_OFF_T=0
11147 WINDOWS_64_BIT_ST_SIZE=1
11150 WINDOWS_64_BIT_OFF_T=0
11151 WINDOWS_64_BIT_ST_SIZE=0
11153 esac
11156 GNULIB_FCHMODAT=0;
11157 GNULIB_FSTAT=0;
11158 GNULIB_FSTATAT=0;
11159 GNULIB_FUTIMENS=0;
11160 GNULIB_LCHMOD=0;
11161 GNULIB_LSTAT=0;
11162 GNULIB_MKDIRAT=0;
11163 GNULIB_MKFIFO=0;
11164 GNULIB_MKFIFOAT=0;
11165 GNULIB_MKNOD=0;
11166 GNULIB_MKNODAT=0;
11167 GNULIB_STAT=0;
11168 GNULIB_UTIMENSAT=0;
11169 HAVE_FCHMODAT=1;
11170 HAVE_FSTATAT=1;
11171 HAVE_FUTIMENS=1;
11172 HAVE_LCHMOD=1;
11173 HAVE_LSTAT=1;
11174 HAVE_MKDIRAT=1;
11175 HAVE_MKFIFO=1;
11176 HAVE_MKFIFOAT=1;
11177 HAVE_MKNOD=1;
11178 HAVE_MKNODAT=1;
11179 HAVE_UTIMENSAT=1;
11180 REPLACE_FSTAT=0;
11181 REPLACE_FSTATAT=0;
11182 REPLACE_FUTIMENS=0;
11183 REPLACE_LSTAT=0;
11184 REPLACE_MKDIR=0;
11185 REPLACE_MKFIFO=0;
11186 REPLACE_MKNOD=0;
11187 REPLACE_STAT=0;
11188 REPLACE_UTIMENSAT=0;
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11194 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11195 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 rm -f conftest.sym conftest.file
11199 echo >conftest.file
11200 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11201 if test "$cross_compiling" = yes; then :
11202 case "$host_os" in
11203 # Guess yes on glibc systems.
11204 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11205 # If we don't know, assume the worst.
11206 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11207 esac
11209 else
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212 $ac_includes_default
11214 main ()
11216 struct stat sbuf;
11217 /* Linux will dereference the symlink and fail, as required by
11218 POSIX. That is better in the sense that it means we will not
11219 have to compile and use the lstat wrapper. */
11220 return lstat ("conftest.sym/", &sbuf) == 0;
11223 return 0;
11225 _ACEOF
11226 if ac_fn_c_try_run "$LINENO"; then :
11227 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11228 else
11229 gl_cv_func_lstat_dereferences_slashed_symlink=no
11231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11232 conftest.$ac_objext conftest.beam conftest.$ac_ext
11235 else
11236 # If the 'ln -s' command failed, then we probably don't even
11237 # have an lstat function.
11238 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
11240 rm -f conftest.sym conftest.file
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11244 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11245 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11246 *yes)
11248 cat >>confdefs.h <<_ACEOF
11249 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11250 _ACEOF
11253 esac
11256 GNULIB_MKTIME=0;
11257 GNULIB_NANOSLEEP=0;
11258 GNULIB_STRPTIME=0;
11259 GNULIB_TIMEGM=0;
11260 GNULIB_TIME_R=0;
11261 HAVE_DECL_LOCALTIME_R=1;
11262 HAVE_NANOSLEEP=1;
11263 HAVE_STRPTIME=1;
11264 HAVE_TIMEGM=1;
11265 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11266 REPLACE_MKTIME=GNULIB_PORTCHECK;
11267 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11268 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11275 GNULIB_PSELECT=0;
11276 GNULIB_SELECT=0;
11277 HAVE_PSELECT=1;
11278 REPLACE_PSELECT=0;
11279 REPLACE_SELECT=0;
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11287 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11288 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 #include <sys/select.h>
11296 main ()
11298 struct timeval b;
11300 return 0;
11302 _ACEOF
11303 if ac_fn_c_try_compile "$LINENO"; then :
11304 gl_cv_header_sys_select_h_selfcontained=yes
11305 else
11306 gl_cv_header_sys_select_h_selfcontained=no
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <sys/select.h>
11314 main ()
11316 int memset; int bzero;
11318 return 0;
11321 _ACEOF
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 #include <sys/select.h>
11327 main ()
11330 #undef memset
11331 #define memset nonexistent_memset
11332 extern
11333 #ifdef __cplusplus
11335 #endif
11336 void *memset (void *, int, unsigned long);
11337 #undef bzero
11338 #define bzero nonexistent_bzero
11339 extern
11340 #ifdef __cplusplus
11342 #endif
11343 void bzero (void *, unsigned long);
11344 fd_set fds;
11345 FD_ZERO (&fds);
11348 return 0;
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11354 else
11355 gl_cv_header_sys_select_h_selfcontained=no
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11366 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11376 if test $gl_cv_have_include_next = yes; then
11377 gl_cv_next_sys_select_h='<'sys/select.h'>'
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11380 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11381 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11385 if test $ac_cv_header_sys_select_h = yes; then
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390 #include <sys/select.h>
11392 _ACEOF
11393 case "$host_os" in
11394 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11395 *) gl_absname_cpp="$ac_cpp" ;;
11396 esac
11398 case "$host_os" in
11399 mingw*)
11400 gl_dirsep_regex='[/\\]'
11403 gl_dirsep_regex='\/'
11405 esac
11406 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11408 gl_header_literal_regex=`echo 'sys/select.h' \
11409 | sed -e "$gl_make_literal_regex_sed"`
11410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11412 s|^/[^/]|//&|
11416 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11417 sed -n "$gl_absolute_header_sed"`'"'
11418 else
11419 gl_cv_next_sys_select_h='<'sys/select.h'>'
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11425 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11427 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
11429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11431 gl_next_as_first_directive='<'sys/select.h'>'
11432 else
11433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11434 gl_next_as_first_directive=$gl_cv_next_sys_select_h
11436 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
11441 if test $ac_cv_header_sys_select_h = yes; then
11442 HAVE_SYS_SELECT_H=1
11443 else
11444 HAVE_SYS_SELECT_H=0
11451 if test $ac_cv_header_sys_socket_h != yes; then
11452 for ac_header in winsock2.h
11453 do :
11454 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11455 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_WINSOCK2_H 1
11458 _ACEOF
11462 done
11465 if test "$ac_cv_header_winsock2_h" = yes; then
11466 HAVE_WINSOCK2_H=1
11467 UNISTD_H_HAVE_WINSOCK2_H=1
11468 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11469 else
11470 HAVE_WINSOCK2_H=0
11480 GNULIB_PTHREAD_SIGMASK=0;
11481 GNULIB_RAISE=0;
11482 GNULIB_SIGNAL_H_SIGPIPE=0;
11483 GNULIB_SIGPROCMASK=0;
11484 GNULIB_SIGACTION=0;
11485 HAVE_POSIX_SIGNALBLOCKING=1;
11486 HAVE_PTHREAD_SIGMASK=1;
11487 HAVE_RAISE=1;
11488 HAVE_SIGSET_T=1;
11489 HAVE_SIGINFO_T=1;
11490 HAVE_SIGACTION=1;
11491 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11493 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11495 HAVE_SIGHANDLER_T=1;
11496 REPLACE_PTHREAD_SIGMASK=0;
11497 REPLACE_RAISE=0;
11504 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11505 #include <signal.h>
11506 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11507 #include <sys/types.h>
11510 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11512 cat >>confdefs.h <<_ACEOF
11513 #define HAVE_SIGSET_T 1
11514 _ACEOF
11516 gl_cv_type_sigset_t=yes
11517 else
11518 gl_cv_type_sigset_t=no
11521 if test $gl_cv_type_sigset_t != yes; then
11522 HAVE_SIGSET_T=0
11525 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11526 if test "x$ac_cv_type_pid_t" = x""yes; then :
11528 else
11530 cat >>confdefs.h <<_ACEOF
11531 #define pid_t int
11532 _ACEOF
11538 if test $ac_cv_header_sys_socket_h = no; then
11539 for ac_header in ws2tcpip.h
11540 do :
11541 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11542 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_WS2TCPIP_H 1
11545 _ACEOF
11549 done
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11554 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11555 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 #include <stdbool.h>
11562 #ifndef bool
11563 "error: bool is not defined"
11564 #endif
11565 #ifndef false
11566 "error: false is not defined"
11567 #endif
11568 #if false
11569 "error: false is not 0"
11570 #endif
11571 #ifndef true
11572 "error: true is not defined"
11573 #endif
11574 #if true != 1
11575 "error: true is not 1"
11576 #endif
11577 #ifndef __bool_true_false_are_defined
11578 "error: __bool_true_false_are_defined is not defined"
11579 #endif
11581 struct s { _Bool s: 1; _Bool t; } s;
11583 char a[true == 1 ? 1 : -1];
11584 char b[false == 0 ? 1 : -1];
11585 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11586 char d[(bool) 0.5 == true ? 1 : -1];
11587 /* See body of main program for 'e'. */
11588 char f[(_Bool) 0.0 == false ? 1 : -1];
11589 char g[true];
11590 char h[sizeof (_Bool)];
11591 char i[sizeof s.t];
11592 enum { j = false, k = true, l = false * true, m = true * 256 };
11593 /* The following fails for
11594 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11595 _Bool n[m];
11596 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11597 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11598 /* Catch a bug in an HP-UX C compiler. See
11599 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11600 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11602 _Bool q = true;
11603 _Bool *pq = &q;
11606 main ()
11609 bool e = &s;
11610 *pq |= q;
11611 *pq |= ! q;
11612 /* Refer to every declared value, to avoid compiler optimizations. */
11613 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11614 + !m + !n + !o + !p + !q + !pq);
11617 return 0;
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11621 ac_cv_header_stdbool_h=yes
11622 else
11623 ac_cv_header_stdbool_h=no
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11628 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11629 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11630 if test "x$ac_cv_type__Bool" = x""yes; then :
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE__BOOL 1
11634 _ACEOF
11641 REPLACE_NULL=0;
11642 HAVE_WCHAR_T=1;
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11646 $as_echo_n "checking for wchar_t... " >&6; }
11647 if test "${gt_cv_c_wchar_t+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <stddef.h>
11653 wchar_t foo = (wchar_t)'\0';
11655 main ()
11659 return 0;
11661 _ACEOF
11662 if ac_fn_c_try_compile "$LINENO"; then :
11663 gt_cv_c_wchar_t=yes
11664 else
11665 gt_cv_c_wchar_t=no
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11670 $as_echo "$gt_cv_c_wchar_t" >&6; }
11671 if test $gt_cv_c_wchar_t = yes; then
11673 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11678 GNULIB_DPRINTF=0;
11679 GNULIB_FCLOSE=0;
11680 GNULIB_FDOPEN=0;
11681 GNULIB_FFLUSH=0;
11682 GNULIB_FGETC=0;
11683 GNULIB_FGETS=0;
11684 GNULIB_FOPEN=0;
11685 GNULIB_FPRINTF=0;
11686 GNULIB_FPRINTF_POSIX=0;
11687 GNULIB_FPURGE=0;
11688 GNULIB_FPUTC=0;
11689 GNULIB_FPUTS=0;
11690 GNULIB_FREAD=0;
11691 GNULIB_FREOPEN=0;
11692 GNULIB_FSCANF=0;
11693 GNULIB_FSEEK=0;
11694 GNULIB_FSEEKO=0;
11695 GNULIB_FTELL=0;
11696 GNULIB_FTELLO=0;
11697 GNULIB_FWRITE=0;
11698 GNULIB_GETC=0;
11699 GNULIB_GETCHAR=0;
11700 GNULIB_GETDELIM=0;
11701 GNULIB_GETLINE=0;
11702 GNULIB_OBSTACK_PRINTF=0;
11703 GNULIB_OBSTACK_PRINTF_POSIX=0;
11704 GNULIB_PCLOSE=0;
11705 GNULIB_PERROR=0;
11706 GNULIB_POPEN=0;
11707 GNULIB_PRINTF=0;
11708 GNULIB_PRINTF_POSIX=0;
11709 GNULIB_PUTC=0;
11710 GNULIB_PUTCHAR=0;
11711 GNULIB_PUTS=0;
11712 GNULIB_REMOVE=0;
11713 GNULIB_RENAME=0;
11714 GNULIB_RENAMEAT=0;
11715 GNULIB_SCANF=0;
11716 GNULIB_SNPRINTF=0;
11717 GNULIB_SPRINTF_POSIX=0;
11718 GNULIB_STDIO_H_NONBLOCKING=0;
11719 GNULIB_STDIO_H_SIGPIPE=0;
11720 GNULIB_TMPFILE=0;
11721 GNULIB_VASPRINTF=0;
11722 GNULIB_VFSCANF=0;
11723 GNULIB_VSCANF=0;
11724 GNULIB_VDPRINTF=0;
11725 GNULIB_VFPRINTF=0;
11726 GNULIB_VFPRINTF_POSIX=0;
11727 GNULIB_VPRINTF=0;
11728 GNULIB_VPRINTF_POSIX=0;
11729 GNULIB_VSNPRINTF=0;
11730 GNULIB_VSPRINTF_POSIX=0;
11731 HAVE_DECL_FPURGE=1;
11732 HAVE_DECL_FSEEKO=1;
11733 HAVE_DECL_FTELLO=1;
11734 HAVE_DECL_GETDELIM=1;
11735 HAVE_DECL_GETLINE=1;
11736 HAVE_DECL_OBSTACK_PRINTF=1;
11737 HAVE_DECL_SNPRINTF=1;
11738 HAVE_DECL_VSNPRINTF=1;
11739 HAVE_DPRINTF=1;
11740 HAVE_FSEEKO=1;
11741 HAVE_FTELLO=1;
11742 HAVE_PCLOSE=1;
11743 HAVE_POPEN=1;
11744 HAVE_RENAMEAT=1;
11745 HAVE_VASPRINTF=1;
11746 HAVE_VDPRINTF=1;
11747 REPLACE_DPRINTF=0;
11748 REPLACE_FCLOSE=0;
11749 REPLACE_FDOPEN=0;
11750 REPLACE_FFLUSH=0;
11751 REPLACE_FOPEN=0;
11752 REPLACE_FPRINTF=0;
11753 REPLACE_FPURGE=0;
11754 REPLACE_FREOPEN=0;
11755 REPLACE_FSEEK=0;
11756 REPLACE_FSEEKO=0;
11757 REPLACE_FTELL=0;
11758 REPLACE_FTELLO=0;
11759 REPLACE_GETDELIM=0;
11760 REPLACE_GETLINE=0;
11761 REPLACE_OBSTACK_PRINTF=0;
11762 REPLACE_PERROR=0;
11763 REPLACE_POPEN=0;
11764 REPLACE_PRINTF=0;
11765 REPLACE_REMOVE=0;
11766 REPLACE_RENAME=0;
11767 REPLACE_RENAMEAT=0;
11768 REPLACE_SNPRINTF=0;
11769 REPLACE_SPRINTF=0;
11770 REPLACE_STDIO_READ_FUNCS=0;
11771 REPLACE_STDIO_WRITE_FUNCS=0;
11772 REPLACE_TMPFILE=0;
11773 REPLACE_VASPRINTF=0;
11774 REPLACE_VDPRINTF=0;
11775 REPLACE_VFPRINTF=0;
11776 REPLACE_VPRINTF=0;
11777 REPLACE_VSNPRINTF=0;
11778 REPLACE_VSPRINTF=0;
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11781 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11782 if test "${ac_cv_struct_tm+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <sys/types.h>
11788 #include <time.h>
11791 main ()
11793 struct tm tm;
11794 int *p = &tm.tm_sec;
11795 return !p;
11797 return 0;
11799 _ACEOF
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801 ac_cv_struct_tm=time.h
11802 else
11803 ac_cv_struct_tm=sys/time.h
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11808 $as_echo "$ac_cv_struct_tm" >&6; }
11809 if test $ac_cv_struct_tm = sys/time.h; then
11811 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11815 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11816 #include <$ac_cv_struct_tm>
11819 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11821 cat >>confdefs.h <<_ACEOF
11822 #define HAVE_STRUCT_TM_TM_ZONE 1
11823 _ACEOF
11828 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11830 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11832 else
11833 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11835 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11836 ac_have_decl=1
11837 else
11838 ac_have_decl=0
11841 cat >>confdefs.h <<_ACEOF
11842 #define HAVE_DECL_TZNAME $ac_have_decl
11843 _ACEOF
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11846 $as_echo_n "checking for tzname... " >&6; }
11847 if test "${ac_cv_var_tzname+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 #include <time.h>
11853 #if !HAVE_DECL_TZNAME
11854 extern char *tzname[];
11855 #endif
11858 main ()
11860 return tzname[0][0];
11862 return 0;
11864 _ACEOF
11865 if ac_fn_c_try_link "$LINENO"; then :
11866 ac_cv_var_tzname=yes
11867 else
11868 ac_cv_var_tzname=no
11870 rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11874 $as_echo "$ac_cv_var_tzname" >&6; }
11875 if test $ac_cv_var_tzname = yes; then
11877 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11883 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11885 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11887 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11896 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11897 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
11898 ac_have_decl=1
11899 else
11900 ac_have_decl=0
11903 cat >>confdefs.h <<_ACEOF
11904 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11905 _ACEOF
11909 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11910 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
11911 ac_have_decl=1
11912 else
11913 ac_have_decl=0
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11918 _ACEOF
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11923 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11924 if test "${ac_cv_header_stat_broken+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 #include <sys/types.h>
11930 #include <sys/stat.h>
11932 #if defined S_ISBLK && defined S_IFDIR
11933 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11934 #endif
11936 #if defined S_ISBLK && defined S_IFCHR
11937 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11938 #endif
11940 #if defined S_ISLNK && defined S_IFREG
11941 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11942 #endif
11944 #if defined S_ISSOCK && defined S_IFREG
11945 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11946 #endif
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 ac_cv_header_stat_broken=no
11951 else
11952 ac_cv_header_stat_broken=yes
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11957 $as_echo "$ac_cv_header_stat_broken" >&6; }
11958 if test $ac_cv_header_stat_broken = yes; then
11960 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11966 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11967 if test "x$ac_cv_type_mode_t" = x""yes; then :
11969 else
11971 cat >>confdefs.h <<_ACEOF
11972 #define mode_t int
11973 _ACEOF
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11980 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11981 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 #include <time.h>
11989 main ()
11991 static struct timespec x; x.tv_sec = x.tv_nsec;
11993 return 0;
11995 _ACEOF
11996 if ac_fn_c_try_compile "$LINENO"; then :
11997 gl_cv_sys_struct_timespec_in_time_h=yes
11998 else
11999 gl_cv_sys_struct_timespec_in_time_h=no
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12004 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12006 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12007 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12008 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12009 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12010 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12013 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12014 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 #include <sys/time.h>
12022 main ()
12024 static struct timespec x; x.tv_sec = x.tv_nsec;
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12031 else
12032 gl_cv_sys_struct_timespec_in_sys_time_h=no
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12037 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12038 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12039 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12042 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12043 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <pthread.h>
12051 main ()
12053 static struct timespec x; x.tv_sec = x.tv_nsec;
12055 return 0;
12057 _ACEOF
12058 if ac_fn_c_try_compile "$LINENO"; then :
12059 gl_cv_sys_struct_timespec_in_pthread_h=yes
12060 else
12061 gl_cv_sys_struct_timespec_in_pthread_h=no
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12066 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12067 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12068 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12087 if test $gl_cv_have_include_next = yes; then
12088 gl_cv_next_time_h='<'time.h'>'
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12091 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12092 if test "${gl_cv_next_time_h+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 #include <time.h>
12100 _ACEOF
12101 case "$host_os" in
12102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12103 *) gl_absname_cpp="$ac_cpp" ;;
12104 esac
12106 case "$host_os" in
12107 mingw*)
12108 gl_dirsep_regex='[/\\]'
12111 gl_dirsep_regex='\/'
12113 esac
12114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12116 gl_header_literal_regex=`echo 'time.h' \
12117 | sed -e "$gl_make_literal_regex_sed"`
12118 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12120 s|^/[^/]|//&|
12124 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12125 sed -n "$gl_absolute_header_sed"`'"'
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12130 $as_echo "$gl_cv_next_time_h" >&6; }
12132 NEXT_TIME_H=$gl_cv_next_time_h
12134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12136 gl_next_as_first_directive='<'time.h'>'
12137 else
12138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12139 gl_next_as_first_directive=$gl_cv_next_time_h
12141 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12158 $as_echo_n "checking whether the utimes function works... " >&6; }
12159 if test "${gl_cv_func_working_utimes+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12163 if test "$cross_compiling" = yes; then :
12164 gl_cv_func_working_utimes=no
12165 else
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12169 #include <sys/types.h>
12170 #include <sys/stat.h>
12171 #include <fcntl.h>
12172 #include <sys/time.h>
12173 #include <time.h>
12174 #include <unistd.h>
12175 #include <stdlib.h>
12176 #include <stdio.h>
12177 #include <utime.h>
12179 static int
12180 inorder (time_t a, time_t b, time_t c)
12182 return a <= b && b <= c;
12186 main ()
12188 int result = 0;
12189 char const *file = "conftest.utimes";
12190 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12192 /* Test whether utimes() essentially works. */
12194 struct stat sbuf;
12195 FILE *f = fopen (file, "w");
12196 if (f == NULL)
12197 result |= 1;
12198 else if (fclose (f) != 0)
12199 result |= 1;
12200 else if (utimes (file, timeval) != 0)
12201 result |= 2;
12202 else if (lstat (file, &sbuf) != 0)
12203 result |= 1;
12204 else if (!(sbuf.st_atime == timeval[0].tv_sec
12205 && sbuf.st_mtime == timeval[1].tv_sec))
12206 result |= 4;
12207 if (unlink (file) != 0)
12208 result |= 1;
12211 /* Test whether utimes() with a NULL argument sets the file's timestamp
12212 to the current time. Use 'fstat' as well as 'time' to
12213 determine the "current" time, to accommodate NFS file systems
12214 if there is a time skew between the host and the NFS server. */
12216 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12217 if (fd < 0)
12218 result |= 1;
12219 else
12221 time_t t0, t2;
12222 struct stat st0, st1, st2;
12223 if (time (&t0) == (time_t) -1)
12224 result |= 1;
12225 else if (fstat (fd, &st0) != 0)
12226 result |= 1;
12227 else if (utimes (file, timeval) != 0)
12228 result |= 2;
12229 else if (utimes (file, NULL) != 0)
12230 result |= 8;
12231 else if (fstat (fd, &st1) != 0)
12232 result |= 1;
12233 else if (write (fd, "\n", 1) != 1)
12234 result |= 1;
12235 else if (fstat (fd, &st2) != 0)
12236 result |= 1;
12237 else if (time (&t2) == (time_t) -1)
12238 result |= 1;
12239 else
12241 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12242 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12243 if (! (st1.st_atime == st1.st_mtime))
12244 result |= 16;
12245 if (! (m_ok_POSIX || m_ok_NFS))
12246 result |= 32;
12248 if (close (fd) != 0)
12249 result |= 1;
12251 if (unlink (file) != 0)
12252 result |= 1;
12255 /* Test whether utimes() with a NULL argument works on read-only files. */
12257 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12258 if (fd < 0)
12259 result |= 1;
12260 else if (close (fd) != 0)
12261 result |= 1;
12262 else if (utimes (file, NULL) != 0)
12263 result |= 64;
12264 if (unlink (file) != 0)
12265 result |= 1;
12268 return result;
12271 _ACEOF
12272 if ac_fn_c_try_run "$LINENO"; then :
12273 gl_cv_func_working_utimes=yes
12274 else
12275 gl_cv_func_working_utimes=no
12277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12278 conftest.$ac_objext conftest.beam conftest.$ac_ext
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12283 $as_echo "$gl_cv_func_working_utimes" >&6; }
12285 if test $gl_cv_func_working_utimes = yes; then
12287 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12296 $as_echo_n "checking for struct utimbuf... " >&6; }
12297 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 #if HAVE_SYS_TIME_H
12303 #include <sys/time.h>
12304 #endif
12305 #include <time.h>
12306 #ifdef HAVE_UTIME_H
12307 #include <utime.h>
12308 #endif
12311 main ()
12313 static struct utimbuf x; x.actime = x.modtime;
12315 return 0;
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319 gl_cv_sys_struct_utimbuf=yes
12320 else
12321 gl_cv_sys_struct_utimbuf=no
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12326 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12328 if test $gl_cv_sys_struct_utimbuf = yes; then
12330 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12347 if false; then
12348 GL_COND_LIBTOOL_TRUE=
12349 GL_COND_LIBTOOL_FALSE='#'
12350 else
12351 GL_COND_LIBTOOL_TRUE='#'
12352 GL_COND_LIBTOOL_FALSE=
12355 gl_cond_libtool=false
12356 gl_libdeps=
12357 gl_ltlibdeps=
12358 gl_m4_base='m4'
12368 gl_source_base='lib'
12371 if test $ac_cv_func_alloca_works = no; then
12375 # Define an additional variable used in the Makefile substitution.
12376 if test $ac_cv_working_alloca_h = yes; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12378 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12379 if test "${gl_cv_rpl_alloca+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12387 Need own alloca
12388 #endif
12390 _ACEOF
12391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12392 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12393 gl_cv_rpl_alloca=yes
12394 else
12395 gl_cv_rpl_alloca=no
12397 rm -f conftest*
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12402 $as_echo "$gl_cv_rpl_alloca" >&6; }
12403 if test $gl_cv_rpl_alloca = yes; then
12405 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12407 ALLOCA_H=alloca.h
12408 else
12409 ALLOCA_H=
12411 else
12412 ALLOCA_H=alloca.h
12415 if test -n "$ALLOCA_H"; then
12416 GL_GENERATE_ALLOCA_H_TRUE=
12417 GL_GENERATE_ALLOCA_H_FALSE='#'
12418 else
12419 GL_GENERATE_ALLOCA_H_TRUE='#'
12420 GL_GENERATE_ALLOCA_H_FALSE=
12428 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12429 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12431 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12432 # programs in the package would end up linked with that potentially-shared
12433 # library, inducing unnecessary run-time overhead.
12434 LIB_CLOCK_GETTIME=
12436 gl_saved_libs=$LIBS
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12438 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12439 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_func_search_save_LIBS=$LIBS
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char clock_gettime ();
12454 main ()
12456 return clock_gettime ();
12458 return 0;
12460 _ACEOF
12461 for ac_lib in '' rt posix4; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12464 else
12465 ac_res=-l$ac_lib
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_search_clock_gettime=$ac_res
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext
12473 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12474 break
12476 done
12477 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12479 else
12480 ac_cv_search_clock_gettime=no
12482 rm conftest.$ac_ext
12483 LIBS=$ac_func_search_save_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12486 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12487 ac_res=$ac_cv_search_clock_gettime
12488 if test "$ac_res" != no; then :
12489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12490 test "$ac_cv_search_clock_gettime" = "none required" ||
12491 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12494 for ac_func in clock_gettime clock_settime
12495 do :
12496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12498 eval as_val=\$$as_ac_var
12499 if test "x$as_val" = x""yes; then :
12500 cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502 _ACEOF
12505 done
12507 LIBS=$gl_saved_libs
12533 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12536 if test $HAVE_DUP2 = 1; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12538 $as_echo_n "checking whether dup2 works... " >&6; }
12539 if test "${gl_cv_func_dup2_works+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 if test "$cross_compiling" = yes; then :
12543 case "$host_os" in
12544 mingw*) # on this platform, dup2 always returns 0 for success
12545 gl_cv_func_dup2_works="guessing no" ;;
12546 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12547 gl_cv_func_dup2_works="guessing no" ;;
12548 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12549 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12550 gl_cv_func_dup2_works="guessing no" ;;
12551 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12552 gl_cv_func_dup2_works="guessing no" ;;
12553 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12554 gl_cv_func_dup2_works="guessing no" ;;
12555 *) gl_cv_func_dup2_works="guessing yes" ;;
12556 esac
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12561 #include <unistd.h>
12562 #include <fcntl.h>
12563 #include <errno.h>
12565 main ()
12567 int result = 0;
12568 #ifdef FD_CLOEXEC
12569 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12570 result |= 1;
12571 #endif
12572 if (dup2 (1, 1) == 0)
12573 result |= 2;
12574 #ifdef FD_CLOEXEC
12575 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12576 result |= 4;
12577 #endif
12578 close (0);
12579 if (dup2 (0, 0) != -1)
12580 result |= 8;
12581 /* Many gnulib modules require POSIX conformance of EBADF. */
12582 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12583 result |= 16;
12584 return result;
12587 return 0;
12590 _ACEOF
12591 if ac_fn_c_try_run "$LINENO"; then :
12592 gl_cv_func_dup2_works=yes
12593 else
12594 gl_cv_func_dup2_works=no
12596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12597 conftest.$ac_objext conftest.beam conftest.$ac_ext
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12603 $as_echo "$gl_cv_func_dup2_works" >&6; }
12604 case "$gl_cv_func_dup2_works" in
12605 *yes) ;;
12607 REPLACE_DUP2=1
12609 esac
12613 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
12622 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12631 GNULIB_DUP2=1
12643 # Persuade glibc <stdlib.h> to declare getloadavg().
12646 gl_save_LIBS=$LIBS
12648 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12649 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12650 HAVE_GETLOADAVG=1
12651 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12652 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12654 else
12655 gl_func_getloadavg_done=no
12657 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12658 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12659 # to get the right answer into the cache.
12660 # For kstat on solaris, we need to test for libelf and libkvm to force the
12661 # definition of SVR4 below.
12662 if test $gl_func_getloadavg_done = no; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12664 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12665 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 ac_check_lib_save_LIBS=$LIBS
12669 LIBS="-lelf $LIBS"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char elf_begin ();
12681 main ()
12683 return elf_begin ();
12685 return 0;
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_elf_elf_begin=yes
12690 else
12691 ac_cv_lib_elf_elf_begin=no
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12698 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12699 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12700 LIBS="-lelf $LIBS"
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12704 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12705 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 ac_check_lib_save_LIBS=$LIBS
12709 LIBS="-lkvm $LIBS"
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 char kvm_open ();
12721 main ()
12723 return kvm_open ();
12725 return 0;
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729 ac_cv_lib_kvm_kvm_open=yes
12730 else
12731 ac_cv_lib_kvm_kvm_open=no
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 LIBS=$ac_check_lib_save_LIBS
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12738 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12739 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12740 LIBS="-lkvm $LIBS"
12743 # Check for the 4.4BSD definition of getloadavg.
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12745 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12746 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lutil $LIBS"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char getloadavg ();
12762 main ()
12764 return getloadavg ();
12766 return 0;
12768 _ACEOF
12769 if ac_fn_c_try_link "$LINENO"; then :
12770 ac_cv_lib_util_getloadavg=yes
12771 else
12772 ac_cv_lib_util_getloadavg=no
12774 rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12779 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12780 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12781 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
12786 if test $gl_func_getloadavg_done = no; then
12787 # There is a commonly available library for RS/6000 AIX.
12788 # Since it is not a standard part of AIX, it might be installed locally.
12789 gl_getloadavg_LIBS=$LIBS
12790 LIBS="-L/usr/local/lib $LIBS"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12792 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12793 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-lgetloadavg $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char getloadavg ();
12809 main ()
12811 return getloadavg ();
12813 return 0;
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_getloadavg_getloadavg=yes
12818 else
12819 ac_cv_lib_getloadavg_getloadavg=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12826 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12827 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12828 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
12829 else
12830 LIBS=$gl_getloadavg_LIBS
12835 # Set up the replacement function if necessary.
12836 if test $gl_func_getloadavg_done = no; then
12837 HAVE_GETLOADAVG=0
12839 # Solaris has libkstat which does not require root.
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12841 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12842 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_check_lib_save_LIBS=$LIBS
12846 LIBS="-lkstat $LIBS"
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char kstat_open ();
12858 main ()
12860 return kstat_open ();
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_lib_kstat_kstat_open=yes
12867 else
12868 ac_cv_lib_kstat_kstat_open=no
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LIBS=$ac_check_lib_save_LIBS
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12875 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12876 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12877 cat >>confdefs.h <<_ACEOF
12878 #define HAVE_LIBKSTAT 1
12879 _ACEOF
12881 LIBS="-lkstat $LIBS"
12885 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
12887 # AIX has libperfstat which does not require root
12888 if test $gl_func_getloadavg_done = no; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12890 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12891 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-lperfstat $LIBS"
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char perfstat_cpu_total ();
12907 main ()
12909 return perfstat_cpu_total ();
12911 return 0;
12913 _ACEOF
12914 if ac_fn_c_try_link "$LINENO"; then :
12915 ac_cv_lib_perfstat_perfstat_cpu_total=yes
12916 else
12917 ac_cv_lib_perfstat_perfstat_cpu_total=no
12919 rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12924 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12925 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_LIBPERFSTAT 1
12928 _ACEOF
12930 LIBS="-lperfstat $LIBS"
12934 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
12937 if test $gl_func_getloadavg_done = no; then
12938 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12939 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12940 gl_func_getloadavg_done=yes
12942 $as_echo "#define DGUX 1" >>confdefs.h
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12945 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12946 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 ac_check_lib_save_LIBS=$LIBS
12950 LIBS="-ldgc $LIBS"
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12954 /* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char dg_sys_info ();
12962 main ()
12964 return dg_sys_info ();
12966 return 0;
12968 _ACEOF
12969 if ac_fn_c_try_link "$LINENO"; then :
12970 ac_cv_lib_dgc_dg_sys_info=yes
12971 else
12972 ac_cv_lib_dgc_dg_sys_info=no
12974 rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12979 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12980 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_LIBDGC 1
12983 _ACEOF
12985 LIBS="-ldgc $LIBS"
12997 if test "x$gl_save_LIBS" = x; then
12998 GETLOADAVG_LIBS=$LIBS
12999 else
13000 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
13002 LIBS=$gl_save_LIBS
13005 # Test whether the system declares getloadavg. Solaris has the function
13006 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
13007 for ac_header in sys/loadavg.h
13008 do :
13009 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
13010 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define HAVE_SYS_LOADAVG_H 1
13013 _ACEOF
13017 done
13019 if test $ac_cv_header_sys_loadavg_h = yes; then
13020 HAVE_SYS_LOADAVG_H=1
13021 else
13022 HAVE_SYS_LOADAVG_H=0
13024 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
13025 # include <sys/loadavg.h>
13026 #endif
13027 #include <stdlib.h>
13029 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
13031 else
13032 HAVE_DECL_GETLOADAVG=0
13036 if test $HAVE_GETLOADAVG = 0; then
13045 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
13048 # Figure out what our getloadavg.c needs.
13050 # On HPUX9, an unprivileged user can get load averages this way.
13051 if test $gl_func_getloadavg_done = no; then
13052 for ac_func in pstat_getdynamic
13053 do :
13054 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13055 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_PSTAT_GETDYNAMIC 1
13058 _ACEOF
13059 gl_func_getloadavg_done=yes
13061 done
13065 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13066 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13067 # Irix 4.0.5F has the header but not the library.
13068 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13069 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13070 gl_func_getloadavg_done=yes
13072 $as_echo "#define SVR4 1" >>confdefs.h
13076 if test $gl_func_getloadavg_done = no; then
13077 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13078 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13079 gl_func_getloadavg_done=yes
13081 $as_echo "#define UMAX 1" >>confdefs.h
13084 $as_echo "#define UMAX4_3 1" >>confdefs.h
13091 if test $gl_func_getloadavg_done = no; then
13092 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13093 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13094 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
13101 if test $gl_func_getloadavg_done = no; then
13102 for ac_header in mach/mach.h
13103 do :
13104 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13105 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13106 cat >>confdefs.h <<_ACEOF
13107 #define HAVE_MACH_MACH_H 1
13108 _ACEOF
13112 done
13116 for ac_header in nlist.h
13117 do :
13118 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13119 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_NLIST_H 1
13122 _ACEOF
13123 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13125 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13129 _ACEOF
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <nlist.h>
13138 main ()
13140 struct nlist x;
13141 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13142 x.n_un.n_name = "";
13143 #else
13144 x.n_name = "";
13145 #endif
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13152 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13160 done
13168 GNULIB_GETLOADAVG=1
13179 if test $REPLACE_GETOPT = 1; then
13188 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13198 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13203 GNULIB_GL_UNISTD_H_GETOPT=1
13211 REPLACE_GETOPT=0
13214 if test -n "$gl_replace_getopt"; then :
13216 REPLACE_GETOPT=1
13221 if test $REPLACE_GETOPT = 1; then
13223 GETOPT_H=getopt.h
13225 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13231 if test $REPLACE_GETOPT = 1; then
13240 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13250 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13255 GNULIB_GL_UNISTD_H_GETOPT=1
13269 gl_gettimeofday_timezone=void
13270 if test $ac_cv_func_gettimeofday != yes; then
13271 HAVE_GETTIMEOFDAY=0
13272 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13277 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13278 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 if test "$cross_compiling" = yes; then :
13282 # When cross-compiling:
13283 case "$host_os" in
13284 # Guess all is fine on glibc systems.
13285 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13286 # If we don't know, assume the worst.
13287 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13288 esac
13290 else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #include <string.h>
13294 #include <sys/time.h>
13295 #include <time.h>
13296 #include <stdlib.h>
13299 main ()
13302 time_t t = 0;
13303 struct tm *lt;
13304 struct tm saved_lt;
13305 struct timeval tv;
13306 lt = localtime (&t);
13307 saved_lt = *lt;
13308 gettimeofday (&tv, NULL);
13309 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13312 return 0;
13314 _ACEOF
13315 if ac_fn_c_try_run "$LINENO"; then :
13316 gl_cv_func_gettimeofday_clobber=no
13317 else
13318 gl_cv_func_gettimeofday_clobber=yes
13320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13321 conftest.$ac_objext conftest.beam conftest.$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13326 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13328 case "$gl_cv_func_gettimeofday_clobber" in
13329 *yes)
13330 REPLACE_GETTIMEOFDAY=1
13333 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13336 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13340 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13343 esac
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13346 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13347 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <sys/time.h>
13353 struct timeval c;
13354 int gettimeofday (struct timeval *restrict, void *restrict);
13357 main ()
13359 /* glibc uses struct timezone * rather than the POSIX void *
13360 if _GNU_SOURCE is defined. However, since the only portable
13361 use of gettimeofday uses NULL as the second parameter, and
13362 since the glibc definition is actually more typesafe, it is
13363 not worth wrapping this to get a compliant signature. */
13364 int (*f) (struct timeval *restrict, void *restrict)
13365 = gettimeofday;
13366 int x = f (&c, 0);
13367 return !(x | c.tv_sec | c.tv_usec);
13370 return 0;
13372 _ACEOF
13373 if ac_fn_c_try_compile "$LINENO"; then :
13374 gl_cv_func_gettimeofday_posix_signature=yes
13375 else
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <sys/time.h>
13379 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13382 main ()
13386 return 0;
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 gl_cv_func_gettimeofday_posix_signature=almost
13391 else
13392 gl_cv_func_gettimeofday_posix_signature=no
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13399 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13400 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13401 gl_gettimeofday_timezone='struct timezone'
13402 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13403 REPLACE_GETTIMEOFDAY=1
13405 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13406 REPLACE_GETTIMEOFDAY=1
13411 cat >>confdefs.h <<_ACEOF
13412 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13413 _ACEOF
13416 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13425 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13428 for ac_header in sys/timeb.h
13429 do :
13430 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13431 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_SYS_TIMEB_H 1
13434 _ACEOF
13438 done
13440 for ac_func in _ftime
13441 do :
13442 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13443 if test "x$ac_cv_func__ftime" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE__FTIME 1
13446 _ACEOF
13449 done
13458 GNULIB_GETTIMEOFDAY=1
13470 if test $ac_cv_func_lstat = yes; then
13472 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13473 *no)
13474 REPLACE_LSTAT=1
13476 esac
13477 else
13478 HAVE_LSTAT=0
13481 if test $REPLACE_LSTAT = 1; then
13490 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13502 GNULIB_LSTAT=1
13514 if test $APPLE_UNIVERSAL_BUILD = 1; then
13515 # A universal build on Apple Mac OS X platforms.
13516 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13517 # But we need a configuration result that is valid in both modes.
13518 gl_cv_func_working_mktime=no
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13521 $as_echo_n "checking for working mktime... " >&6; }
13522 if test "${gl_cv_func_working_mktime+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test "$cross_compiling" = yes; then :
13526 gl_cv_func_working_mktime=no
13527 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 /* Test program from Paul Eggert and Tony Leneis. */
13531 #include <limits.h>
13532 #include <stdlib.h>
13533 #include <time.h>
13535 #ifdef HAVE_UNISTD_H
13536 # include <unistd.h>
13537 #endif
13539 #ifndef HAVE_ALARM
13540 # define alarm(X) /* empty */
13541 #endif
13543 /* Work around redefinition to rpl_putenv by other config tests. */
13544 #undef putenv
13546 static time_t time_t_max;
13547 static time_t time_t_min;
13549 /* Values we'll use to set the TZ environment variable. */
13550 static char *tz_strings[] = {
13551 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13552 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13554 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13556 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13557 Based on a problem report from Andreas Jaeger. */
13558 static int
13559 spring_forward_gap ()
13561 /* glibc (up to about 1998-10-07) failed this test. */
13562 struct tm tm;
13564 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13565 instead of "TZ=America/Vancouver" in order to detect the bug even
13566 on systems that don't support the Olson extension, or don't have the
13567 full zoneinfo tables installed. */
13568 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13570 tm.tm_year = 98;
13571 tm.tm_mon = 3;
13572 tm.tm_mday = 5;
13573 tm.tm_hour = 2;
13574 tm.tm_min = 0;
13575 tm.tm_sec = 0;
13576 tm.tm_isdst = -1;
13577 return mktime (&tm) != (time_t) -1;
13580 static int
13581 mktime_test1 (time_t now)
13583 struct tm *lt;
13584 return ! (lt = localtime (&now)) || mktime (lt) == now;
13587 static int
13588 mktime_test (time_t now)
13590 return (mktime_test1 (now)
13591 && mktime_test1 ((time_t) (time_t_max - now))
13592 && mktime_test1 ((time_t) (time_t_min + now)));
13595 static int
13596 irix_6_4_bug ()
13598 /* Based on code from Ariel Faigon. */
13599 struct tm tm;
13600 tm.tm_year = 96;
13601 tm.tm_mon = 3;
13602 tm.tm_mday = 0;
13603 tm.tm_hour = 0;
13604 tm.tm_min = 0;
13605 tm.tm_sec = 0;
13606 tm.tm_isdst = -1;
13607 mktime (&tm);
13608 return tm.tm_mon == 2 && tm.tm_mday == 31;
13611 static int
13612 bigtime_test (int j)
13614 struct tm tm;
13615 time_t now;
13616 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13617 now = mktime (&tm);
13618 if (now != (time_t) -1)
13620 struct tm *lt = localtime (&now);
13621 if (! (lt
13622 && lt->tm_year == tm.tm_year
13623 && lt->tm_mon == tm.tm_mon
13624 && lt->tm_mday == tm.tm_mday
13625 && lt->tm_hour == tm.tm_hour
13626 && lt->tm_min == tm.tm_min
13627 && lt->tm_sec == tm.tm_sec
13628 && lt->tm_yday == tm.tm_yday
13629 && lt->tm_wday == tm.tm_wday
13630 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13631 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13632 return 0;
13634 return 1;
13637 static int
13638 year_2050_test ()
13640 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13641 ignoring leap seconds. */
13642 unsigned long int answer = 2527315200UL;
13644 struct tm tm;
13645 time_t t;
13646 tm.tm_year = 2050 - 1900;
13647 tm.tm_mon = 2 - 1;
13648 tm.tm_mday = 1;
13649 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13650 tm.tm_isdst = -1;
13652 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13653 instead of "TZ=America/Vancouver" in order to detect the bug even
13654 on systems that don't support the Olson extension, or don't have the
13655 full zoneinfo tables installed. */
13656 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13658 t = mktime (&tm);
13660 /* Check that the result is either a failure, or close enough
13661 to the correct answer that we can assume the discrepancy is
13662 due to leap seconds. */
13663 return (t == (time_t) -1
13664 || (0 < t && answer - 120 <= t && t <= answer + 120));
13668 main ()
13670 int result = 0;
13671 time_t t, delta;
13672 int i, j;
13673 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13674 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13676 /* This test makes some buggy mktime implementations loop.
13677 Give up after 60 seconds; a mktime slower than that
13678 isn't worth using anyway. */
13679 alarm (60);
13681 time_t_max = (! time_t_signed
13682 ? (time_t) -1
13683 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13684 * 2 + 1));
13685 time_t_min = (! time_t_signed
13686 ? (time_t) 0
13687 : time_t_signed_magnitude
13688 ? ~ (time_t) 0
13689 : ~ time_t_max);
13691 delta = time_t_max / 997; /* a suitable prime number */
13692 for (i = 0; i < N_STRINGS; i++)
13694 if (tz_strings[i])
13695 putenv (tz_strings[i]);
13697 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13698 if (! mktime_test (t))
13699 result |= 1;
13700 if ((result & 2) == 0
13701 && ! (mktime_test ((time_t) 1)
13702 && mktime_test ((time_t) (60 * 60))
13703 && mktime_test ((time_t) (60 * 60 * 24))))
13704 result |= 2;
13706 for (j = 1; (result & 4) == 0; j <<= 1)
13708 if (! bigtime_test (j))
13709 result |= 4;
13710 if (INT_MAX / 2 < j)
13711 break;
13713 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13714 result |= 8;
13716 if (! irix_6_4_bug ())
13717 result |= 16;
13718 if (! spring_forward_gap ())
13719 result |= 32;
13720 if (! year_2050_test ())
13721 result |= 64;
13722 return result;
13724 _ACEOF
13725 if ac_fn_c_try_run "$LINENO"; then :
13726 gl_cv_func_working_mktime=yes
13727 else
13728 gl_cv_func_working_mktime=no
13730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13731 conftest.$ac_objext conftest.beam conftest.$ac_ext
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13737 $as_echo "$gl_cv_func_working_mktime" >&6; }
13739 if test $gl_cv_func_working_mktime = no; then
13740 REPLACE_MKTIME=1
13741 else
13742 REPLACE_MKTIME=0
13745 if test $REPLACE_MKTIME = 1; then
13754 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
13765 GNULIB_MKTIME=1
13777 if test $ac_cv_func_pselect = yes; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13779 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13780 if test "${gl_cv_sig_pselect+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 #include <sys/select.h>
13788 main ()
13790 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13791 struct timespec const *restrict,
13792 sigset_t const *restrict) = pselect;
13793 return !p;
13795 return 0;
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 gl_cv_sig_pselect=yes
13800 else
13801 gl_cv_sig_pselect=no
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13807 $as_echo "$gl_cv_sig_pselect" >&6; }
13810 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
13811 REPLACE_PSELECT=1
13814 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
13823 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
13831 GNULIB_PSELECT=1
13841 LIB_PTHREAD_SIGMASK=
13844 if test $ac_cv_func_pthread_sigmask = yes; then
13846 else
13847 HAVE_PTHREAD_SIGMASK=0
13848 REPLACE_PTHREAD_SIGMASK=1
13854 if test $HAVE_PTHREAD_SIGMASK = 1; then
13857 if test -z "$LIB_PTHREAD_SIGMASK"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13859 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13860 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13864 if test "$cross_compiling" = yes; then :
13866 case "$host_os" in
13867 freebsd* | hpux* | solaris | solaris2.[2-9]*)
13868 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
13870 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
13871 esac
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13877 #include <pthread.h>
13878 #include <signal.h>
13879 #include <stddef.h>
13880 int main ()
13882 sigset_t set;
13883 sigemptyset (&set);
13884 return pthread_sigmask (1729, &set, NULL) != 0;
13886 _ACEOF
13887 if ac_fn_c_try_run "$LINENO"; then :
13888 gl_cv_func_pthread_sigmask_in_libc_works=no
13889 else
13890 gl_cv_func_pthread_sigmask_in_libc_works=yes
13892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13893 conftest.$ac_objext conftest.beam conftest.$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13899 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13900 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13901 *no)
13902 REPLACE_PTHREAD_SIGMASK=1
13904 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13907 esac
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13911 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13912 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13916 gl_save_LIBS="$LIBS"
13917 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
13918 if test "$cross_compiling" = yes; then :
13919 case "$host_os" in
13920 cygwin*)
13921 gl_cv_func_pthread_sigmask_return_works="guessing no";;
13923 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
13924 esac
13926 else
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 #include <pthread.h>
13931 #include <signal.h>
13932 #include <stddef.h>
13933 int main ()
13935 sigset_t set;
13936 sigemptyset (&set);
13937 if (pthread_sigmask (1729, &set, NULL) == -1)
13938 return 1;
13939 return 0;
13941 _ACEOF
13942 if ac_fn_c_try_run "$LINENO"; then :
13943 gl_cv_func_pthread_sigmask_return_works=yes
13944 else
13945 gl_cv_func_pthread_sigmask_return_works=no
13947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13948 conftest.$ac_objext conftest.beam conftest.$ac_ext
13951 LIBS="$gl_save_LIBS"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13955 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13956 case "$gl_cv_func_pthread_sigmask_return_works" in
13957 *no)
13958 REPLACE_PTHREAD_SIGMASK=1
13960 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13963 esac
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13966 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13967 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13971 case "$host_os" in
13972 irix*)
13973 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
13975 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
13976 esac
13977 gl_save_LIBS="$LIBS"
13978 LIBS="$LIBS $LIBMULTITHREAD"
13979 if test "$cross_compiling" = yes; then :
13981 else
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 #include <pthread.h>
13986 #include <signal.h>
13987 #include <stdio.h>
13988 #include <stdlib.h>
13989 #include <unistd.h>
13990 static volatile int sigint_occurred;
13991 static void
13992 sigint_handler (int sig)
13994 sigint_occurred++;
13996 int main ()
13998 sigset_t set;
13999 int pid = getpid ();
14000 char command[80];
14001 signal (SIGINT, sigint_handler);
14002 sigemptyset (&set);
14003 sigaddset (&set, SIGINT);
14004 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
14005 return 1;
14006 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
14007 if (!(system (command) == 0))
14008 return 2;
14009 sleep (2);
14010 if (!(sigint_occurred == 0))
14011 return 3;
14012 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
14013 return 4;
14014 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
14015 return 5;
14016 return 0;
14018 _ACEOF
14019 if ac_fn_c_try_run "$LINENO"; then :
14021 else
14022 gl_cv_func_pthread_sigmask_unblock_works=no
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14025 conftest.$ac_objext conftest.beam conftest.$ac_ext
14028 LIBS="$gl_save_LIBS"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
14032 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
14033 case "$gl_cv_func_pthread_sigmask_unblock_works" in
14034 *no)
14035 REPLACE_PTHREAD_SIGMASK=1
14037 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
14040 esac
14043 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
14052 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14055 if test $HAVE_PTHREAD_SIGMASK = 1; then
14057 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14067 GNULIB_PTHREAD_SIGMASK=1
14076 if test $ac_cv_func_readlink = no; then
14077 HAVE_READLINK=0
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14080 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14081 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 #include <unistd.h>
14087 /* Cause compilation failure if original declaration has wrong type. */
14088 ssize_t readlink (const char *, char *, size_t);
14090 main ()
14094 return 0;
14096 _ACEOF
14097 if ac_fn_c_try_compile "$LINENO"; then :
14098 gl_cv_decl_readlink_works=yes
14099 else
14100 gl_cv_decl_readlink_works=no
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14105 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14107 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14108 if test "${gl_cv_func_readlink_works+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 # We have readlink, so assume ln -s works.
14112 ln -s conftest.no-such conftest.link
14113 ln -s conftest.link conftest.lnk2
14114 if test "$cross_compiling" = yes; then :
14115 case "$host_os" in
14116 # Guess yes on glibc systems.
14117 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14118 # If we don't know, assume the worst.
14119 *) gl_cv_func_readlink_works="guessing no" ;;
14120 esac
14122 else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <unistd.h>
14128 main ()
14130 char buf[20];
14131 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14133 return 0;
14135 _ACEOF
14136 if ac_fn_c_try_run "$LINENO"; then :
14137 gl_cv_func_readlink_works=yes
14138 else
14139 gl_cv_func_readlink_works=no
14141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14142 conftest.$ac_objext conftest.beam conftest.$ac_ext
14145 rm -f conftest.link conftest.lnk2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14148 $as_echo "$gl_cv_func_readlink_works" >&6; }
14149 case "$gl_cv_func_readlink_works" in
14150 *yes)
14151 if test "$gl_cv_decl_readlink_works" != yes; then
14152 REPLACE_READLINK=1
14157 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14159 REPLACE_READLINK=1
14161 esac
14164 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14173 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14184 GNULIB_READLINK=1
14201 if test $gl_cv_have_include_next = yes; then
14202 gl_cv_next_signal_h='<'signal.h'>'
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14205 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14206 if test "${gl_cv_next_signal_h+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 #include <signal.h>
14214 _ACEOF
14215 case "$host_os" in
14216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14217 *) gl_absname_cpp="$ac_cpp" ;;
14218 esac
14220 case "$host_os" in
14221 mingw*)
14222 gl_dirsep_regex='[/\\]'
14225 gl_dirsep_regex='\/'
14227 esac
14228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14230 gl_header_literal_regex=`echo 'signal.h' \
14231 | sed -e "$gl_make_literal_regex_sed"`
14232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14234 s|^/[^/]|//&|
14238 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14239 sed -n "$gl_absolute_header_sed"`'"'
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14244 $as_echo "$gl_cv_next_signal_h" >&6; }
14246 NEXT_SIGNAL_H=$gl_cv_next_signal_h
14248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14250 gl_next_as_first_directive='<'signal.h'>'
14251 else
14252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14253 gl_next_as_first_directive=$gl_cv_next_signal_h
14255 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
14261 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14262 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14263 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14264 #include <signal.h>
14267 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
14269 else
14270 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
14279 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14280 #include <signal.h>
14283 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
14285 else
14286 HAVE_SIGHANDLER_T=0
14292 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14293 /* <sys/types.h> is not needed according to POSIX, but the
14294 <sys/socket.h> in i386-unknown-freebsd4.10 and
14295 powerpc-apple-darwin5.5 required it. */
14296 #include <sys/types.h>
14297 #if HAVE_SYS_SOCKET_H
14298 # include <sys/socket.h>
14299 #elif HAVE_WS2TCPIP_H
14300 # include <ws2tcpip.h>
14301 #endif
14304 if test "x$ac_cv_type_socklen_t" = x""yes; then :
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14308 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14309 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 # Systems have either "struct sockaddr *" or
14313 # "void *" as the second argument to getpeername
14314 gl_cv_socklen_t_equiv=
14315 for arg2 in "struct sockaddr" void; do
14316 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <sys/socket.h>
14322 int getpeername (int, $arg2 *, $t *);
14324 main ()
14326 $t len;
14327 getpeername (0, 0, &len);
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333 gl_cv_socklen_t_equiv="$t"
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 test "$gl_cv_socklen_t_equiv" != "" && break
14337 done
14338 test "$gl_cv_socklen_t_equiv" != "" && break
14339 done
14343 if test "$gl_cv_socklen_t_equiv" = ""; then
14344 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14347 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14349 cat >>confdefs.h <<_ACEOF
14350 #define socklen_t $gl_cv_socklen_t_equiv
14351 _ACEOF
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14357 $as_echo_n "checking for ssize_t... " >&6; }
14358 if test "${gt_cv_ssize_t+set}" = set; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 #include <sys/types.h>
14365 main ()
14367 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14368 return !x;
14370 return 0;
14372 _ACEOF
14373 if ac_fn_c_try_compile "$LINENO"; then :
14374 gt_cv_ssize_t=yes
14375 else
14376 gt_cv_ssize_t=no
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14381 $as_echo "$gt_cv_ssize_t" >&6; }
14382 if test $gt_cv_ssize_t = no; then
14384 $as_echo "#define ssize_t int" >>confdefs.h
14393 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14394 #include <sys/stat.h>
14396 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14400 _ACEOF
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14403 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14404 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14410 #include <sys/types.h>
14411 #include <sys/stat.h>
14412 #if HAVE_SYS_TIME_H
14413 # include <sys/time.h>
14414 #endif
14415 #include <time.h>
14416 struct timespec ts;
14417 struct stat st;
14420 main ()
14423 st.st_atim = ts;
14426 return 0;
14428 _ACEOF
14429 if ac_fn_c_try_compile "$LINENO"; then :
14430 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14431 else
14432 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14437 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14438 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14440 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14443 else
14444 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14445 #include <sys/stat.h>
14447 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14451 _ACEOF
14454 else
14455 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14456 #include <sys/stat.h>
14458 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14462 _ACEOF
14465 else
14466 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14467 #include <sys/stat.h>
14469 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
14471 cat >>confdefs.h <<_ACEOF
14472 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14473 _ACEOF
14489 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
14490 #include <sys/stat.h>
14492 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14496 _ACEOF
14499 else
14500 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14501 #include <sys/stat.h>
14503 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14507 _ACEOF
14510 else
14511 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
14512 #include <sys/stat.h>
14514 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
14516 cat >>confdefs.h <<_ACEOF
14517 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14518 _ACEOF
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14530 $as_echo_n "checking for working stdalign.h... " >&6; }
14531 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536 #include <stdalign.h>
14537 #include <stddef.h>
14539 /* Test that alignof yields a result consistent with offsetof.
14540 This catches GCC bug 52023
14541 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14542 #ifdef __cplusplus
14543 template <class t> struct alignof_helper { char a; t b; };
14544 # define ao(type) offsetof (alignof_helper<type>, b)
14545 #else
14546 # define ao(type) offsetof (struct { char a; type b; }, b)
14547 #endif
14548 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14549 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14550 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14552 /* Test _Alignas only on platforms where gnulib can help. */
14553 #if \
14554 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14555 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14556 int alignas (8) alignas_int = 1;
14557 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14558 #endif
14561 main ()
14565 return 0;
14567 _ACEOF
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 gl_cv_header_working_stdalign_h=yes
14570 else
14571 gl_cv_header_working_stdalign_h=no
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14576 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14578 if test $gl_cv_header_working_stdalign_h = yes; then
14579 STDALIGN_H=''
14580 else
14581 STDALIGN_H='stdalign.h'
14585 if test -n "$STDALIGN_H"; then
14586 GL_GENERATE_STDALIGN_H_TRUE=
14587 GL_GENERATE_STDALIGN_H_FALSE='#'
14588 else
14589 GL_GENERATE_STDALIGN_H_TRUE='#'
14590 GL_GENERATE_STDALIGN_H_FALSE=
14595 STDARG_H=''
14596 NEXT_STDARG_H='<stdarg.h>'
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14598 $as_echo_n "checking for va_copy... " >&6; }
14599 if test "${gl_cv_func_va_copy+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 #include <stdarg.h>
14607 main ()
14610 #ifndef va_copy
14611 void (*func) (va_list, va_list) = va_copy;
14612 #endif
14615 return 0;
14617 _ACEOF
14618 if ac_fn_c_try_compile "$LINENO"; then :
14619 gl_cv_func_va_copy=yes
14620 else
14621 gl_cv_func_va_copy=no
14623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14627 $as_echo "$gl_cv_func_va_copy" >&6; }
14628 if test $gl_cv_func_va_copy = no; then
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 #if defined _AIX && !defined __GNUC__
14632 AIX vaccine
14633 #endif
14635 _ACEOF
14636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14637 $EGREP "vaccine" >/dev/null 2>&1; then :
14638 gl_aixcc=yes
14639 else
14640 gl_aixcc=no
14642 rm -f conftest*
14644 if test $gl_aixcc = yes; then
14645 STDARG_H=stdarg.h
14654 if test $gl_cv_have_include_next = yes; then
14655 gl_cv_next_stdarg_h='<'stdarg.h'>'
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14658 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14659 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665 #include <stdarg.h>
14667 _ACEOF
14668 case "$host_os" in
14669 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14670 *) gl_absname_cpp="$ac_cpp" ;;
14671 esac
14673 case "$host_os" in
14674 mingw*)
14675 gl_dirsep_regex='[/\\]'
14678 gl_dirsep_regex='\/'
14680 esac
14681 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14683 gl_header_literal_regex=`echo 'stdarg.h' \
14684 | sed -e "$gl_make_literal_regex_sed"`
14685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14687 s|^/[^/]|//&|
14691 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14692 sed -n "$gl_absolute_header_sed"`'"'
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14697 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14699 NEXT_STDARG_H=$gl_cv_next_stdarg_h
14701 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14703 gl_next_as_first_directive='<'stdarg.h'>'
14704 else
14705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14706 gl_next_as_first_directive=$gl_cv_next_stdarg_h
14708 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
14713 if test "$gl_cv_next_stdarg_h" = '""'; then
14714 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
14715 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
14717 else
14719 saved_as_echo_n="$as_echo_n"
14720 as_echo_n=':'
14721 if test "${gl_cv_func___va_copy+set}" = set; then :
14722 $as_echo_n "(cached) " >&6
14723 else
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 #include <stdarg.h>
14729 main ()
14732 #ifndef __va_copy
14733 error, bail out
14734 #endif
14737 return 0;
14739 _ACEOF
14740 if ac_fn_c_try_compile "$LINENO"; then :
14741 gl_cv_func___va_copy=yes
14742 else
14743 gl_cv_func___va_copy=no
14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 as_echo_n="$saved_as_echo_n"
14750 if test $gl_cv_func___va_copy = yes; then
14752 $as_echo "#define va_copy __va_copy" >>confdefs.h
14754 else
14757 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14763 if test -n "$STDARG_H"; then
14764 GL_GENERATE_STDARG_H_TRUE=
14765 GL_GENERATE_STDARG_H_FALSE='#'
14766 else
14767 GL_GENERATE_STDARG_H_TRUE='#'
14768 GL_GENERATE_STDARG_H_FALSE=
14776 # Define two additional variables used in the Makefile substitution.
14778 if test "$ac_cv_header_stdbool_h" = yes; then
14779 STDBOOL_H=''
14780 else
14781 STDBOOL_H='stdbool.h'
14784 if test -n "$STDBOOL_H"; then
14785 GL_GENERATE_STDBOOL_H_TRUE=
14786 GL_GENERATE_STDBOOL_H_FALSE='#'
14787 else
14788 GL_GENERATE_STDBOOL_H_TRUE='#'
14789 GL_GENERATE_STDBOOL_H_FALSE=
14793 if test "$ac_cv_type__Bool" = yes; then
14794 HAVE__BOOL=1
14795 else
14796 HAVE__BOOL=0
14803 STDDEF_H=
14804 if test $gt_cv_c_wchar_t = no; then
14805 HAVE_WCHAR_T=0
14806 STDDEF_H=stddef.h
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14809 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14810 if test "${gl_cv_decl_null_works+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
14812 else
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 #include <stddef.h>
14816 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14819 main ()
14823 return 0;
14825 _ACEOF
14826 if ac_fn_c_try_compile "$LINENO"; then :
14827 gl_cv_decl_null_works=yes
14828 else
14829 gl_cv_decl_null_works=no
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14834 $as_echo "$gl_cv_decl_null_works" >&6; }
14835 if test $gl_cv_decl_null_works = no; then
14836 REPLACE_NULL=1
14837 STDDEF_H=stddef.h
14840 if test -n "$STDDEF_H"; then
14841 GL_GENERATE_STDDEF_H_TRUE=
14842 GL_GENERATE_STDDEF_H_FALSE='#'
14843 else
14844 GL_GENERATE_STDDEF_H_TRUE='#'
14845 GL_GENERATE_STDDEF_H_FALSE=
14848 if test -n "$STDDEF_H"; then
14857 if test $gl_cv_have_include_next = yes; then
14858 gl_cv_next_stddef_h='<'stddef.h'>'
14859 else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14861 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14862 if test "${gl_cv_next_stddef_h+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #include <stddef.h>
14870 _ACEOF
14871 case "$host_os" in
14872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14873 *) gl_absname_cpp="$ac_cpp" ;;
14874 esac
14876 case "$host_os" in
14877 mingw*)
14878 gl_dirsep_regex='[/\\]'
14881 gl_dirsep_regex='\/'
14883 esac
14884 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14886 gl_header_literal_regex=`echo 'stddef.h' \
14887 | sed -e "$gl_make_literal_regex_sed"`
14888 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14889 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14890 s|^/[^/]|//&|
14894 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14895 sed -n "$gl_absolute_header_sed"`'"'
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14900 $as_echo "$gl_cv_next_stddef_h" >&6; }
14902 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14904 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14906 gl_next_as_first_directive='<'stddef.h'>'
14907 else
14908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14909 gl_next_as_first_directive=$gl_cv_next_stddef_h
14911 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14930 if test $gl_cv_have_include_next = yes; then
14931 gl_cv_next_stdio_h='<'stdio.h'>'
14932 else
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14934 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14935 if test "${gl_cv_next_stdio_h+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 #include <stdio.h>
14943 _ACEOF
14944 case "$host_os" in
14945 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14946 *) gl_absname_cpp="$ac_cpp" ;;
14947 esac
14949 case "$host_os" in
14950 mingw*)
14951 gl_dirsep_regex='[/\\]'
14954 gl_dirsep_regex='\/'
14956 esac
14957 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14959 gl_header_literal_regex=`echo 'stdio.h' \
14960 | sed -e "$gl_make_literal_regex_sed"`
14961 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14962 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14963 s|^/[^/]|//&|
14967 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14968 sed -n "$gl_absolute_header_sed"`'"'
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14973 $as_echo "$gl_cv_next_stdio_h" >&6; }
14975 NEXT_STDIO_H=$gl_cv_next_stdio_h
14977 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14978 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14979 gl_next_as_first_directive='<'stdio.h'>'
14980 else
14981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14982 gl_next_as_first_directive=$gl_cv_next_stdio_h
14984 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14990 GNULIB_FSCANF=1
14993 cat >>confdefs.h <<_ACEOF
14994 #define GNULIB_FSCANF 1
14995 _ACEOF
14998 GNULIB_SCANF=1
15001 cat >>confdefs.h <<_ACEOF
15002 #define GNULIB_SCANF 1
15003 _ACEOF
15006 GNULIB_FGETC=1
15007 GNULIB_GETC=1
15008 GNULIB_GETCHAR=1
15009 GNULIB_FGETS=1
15010 GNULIB_FREAD=1
15013 GNULIB_FPRINTF=1
15014 GNULIB_PRINTF=1
15015 GNULIB_VFPRINTF=1
15016 GNULIB_VPRINTF=1
15017 GNULIB_FPUTC=1
15018 GNULIB_PUTC=1
15019 GNULIB_PUTCHAR=1
15020 GNULIB_FPUTS=1
15021 GNULIB_PUTS=1
15022 GNULIB_FWRITE=1
15038 if test $gl_cv_have_include_next = yes; then
15039 gl_cv_next_stdlib_h='<'stdlib.h'>'
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15042 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15043 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 #include <stdlib.h>
15051 _ACEOF
15052 case "$host_os" in
15053 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15054 *) gl_absname_cpp="$ac_cpp" ;;
15055 esac
15057 case "$host_os" in
15058 mingw*)
15059 gl_dirsep_regex='[/\\]'
15062 gl_dirsep_regex='\/'
15064 esac
15065 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15067 gl_header_literal_regex=`echo 'stdlib.h' \
15068 | sed -e "$gl_make_literal_regex_sed"`
15069 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15070 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15071 s|^/[^/]|//&|
15075 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15076 sed -n "$gl_absolute_header_sed"`'"'
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15081 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15083 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15087 gl_next_as_first_directive='<'stdlib.h'>'
15088 else
15089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15090 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15092 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15102 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15110 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15119 if test "$ac_cv_have_decl_strtoimax" != yes; then
15120 HAVE_DECL_STRTOIMAX=0
15123 if test $ac_cv_func_strtoimax = yes; then
15124 HAVE_STRTOIMAX=1
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15126 $as_echo_n "checking whether strtoimax works... " >&6; }
15127 if test "${gl_cv_func_strtoimax+set}" = set; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 if test "$cross_compiling" = yes; then :
15131 case "$host_os" in
15132 # Guess no on AIX 5.
15133 aix5*) gl_cv_func_strtoimax="guessing no" ;;
15134 # Guess yes otherwise.
15135 *) gl_cv_func_strtoimax="guessing yes" ;;
15136 esac
15138 else
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15142 #include <errno.h>
15143 #include <string.h>
15144 #include <inttypes.h>
15145 int main ()
15147 if (sizeof (intmax_t) > sizeof (int))
15149 const char *s = "4294967295";
15150 char *p;
15151 intmax_t res;
15152 errno = 0;
15153 res = strtoimax (s, &p, 10);
15154 if (p != s + strlen (s))
15155 return 1;
15156 if (errno != 0)
15157 return 2;
15158 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15159 return 3;
15161 else
15163 const char *s = "2147483647";
15164 char *p;
15165 intmax_t res;
15166 errno = 0;
15167 res = strtoimax (s, &p, 10);
15168 if (p != s + strlen (s))
15169 return 1;
15170 if (errno != 0)
15171 return 2;
15172 if (res != 2147483647)
15173 return 3;
15175 return 0;
15178 _ACEOF
15179 if ac_fn_c_try_run "$LINENO"; then :
15180 gl_cv_func_strtoimax=yes
15181 else
15182 gl_cv_func_strtoimax=no
15184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15185 conftest.$ac_objext conftest.beam conftest.$ac_ext
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15191 $as_echo "$gl_cv_func_strtoimax" >&6; }
15192 case "$gl_cv_func_strtoimax" in
15193 *no) REPLACE_STRTOIMAX=1 ;;
15194 esac
15195 else
15196 HAVE_STRTOIMAX=0
15199 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
15208 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
15211 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15212 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
15213 ac_have_decl=1
15214 else
15215 ac_have_decl=0
15218 cat >>confdefs.h <<_ACEOF
15219 #define HAVE_DECL_STRTOLL $ac_have_decl
15220 _ACEOF
15230 GNULIB_STRTOIMAX=1
15240 if test "$ac_cv_have_decl_strtoumax" != yes; then
15241 HAVE_DECL_STRTOUMAX=0
15244 if test $ac_cv_func_strtoumax = no; then
15253 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
15256 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15257 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
15258 ac_have_decl=1
15259 else
15260 ac_have_decl=0
15263 cat >>confdefs.h <<_ACEOF
15264 #define HAVE_DECL_STRTOULL $ac_have_decl
15265 _ACEOF
15275 GNULIB_STRTOUMAX=1
15283 if test $ac_cv_func_symlink = no; then
15284 HAVE_SYMLINK=0
15285 else
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15287 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15288 if test "${gl_cv_func_symlink_works+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15290 else
15291 if test "$cross_compiling" = yes; then :
15292 case "$host_os" in
15293 # Guess yes on glibc systems.
15294 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
15295 # If we don't know, assume the worst.
15296 *) gl_cv_func_symlink_works="guessing no" ;;
15297 esac
15299 else
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302 #include <unistd.h>
15305 main ()
15307 int result = 0;
15308 if (!symlink ("a", "conftest.link/"))
15309 result |= 1;
15310 if (symlink ("conftest.f", "conftest.lnk2"))
15311 result |= 2;
15312 else if (!symlink ("a", "conftest.lnk2/"))
15313 result |= 4;
15314 return result;
15317 return 0;
15319 _ACEOF
15320 if ac_fn_c_try_run "$LINENO"; then :
15321 gl_cv_func_symlink_works=yes
15322 else
15323 gl_cv_func_symlink_works=no
15325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15326 conftest.$ac_objext conftest.beam conftest.$ac_ext
15329 rm -f conftest.f conftest.link conftest.lnk2
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15332 $as_echo "$gl_cv_func_symlink_works" >&6; }
15333 case "$gl_cv_func_symlink_works" in
15334 *yes) ;;
15336 REPLACE_SYMLINK=1
15338 esac
15341 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
15350 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
15358 GNULIB_SYMLINK=1
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15368 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15369 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 #include <sys/select.h>
15377 main ()
15379 struct timeval b;
15381 return 0;
15383 _ACEOF
15384 if ac_fn_c_try_compile "$LINENO"; then :
15385 gl_cv_header_sys_select_h_selfcontained=yes
15386 else
15387 gl_cv_header_sys_select_h_selfcontained=no
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <sys/select.h>
15395 main ()
15397 int memset; int bzero;
15399 return 0;
15402 _ACEOF
15403 if ac_fn_c_try_compile "$LINENO"; then :
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 #include <sys/select.h>
15408 main ()
15411 #undef memset
15412 #define memset nonexistent_memset
15413 extern
15414 #ifdef __cplusplus
15416 #endif
15417 void *memset (void *, int, unsigned long);
15418 #undef bzero
15419 #define bzero nonexistent_bzero
15420 extern
15421 #ifdef __cplusplus
15423 #endif
15424 void bzero (void *, unsigned long);
15425 fd_set fds;
15426 FD_ZERO (&fds);
15429 return 0;
15432 _ACEOF
15433 if ac_fn_c_try_link "$LINENO"; then :
15435 else
15436 gl_cv_header_sys_select_h_selfcontained=no
15438 rm -f core conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15447 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15457 if test $gl_cv_have_include_next = yes; then
15458 gl_cv_next_sys_select_h='<'sys/select.h'>'
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15461 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15462 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15466 if test $ac_cv_header_sys_select_h = yes; then
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 #include <sys/select.h>
15473 _ACEOF
15474 case "$host_os" in
15475 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15476 *) gl_absname_cpp="$ac_cpp" ;;
15477 esac
15479 case "$host_os" in
15480 mingw*)
15481 gl_dirsep_regex='[/\\]'
15484 gl_dirsep_regex='\/'
15486 esac
15487 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15489 gl_header_literal_regex=`echo 'sys/select.h' \
15490 | sed -e "$gl_make_literal_regex_sed"`
15491 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15492 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15493 s|^/[^/]|//&|
15497 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15498 sed -n "$gl_absolute_header_sed"`'"'
15499 else
15500 gl_cv_next_sys_select_h='<'sys/select.h'>'
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15506 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15508 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
15510 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15511 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15512 gl_next_as_first_directive='<'sys/select.h'>'
15513 else
15514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15515 gl_next_as_first_directive=$gl_cv_next_sys_select_h
15517 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
15522 if test $ac_cv_header_sys_select_h = yes; then
15523 HAVE_SYS_SELECT_H=1
15524 else
15525 HAVE_SYS_SELECT_H=0
15532 if test $ac_cv_header_sys_socket_h != yes; then
15533 for ac_header in winsock2.h
15534 do :
15535 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15536 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_WINSOCK2_H 1
15539 _ACEOF
15543 done
15546 if test "$ac_cv_header_winsock2_h" = yes; then
15547 HAVE_WINSOCK2_H=1
15548 UNISTD_H_HAVE_WINSOCK2_H=1
15549 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15550 else
15551 HAVE_WINSOCK2_H=0
15575 if test $gl_cv_have_include_next = yes; then
15576 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15577 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15579 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15580 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15584 if test $ac_cv_header_sys_stat_h = yes; then
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 #include <sys/stat.h>
15591 _ACEOF
15592 case "$host_os" in
15593 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15594 *) gl_absname_cpp="$ac_cpp" ;;
15595 esac
15597 case "$host_os" in
15598 mingw*)
15599 gl_dirsep_regex='[/\\]'
15602 gl_dirsep_regex='\/'
15604 esac
15605 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15607 gl_header_literal_regex=`echo 'sys/stat.h' \
15608 | sed -e "$gl_make_literal_regex_sed"`
15609 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15610 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15611 s|^/[^/]|//&|
15615 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15616 sed -n "$gl_absolute_header_sed"`'"'
15617 else
15618 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15624 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15626 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15628 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15629 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15630 gl_next_as_first_directive='<'sys/stat.h'>'
15631 else
15632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15633 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15635 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15647 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15649 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15653 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15654 #include <sys/stat.h>
15656 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15658 else
15660 $as_echo "#define nlink_t int" >>confdefs.h
15681 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15683 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15684 ac_have_decl=1
15685 else
15686 ac_have_decl=0
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15691 _ACEOF
15693 if test $ac_cv_have_decl_localtime_r = no; then
15694 HAVE_DECL_LOCALTIME_R=0
15698 if test $ac_cv_func_localtime_r = yes; then
15699 HAVE_LOCALTIME_R=1
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15701 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15702 if test "${gl_cv_time_r_posix+set}" = set; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 #include <time.h>
15709 main ()
15711 /* We don't need to append 'restrict's to the argument types,
15712 even though the POSIX signature has the 'restrict's,
15713 since C99 says they can't affect type compatibility. */
15714 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15715 if (ptr) return 0;
15716 /* Check the return type is a pointer.
15717 On HP-UX 10 it is 'int'. */
15718 *localtime_r (0, 0);
15720 return 0;
15723 _ACEOF
15724 if ac_fn_c_try_compile "$LINENO"; then :
15725 gl_cv_time_r_posix=yes
15726 else
15727 gl_cv_time_r_posix=no
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15733 $as_echo "$gl_cv_time_r_posix" >&6; }
15734 if test $gl_cv_time_r_posix = yes; then
15735 REPLACE_LOCALTIME_R=0
15736 else
15737 REPLACE_LOCALTIME_R=1
15739 else
15740 HAVE_LOCALTIME_R=0
15743 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15752 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15763 GNULIB_TIME_R=1
15786 if test $gl_cv_have_include_next = yes; then
15787 gl_cv_next_unistd_h='<'unistd.h'>'
15788 else
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15790 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15791 if test "${gl_cv_next_unistd_h+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15795 if test $ac_cv_header_unistd_h = yes; then
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <unistd.h>
15802 _ACEOF
15803 case "$host_os" in
15804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15805 *) gl_absname_cpp="$ac_cpp" ;;
15806 esac
15808 case "$host_os" in
15809 mingw*)
15810 gl_dirsep_regex='[/\\]'
15813 gl_dirsep_regex='\/'
15815 esac
15816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15818 gl_header_literal_regex=`echo 'unistd.h' \
15819 | sed -e "$gl_make_literal_regex_sed"`
15820 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15821 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15822 s|^/[^/]|//&|
15826 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15827 sed -n "$gl_absolute_header_sed"`'"'
15828 else
15829 gl_cv_next_unistd_h='<'unistd.h'>'
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15835 $as_echo "$gl_cv_next_unistd_h" >&6; }
15837 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15839 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15841 gl_next_as_first_directive='<'unistd.h'>'
15842 else
15843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15844 gl_next_as_first_directive=$gl_cv_next_unistd_h
15846 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15851 if test $ac_cv_header_unistd_h = yes; then
15852 HAVE_UNISTD_H=1
15853 else
15854 HAVE_UNISTD_H=0
15870 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15872 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15873 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15875 else
15876 touch conftest.file
15877 if test "$cross_compiling" = yes; then :
15878 case "$host_os" in
15879 # Guess yes on glibc systems.
15880 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
15881 # If we don't know, assume the worst.
15882 *) gl_cv_func_futimesat_works="guessing no" ;;
15883 esac
15885 else
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15889 #include <stddef.h>
15890 #include <sys/times.h>
15891 #include <fcntl.h>
15894 main ()
15896 int fd = open ("conftest.file", O_RDWR);
15897 if (fd < 0) return 1;
15898 if (futimesat (fd, NULL, NULL)) return 2;
15901 return 0;
15903 _ACEOF
15904 if ac_fn_c_try_run "$LINENO"; then :
15905 gl_cv_func_futimesat_works=yes
15906 else
15907 gl_cv_func_futimesat_works=no
15909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15910 conftest.$ac_objext conftest.beam conftest.$ac_ext
15913 rm -f conftest.file
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15916 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15917 case "$gl_cv_func_futimesat_works" in
15918 *yes) ;;
15921 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15924 esac
15927 gl_gnulib_enabled_dosname=false
15928 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
15929 gl_gnulib_enabled_pathmax=false
15930 gl_gnulib_enabled_stat=false
15931 gl_gnulib_enabled_strtoll=false
15932 gl_gnulib_enabled_strtoull=false
15933 gl_gnulib_enabled_verify=false
15934 func_gl_gnulib_m4code_dosname ()
15936 if ! $gl_gnulib_enabled_dosname; then
15937 gl_gnulib_enabled_dosname=true
15940 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
15942 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15945 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
15948 func_gl_gnulib_m4code_pathmax ()
15950 if ! $gl_gnulib_enabled_pathmax; then
15954 gl_gnulib_enabled_pathmax=true
15957 func_gl_gnulib_m4code_stat ()
15959 if ! $gl_gnulib_enabled_stat; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15964 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15965 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15966 $as_echo_n "(cached) " >&6
15967 else
15968 if test "$cross_compiling" = yes; then :
15969 case $host_os in
15970 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15971 *) gl_cv_func_stat_dir_slash="guessing yes";;
15972 esac
15973 else
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <sys/stat.h>
15979 main ()
15981 struct stat st; return stat (".", &st) != stat ("./", &st);
15983 return 0;
15985 _ACEOF
15986 if ac_fn_c_try_run "$LINENO"; then :
15987 gl_cv_func_stat_dir_slash=yes
15988 else
15989 gl_cv_func_stat_dir_slash=no
15991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15992 conftest.$ac_objext conftest.beam conftest.$ac_ext
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15997 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15999 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16000 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 touch conftest.tmp
16004 # Assume that if we have lstat, we can also check symlinks.
16005 if test $ac_cv_func_lstat = yes; then
16006 ln -s conftest.tmp conftest.lnk
16008 if test "$cross_compiling" = yes; then :
16009 case "$host_os" in
16010 # Guess yes on glibc systems.
16011 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16012 # If we don't know, assume the worst.
16013 *) gl_cv_func_stat_file_slash="guessing no" ;;
16014 esac
16016 else
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 #include <sys/stat.h>
16022 main ()
16024 int result = 0;
16025 struct stat st;
16026 if (!stat ("conftest.tmp/", &st))
16027 result |= 1;
16028 #if HAVE_LSTAT
16029 if (!stat ("conftest.lnk/", &st))
16030 result |= 2;
16031 #endif
16032 return result;
16035 return 0;
16037 _ACEOF
16038 if ac_fn_c_try_run "$LINENO"; then :
16039 gl_cv_func_stat_file_slash=yes
16040 else
16041 gl_cv_func_stat_file_slash=no
16043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16044 conftest.$ac_objext conftest.beam conftest.$ac_ext
16047 rm -f conftest.tmp conftest.lnk
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16050 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16051 case $gl_cv_func_stat_dir_slash in
16052 *no) REPLACE_STAT=1
16054 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16056 esac
16057 case $gl_cv_func_stat_file_slash in
16058 *no) REPLACE_STAT=1
16060 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16062 esac
16064 if test $REPLACE_STAT = 1; then
16073 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16085 GNULIB_STAT=1
16091 gl_gnulib_enabled_stat=true
16092 if test $REPLACE_STAT = 1; then
16093 func_gl_gnulib_m4code_dosname
16095 if test $REPLACE_STAT = 1; then
16096 func_gl_gnulib_m4code_pathmax
16098 if test $REPLACE_STAT = 1; then
16099 func_gl_gnulib_m4code_verify
16103 func_gl_gnulib_m4code_strtoll ()
16105 if ! $gl_gnulib_enabled_strtoll; then
16109 if test "$ac_cv_type_long_long_int" = yes; then
16110 for ac_func in strtoll
16111 do :
16112 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16113 if test "x$ac_cv_func_strtoll" = x""yes; then :
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_STRTOLL 1
16116 _ACEOF
16119 done
16121 if test $ac_cv_func_strtoll = no; then
16122 HAVE_STRTOLL=0
16126 if test $HAVE_STRTOLL = 0; then
16135 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
16146 GNULIB_STRTOLL=1
16152 gl_gnulib_enabled_strtoll=true
16155 func_gl_gnulib_m4code_strtoull ()
16157 if ! $gl_gnulib_enabled_strtoull; then
16161 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16162 for ac_func in strtoull
16163 do :
16164 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16165 if test "x$ac_cv_func_strtoull" = x""yes; then :
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_STRTOULL 1
16168 _ACEOF
16171 done
16173 if test $ac_cv_func_strtoull = no; then
16174 HAVE_STRTOULL=0
16178 if test $HAVE_STRTOULL = 0; then
16187 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
16198 GNULIB_STRTOULL=1
16204 gl_gnulib_enabled_strtoull=true
16207 func_gl_gnulib_m4code_verify ()
16209 if ! $gl_gnulib_enabled_verify; then
16210 gl_gnulib_enabled_verify=true
16213 if test $REPLACE_GETOPT = 1; then
16214 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16216 if test $REPLACE_LSTAT = 1; then
16217 func_gl_gnulib_m4code_dosname
16219 if test $REPLACE_LSTAT = 1; then
16220 func_gl_gnulib_m4code_stat
16222 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16223 func_gl_gnulib_m4code_stat
16225 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16226 func_gl_gnulib_m4code_strtoll
16228 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
16229 func_gl_gnulib_m4code_verify
16231 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
16232 func_gl_gnulib_m4code_strtoull
16234 if test $ac_cv_func_strtoumax = no; then
16235 func_gl_gnulib_m4code_verify
16238 if $gl_gnulib_enabled_dosname; then
16239 gl_GNULIB_ENABLED_dosname_TRUE=
16240 gl_GNULIB_ENABLED_dosname_FALSE='#'
16241 else
16242 gl_GNULIB_ENABLED_dosname_TRUE='#'
16243 gl_GNULIB_ENABLED_dosname_FALSE=
16246 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16247 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
16248 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
16249 else
16250 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
16251 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
16254 if $gl_gnulib_enabled_pathmax; then
16255 gl_GNULIB_ENABLED_pathmax_TRUE=
16256 gl_GNULIB_ENABLED_pathmax_FALSE='#'
16257 else
16258 gl_GNULIB_ENABLED_pathmax_TRUE='#'
16259 gl_GNULIB_ENABLED_pathmax_FALSE=
16262 if $gl_gnulib_enabled_stat; then
16263 gl_GNULIB_ENABLED_stat_TRUE=
16264 gl_GNULIB_ENABLED_stat_FALSE='#'
16265 else
16266 gl_GNULIB_ENABLED_stat_TRUE='#'
16267 gl_GNULIB_ENABLED_stat_FALSE=
16270 if $gl_gnulib_enabled_strtoll; then
16271 gl_GNULIB_ENABLED_strtoll_TRUE=
16272 gl_GNULIB_ENABLED_strtoll_FALSE='#'
16273 else
16274 gl_GNULIB_ENABLED_strtoll_TRUE='#'
16275 gl_GNULIB_ENABLED_strtoll_FALSE=
16278 if $gl_gnulib_enabled_strtoull; then
16279 gl_GNULIB_ENABLED_strtoull_TRUE=
16280 gl_GNULIB_ENABLED_strtoull_FALSE='#'
16281 else
16282 gl_GNULIB_ENABLED_strtoull_TRUE='#'
16283 gl_GNULIB_ENABLED_strtoull_FALSE=
16286 if $gl_gnulib_enabled_verify; then
16287 gl_GNULIB_ENABLED_verify_TRUE=
16288 gl_GNULIB_ENABLED_verify_FALSE='#'
16289 else
16290 gl_GNULIB_ENABLED_verify_TRUE='#'
16291 gl_GNULIB_ENABLED_verify_FALSE=
16294 # End of code from modules
16304 gltests_libdeps=
16305 gltests_ltlibdeps=
16315 gl_source_base='tests'
16316 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
16318 gl_module_indicator_condition=$gltests_WITNESS
16329 LIBGNU_LIBDEPS="$gl_libdeps"
16331 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16335 # Extract the first word of "pkg-config", so it can be a program name with args.
16336 set dummy pkg-config; ac_word=$2
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16338 $as_echo_n "checking for $ac_word... " >&6; }
16339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16341 else
16342 case $PKG_CONFIG in
16343 [\\/]* | ?:[\\/]*)
16344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16348 for as_dir in $PATH
16350 IFS=$as_save_IFS
16351 test -z "$as_dir" && as_dir=.
16352 for ac_exec_ext in '' $ac_executable_extensions; do
16353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16356 break 2
16358 done
16359 done
16360 IFS=$as_save_IFS
16362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16364 esac
16366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16367 if test -n "$PKG_CONFIG"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16369 $as_echo "$PKG_CONFIG" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16380 if test "${with_sound}" != "no"; then
16381 # Sound support for GNU/Linux and the free BSDs.
16382 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
16383 do :
16384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16386 eval as_val=\$$as_ac_Header
16387 if test "x$as_val" = x""yes; then :
16388 cat >>confdefs.h <<_ACEOF
16389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16390 _ACEOF
16391 have_sound_header=yes
16394 done
16396 # Emulation library used on NetBSD.
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16398 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16399 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-lossaudio $LIBS"
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16407 /* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
16410 #ifdef __cplusplus
16411 extern "C"
16412 #endif
16413 char _oss_ioctl ();
16415 main ()
16417 return _oss_ioctl ();
16419 return 0;
16421 _ACEOF
16422 if ac_fn_c_try_link "$LINENO"; then :
16423 ac_cv_lib_ossaudio__oss_ioctl=yes
16424 else
16425 ac_cv_lib_ossaudio__oss_ioctl=no
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16432 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16433 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
16434 LIBSOUND=-lossaudio
16435 else
16436 LIBSOUND=
16441 ALSA_REQUIRED=1.0.0
16442 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
16444 succeeded=no
16446 if test "$PKG_CONFIG" = "no" ; then
16447 HAVE_ALSA=no
16448 else
16449 PKG_CONFIG_MIN_VERSION=0.9.0
16450 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16452 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16454 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16455 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16456 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16457 edit_cflags="
16458 s,///*,/,g
16459 s/^/ /
16460 s/ -I/ $isystem/g
16461 s/^ //
16463 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16464 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16466 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16467 succeeded=yes
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16471 ALSA_CFLAGS=""
16472 ALSA_LIBS=""
16473 ## If we have a custom action on failure, don't print errors, but
16474 ## do set a variable so people can do so.
16475 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16481 else
16482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16487 if test $succeeded = yes; then
16488 HAVE_ALSA=yes
16489 else
16490 HAVE_ALSA=no
16493 if test $HAVE_ALSA = yes; then
16494 SAVE_CFLAGS="$CFLAGS"
16495 SAVE_LIBS="$LIBS"
16496 CFLAGS="$ALSA_CFLAGS $CFLAGS"
16497 LIBS="$ALSA_LIBS $LIBS"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16500 #include <asoundlib.h>
16502 main ()
16504 snd_lib_error_set_handler (0);
16506 return 0;
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510 emacs_alsa_normal=yes
16511 else
16512 emacs_alsa_normal=no
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 if test "$emacs_alsa_normal" != yes; then
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 #include <alsa/asoundlib.h>
16520 main ()
16522 snd_lib_error_set_handler (0);
16524 return 0;
16526 _ACEOF
16527 if ac_fn_c_try_compile "$LINENO"; then :
16528 emacs_alsa_subdir=yes
16529 else
16530 emacs_alsa_subdir=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 if test "$emacs_alsa_subdir" != yes; then
16534 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16536 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16539 CFLAGS="$SAVE_CFLAGS"
16540 LIBS="$SAVE_LIBS"
16541 LIBSOUND="$LIBSOUND $ALSA_LIBS"
16542 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
16544 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16548 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
16549 case "$opsys" in
16550 gnu-linux|freebsd|netbsd)
16552 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16555 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16590 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593 #include <sys/personality.h>
16595 main ()
16597 personality (PER_LINUX32)
16599 return 0;
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603 emacs_cv_personality_linux32=yes
16604 else
16605 emacs_cv_personality_linux32=no
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16609 $as_echo "$emacs_cv_personality_linux32" >&6; }
16611 if test $emacs_cv_personality_linux32 = yes; then
16613 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16617 for ac_header in term.h
16618 do :
16619 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
16620 if test "x$ac_cv_header_term_h" = x""yes; then :
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_TERM_H 1
16623 _ACEOF
16627 done
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16630 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16631 if test "${ac_cv_header_time+set}" = set; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 #include <sys/types.h>
16637 #include <sys/time.h>
16638 #include <time.h>
16641 main ()
16643 if ((struct tm *) 0)
16644 return 0;
16646 return 0;
16648 _ACEOF
16649 if ac_fn_c_try_compile "$LINENO"; then :
16650 ac_cv_header_time=yes
16651 else
16652 ac_cv_header_time=no
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16657 $as_echo "$ac_cv_header_time" >&6; }
16658 if test $ac_cv_header_time = yes; then
16660 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16664 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16665 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16666 ac_have_decl=1
16667 else
16668 ac_have_decl=0
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16673 _ACEOF
16675 if test $ac_cv_have_decl_sys_siglist != yes; then
16676 # For Tru64, at least:
16677 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16678 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16679 ac_have_decl=1
16680 else
16681 ac_have_decl=0
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16686 _ACEOF
16688 if test $ac_cv_have_decl___sys_siglist = yes; then
16690 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16695 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16696 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 #include <sys/types.h>
16702 #include <sys/wait.h>
16703 #ifndef WEXITSTATUS
16704 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16705 #endif
16706 #ifndef WIFEXITED
16707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16708 #endif
16711 main ()
16713 int s;
16714 wait (&s);
16715 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16717 return 0;
16719 _ACEOF
16720 if ac_fn_c_try_compile "$LINENO"; then :
16721 ac_cv_header_sys_wait_h=yes
16722 else
16723 ac_cv_header_sys_wait_h=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16728 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16729 if test $ac_cv_header_sys_wait_h = yes; then
16731 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16737 $as_echo_n "checking for speed_t... " >&6; }
16738 if test "${emacs_cv_speed_t+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #include <termios.h>
16745 main ()
16747 speed_t x = 1;
16749 return 0;
16751 _ACEOF
16752 if ac_fn_c_try_compile "$LINENO"; then :
16753 emacs_cv_speed_t=yes
16754 else
16755 emacs_cv_speed_t=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16760 $as_echo "$emacs_cv_speed_t" >&6; }
16761 if test $emacs_cv_speed_t = yes; then
16763 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16768 $as_echo_n "checking for struct exception... " >&6; }
16769 if test "${emacs_cv_struct_exception+set}" = set; then :
16770 $as_echo_n "(cached) " >&6
16771 else
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 #include <math.h>
16776 main ()
16778 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16780 return 0;
16782 _ACEOF
16783 if ac_fn_c_try_compile "$LINENO"; then :
16784 emacs_cv_struct_exception=yes
16785 else
16786 emacs_cv_struct_exception=no
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16791 $as_echo "$emacs_cv_struct_exception" >&6; }
16792 HAVE_EXCEPTION=$emacs_cv_struct_exception
16793 if test $emacs_cv_struct_exception != yes; then
16795 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16800 for ac_header in net/if.h
16801 do :
16802 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16803 #if HAVE_SYS_SOCKET_H
16804 #include <sys/socket.h>
16805 #endif
16807 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16808 cat >>confdefs.h <<_ACEOF
16809 #define HAVE_NET_IF_H 1
16810 _ACEOF
16814 done
16816 for ac_header in ifaddrs.h
16817 do :
16818 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16819 #if HAVE_SYS_SOCKET_H
16820 #include <sys/socket.h>
16821 #endif
16823 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
16824 cat >>confdefs.h <<_ACEOF
16825 #define HAVE_IFADDRS_H 1
16826 _ACEOF
16830 done
16832 for ac_header in net/if_dl.h
16833 do :
16834 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16835 #if HAVE_SYS_SOCKET_H
16836 #include <sys/socket.h>
16837 #endif
16839 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
16840 cat >>confdefs.h <<_ACEOF
16841 #define HAVE_NET_IF_DL_H 1
16842 _ACEOF
16846 done
16849 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16850 #if HAVE_SYS_SOCKET_H
16851 #include <sys/socket.h>
16852 #endif
16853 #if HAVE_NET_IF_H
16854 #include <net/if.h>
16855 #endif
16857 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
16859 cat >>confdefs.h <<_ACEOF
16860 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16861 _ACEOF
16865 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16866 #if HAVE_SYS_SOCKET_H
16867 #include <sys/socket.h>
16868 #endif
16869 #if HAVE_NET_IF_H
16870 #include <net/if.h>
16871 #endif
16873 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16877 _ACEOF
16881 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16882 #if HAVE_SYS_SOCKET_H
16883 #include <sys/socket.h>
16884 #endif
16885 #if HAVE_NET_IF_H
16886 #include <net/if.h>
16887 #endif
16889 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
16891 cat >>confdefs.h <<_ACEOF
16892 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16893 _ACEOF
16897 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16898 #if HAVE_SYS_SOCKET_H
16899 #include <sys/socket.h>
16900 #endif
16901 #if HAVE_NET_IF_H
16902 #include <net/if.h>
16903 #endif
16905 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
16907 cat >>confdefs.h <<_ACEOF
16908 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16909 _ACEOF
16913 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16914 #if HAVE_SYS_SOCKET_H
16915 #include <sys/socket.h>
16916 #endif
16917 #if HAVE_NET_IF_H
16918 #include <net/if.h>
16919 #endif
16921 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
16923 cat >>confdefs.h <<_ACEOF
16924 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16925 _ACEOF
16929 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16930 #if HAVE_SYS_SOCKET_H
16931 #include <sys/socket.h>
16932 #endif
16933 #if HAVE_NET_IF_H
16934 #include <net/if.h>
16935 #endif
16937 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16941 _ACEOF
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16949 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16950 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955 char __attribute__ ((__aligned__ (1 << 3))) c;
16957 main ()
16961 return 0;
16963 _ACEOF
16964 if ac_fn_c_try_compile "$LINENO"; then :
16965 emacs_cv_attribute_aligned=yes
16966 else
16967 emacs_cv_attribute_aligned=no
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16972 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16973 if test $emacs_cv_attribute_aligned = yes; then
16975 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16980 DEPFLAGS=
16981 MKDEPDIR=":"
16982 deps_frag=deps.mk
16983 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16985 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16986 HAVE_GNU_MAKE=no
16987 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16988 if test "x$testval" != x; then
16989 HAVE_GNU_MAKE=yes
16990 else
16991 ac_enable_autodepend=no
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16994 $as_echo "$HAVE_GNU_MAKE" >&6; }
16995 if test $HAVE_GNU_MAKE = yes; then
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16997 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16998 SAVE_CFLAGS="$CFLAGS"
16999 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17004 main ()
17008 return 0;
17010 _ACEOF
17011 if ac_fn_c_try_compile "$LINENO"; then :
17013 else
17014 ac_enable_autodepend=no
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 CFLAGS="$SAVE_CFLAGS"
17018 test -f deps.d || ac_enable_autodepend=no
17019 rm -rf deps.d
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
17021 $as_echo "$ac_enable_autodepend" >&6; }
17023 if test $ac_enable_autodepend = yes; then
17024 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
17025 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
17026 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
17027 deps_frag=autodeps.mk
17030 deps_frag=$srcdir/src/$deps_frag
17036 lisp_frag=$srcdir/src/lisp.mk
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
17041 $as_echo_n "checking for long file names... " >&6; }
17042 if test "${ac_cv_sys_long_file_names+set}" = set; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 ac_cv_sys_long_file_names=yes
17046 # Test for long file names in all the places we know might matter:
17047 # . the current directory, where building will happen
17048 # $prefix/lib where we will be installing things
17049 # $exec_prefix/lib likewise
17050 # $TMPDIR if set, where it might want to write temporary files
17051 # /tmp where it might want to write temporary files
17052 # /var/tmp likewise
17053 # /usr/tmp likewise
17054 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
17055 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17056 # in the usual case where exec_prefix is '${prefix}'.
17057 case $ac_dir in #(
17058 . | /* | ?:[\\/]*) ;; #(
17059 *) continue;;
17060 esac
17061 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
17062 ac_xdir=$ac_dir/cf$$
17063 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
17064 ac_tf1=$ac_xdir/conftest9012345
17065 ac_tf2=$ac_xdir/conftest9012346
17066 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17067 ac_cv_sys_long_file_names=no
17068 rm -f -r "$ac_xdir" 2>/dev/null
17069 test $ac_cv_sys_long_file_names = no && break
17070 done
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17073 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17074 if test $ac_cv_sys_long_file_names = yes; then
17076 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17081 #### Choose a window system.
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17084 $as_echo_n "checking for X... " >&6; }
17087 # Check whether --with-x was given.
17088 if test "${with_x+set}" = set; then :
17089 withval=$with_x;
17092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17093 if test "x$with_x" = xno; then
17094 # The user explicitly disabled X.
17095 have_x=disabled
17096 else
17097 case $x_includes,$x_libraries in #(
17098 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17099 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17100 $as_echo_n "(cached) " >&6
17101 else
17102 # One or both of the vars are not set, and there is no cached value.
17103 ac_x_includes=no ac_x_libraries=no
17104 rm -f -r conftest.dir
17105 if mkdir conftest.dir; then
17106 cd conftest.dir
17107 cat >Imakefile <<'_ACEOF'
17108 incroot:
17109 @echo incroot='${INCROOT}'
17110 usrlibdir:
17111 @echo usrlibdir='${USRLIBDIR}'
17112 libdir:
17113 @echo libdir='${LIBDIR}'
17114 _ACEOF
17115 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17117 for ac_var in incroot usrlibdir libdir; do
17118 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17119 done
17120 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17121 for ac_extension in a so sl dylib la dll; do
17122 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17123 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17124 ac_im_usrlibdir=$ac_im_libdir; break
17126 done
17127 # Screen out bogus values from the imake configuration. They are
17128 # bogus both because they are the default anyway, and because
17129 # using them would break gcc on systems where it needs fixed includes.
17130 case $ac_im_incroot in
17131 /usr/include) ac_x_includes= ;;
17132 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17133 esac
17134 case $ac_im_usrlibdir in
17135 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17136 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17137 esac
17139 cd ..
17140 rm -f -r conftest.dir
17143 # Standard set of common directories for X headers.
17144 # Check X11 before X11Rn because it is often a symlink to the current release.
17145 ac_x_header_dirs='
17146 /usr/X11/include
17147 /usr/X11R7/include
17148 /usr/X11R6/include
17149 /usr/X11R5/include
17150 /usr/X11R4/include
17152 /usr/include/X11
17153 /usr/include/X11R7
17154 /usr/include/X11R6
17155 /usr/include/X11R5
17156 /usr/include/X11R4
17158 /usr/local/X11/include
17159 /usr/local/X11R7/include
17160 /usr/local/X11R6/include
17161 /usr/local/X11R5/include
17162 /usr/local/X11R4/include
17164 /usr/local/include/X11
17165 /usr/local/include/X11R7
17166 /usr/local/include/X11R6
17167 /usr/local/include/X11R5
17168 /usr/local/include/X11R4
17170 /usr/X386/include
17171 /usr/x386/include
17172 /usr/XFree86/include/X11
17174 /usr/include
17175 /usr/local/include
17176 /usr/unsupported/include
17177 /usr/athena/include
17178 /usr/local/x11r5/include
17179 /usr/lpp/Xamples/include
17181 /usr/openwin/include
17182 /usr/openwin/share/include'
17184 if test "$ac_x_includes" = no; then
17185 # Guess where to find include files, by looking for Xlib.h.
17186 # First, try using that file with no special directory specified.
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <X11/Xlib.h>
17190 _ACEOF
17191 if ac_fn_c_try_cpp "$LINENO"; then :
17192 # We can compile using X headers with no special include directory.
17193 ac_x_includes=
17194 else
17195 for ac_dir in $ac_x_header_dirs; do
17196 if test -r "$ac_dir/X11/Xlib.h"; then
17197 ac_x_includes=$ac_dir
17198 break
17200 done
17202 rm -f conftest.err conftest.$ac_ext
17203 fi # $ac_x_includes = no
17205 if test "$ac_x_libraries" = no; then
17206 # Check for the libraries.
17207 # See if we find them without any special options.
17208 # Don't add to $LIBS permanently.
17209 ac_save_LIBS=$LIBS
17210 LIBS="-lX11 $LIBS"
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213 #include <X11/Xlib.h>
17215 main ()
17217 XrmInitialize ()
17219 return 0;
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"; then :
17223 LIBS=$ac_save_LIBS
17224 # We can link X programs with no special library path.
17225 ac_x_libraries=
17226 else
17227 LIBS=$ac_save_LIBS
17228 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17230 # Don't even attempt the hair of trying to link an X program!
17231 for ac_extension in a so sl dylib la dll; do
17232 if test -r "$ac_dir/libX11.$ac_extension"; then
17233 ac_x_libraries=$ac_dir
17234 break 2
17236 done
17237 done
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241 fi # $ac_x_libraries = no
17243 case $ac_x_includes,$ac_x_libraries in #(
17244 no,* | *,no | *\'*)
17245 # Didn't find X, or a directory has "'" in its name.
17246 ac_cv_have_x="have_x=no";; #(
17248 # Record where we found X for the cache.
17249 ac_cv_have_x="have_x=yes\
17250 ac_x_includes='$ac_x_includes'\
17251 ac_x_libraries='$ac_x_libraries'"
17252 esac
17254 ;; #(
17255 *) have_x=yes;;
17256 esac
17257 eval "$ac_cv_have_x"
17258 fi # $with_x != no
17260 if test "$have_x" != yes; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17262 $as_echo "$have_x" >&6; }
17263 no_x=yes
17264 else
17265 # If each of the values was on the command line, it overrides each guess.
17266 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17267 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17268 # Update the cache value to reflect the command line values.
17269 ac_cv_have_x="have_x=yes\
17270 ac_x_includes='$x_includes'\
17271 ac_x_libraries='$x_libraries'"
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17273 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17276 if test "$no_x" = yes; then
17277 window_system=none
17278 else
17279 window_system=x11
17282 LD_SWITCH_X_SITE_RPATH=
17283 if test "${x_libraries}" != NONE; then
17284 if test -n "${x_libraries}"; then
17285 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17286 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17288 x_default_search_path=""
17289 x_search_path=${x_libraries}
17290 if test -z "${x_search_path}"; then
17291 x_search_path=/usr/lib
17293 for x_library in `echo ${x_search_path}: | \
17294 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17295 x_search_path="\
17296 ${x_library}/X11/%L/%T/%N%C%S:\
17297 ${x_library}/X11/%l/%T/%N%C%S:\
17298 ${x_library}/X11/%T/%N%C%S:\
17299 ${x_library}/X11/%L/%T/%N%S:\
17300 ${x_library}/X11/%l/%T/%N%S:\
17301 ${x_library}/X11/%T/%N%S"
17302 if test x"${x_default_search_path}" = x; then
17303 x_default_search_path=${x_search_path}
17304 else
17305 x_default_search_path="${x_search_path}:${x_default_search_path}"
17307 done
17311 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
17312 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17315 if test x"${x_includes}" = x; then
17316 bitmapdir=/usr/include/X11/bitmaps
17317 else
17318 # accumulate include directories that have X11 bitmap subdirectories
17319 bmd_acc="dummyval"
17320 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17321 if test -d "${bmd}/X11/bitmaps"; then
17322 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
17324 if test -d "${bmd}/bitmaps"; then
17325 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
17327 done
17328 if test ${bmd_acc} != "dummyval"; then
17329 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17333 HAVE_NS=no
17334 NS_IMPL_COCOA=no
17335 NS_IMPL_GNUSTEP=no
17336 tmp_CPPFLAGS="$CPPFLAGS"
17337 tmp_CFLAGS="$CFLAGS"
17338 CPPFLAGS="$CPPFLAGS -x objective-c"
17339 CFLAGS="$CFLAGS -x objective-c"
17340 TEMACS_LDFLAGS2="\${LDFLAGS}"
17341 GNU_OBJC_CFLAGS=
17342 if test "${with_ns}" != no; then
17343 if test "${opsys}" = darwin; then
17344 NS_IMPL_COCOA=yes
17345 ns_appdir=`pwd`/nextstep/Emacs.app
17346 ns_appbindir=${ns_appdir}/Contents/MacOS
17347 ns_appresdir=${ns_appdir}/Contents/Resources
17348 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
17349 elif test -f $GNUSTEP_CONFIG_FILE; then
17350 NS_IMPL_GNUSTEP=yes
17351 ns_appdir=`pwd`/nextstep/Emacs.app
17352 ns_appbindir=${ns_appdir}
17353 ns_appresdir=${ns_appdir}/Resources
17354 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
17355 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17356 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17357 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17358 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17359 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17360 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
17361 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17362 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
17363 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17364 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17365 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17366 LIB_STANDARD=
17367 START_FILES=
17368 TEMACS_LDFLAGS2=
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17370 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17371 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 #include <GNUstepBase/GSConfig.h>
17378 main ()
17380 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17382 #else
17383 fail;
17384 #endif
17386 return 0;
17388 _ACEOF
17389 if ac_fn_c_try_compile "$LINENO"; then :
17390 emacs_cv_objc_exceptions=yes
17391 else
17392 emacs_cv_objc_exceptions=no
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17397 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17398 if test $emacs_cv_objc_exceptions = yes; then
17400 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17402 GNU_OBJC_CFLAGS="-fobjc-exceptions"
17406 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
17408 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17409 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
17410 HAVE_NS=yes
17411 else
17412 as_fn_error "\`--with-ns' was specified, but the include
17413 files are missing or cannot be compiled." "$LINENO" 5
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <Foundation/NSObjCRuntime.h>
17421 main ()
17423 NSInteger i;
17425 return 0;
17427 _ACEOF
17428 if ac_fn_c_try_compile "$LINENO"; then :
17429 ns_have_nsinteger=yes
17430 else
17431 ns_have_nsinteger=no
17433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434 if test $ns_have_nsinteger = yes; then
17436 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17442 INSTALL_ARCH_INDEP_EXTRA=install-etc
17443 ns_self_contained=no
17444 ns_frag=/dev/null
17445 NS_OBJ=
17446 NS_OBJC_OBJ=
17447 if test "${HAVE_NS}" = yes; then
17448 if test "$with_toolkit_scroll_bars" = "no"; then
17449 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17452 window_system=nextstep
17453 with_xft=no
17454 # set up packaging dirs
17455 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17456 ns_self_contained=yes
17457 prefix=${ns_appresdir}
17458 exec_prefix=${ns_appbindir}
17459 libexecdir="\${ns_appbindir}/libexec"
17460 archlibdir="\${ns_appbindir}/libexec"
17461 docdir="\${ns_appresdir}/etc"
17462 etcdir="\${ns_appresdir}/etc"
17463 infodir="\${ns_appresdir}/info"
17464 mandir="\${ns_appresdir}/man"
17465 lispdir="\${ns_appresdir}/lisp"
17466 leimdir="\${ns_appresdir}/leim"
17467 INSTALL_ARCH_INDEP_EXTRA=
17469 ns_frag=$srcdir/src/ns.mk
17470 NS_OBJ="fontset.o fringe.o image.o"
17471 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17473 CFLAGS="$tmp_CFLAGS"
17474 CPPFLAGS="$tmp_CPPFLAGS"
17482 case "${window_system}" in
17483 x11 )
17484 HAVE_X_WINDOWS=yes
17485 HAVE_X11=yes
17486 case "${with_x_toolkit}" in
17487 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
17488 motif ) USE_X_TOOLKIT=MOTIF ;;
17489 gtk ) with_gtk=yes
17490 USE_X_TOOLKIT=none ;;
17491 gtk3 ) with_gtk3=yes
17492 USE_X_TOOLKIT=none ;;
17493 no ) USE_X_TOOLKIT=none ;;
17494 * ) USE_X_TOOLKIT=maybe ;;
17495 esac
17497 nextstep | none )
17498 HAVE_X_WINDOWS=no
17499 HAVE_X11=no
17500 USE_X_TOOLKIT=none
17502 esac
17504 if test "$window_system" = none && test "X$with_x" != "Xno"; then
17505 # Extract the first word of "X", so it can be a program name with args.
17506 set dummy X; ac_word=$2
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17508 $as_echo_n "checking for $ac_word... " >&6; }
17509 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17510 $as_echo_n "(cached) " >&6
17511 else
17512 if test -n "$HAVE_XSERVER"; then
17513 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
17514 else
17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516 for as_dir in $PATH
17518 IFS=$as_save_IFS
17519 test -z "$as_dir" && as_dir=.
17520 for ac_exec_ext in '' $ac_executable_extensions; do
17521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17522 ac_cv_prog_HAVE_XSERVER="true"
17523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17524 break 2
17526 done
17527 done
17528 IFS=$as_save_IFS
17530 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
17533 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
17534 if test -n "$HAVE_XSERVER"; then
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17536 $as_echo "$HAVE_XSERVER" >&6; }
17537 else
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17543 if test "$HAVE_XSERVER" = true ||
17544 test -n "$DISPLAY" ||
17545 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17546 as_fn_error "You seem to be running X, but no X development libraries
17547 were found. You should install the relevant development files for X
17548 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17549 sure you have development files for image handling, i.e.
17550 tiff, gif, jpeg, png and xpm.
17551 If you are sure you want Emacs compiled without X window support, pass
17552 --without-x
17553 to configure." "$LINENO" 5
17557 ### If we're using X11, we should use the X menu package.
17558 HAVE_MENUS=no
17559 case ${HAVE_X11} in
17560 yes ) HAVE_MENUS=yes ;;
17561 esac
17563 # Does the opsystem file prohibit the use of the GNU malloc?
17564 # Assume not, until told otherwise.
17565 GNU_MALLOC=yes
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17568 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17569 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 #include <malloc.h>
17575 static void hook (void) {}
17577 main ()
17579 malloc_set_state (malloc_get_state ());
17580 __after_morecore_hook = hook;
17581 __malloc_initialize_hook = hook;
17583 return 0;
17585 _ACEOF
17586 if ac_fn_c_try_link "$LINENO"; then :
17587 emacs_cv_var_doug_lea_malloc=yes
17588 else
17589 emacs_cv_var_doug_lea_malloc=no
17591 rm -f core conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17595 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17596 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
17599 system_malloc=no
17600 case "$opsys" in
17601 ## darwin ld insists on the use of malloc routines in the System framework.
17602 darwin|sol2-10) system_malloc=yes ;;
17603 esac
17605 if test "${system_malloc}" = "yes"; then
17607 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17609 GNU_MALLOC=no
17610 GNU_MALLOC_reason="
17611 (The GNU allocators don't work with this system configuration.)"
17612 GMALLOC_OBJ=
17613 VMLIMIT_OBJ=
17614 else
17615 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
17616 VMLIMIT_OBJ=vm-limit.o
17621 if test "$doug_lea_malloc" = "yes" ; then
17622 if test "$GNU_MALLOC" = yes ; then
17623 GNU_MALLOC_reason="
17624 (Using Doug Lea's new malloc from the GNU C Library.)"
17627 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17630 ## Use mmap directly for allocating larger buffers.
17631 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17632 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17633 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17634 case "$opsys" in
17635 gnu*) REL_ALLOC=no ;;
17636 esac
17639 if test x"${REL_ALLOC}" = x; then
17640 REL_ALLOC=${GNU_MALLOC}
17643 use_mmap_for_buffers=no
17644 case "$opsys" in
17645 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
17646 esac
17651 for ac_func in getpagesize
17652 do :
17653 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17654 if test "x$ac_cv_func_getpagesize" = x""yes; then :
17655 cat >>confdefs.h <<_ACEOF
17656 #define HAVE_GETPAGESIZE 1
17657 _ACEOF
17660 done
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17663 $as_echo_n "checking for working mmap... " >&6; }
17664 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17665 $as_echo_n "(cached) " >&6
17666 else
17667 if test "$cross_compiling" = yes; then :
17668 ac_cv_func_mmap_fixed_mapped=no
17669 else
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 /* malloc might have been renamed as rpl_malloc. */
17674 #undef malloc
17676 /* Thanks to Mike Haertel and Jim Avera for this test.
17677 Here is a matrix of mmap possibilities:
17678 mmap private not fixed
17679 mmap private fixed at somewhere currently unmapped
17680 mmap private fixed at somewhere already mapped
17681 mmap shared not fixed
17682 mmap shared fixed at somewhere currently unmapped
17683 mmap shared fixed at somewhere already mapped
17684 For private mappings, we should verify that changes cannot be read()
17685 back from the file, nor mmap's back from the file at a different
17686 address. (There have been systems where private was not correctly
17687 implemented like the infamous i386 svr4.0, and systems where the
17688 VM page cache was not coherent with the file system buffer cache
17689 like early versions of FreeBSD and possibly contemporary NetBSD.)
17690 For shared mappings, we should conversely verify that changes get
17691 propagated back to all the places they're supposed to be.
17693 Grep wants private fixed already mapped.
17694 The main things grep needs to know about mmap are:
17695 * does it exist and is it safe to write into the mmap'd area
17696 * how to use it (BSD variants) */
17698 #include <fcntl.h>
17699 #include <sys/mman.h>
17701 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17702 char *malloc ();
17703 #endif
17705 /* This mess was copied from the GNU getpagesize.h. */
17706 #ifndef HAVE_GETPAGESIZE
17707 # ifdef _SC_PAGESIZE
17708 # define getpagesize() sysconf(_SC_PAGESIZE)
17709 # else /* no _SC_PAGESIZE */
17710 # ifdef HAVE_SYS_PARAM_H
17711 # include <sys/param.h>
17712 # ifdef EXEC_PAGESIZE
17713 # define getpagesize() EXEC_PAGESIZE
17714 # else /* no EXEC_PAGESIZE */
17715 # ifdef NBPG
17716 # define getpagesize() NBPG * CLSIZE
17717 # ifndef CLSIZE
17718 # define CLSIZE 1
17719 # endif /* no CLSIZE */
17720 # else /* no NBPG */
17721 # ifdef NBPC
17722 # define getpagesize() NBPC
17723 # else /* no NBPC */
17724 # ifdef PAGESIZE
17725 # define getpagesize() PAGESIZE
17726 # endif /* PAGESIZE */
17727 # endif /* no NBPC */
17728 # endif /* no NBPG */
17729 # endif /* no EXEC_PAGESIZE */
17730 # else /* no HAVE_SYS_PARAM_H */
17731 # define getpagesize() 8192 /* punt totally */
17732 # endif /* no HAVE_SYS_PARAM_H */
17733 # endif /* no _SC_PAGESIZE */
17735 #endif /* no HAVE_GETPAGESIZE */
17738 main ()
17740 char *data, *data2, *data3;
17741 const char *cdata2;
17742 int i, pagesize;
17743 int fd, fd2;
17745 pagesize = getpagesize ();
17747 /* First, make a file with some known garbage in it. */
17748 data = (char *) malloc (pagesize);
17749 if (!data)
17750 return 1;
17751 for (i = 0; i < pagesize; ++i)
17752 *(data + i) = rand ();
17753 umask (0);
17754 fd = creat ("conftest.mmap", 0600);
17755 if (fd < 0)
17756 return 2;
17757 if (write (fd, data, pagesize) != pagesize)
17758 return 3;
17759 close (fd);
17761 /* Next, check that the tail of a page is zero-filled. File must have
17762 non-zero length, otherwise we risk SIGBUS for entire page. */
17763 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17764 if (fd2 < 0)
17765 return 4;
17766 cdata2 = "";
17767 if (write (fd2, cdata2, 1) != 1)
17768 return 5;
17769 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17770 if (data2 == MAP_FAILED)
17771 return 6;
17772 for (i = 0; i < pagesize; ++i)
17773 if (*(data2 + i))
17774 return 7;
17775 close (fd2);
17776 if (munmap (data2, pagesize))
17777 return 8;
17779 /* Next, try to mmap the file at a fixed address which already has
17780 something else allocated at it. If we can, also make sure that
17781 we see the same garbage. */
17782 fd = open ("conftest.mmap", O_RDWR);
17783 if (fd < 0)
17784 return 9;
17785 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17786 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17787 return 10;
17788 for (i = 0; i < pagesize; ++i)
17789 if (*(data + i) != *(data2 + i))
17790 return 11;
17792 /* Finally, make sure that changes to the mapped area do not
17793 percolate back to the file as seen by read(). (This is a bug on
17794 some variants of i386 svr4.0.) */
17795 for (i = 0; i < pagesize; ++i)
17796 *(data2 + i) = *(data2 + i) + 1;
17797 data3 = (char *) malloc (pagesize);
17798 if (!data3)
17799 return 12;
17800 if (read (fd, data3, pagesize) != pagesize)
17801 return 13;
17802 for (i = 0; i < pagesize; ++i)
17803 if (*(data + i) != *(data3 + i))
17804 return 14;
17805 close (fd);
17806 return 0;
17808 _ACEOF
17809 if ac_fn_c_try_run "$LINENO"; then :
17810 ac_cv_func_mmap_fixed_mapped=yes
17811 else
17812 ac_cv_func_mmap_fixed_mapped=no
17814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17815 conftest.$ac_objext conftest.beam conftest.$ac_ext
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17820 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17821 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17823 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17826 rm -f conftest.mmap conftest.txt
17828 if test $use_mmap_for_buffers = yes; then
17830 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17832 REL_ALLOC=no
17835 LIBS="$LIBS_SYSTEM $LIBS"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17838 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17839 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-ldnet $LIBS"
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char dnet_ntoa ();
17855 main ()
17857 return dnet_ntoa ();
17859 return 0;
17861 _ACEOF
17862 if ac_fn_c_try_link "$LINENO"; then :
17863 ac_cv_lib_dnet_dnet_ntoa=yes
17864 else
17865 ac_cv_lib_dnet_dnet_ntoa=no
17867 rm -f core conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17872 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17873 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17874 cat >>confdefs.h <<_ACEOF
17875 #define HAVE_LIBDNET 1
17876 _ACEOF
17878 LIBS="-ldnet $LIBS"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17884 $as_echo_n "checking for main in -lXbsd... " >&6; }
17885 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 ac_check_lib_save_LIBS=$LIBS
17889 LIBS="-lXbsd $LIBS"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17895 main ()
17897 return main ();
17899 return 0;
17901 _ACEOF
17902 if ac_fn_c_try_link "$LINENO"; then :
17903 ac_cv_lib_Xbsd_main=yes
17904 else
17905 ac_cv_lib_Xbsd_main=no
17907 rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909 LIBS=$ac_check_lib_save_LIBS
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17912 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17913 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
17914 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
17918 LIB_PTHREAD=
17922 if test "$ac_cv_header_pthread_h"; then
17923 if test "$GMALLOC_OBJ" = gmalloc.o; then
17924 emacs_pthread_function=pthread_atfork
17925 else
17926 emacs_pthread_function=pthread_self
17928 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17930 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17931 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-lpthread $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char $emacs_pthread_function ();
17947 main ()
17949 return $emacs_pthread_function ();
17951 return 0;
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 eval "$as_ac_Lib=yes"
17956 else
17957 eval "$as_ac_Lib=no"
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 eval ac_res=\$$as_ac_Lib
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17965 $as_echo "$ac_res" >&6; }
17966 eval as_val=\$$as_ac_Lib
17967 if test "x$as_val" = x""yes; then :
17968 HAVE_PTHREAD=yes
17972 if test "$HAVE_PTHREAD" = yes; then
17973 case "${canonical}" in
17974 *-hpux*) ;;
17975 *) LIB_PTHREAD="-lpthread"
17976 LIBS="$LIB_PTHREAD $LIBS" ;;
17977 esac
17979 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17985 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17986 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 ac_check_lib_save_LIBS=$LIBS
17990 LIBS="-lpthreads $LIBS"
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char cma_open ();
18002 main ()
18004 return cma_open ();
18006 return 0;
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010 ac_cv_lib_pthreads_cma_open=yes
18011 else
18012 ac_cv_lib_pthreads_cma_open=no
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
18019 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
18020 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_LIBPTHREADS 1
18023 _ACEOF
18025 LIBS="-lpthreads $LIBS"
18030 ## Note: when using cpp in s/aix4.2.h, this definition depended on
18031 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
18032 ## the system file was sourced. Hence the value of LIBS_SYSTEM
18033 ## added to LIBS in configure would never contain the pthreads part,
18034 ## but the value used in Makefiles might. FIXME?
18036 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
18037 ## be harmless on older versions of X where it happens to exist.
18038 test "$opsys" = "aix4-2" && \
18039 test $ac_cv_lib_pthreads_cma_open = yes && \
18040 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
18043 case ${host_os} in
18044 aix*)
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18046 $as_echo_n "checking for -bbigtoc option... " >&6; }
18047 if test "${gdb_cv_bigtoc+set}" = set; then :
18048 $as_echo_n "(cached) " >&6
18049 else
18051 case $GCC in
18052 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18053 *) gdb_cv_bigtoc=-bbigtoc ;;
18054 esac
18056 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18061 main ()
18063 int i;
18065 return 0;
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18070 else
18071 gdb_cv_bigtoc=
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18078 $as_echo "$gdb_cv_bigtoc" >&6; }
18080 esac
18082 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18083 # used for the tests that follow. We set them back to REAL_CFLAGS and
18084 # REAL_CPPFLAGS later on.
18086 REAL_CFLAGS="$CFLAGS"
18087 REAL_CPPFLAGS="$CPPFLAGS"
18089 if test "${HAVE_X11}" = "yes"; then
18090 DEFS="$C_SWITCH_X_SITE $DEFS"
18091 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
18092 LIBS="-lX11 $LIBS"
18093 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
18094 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
18096 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18097 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18098 # but it's more convenient here to set LD_RUN_PATH since this
18099 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18100 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
18101 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18102 export LD_RUN_PATH
18105 if test "${opsys}" = "gnu-linux"; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18107 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18112 main ()
18114 XOpenDisplay ("foo");
18116 return 0;
18118 _ACEOF
18119 if ac_fn_c_try_link "$LINENO"; then :
18120 xgnu_linux_first_failure=no
18121 else
18122 xgnu_linux_first_failure=yes
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126 if test "${xgnu_linux_first_failure}" = "yes"; then
18127 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
18128 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
18129 OLD_CPPFLAGS="$CPPFLAGS"
18130 OLD_LIBS="$LIBS"
18131 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
18132 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
18133 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
18134 LIBS="$LIBS -b i486-linuxaout"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18139 main ()
18141 XOpenDisplay ("foo");
18143 return 0;
18145 _ACEOF
18146 if ac_fn_c_try_link "$LINENO"; then :
18147 xgnu_linux_second_failure=no
18148 else
18149 xgnu_linux_second_failure=yes
18151 rm -f core conftest.err conftest.$ac_objext \
18152 conftest$ac_exeext conftest.$ac_ext
18153 if test "${xgnu_linux_second_failure}" = "yes"; then
18154 # If we get the same failure with -b, there is no use adding -b.
18155 # So take it out. This plays safe.
18156 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
18157 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
18158 CPPFLAGS="$OLD_CPPFLAGS"
18159 LIBS="$OLD_LIBS"
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18161 $as_echo "no" >&6; }
18162 else
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18164 $as_echo "yes" >&6; }
18166 else
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18168 $as_echo "no" >&6; }
18172 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18173 # header files included from there.
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18175 $as_echo_n "checking for Xkb... " >&6; }
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18178 #include <X11/Xlib.h>
18179 #include <X11/XKBlib.h>
18181 main ()
18183 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18185 return 0;
18187 _ACEOF
18188 if ac_fn_c_try_link "$LINENO"; then :
18189 emacs_xkb=yes
18190 else
18191 emacs_xkb=no
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18196 $as_echo "$emacs_xkb" >&6; }
18197 if test $emacs_xkb = yes; then
18199 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18203 for ac_func in XrmSetDatabase XScreenResourceString \
18204 XScreenNumberOfScreen
18205 do :
18206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18208 eval as_val=\$$as_ac_var
18209 if test "x$as_val" = x""yes; then :
18210 cat >>confdefs.h <<_ACEOF
18211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18212 _ACEOF
18215 done
18219 if test "${window_system}" = "x11"; then
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18221 $as_echo_n "checking X11 version 6... " >&6; }
18222 if test "${emacs_cv_x11_version_6+set}" = set; then :
18223 $as_echo_n "(cached) " >&6
18224 else
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 #include <X11/Xlib.h>
18229 main ()
18231 #if XlibSpecificationRelease < 6
18232 fail;
18233 #endif
18236 return 0;
18238 _ACEOF
18239 if ac_fn_c_try_link "$LINENO"; then :
18240 emacs_cv_x11_version_6=yes
18241 else
18242 emacs_cv_x11_version_6=no
18244 rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18248 if test $emacs_cv_x11_version_6 = yes; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18250 $as_echo "6 or newer" >&6; }
18252 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18255 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18257 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18258 ## XIM support.
18259 case "$opsys" in
18260 sol2-*) : ;;
18262 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18265 esac
18266 else
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18268 $as_echo "before 6" >&6; }
18273 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18274 HAVE_RSVG=no
18275 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
18276 if test "${with_rsvg}" != "no"; then
18277 RSVG_REQUIRED=2.11.0
18278 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
18281 succeeded=no
18283 if test "$PKG_CONFIG" = "no" ; then
18285 else
18286 PKG_CONFIG_MIN_VERSION=0.9.0
18287 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18289 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18291 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18292 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18293 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18294 edit_cflags="
18295 s,///*,/,g
18296 s/^/ /
18297 s/ -I/ $isystem/g
18298 s/^ //
18300 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18301 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18303 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18304 succeeded=yes
18305 else
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308 RSVG_CFLAGS=""
18309 RSVG_LIBS=""
18310 ## If we have a custom action on failure, don't print errors, but
18311 ## do set a variable so people can do so.
18312 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18318 else
18319 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18320 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18324 if test $succeeded = yes; then
18325 HAVE_RSVG=yes
18326 else
18333 if test $HAVE_RSVG = yes; then
18335 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18337 CFLAGS="$CFLAGS $RSVG_CFLAGS"
18338 LIBS="$RSVG_LIBS $LIBS"
18343 HAVE_IMAGEMAGICK=no
18344 if test "${HAVE_X11}" = "yes"; then
18345 if test "${with_imagemagick}" != "no"; then
18346 ## 6.2.8 is the earliest version known to work, but earlier versions
18347 ## might work - let us know if you find one.
18348 ## 6.0.7 does not work. See bug#7955.
18349 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
18351 succeeded=no
18353 if test "$PKG_CONFIG" = "no" ; then
18355 else
18356 PKG_CONFIG_MIN_VERSION=0.9.0
18357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18359 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18361 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18362 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18363 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18364 edit_cflags="
18365 s,///*,/,g
18366 s/^/ /
18367 s/ -I/ $isystem/g
18368 s/^ //
18370 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18371 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18373 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18374 succeeded=yes
18375 else
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378 IMAGEMAGICK_CFLAGS=""
18379 IMAGEMAGICK_LIBS=""
18380 ## If we have a custom action on failure, don't print errors, but
18381 ## do set a variable so people can do so.
18382 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18388 else
18389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18394 if test $succeeded = yes; then
18395 HAVE_IMAGEMAGICK=yes
18396 else
18403 if test $HAVE_IMAGEMAGICK = yes; then
18405 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18407 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
18408 LIBS="$IMAGEMAGICK_LIBS $LIBS"
18409 for ac_func in MagickExportImagePixels MagickMergeImageLayers
18410 do :
18411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18413 eval as_val=\$$as_ac_var
18414 if test "x$as_val" = x""yes; then :
18415 cat >>confdefs.h <<_ACEOF
18416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18417 _ACEOF
18420 done
18427 HAVE_GTK=no
18428 GTK_OBJ=
18429 if test "${with_gtk3}" = "yes"; then
18430 GLIB_REQUIRED=2.28
18431 GTK_REQUIRED=3.0
18432 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18435 succeeded=no
18437 if test "$PKG_CONFIG" = "no" ; then
18438 pkg_check_gtk=no
18439 else
18440 PKG_CONFIG_MIN_VERSION=0.9.0
18441 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18443 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18445 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18446 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18447 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18448 edit_cflags="
18449 s,///*,/,g
18450 s/^/ /
18451 s/ -I/ $isystem/g
18452 s/^ //
18454 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18455 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18457 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18458 succeeded=yes
18459 else
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18462 GTK_CFLAGS=""
18463 GTK_LIBS=""
18464 ## If we have a custom action on failure, don't print errors, but
18465 ## do set a variable so people can do so.
18466 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18472 else
18473 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18474 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18478 if test $succeeded = yes; then
18479 pkg_check_gtk=yes
18480 else
18481 pkg_check_gtk=no
18484 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18485 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18488 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18490 GTK_OBJ=emacsgtkfixed.o
18493 if test "$pkg_check_gtk" != "yes"; then
18494 HAVE_GTK=no
18495 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
18496 GLIB_REQUIRED=2.10
18497 GTK_REQUIRED=2.10
18498 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18501 succeeded=no
18503 if test "$PKG_CONFIG" = "no" ; then
18504 pkg_check_gtk=no
18505 else
18506 PKG_CONFIG_MIN_VERSION=0.9.0
18507 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18509 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18511 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18512 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18513 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18514 edit_cflags="
18515 s,///*,/,g
18516 s/^/ /
18517 s/ -I/ $isystem/g
18518 s/^ //
18520 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18521 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18523 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18524 succeeded=yes
18525 else
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18527 $as_echo "no" >&6; }
18528 GTK_CFLAGS=""
18529 GTK_LIBS=""
18530 ## If we have a custom action on failure, don't print errors, but
18531 ## do set a variable so people can do so.
18532 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18538 else
18539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18544 if test $succeeded = yes; then
18545 pkg_check_gtk=yes
18546 else
18547 pkg_check_gtk=no
18550 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18551 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18556 if test x"$pkg_check_gtk" = xyes; then
18560 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
18561 CFLAGS="$CFLAGS $GTK_CFLAGS"
18562 LIBS="$GTK_LIBS $LIBS"
18563 GTK_COMPILES=no
18564 for ac_func in gtk_main
18565 do :
18566 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18567 if test "x$ac_cv_func_gtk_main" = x""yes; then :
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_GTK_MAIN 1
18570 _ACEOF
18571 GTK_COMPILES=yes
18573 done
18575 if test "${GTK_COMPILES}" != "yes"; then
18576 if test "$USE_X_TOOLKIT" != "maybe"; then
18577 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18579 else
18580 HAVE_GTK=yes
18582 $as_echo "#define USE_GTK 1" >>confdefs.h
18584 GTK_OBJ="gtkutil.o $GTK_OBJ"
18585 USE_X_TOOLKIT=none
18586 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
18588 else
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18590 closing open displays. This is no problem if you just use
18591 one display, but if you use more than one and close one of them
18592 Emacs may crash." >&5
18593 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18594 closing open displays. This is no problem if you just use
18595 one display, but if you use more than one and close one of them
18596 Emacs may crash." >&2;}
18597 sleep 3
18605 if test "${HAVE_GTK}" = "yes"; then
18607 if test "$with_toolkit_scroll_bars" != no; then
18608 with_toolkit_scroll_bars=yes
18611 HAVE_GTK_FILE_SELECTION=no
18612 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18613 #include <gtk/gtk.h>
18615 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
18616 HAVE_GTK_FILE_SELECTION=yes
18617 else
18618 HAVE_GTK_FILE_SELECTION=no
18621 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18622 for ac_func in gtk_file_selection_new
18623 do :
18624 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18625 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
18626 cat >>confdefs.h <<_ACEOF
18627 #define HAVE_GTK_FILE_SELECTION_NEW 1
18628 _ACEOF
18631 done
18636 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
18637 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18638 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18639 gtk_orientable_set_orientation \
18640 gtk_window_set_has_resize_grip
18641 do :
18642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18644 eval as_val=\$$as_ac_var
18645 if test "x$as_val" = x""yes; then :
18646 cat >>confdefs.h <<_ACEOF
18647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18648 _ACEOF
18651 done
18655 HAVE_DBUS=no
18656 DBUS_OBJ=
18657 if test "${with_dbus}" = "yes"; then
18659 succeeded=no
18661 if test "$PKG_CONFIG" = "no" ; then
18662 HAVE_DBUS=no
18663 else
18664 PKG_CONFIG_MIN_VERSION=0.9.0
18665 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18667 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18669 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18670 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18671 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18672 edit_cflags="
18673 s,///*,/,g
18674 s/^/ /
18675 s/ -I/ $isystem/g
18676 s/^ //
18678 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18679 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18681 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18682 succeeded=yes
18683 else
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686 DBUS_CFLAGS=""
18687 DBUS_LIBS=""
18688 ## If we have a custom action on failure, don't print errors, but
18689 ## do set a variable so people can do so.
18690 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18696 else
18697 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18698 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18702 if test $succeeded = yes; then
18703 HAVE_DBUS=yes
18704 else
18705 HAVE_DBUS=no
18708 if test "$HAVE_DBUS" = yes; then
18709 LIBS="$LIBS $DBUS_LIBS"
18711 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18713 for ac_func in dbus_watch_get_unix_fd \
18714 dbus_type_is_valid \
18715 dbus_validate_bus_name \
18716 dbus_validate_path \
18717 dbus_validate_interface \
18718 dbus_validate_member
18719 do :
18720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18722 eval as_val=\$$as_ac_var
18723 if test "x$as_val" = x""yes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18726 _ACEOF
18729 done
18731 DBUS_OBJ=dbusbind.o
18736 HAVE_GSETTINGS=no
18737 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18739 succeeded=no
18741 if test "$PKG_CONFIG" = "no" ; then
18742 HAVE_GSETTINGS=no
18743 else
18744 PKG_CONFIG_MIN_VERSION=0.9.0
18745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18747 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18749 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18750 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18751 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18752 edit_cflags="
18753 s,///*,/,g
18754 s/^/ /
18755 s/ -I/ $isystem/g
18756 s/^ //
18758 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18759 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18761 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18762 succeeded=yes
18763 else
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18766 GSETTINGS_CFLAGS=""
18767 GSETTINGS_LIBS=""
18768 ## If we have a custom action on failure, don't print errors, but
18769 ## do set a variable so people can do so.
18770 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18776 else
18777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18782 if test $succeeded = yes; then
18783 HAVE_GSETTINGS=yes
18784 else
18785 HAVE_GSETTINGS=no
18788 if test "$HAVE_GSETTINGS" = "yes"; then
18790 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18792 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
18793 SETTINGS_LIBS="$GSETTINGS_LIBS"
18797 HAVE_GCONF=no
18798 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18800 succeeded=no
18802 if test "$PKG_CONFIG" = "no" ; then
18803 HAVE_GCONF=no
18804 else
18805 PKG_CONFIG_MIN_VERSION=0.9.0
18806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18808 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18810 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18811 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18812 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18813 edit_cflags="
18814 s,///*,/,g
18815 s/^/ /
18816 s/ -I/ $isystem/g
18817 s/^ //
18819 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18820 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18822 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18823 succeeded=yes
18824 else
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18827 GCONF_CFLAGS=""
18828 GCONF_LIBS=""
18829 ## If we have a custom action on failure, don't print errors, but
18830 ## do set a variable so people can do so.
18831 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18837 else
18838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18839 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18843 if test $succeeded = yes; then
18844 HAVE_GCONF=yes
18845 else
18846 HAVE_GCONF=no
18849 if test "$HAVE_GCONF" = yes; then
18851 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18853 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18854 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
18858 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
18859 SAVE_CFLAGS="$CFLAGS"
18860 SAVE_LIBS="$LIBS"
18861 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
18862 LIBS="$SETTINGS_LIBS $LIBS"
18863 for ac_func in g_type_init
18864 do :
18865 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18866 if test "x$ac_cv_func_g_type_init" = x""yes; then :
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_G_TYPE_INIT 1
18869 _ACEOF
18872 done
18874 CFLAGS="$SAVE_CFLAGS"
18875 LIBS="$SAVE_LIBS"
18881 HAVE_LIBSELINUX=no
18882 LIBSELINUX_LIBS=
18883 if test "${with_selinux}" = "yes"; then
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18885 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18886 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lselinux $LIBS"
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18894 /* Override any GCC internal prototype to avoid an error.
18895 Use char because int might match the return type of a GCC
18896 builtin and then its argument prototype would still apply. */
18897 #ifdef __cplusplus
18898 extern "C"
18899 #endif
18900 char lgetfilecon ();
18902 main ()
18904 return lgetfilecon ();
18906 return 0;
18908 _ACEOF
18909 if ac_fn_c_try_link "$LINENO"; then :
18910 ac_cv_lib_selinux_lgetfilecon=yes
18911 else
18912 ac_cv_lib_selinux_lgetfilecon=no
18914 rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 LIBS=$ac_check_lib_save_LIBS
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18919 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18920 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
18921 HAVE_LIBSELINUX=yes
18922 else
18923 HAVE_LIBSELINUX=no
18926 if test "$HAVE_LIBSELINUX" = yes; then
18928 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18930 LIBSELINUX_LIBS=-lselinux
18935 HAVE_GNUTLS=no
18936 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
18937 if test "${with_gnutls}" = "yes" ; then
18939 succeeded=no
18941 if test "$PKG_CONFIG" = "no" ; then
18942 HAVE_GNUTLS=no
18943 else
18944 PKG_CONFIG_MIN_VERSION=0.9.0
18945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18947 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18949 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18950 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18951 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18952 edit_cflags="
18953 s,///*,/,g
18954 s/^/ /
18955 s/ -I/ $isystem/g
18956 s/^ //
18958 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18959 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18961 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18962 succeeded=yes
18963 else
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18966 LIBGNUTLS_CFLAGS=""
18967 LIBGNUTLS_LIBS=""
18968 ## If we have a custom action on failure, don't print errors, but
18969 ## do set a variable so people can do so.
18970 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18976 else
18977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18982 if test $succeeded = yes; then
18983 HAVE_GNUTLS=yes
18984 else
18985 HAVE_GNUTLS=no
18988 if test "${HAVE_GNUTLS}" = "yes"; then
18990 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18994 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
18995 LIBS="$LIBGNUTLS_LIBS $LIBS"
18996 for ac_func in gnutls_certificate_set_verify_function
18997 do :
18998 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18999 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
19002 _ACEOF
19003 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
19005 done
19008 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
19010 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
19018 HAVE_XAW3D=no
19019 LUCID_LIBW=
19020 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
19021 if test "$with_xaw3d" != no; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
19023 $as_echo_n "checking for xaw3d... " >&6; }
19024 if test "${emacs_cv_xaw3d+set}" = set; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19030 #include <X11/Intrinsic.h>
19031 #include <X11/Xaw3d/Simple.h>
19033 main ()
19037 return 0;
19039 _ACEOF
19040 if ac_fn_c_try_link "$LINENO"; then :
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
19042 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
19043 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
19044 $as_echo_n "(cached) " >&6
19045 else
19046 ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lXaw3d $LIBS"
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19051 /* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 char XawScrollbarSetThumb ();
19059 main ()
19061 return XawScrollbarSetThumb ();
19063 return 0;
19065 _ACEOF
19066 if ac_fn_c_try_link "$LINENO"; then :
19067 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
19068 else
19069 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
19071 rm -f core conftest.err conftest.$ac_objext \
19072 conftest$ac_exeext conftest.$ac_ext
19073 LIBS=$ac_check_lib_save_LIBS
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19076 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19077 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
19078 emacs_cv_xaw3d=yes
19079 else
19080 emacs_cv_xaw3d=no
19083 else
19084 emacs_cv_xaw3d=no
19086 rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19090 else
19091 emacs_cv_xaw3d=no
19093 if test $emacs_cv_xaw3d = yes; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19095 $as_echo "yes; using Lucid toolkit" >&6; }
19096 USE_X_TOOLKIT=LUCID
19097 HAVE_XAW3D=yes
19098 LUCID_LIBW=-lXaw3d
19100 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19102 else
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 $as_echo "no" >&6; }
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19106 $as_echo_n "checking for libXaw... " >&6; }
19107 if test "${emacs_cv_xaw+set}" = set; then :
19108 $as_echo_n "(cached) " >&6
19109 else
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19113 #include <X11/Intrinsic.h>
19114 #include <X11/Xaw/Simple.h>
19116 main ()
19120 return 0;
19122 _ACEOF
19123 if ac_fn_c_try_link "$LINENO"; then :
19124 emacs_cv_xaw=yes
19125 else
19126 emacs_cv_xaw=no
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19132 if test $emacs_cv_xaw = yes; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19134 $as_echo "yes; using Lucid toolkit" >&6; }
19135 USE_X_TOOLKIT=LUCID
19136 LUCID_LIBW=-lXaw
19137 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
19138 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19139 else
19140 as_fn_error "No X toolkit could be found.
19141 If you are sure you want Emacs compiled without an X toolkit, pass
19142 --with-x-toolkit=no
19143 to configure. Otherwise, install the development libraries for the toolkit
19144 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19149 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
19151 LIBXTR6=
19152 if test "${USE_X_TOOLKIT}" != "none"; then
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19154 $as_echo_n "checking X11 toolkit version... " >&6; }
19155 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19156 $as_echo_n "(cached) " >&6
19157 else
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160 #include <X11/Intrinsic.h>
19162 main ()
19164 #if XtSpecificationRelease < 6
19165 fail;
19166 #endif
19169 return 0;
19171 _ACEOF
19172 if ac_fn_c_try_link "$LINENO"; then :
19173 emacs_cv_x11_toolkit_version_6=yes
19174 else
19175 emacs_cv_x11_toolkit_version_6=no
19177 rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19181 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
19182 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19184 $as_echo "6 or newer" >&6; }
19186 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19188 LIBXTR6="-lSM -lICE"
19189 case "$opsys" in
19190 ## Use libw.a along with X11R6 Xt.
19191 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
19192 esac
19193 else
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19195 $as_echo "before 6" >&6; }
19198 OLDLIBS="$LIBS"
19199 if test x$HAVE_X11XTR6 = xyes; then
19200 LIBS="-lXt -lSM -lICE $LIBS"
19201 else
19202 LIBS="-lXt $LIBS"
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19205 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19206 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19207 $as_echo_n "(cached) " >&6
19208 else
19209 ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-lXmu $LIBS"
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply. */
19217 #ifdef __cplusplus
19218 extern "C"
19219 #endif
19220 char XmuConvertStandardSelection ();
19222 main ()
19224 return XmuConvertStandardSelection ();
19226 return 0;
19228 _ACEOF
19229 if ac_fn_c_try_link "$LINENO"; then :
19230 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
19231 else
19232 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19239 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19240 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_LIBXMU 1
19243 _ACEOF
19245 LIBS="-lXmu $LIBS"
19249 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
19253 LIBXMU=-lXmu
19254 case $opsys in
19255 ## These systems don't supply Xmu.
19256 hpux* | aix4-2 )
19257 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
19259 esac
19262 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19263 if test "${HAVE_X11}" = "yes"; then
19264 if test "${USE_X_TOOLKIT}" != "none"; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19266 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19267 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19268 $as_echo_n "(cached) " >&6
19269 else
19270 ac_check_lib_save_LIBS=$LIBS
19271 LIBS="-lXext $LIBS"
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char XShapeQueryExtension ();
19283 main ()
19285 return XShapeQueryExtension ();
19287 return 0;
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19291 ac_cv_lib_Xext_XShapeQueryExtension=yes
19292 else
19293 ac_cv_lib_Xext_XShapeQueryExtension=no
19295 rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19300 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19301 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_LIBXEXT 1
19304 _ACEOF
19306 LIBS="-lXext $LIBS"
19313 LIBXP=
19314 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19316 $as_echo_n "checking for Motif version 2.1... " >&6; }
19317 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19318 $as_echo_n "(cached) " >&6
19319 else
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19322 #include <Xm/Xm.h>
19324 main ()
19326 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19327 int x = 5;
19328 #else
19329 Motif version prior to 2.1.
19330 #endif
19332 return 0;
19334 _ACEOF
19335 if ac_fn_c_try_compile "$LINENO"; then :
19336 emacs_cv_motif_version_2_1=yes
19337 else
19338 emacs_cv_motif_version_2_1=no
19340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19343 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19344 if test $emacs_cv_motif_version_2_1 = yes; then
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19346 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19347 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19348 $as_echo_n "(cached) " >&6
19349 else
19350 ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-lXp $LIBS"
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19355 /* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19358 #ifdef __cplusplus
19359 extern "C"
19360 #endif
19361 char XpCreateContext ();
19363 main ()
19365 return XpCreateContext ();
19367 return 0;
19369 _ACEOF
19370 if ac_fn_c_try_link "$LINENO"; then :
19371 ac_cv_lib_Xp_XpCreateContext=yes
19372 else
19373 ac_cv_lib_Xp_XpCreateContext=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19380 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19381 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
19382 LIBXP=-lXp
19385 else
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19387 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19388 if test "${emacs_cv_lesstif+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19390 else
19391 # We put this in CFLAGS temporarily to precede other -I options
19392 # that might be in CFLAGS temporarily.
19393 # We put this in CPPFLAGS where it precedes the other -I options.
19394 OLD_CPPFLAGS=$CPPFLAGS
19395 OLD_CFLAGS=$CFLAGS
19396 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19397 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19402 main ()
19404 int x = 5;
19406 return 0;
19408 _ACEOF
19409 if ac_fn_c_try_compile "$LINENO"; then :
19410 emacs_cv_lesstif=yes
19411 else
19412 emacs_cv_lesstif=no
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19417 $as_echo "$emacs_cv_lesstif" >&6; }
19418 if test $emacs_cv_lesstif = yes; then
19419 # Make sure this -I option remains in CPPFLAGS after it is set
19420 # back to REAL_CPPFLAGS.
19421 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19422 # have those other -I options anyway. Ultimately, having this
19423 # directory ultimately in CPPFLAGS will be enough.
19424 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19425 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19426 else
19427 CFLAGS=$OLD_CFLAGS
19428 CPPFLAGS=$OLD_CPPFLAGS
19431 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19432 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
19434 else
19435 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
19442 USE_TOOLKIT_SCROLL_BARS=no
19443 if test "${with_toolkit_scroll_bars}" != "no"; then
19444 if test "${USE_X_TOOLKIT}" != "none"; then
19445 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19446 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19448 HAVE_XAW3D=no
19449 USE_TOOLKIT_SCROLL_BARS=yes
19450 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
19451 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19453 USE_TOOLKIT_SCROLL_BARS=yes
19455 elif test "${HAVE_GTK}" = "yes"; then
19456 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19458 USE_TOOLKIT_SCROLL_BARS=yes
19459 elif test "${HAVE_NS}" = "yes"; then
19460 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19462 USE_TOOLKIT_SCROLL_BARS=yes
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19469 #include <X11/Xlib.h>
19470 #include <X11/Xresource.h>
19472 main ()
19474 XIMProc callback;
19476 return 0;
19478 _ACEOF
19479 if ac_fn_c_try_compile "$LINENO"; then :
19480 HAVE_XIM=yes
19482 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19484 else
19485 HAVE_XIM=no
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 if test "${with_xim}" != "no"; then
19492 $as_echo "#define USE_XIM 1" >>confdefs.h
19497 if test "${HAVE_XIM}" != "no"; then
19498 late_CFLAGS=$CFLAGS
19499 if test "$GCC" = yes; then
19500 CFLAGS="$CFLAGS --pedantic-errors"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 #include <X11/Xlib.h>
19506 #include <X11/Xresource.h>
19508 main ()
19510 Display *display;
19511 XrmDatabase db;
19512 char *res_name;
19513 char *res_class;
19514 XIMProc callback;
19515 XPointer *client_data;
19516 #ifndef __GNUC__
19517 /* If we're not using GCC, it's probably not XFree86, and this is
19518 probably right, but we can't use something like --pedantic-errors. */
19519 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19520 char*, XIMProc, XPointer*);
19521 #endif
19522 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19523 client_data);
19525 return 0;
19527 _ACEOF
19528 if ac_fn_c_try_compile "$LINENO"; then :
19529 emacs_cv_arg6_star=yes
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532 if test "$emacs_cv_arg6_star" = yes; then
19533 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19535 else
19536 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19539 CFLAGS=$late_CFLAGS
19542 ### Start of font-backend (under any platform) section.
19543 # (nothing here yet -- this is a placeholder)
19544 ### End of font-backend (under any platform) section.
19546 ### Start of font-backend (under X11) section.
19547 if test "${HAVE_X11}" = "yes"; then
19549 succeeded=no
19551 if test "$PKG_CONFIG" = "no" ; then
19552 HAVE_FC=no
19553 else
19554 PKG_CONFIG_MIN_VERSION=0.9.0
19555 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19557 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19559 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19560 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19561 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19562 edit_cflags="
19563 s,///*,/,g
19564 s/^/ /
19565 s/ -I/ $isystem/g
19566 s/^ //
19568 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19569 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19571 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19572 succeeded=yes
19573 else
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575 $as_echo "no" >&6; }
19576 FONTCONFIG_CFLAGS=""
19577 FONTCONFIG_LIBS=""
19578 ## If we have a custom action on failure, don't print errors, but
19579 ## do set a variable so people can do so.
19580 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19586 else
19587 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19588 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19592 if test $succeeded = yes; then
19593 HAVE_FC=yes
19594 else
19595 HAVE_FC=no
19599 ## Use -lXft if available, unless `--with-xft=no'.
19600 HAVE_XFT=maybe
19601 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
19602 with_xft="no";
19604 if test "x${with_xft}" != "xno"; then
19607 succeeded=no
19609 if test "$PKG_CONFIG" = "no" ; then
19610 HAVE_XFT=no
19611 else
19612 PKG_CONFIG_MIN_VERSION=0.9.0
19613 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19615 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19617 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19618 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19619 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19620 edit_cflags="
19621 s,///*,/,g
19622 s/^/ /
19623 s/ -I/ $isystem/g
19624 s/^ //
19626 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19627 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19629 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19630 succeeded=yes
19631 else
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633 $as_echo "no" >&6; }
19634 XFT_CFLAGS=""
19635 XFT_LIBS=""
19636 ## If we have a custom action on failure, don't print errors, but
19637 ## do set a variable so people can do so.
19638 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19644 else
19645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19650 if test $succeeded = yes; then
19652 else
19653 HAVE_XFT=no
19656 ## Because xftfont.c uses XRenderQueryExtension, we also
19657 ## need to link to -lXrender.
19658 HAVE_XRENDER=no
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19660 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19661 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lXrender $LIBS"
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char XRenderQueryExtension ();
19677 main ()
19679 return XRenderQueryExtension ();
19681 return 0;
19683 _ACEOF
19684 if ac_fn_c_try_link "$LINENO"; then :
19685 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19686 else
19687 ac_cv_lib_Xrender_XRenderQueryExtension=no
19689 rm -f core conftest.err conftest.$ac_objext \
19690 conftest$ac_exeext conftest.$ac_ext
19691 LIBS=$ac_check_lib_save_LIBS
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19694 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19695 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19696 HAVE_XRENDER=yes
19699 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
19700 OLD_CPPFLAGS="$CPPFLAGS"
19701 OLD_CFLAGS="$CFLAGS"
19702 OLD_LIBS="$LIBS"
19703 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
19704 CFLAGS="$CFLAGS $XFT_CFLAGS"
19705 XFT_LIBS="-lXrender $XFT_LIBS"
19706 LIBS="$XFT_LIBS $LIBS"
19707 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19708 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19710 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19711 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19712 $as_echo_n "(cached) " >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lXft $XFT_LIBS $LIBS"
19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char XftFontOpen ();
19727 main ()
19729 return XftFontOpen ();
19731 return 0;
19733 _ACEOF
19734 if ac_fn_c_try_link "$LINENO"; then :
19735 ac_cv_lib_Xft_XftFontOpen=yes
19736 else
19737 ac_cv_lib_Xft_XftFontOpen=no
19739 rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19744 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19745 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
19746 HAVE_XFT=yes
19753 if test "${HAVE_XFT}" = "yes"; then
19755 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19758 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
19759 else
19760 CPPFLAGS="$OLD_CPPFLAGS"
19761 CFLAGS="$OLD_CFLAGS"
19762 LIBS="$OLD_LIBS"
19763 fi # "${HAVE_XFT}" = "yes"
19764 fi # "$HAVE_XFT" != no
19765 fi # "x${with_xft}" != "xno"
19767 ## We used to allow building with FreeType and without Xft.
19768 ## However, the ftx font backend driver is not in good shape.
19769 if test "$HAVE_XFT" != "yes"; then
19770 HAVE_XFT=no
19771 HAVE_FREETYPE=no
19772 else
19774 succeeded=no
19776 if test "$PKG_CONFIG" = "no" ; then
19777 HAVE_FREETYPE=no
19778 else
19779 PKG_CONFIG_MIN_VERSION=0.9.0
19780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19782 $as_echo_n "checking for freetype2... " >&6; }
19784 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19785 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19786 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19787 edit_cflags="
19788 s,///*,/,g
19789 s/^/ /
19790 s/ -I/ $isystem/g
19791 s/^ //
19793 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19794 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19796 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19797 succeeded=yes
19798 else
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19800 $as_echo "no" >&6; }
19801 FREETYPE_CFLAGS=""
19802 FREETYPE_LIBS=""
19803 ## If we have a custom action on failure, don't print errors, but
19804 ## do set a variable so people can do so.
19805 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19811 else
19812 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19813 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19817 if test $succeeded = yes; then
19818 HAVE_FREETYPE=yes
19819 else
19820 HAVE_FREETYPE=no
19824 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
19827 HAVE_LIBOTF=no
19828 if test "${HAVE_FREETYPE}" = "yes"; then
19830 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19832 if test "${with_libotf}" != "no"; then
19834 succeeded=no
19836 if test "$PKG_CONFIG" = "no" ; then
19837 HAVE_LIBOTF=no
19838 else
19839 PKG_CONFIG_MIN_VERSION=0.9.0
19840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19842 $as_echo_n "checking for libotf... " >&6; }
19844 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19845 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19846 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19847 edit_cflags="
19848 s,///*,/,g
19849 s/^/ /
19850 s/ -I/ $isystem/g
19851 s/^ //
19853 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19854 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19856 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19857 succeeded=yes
19858 else
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860 $as_echo "no" >&6; }
19861 LIBOTF_CFLAGS=""
19862 LIBOTF_LIBS=""
19863 ## If we have a custom action on failure, don't print errors, but
19864 ## do set a variable so people can do so.
19865 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19871 else
19872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19877 if test $succeeded = yes; then
19878 HAVE_LIBOTF=yes
19879 else
19880 HAVE_LIBOTF=no
19883 if test "$HAVE_LIBOTF" = "yes"; then
19885 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19888 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19889 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19890 $as_echo_n "(cached) " >&6
19891 else
19892 ac_check_lib_save_LIBS=$LIBS
19893 LIBS="-lotf $LIBS"
19894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char OTF_get_variation_glyphs ();
19905 main ()
19907 return OTF_get_variation_glyphs ();
19909 return 0;
19911 _ACEOF
19912 if ac_fn_c_try_link "$LINENO"; then :
19913 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
19914 else
19915 ac_cv_lib_otf_OTF_get_variation_glyphs=no
19917 rm -f core conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19922 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19923 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
19924 HAVE_OTF_GET_VARIATION_GLYPHS=yes
19925 else
19926 HAVE_OTF_GET_VARIATION_GLYPHS=no
19929 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19931 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19938 HAVE_M17N_FLT=no
19939 if test "${HAVE_LIBOTF}" = yes; then
19940 if test "${with_m17n_flt}" != "no"; then
19942 succeeded=no
19944 if test "$PKG_CONFIG" = "no" ; then
19945 HAVE_M17N_FLT=no
19946 else
19947 PKG_CONFIG_MIN_VERSION=0.9.0
19948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19950 $as_echo_n "checking for m17n-flt... " >&6; }
19952 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19953 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19954 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19955 edit_cflags="
19956 s,///*,/,g
19957 s/^/ /
19958 s/ -I/ $isystem/g
19959 s/^ //
19961 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19962 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19964 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19965 succeeded=yes
19966 else
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968 $as_echo "no" >&6; }
19969 M17N_FLT_CFLAGS=""
19970 M17N_FLT_LIBS=""
19971 ## If we have a custom action on failure, don't print errors, but
19972 ## do set a variable so people can do so.
19973 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19979 else
19980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19985 if test $succeeded = yes; then
19986 HAVE_M17N_FLT=yes
19987 else
19988 HAVE_M17N_FLT=no
19991 if test "$HAVE_M17N_FLT" = "yes"; then
19993 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19998 else
19999 HAVE_XFT=no
20000 HAVE_FREETYPE=no
20001 HAVE_LIBOTF=no
20002 HAVE_M17N_FLT=no
20005 ### End of font-backend (under X11) section.
20016 ### Use -lXpm if available, unless `--with-xpm=no'.
20017 HAVE_XPM=no
20018 LIBXPM=
20019 if test "${HAVE_X11}" = "yes"; then
20020 if test "${with_xpm}" != "no"; then
20021 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
20022 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
20024 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
20025 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
20026 $as_echo_n "(cached) " >&6
20027 else
20028 ac_check_lib_save_LIBS=$LIBS
20029 LIBS="-lXpm -lX11 $LIBS"
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char XpmReadFileToPixmap ();
20041 main ()
20043 return XpmReadFileToPixmap ();
20045 return 0;
20047 _ACEOF
20048 if ac_fn_c_try_link "$LINENO"; then :
20049 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
20050 else
20051 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20058 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20059 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
20060 HAVE_XPM=yes
20066 if test "${HAVE_XPM}" = "yes"; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20068 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20071 #include "X11/xpm.h"
20072 #ifndef XpmReturnAllocPixels
20073 no_return_alloc_pixels
20074 #endif
20076 _ACEOF
20077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20078 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
20079 HAVE_XPM=no
20080 else
20081 HAVE_XPM=yes
20083 rm -f conftest*
20086 if test "${HAVE_XPM}" = "yes"; then
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20088 $as_echo "yes" >&6; }
20089 else
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091 $as_echo "no" >&6; }
20096 if test "${HAVE_XPM}" = "yes"; then
20098 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20100 LIBXPM=-lXpm
20105 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20106 HAVE_JPEG=no
20107 LIBJPEG=
20108 if test "${HAVE_X11}" = "yes"; then
20109 if test "${with_jpeg}" != "no"; then
20110 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20111 if test "x$ac_cv_header_jerror_h" = x""yes; then :
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20113 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20114 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20115 $as_echo_n "(cached) " >&6
20116 else
20117 ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-ljpeg $LIBS"
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125 #ifdef __cplusplus
20126 extern "C"
20127 #endif
20128 char jpeg_destroy_compress ();
20130 main ()
20132 return jpeg_destroy_compress ();
20134 return 0;
20136 _ACEOF
20137 if ac_fn_c_try_link "$LINENO"; then :
20138 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
20139 else
20140 ac_cv_lib_jpeg_jpeg_destroy_compress=no
20142 rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20144 LIBS=$ac_check_lib_save_LIBS
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20147 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20148 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
20149 HAVE_JPEG=yes
20157 if test "${HAVE_JPEG}" = "yes"; then
20158 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20162 #include <jpeglib.h>
20163 version=JPEG_LIB_VERSION
20165 _ACEOF
20166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
20168 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20170 else
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20172 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20173 HAVE_JPEG=no
20175 rm -f conftest*
20178 if test "${HAVE_JPEG}" = "yes"; then
20179 LIBJPEG=-ljpeg
20184 ### Use -lpng if available, unless `--with-png=no'.
20185 HAVE_PNG=no
20186 LIBPNG=
20187 if test "${HAVE_X11}" = "yes"; then
20188 if test "${with_png}" != "no"; then
20189 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20190 # in /usr/include/libpng.
20191 for ac_header in png.h libpng/png.h
20192 do :
20193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20195 eval as_val=\$$as_ac_Header
20196 if test "x$as_val" = x""yes; then :
20197 cat >>confdefs.h <<_ACEOF
20198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20199 _ACEOF
20203 done
20205 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20207 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20208 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20209 $as_echo_n "(cached) " >&6
20210 else
20211 ac_check_lib_save_LIBS=$LIBS
20212 LIBS="-lpng -lz -lm $LIBS"
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20216 /* Override any GCC internal prototype to avoid an error.
20217 Use char because int might match the return type of a GCC
20218 builtin and then its argument prototype would still apply. */
20219 #ifdef __cplusplus
20220 extern "C"
20221 #endif
20222 char png_get_channels ();
20224 main ()
20226 return png_get_channels ();
20228 return 0;
20230 _ACEOF
20231 if ac_fn_c_try_link "$LINENO"; then :
20232 ac_cv_lib_png_png_get_channels=yes
20233 else
20234 ac_cv_lib_png_png_get_channels=no
20236 rm -f core conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
20238 LIBS=$ac_check_lib_save_LIBS
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20241 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20242 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
20243 HAVE_PNG=yes
20249 if test "${HAVE_PNG}" = "yes"; then
20251 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20253 LIBPNG="-lpng -lz -lm"
20258 ### Use -ltiff if available, unless `--with-tiff=no'.
20259 HAVE_TIFF=no
20260 LIBTIFF=
20261 if test "${HAVE_X11}" = "yes"; then
20262 if test "${with_tiff}" != "no"; then
20263 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20264 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
20265 tifflibs="-lz -lm"
20266 # At least one tiff package requires the jpeg library.
20267 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20269 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20270 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20272 else
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-ltiff $tifflibs $LIBS"
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char TIFFGetVersion ();
20286 main ()
20288 return TIFFGetVersion ();
20290 return 0;
20292 _ACEOF
20293 if ac_fn_c_try_link "$LINENO"; then :
20294 ac_cv_lib_tiff_TIFFGetVersion=yes
20295 else
20296 ac_cv_lib_tiff_TIFFGetVersion=no
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20303 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20304 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
20305 HAVE_TIFF=yes
20313 if test "${HAVE_TIFF}" = "yes"; then
20315 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20317 LIBTIFF=-ltiff
20322 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20323 HAVE_GIF=no
20324 LIBGIF=
20325 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20326 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20327 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
20328 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20329 # Earlier versions can crash Emacs.
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20331 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20332 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 ac_check_lib_save_LIBS=$LIBS
20336 LIBS="-lgif $LIBS"
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20340 /* Override any GCC internal prototype to avoid an error.
20341 Use char because int might match the return type of a GCC
20342 builtin and then its argument prototype would still apply. */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 char EGifPutExtensionLast ();
20348 main ()
20350 return EGifPutExtensionLast ();
20352 return 0;
20354 _ACEOF
20355 if ac_fn_c_try_link "$LINENO"; then :
20356 ac_cv_lib_gif_EGifPutExtensionLast=yes
20357 else
20358 ac_cv_lib_gif_EGifPutExtensionLast=no
20360 rm -f core conftest.err conftest.$ac_objext \
20361 conftest$ac_exeext conftest.$ac_ext
20362 LIBS=$ac_check_lib_save_LIBS
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20365 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20366 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
20367 HAVE_GIF=yes
20368 else
20369 HAVE_GIF=maybe
20376 if test "$HAVE_GIF" = yes; then
20377 LIBGIF=-lgif
20378 elif test "$HAVE_GIF" = maybe; then
20379 # If gif_lib.h but no libgif, try libungif.
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20381 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20382 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20383 $as_echo_n "(cached) " >&6
20384 else
20385 ac_check_lib_save_LIBS=$LIBS
20386 LIBS="-lungif $LIBS"
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20390 /* Override any GCC internal prototype to avoid an error.
20391 Use char because int might match the return type of a GCC
20392 builtin and then its argument prototype would still apply. */
20393 #ifdef __cplusplus
20394 extern "C"
20395 #endif
20396 char EGifPutExtensionLast ();
20398 main ()
20400 return EGifPutExtensionLast ();
20402 return 0;
20404 _ACEOF
20405 if ac_fn_c_try_link "$LINENO"; then :
20406 ac_cv_lib_ungif_EGifPutExtensionLast=yes
20407 else
20408 ac_cv_lib_ungif_EGifPutExtensionLast=no
20410 rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20415 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20416 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
20417 HAVE_GIF=yes
20418 else
20419 HAVE_GIF=no
20422 test "$HAVE_GIF" = yes && LIBGIF=-lungif
20425 if test "${HAVE_GIF}" = "yes"; then
20427 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20433 if test "${HAVE_X11}" = "yes"; then
20434 MISSING=""
20435 WITH_NO=""
20436 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20437 MISSING="libXpm" && WITH_NO="--with-xpm=no"
20438 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20439 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
20440 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20441 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
20442 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20443 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
20444 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20445 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
20447 if test "X${MISSING}" != X; then
20448 as_fn_error "The following required libraries were not found:
20449 $MISSING
20450 Maybe some development libraries/packages are missing?
20451 If you don't want to link with them give
20452 $WITH_NO
20453 as options to configure" "$LINENO" 5
20457 ### Use -lgpm if available, unless `--with-gpm=no'.
20458 HAVE_GPM=no
20459 LIBGPM=
20460 if test "${with_gpm}" != "no"; then
20461 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20462 if test "x$ac_cv_header_gpm_h" = x""yes; then :
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20464 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20465 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20466 $as_echo_n "(cached) " >&6
20467 else
20468 ac_check_lib_save_LIBS=$LIBS
20469 LIBS="-lgpm $LIBS"
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20476 #ifdef __cplusplus
20477 extern "C"
20478 #endif
20479 char Gpm_Open ();
20481 main ()
20483 return Gpm_Open ();
20485 return 0;
20487 _ACEOF
20488 if ac_fn_c_try_link "$LINENO"; then :
20489 ac_cv_lib_gpm_Gpm_Open=yes
20490 else
20491 ac_cv_lib_gpm_Gpm_Open=no
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20498 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20499 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
20500 HAVE_GPM=yes
20507 if test "${HAVE_GPM}" = "yes"; then
20509 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20511 LIBGPM=-lgpm
20520 GNUSTEP_CFLAGS=
20521 ### Use NeXTstep API to implement GUI.
20522 if test "${HAVE_NS}" = "yes"; then
20524 $as_echo "#define HAVE_NS 1" >>confdefs.h
20526 if test "${NS_IMPL_COCOA}" = "yes"; then
20528 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20531 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20533 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20535 # See also .m.o rule in Makefile.in */
20536 # FIXME: are all these flags really needed? Document here why. */
20537 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20538 ## Extra CFLAGS applied to src/*.m files.
20539 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"
20541 # We also have mouse menus.
20542 HAVE_MENUS=yes
20543 OTHER_FILES=ns-app
20547 ### Use session management (-lSM -lICE) if available
20548 HAVE_X_SM=no
20549 LIBXSM=
20550 if test "${HAVE_X11}" = "yes"; then
20551 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20552 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20554 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20555 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20556 $as_echo_n "(cached) " >&6
20557 else
20558 ac_check_lib_save_LIBS=$LIBS
20559 LIBS="-lSM -lICE $LIBS"
20560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561 /* end confdefs.h. */
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 char SmcOpenConnection ();
20571 main ()
20573 return SmcOpenConnection ();
20575 return 0;
20577 _ACEOF
20578 if ac_fn_c_try_link "$LINENO"; then :
20579 ac_cv_lib_SM_SmcOpenConnection=yes
20580 else
20581 ac_cv_lib_SM_SmcOpenConnection=no
20583 rm -f core conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20585 LIBS=$ac_check_lib_save_LIBS
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20588 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20589 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
20590 HAVE_X_SM=yes
20597 if test "${HAVE_X_SM}" = "yes"; then
20599 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20601 LIBXSM="-lSM -lICE"
20602 case "$LIBS" in
20603 *-lSM*) ;;
20604 *) LIBS="$LIBXSM $LIBS" ;;
20605 esac
20610 ### Use libxml (-lxml2) if available
20611 HAVE_LIBXML2=no
20612 if test "${with_xml2}" != "no"; then
20613 ### I'm not sure what the version number should be, so I just guessed.
20615 succeeded=no
20617 if test "$PKG_CONFIG" = "no" ; then
20618 HAVE_LIBXML2=no
20619 else
20620 PKG_CONFIG_MIN_VERSION=0.9.0
20621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20623 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20625 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20626 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20627 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20628 edit_cflags="
20629 s,///*,/,g
20630 s/^/ /
20631 s/ -I/ $isystem/g
20632 s/^ //
20634 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20635 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20637 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20638 succeeded=yes
20639 else
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641 $as_echo "no" >&6; }
20642 LIBXML2_CFLAGS=""
20643 LIBXML2_LIBS=""
20644 ## If we have a custom action on failure, don't print errors, but
20645 ## do set a variable so people can do so.
20646 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20652 else
20653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20658 if test $succeeded = yes; then
20659 HAVE_LIBXML2=yes
20660 else
20661 HAVE_LIBXML2=no
20664 if test "${HAVE_LIBXML2}" = "yes"; then
20665 LIBS="$LIBXML2_LIBS $LIBS"
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20667 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20668 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 ac_check_lib_save_LIBS=$LIBS
20672 LIBS="-lxml2 $LIBS"
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20676 /* Override any GCC internal prototype to avoid an error.
20677 Use char because int might match the return type of a GCC
20678 builtin and then its argument prototype would still apply. */
20679 #ifdef __cplusplus
20680 extern "C"
20681 #endif
20682 char htmlReadMemory ();
20684 main ()
20686 return htmlReadMemory ();
20688 return 0;
20690 _ACEOF
20691 if ac_fn_c_try_link "$LINENO"; then :
20692 ac_cv_lib_xml2_htmlReadMemory=yes
20693 else
20694 ac_cv_lib_xml2_htmlReadMemory=no
20696 rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext conftest.$ac_ext
20698 LIBS=$ac_check_lib_save_LIBS
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20701 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20702 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
20703 HAVE_LIBXML2=yes
20704 else
20705 HAVE_LIBXML2=no
20708 if test "${HAVE_LIBXML2}" = "yes"; then
20710 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20712 else
20713 LIBXML2_LIBS=""
20714 LIBXML2_CFLAGS=""
20721 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20723 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20724 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20725 $as_echo_n "(cached) " >&6
20726 else
20727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h. */
20729 #include <netdb.h>
20731 main ()
20733 return h_errno;
20735 return 0;
20737 _ACEOF
20738 if ac_fn_c_try_link "$LINENO"; then :
20739 emacs_cv_netdb_declares_h_errno=yes
20740 else
20741 emacs_cv_netdb_declares_h_errno=no
20743 rm -f core conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20747 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20748 if test $emacs_cv_netdb_declares_h_errno = yes; then
20750 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20754 # fmod, logb, and frexp are found in -lm on most systems.
20755 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20757 $as_echo_n "checking for sqrt in -lm... " >&6; }
20758 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20759 $as_echo_n "(cached) " >&6
20760 else
20761 ac_check_lib_save_LIBS=$LIBS
20762 LIBS="-lm $LIBS"
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20766 /* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20769 #ifdef __cplusplus
20770 extern "C"
20771 #endif
20772 char sqrt ();
20774 main ()
20776 return sqrt ();
20778 return 0;
20780 _ACEOF
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ac_cv_lib_m_sqrt=yes
20783 else
20784 ac_cv_lib_m_sqrt=no
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20791 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20792 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
20793 cat >>confdefs.h <<_ACEOF
20794 #define HAVE_LIBM 1
20795 _ACEOF
20797 LIBS="-lm $LIBS"
20802 # Check for mail-locking functions in a "mail" library. Probably this should
20803 # have the same check as for liblockfile below.
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20805 $as_echo_n "checking for maillock in -lmail... " >&6; }
20806 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20807 $as_echo_n "(cached) " >&6
20808 else
20809 ac_check_lib_save_LIBS=$LIBS
20810 LIBS="-lmail $LIBS"
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20814 /* Override any GCC internal prototype to avoid an error.
20815 Use char because int might match the return type of a GCC
20816 builtin and then its argument prototype would still apply. */
20817 #ifdef __cplusplus
20818 extern "C"
20819 #endif
20820 char maillock ();
20822 main ()
20824 return maillock ();
20826 return 0;
20828 _ACEOF
20829 if ac_fn_c_try_link "$LINENO"; then :
20830 ac_cv_lib_mail_maillock=yes
20831 else
20832 ac_cv_lib_mail_maillock=no
20834 rm -f core conftest.err conftest.$ac_objext \
20835 conftest$ac_exeext conftest.$ac_ext
20836 LIBS=$ac_check_lib_save_LIBS
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20839 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20840 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
20841 have_mail=yes
20842 else
20843 have_mail=no
20846 if test $have_mail = yes; then
20847 LIBS_MAIL=-lmail
20848 LIBS="$LIBS_MAIL $LIBS"
20850 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20852 else
20853 LIBS_MAIL=
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20856 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20857 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20858 $as_echo_n "(cached) " >&6
20859 else
20860 ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-llockfile $LIBS"
20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20865 /* Override any GCC internal prototype to avoid an error.
20866 Use char because int might match the return type of a GCC
20867 builtin and then its argument prototype would still apply. */
20868 #ifdef __cplusplus
20869 extern "C"
20870 #endif
20871 char maillock ();
20873 main ()
20875 return maillock ();
20877 return 0;
20879 _ACEOF
20880 if ac_fn_c_try_link "$LINENO"; then :
20881 ac_cv_lib_lockfile_maillock=yes
20882 else
20883 ac_cv_lib_lockfile_maillock=no
20885 rm -f core conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20887 LIBS=$ac_check_lib_save_LIBS
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20890 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20891 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
20892 have_lockfile=yes
20893 else
20894 have_lockfile=no
20897 if test $have_lockfile = yes; then
20898 LIBS_MAIL=-llockfile
20899 LIBS="$LIBS_MAIL $LIBS"
20901 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20903 else
20904 # If we have the shared liblockfile, assume we must use it for mail
20905 # locking (e.g. Debian). If we couldn't link against liblockfile
20906 # (no liblockfile.a installed), ensure that we don't need to.
20907 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20908 set dummy liblockfile.so; ac_word=$2
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20910 $as_echo_n "checking for $ac_word... " >&6; }
20911 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20912 $as_echo_n "(cached) " >&6
20913 else
20914 if test -n "$liblockfile"; then
20915 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
20916 else
20917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20918 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20919 for as_dir in $as_dummy
20921 IFS=$as_save_IFS
20922 test -z "$as_dir" && as_dir=.
20923 for ac_exec_ext in '' $ac_executable_extensions; do
20924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20925 ac_cv_prog_liblockfile="yes"
20926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20927 break 2
20929 done
20930 done
20931 IFS=$as_save_IFS
20933 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
20936 liblockfile=$ac_cv_prog_liblockfile
20937 if test -n "$liblockfile"; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20939 $as_echo "$liblockfile" >&6; }
20940 else
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20942 $as_echo "no" >&6; }
20946 if test $ac_cv_prog_liblockfile = yes; then
20947 as_fn_error "Shared liblockfile found but can't link against it.
20948 This probably means that movemail could lose mail.
20949 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20957 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20958 ## interlock access to the mail spool. The alternative is a lock file named
20959 ## /usr/spool/mail/$USER.lock.
20960 mail_lock=no
20961 case "$opsys" in
20962 aix4-2) mail_lock="lockf" ;;
20964 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
20966 ## On GNU/Linux systems, both methods are used by various mail programs.
20967 ## I assume most people are using newer mailers that have heard of flock.
20968 ## Change this if you need to.
20969 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20970 ## configure gets the right answers, and that means *NOT* using flock.
20971 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20972 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20973 ## Debian maintainer hasn't provided a clean fix for Emacs.
20974 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20975 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20976 ## correct logic. -- fx
20977 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20978 ## liblockfile is a Free Software replacement for libmail, used on
20979 ## Debian systems and elsewhere. -rfr.
20980 gnu-*)
20981 mail_lock="flock"
20982 if test $have_mail = yes || test $have_lockfile = yes; then
20983 test $ac_cv_header_maillock_h = yes && mail_lock=no
20986 esac
20988 BLESSMAIL_TARGET=
20989 case "$mail_lock" in
20990 flock)
20991 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
20994 lockf)
20995 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
20998 *) BLESSMAIL_TARGET="need-blessmail" ;;
20999 esac
21003 for ac_func in gethostname \
21004 rename closedir mkdir rmdir getrusage get_current_dir_name \
21005 random lrand48 logb frexp fmod rint cbrt setsid \
21006 strerror fpathconf select euidaccess getpagesize setlocale \
21007 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
21008 __fpending strsignal setitimer \
21009 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
21010 gai_strerror mkstemp getline getdelim fsync sync \
21011 difftime posix_memalign \
21012 getpwent endpwent getgrent endgrent \
21013 touchlock \
21014 strcasecmp strncasecmp \
21015 cfmakeraw cfsetspeed copysign __executable_start
21016 do :
21017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21019 eval as_val=\$$as_ac_var
21020 if test "x$as_val" = x""yes; then :
21021 cat >>confdefs.h <<_ACEOF
21022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21023 _ACEOF
21026 done
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
21030 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
21031 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21033 else
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21038 main ()
21040 __builtin_unwind_init ();
21042 return 0;
21044 _ACEOF
21045 if ac_fn_c_try_link "$LINENO"; then :
21046 emacs_cv_func___builtin_unwind_init=yes
21047 else
21048 emacs_cv_func___builtin_unwind_init=no
21050 rm -f core conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21054 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21055 if test $emacs_cv_func___builtin_unwind_init = yes; then
21057 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21066 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21067 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21068 $as_echo_n "(cached) " >&6
21069 else
21070 while :; do
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21073 #include <sys/types.h> /* for off_t */
21074 #include <stdio.h>
21076 main ()
21078 int (*fp) (FILE *, off_t, int) = fseeko;
21079 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21081 return 0;
21083 _ACEOF
21084 if ac_fn_c_try_link "$LINENO"; then :
21085 ac_cv_sys_largefile_source=no; break
21087 rm -f core conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h. */
21091 #define _LARGEFILE_SOURCE 1
21092 #include <sys/types.h> /* for off_t */
21093 #include <stdio.h>
21095 main ()
21097 int (*fp) (FILE *, off_t, int) = fseeko;
21098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21100 return 0;
21102 _ACEOF
21103 if ac_fn_c_try_link "$LINENO"; then :
21104 ac_cv_sys_largefile_source=1; break
21106 rm -f core conftest.err conftest.$ac_objext \
21107 conftest$ac_exeext conftest.$ac_ext
21108 ac_cv_sys_largefile_source=unknown
21109 break
21110 done
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21113 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21114 case $ac_cv_sys_largefile_source in #(
21115 no | unknown) ;;
21117 cat >>confdefs.h <<_ACEOF
21118 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21119 _ACEOF
21121 esac
21122 rm -rf conftest*
21124 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21125 # in glibc 2.1.3, but that breaks too many other things.
21126 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21127 if test $ac_cv_sys_largefile_source != unknown; then
21129 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21135 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21136 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21137 $as_echo_n "(cached) " >&6
21138 else
21139 # Use it with a single arg.
21140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21142 $ac_includes_default
21144 main ()
21146 getpgrp (0);
21148 return 0;
21150 _ACEOF
21151 if ac_fn_c_try_compile "$LINENO"; then :
21152 ac_cv_func_getpgrp_void=no
21153 else
21154 ac_cv_func_getpgrp_void=yes
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21160 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21161 if test $ac_cv_func_getpgrp_void = yes; then
21163 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21168 # UNIX98 PTYs.
21169 for ac_func in grantpt
21170 do :
21171 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21172 if test "x$ac_cv_func_grantpt" = x""yes; then :
21173 cat >>confdefs.h <<_ACEOF
21174 #define HAVE_GRANTPT 1
21175 _ACEOF
21178 done
21181 # PTY-related GNU extensions.
21182 for ac_func in getpt
21183 do :
21184 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21185 if test "x$ac_cv_func_getpt" = x""yes; then :
21186 cat >>confdefs.h <<_ACEOF
21187 #define HAVE_GETPT 1
21188 _ACEOF
21191 done
21194 # Check this now, so that we will NOT find the above functions in ncurses.
21195 # That is because we have not set up to link ncurses in lib-src.
21196 # It's better to believe a function is not available
21197 # than to expect to find it in ncurses.
21198 # Also we need tputs and friends to be able to build at all.
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21200 $as_echo_n "checking for library containing tputs... " >&6; }
21201 # Run a test program that contains a call to tputs, a call that is
21202 # never executed. This tests whether a pre-'main' dynamic linker
21203 # works with the library. It's too much trouble to actually call
21204 # tputs in the test program, due to portability hassles. When
21205 # cross-compiling, assume the test program will run if it links.
21207 # Maybe curses should be tried earlier?
21208 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21209 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
21210 OLIBS=$LIBS
21211 if test -z "$tputs_library"; then
21212 LIBS_TERMCAP=
21213 msg='none required'
21214 else
21215 LIBS_TERMCAP=-l$tputs_library
21216 msg=$LIBS_TERMCAP
21217 LIBS="$LIBS_TERMCAP $LIBS"
21219 if test "$cross_compiling" = yes; then :
21220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h. */
21223 extern void tputs (const char *, int, int (*)(int));
21224 int main (int argc, char **argv)
21226 if (argc == 10000)
21227 tputs (argv[0], 0, 0);
21228 return 0;
21231 _ACEOF
21232 if ac_fn_c_try_link "$LINENO"; then :
21234 else
21235 msg=no
21237 rm -f core conftest.err conftest.$ac_objext \
21238 conftest$ac_exeext conftest.$ac_ext
21239 else
21240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21243 extern void tputs (const char *, int, int (*)(int));
21244 int main (int argc, char **argv)
21246 if (argc == 10000)
21247 tputs (argv[0], 0, 0);
21248 return 0;
21251 _ACEOF
21252 if ac_fn_c_try_run "$LINENO"; then :
21254 else
21255 msg=no
21257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21258 conftest.$ac_objext conftest.beam conftest.$ac_ext
21261 LIBS=$OLIBS
21262 if test "X$msg" != Xno; then
21263 break
21265 done
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21267 $as_echo "$msg" >&6; }
21268 if test "X$msg" = Xno; then
21269 as_fn_error "The required function \`tputs' was not found in any library.
21270 The following libraries were tried (in order):
21271 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21272 Please try installing whichever of these libraries is most appropriate
21273 for your system, together with its header files.
21274 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21277 ## Use termcap instead of terminfo?
21278 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21279 TERMINFO=yes
21280 ## FIXME? In the cases below where we unconditionally set
21281 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21282 ## if that was found above to have tputs.
21283 ## Should we use the gnu* logic everywhere?
21284 case "$opsys" in
21285 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21286 ## The ncurses library has been moved out of the System framework in
21287 ## Mac OS X 10.2. So if configure detects it, set the command-line
21288 ## option to use it.
21289 darwin) LIBS_TERMCAP="-lncurses" ;;
21291 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
21293 freebsd)
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21295 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21296 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21301 #include <osreldate.h>
21303 main ()
21305 #if __FreeBSD_version < 400000
21306 fail;
21307 #endif
21310 return 0;
21312 _ACEOF
21313 if ac_fn_c_try_link "$LINENO"; then :
21314 emacs_cv_freebsd_terminfo=yes
21315 else
21316 emacs_cv_freebsd_terminfo=no
21318 rm -f core conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21324 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21326 if test $emacs_cv_freebsd_terminfo = yes; then
21327 LIBS_TERMCAP="-lncurses"
21328 else
21329 TERMINFO=no
21330 LIBS_TERMCAP="-ltermcap"
21334 netbsd)
21335 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21336 TERMINFO=no
21337 LIBS_TERMCAP="-ltermcap"
21341 openbsd) LIBS_TERMCAP="-lncurses" ;;
21343 ## hpux: Make sure we get select from libc rather than from libcurses
21344 ## because libcurses on HPUX 10.10 has a broken version of select.
21345 ## We used to use -lc -lcurses, but this may be cleaner.
21346 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21347 # set that way, now it uses the default). Isn't this a contradiction?
21348 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21350 esac
21352 TERMCAP_OBJ=tparam.o
21353 if test $TERMINFO = yes; then
21355 $as_echo "#define TERMINFO 1" >>confdefs.h
21357 TERMCAP_OBJ=terminfo.o
21363 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21364 resolv=no
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h. */
21367 #include <netinet/in.h>
21368 #include <arpa/nameser.h>
21369 #include <resolv.h>
21371 main ()
21373 return res_init();
21375 return 0;
21377 _ACEOF
21378 if ac_fn_c_try_link "$LINENO"; then :
21379 have_res_init=yes
21380 else
21381 have_res_init=no
21383 rm -f core conftest.err conftest.$ac_objext \
21384 conftest$ac_exeext conftest.$ac_ext
21385 if test "$have_res_init" = no; then
21386 OLIBS="$LIBS"
21387 LIBS="$LIBS -lresolv"
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21389 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21391 /* end confdefs.h. */
21392 #include <netinet/in.h>
21393 #include <arpa/nameser.h>
21394 #include <resolv.h>
21396 main ()
21398 return res_init();
21400 return 0;
21402 _ACEOF
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 have_res_init=yes
21405 else
21406 have_res_init=no
21408 rm -f core conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21411 $as_echo "$have_res_init" >&6; }
21412 if test "$have_res_init" = yes ; then
21413 resolv=yes
21415 LIBS="$OLIBS"
21418 if test "$have_res_init" = yes; then
21420 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21424 # Do we need the Hesiod library to provide the support routines?
21425 LIBHESIOD=
21426 if test "$with_hesiod" != no ; then
21427 # Don't set $LIBS here -- see comments above. FIXME which comments?
21428 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21429 if test "x$ac_cv_func_res_send" = x""yes; then :
21431 else
21432 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21433 if test "x$ac_cv_func___res_send" = x""yes; then :
21435 else
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21437 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21438 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 ac_check_lib_save_LIBS=$LIBS
21442 LIBS="-lresolv $LIBS"
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21446 /* Override any GCC internal prototype to avoid an error.
21447 Use char because int might match the return type of a GCC
21448 builtin and then its argument prototype would still apply. */
21449 #ifdef __cplusplus
21450 extern "C"
21451 #endif
21452 char res_send ();
21454 main ()
21456 return res_send ();
21458 return 0;
21460 _ACEOF
21461 if ac_fn_c_try_link "$LINENO"; then :
21462 ac_cv_lib_resolv_res_send=yes
21463 else
21464 ac_cv_lib_resolv_res_send=no
21466 rm -f core conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21468 LIBS=$ac_check_lib_save_LIBS
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21471 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21472 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21473 resolv=yes
21474 else
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21476 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21477 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21478 $as_echo_n "(cached) " >&6
21479 else
21480 ac_check_lib_save_LIBS=$LIBS
21481 LIBS="-lresolv $LIBS"
21482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21483 /* end confdefs.h. */
21485 /* Override any GCC internal prototype to avoid an error.
21486 Use char because int might match the return type of a GCC
21487 builtin and then its argument prototype would still apply. */
21488 #ifdef __cplusplus
21489 extern "C"
21490 #endif
21491 char __res_send ();
21493 main ()
21495 return __res_send ();
21497 return 0;
21499 _ACEOF
21500 if ac_fn_c_try_link "$LINENO"; then :
21501 ac_cv_lib_resolv___res_send=yes
21502 else
21503 ac_cv_lib_resolv___res_send=no
21505 rm -f core conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21507 LIBS=$ac_check_lib_save_LIBS
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21510 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21511 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21512 resolv=yes
21521 if test "$resolv" = yes ; then
21522 RESOLVLIB=-lresolv
21523 else
21524 RESOLVLIB=
21526 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21527 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21529 else
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21531 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21532 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21533 $as_echo_n "(cached) " >&6
21534 else
21535 ac_check_lib_save_LIBS=$LIBS
21536 LIBS="-lhesiod $RESOLVLIB $LIBS"
21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h. */
21540 /* Override any GCC internal prototype to avoid an error.
21541 Use char because int might match the return type of a GCC
21542 builtin and then its argument prototype would still apply. */
21543 #ifdef __cplusplus
21544 extern "C"
21545 #endif
21546 char hes_getmailhost ();
21548 main ()
21550 return hes_getmailhost ();
21552 return 0;
21554 _ACEOF
21555 if ac_fn_c_try_link "$LINENO"; then :
21556 ac_cv_lib_hesiod_hes_getmailhost=yes
21557 else
21558 ac_cv_lib_hesiod_hes_getmailhost=no
21560 rm -f core conftest.err conftest.$ac_objext \
21561 conftest$ac_exeext conftest.$ac_ext
21562 LIBS=$ac_check_lib_save_LIBS
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21565 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21566 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21567 hesiod=yes
21568 else
21575 if test x"$hesiod" = xyes; then
21577 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21579 LIBHESIOD=-lhesiod
21584 # Do we need libresolv (due to res_init or Hesiod)?
21585 if test "$resolv" = yes ; then
21587 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21589 LIBRESOLV=-lresolv
21590 else
21591 LIBRESOLV=
21595 # These tell us which Kerberos-related libraries to use.
21596 COM_ERRLIB=
21597 CRYPTOLIB=
21598 KRB5LIB=
21599 DESLIB=
21600 KRB4LIB=
21602 if test "${with_kerberos}" != no; then
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21604 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21605 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21606 $as_echo_n "(cached) " >&6
21607 else
21608 ac_check_lib_save_LIBS=$LIBS
21609 LIBS="-lcom_err $LIBS"
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21613 /* Override any GCC internal prototype to avoid an error.
21614 Use char because int might match the return type of a GCC
21615 builtin and then its argument prototype would still apply. */
21616 #ifdef __cplusplus
21617 extern "C"
21618 #endif
21619 char com_err ();
21621 main ()
21623 return com_err ();
21625 return 0;
21627 _ACEOF
21628 if ac_fn_c_try_link "$LINENO"; then :
21629 ac_cv_lib_com_err_com_err=yes
21630 else
21631 ac_cv_lib_com_err_com_err=no
21633 rm -f core conftest.err conftest.$ac_objext \
21634 conftest$ac_exeext conftest.$ac_ext
21635 LIBS=$ac_check_lib_save_LIBS
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21638 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21639 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21640 have_com_err=yes
21641 else
21642 have_com_err=no
21645 if test $have_com_err = yes; then
21646 COM_ERRLIB=-lcom_err
21647 LIBS="$COM_ERRLIB $LIBS"
21649 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21653 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21654 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21655 $as_echo_n "(cached) " >&6
21656 else
21657 ac_check_lib_save_LIBS=$LIBS
21658 LIBS="-lcrypto $LIBS"
21659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660 /* end confdefs.h. */
21662 /* Override any GCC internal prototype to avoid an error.
21663 Use char because int might match the return type of a GCC
21664 builtin and then its argument prototype would still apply. */
21665 #ifdef __cplusplus
21666 extern "C"
21667 #endif
21668 char mit_des_cbc_encrypt ();
21670 main ()
21672 return mit_des_cbc_encrypt ();
21674 return 0;
21676 _ACEOF
21677 if ac_fn_c_try_link "$LINENO"; then :
21678 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21679 else
21680 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21682 rm -f core conftest.err conftest.$ac_objext \
21683 conftest$ac_exeext conftest.$ac_ext
21684 LIBS=$ac_check_lib_save_LIBS
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21687 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21688 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21689 have_crypto=yes
21690 else
21691 have_crypto=no
21694 if test $have_crypto = yes; then
21695 CRYPTOLIB=-lcrypto
21696 LIBS="$CRYPTOLIB $LIBS"
21698 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21702 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21703 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 ac_check_lib_save_LIBS=$LIBS
21707 LIBS="-lk5crypto $LIBS"
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21714 #ifdef __cplusplus
21715 extern "C"
21716 #endif
21717 char mit_des_cbc_encrypt ();
21719 main ()
21721 return mit_des_cbc_encrypt ();
21723 return 0;
21725 _ACEOF
21726 if ac_fn_c_try_link "$LINENO"; then :
21727 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21728 else
21729 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21731 rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext conftest.$ac_ext
21733 LIBS=$ac_check_lib_save_LIBS
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21736 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21737 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21738 have_k5crypto=yes
21739 else
21740 have_k5crypto=no
21743 if test $have_k5crypto = yes; then
21744 CRYPTOLIB=-lk5crypto
21745 LIBS="$CRYPTOLIB $LIBS"
21747 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21751 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21752 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21753 $as_echo_n "(cached) " >&6
21754 else
21755 ac_check_lib_save_LIBS=$LIBS
21756 LIBS="-lkrb5 $LIBS"
21757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h. */
21760 /* Override any GCC internal prototype to avoid an error.
21761 Use char because int might match the return type of a GCC
21762 builtin and then its argument prototype would still apply. */
21763 #ifdef __cplusplus
21764 extern "C"
21765 #endif
21766 char krb5_init_context ();
21768 main ()
21770 return krb5_init_context ();
21772 return 0;
21774 _ACEOF
21775 if ac_fn_c_try_link "$LINENO"; then :
21776 ac_cv_lib_krb5_krb5_init_context=yes
21777 else
21778 ac_cv_lib_krb5_krb5_init_context=no
21780 rm -f core conftest.err conftest.$ac_objext \
21781 conftest$ac_exeext conftest.$ac_ext
21782 LIBS=$ac_check_lib_save_LIBS
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21785 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21786 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21787 have_krb5=yes
21788 else
21789 have_krb5=no
21792 if test $have_krb5=yes; then
21793 KRB5LIB=-lkrb5
21794 LIBS="$KRB5LIB $LIBS"
21796 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21799 if test "${with_kerberos5}" = no; then
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21801 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21802 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21803 $as_echo_n "(cached) " >&6
21804 else
21805 ac_check_lib_save_LIBS=$LIBS
21806 LIBS="-ldes425 $LIBS"
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21810 /* Override any GCC internal prototype to avoid an error.
21811 Use char because int might match the return type of a GCC
21812 builtin and then its argument prototype would still apply. */
21813 #ifdef __cplusplus
21814 extern "C"
21815 #endif
21816 char des_cbc_encrypt ();
21818 main ()
21820 return des_cbc_encrypt ();
21822 return 0;
21824 _ACEOF
21825 if ac_fn_c_try_link "$LINENO"; then :
21826 ac_cv_lib_des425_des_cbc_encrypt=yes
21827 else
21828 ac_cv_lib_des425_des_cbc_encrypt=no
21830 rm -f core conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
21832 LIBS=$ac_check_lib_save_LIBS
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21835 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21836 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21837 have_des425=yes
21838 else
21839 have_des425=no
21842 if test $have_des425 = yes; then
21843 DESLIB=-ldes425
21844 LIBS="$DESLIB $LIBS"
21846 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21848 else
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21850 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21851 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21853 else
21854 ac_check_lib_save_LIBS=$LIBS
21855 LIBS="-ldes $LIBS"
21856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21857 /* end confdefs.h. */
21859 /* Override any GCC internal prototype to avoid an error.
21860 Use char because int might match the return type of a GCC
21861 builtin and then its argument prototype would still apply. */
21862 #ifdef __cplusplus
21863 extern "C"
21864 #endif
21865 char des_cbc_encrypt ();
21867 main ()
21869 return des_cbc_encrypt ();
21871 return 0;
21873 _ACEOF
21874 if ac_fn_c_try_link "$LINENO"; then :
21875 ac_cv_lib_des_des_cbc_encrypt=yes
21876 else
21877 ac_cv_lib_des_des_cbc_encrypt=no
21879 rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881 LIBS=$ac_check_lib_save_LIBS
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21884 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21885 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21886 have_des=yes
21887 else
21888 have_des=no
21891 if test $have_des = yes; then
21892 DESLIB=-ldes
21893 LIBS="$DESLIB $LIBS"
21895 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21900 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21901 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 ac_check_lib_save_LIBS=$LIBS
21905 LIBS="-lkrb4 $LIBS"
21906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21907 /* end confdefs.h. */
21909 /* Override any GCC internal prototype to avoid an error.
21910 Use char because int might match the return type of a GCC
21911 builtin and then its argument prototype would still apply. */
21912 #ifdef __cplusplus
21913 extern "C"
21914 #endif
21915 char krb_get_cred ();
21917 main ()
21919 return krb_get_cred ();
21921 return 0;
21923 _ACEOF
21924 if ac_fn_c_try_link "$LINENO"; then :
21925 ac_cv_lib_krb4_krb_get_cred=yes
21926 else
21927 ac_cv_lib_krb4_krb_get_cred=no
21929 rm -f core conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
21931 LIBS=$ac_check_lib_save_LIBS
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21934 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21935 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21936 have_krb4=yes
21937 else
21938 have_krb4=no
21941 if test $have_krb4 = yes; then
21942 KRB4LIB=-lkrb4
21943 LIBS="$KRB4LIB $LIBS"
21945 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21947 else
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21949 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21950 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21951 $as_echo_n "(cached) " >&6
21952 else
21953 ac_check_lib_save_LIBS=$LIBS
21954 LIBS="-lkrb $LIBS"
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21958 /* Override any GCC internal prototype to avoid an error.
21959 Use char because int might match the return type of a GCC
21960 builtin and then its argument prototype would still apply. */
21961 #ifdef __cplusplus
21962 extern "C"
21963 #endif
21964 char krb_get_cred ();
21966 main ()
21968 return krb_get_cred ();
21970 return 0;
21972 _ACEOF
21973 if ac_fn_c_try_link "$LINENO"; then :
21974 ac_cv_lib_krb_krb_get_cred=yes
21975 else
21976 ac_cv_lib_krb_krb_get_cred=no
21978 rm -f core conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21980 LIBS=$ac_check_lib_save_LIBS
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21983 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21984 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
21985 have_krb=yes
21986 else
21987 have_krb=no
21990 if test $have_krb = yes; then
21991 KRB4LIB=-lkrb
21992 LIBS="$KRB4LIB $LIBS"
21994 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22000 if test "${with_kerberos5}" != no; then
22001 for ac_header in krb5.h
22002 do :
22003 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22004 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22005 cat >>confdefs.h <<_ACEOF
22006 #define HAVE_KRB5_H 1
22007 _ACEOF
22008 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22010 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22012 cat >>confdefs.h <<_ACEOF
22013 #define HAVE_KRB5_ERROR_TEXT 1
22014 _ACEOF
22018 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22020 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_KRB5_ERROR_E_TEXT 1
22024 _ACEOF
22031 done
22033 else
22034 for ac_header in des.h
22035 do :
22036 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22037 if test "x$ac_cv_header_des_h" = x""yes; then :
22038 cat >>confdefs.h <<_ACEOF
22039 #define HAVE_DES_H 1
22040 _ACEOF
22042 else
22043 for ac_header in kerberosIV/des.h
22044 do :
22045 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22046 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22047 cat >>confdefs.h <<_ACEOF
22048 #define HAVE_KERBEROSIV_DES_H 1
22049 _ACEOF
22051 else
22052 for ac_header in kerberos/des.h
22053 do :
22054 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22055 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22056 cat >>confdefs.h <<_ACEOF
22057 #define HAVE_KERBEROS_DES_H 1
22058 _ACEOF
22062 done
22066 done
22070 done
22072 for ac_header in krb.h
22073 do :
22074 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22075 if test "x$ac_cv_header_krb_h" = x""yes; then :
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE_KRB_H 1
22078 _ACEOF
22080 else
22081 for ac_header in kerberosIV/krb.h
22082 do :
22083 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22084 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22085 cat >>confdefs.h <<_ACEOF
22086 #define HAVE_KERBEROSIV_KRB_H 1
22087 _ACEOF
22089 else
22090 for ac_header in kerberos/krb.h
22091 do :
22092 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22093 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22094 cat >>confdefs.h <<_ACEOF
22095 #define HAVE_KERBEROS_KRB_H 1
22096 _ACEOF
22100 done
22104 done
22108 done
22111 for ac_header in com_err.h
22112 do :
22113 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22114 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_COM_ERR_H 1
22117 _ACEOF
22121 done
22131 for ac_func in tzset
22132 do :
22133 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
22134 if test "x$ac_cv_func_tzset" = x""yes; then :
22135 cat >>confdefs.h <<_ACEOF
22136 #define HAVE_TZSET 1
22137 _ACEOF
22140 done
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22143 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22144 if test "${emacs_cv_localtime_cache+set}" = set; then :
22145 $as_echo_n "(cached) " >&6
22146 else
22147 if test x$ac_cv_func_tzset = xyes; then
22148 if test "$cross_compiling" = yes; then :
22149 # If we have tzset, assume the worst when cross-compiling.
22150 emacs_cv_localtime_cache=yes
22151 else
22152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h. */
22154 #include <time.h>
22155 char TZ_GMT0[] = "TZ=GMT0";
22156 char TZ_PST8[] = "TZ=PST8";
22157 main()
22159 time_t now = time ((time_t *) 0);
22160 int hour_GMT0, hour_unset;
22161 if (putenv (TZ_GMT0) != 0)
22162 exit (1);
22163 hour_GMT0 = localtime (&now)->tm_hour;
22164 unsetenv("TZ");
22165 hour_unset = localtime (&now)->tm_hour;
22166 if (putenv (TZ_PST8) != 0)
22167 exit (1);
22168 if (localtime (&now)->tm_hour == hour_GMT0)
22169 exit (1);
22170 unsetenv("TZ");
22171 if (localtime (&now)->tm_hour != hour_unset)
22172 exit (1);
22173 exit (0);
22175 _ACEOF
22176 if ac_fn_c_try_run "$LINENO"; then :
22177 emacs_cv_localtime_cache=no
22178 else
22179 emacs_cv_localtime_cache=yes
22181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22182 conftest.$ac_objext conftest.beam conftest.$ac_ext
22185 else
22186 # If we lack tzset, report that localtime does not cache TZ,
22187 # since we can't invalidate the cache if we don't have tzset.
22188 emacs_cv_localtime_cache=no
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22192 $as_echo "$emacs_cv_localtime_cache" >&6; }
22193 if test $emacs_cv_localtime_cache = yes; then
22195 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22199 ok_so_far=yes
22200 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22201 if test "x$ac_cv_func_socket" = x""yes; then :
22203 else
22204 ok_so_far=no
22207 if test $ok_so_far = yes; then
22208 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22209 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
22211 else
22212 ok_so_far=no
22217 if test $ok_so_far = yes; then
22218 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22219 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
22221 else
22222 ok_so_far=no
22227 if test $ok_so_far = yes; then
22229 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22233 if test -f /usr/lpp/X11/bin/smt.exp; then
22235 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22240 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22241 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22243 $as_echo "yes" >&6; }
22245 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22247 else
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249 $as_echo "no" >&6; }
22252 for ac_header in vfork.h
22253 do :
22254 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22255 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22256 cat >>confdefs.h <<_ACEOF
22257 #define HAVE_VFORK_H 1
22258 _ACEOF
22262 done
22264 for ac_func in fork vfork
22265 do :
22266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22268 eval as_val=\$$as_ac_var
22269 if test "x$as_val" = x""yes; then :
22270 cat >>confdefs.h <<_ACEOF
22271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22272 _ACEOF
22275 done
22277 if test "x$ac_cv_func_fork" = xyes; then
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22279 $as_echo_n "checking for working fork... " >&6; }
22280 if test "${ac_cv_func_fork_works+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 if test "$cross_compiling" = yes; then :
22284 ac_cv_func_fork_works=cross
22285 else
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288 $ac_includes_default
22290 main ()
22293 /* By Ruediger Kuhlmann. */
22294 return fork () < 0;
22297 return 0;
22299 _ACEOF
22300 if ac_fn_c_try_run "$LINENO"; then :
22301 ac_cv_func_fork_works=yes
22302 else
22303 ac_cv_func_fork_works=no
22305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22306 conftest.$ac_objext conftest.beam conftest.$ac_ext
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22311 $as_echo "$ac_cv_func_fork_works" >&6; }
22313 else
22314 ac_cv_func_fork_works=$ac_cv_func_fork
22316 if test "x$ac_cv_func_fork_works" = xcross; then
22317 case $host in
22318 *-*-amigaos* | *-*-msdosdjgpp*)
22319 # Override, as these systems have only a dummy fork() stub
22320 ac_cv_func_fork_works=no
22323 ac_cv_func_fork_works=yes
22325 esac
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22327 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22329 ac_cv_func_vfork_works=$ac_cv_func_vfork
22330 if test "x$ac_cv_func_vfork" = xyes; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22332 $as_echo_n "checking for working vfork... " >&6; }
22333 if test "${ac_cv_func_vfork_works+set}" = set; then :
22334 $as_echo_n "(cached) " >&6
22335 else
22336 if test "$cross_compiling" = yes; then :
22337 ac_cv_func_vfork_works=cross
22338 else
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22341 /* Thanks to Paul Eggert for this test. */
22342 $ac_includes_default
22343 #include <sys/wait.h>
22344 #ifdef HAVE_VFORK_H
22345 # include <vfork.h>
22346 #endif
22347 /* On some sparc systems, changes by the child to local and incoming
22348 argument registers are propagated back to the parent. The compiler
22349 is told about this with #include <vfork.h>, but some compilers
22350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22351 static variable whose address is put into a register that is
22352 clobbered by the vfork. */
22353 static void
22354 #ifdef __cplusplus
22355 sparc_address_test (int arg)
22356 # else
22357 sparc_address_test (arg) int arg;
22358 #endif
22360 static pid_t child;
22361 if (!child) {
22362 child = vfork ();
22363 if (child < 0) {
22364 perror ("vfork");
22365 _exit(2);
22367 if (!child) {
22368 arg = getpid();
22369 write(-1, "", 0);
22370 _exit (arg);
22376 main ()
22378 pid_t parent = getpid ();
22379 pid_t child;
22381 sparc_address_test (0);
22383 child = vfork ();
22385 if (child == 0) {
22386 /* Here is another test for sparc vfork register problems. This
22387 test uses lots of local variables, at least as many local
22388 variables as main has allocated so far including compiler
22389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22391 reuse the register of parent for one of the local variables,
22392 since it will think that parent can't possibly be used any more
22393 in this routine. Assigning to the local variable will thus
22394 munge parent in the parent process. */
22395 pid_t
22396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22398 /* Convince the compiler that p..p7 are live; otherwise, it might
22399 use the same hardware register for all 8 local variables. */
22400 if (p != p1 || p != p2 || p != p3 || p != p4
22401 || p != p5 || p != p6 || p != p7)
22402 _exit(1);
22404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22405 from child file descriptors. If the child closes a descriptor
22406 before it execs or exits, this munges the parent's descriptor
22407 as well. Test for this by closing stdout in the child. */
22408 _exit(close(fileno(stdout)) != 0);
22409 } else {
22410 int status;
22411 struct stat st;
22413 while (wait(&status) != child)
22415 return (
22416 /* Was there some problem with vforking? */
22417 child < 0
22419 /* Did the child fail? (This shouldn't happen.) */
22420 || status
22422 /* Did the vfork/compiler bug occur? */
22423 || parent != getpid()
22425 /* Did the file descriptor bug occur? */
22426 || fstat(fileno(stdout), &st) != 0
22430 _ACEOF
22431 if ac_fn_c_try_run "$LINENO"; then :
22432 ac_cv_func_vfork_works=yes
22433 else
22434 ac_cv_func_vfork_works=no
22436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22437 conftest.$ac_objext conftest.beam conftest.$ac_ext
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22442 $as_echo "$ac_cv_func_vfork_works" >&6; }
22445 if test "x$ac_cv_func_fork_works" = xcross; then
22446 ac_cv_func_vfork_works=$ac_cv_func_vfork
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22448 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22451 if test "x$ac_cv_func_vfork_works" = xyes; then
22453 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22455 else
22457 $as_echo "#define vfork fork" >>confdefs.h
22460 if test "x$ac_cv_func_fork_works" = xyes; then
22462 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22467 for ac_func in snprintf
22468 do :
22469 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22470 if test "x$ac_cv_func_snprintf" = x""yes; then :
22471 cat >>confdefs.h <<_ACEOF
22472 #define HAVE_SNPRINTF 1
22473 _ACEOF
22476 done
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22480 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22481 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22486 #include <langinfo.h>
22488 main ()
22490 char* cs = nl_langinfo(CODESET);
22492 return 0;
22494 _ACEOF
22495 if ac_fn_c_try_link "$LINENO"; then :
22496 emacs_cv_langinfo_codeset=yes
22497 else
22498 emacs_cv_langinfo_codeset=no
22500 rm -f core conftest.err conftest.$ac_objext \
22501 conftest$ac_exeext conftest.$ac_ext
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22505 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22506 if test $emacs_cv_langinfo_codeset = yes; then
22508 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22513 $as_echo_n "checking for mbstate_t... " >&6; }
22514 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22519 $ac_includes_default
22520 # include <wchar.h>
22522 main ()
22524 mbstate_t x; return sizeof x;
22526 return 0;
22528 _ACEOF
22529 if ac_fn_c_try_compile "$LINENO"; then :
22530 ac_cv_type_mbstate_t=yes
22531 else
22532 ac_cv_type_mbstate_t=no
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22537 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22538 if test $ac_cv_type_mbstate_t = yes; then
22540 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22542 else
22544 $as_echo "#define mbstate_t int" >>confdefs.h
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22549 $as_echo_n "checking for C restricted array declarations... " >&6; }
22550 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h. */
22555 void fred (int x[__restrict]);
22557 main ()
22561 return 0;
22563 _ACEOF
22564 if ac_fn_c_try_compile "$LINENO"; then :
22565 emacs_cv_c_restrict_arr=yes
22566 else
22567 emacs_cv_c_restrict_arr=no
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22572 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22573 if test "$emacs_cv_c_restrict_arr" = yes; then
22575 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22580 case $opsys in
22581 darwin | gnu | hpux* | *bsd )
22583 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22586 esac
22588 case $opsys in
22589 hpux* | irix6-5 | openbsd | sol2* | unixware )
22591 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22594 esac
22596 case $opsys in
22597 gnu-* | sol2-10 )
22599 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22602 esac
22604 case $opsys in
22605 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
22607 hpux11)
22609 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22612 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22615 opsysfile="s/hpux10-20.h"
22618 openbsd) opsysfile="s/netbsd.h" ;;
22620 sol2-10)
22622 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22624 opsysfile="s/sol2-6.h"
22626 esac
22628 # Set up the CFLAGS for real compilation, so we can substitute it.
22629 CFLAGS="$REAL_CFLAGS"
22630 CPPFLAGS="$REAL_CPPFLAGS"
22632 ## Hack to detect a buggy GCC version.
22633 if test "x$GCC" = xyes \
22634 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22635 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22636 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22637 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22640 version=$PACKAGE_VERSION
22642 ### Specify what sort of things we'll be editing into Makefile and config.h.
22643 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22646 ## Unused?
22669 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22670 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22671 ## end of LIBX_BASE, but nothing ever set it.
22676 ## Used in lwlib/Makefile.in.
22678 if test -n "${opsysfile}"; then
22679 S_FILE="\$(srcdir)/${opsysfile}"
22680 else
22681 S_FILE=
22692 cat >>confdefs.h <<_ACEOF
22693 #define EMACS_CONFIGURATION "${canonical}"
22694 _ACEOF
22697 cat >>confdefs.h <<_ACEOF
22698 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22699 _ACEOF
22701 if test -n "$opsysfile"; then
22703 cat >>confdefs.h <<_ACEOF
22704 #define config_opsysfile "${opsysfile}"
22705 _ACEOF
22709 XMENU_OBJ=
22710 XOBJ=
22711 FONT_OBJ=
22712 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22714 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22716 XMENU_OBJ=xmenu.o
22717 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22718 FONT_OBJ=xfont.o
22719 if test "$HAVE_XFT" = "yes"; then
22720 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22721 elif test "$HAVE_FREETYPE" = "yes"; then
22722 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22730 WIDGET_OBJ=
22731 MOTIF_LIBW=
22732 if test "${USE_X_TOOLKIT}" != "none" ; then
22733 WIDGET_OBJ=widget.o
22735 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22737 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22739 $as_echo "#define USE_LUCID 1" >>confdefs.h
22741 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22743 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22745 MOTIF_LIBW=-lXm
22746 case "$opsys" in
22747 gnu-linux)
22748 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22749 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22752 unixware)
22753 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22754 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22755 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22758 aix4-2)
22759 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22760 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22762 esac
22763 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22768 TOOLKIT_LIBW=
22769 case "$USE_X_TOOLKIT" in
22770 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22771 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22772 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
22773 esac
22776 if test "$USE_X_TOOLKIT" = "none"; then
22777 LIBXT_OTHER="\$(LIBXSM)"
22778 OLDXMENU_TARGET="really-oldXMenu"
22779 else
22780 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22781 OLDXMENU_TARGET="really-lwlib"
22785 ## The X Menu stuff is present in the X10 distribution, but missing
22786 ## from X11. If we have X10, just use the installed library;
22787 ## otherwise, use our own copy.
22788 if test "${HAVE_X11}" = "yes" ; then
22790 $as_echo "#define HAVE_X11 1" >>confdefs.h
22793 if test "$USE_X_TOOLKIT" = "none"; then
22794 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22795 else
22796 OLDXMENU="\${lwlibdir}/liblw.a"
22798 LIBXMENU="\$(OLDXMENU)"
22799 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22800 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22801 else
22802 ## For a syntactically valid Makefile; not actually used for anything.
22803 ## See comments in src/Makefile.in.
22804 OLDXMENU=nothing
22805 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22806 if test "${HAVE_X_WINDOWS}" = "yes"; then
22807 LIBXMENU="-lXMenu"
22808 else
22809 LIBXMENU=
22811 LIBX_OTHER=
22812 OLDXMENU_DEPS=
22815 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22816 OLDXMENU_TARGET=
22817 OLDXMENU=nothing
22818 LIBXMENU=
22819 OLDXMENU_DEPS=
22828 if test "${HAVE_MENUS}" = "yes" ; then
22830 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22834 if test "${GNU_MALLOC}" = "yes" ; then
22836 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22840 RALLOC_OBJ=
22841 if test "${REL_ALLOC}" = "yes" ; then
22843 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22846 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22850 if test "$opsys" = "cygwin"; then
22851 CYGWIN_OBJ="sheap.o"
22852 ## Cygwin differs because of its unexec().
22853 PRE_ALLOC_OBJ=
22854 POST_ALLOC_OBJ=lastfile.o
22855 else
22856 CYGWIN_OBJ=
22857 PRE_ALLOC_OBJ=lastfile.o
22858 POST_ALLOC_OBJ=
22864 case "$opsys" in
22865 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22867 darwin)
22868 ## The -headerpad option tells ld (see man page) to leave room at the
22869 ## end of the header for adding load commands. Needed for dumping.
22870 ## 0x690 is the total size of 30 segment load commands (at 56
22871 ## each); under Cocoa 31 commands are required.
22872 if test "$HAVE_NS" = "yes"; then
22873 libs_nsgui="-framework AppKit"
22874 headerpad_extra=6C8
22875 else
22876 libs_nsgui=
22877 headerpad_extra=690
22879 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22881 ## This is here because src/Makefile.in did some extra fiddling around
22882 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22883 ## #ifndef LD_SWITCH_SYSTEM
22884 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22885 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22886 ## not using gcc, darwin.
22887 ## Because this was done in src/Makefile.in, the resulting part of
22888 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22889 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22890 ## rather than LD_SWITCH_SYSTEM.
22891 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22892 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22895 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22896 ## find X at run-time.
22897 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22898 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22899 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22900 ## had different values in configure (in ac_link) and src/Makefile.in.
22901 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22902 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22904 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22905 esac
22907 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22908 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22914 LD_FIRSTFLAG=
22915 ORDINARY_LINK=
22916 case "$opsys" in
22917 ## gnu: GNU needs its own crt0.
22918 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22920 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22921 ## library search parth, i.e. it won't search /usr/lib for libc and
22922 ## friends. Using -nostartfiles instead avoids this problem, and
22923 ## will also work on earlier NetBSD releases.
22924 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22926 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22927 ## MkLinux/LinuxPPC needs this.
22928 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22929 gnu-*)
22930 case "$canonical" in
22931 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
22932 esac
22934 esac
22937 if test "x$ORDINARY_LINK" = "xyes"; then
22939 LD_FIRSTFLAG=""
22941 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22944 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22945 ## freebsd, gnu-* not on powerpc*|s390x*.
22946 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22948 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22949 ## places that are difficult to figure out at make time. Fortunately,
22950 ## these same versions allow you to pass arbitrary flags on to the
22951 ## linker, so there is no reason not to use it as a linker.
22953 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22954 ## searching for libraries in its internal directories, so we have to
22955 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22956 LD_FIRSTFLAG="-nostdlib"
22959 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22960 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22965 ## FIXME? The logic here is not precisely the same as that above.
22966 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22967 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22968 LIB_GCC=
22969 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22971 case "$opsys" in
22972 freebsd|netbsd|openbsd) LIB_GCC= ;;
22974 gnu-*)
22975 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22976 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22977 case $host_cpu in
22978 arm*)
22979 LIB_GCC="-lgcc_s"
22982 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22983 ## immediately undefine it again and redefine it to empty.
22984 ## Was the C_SWITCH_X_SITE part really necessary?
22985 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22986 LIB_GCC=
22988 esac
22991 ## Ask GCC where to find libgcc.a.
22992 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22993 esac
22997 ## If we're using X11/GNUstep, define some consequences.
22998 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23000 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23003 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23010 #### Report on what we decided to do.
23011 #### Report GTK as a toolkit, even if it doesn't use Xt.
23012 #### It makes printing result more understandable as using GTK sets
23013 #### toolkit_scroll_bars to yes by default.
23014 if test "${HAVE_GTK}" = "yes"; then
23015 USE_X_TOOLKIT=GTK
23018 echo "
23019 Configured for \`${canonical}'.
23021 Where should the build process find the source code? ${srcdir}
23022 What operating system file should Emacs use? ${opsysfile-none}
23023 What compiler should emacs be built with? ${CC} ${CFLAGS}
23024 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23025 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23026 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23027 What window system should Emacs use? ${window_system}
23028 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23030 if test -n "${x_includes}"; then
23031 echo " Where do we find X Windows header files? ${x_includes}"
23032 else
23033 echo " Where do we find X Windows header files? Standard dirs"
23035 if test -n "${x_libraries}"; then
23036 echo " Where do we find X Windows libraries? ${x_libraries}"
23037 else
23038 echo " Where do we find X Windows libraries? Standard dirs"
23041 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23042 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23043 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23044 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23045 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23046 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23047 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23048 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23050 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23051 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23052 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23053 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23054 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23055 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23056 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23058 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23059 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23060 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23061 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23063 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23064 echo
23066 if test -n "${EMACSDATA}"; then
23067 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23069 if test -n "${EMACSDOC}"; then
23070 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23073 echo
23075 if test "$HAVE_NS" = "yes"; then
23076 echo
23077 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23078 The installed application will go to nextstep/Emacs.app and can be
23079 run or moved from there."
23080 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23081 echo "The application will be fully self-contained."
23082 else
23083 echo "The lisp resources for the application will be installed under ${prefix}.
23084 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23085 to run if these resources are not installed."
23087 echo
23090 if test "${opsys}" = "cygwin"; then
23091 case `uname -r` in
23092 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23093 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23094 echo
23096 esac
23099 # Remove any trailing slashes in these variables.
23100 test "${prefix}" != NONE &&
23101 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23102 test "${exec_prefix}" != NONE &&
23103 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23105 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"
23107 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"
23110 opt_makefile=test/automated/Makefile
23112 if test -f $srcdir/${opt_makefile}.in; then
23113 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23114 ac_config_files="$ac_config_files test/automated/Makefile"
23119 opt_makefile=admin/unidata/Makefile
23121 if test -f $srcdir/${opt_makefile}.in; then
23122 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23123 ac_config_files="$ac_config_files admin/unidata/Makefile"
23128 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23132 ac_config_commands="$ac_config_commands mkdirs"
23135 ac_config_commands="$ac_config_commands epaths"
23138 ac_config_commands="$ac_config_commands gdbinit"
23141 cat >confcache <<\_ACEOF
23142 # This file is a shell script that caches the results of configure
23143 # tests run on this system so they can be shared between configure
23144 # scripts and configure runs, see configure's option --config-cache.
23145 # It is not useful on other systems. If it contains results you don't
23146 # want to keep, you may remove or edit it.
23148 # config.status only pays attention to the cache file if you give it
23149 # the --recheck option to rerun configure.
23151 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23152 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23153 # following values.
23155 _ACEOF
23157 # The following way of writing the cache mishandles newlines in values,
23158 # but we know of no workaround that is simple, portable, and efficient.
23159 # So, we kill variables containing newlines.
23160 # Ultrix sh set writes to stderr and can't be redirected directly,
23161 # and sets the high bit in the cache file unless we assign to the vars.
23163 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23164 eval ac_val=\$$ac_var
23165 case $ac_val in #(
23166 *${as_nl}*)
23167 case $ac_var in #(
23168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23170 esac
23171 case $ac_var in #(
23172 _ | IFS | as_nl) ;; #(
23173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23174 *) { eval $ac_var=; unset $ac_var;} ;;
23175 esac ;;
23176 esac
23177 done
23179 (set) 2>&1 |
23180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23181 *${as_nl}ac_space=\ *)
23182 # `set' does not quote correctly, so add quotes: double-quote
23183 # substitution turns \\\\ into \\, and sed turns \\ into \.
23184 sed -n \
23185 "s/'/'\\\\''/g;
23186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23187 ;; #(
23189 # `set' quotes correctly as required by POSIX, so do not add quotes.
23190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23192 esac |
23193 sort
23195 sed '
23196 /^ac_cv_env_/b end
23197 t clear
23198 :clear
23199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23200 t end
23201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23202 :end' >>confcache
23203 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23204 if test -w "$cache_file"; then
23205 test "x$cache_file" != "x/dev/null" &&
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23207 $as_echo "$as_me: updating cache $cache_file" >&6;}
23208 cat confcache >$cache_file
23209 else
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23211 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23214 rm -f confcache
23216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23217 # Let make expand exec_prefix.
23218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23220 DEFS=-DHAVE_CONFIG_H
23222 ac_libobjs=
23223 ac_ltlibobjs=
23224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23225 # 1. Remove the extension, and $U if already installed.
23226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23227 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23229 # will be set to the directory where LIBOBJS objects are built.
23230 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23231 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23232 done
23233 LIBOBJS=$ac_libobjs
23235 LTLIBOBJS=$ac_ltlibobjs
23238 if test -n "$EXEEXT"; then
23239 am__EXEEXT_TRUE=
23240 am__EXEEXT_FALSE='#'
23241 else
23242 am__EXEEXT_TRUE='#'
23243 am__EXEEXT_FALSE=
23246 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23247 as_fn_error "conditional \"AMDEP\" was never defined.
23248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23251 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23255 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23259 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23263 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23264 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23267 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23268 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23271 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23272 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23275 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23276 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23279 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23280 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23283 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23284 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23287 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23288 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23291 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23292 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23295 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23296 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23299 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23300 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23303 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23304 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23307 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23308 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23312 gl_libobjs=
23313 gl_ltlibobjs=
23314 if test -n "$gl_LIBOBJS"; then
23315 # Remove the extension.
23316 sed_drop_objext='s/\.o$//;s/\.obj$//'
23317 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23318 gl_libobjs="$gl_libobjs $i.$ac_objext"
23319 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23320 done
23322 gl_LIBOBJS=$gl_libobjs
23324 gl_LTLIBOBJS=$gl_ltlibobjs
23328 gltests_libobjs=
23329 gltests_ltlibobjs=
23330 if test -n "$gltests_LIBOBJS"; then
23331 # Remove the extension.
23332 sed_drop_objext='s/\.o$//;s/\.obj$//'
23333 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23334 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23335 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23336 done
23338 gltests_LIBOBJS=$gltests_libobjs
23340 gltests_LTLIBOBJS=$gltests_ltlibobjs
23344 : ${CONFIG_STATUS=./config.status}
23345 ac_write_fail=0
23346 ac_clean_files_save=$ac_clean_files
23347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23349 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23350 as_write_fail=0
23351 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23352 #! $SHELL
23353 # Generated by $as_me.
23354 # Run this file to recreate the current configuration.
23355 # Compiler output produced by configure, useful for debugging
23356 # configure, is in config.log if it exists.
23358 debug=false
23359 ac_cs_recheck=false
23360 ac_cs_silent=false
23362 SHELL=\${CONFIG_SHELL-$SHELL}
23363 export SHELL
23364 _ASEOF
23365 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23366 ## -------------------- ##
23367 ## M4sh Initialization. ##
23368 ## -------------------- ##
23370 # Be more Bourne compatible
23371 DUALCASE=1; export DUALCASE # for MKS sh
23372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23373 emulate sh
23374 NULLCMD=:
23375 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23376 # is contrary to our usage. Disable this feature.
23377 alias -g '${1+"$@"}'='"$@"'
23378 setopt NO_GLOB_SUBST
23379 else
23380 case `(set -o) 2>/dev/null` in #(
23381 *posix*) :
23382 set -o posix ;; #(
23383 *) :
23385 esac
23389 as_nl='
23391 export as_nl
23392 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23393 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23396 # Prefer a ksh shell builtin over an external printf program on Solaris,
23397 # but without wasting forks for bash or zsh.
23398 if test -z "$BASH_VERSION$ZSH_VERSION" \
23399 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23400 as_echo='print -r --'
23401 as_echo_n='print -rn --'
23402 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23403 as_echo='printf %s\n'
23404 as_echo_n='printf %s'
23405 else
23406 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23407 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23408 as_echo_n='/usr/ucb/echo -n'
23409 else
23410 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23411 as_echo_n_body='eval
23412 arg=$1;
23413 case $arg in #(
23414 *"$as_nl"*)
23415 expr "X$arg" : "X\\(.*\\)$as_nl";
23416 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23417 esac;
23418 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23420 export as_echo_n_body
23421 as_echo_n='sh -c $as_echo_n_body as_echo'
23423 export as_echo_body
23424 as_echo='sh -c $as_echo_body as_echo'
23427 # The user is always right.
23428 if test "${PATH_SEPARATOR+set}" != set; then
23429 PATH_SEPARATOR=:
23430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23432 PATH_SEPARATOR=';'
23437 # IFS
23438 # We need space, tab and new line, in precisely that order. Quoting is
23439 # there to prevent editors from complaining about space-tab.
23440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23441 # splitting by setting IFS to empty value.)
23442 IFS=" "" $as_nl"
23444 # Find who we are. Look in the path if we contain no directory separator.
23445 case $0 in #((
23446 *[\\/]* ) as_myself=$0 ;;
23447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448 for as_dir in $PATH
23450 IFS=$as_save_IFS
23451 test -z "$as_dir" && as_dir=.
23452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23453 done
23454 IFS=$as_save_IFS
23457 esac
23458 # We did not find ourselves, most probably we were run as `sh COMMAND'
23459 # in which case we are not to be found in the path.
23460 if test "x$as_myself" = x; then
23461 as_myself=$0
23463 if test ! -f "$as_myself"; then
23464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465 exit 1
23468 # Unset variables that we do not need and which cause bugs (e.g. in
23469 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23470 # suppresses any "Segmentation fault" message there. '((' could
23471 # trigger a bug in pdksh 5.2.14.
23472 for as_var in BASH_ENV ENV MAIL MAILPATH
23473 do eval test x\${$as_var+set} = xset \
23474 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23475 done
23476 PS1='$ '
23477 PS2='> '
23478 PS4='+ '
23480 # NLS nuisances.
23481 LC_ALL=C
23482 export LC_ALL
23483 LANGUAGE=C
23484 export LANGUAGE
23486 # CDPATH.
23487 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23490 # as_fn_error ERROR [LINENO LOG_FD]
23491 # ---------------------------------
23492 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23493 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23494 # script with status $?, using 1 if that was 0.
23495 as_fn_error ()
23497 as_status=$?; test $as_status -eq 0 && as_status=1
23498 if test "$3"; then
23499 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23500 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23502 $as_echo "$as_me: error: $1" >&2
23503 as_fn_exit $as_status
23504 } # as_fn_error
23507 # as_fn_set_status STATUS
23508 # -----------------------
23509 # Set $? to STATUS, without forking.
23510 as_fn_set_status ()
23512 return $1
23513 } # as_fn_set_status
23515 # as_fn_exit STATUS
23516 # -----------------
23517 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23518 as_fn_exit ()
23520 set +e
23521 as_fn_set_status $1
23522 exit $1
23523 } # as_fn_exit
23525 # as_fn_unset VAR
23526 # ---------------
23527 # Portably unset VAR.
23528 as_fn_unset ()
23530 { eval $1=; unset $1;}
23532 as_unset=as_fn_unset
23533 # as_fn_append VAR VALUE
23534 # ----------------------
23535 # Append the text in VALUE to the end of the definition contained in VAR. Take
23536 # advantage of any shell optimizations that allow amortized linear growth over
23537 # repeated appends, instead of the typical quadratic growth present in naive
23538 # implementations.
23539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23540 eval 'as_fn_append ()
23542 eval $1+=\$2
23544 else
23545 as_fn_append ()
23547 eval $1=\$$1\$2
23549 fi # as_fn_append
23551 # as_fn_arith ARG...
23552 # ------------------
23553 # Perform arithmetic evaluation on the ARGs, and store the result in the
23554 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23555 # must be portable across $(()) and expr.
23556 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23557 eval 'as_fn_arith ()
23559 as_val=$(( $* ))
23561 else
23562 as_fn_arith ()
23564 as_val=`expr "$@" || test $? -eq 1`
23566 fi # as_fn_arith
23569 if expr a : '\(a\)' >/dev/null 2>&1 &&
23570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23571 as_expr=expr
23572 else
23573 as_expr=false
23576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23577 as_basename=basename
23578 else
23579 as_basename=false
23582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23583 as_dirname=dirname
23584 else
23585 as_dirname=false
23588 as_me=`$as_basename -- "$0" ||
23589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23590 X"$0" : 'X\(//\)$' \| \
23591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23592 $as_echo X/"$0" |
23593 sed '/^.*\/\([^/][^/]*\)\/*$/{
23594 s//\1/
23597 /^X\/\(\/\/\)$/{
23598 s//\1/
23601 /^X\/\(\/\).*/{
23602 s//\1/
23605 s/.*/./; q'`
23607 # Avoid depending upon Character Ranges.
23608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23611 as_cr_digits='0123456789'
23612 as_cr_alnum=$as_cr_Letters$as_cr_digits
23614 ECHO_C= ECHO_N= ECHO_T=
23615 case `echo -n x` in #(((((
23616 -n*)
23617 case `echo 'xy\c'` in
23618 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23619 xy) ECHO_C='\c';;
23620 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23621 ECHO_T=' ';;
23622 esac;;
23624 ECHO_N='-n';;
23625 esac
23627 rm -f conf$$ conf$$.exe conf$$.file
23628 if test -d conf$$.dir; then
23629 rm -f conf$$.dir/conf$$.file
23630 else
23631 rm -f conf$$.dir
23632 mkdir conf$$.dir 2>/dev/null
23634 if (echo >conf$$.file) 2>/dev/null; then
23635 if ln -s conf$$.file conf$$ 2>/dev/null; then
23636 as_ln_s='ln -s'
23637 # ... but there are two gotchas:
23638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23640 # In both cases, we have to default to `cp -p'.
23641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23642 as_ln_s='cp -p'
23643 elif ln conf$$.file conf$$ 2>/dev/null; then
23644 as_ln_s=ln
23645 else
23646 as_ln_s='cp -p'
23648 else
23649 as_ln_s='cp -p'
23651 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23652 rmdir conf$$.dir 2>/dev/null
23655 # as_fn_mkdir_p
23656 # -------------
23657 # Create "$as_dir" as a directory, including parents if necessary.
23658 as_fn_mkdir_p ()
23661 case $as_dir in #(
23662 -*) as_dir=./$as_dir;;
23663 esac
23664 test -d "$as_dir" || eval $as_mkdir_p || {
23665 as_dirs=
23666 while :; do
23667 case $as_dir in #(
23668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23669 *) as_qdir=$as_dir;;
23670 esac
23671 as_dirs="'$as_qdir' $as_dirs"
23672 as_dir=`$as_dirname -- "$as_dir" ||
23673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23674 X"$as_dir" : 'X\(//\)[^/]' \| \
23675 X"$as_dir" : 'X\(//\)$' \| \
23676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23677 $as_echo X"$as_dir" |
23678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23679 s//\1/
23682 /^X\(\/\/\)[^/].*/{
23683 s//\1/
23686 /^X\(\/\/\)$/{
23687 s//\1/
23690 /^X\(\/\).*/{
23691 s//\1/
23694 s/.*/./; q'`
23695 test -d "$as_dir" && break
23696 done
23697 test -z "$as_dirs" || eval "mkdir $as_dirs"
23698 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23701 } # as_fn_mkdir_p
23702 if mkdir -p . 2>/dev/null; then
23703 as_mkdir_p='mkdir -p "$as_dir"'
23704 else
23705 test -d ./-p && rmdir ./-p
23706 as_mkdir_p=false
23709 if test -x / >/dev/null 2>&1; then
23710 as_test_x='test -x'
23711 else
23712 if ls -dL / >/dev/null 2>&1; then
23713 as_ls_L_option=L
23714 else
23715 as_ls_L_option=
23717 as_test_x='
23718 eval sh -c '\''
23719 if test -d "$1"; then
23720 test -d "$1/.";
23721 else
23722 case $1 in #(
23723 -*)set "./$1";;
23724 esac;
23725 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23726 ???[sx]*):;;*)false;;esac;fi
23727 '\'' sh
23730 as_executable_p=$as_test_x
23732 # Sed expression to map a string onto a valid CPP name.
23733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23735 # Sed expression to map a string onto a valid variable name.
23736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23739 exec 6>&1
23740 ## ----------------------------------- ##
23741 ## Main body of $CONFIG_STATUS script. ##
23742 ## ----------------------------------- ##
23743 _ASEOF
23744 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23747 # Save the log message, to keep $0 and so on meaningful, and to
23748 # report actual input values of CONFIG_FILES etc. instead of their
23749 # values after options handling.
23750 ac_log="
23751 This file was extended by emacs $as_me 24.1.50, which was
23752 generated by GNU Autoconf 2.65. Invocation command line was
23754 CONFIG_FILES = $CONFIG_FILES
23755 CONFIG_HEADERS = $CONFIG_HEADERS
23756 CONFIG_LINKS = $CONFIG_LINKS
23757 CONFIG_COMMANDS = $CONFIG_COMMANDS
23758 $ $0 $@
23760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23763 _ACEOF
23765 case $ac_config_files in *"
23766 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23767 esac
23769 case $ac_config_headers in *"
23770 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23771 esac
23774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23775 # Files that config.status was made for.
23776 config_files="$ac_config_files"
23777 config_headers="$ac_config_headers"
23778 config_commands="$ac_config_commands"
23780 _ACEOF
23782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23783 ac_cs_usage="\
23784 \`$as_me' instantiates files and other configuration actions
23785 from templates according to the current configuration. Unless the files
23786 and actions are specified as TAGs, all are instantiated by default.
23788 Usage: $0 [OPTION]... [TAG]...
23790 -h, --help print this help, then exit
23791 -V, --version print version number and configuration settings, then exit
23792 --config print configuration, then exit
23793 -q, --quiet, --silent
23794 do not print progress messages
23795 -d, --debug don't remove temporary files
23796 --recheck update $as_me by reconfiguring in the same conditions
23797 --file=FILE[:TEMPLATE]
23798 instantiate the configuration file FILE
23799 --header=FILE[:TEMPLATE]
23800 instantiate the configuration header FILE
23802 Configuration files:
23803 $config_files
23805 Configuration headers:
23806 $config_headers
23808 Configuration commands:
23809 $config_commands
23811 Report bugs to the package provider."
23813 _ACEOF
23814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23815 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23816 ac_cs_version="\\
23817 emacs config.status 24.1.50
23818 configured by $0, generated by GNU Autoconf 2.65,
23819 with options \\"\$ac_cs_config\\"
23821 Copyright (C) 2009 Free Software Foundation, Inc.
23822 This config.status script is free software; the Free Software Foundation
23823 gives unlimited permission to copy, distribute and modify it."
23825 ac_pwd='$ac_pwd'
23826 srcdir='$srcdir'
23827 INSTALL='$INSTALL'
23828 MKDIR_P='$MKDIR_P'
23829 AWK='$AWK'
23830 test -n "\$AWK" || AWK=awk
23831 _ACEOF
23833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23834 # The default lists apply if the user does not specify any file.
23835 ac_need_defaults=:
23836 while test $# != 0
23838 case $1 in
23839 --*=*)
23840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23842 ac_shift=:
23845 ac_option=$1
23846 ac_optarg=$2
23847 ac_shift=shift
23849 esac
23851 case $ac_option in
23852 # Handling of the options.
23853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23854 ac_cs_recheck=: ;;
23855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23856 $as_echo "$ac_cs_version"; exit ;;
23857 --config | --confi | --conf | --con | --co | --c )
23858 $as_echo "$ac_cs_config"; exit ;;
23859 --debug | --debu | --deb | --de | --d | -d )
23860 debug=: ;;
23861 --file | --fil | --fi | --f )
23862 $ac_shift
23863 case $ac_optarg in
23864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23865 esac
23866 as_fn_append CONFIG_FILES " '$ac_optarg'"
23867 ac_need_defaults=false;;
23868 --header | --heade | --head | --hea )
23869 $ac_shift
23870 case $ac_optarg in
23871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23872 esac
23873 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23874 ac_need_defaults=false;;
23875 --he | --h)
23876 # Conflict between --help and --header
23877 as_fn_error "ambiguous option: \`$1'
23878 Try \`$0 --help' for more information.";;
23879 --help | --hel | -h )
23880 $as_echo "$ac_cs_usage"; exit ;;
23881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23883 ac_cs_silent=: ;;
23885 # This is an error.
23886 -*) as_fn_error "unrecognized option: \`$1'
23887 Try \`$0 --help' for more information." ;;
23889 *) as_fn_append ac_config_targets " $1"
23890 ac_need_defaults=false ;;
23892 esac
23893 shift
23894 done
23896 ac_configure_extra_args=
23898 if $ac_cs_silent; then
23899 exec 6>/dev/null
23900 ac_configure_extra_args="$ac_configure_extra_args --silent"
23903 _ACEOF
23904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23905 if \$ac_cs_recheck; then
23906 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23907 shift
23908 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23909 CONFIG_SHELL='$SHELL'
23910 export CONFIG_SHELL
23911 exec "\$@"
23914 _ACEOF
23915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23916 exec 5>>config.log
23918 echo
23919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23920 ## Running $as_me. ##
23921 _ASBOX
23922 $as_echo "$ac_log"
23923 } >&5
23925 _ACEOF
23926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23928 # INIT-COMMANDS
23930 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23931 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23933 _ACEOF
23935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23937 # Handling of arguments.
23938 for ac_config_target in $ac_config_targets
23940 case $ac_config_target in
23941 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23942 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23943 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23944 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23945 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23946 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23947 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23948 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23949 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23950 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23951 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23952 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23953 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23954 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23955 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23956 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23957 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23958 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23959 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23961 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23962 esac
23963 done
23966 # If the user did not use the arguments to specify the items to instantiate,
23967 # then the envvar interface is used. Set only those that are not.
23968 # We use the long form for the default assignment because of an extremely
23969 # bizarre bug on SunOS 4.1.3.
23970 if $ac_need_defaults; then
23971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23972 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23973 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23976 # Have a temporary directory for convenience. Make it in the build tree
23977 # simply because there is no reason against having it here, and in addition,
23978 # creating and moving files from /tmp can sometimes cause problems.
23979 # Hook for its removal unless debugging.
23980 # Note that there is a small window in which the directory will not be cleaned:
23981 # after its creation but before its name has been assigned to `$tmp'.
23982 $debug ||
23984 tmp=
23985 trap 'exit_status=$?
23986 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23988 trap 'as_fn_exit 1' 1 2 13 15
23990 # Create a (secure) tmp directory for tmp files.
23993 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23994 test -n "$tmp" && test -d "$tmp"
23995 } ||
23997 tmp=./conf$$-$RANDOM
23998 (umask 077 && mkdir "$tmp")
23999 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24001 # Set up the scripts for CONFIG_FILES section.
24002 # No need to generate them if there are no CONFIG_FILES.
24003 # This happens for instance with `./config.status config.h'.
24004 if test -n "$CONFIG_FILES"; then
24006 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24007 ac_cs_awk_getline=:
24008 ac_cs_awk_pipe_init=
24009 ac_cs_awk_read_file='
24010 while ((getline aline < (F[key])) > 0)
24011 print(aline)
24012 close(F[key])'
24013 ac_cs_awk_pipe_fini=
24014 else
24015 ac_cs_awk_getline=false
24016 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24017 ac_cs_awk_read_file='
24018 print "|#_!!_#|"
24019 print "cat " F[key] " &&"
24020 '$ac_cs_awk_pipe_init
24021 # The final `:' finishes the AND list.
24022 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24024 ac_cr=`echo X | tr X '\015'`
24025 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24026 # But we know of no other shell where ac_cr would be empty at this
24027 # point, so we can use a bashism as a fallback.
24028 if test "x$ac_cr" = x; then
24029 eval ac_cr=\$\'\\r\'
24031 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24032 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24033 ac_cs_awk_cr='\r'
24034 else
24035 ac_cs_awk_cr=$ac_cr
24038 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24039 _ACEOF
24041 # Create commands to substitute file output variables.
24043 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24044 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24045 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24046 echo "_ACAWK" &&
24047 echo "_ACEOF"
24048 } >conf$$files.sh &&
24049 . ./conf$$files.sh ||
24050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24051 rm -f conf$$files.sh
24054 echo "cat >conf$$subs.awk <<_ACEOF" &&
24055 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24056 echo "_ACEOF"
24057 } >conf$$subs.sh ||
24058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24059 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24060 ac_delim='%!_!# '
24061 for ac_last_try in false false false false false :; do
24062 . ./conf$$subs.sh ||
24063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24065 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24066 if test $ac_delim_n = $ac_delim_num; then
24067 break
24068 elif $ac_last_try; then
24069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24070 else
24071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24073 done
24074 rm -f conf$$subs.sh
24076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24077 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24078 _ACEOF
24079 sed -n '
24081 s/^/S["/; s/!.*/"]=/
24084 s/^[^!]*!//
24085 :repl
24086 t repl
24087 s/'"$ac_delim"'$//
24088 t delim
24091 s/\(.\{148\}\)..*/\1/
24092 t more1
24093 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24096 b repl
24097 :more1
24098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24101 s/.\{148\}//
24102 t nl
24103 :delim
24105 s/\(.\{148\}\)..*/\1/
24106 t more2
24107 s/["\\]/\\&/g; s/^/"/; s/$/"/
24110 :more2
24111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24114 s/.\{148\}//
24115 t delim
24116 ' <conf$$subs.awk | sed '
24117 /^[^""]/{
24119 s/\n//
24121 ' >>$CONFIG_STATUS || ac_write_fail=1
24122 rm -f conf$$subs.awk
24123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24124 _ACAWK
24125 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24126 for (key in S) S_is_set[key] = 1
24127 FS = "\a"
24128 \$ac_cs_awk_pipe_init
24131 line = $ 0
24132 nfields = split(line, field, "@")
24133 substed = 0
24134 len = length(field[1])
24135 for (i = 2; i < nfields; i++) {
24136 key = field[i]
24137 keylen = length(key)
24138 if (S_is_set[key]) {
24139 value = S[key]
24140 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24141 len += length(value) + length(field[++i])
24142 substed = 1
24143 } else
24144 len += 1 + keylen
24146 if (nfields == 3 && !substed) {
24147 key = field[2]
24148 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24149 \$ac_cs_awk_read_file
24150 next
24153 print line
24155 \$ac_cs_awk_pipe_fini
24156 _ACAWK
24157 _ACEOF
24158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24159 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24161 else
24163 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24164 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24165 _ACEOF
24167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24169 # trailing colons and then remove the whole line if VPATH becomes empty
24170 # (actually we leave an empty line to preserve line numbers).
24171 if test "x$srcdir" = x.; then
24172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24173 s/:*\$(srcdir):*/:/
24174 s/:*\${srcdir}:*/:/
24175 s/:*@srcdir@:*/:/
24176 s/^\([^=]*=[ ]*\):*/\1/
24177 s/:*$//
24178 s/^[^=]*=[ ]*$//
24182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24183 fi # test -n "$CONFIG_FILES"
24185 # Set up the scripts for CONFIG_HEADERS section.
24186 # No need to generate them if there are no CONFIG_HEADERS.
24187 # This happens for instance with `./config.status Makefile'.
24188 if test -n "$CONFIG_HEADERS"; then
24189 cat >"$tmp/defines.awk" <<\_ACAWK ||
24190 BEGIN {
24191 _ACEOF
24193 # Transform confdefs.h into an awk script `defines.awk', embedded as
24194 # here-document in config.status, that substitutes the proper values into
24195 # config.h.in to produce config.h.
24197 # Create a delimiter string that does not exist in confdefs.h, to ease
24198 # handling of long lines.
24199 ac_delim='%!_!# '
24200 for ac_last_try in false false :; do
24201 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24202 if test -z "$ac_t"; then
24203 break
24204 elif $ac_last_try; then
24205 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24206 else
24207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24209 done
24211 # For the awk script, D is an array of macro values keyed by name,
24212 # likewise P contains macro parameters if any. Preserve backslash
24213 # newline sequences.
24215 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24216 sed -n '
24217 s/.\{148\}/&'"$ac_delim"'/g
24218 t rset
24219 :rset
24220 s/^[ ]*#[ ]*define[ ][ ]*/ /
24221 t def
24223 :def
24224 s/\\$//
24225 t bsnl
24226 s/["\\]/\\&/g
24227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24228 D["\1"]=" \3"/p
24229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24231 :bsnl
24232 s/["\\]/\\&/g
24233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24234 D["\1"]=" \3\\\\\\n"\\/p
24235 t cont
24236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24237 t cont
24239 :cont
24241 s/.\{148\}/&'"$ac_delim"'/g
24242 t clear
24243 :clear
24244 s/\\$//
24245 t bsnlc
24246 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24248 :bsnlc
24249 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24250 b cont
24251 ' <confdefs.h | sed '
24252 s/'"$ac_delim"'/"\\\
24253 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24256 for (key in D) D_is_set[key] = 1
24257 FS = "\a"
24259 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24260 line = \$ 0
24261 split(line, arg, " ")
24262 if (arg[1] == "#") {
24263 defundef = arg[2]
24264 mac1 = arg[3]
24265 } else {
24266 defundef = substr(arg[1], 2)
24267 mac1 = arg[2]
24269 split(mac1, mac2, "(") #)
24270 macro = mac2[1]
24271 prefix = substr(line, 1, index(line, defundef) - 1)
24272 if (D_is_set[macro]) {
24273 # Preserve the white space surrounding the "#".
24274 print prefix "define", macro P[macro] D[macro]
24275 next
24276 } else {
24277 # Replace #undef with comments. This is necessary, for example,
24278 # in the case of _POSIX_SOURCE, which is predefined and required
24279 # on some systems where configure will not decide to define it.
24280 if (defundef == "undef") {
24281 print "/*", prefix defundef, macro, "*/"
24282 next
24286 { print }
24287 _ACAWK
24288 _ACEOF
24289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24290 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24291 fi # test -n "$CONFIG_HEADERS"
24294 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24295 shift
24296 for ac_tag
24298 case $ac_tag in
24299 :[FHLC]) ac_mode=$ac_tag; continue;;
24300 esac
24301 case $ac_mode$ac_tag in
24302 :[FHL]*:*);;
24303 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24304 :[FH]-) ac_tag=-:-;;
24305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24306 esac
24307 ac_save_IFS=$IFS
24308 IFS=:
24309 set x $ac_tag
24310 IFS=$ac_save_IFS
24311 shift
24312 ac_file=$1
24313 shift
24315 case $ac_mode in
24316 :L) ac_source=$1;;
24317 :[FH])
24318 ac_file_inputs=
24319 for ac_f
24321 case $ac_f in
24322 -) ac_f="$tmp/stdin";;
24323 *) # Look for the file first in the build tree, then in the source tree
24324 # (if the path is not absolute). The absolute path cannot be DOS-style,
24325 # because $ac_f cannot contain `:'.
24326 test -f "$ac_f" ||
24327 case $ac_f in
24328 [\\/$]*) false;;
24329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24330 esac ||
24331 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24332 esac
24333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24334 as_fn_append ac_file_inputs " '$ac_f'"
24335 done
24337 # Let's still pretend it is `configure' which instantiates (i.e., don't
24338 # use $as_me), people would be surprised to read:
24339 # /* config.h. Generated by config.status. */
24340 configure_input='Generated from '`
24341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24342 `' by configure.'
24343 if test x"$ac_file" != x-; then
24344 configure_input="$ac_file. $configure_input"
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24346 $as_echo "$as_me: creating $ac_file" >&6;}
24348 # Neutralize special characters interpreted by sed in replacement strings.
24349 case $configure_input in #(
24350 *\&* | *\|* | *\\* )
24351 ac_sed_conf_input=`$as_echo "$configure_input" |
24352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24353 *) ac_sed_conf_input=$configure_input;;
24354 esac
24356 case $ac_tag in
24357 *:-:* | *:-) cat >"$tmp/stdin" \
24358 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24359 esac
24361 esac
24363 ac_dir=`$as_dirname -- "$ac_file" ||
24364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24365 X"$ac_file" : 'X\(//\)[^/]' \| \
24366 X"$ac_file" : 'X\(//\)$' \| \
24367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24368 $as_echo X"$ac_file" |
24369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24370 s//\1/
24373 /^X\(\/\/\)[^/].*/{
24374 s//\1/
24377 /^X\(\/\/\)$/{
24378 s//\1/
24381 /^X\(\/\).*/{
24382 s//\1/
24385 s/.*/./; q'`
24386 as_dir="$ac_dir"; as_fn_mkdir_p
24387 ac_builddir=.
24389 case "$ac_dir" in
24390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24393 # A ".." for each directory in $ac_dir_suffix.
24394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24395 case $ac_top_builddir_sub in
24396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24398 esac ;;
24399 esac
24400 ac_abs_top_builddir=$ac_pwd
24401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24402 # for backward compatibility:
24403 ac_top_builddir=$ac_top_build_prefix
24405 case $srcdir in
24406 .) # We are building in place.
24407 ac_srcdir=.
24408 ac_top_srcdir=$ac_top_builddir_sub
24409 ac_abs_top_srcdir=$ac_pwd ;;
24410 [\\/]* | ?:[\\/]* ) # Absolute name.
24411 ac_srcdir=$srcdir$ac_dir_suffix;
24412 ac_top_srcdir=$srcdir
24413 ac_abs_top_srcdir=$srcdir ;;
24414 *) # Relative name.
24415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24416 ac_top_srcdir=$ac_top_build_prefix$srcdir
24417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24418 esac
24419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24422 case $ac_mode in
24425 # CONFIG_FILE
24428 case $INSTALL in
24429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24431 esac
24432 ac_MKDIR_P=$MKDIR_P
24433 case $MKDIR_P in
24434 [\\/$]* | ?:[\\/]* ) ;;
24435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24436 esac
24437 _ACEOF
24439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24440 # If the template does not know about datarootdir, expand it.
24441 # FIXME: This hack should be removed a few years after 2.60.
24442 ac_datarootdir_hack=; ac_datarootdir_seen=
24443 ac_sed_dataroot='
24444 /datarootdir/ {
24448 /@datadir@/p
24449 /@docdir@/p
24450 /@infodir@/p
24451 /@localedir@/p
24452 /@mandir@/p'
24453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24454 *datarootdir*) ac_datarootdir_seen=yes;;
24455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24458 _ACEOF
24459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24460 ac_datarootdir_hack='
24461 s&@datadir@&$datadir&g
24462 s&@docdir@&$docdir&g
24463 s&@infodir@&$infodir&g
24464 s&@localedir@&$localedir&g
24465 s&@mandir@&$mandir&g
24466 s&\\\${datarootdir}&$datarootdir&g' ;;
24467 esac
24468 _ACEOF
24470 # Neutralize VPATH when `$srcdir' = `.'.
24471 # Shell code in configure.ac might set extrasub.
24472 # FIXME: do we really want to maintain this feature?
24473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24474 ac_sed_extra="$ac_vpsub
24475 $extrasub
24476 _ACEOF
24477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24480 s|@configure_input@|$ac_sed_conf_input|;t t
24481 s&@top_builddir@&$ac_top_builddir_sub&;t t
24482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24483 s&@srcdir@&$ac_srcdir&;t t
24484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24485 s&@top_srcdir@&$ac_top_srcdir&;t t
24486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24487 s&@builddir@&$ac_builddir&;t t
24488 s&@abs_builddir@&$ac_abs_builddir&;t t
24489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24490 s&@INSTALL@&$ac_INSTALL&;t t
24491 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24492 $ac_datarootdir_hack
24494 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24495 if $ac_cs_awk_getline; then
24496 $AWK -f "$tmp/subs.awk"
24497 else
24498 $AWK -f "$tmp/subs.awk" | $SHELL
24499 fi >$tmp/out \
24500 || as_fn_error "could not create $ac_file" "$LINENO" 5
24502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24503 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24506 which seems to be undefined. Please make sure it is defined." >&5
24507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24508 which seems to be undefined. Please make sure it is defined." >&2;}
24510 rm -f "$tmp/stdin"
24511 case $ac_file in
24512 -) cat "$tmp/out" && rm -f "$tmp/out";;
24513 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24514 esac \
24515 || as_fn_error "could not create $ac_file" "$LINENO" 5
24519 # CONFIG_HEADER
24521 if test x"$ac_file" != x-; then
24523 $as_echo "/* $configure_input */" \
24524 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24525 } >"$tmp/config.h" \
24526 || as_fn_error "could not create $ac_file" "$LINENO" 5
24527 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24530 else
24531 rm -f "$ac_file"
24532 mv "$tmp/config.h" "$ac_file" \
24533 || as_fn_error "could not create $ac_file" "$LINENO" 5
24535 else
24536 $as_echo "/* $configure_input */" \
24537 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24538 || as_fn_error "could not create -" "$LINENO" 5
24540 # Compute "$ac_file"'s index in $config_headers.
24541 _am_arg="$ac_file"
24542 _am_stamp_count=1
24543 for _am_header in $config_headers :; do
24544 case $_am_header in
24545 $_am_arg | $_am_arg:* )
24546 break ;;
24548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24549 esac
24550 done
24551 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24552 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553 X"$_am_arg" : 'X\(//\)[^/]' \| \
24554 X"$_am_arg" : 'X\(//\)$' \| \
24555 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24556 $as_echo X"$_am_arg" |
24557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24558 s//\1/
24561 /^X\(\/\/\)[^/].*/{
24562 s//\1/
24565 /^X\(\/\/\)$/{
24566 s//\1/
24569 /^X\(\/\).*/{
24570 s//\1/
24573 s/.*/./; q'`/stamp-h$_am_stamp_count
24576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24577 $as_echo "$as_me: executing $ac_file commands" >&6;}
24579 esac
24582 case $ac_file$ac_mode in
24583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24584 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24585 # are listed without --file. Let's play safe and only enable the eval
24586 # if we detect the quoting.
24587 case $CONFIG_FILES in
24588 *\'*) eval set x "$CONFIG_FILES" ;;
24589 *) set x $CONFIG_FILES ;;
24590 esac
24591 shift
24592 for mf
24594 # Strip MF so we end up with the name of the file.
24595 mf=`echo "$mf" | sed -e 's/:.*$//'`
24596 # Check whether this is an Automake generated Makefile or not.
24597 # We used to match only the files named `Makefile.in', but
24598 # some people rename them; so instead we look at the file content.
24599 # Grep'ing the first line is not enough: some people post-process
24600 # each Makefile.in and add a new line on top of each file to say so.
24601 # Grep'ing the whole file is not good either: AIX grep has a line
24602 # limit of 2048, but all sed's we know have understand at least 4000.
24603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24604 dirpart=`$as_dirname -- "$mf" ||
24605 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24606 X"$mf" : 'X\(//\)[^/]' \| \
24607 X"$mf" : 'X\(//\)$' \| \
24608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24609 $as_echo X"$mf" |
24610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24611 s//\1/
24614 /^X\(\/\/\)[^/].*/{
24615 s//\1/
24618 /^X\(\/\/\)$/{
24619 s//\1/
24622 /^X\(\/\).*/{
24623 s//\1/
24626 s/.*/./; q'`
24627 else
24628 continue
24630 # Extract the definition of DEPDIR, am__include, and am__quote
24631 # from the Makefile without running `make'.
24632 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24633 test -z "$DEPDIR" && continue
24634 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24635 test -z "am__include" && continue
24636 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24637 # When using ansi2knr, U may be empty or an underscore; expand it
24638 U=`sed -n 's/^U = //p' < "$mf"`
24639 # Find all dependency output files, they are included files with
24640 # $(DEPDIR) in their names. We invoke sed twice because it is the
24641 # simplest approach to changing $(DEPDIR) to its actual value in the
24642 # expansion.
24643 for file in `sed -n "
24644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24646 # Make sure the directory exists.
24647 test -f "$dirpart/$file" && continue
24648 fdir=`$as_dirname -- "$file" ||
24649 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24650 X"$file" : 'X\(//\)[^/]' \| \
24651 X"$file" : 'X\(//\)$' \| \
24652 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24653 $as_echo X"$file" |
24654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24655 s//\1/
24658 /^X\(\/\/\)[^/].*/{
24659 s//\1/
24662 /^X\(\/\/\)$/{
24663 s//\1/
24666 /^X\(\/\).*/{
24667 s//\1/
24670 s/.*/./; q'`
24671 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24672 # echo "creating $dirpart/$file"
24673 echo '# dummy' > "$dirpart/$file"
24674 done
24675 done
24678 "mkdirs":C)
24679 for dir in etc lisp ; do
24680 test -d ${dir} || mkdir ${dir}
24681 done
24683 "epaths":C)
24684 echo creating src/epaths.h
24685 ${MAKE-make} epaths-force
24687 "gdbinit":C)
24688 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24689 echo creating src/.gdbinit
24690 echo source $srcdir/src/.gdbinit > src/.gdbinit
24694 esac
24695 done # for ac_tag
24698 as_fn_exit 0
24699 _ACEOF
24700 ac_clean_files=$ac_clean_files_save
24702 test $ac_write_fail = 0 ||
24703 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24706 # configure is writing to config.log, and then calls config.status.
24707 # config.status does its own redirection, appending to config.log.
24708 # Unfortunately, on DOS this fails, as config.log is still kept open
24709 # by configure, so config.status won't be able to write to it; its
24710 # output is simply discarded. So we exec the FD to /dev/null,
24711 # effectively closing config.log, so it can be properly (re)opened and
24712 # appended to by config.status. When coming back to configure, we
24713 # need to make the FD available again.
24714 if test "$no_create" != yes; then
24715 ac_cs_success=:
24716 ac_config_status_args=
24717 test "$silent" = yes &&
24718 ac_config_status_args="$ac_config_status_args --quiet"
24719 exec 5>/dev/null
24720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24721 exec 5>>config.log
24722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24723 # would make configure fail if this is the last instruction.
24724 $ac_cs_success || as_fn_exit $?
24726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}