Rename configure.in to configure.ac.
[emacs.git] / autogen / configure
blob13b55b60d8d5404593be665a91fa7bac2fd7c3c6
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. This is intended for
2036 developers, and may generate false alarms when used
2037 with older or non-GNU development tools.
2038 --enable-link-time-optimization
2039 build emacs with link-time optimization. This is
2040 supported only for GCC since 4.5.0.
2042 Optional Packages:
2043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2045 --without-pop don't support POP mail retrieval with movemail
2046 --with-kerberos support Kerberos-authenticated POP
2047 --with-kerberos5 support Kerberos version 5 authenticated POP
2048 --with-hesiod support Hesiod to get the POP server host
2049 --with-mmdf support MMDF mailboxes
2050 --with-mail-unlink unlink, rather than empty, mail spool after reading
2051 --with-mailhost=HOSTNAME
2052 string giving default POP mail host
2053 --without-sound don't compile with sound support
2054 --without-sync-input process async input synchronously
2055 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2056 lucid or athena, motif, no)
2057 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2058 --without-xpm don't compile with XPM image support
2059 --without-jpeg don't compile with JPEG image support
2060 --without-tiff don't compile with TIFF image support
2061 --without-gif don't compile with GIF image support
2062 --without-png don't compile with PNG image support
2063 --without-rsvg don't compile with SVG image support
2064 --without-xml2 don't compile with XML parsing support
2065 --without-imagemagick don't compile with ImageMagick image support
2066 --without-xft don't use XFT for anti aliased fonts
2067 --without-libotf don't use libotf for OpenType font support
2068 --without-m17n-flt don't use m17n-flt for text shaping
2069 --without-toolkit-scroll-bars
2070 don't use Motif or Xaw3d scroll bars
2071 --without-xaw3d don't use Xaw3d
2072 --without-xim don't use X11 XIM
2073 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2074 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2075 console
2076 --without-dbus don't compile with D-Bus support
2077 --without-gconf don't compile with GConf support
2078 --without-gsettings don't compile with GSettings support
2079 --without-selinux don't compile with SELinux support
2080 --without-gnutls don't use -lgnutls for SSL/TLS support
2081 --without-makeinfo don't require makeinfo for building manuals
2082 --without-compress-info don't compress the installed Info pages
2083 --with-pkg-config-prog=PATH
2084 path to pkg-config for finding GTK and librsvg
2085 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2086 /usr/lib, or /usr/lib64 on some platforms.
2087 --with-gameuser=USER user for shared game score files
2088 --with-gnustep-conf=PATH
2089 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2090 or /etc/GNUstep/GNUstep.conf
2091 --with-x use the X Window System
2093 Some influential environment variables:
2094 CC C compiler command
2095 CFLAGS C compiler flags
2096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2097 nonstandard directory <lib dir>
2098 LIBS libraries to pass to the linker, e.g. -l<library>
2099 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2100 you have headers in a nonstandard directory <include dir>
2101 CPP C preprocessor
2102 XMKMF Path to xmkmf, Makefile generator for X Window System
2104 Use these variables to override the choices made by `configure' or to help
2105 it to find libraries and programs with nonstandard names/locations.
2107 Report bugs to the package provider.
2108 _ACEOF
2109 ac_status=$?
2112 if test "$ac_init_help" = "recursive"; then
2113 # If there are subdirs, report their specific --help.
2114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2115 test -d "$ac_dir" ||
2116 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2117 continue
2118 ac_builddir=.
2120 case "$ac_dir" in
2121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2124 # A ".." for each directory in $ac_dir_suffix.
2125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2126 case $ac_top_builddir_sub in
2127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2129 esac ;;
2130 esac
2131 ac_abs_top_builddir=$ac_pwd
2132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2133 # for backward compatibility:
2134 ac_top_builddir=$ac_top_build_prefix
2136 case $srcdir in
2137 .) # We are building in place.
2138 ac_srcdir=.
2139 ac_top_srcdir=$ac_top_builddir_sub
2140 ac_abs_top_srcdir=$ac_pwd ;;
2141 [\\/]* | ?:[\\/]* ) # Absolute name.
2142 ac_srcdir=$srcdir$ac_dir_suffix;
2143 ac_top_srcdir=$srcdir
2144 ac_abs_top_srcdir=$srcdir ;;
2145 *) # Relative name.
2146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2147 ac_top_srcdir=$ac_top_build_prefix$srcdir
2148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2149 esac
2150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2152 cd "$ac_dir" || { ac_status=$?; continue; }
2153 # Check for guested configure.
2154 if test -f "$ac_srcdir/configure.gnu"; then
2155 echo &&
2156 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2157 elif test -f "$ac_srcdir/configure"; then
2158 echo &&
2159 $SHELL "$ac_srcdir/configure" --help=recursive
2160 else
2161 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2162 fi || ac_status=$?
2163 cd "$ac_pwd" || { ac_status=$?; break; }
2164 done
2167 test -n "$ac_init_help" && exit $ac_status
2168 if $ac_init_version; then
2169 cat <<\_ACEOF
2170 emacs configure 24.1.50
2171 generated by GNU Autoconf 2.65
2173 Copyright (C) 2009 Free Software Foundation, Inc.
2174 This configure script is free software; the Free Software Foundation
2175 gives unlimited permission to copy, distribute and modify it.
2176 _ACEOF
2177 exit
2180 ## ------------------------ ##
2181 ## Autoconf initialization. ##
2182 ## ------------------------ ##
2184 # ac_fn_c_try_compile LINENO
2185 # --------------------------
2186 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_compile ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext
2191 if { { ac_try="$ac_compile"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_compile") 2>conftest.err
2199 ac_status=$?
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_c_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest.$ac_objext; then :
2210 ac_retval=0
2211 else
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 ac_retval=1
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 as_fn_set_status $ac_retval
2220 } # ac_fn_c_try_compile
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_c_try_cpp ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_cpp conftest.$ac_ext"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } >/dev/null && {
2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 }; then :
2247 ac_retval=0
2248 else
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2252 ac_retval=1
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2257 } # ac_fn_c_try_cpp
2259 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2260 # -------------------------------------------------------
2261 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2262 # the include files in INCLUDES and setting the cache variable VAR
2263 # accordingly.
2264 ac_fn_c_check_header_mongrel ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 else
2277 # Is the header compilable?
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2279 $as_echo_n "checking $2 usability... " >&6; }
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2283 #include <$2>
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 ac_header_compiler=yes
2287 else
2288 ac_header_compiler=no
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2292 $as_echo "$ac_header_compiler" >&6; }
2294 # Is the header present?
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2296 $as_echo_n "checking $2 presence... " >&6; }
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 #include <$2>
2300 _ACEOF
2301 if ac_fn_c_try_cpp "$LINENO"; then :
2302 ac_header_preproc=yes
2303 else
2304 ac_header_preproc=no
2306 rm -f conftest.err conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2308 $as_echo "$ac_header_preproc" >&6; }
2310 # So? What about this header?
2311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2312 yes:no: )
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2314 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2316 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318 no:yes:* )
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2320 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2322 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2324 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2326 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2328 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2330 esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=\$ac_header_compiler"
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344 } # ac_fn_c_check_header_mongrel
2346 # ac_fn_c_try_run LINENO
2347 # ----------------------
2348 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2349 # that executables *can* be run.
2350 ac_fn_c_try_run ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if { { ac_try="$ac_link"
2354 case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_link") 2>&5
2361 ac_status=$?
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2364 { { case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; }; }; then :
2374 ac_retval=0
2375 else
2376 $as_echo "$as_me: program exited with status $ac_status" >&5
2377 $as_echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_retval=$ac_status
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 as_fn_set_status $ac_retval
2386 } # ac_fn_c_try_run
2388 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2389 # -------------------------------------------------------
2390 # Tests whether HEADER exists and can be compiled using the include files in
2391 # INCLUDES, setting the cache variable VAR accordingly.
2392 ac_fn_c_check_header_compile ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2403 #include <$2>
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 eval "$3=yes"
2407 else
2408 eval "$3=no"
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 } # ac_fn_c_check_header_compile
2419 # ac_fn_c_try_link LINENO
2420 # -----------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2422 ac_fn_c_try_link ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2434 ac_status=$?
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest$ac_exeext
2447 }; then :
2448 ac_retval=0
2449 else
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 ac_retval=1
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 as_fn_set_status $ac_retval
2463 } # ac_fn_c_try_link
2465 # ac_fn_c_check_decl LINENO SYMBOL VAR
2466 # ------------------------------------
2467 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2468 ac_fn_c_check_decl ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2472 $as_echo_n "checking whether $2 is declared... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2480 main ()
2482 #ifndef $2
2483 (void) $2;
2484 #endif
2487 return 0;
2489 _ACEOF
2490 if ac_fn_c_try_compile "$LINENO"; then :
2491 eval "$3=yes"
2492 else
2493 eval "$3=no"
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 eval ac_res=\$$3
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502 } # ac_fn_c_check_decl
2504 # ac_fn_c_check_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2526 #ifdef __STDC__
2527 # include <limits.h>
2528 #else
2529 # include <assert.h>
2530 #endif
2532 #undef $2
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2537 #ifdef __cplusplus
2538 extern "C"
2539 #endif
2540 char $2 ();
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2545 choke me
2546 #endif
2549 main ()
2551 return $2 ();
2553 return 0;
2555 _ACEOF
2556 if ac_fn_c_try_link "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2561 rm -f core conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_func
2571 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2572 # ----------------------------------------------------
2573 # Tries to find if the field MEMBER exists in type AGGR, after including
2574 # INCLUDES, setting cache variable VAR accordingly.
2575 ac_fn_c_check_member ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2579 $as_echo_n "checking for $2.$3... " >&6; }
2580 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2587 main ()
2589 static $2 ac_aggr;
2590 if (ac_aggr.$3)
2591 return 0;
2593 return 0;
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$4=yes"
2598 else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2603 main ()
2605 static $2 ac_aggr;
2606 if (sizeof ac_aggr.$3)
2607 return 0;
2609 return 0;
2611 _ACEOF
2612 if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$4=yes"
2614 else
2615 eval "$4=no"
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 eval ac_res=\$$4
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623 $as_echo "$ac_res" >&6; }
2624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2626 } # ac_fn_c_check_member
2628 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2629 # --------------------------------------------
2630 # Tries to find the compile-time value of EXPR in a program that includes
2631 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2632 # computed
2633 ac_fn_c_compute_int ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 if test "$cross_compiling" = yes; then
2637 # Depending upon the size, compute the lo and hi bounds.
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2642 main ()
2644 static int test_array [1 - 2 * !(($2) >= 0)];
2645 test_array [0] = 0
2648 return 0;
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652 ac_lo=0 ac_mid=0
2653 while :; do
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2658 main ()
2660 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2661 test_array [0] = 0
2664 return 0;
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 ac_hi=$ac_mid; break
2669 else
2670 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2671 if test $ac_lo -le $ac_mid; then
2672 ac_lo= ac_hi=
2673 break
2675 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 done
2679 else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2684 main ()
2686 static int test_array [1 - 2 * !(($2) < 0)];
2687 test_array [0] = 0
2690 return 0;
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694 ac_hi=-1 ac_mid=-1
2695 while :; do
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2700 main ()
2702 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2703 test_array [0] = 0
2706 return 0;
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710 ac_lo=$ac_mid; break
2711 else
2712 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2713 if test $ac_mid -le $ac_hi; then
2714 ac_lo= ac_hi=
2715 break
2717 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 else
2722 ac_lo= ac_hi=
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 main ()
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2737 test_array [0] = 0
2740 return 0;
2742 _ACEOF
2743 if ac_fn_c_try_compile "$LINENO"; then :
2744 ac_hi=$ac_mid
2745 else
2746 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 done
2750 case $ac_lo in #((
2751 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2752 '') ac_retval=1 ;;
2753 esac
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2758 static long int longval () { return $2; }
2759 static unsigned long int ulongval () { return $2; }
2760 #include <stdio.h>
2761 #include <stdlib.h>
2763 main ()
2766 FILE *f = fopen ("conftest.val", "w");
2767 if (! f)
2768 return 1;
2769 if (($2) < 0)
2771 long int i = longval ();
2772 if (i != ($2))
2773 return 1;
2774 fprintf (f, "%ld", i);
2776 else
2778 unsigned long int i = ulongval ();
2779 if (i != ($2))
2780 return 1;
2781 fprintf (f, "%lu", i);
2783 /* Do not output a trailing newline, as this causes \r\n confusion
2784 on some platforms. */
2785 return ferror (f) || fclose (f) != 0;
2788 return 0;
2790 _ACEOF
2791 if ac_fn_c_try_run "$LINENO"; then :
2792 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2793 else
2794 ac_retval=1
2796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2797 conftest.$ac_objext conftest.beam conftest.$ac_ext
2798 rm -f conftest.val
2801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802 as_fn_set_status $ac_retval
2804 } # ac_fn_c_compute_int
2806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2807 # -------------------------------------------
2808 # Tests whether TYPE exists after having included INCLUDES, setting cache
2809 # variable VAR accordingly.
2810 ac_fn_c_check_type ()
2812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2814 $as_echo_n "checking for $2... " >&6; }
2815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 eval "$3=no"
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2823 main ()
2825 if (sizeof ($2))
2826 return 0;
2828 return 0;
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2836 main ()
2838 if (sizeof (($2)))
2839 return 0;
2841 return 0;
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2846 else
2847 eval "$3=yes"
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2858 } # ac_fn_c_check_type
2860 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2861 # ----------------------------------------------
2862 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2863 ac_fn_c_check_header_preproc ()
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2873 #include <$2>
2874 _ACEOF
2875 if ac_fn_c_try_cpp "$LINENO"; then :
2876 eval "$3=yes"
2877 else
2878 eval "$3=no"
2880 rm -f conftest.err conftest.$ac_ext
2882 eval ac_res=\$$3
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2887 } # ac_fn_c_check_header_preproc
2888 cat >config.log <<_ACEOF
2889 This file contains any messages produced by compilers while
2890 running configure, to aid debugging if configure makes a mistake.
2892 It was created by emacs $as_me 24.1.50, which was
2893 generated by GNU Autoconf 2.65. Invocation command line was
2895 $ $0 $@
2897 _ACEOF
2898 exec 5>>config.log
2900 cat <<_ASUNAME
2901 ## --------- ##
2902 ## Platform. ##
2903 ## --------- ##
2905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2922 _ASUNAME
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 $as_echo "PATH: $as_dir"
2930 done
2931 IFS=$as_save_IFS
2933 } >&5
2935 cat >&5 <<_ACEOF
2938 ## ----------- ##
2939 ## Core tests. ##
2940 ## ----------- ##
2942 _ACEOF
2945 # Keep a trace of the command line.
2946 # Strip out --no-create and --no-recursion so they do not pile up.
2947 # Strip out --silent because we don't want to record it for future runs.
2948 # Also quote any args containing shell meta-characters.
2949 # Make two passes to allow for proper duplicate-argument suppression.
2950 ac_configure_args=
2951 ac_configure_args0=
2952 ac_configure_args1=
2953 ac_must_keep_next=false
2954 for ac_pass in 1 2
2956 for ac_arg
2958 case $ac_arg in
2959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2961 | -silent | --silent | --silen | --sile | --sil)
2962 continue ;;
2963 *\'*)
2964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2965 esac
2966 case $ac_pass in
2967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2969 as_fn_append ac_configure_args1 " '$ac_arg'"
2970 if test $ac_must_keep_next = true; then
2971 ac_must_keep_next=false # Got value, back to normal.
2972 else
2973 case $ac_arg in
2974 *=* | --config-cache | -C | -disable-* | --disable-* \
2975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2977 | -with-* | --with-* | -without-* | --without-* | --x)
2978 case "$ac_configure_args0 " in
2979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2980 esac
2982 -* ) ac_must_keep_next=true ;;
2983 esac
2985 as_fn_append ac_configure_args " '$ac_arg'"
2987 esac
2988 done
2989 done
2990 { ac_configure_args0=; unset ac_configure_args0;}
2991 { ac_configure_args1=; unset ac_configure_args1;}
2993 # When interrupted or exit'd, cleanup temporary files, and complete
2994 # config.log. We remove comments because anyway the quotes in there
2995 # would cause problems or look ugly.
2996 # WARNING: Use '\'' to represent an apostrophe within the trap.
2997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2998 trap 'exit_status=$?
2999 # Save into config.log some information that might help in debugging.
3001 echo
3003 cat <<\_ASBOX
3004 ## ---------------- ##
3005 ## Cache variables. ##
3006 ## ---------------- ##
3007 _ASBOX
3008 echo
3009 # The following way of writing the cache mishandles newlines in values,
3011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012 eval ac_val=\$$ac_var
3013 case $ac_val in #(
3014 *${as_nl}*)
3015 case $ac_var in #(
3016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3018 esac
3019 case $ac_var in #(
3020 _ | IFS | as_nl) ;; #(
3021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3022 *) { eval $ac_var=; unset $ac_var;} ;;
3023 esac ;;
3024 esac
3025 done
3026 (set) 2>&1 |
3027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028 *${as_nl}ac_space=\ *)
3029 sed -n \
3030 "s/'\''/'\''\\\\'\'''\''/g;
3031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3032 ;; #(
3034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3036 esac |
3037 sort
3039 echo
3041 cat <<\_ASBOX
3042 ## ----------------- ##
3043 ## Output variables. ##
3044 ## ----------------- ##
3045 _ASBOX
3046 echo
3047 for ac_var in $ac_subst_vars
3049 eval ac_val=\$$ac_var
3050 case $ac_val in
3051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3052 esac
3053 $as_echo "$ac_var='\''$ac_val'\''"
3054 done | sort
3055 echo
3057 if test -n "$ac_subst_files"; then
3058 cat <<\_ASBOX
3059 ## ------------------- ##
3060 ## File substitutions. ##
3061 ## ------------------- ##
3062 _ASBOX
3063 echo
3064 for ac_var in $ac_subst_files
3066 eval ac_val=\$$ac_var
3067 case $ac_val in
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 esac
3070 $as_echo "$ac_var='\''$ac_val'\''"
3071 done | sort
3072 echo
3075 if test -s confdefs.h; then
3076 cat <<\_ASBOX
3077 ## ----------- ##
3078 ## confdefs.h. ##
3079 ## ----------- ##
3080 _ASBOX
3081 echo
3082 cat confdefs.h
3083 echo
3085 test "$ac_signal" != 0 &&
3086 $as_echo "$as_me: caught signal $ac_signal"
3087 $as_echo "$as_me: exit $exit_status"
3088 } >&5
3089 rm -f core *.core core.conftest.* &&
3090 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3091 exit $exit_status
3093 for ac_signal in 1 2 13 15; do
3094 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3095 done
3096 ac_signal=0
3098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3099 rm -f -r conftest* confdefs.h
3101 $as_echo "/* confdefs.h */" > confdefs.h
3103 # Predefined preprocessor variables.
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_NAME "$PACKAGE_NAME"
3107 _ACEOF
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3111 _ACEOF
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3115 _ACEOF
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_STRING "$PACKAGE_STRING"
3119 _ACEOF
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3123 _ACEOF
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_URL "$PACKAGE_URL"
3127 _ACEOF
3130 # Let the site file select an alternate cache file if it wants to.
3131 # Prefer an explicitly selected file to automatically selected ones.
3132 ac_site_file1=NONE
3133 ac_site_file2=NONE
3134 if test -n "$CONFIG_SITE"; then
3135 ac_site_file1=$CONFIG_SITE
3136 elif test "x$prefix" != xNONE; then
3137 ac_site_file1=$prefix/share/config.site
3138 ac_site_file2=$prefix/etc/config.site
3139 else
3140 ac_site_file1=$ac_default_prefix/share/config.site
3141 ac_site_file2=$ac_default_prefix/etc/config.site
3143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3145 test "x$ac_site_file" = xNONE && continue
3146 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3149 sed 's/^/| /' "$ac_site_file" >&5
3150 . "$ac_site_file"
3152 done
3154 if test -r "$cache_file"; then
3155 # Some versions of bash will fail to source /dev/null (special files
3156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3159 $as_echo "$as_me: loading cache $cache_file" >&6;}
3160 case $cache_file in
3161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3162 *) . "./$cache_file";;
3163 esac
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3167 $as_echo "$as_me: creating cache $cache_file" >&6;}
3168 >$cache_file
3171 as_fn_append ac_func_list " readlinkat"
3172 gl_getopt_required=GNU
3173 as_fn_append ac_header_list " getopt.h"
3174 as_fn_append ac_func_list " gettimeofday"
3175 as_fn_append ac_func_list " nanotime"
3176 as_fn_append ac_header_list " sys/time.h"
3177 as_fn_append ac_header_list " sys/socket.h"
3178 as_fn_append ac_header_list " wchar.h"
3179 as_fn_append ac_header_list " stdint.h"
3180 as_fn_append ac_header_list " inttypes.h"
3181 as_fn_append ac_func_list " lstat"
3182 as_fn_append ac_header_list " unistd.h"
3183 as_fn_append ac_func_list " alarm"
3184 as_fn_append ac_header_list " sys/select.h"
3185 as_fn_append ac_func_list " pselect"
3186 as_fn_append ac_func_list " pthread_sigmask"
3187 as_fn_append ac_func_list " readlink"
3188 as_fn_append ac_func_list " tzset"
3189 as_fn_append ac_func_list " strtoimax"
3190 as_fn_append ac_func_list " strtoumax"
3191 as_fn_append ac_func_list " symlink"
3192 as_fn_append ac_header_list " sys/stat.h"
3193 as_fn_append ac_func_list " localtime_r"
3194 as_fn_append ac_header_list " utime.h"
3195 as_fn_append ac_func_list " futimes"
3196 as_fn_append ac_func_list " futimesat"
3197 as_fn_append ac_func_list " futimens"
3198 as_fn_append ac_func_list " utimensat"
3199 as_fn_append ac_func_list " lutimes"
3200 as_fn_append ac_header_list " sys/param.h"
3201 as_fn_append ac_header_list " linux/version.h"
3202 as_fn_append ac_header_list " sys/systeminfo.h"
3203 as_fn_append ac_header_list " stdio_ext.h"
3204 as_fn_append ac_header_list " fcntl.h"
3205 as_fn_append ac_header_list " coff.h"
3206 as_fn_append ac_header_list " pty.h"
3207 as_fn_append ac_header_list " sys/vlimit.h"
3208 as_fn_append ac_header_list " sys/resource.h"
3209 as_fn_append ac_header_list " sys/utsname.h"
3210 as_fn_append ac_header_list " pwd.h"
3211 as_fn_append ac_header_list " utmp.h"
3212 as_fn_append ac_header_list " dirent.h"
3213 as_fn_append ac_header_list " util.h"
3214 as_fn_append ac_header_list " stdlib.h"
3215 as_fn_append ac_header_list " pthread.h"
3216 as_fn_append ac_header_list " malloc/malloc.h"
3217 as_fn_append ac_header_list " maillock.h"
3218 as_fn_append ac_header_list " sys/un.h"
3219 # Check that the precious variables saved in the cache have kept the same
3220 # value.
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3228 set,)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3232 ,set)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3236 ,);;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x $ac_old_val`
3241 ac_new_val_w=`echo x $ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3245 ac_cache_corrupted=:
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3255 fi;;
3256 esac
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3259 case $ac_new_val in
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3262 esac
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3266 esac
3268 done
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3290 ac_aux_dir=
3291 for ac_dir in build-aux "$srcdir"/build-aux; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3294 ac_aux_dir=$ac_dir
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3296 break 2
3298 done
3299 done
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 am__api_version='1.11'
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3321 # AIX /bin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 ./ | .// | /[cC]/* | \
3343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3345 /usr/ucb/* ) ;;
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3349 # by default.
3350 for ac_prog in ginstall scoinst install; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3357 elif test $ac_prog = install &&
3358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3361 else
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one > conftest.one
3364 echo two > conftest.two
3365 mkdir conftest.dir
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3367 test -s conftest.one && test -s conftest.two &&
3368 test -s conftest.dir/conftest.one &&
3369 test -s conftest.dir/conftest.two
3370 then
3371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3372 break 3
3376 done
3377 done
3379 esac
3381 done
3382 IFS=$as_save_IFS
3384 rm -rf conftest.one conftest.two conftest.dir
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3389 else
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL=$ac_install_sh
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3410 # Just in case
3411 sleep 1
3412 echo timestamp > conftest.file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3415 am_lf='
3417 case `pwd` in
3418 *[\\\"\#\$\&\'\`$am_lf]*)
3419 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3420 esac
3421 case $srcdir in
3422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3424 esac
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3430 # directory).
3431 if (
3432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3434 # -L didn't work.
3435 set X `ls -t "$srcdir/configure" conftest.file`
3437 rm -f conftest.file
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3449 test "$2" = conftest.file
3451 then
3452 # Ok.
3454 else
3455 as_fn_error "newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE &&
3461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE &&
3464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir=`cd $ac_aux_dir && pwd`
3473 if test x"${MISSING+set}" != xset; then
3474 case $am_aux_dir in
3475 *\ * | *\ *)
3476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3479 esac
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run="$MISSING --run "
3484 else
3485 am_missing_run=
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if test x"${install_sh}" != xset; then
3491 case $am_aux_dir in
3492 *\ * | *\ *)
3493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495 install_sh="\${SHELL} $am_aux_dir/install-sh"
3496 esac
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}strip; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3526 done
3527 done
3528 IFS=$as_save_IFS
3532 STRIP=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3543 if test -z "$ac_cv_prog_STRIP"; then
3544 ac_ct_STRIP=$STRIP
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3566 done
3567 done
3568 IFS=$as_save_IFS
3572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3581 if test "x$ac_ct_STRIP" = x; then
3582 STRIP=":"
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3589 esac
3590 STRIP=$ac_ct_STRIP
3592 else
3593 STRIP="$ac_cv_prog_STRIP"
3597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in mkdir gmkdir; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3618 break 3;;
3619 esac
3620 done
3621 done
3622 done
3623 IFS=$as_save_IFS
3627 test -d ./--version && rmdir ./--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P="$ac_cv_path_mkdir -p"
3630 else
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P="$ac_install_sh -d"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3642 mkdir_p="$MKDIR_P"
3643 case $mkdir_p in
3644 [\\/$]* | ?:[\\/]*) ;;
3645 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3646 esac
3648 for ac_prog in gawk mawk nawk awk
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 AWK=$ac_cv_prog_AWK
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$AWK" && break
3688 done
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3692 set x ${MAKE-make}
3693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat >conftest.make <<\_ACEOF
3698 SHELL = /bin/sh
3699 all:
3700 @echo '@@@%%%=$(MAKE)=@@@%%%'
3701 _ACEOF
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3704 *@@@%%%=?*=@@@%%%*)
3705 eval ac_cv_prog_make_${ac_make}_set=yes;;
3707 eval ac_cv_prog_make_${ac_make}_set=no;;
3708 esac
3709 rm -f conftest.make
3711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 SET_MAKE=
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE="MAKE=${MAKE-make}"
3721 rm -rf .tst 2>/dev/null
3722 mkdir .tst 2>/dev/null
3723 if test -d .tst; then
3724 am__leading_dot=.
3725 else
3726 am__leading_dot=_
3728 rmdir .tst 2>/dev/null
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status; then
3736 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath --version) >/dev/null 2>/dev/null; then
3743 CYGPATH_W='cygpath -w'
3744 else
3745 CYGPATH_W=echo
3750 # Define the identity of the package.
3751 PACKAGE='emacs'
3752 VERSION='24.1.50'
3755 cat >>confdefs.h <<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3757 _ACEOF
3760 cat >>confdefs.h <<_ACEOF
3761 #define VERSION "$VERSION"
3762 _ACEOF
3764 # Some tools Automake needs.
3766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3780 # We need awk for the "check" target. The system "awk" is bad on
3781 # some platforms.
3782 # Always define AMTAR for backward compatibility.
3784 AMTAR=${AMTAR-"${am_missing_run}tar"}
3786 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3795 lispdir='${datadir}/emacs/${version}/lisp'
3796 leimdir='${datadir}/emacs/${version}/leim'
3797 standardlisppath='${lispdir}:${leimdir}'
3798 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3799 '${datadir}/emacs/site-lisp'
3800 lisppath='${locallisppath}:${standardlisppath}'
3801 etcdir='${datadir}/emacs/${version}/etc'
3802 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3803 docdir='${datadir}/emacs/${version}/etc'
3804 gamedir='${localstatedir}/games/emacs'
3809 # Check whether --with-pop was given.
3810 if test "${with_pop+set}" = set; then :
3811 withval=$with_pop;
3812 else
3813 with_pop=yes
3816 if test "$with_pop" = yes; then
3817 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3822 # Check whether --with-kerberos was given.
3823 if test "${with_kerberos+set}" = set; then :
3824 withval=$with_kerberos;
3825 else
3826 with_kerberos=no
3829 if test "$with_kerberos" != no; then
3830 $as_echo "#define KERBEROS 1" >>confdefs.h
3835 # Check whether --with-kerberos5 was given.
3836 if test "${with_kerberos5+set}" = set; then :
3837 withval=$with_kerberos5;
3838 else
3839 with_kerberos5=no
3842 if test "${with_kerberos5}" != no; then
3843 if test "${with_kerberos}" = no; then
3844 with_kerberos=yes
3845 $as_echo "#define KERBEROS 1" >>confdefs.h
3849 $as_echo "#define KERBEROS5 1" >>confdefs.h
3854 # Check whether --with-hesiod was given.
3855 if test "${with_hesiod+set}" = set; then :
3856 withval=$with_hesiod;
3857 else
3858 with_hesiod=no
3861 if test "$with_hesiod" != no; then
3863 $as_echo "#define HESIOD 1" >>confdefs.h
3868 # Check whether --with-mmdf was given.
3869 if test "${with_mmdf+set}" = set; then :
3870 withval=$with_mmdf;
3871 else
3872 with_mmdf=no
3875 if test "$with_mmdf" != no; then
3877 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3882 # Check whether --with-mail-unlink was given.
3883 if test "${with_mail_unlink+set}" = set; then :
3884 withval=$with_mail_unlink;
3885 else
3886 with_mail_unlink=no
3889 if test "$with_mail_unlink" != no; then
3891 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3896 # Check whether --with-mailhost was given.
3897 if test "${with_mailhost+set}" = set; then :
3898 withval=$with_mailhost;
3899 cat >>confdefs.h <<_ACEOF
3900 #define MAILHOST "$withval"
3901 _ACEOF
3907 # Check whether --with-sound was given.
3908 if test "${with_sound+set}" = set; then :
3909 withval=$with_sound;
3910 else
3911 with_sound=yes
3916 # Check whether --with-sync-input was given.
3917 if test "${with_sync_input+set}" = set; then :
3918 withval=$with_sync_input;
3919 else
3920 with_sync_input=yes
3923 if test "$with_sync_input" = yes; then
3925 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3930 # Check whether --with-x-toolkit was given.
3931 if test "${with_x_toolkit+set}" = set; then :
3932 withval=$with_x_toolkit; case "${withval}" in
3933 y | ye | yes ) val=gtk ;;
3934 n | no ) val=no ;;
3935 l | lu | luc | luci | lucid ) val=lucid ;;
3936 a | at | ath | athe | athen | athena ) val=athena ;;
3937 m | mo | mot | moti | motif ) val=motif ;;
3938 g | gt | gtk ) val=gtk ;;
3939 gtk3 ) val=gtk3 ;;
3941 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3943 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3945 esac
3946 with_x_toolkit=$val
3952 # Check whether --with-wide-int was given.
3953 if test "${with_wide_int+set}" = set; then :
3954 withval=$with_wide_int;
3955 else
3956 with_wide_int=no
3959 if test "$with_wide_int" = yes; then
3961 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3966 # Check whether --with-xpm was given.
3967 if test "${with_xpm+set}" = set; then :
3968 withval=$with_xpm;
3969 else
3970 with_xpm=yes
3974 # Check whether --with-jpeg was given.
3975 if test "${with_jpeg+set}" = set; then :
3976 withval=$with_jpeg;
3977 else
3978 with_jpeg=yes
3982 # Check whether --with-tiff was given.
3983 if test "${with_tiff+set}" = set; then :
3984 withval=$with_tiff;
3985 else
3986 with_tiff=yes
3990 # Check whether --with-gif was given.
3991 if test "${with_gif+set}" = set; then :
3992 withval=$with_gif;
3993 else
3994 with_gif=yes
3998 # Check whether --with-png was given.
3999 if test "${with_png+set}" = set; then :
4000 withval=$with_png;
4001 else
4002 with_png=yes
4006 # Check whether --with-rsvg was given.
4007 if test "${with_rsvg+set}" = set; then :
4008 withval=$with_rsvg;
4009 else
4010 with_rsvg=yes
4014 # Check whether --with-xml2 was given.
4015 if test "${with_xml2+set}" = set; then :
4016 withval=$with_xml2;
4017 else
4018 with_xml2=yes
4022 # Check whether --with-imagemagick was given.
4023 if test "${with_imagemagick+set}" = set; then :
4024 withval=$with_imagemagick;
4025 else
4026 with_imagemagick=yes
4031 # Check whether --with-xft was given.
4032 if test "${with_xft+set}" = set; then :
4033 withval=$with_xft;
4034 else
4035 with_xft=yes
4039 # Check whether --with-libotf was given.
4040 if test "${with_libotf+set}" = set; then :
4041 withval=$with_libotf;
4042 else
4043 with_libotf=yes
4047 # Check whether --with-m17n-flt was given.
4048 if test "${with_m17n_flt+set}" = set; then :
4049 withval=$with_m17n_flt;
4050 else
4051 with_m17n_flt=yes
4056 # Check whether --with-toolkit-scroll-bars was given.
4057 if test "${with_toolkit_scroll_bars+set}" = set; then :
4058 withval=$with_toolkit_scroll_bars;
4059 else
4060 with_toolkit_scroll_bars=yes
4064 # Check whether --with-xaw3d was given.
4065 if test "${with_xaw3d+set}" = set; then :
4066 withval=$with_xaw3d;
4067 else
4068 with_xaw3d=yes
4072 # Check whether --with-xim was given.
4073 if test "${with_xim+set}" = set; then :
4074 withval=$with_xim;
4075 else
4076 with_xim=yes
4080 # Check whether --with-ns was given.
4081 if test "${with_ns+set}" = set; then :
4082 withval=$with_ns;
4083 else
4084 with_ns=no
4089 # Check whether --with-gpm was given.
4090 if test "${with_gpm+set}" = set; then :
4091 withval=$with_gpm;
4092 else
4093 with_gpm=yes
4097 # Check whether --with-dbus was given.
4098 if test "${with_dbus+set}" = set; then :
4099 withval=$with_dbus;
4100 else
4101 with_dbus=yes
4105 # Check whether --with-gconf was given.
4106 if test "${with_gconf+set}" = set; then :
4107 withval=$with_gconf;
4108 else
4109 with_gconf=yes
4113 # Check whether --with-gsettings was given.
4114 if test "${with_gsettings+set}" = set; then :
4115 withval=$with_gsettings;
4116 else
4117 with_gsettings=yes
4121 # Check whether --with-selinux was given.
4122 if test "${with_selinux+set}" = set; then :
4123 withval=$with_selinux;
4124 else
4125 with_selinux=yes
4129 # Check whether --with-gnutls was given.
4130 if test "${with_gnutls+set}" = set; then :
4131 withval=$with_gnutls;
4132 else
4133 with_gnutls=yes
4137 ## For the times when you want to build Emacs but don't have
4138 ## a suitable makeinfo, and can live without the manuals.
4140 # Check whether --with-makeinfo was given.
4141 if test "${with_makeinfo+set}" = set; then :
4142 withval=$with_makeinfo;
4143 else
4144 with_makeinfo=yes
4148 ## Makefile.in needs the cache file name.
4151 ## This is an option because I do not know if all info/man support
4152 ## compressed files, nor how to test if they do so.
4154 # Check whether --with-compress-info was given.
4155 if test "${with_compress_info+set}" = set; then :
4156 withval=$with_compress_info;
4157 else
4158 with_compress_info=yes
4161 if test $with_compress_info = yes; then
4162 GZIP_INFO=yes
4163 else
4164 GZIP_INFO=
4169 # Check whether --with-pkg-config-prog was given.
4170 if test "${with_pkg_config_prog+set}" = set; then :
4171 withval=$with_pkg_config_prog;
4174 if test "X${with_pkg_config_prog}" != X; then
4175 if test "${with_pkg_config_prog}" != yes; then
4176 PKG_CONFIG="${with_pkg_config_prog}"
4180 CRT_DIR=
4182 # Check whether --with-crt-dir was given.
4183 if test "${with_crt_dir+set}" = set; then :
4184 withval=$with_crt_dir;
4187 CRT_DIR="${with_crt_dir}"
4190 # Check whether --with-gameuser was given.
4191 if test "${with_gameuser+set}" = set; then :
4192 withval=$with_gameuser;
4195 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4196 && gameuser="${with_gameuser}"
4197 test "X$gameuser" = X && gameuser=games
4200 # Check whether --with-gnustep-conf was given.
4201 if test "${with_gnustep_conf+set}" = set; then :
4202 withval=$with_gnustep_conf;
4205 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4206 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4207 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4208 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4210 # Check whether --enable-ns-self-contained was given.
4211 if test "${enable_ns_self_contained+set}" = set; then :
4212 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4213 else
4214 EN_NS_SELF_CONTAINED=yes
4218 # Check whether --enable-locallisppath was given.
4219 if test "${enable_locallisppath+set}" = set; then :
4220 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4221 locallisppath=
4222 elif test "${enableval}" != "yes"; then
4223 locallisppath=${enableval}
4228 # Check whether --enable-checking was given.
4229 if test "${enable_checking+set}" = set; then :
4230 enableval=$enable_checking; ac_checking_flags="${enableval}"
4233 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4234 for check in $ac_checking_flags
4236 case $check in
4237 # these set all the flags to specific states
4238 yes) ac_enable_checking=1 ;;
4239 no) ac_enable_checking= ;
4240 ac_gc_check_stringbytes= ;
4241 ac_gc_check_string_overrun= ;
4242 ac_gc_check_string_free_list= ;
4243 ac_xmalloc_overrun= ;
4244 ac_gc_check_cons_list= ;
4245 ac_glyphs_debug= ;;
4246 all) ac_enable_checking=1 ;
4247 ac_gc_check_stringbytes=1 ;
4248 ac_gc_check_string_overrun=1 ;
4249 ac_gc_check_string_free_list=1 ;
4250 ac_xmalloc_overrun=1 ;
4251 ac_gc_check_cons_list=1 ;
4252 ac_glyphs_debug=1 ;;
4253 # these enable particular checks
4254 stringbytes) ac_gc_check_stringbytes=1 ;;
4255 stringoverrun) ac_gc_check_string_overrun=1 ;;
4256 stringfreelist) ac_gc_check_string_free_list=1 ;;
4257 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4258 conslist) ac_gc_check_cons_list=1 ;;
4259 glyphs) ac_glyphs_debug=1 ;;
4260 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4261 esac
4262 done
4263 IFS="$ac_save_IFS"
4265 if test x$ac_enable_checking != x ; then
4267 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4270 if test x$ac_gc_check_stringbytes != x ; then
4272 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4275 if test x$ac_gc_check_string_overrun != x ; then
4277 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4280 if test x$ac_gc_check_string_free_list != x ; then
4282 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4285 if test x$ac_xmalloc_overrun != x ; then
4287 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4290 if test x$ac_gc_check_cons_list != x ; then
4292 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4295 if test x$ac_glyphs_debug != x ; then
4297 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4301 # Check whether --enable-check-lisp-object-type was given.
4302 if test "${enable_check_lisp_object_type+set}" = set; then :
4303 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4305 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4312 # Check whether --enable-profiling was given.
4313 if test "${enable_profiling+set}" = set; then :
4314 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4317 if test x$ac_enable_profiling != x ; then
4318 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4319 else
4320 PROFILING_CFLAGS=
4324 # Check whether --enable-autodepend was given.
4325 if test "${enable_autodepend+set}" = set; then :
4326 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4327 else
4328 ac_enable_autodepend=yes
4332 #### Make srcdir absolute, if it isn't already. It's important to
4333 #### avoid running the path through pwd unnecessarily, since pwd can
4334 #### give you automounter prefixes, which can go away. We do all this
4335 #### so Emacs can find its files when run uninstalled.
4336 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4337 unset CDPATH
4338 case "${srcdir}" in
4339 /* ) ;;
4341 ## We may be able to use the $PWD environment variable to make this
4342 ## absolute. But sometimes PWD is inaccurate.
4343 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4344 ## but that tested only for a well-formed and valid PWD,
4345 ## it did not object when PWD was well-formed and valid but just wrong.
4346 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4347 then
4348 srcdir="$PWD"
4349 else
4350 srcdir="`(cd ${srcdir}; pwd)`"
4353 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4354 esac
4356 #### Given the configuration name, set opsysfile to the
4357 #### name of s/*.h file we should use.
4359 ### Canonicalize the configuration name.
4361 # Make sure we can run config.sub.
4362 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4363 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4366 $as_echo_n "checking build system type... " >&6; }
4367 if test "${ac_cv_build+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 ac_build_alias=$build_alias
4371 test "x$ac_build_alias" = x &&
4372 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4373 test "x$ac_build_alias" = x &&
4374 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4375 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4376 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4380 $as_echo "$ac_cv_build" >&6; }
4381 case $ac_cv_build in
4382 *-*-*) ;;
4383 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4384 esac
4385 build=$ac_cv_build
4386 ac_save_IFS=$IFS; IFS='-'
4387 set x $ac_cv_build
4388 shift
4389 build_cpu=$1
4390 build_vendor=$2
4391 shift; shift
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4394 build_os=$*
4395 IFS=$ac_save_IFS
4396 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4400 $as_echo_n "checking host system type... " >&6; }
4401 if test "${ac_cv_host+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test "x$host_alias" = x; then
4405 ac_cv_host=$ac_cv_build
4406 else
4407 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4408 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4413 $as_echo "$ac_cv_host" >&6; }
4414 case $ac_cv_host in
4415 *-*-*) ;;
4416 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4417 esac
4418 host=$ac_cv_host
4419 ac_save_IFS=$IFS; IFS='-'
4420 set x $ac_cv_host
4421 shift
4422 host_cpu=$1
4423 host_vendor=$2
4424 shift; shift
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4427 host_os=$*
4428 IFS=$ac_save_IFS
4429 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4432 canonical=$host
4433 configuration=${host_alias-${build_alias-$host}}
4437 ### If you add support for a new configuration, add code to this
4438 ### switch statement to recognize your configuration name and select
4439 ### the appropriate operating system file.
4441 ### You would hope that you could choose an s/*.h
4442 ### file based on the operating system portion. However, it turns out
4443 ### that each s/*.h file is pretty manufacturer-specific.
4444 ### So we basically have to have a special case for each
4445 ### configuration name.
4447 ### As far as handling version numbers on operating systems is
4448 ### concerned, make sure things will fail in a fixable way. If
4449 ### /etc/MACHINES doesn't say anything about version numbers, be
4450 ### prepared to handle anything reasonably. If version numbers
4451 ### matter, be sure /etc/MACHINES says something about it.
4453 opsys='' unported=no
4454 case "${canonical}" in
4456 ## GNU/Linux and similar ports
4457 *-*-linux* )
4458 opsys=gnu-linux
4461 ## FreeBSD ports
4462 *-*-freebsd* )
4463 opsys=freebsd
4466 ## FreeBSD kernel + glibc based userland
4467 *-*-kfreebsd*gnu* )
4468 opsys=gnu-kfreebsd
4471 ## NetBSD ports
4472 *-*-netbsd* )
4473 opsys=netbsd
4476 ## OpenBSD ports
4477 *-*-openbsd* )
4478 opsys=openbsd
4481 ## Apple Darwin / Mac OS X
4482 *-apple-darwin* )
4483 case "${canonical}" in
4484 i[3456]86-* ) ;;
4485 powerpc-* ) ;;
4486 x86_64-* ) ;;
4487 * ) unported=yes ;;
4488 esac
4489 opsys=darwin
4490 ## Use fink packages if available.
4491 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4492 ## if test -d /sw/include && test -d /sw/lib; then
4493 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4494 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4495 ## fi
4498 ## HP 9000 series 700 and 800, running HP/UX
4499 hppa*-hp-hpux10.2* )
4500 opsys=hpux10-20
4502 hppa*-hp-hpux1[1-9]* )
4503 opsys=hpux11
4504 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4507 ## IBM machines
4508 rs6000-ibm-aix4.[23]* )
4509 opsys=aix4-2
4511 powerpc-ibm-aix4.[23]* )
4512 opsys=aix4-2
4514 rs6000-ibm-aix[56]* )
4515 opsys=aix4-2
4517 powerpc-ibm-aix[56]* )
4518 opsys=aix4-2
4521 ## Silicon Graphics machines
4522 ## Iris 4D
4523 mips-sgi-irix6.5 )
4524 opsys=irix6-5
4525 # Without defining _LANGUAGE_C, things get masked out in the headers
4526 # so that, for instance, grepping for `free' in stdlib.h fails and
4527 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4528 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4531 ## Suns
4532 *-sun-solaris* \
4533 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4534 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4535 case "${canonical}" in
4536 i[3456]86-*-* ) ;;
4537 amd64-*-*|x86_64-*-*) ;;
4538 sparc* ) ;;
4539 * ) unported=yes ;;
4540 esac
4541 case "${canonical}" in
4542 *-sunos5.6* | *-solaris2.6* )
4543 opsys=sol2-6
4544 RANLIB="ar -ts"
4546 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4547 opsys=sol2-6
4548 emacs_check_sunpro_c=yes
4550 *-sunos5* | *-solaris* )
4551 opsys=sol2-10
4552 emacs_check_sunpro_c=yes
4554 esac
4555 ## Watch out for a compiler that we know will not work.
4556 case "${canonical}" in
4557 *-solaris* | *-sunos5* )
4558 if [ "x$CC" = x/usr/ucb/cc ]; then
4559 ## /usr/ucb/cc doesn't work;
4560 ## we should find some other compiler that does work.
4561 unset CC
4564 *) ;;
4565 esac
4568 ## Intel 386 machines where we don't care about the manufacturer.
4569 i[3456]86-*-* )
4570 case "${canonical}" in
4571 *-cygwin ) opsys=cygwin ;;
4572 *-darwin* ) opsys=darwin ;;
4573 *-sysv4.2uw* ) opsys=unixware ;;
4574 *-sysv5uw* ) opsys=unixware ;;
4575 *-sysv5OpenUNIX* ) opsys=unixware ;;
4576 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4577 esac
4581 unported=yes
4583 esac
4585 ### If the code above didn't choose an operating system, just choose
4586 ### an operating system based on the configuration name. You really
4587 ### only want to use this when you have no idea what the right
4588 ### operating system is; if you know what operating systems a machine
4589 ### runs, it's cleaner to make it explicit in the case statement
4590 ### above.
4591 if test x"${opsys}" = x; then
4592 case "${canonical}" in
4593 *-gnu* ) opsys=gnu ;;
4595 unported=yes
4597 esac
4602 if test $unported = yes; then
4603 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4604 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4607 opsysfile="s/${opsys}.h"
4610 #### Choose a compiler.
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_CC"; then
4657 ac_ct_CC=$CC
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4705 else
4706 CC="$ac_cv_prog_CC"
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}cc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760 else
4761 ac_prog_rejected=no
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected=yes
4771 continue
4773 ac_cv_prog_CC="cc"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_CC
4784 shift
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4789 shift
4790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4795 CC=$ac_cv_prog_CC
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in cl.exe
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CC" && break
4848 done
4850 if test -z "$CC"; then
4851 ac_ct_CC=$CC
4852 for ac_prog in cl.exe
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4877 IFS=$as_save_IFS
4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CC" && break
4892 done
4894 if test "x$ac_ct_CC" = x; then
4895 CC=""
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CC=$ac_ct_CC
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error "no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4917 set X $ac_compile
4918 ac_compiler=$2
4919 for ac_option in --version -v -V -qversion; do
4920 { { ac_try="$ac_compiler $ac_option >&5"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 ac_status=$?
4929 if test -s conftest.err; then
4930 sed '10a\
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4938 done
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4944 main ()
4948 return 0;
4950 _ACEOF
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4955 # of exeext.
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4963 ac_rmfiles=
4964 for ac_file in $ac_files
4966 case $ac_file in
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4969 esac
4970 done
4971 rm -f $ac_rmfiles
4973 if { { ac_try="$ac_link_default"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4988 # Autoconf.
4989 for ac_file in $ac_files ''
4991 test -f "$ac_file" || continue
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4995 [ab].out )
4996 # We found the default executable, but exeext='' is most
4997 # certainly right.
4998 break;;
4999 *.* )
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5001 then :; else
5002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5008 # actually working.
5009 break;;
5011 break;;
5012 esac
5013 done
5014 test "$ac_cv_exeext" = no && ac_cv_exeext=
5016 else
5017 ac_file=''
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status 77
5028 as_fn_error "C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext=$ac_cv_exeext
5040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5058 # `rm'.
5059 for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067 done
5068 else
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error "cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5074 rm -f conftest conftest$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5078 rm -f conftest.$ac_ext
5079 EXEEXT=$ac_cv_exeext
5080 ac_exeext=$EXEEXT
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <stdio.h>
5085 main ()
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5091 return 0;
5093 _ACEOF
5094 ac_clean_files="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error "cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139 ac_clean_files=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5149 main ()
5153 return 0;
5155 _ACEOF
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try="$ac_compile"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175 done
5176 else
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files: cannot compile
5183 See \`config.log' for more details." "$LINENO" 5; }
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5190 ac_objext=$OBJEXT
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5200 main ()
5202 #ifndef __GNUC__
5203 choke me
5204 #endif
5207 return 0;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212 else
5213 ac_compiler_gnu=no
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223 else
5224 GCC=
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 main ()
5245 return 0;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_prog_cc_g=yes
5250 else
5251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5256 main ()
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5265 else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5267 CFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5272 main ()
5276 return 0;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_g=yes
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5299 else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_cv_prog_cc_c89=no
5312 ac_save_CC=$CC
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdarg.h>
5316 #include <stdio.h>
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5323 char **p;
5324 int i;
5326 return p[i];
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5330 char *s;
5331 va_list v;
5332 va_start (v,p);
5333 s = g (p, va_arg (v,int));
5334 va_end (v);
5335 return s;
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5349 #define FOO(x) 'x'
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356 int argc;
5357 char **argv;
5359 main ()
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5363 return 0;
5365 _ACEOF
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5375 done
5376 rm -f conftest.$ac_ext
5377 CC=$ac_save_CC
5380 # AC_CACHE_VAL
5381 case "x$ac_cv_prog_cc_c89" in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5385 xno)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392 esac
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5397 ac_ext=c
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5404 ac_config_commands="$ac_config_commands depfiles"
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5409 am__doit:
5410 @echo this is the am__doit target
5411 .PHONY: am__doit
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5416 am__include="#"
5417 am__quote=
5418 _am_result=none
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5424 am__include=include
5425 am__quote=
5426 _am_result=GNU
5428 esac
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include "confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5435 am__quote="\""
5436 _am_result=BSD
5438 esac
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5453 AMDEPBACKSLASH='\'
5455 if test "x$enable_dependency_tracking" != xno; then
5456 AMDEP_TRUE=
5457 AMDEP_FALSE='#'
5458 else
5459 AMDEP_TRUE='#'
5460 AMDEP_FALSE=
5465 depcc="$CC" am_compiler_list=
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5477 # in D'.
5478 mkdir conftest.dir
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5482 cd conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5488 # directory.
5489 mkdir sub
5491 am_cv_CC_dependencies_compiler_type=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5495 am__universal=false
5496 case " $depcc " in #(
5497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5498 esac
5500 for depmode in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5508 : > sub/conftest.c
5509 for i in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub/conftst$i.h
5514 done
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj=sub/conftest.${OBJEXT-o}
5522 am__minus_obj="-o $am__obj"
5523 case $depmode in
5524 gcc)
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false || continue
5528 nosideeffect)
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes; then
5532 continue
5533 else
5534 break
5537 msvisualcpp | msvcmsys)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj=conftest.${OBJEXT-o}
5542 am__minus_obj=
5544 none) break ;;
5545 esac
5546 if depmode=$depmode \
5547 source=sub/conftest.c object=$am__obj \
5548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5550 >/dev/null 2>conftest.err &&
5551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type=$depmode
5565 break
5568 done
5570 cd ..
5571 rm -rf conftest.dir
5572 else
5573 am_cv_CC_dependencies_compiler_type=none
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584 am__fastdepCC_TRUE=
5585 am__fastdepCC_FALSE='#'
5586 else
5587 am__fastdepCC_TRUE='#'
5588 am__fastdepCC_FALSE=
5592 if test "x$CC" != xcc; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5599 set dummy $CC; ac_cc=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5608 main ()
5612 return 0;
5614 _ACEOF
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5619 rm -f conftest2.*
5620 if { { case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5640 then
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5642 if test "x$CC" != xcc; then
5643 # Test first that cc exists at all.
5644 if { ac_try='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5656 rm -f conftest2.*
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5677 then
5678 # cc works too.
5680 else
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5686 else
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 rm -f core conftest*
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5705 set dummy $CC
5706 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5719 if test x$GCC = xyes; then
5720 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5721 else
5722 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5725 # Initialize gnulib right after choosing the compiler.
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5736 CPP=
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5745 ac_preproc_ok=false
5746 for ac_c_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #ifdef __STDC__
5757 # include <limits.h>
5758 #else
5759 # include <assert.h>
5760 #endif
5761 Syntax error
5762 _ACEOF
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5765 else
5766 # Broken: fails on valid input.
5767 continue
5769 rm -f conftest.err conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5779 continue
5780 else
5781 # Passes both tests.
5782 ac_preproc_ok=:
5783 break
5785 rm -f conftest.err conftest.$ac_ext
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then :
5791 break
5794 done
5795 ac_cv_prog_CPP=$CPP
5798 CPP=$ac_cv_prog_CPP
5799 else
5800 ac_cv_prog_CPP=$CPP
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5804 ac_preproc_ok=false
5805 for ac_c_preproc_warn_flag in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if ac_fn_c_try_cpp "$LINENO"; then :
5824 else
5825 # Broken: fails on valid input.
5826 continue
5828 rm -f conftest.err conftest.$ac_ext
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5835 _ACEOF
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5837 # Broken: success on invalid input.
5838 continue
5839 else
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5844 rm -f conftest.err conftest.$ac_ext
5846 done
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.$ac_ext
5849 if $ac_preproc_ok; then :
5851 else
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5858 ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in grep ggrep; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5885 *GNU*)
5886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP="$ac_path_GREP"
5902 ac_path_GREP_max=$ac_count
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 esac
5910 $ac_path_GREP_found && break 3
5911 done
5912 done
5913 done
5914 IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5918 else
5919 ac_cv_path_GREP=$GREP
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP="$ac_cv_path_GREP"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5934 then ac_cv_path_EGREP="$GREP -E"
5935 else
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_prog in egrep; do
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5951 *GNU*)
5952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5954 ac_count=0
5955 $as_echo_n 0123456789 >"conftest.in"
5956 while :
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP="$ac_path_EGREP"
5968 ac_path_EGREP_max=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5972 done
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5976 $ac_path_EGREP_found && break 3
5977 done
5978 done
5979 done
5980 IFS=$as_save_IFS
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5984 else
5985 ac_cv_path_EGREP=$EGREP
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP="$ac_cv_path_EGREP"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6006 #ifdef __ACK__
6007 Amsterdam
6008 #endif
6010 _ACEOF
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6013 gl_cv_c_amsterdam_compiler=yes
6014 else
6015 gl_cv_c_amsterdam_compiler=no
6017 rm -f conftest*
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6025 AR='cc -c.a'
6026 if test -z "$ARFLAGS"; then
6027 ARFLAGS='-o'
6029 else
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ar; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy ar; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x; then
6108 AR="ar"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 AR=$ac_ct_AR
6118 else
6119 AR="$ac_cv_prog_AR"
6122 if test -z "$ARFLAGS"; then
6123 ARFLAGS='cru'
6126 else
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='cru'
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6135 RANLIB=':'
6136 else
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 RANLIB=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6199 done
6200 done
6201 IFS=$as_save_IFS
6205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_RANLIB" = x; then
6215 RANLIB=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 RANLIB=$ac_ct_RANLIB
6225 else
6226 RANLIB="$ac_cv_prog_RANLIB"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6246 main ()
6250 return 0;
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_header_stdc=yes
6255 else
6256 ac_cv_header_stdc=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <string.h>
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev/null 2>&1; then :
6270 else
6271 ac_cv_header_stdc=no
6273 rm -f conftest*
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then :
6287 else
6288 ac_cv_header_stdc=no
6290 rm -f conftest*
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <ctype.h>
6302 #include <stdlib.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 main ()
6318 int i;
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6322 return 2;
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_run "$LINENO"; then :
6328 else
6329 ac_cv_header_stdc=no
6331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6332 conftest.$ac_objext conftest.beam conftest.$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6347 inttypes.h stdint.h unistd.h
6348 do :
6349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 eval as_val=\$$as_ac_Header
6353 if test "x$as_val" = x""yes; then :
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6360 done
6366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6368 MINIX=yes
6369 else
6370 MINIX=
6374 if test "$MINIX" = yes; then
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6386 case "$host_os" in
6387 hpux*)
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6392 esac
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6406 main ()
6410 return 0;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__=yes
6415 else
6416 ac_cv_safe_to_define___extensions__=no
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval=$enable_largefile;
6447 if test "$enable_largefile" != no; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 ac_cv_sys_largefile_CC=no
6455 if test "$GCC" != yes; then
6456 ac_save_CC=$CC
6457 while :; do
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6470 ? 1 : -1];
6472 main ()
6476 return 0;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 break
6482 rm -f core conftest.err conftest.$ac_objext
6483 CC="$CC -n32"
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 ac_cv_sys_largefile_CC=' -n32'; break
6487 rm -f core conftest.err conftest.$ac_objext
6488 break
6489 done
6490 CC=$ac_save_CC
6491 rm -f conftest.$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no; then
6497 CC=$CC$ac_cv_sys_largefile_CC
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 while :; do
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6516 ? 1 : -1];
6518 main ()
6522 return 0;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_sys_file_offset_bits=no; break
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6540 ? 1 : -1];
6542 main ()
6546 return 0;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 ac_cv_sys_file_offset_bits=64; break
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_cv_sys_file_offset_bits=unknown
6554 break
6555 done
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6560 no | unknown) ;;
6562 cat >>confdefs.h <<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6564 _ACEOF
6566 esac
6567 rm -rf conftest*
6568 if test $ac_cv_sys_file_offset_bits = unknown; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 while :; do
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6585 ? 1 : -1];
6587 main ()
6591 return 0;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 ac_cv_sys_large_files=no; break
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6609 ? 1 : -1];
6611 main ()
6615 return 0;
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 ac_cv_sys_large_files=1; break
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cv_sys_large_files=unknown
6623 break
6624 done
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6629 no | unknown) ;;
6631 cat >>confdefs.h <<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6633 _ACEOF
6635 esac
6636 rm -rf conftest*
6642 case $ac_cv_prog_cc_stdc in #(
6643 no) :
6644 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6645 *) :
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 ac_cv_prog_cc_c99=no
6652 ac_save_CC=$CC
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 #include <stdarg.h>
6656 #include <stdbool.h>
6657 #include <stdlib.h>
6658 #include <wchar.h>
6659 #include <stdio.h>
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6665 static void
6666 test_varargs_macros (void)
6668 int x = 1234;
6669 int y = 5678;
6670 debug ("Flag");
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6680 #if !BIG_OK
6681 your preprocessor is broken;
6682 #endif
6683 #if BIG_OK
6684 #else
6685 your preprocessor is broken;
6686 #endif
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6690 struct incomplete_array
6692 int datasize;
6693 double data[];
6696 struct named_init {
6697 int number;
6698 const wchar_t *name;
6699 double average;
6702 typedef const char *ccp;
6704 static inline int
6705 test_restrict (ccp restrict text)
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6711 continue;
6712 return 0;
6715 // Check varargs and va_copy.
6716 static void
6717 test_varargs (const char *format, ...)
6719 va_list args;
6720 va_start (args, format);
6721 va_list args_copy;
6722 va_copy (args_copy, args);
6724 const char *str;
6725 int number;
6726 float fnumber;
6728 while (*format)
6730 switch (*format++)
6732 case 's': // string
6733 str = va_arg (args_copy, const char *);
6734 break;
6735 case 'd': // int
6736 number = va_arg (args_copy, int);
6737 break;
6738 case 'f': // float
6739 fnumber = va_arg (args_copy, double);
6740 break;
6741 default:
6742 break;
6745 va_end (args_copy);
6746 va_end (args);
6750 main ()
6753 // Check bool.
6754 _Bool success = false;
6756 // Check restrict.
6757 if (test_restrict ("String literal") == 0)
6758 success = true;
6759 char *restrict newvar = "Another string";
6761 // Check varargs.
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6768 ia->datasize = 10;
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6772 // Check named initializers.
6773 struct named_init ni = {
6774 .number = 34,
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6779 ni.number = 58;
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6789 return 0;
6791 _ACEOF
6792 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6794 CC="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_prog_cc_c99=$ac_arg
6798 rm -f core conftest.err conftest.$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6800 done
6801 rm -f conftest.$ac_ext
6802 CC=$ac_save_CC
6805 # AC_CACHE_VAL
6806 case "x$ac_cv_prog_cc_c99" in
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6810 xno)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6814 CC="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6817 esac
6818 if test "x$ac_cv_prog_cc_c99" != xno; then :
6819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 ac_cv_prog_cc_c89=no
6827 ac_save_CC=$CC
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <stdarg.h>
6831 #include <stdio.h>
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6838 char **p;
6839 int i;
6841 return p[i];
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6845 char *s;
6846 va_list v;
6847 va_start (v,p);
6848 s = g (p, va_arg (v,int));
6849 va_end (v);
6850 return s;
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6864 #define FOO(x) 'x'
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6871 int argc;
6872 char **argv;
6874 main ()
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6878 return 0;
6880 _ACEOF
6881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6884 CC="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 ac_cv_prog_cc_c89=$ac_arg
6888 rm -f core conftest.err conftest.$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6890 done
6891 rm -f conftest.$ac_ext
6892 CC=$ac_save_CC
6895 # AC_CACHE_VAL
6896 case "x$ac_cv_prog_cc_c89" in
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6900 xno)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6904 CC="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6907 esac
6908 if test "x$ac_cv_prog_cc_c89" != xno; then :
6909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6910 else
6911 ac_cv_prog_cc_stdc=no
6916 esac
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6923 case $ac_cv_prog_cc_stdc in #(
6924 no) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6927 '') :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6930 *) :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6933 esac
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module c-ctype:
6940 # Code from module c-strcase:
6941 # Code from module careadlinkat:
6942 # Code from module clock-time:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dtotimespec:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module gettime:
6959 # Code from module gettimeofday:
6960 # Code from module ignore-value:
6961 # Code from module include_next:
6962 # Code from module intprops:
6963 # Code from module inttypes-incomplete:
6964 # Code from module largefile:
6966 # Code from module lstat:
6967 # Code from module manywarnings:
6968 # Code from module mktime:
6969 # Code from module multiarch:
6970 # Code from module nocrash:
6971 # Code from module pathmax:
6972 # Code from module pselect:
6973 # Code from module pthread_sigmask:
6974 # Code from module readlink:
6975 # Code from module signal-h:
6976 # Code from module snippet/_Noreturn:
6977 # Code from module snippet/arg-nonnull:
6978 # Code from module snippet/c++defs:
6979 # Code from module snippet/warn-on-use:
6980 # Code from module socklen:
6981 # Code from module ssize_t:
6982 # Code from module stat:
6983 # Code from module stat-time:
6984 # Code from module stdalign:
6985 # Code from module stdarg:
6989 # Code from module stdbool:
6990 # Code from module stddef:
6991 # Code from module stdint:
6992 # Code from module stdio:
6993 # Code from module stdlib:
6994 # Code from module strftime:
6995 # Code from module strtoimax:
6996 # Code from module strtoll:
6997 # Code from module strtoull:
6998 # Code from module strtoumax:
6999 # Code from module symlink:
7000 # Code from module sys_select:
7001 # Code from module sys_stat:
7002 # Code from module sys_time:
7003 # Code from module time:
7004 # Code from module time_r:
7005 # Code from module timespec:
7006 # Code from module timespec-add:
7007 # Code from module timespec-sub:
7008 # Code from module u64:
7009 # Code from module unistd:
7010 # Code from module utimens:
7011 # Code from module verify:
7012 # Code from module warnings:
7015 # Check whether --enable-gcc-warnings was given.
7016 if test "${enable_gcc_warnings+set}" = set; then :
7017 enableval=$enable_gcc_warnings; case $enableval in
7018 yes|no) ;;
7019 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7020 esac
7021 gl_gcc_warnings=$enableval
7022 else
7023 gl_gcc_warnings=no
7028 # Check whether --enable-link-time-optimization was given.
7029 if test "${enable_link_time_optimization+set}" = set; then :
7030 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7032 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7033 ac_lto_supported=no
7034 if test x$GCC = xyes; then
7035 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7036 if test x$CPUS != x; then
7037 LTO="-flto=$CPUS"
7038 else
7039 LTO="-flto"
7041 old_CFLAGS=$CFLAGS
7042 CFLAGS="$CFLAGS $LTO"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7047 main ()
7051 return 0;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 ac_lto_supported=yes
7056 else
7057 ac_lto_supported=no
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 CFLAGS="$old_CFLAGS"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7063 $as_echo "$ac_lto_supported" >&6; }
7064 if test "$ac_lto_supported" = "yes"; then
7065 CFLAGS="$CFLAGS $LTO"
7071 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7072 # ------------------------------------------------
7073 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7074 # Otherwise, run RUN-IF-NOT-FOUND.
7077 # When compiling with GCC, prefer -isystem to -I when including system
7078 # include files, to avoid generating useless diagnostics for the files.
7079 if test "$gl_gcc_warnings" != yes; then
7080 isystem='-I'
7081 else
7082 isystem='-isystem '
7084 # This, $nw, is the list of warnings we disable.
7087 case $with_x_toolkit in
7088 lucid | athena | motif)
7089 # Old toolkits mishandle 'const'.
7090 nw="$nw -Wwrite-strings"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7094 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7095 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7099 gl_save_compiler_FLAGS="$CFLAGS"
7100 as_fn_append CFLAGS " -Werror"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7105 main ()
7109 return 0;
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 gl_cv_warn_c__Werror=yes
7114 else
7115 gl_cv_warn_c__Werror=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 CFLAGS="$gl_save_compiler_FLAGS"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7122 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7123 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7124 as_fn_append WERROR_CFLAGS " -Werror"
7129 esac
7132 nw="$nw -Waggregate-return" # anachronistic
7133 nw="$nw -Wlong-long" # C90 is anachronistic
7134 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7135 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7136 nw="$nw -Wtraditional" # Warns on #elif which we use often
7137 nw="$nw -Wcast-qual" # Too many warnings for now
7138 nw="$nw -Wconversion" # Too many warnings for now
7139 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7140 nw="$nw -Wsign-conversion" # Too many warnings for now
7141 nw="$nw -Woverlength-strings" # Not a problem these days
7142 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7143 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7144 nw="$nw -Wpadded" # Our structs are not padded
7145 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7146 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7147 nw="$nw -Wformat-nonliteral" # we do this a lot
7148 nw="$nw -Wvla" # warnings in gettext.h
7149 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7150 nw="$nw -Wswitch-enum" # Too many warnings for now
7151 nw="$nw -Wswitch-default" # Too many warnings for now
7152 nw="$nw -Wfloat-equal" # warns about high-quality code
7153 nw="$nw -Winline" # OK to ignore 'inline'
7154 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7155 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7157 # Emacs doesn't care about shadowing; see
7158 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7159 nw="$nw -Wshadow"
7161 # The following lines should be removable at some point.
7162 nw="$nw -Wstack-protector"
7163 nw="$nw -Wstrict-overflow"
7164 nw="$nw -Wsuggest-attribute=const"
7165 nw="$nw -Wsuggest-attribute=pure"
7169 if test -n "$GCC"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7172 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7173 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7177 gl_save_CFLAGS="$CFLAGS"
7178 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7183 main ()
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 gl_cv_cc_nomfi_supported=yes
7192 else
7193 gl_cv_cc_nomfi_supported=no
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 CFLAGS="$gl_save_CFLAGS"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7200 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7202 if test "$gl_cv_cc_nomfi_supported" = yes; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7204 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7205 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7209 gl_save_CFLAGS="$CFLAGS"
7210 CFLAGS="$CFLAGS -W -Werror"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 void f (void)
7215 typedef struct { int a; int b; } s_t;
7216 s_t s1 = { 0, };
7220 main ()
7224 return 0;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 gl_cv_cc_nomfi_needed=no
7229 else
7230 gl_cv_cc_nomfi_needed=yes
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 CFLAGS="$gl_save_CFLAGS"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7238 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7242 gl_manywarn_set=
7243 for gl_manywarn_item in \
7244 -Wall \
7245 -W \
7246 -Wformat-y2k \
7247 -Wformat-nonliteral \
7248 -Wformat-security \
7249 -Winit-self \
7250 -Wmissing-include-dirs \
7251 -Wswitch-default \
7252 -Wswitch-enum \
7253 -Wunused \
7254 -Wunknown-pragmas \
7255 -Wstrict-aliasing \
7256 -Wstrict-overflow \
7257 -Wsystem-headers \
7258 -Wfloat-equal \
7259 -Wtraditional \
7260 -Wtraditional-conversion \
7261 -Wdeclaration-after-statement \
7262 -Wundef \
7263 -Wshadow \
7264 -Wunsafe-loop-optimizations \
7265 -Wpointer-arith \
7266 -Wbad-function-cast \
7267 -Wc++-compat \
7268 -Wcast-qual \
7269 -Wcast-align \
7270 -Wwrite-strings \
7271 -Wconversion \
7272 -Wsign-conversion \
7273 -Wlogical-op \
7274 -Waggregate-return \
7275 -Wstrict-prototypes \
7276 -Wold-style-definition \
7277 -Wmissing-prototypes \
7278 -Wmissing-declarations \
7279 -Wmissing-noreturn \
7280 -Wmissing-format-attribute \
7281 -Wpacked \
7282 -Wpadded \
7283 -Wredundant-decls \
7284 -Wnested-externs \
7285 -Wunreachable-code \
7286 -Winline \
7287 -Winvalid-pch \
7288 -Wlong-long \
7289 -Wvla \
7290 -Wvolatile-register-var \
7291 -Wdisabled-optimization \
7292 -Wstack-protector \
7293 -Woverlength-strings \
7294 -Wbuiltin-macro-redefined \
7295 -Wmudflap \
7296 -Wpacked-bitfield-compat \
7297 -Wsync-nand \
7298 ; do
7299 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7300 done
7301 # The following are not documented in the manual but are included in
7302 # output from gcc --help=warnings.
7303 for gl_manywarn_item in \
7304 -Wattributes \
7305 -Wcoverage-mismatch \
7306 -Wunused-macros \
7307 ; do
7308 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7309 done
7310 # More warnings from gcc 4.6.2 --help=warnings.
7311 for gl_manywarn_item in \
7312 -Wabi \
7313 -Wcpp \
7314 -Wdeprecated \
7315 -Wdeprecated-declarations \
7316 -Wdiv-by-zero \
7317 -Wdouble-promotion \
7318 -Wendif-labels \
7319 -Wextra \
7320 -Wformat-contains-nul \
7321 -Wformat-extra-args \
7322 -Wformat-zero-length \
7323 -Wformat=2 \
7324 -Wmultichar \
7325 -Wnormalized=nfc \
7326 -Woverflow \
7327 -Wpointer-to-int-cast \
7328 -Wpragmas \
7329 -Wsuggest-attribute=const \
7330 -Wsuggest-attribute=noreturn \
7331 -Wsuggest-attribute=pure \
7332 -Wtrampolines \
7333 ; do
7334 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7335 done
7337 # Disable the missing-field-initializers warning if needed
7338 if test "$gl_cv_cc_nomfi_needed" = yes; then
7339 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7342 ws=$gl_manywarn_set
7345 gl_warn_set=
7346 set x $ws; shift
7347 for gl_warn_item
7349 case " $nw " in
7350 *" $gl_warn_item "*)
7353 gl_warn_set="$gl_warn_set $gl_warn_item"
7355 esac
7356 done
7357 ws=$gl_warn_set
7359 for w in $ws; do
7360 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7362 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7363 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7367 gl_save_compiler_FLAGS="$CFLAGS"
7368 as_fn_append CFLAGS " $w"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7373 main ()
7377 return 0;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381 eval "$as_gl_Warn=yes"
7382 else
7383 eval "$as_gl_Warn=no"
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 CFLAGS="$gl_save_compiler_FLAGS"
7389 eval ac_res=\$$as_gl_Warn
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7391 $as_echo "$ac_res" >&6; }
7392 eval as_val=\$$as_gl_Warn
7393 if test "x$as_val" = x""yes; then :
7394 as_fn_append WARN_CFLAGS " $w"
7398 done
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7400 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7401 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7405 gl_save_compiler_FLAGS="$CFLAGS"
7406 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7411 main ()
7415 return 0;
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"; then :
7419 gl_cv_warn_c__Wno_missing_field_initializers=yes
7420 else
7421 gl_cv_warn_c__Wno_missing_field_initializers=no
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 CFLAGS="$gl_save_compiler_FLAGS"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7428 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7429 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7430 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7433 # We need this one
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7435 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7436 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7440 gl_save_compiler_FLAGS="$CFLAGS"
7441 as_fn_append CFLAGS " -Wno-sign-compare"
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7446 main ()
7450 return 0;
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454 gl_cv_warn_c__Wno_sign_compare=yes
7455 else
7456 gl_cv_warn_c__Wno_sign_compare=no
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 CFLAGS="$gl_save_compiler_FLAGS"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7463 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7464 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7465 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7468 # Too many warnings for now
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7470 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7471 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7475 gl_save_compiler_FLAGS="$CFLAGS"
7476 as_fn_append CFLAGS " -Wno-type-limits"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7481 main ()
7485 return 0;
7487 _ACEOF
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489 gl_cv_warn_c__Wno_type_limits=yes
7490 else
7491 gl_cv_warn_c__Wno_type_limits=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 CFLAGS="$gl_save_compiler_FLAGS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7498 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7499 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7500 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7503 # Too many warnings for now
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7505 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7506 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7510 gl_save_compiler_FLAGS="$CFLAGS"
7511 as_fn_append CFLAGS " -Wno-switch"
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7516 main ()
7520 return 0;
7522 _ACEOF
7523 if ac_fn_c_try_compile "$LINENO"; then :
7524 gl_cv_warn_c__Wno_switch=yes
7525 else
7526 gl_cv_warn_c__Wno_switch=no
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 CFLAGS="$gl_save_compiler_FLAGS"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7533 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7534 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7535 as_fn_append WARN_CFLAGS " -Wno-switch"
7538 # Too many warnings for now
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7540 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7541 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7545 gl_save_compiler_FLAGS="$CFLAGS"
7546 as_fn_append CFLAGS " -Wno-unused-parameter"
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7551 main ()
7555 return 0;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 gl_cv_warn_c__Wno_unused_parameter=yes
7560 else
7561 gl_cv_warn_c__Wno_unused_parameter=no
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 CFLAGS="$gl_save_compiler_FLAGS"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7568 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7569 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7570 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7573 # Too many warnings for now
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7575 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7576 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7580 gl_save_compiler_FLAGS="$CFLAGS"
7581 as_fn_append CFLAGS " -Wno-format-nonliteral"
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7586 main ()
7590 return 0;
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"; then :
7594 gl_cv_warn_c__Wno_format_nonliteral=yes
7595 else
7596 gl_cv_warn_c__Wno_format_nonliteral=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 CFLAGS="$gl_save_compiler_FLAGS"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7603 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7604 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7605 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-deprecated-declarations" >&5
7610 $as_echo_n "checking whether C compiler handles -Wno-deprecated-declarations... " >&6; }
7611 if test "${gl_cv_warn_c__Wno_deprecated_declarations+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7615 gl_save_compiler_FLAGS="$CFLAGS"
7616 as_fn_append CFLAGS " -Wno-deprecated-declarations"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 main ()
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 gl_cv_warn_c__Wno_deprecated_declarations=yes
7630 else
7631 gl_cv_warn_c__Wno_deprecated_declarations=no
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 CFLAGS="$gl_save_compiler_FLAGS"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_deprecated_declarations" >&5
7638 $as_echo "$gl_cv_warn_c__Wno_deprecated_declarations" >&6; }
7639 if test "x$gl_cv_warn_c__Wno_deprecated_declarations" = x""yes; then :
7640 as_fn_append WARN_CFLAGS " -Wno-deprecated-declarations"
7643 # triggered by libpng
7645 # In spite of excluding -Wlogical-op above, it is enabled, as of
7646 # gcc 4.5.0 20090517.
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7648 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7649 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7653 gl_save_compiler_FLAGS="$CFLAGS"
7654 as_fn_append CFLAGS " -Wno-logical-op"
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__Wno_logical_op=yes
7668 else
7669 gl_cv_warn_c__Wno_logical_op=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__Wno_logical_op" >&5
7676 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7677 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7678 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7684 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7685 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7689 gl_save_compiler_FLAGS="$CFLAGS"
7690 as_fn_append CFLAGS " -fdiagnostics-show-option"
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7695 main ()
7699 return 0;
7701 _ACEOF
7702 if ac_fn_c_try_compile "$LINENO"; then :
7703 gl_cv_warn_c__fdiagnostics_show_option=yes
7704 else
7705 gl_cv_warn_c__fdiagnostics_show_option=no
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 CFLAGS="$gl_save_compiler_FLAGS"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7712 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7713 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7714 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7719 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7720 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7724 gl_save_compiler_FLAGS="$CFLAGS"
7725 as_fn_append CFLAGS " -funit-at-a-time"
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7730 main ()
7734 return 0;
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 gl_cv_warn_c__funit_at_a_time=yes
7739 else
7740 gl_cv_warn_c__funit_at_a_time=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 CFLAGS="$gl_save_compiler_FLAGS"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7747 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7748 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7749 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7755 $as_echo "#define lint 1" >>confdefs.h
7758 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7761 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7764 # We use a slightly smaller set of warning options for lib/.
7765 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7767 nw="$nw -Wunused-macros"
7770 gl_warn_set=
7771 set x $WARN_CFLAGS; shift
7772 for gl_warn_item
7774 case " $nw " in
7775 *" $gl_warn_item "*)
7778 gl_warn_set="$gl_warn_set $gl_warn_item"
7780 esac
7781 done
7782 GNULIB_WARN_CFLAGS=$gl_warn_set
7790 # Extract the first word of "install-info", so it can be a program name with args.
7791 set dummy install-info; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 case $INSTALL_INFO in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7817 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7819 esac
7821 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7822 if test -n "$INSTALL_INFO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7824 $as_echo "$INSTALL_INFO" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 # Extract the first word of "gzip", so it can be a program name with args.
7832 set dummy gzip; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 case $GZIP_PROG in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7854 done
7855 done
7856 IFS=$as_save_IFS
7859 esac
7861 GZIP_PROG=$ac_cv_path_GZIP_PROG
7862 if test -n "$GZIP_PROG"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7864 $as_echo "$GZIP_PROG" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test $opsys = gnu-linux; then
7873 # Extract the first word of "paxctl", so it can be a program name with args.
7874 set dummy paxctl; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 case $PAXCTL in
7881 [\\/]* | ?:[\\/]*)
7882 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7901 esac
7903 PAXCTL=$ac_cv_path_PAXCTL
7904 if test -n "$PAXCTL"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7906 $as_echo "$PAXCTL" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7915 ## Need makeinfo >= 4.7 (?) to build the manuals.
7916 # Extract the first word of "makeinfo", so it can be a program name with args.
7917 set dummy makeinfo; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 case $MAKEINFO in
7924 [\\/]* | ?:[\\/]*)
7925 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7943 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7945 esac
7947 MAKEINFO=$ac_cv_path_MAKEINFO
7948 if test -n "$MAKEINFO"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7950 $as_echo "$MAKEINFO" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7957 if test "$MAKEINFO" != "no" && \
7958 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
7959 MAKEINFO=no
7962 ## Makeinfo is unusual. For a released Emacs, the manuals are
7963 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7964 ## therefore in the category of "special tools" not normally required, which
7965 ## configure does not have to check for (eg autoconf itself).
7966 ## In a Bazaar checkout on the other hand, the manuals are not included.
7967 ## So makeinfo is a requirement to build from Bazaar, and configure
7968 ## should test for it as it does for any other build requirement.
7969 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7970 ## with pre-built manuals, from a Bazaar checkout.
7971 HAVE_MAKEINFO=yes
7973 if test "$MAKEINFO" = "no"; then
7974 MAKEINFO=makeinfo
7975 if test "x${with_makeinfo}" = "xno"; then
7976 HAVE_MAKEINFO=no
7977 elif test ! -e $srcdir/info/emacs; then
7978 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7979 source tree does not seem to have pre-built manuals in the \`info' directory.
7980 Either install a suitable version of makeinfo, or re-run configure
7981 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7986 INFO_EXT=.info
7987 INFO_OPTS=--no-split
7992 if test x$GCC = xyes; then
7993 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7994 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7995 else
7996 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7997 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8001 late_LDFLAGS=$LDFLAGS
8002 if test x$GCC = xyes; then
8003 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8004 else
8005 LDFLAGS="$LDFLAGS -znocombreloc"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8009 $as_echo_n "checking for -znocombreloc... " >&6; }
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8014 main ()
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8023 $as_echo "yes" >&6; }
8024 else
8025 LDFLAGS=$late_LDFLAGS
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8033 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8034 case "$opsys" in
8035 your-opsys-here) CANNOT_DUMP=yes ;;
8036 esac
8038 test "$CANNOT_DUMP" = "yes" && \
8040 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8046 UNEXEC_OBJ=unexelf.o
8047 case "$opsys" in
8048 # MSDOS uses unexcoff.o
8049 # MSWindows uses unexw32.o
8050 aix4-2)
8051 UNEXEC_OBJ=unexaix.o
8053 cygwin)
8054 UNEXEC_OBJ=unexcw.o
8056 darwin)
8057 UNEXEC_OBJ=unexmacosx.o
8059 hpux10-20 | hpux11)
8060 UNEXEC_OBJ=unexhp9k800.o
8062 sol2-10)
8063 # Use the Solaris dldump() function, called from unexsol.c, to dump
8064 # emacs, instead of the generic ELF dump code found in unexelf.c.
8065 # The resulting binary has a complete symbol table, and is better
8066 # for debugging and other observability tools (debuggers, pstack, etc).
8068 # If you encounter a problem using dldump(), please consider sending
8069 # a message to the OpenSolaris tools-linking mailing list:
8070 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8072 # It is likely that dldump() works with older Solaris too, but this has
8073 # not been tested, so for now this change is for Solaris 10 or newer.
8074 UNEXEC_OBJ=unexsol.o
8076 esac
8078 LD_SWITCH_SYSTEM=
8079 case "$opsys" in
8080 freebsd)
8081 ## Let `ld' find image libs and similar things in /usr/local/lib.
8082 ## The system compiler, GCC, has apparently been modified to not
8083 ## look there, contrary to what a stock GCC would do.
8084 ### It's not our place to do this. See bug#10313#17.
8085 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8089 gnu-linux)
8090 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8091 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8094 netbsd)
8095 ### It's not our place to do this. See bug#10313#17.
8096 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8100 openbsd)
8101 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8102 ## otherwise Emacs dumps core on elf systems.
8103 LD_SWITCH_SYSTEM="-Z"
8105 esac
8108 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8110 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8111 ## which has not been defined yet. When this was handled with cpp,
8112 ## it was expanded to null when configure sourced the s/*.h file.
8113 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8114 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8115 ## (or somesuch), but because it is supposed to go at the _front_
8116 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8117 ## Compare with the gnu-linux case below, which added to the end
8118 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8119 ## LD_SWITCH_SYSTEM_TEMACS.
8120 case "$opsys" in
8121 netbsd|openbsd)
8122 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8123 esac
8126 C_SWITCH_MACHINE=
8127 case $canonical in
8128 alpha*)
8129 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8130 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8134 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8135 ## With ELF, make sure that all common symbols get allocated to in the
8136 ## data section. Otherwise, the dump of temacs may miss variables in
8137 ## the shared library that have been initialized. For example, with
8138 ## GNU libc, __malloc_initialized would normally be resolved to the
8139 ## shared library's .bss section, which is fatal.
8140 if test "x$GCC" = "xyes"; then
8141 C_SWITCH_MACHINE="-fno-common"
8142 else
8143 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8145 else
8146 UNEXEC_OBJ=unexalpha.o
8149 esac
8154 C_SWITCH_SYSTEM=
8155 ## Some programs in src produce warnings saying certain subprograms
8156 ## are too complex and need a MAXMEM value greater than 2000 for
8157 ## additional optimization. --nils@exp-math.uni-essen.de
8158 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8159 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8160 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8161 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8165 LIBS_SYSTEM=
8166 case "$opsys" in
8167 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8168 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8170 freebsd) LIBS_SYSTEM="-lutil" ;;
8172 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8174 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8176 ## Motif needs -lgen.
8177 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8178 esac
8182 ### Make sure subsequent tests use flags consistent with the build flags.
8184 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8185 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8186 else
8187 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8190 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8192 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8196 LIB_MATH=-lm
8197 LIB_STANDARD=
8198 START_FILES=
8199 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8201 case $opsys in
8202 cygwin )
8203 LIB_MATH=
8204 START_FILES='pre-crt0.o'
8206 darwin )
8207 ## Adding -lm confuses the dynamic linker, so omit it.
8208 LIB_MATH=
8209 START_FILES='pre-crt0.o'
8211 freebsd )
8212 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8213 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8214 SYSTEM_TYPE=berkeley-unix
8216 gnu-linux | gnu-kfreebsd )
8217 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8218 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8220 hpux10-20 | hpux11 )
8221 LIB_STANDARD=-lc
8222 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8224 netbsd | openbsd )
8225 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8226 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8227 SYSTEM_TYPE=berkeley-unix
8230 sol2* | unixware )
8231 SYSTEM_TYPE=usg-unix-v
8234 esac
8239 cat >>confdefs.h <<_ACEOF
8240 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8241 _ACEOF
8244 crt_files=
8246 for file in x $LIB_STANDARD $START_FILES; do
8247 case "$file" in
8248 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8249 esac
8250 done
8252 if test "x$crt_files" != x; then
8254 ## If user specified a crt-dir, use that unconditionally.
8255 crt_gcc=no
8257 if test "X$CRT_DIR" = "X"; then
8259 CRT_DIR=/usr/lib # default
8261 case "$canonical" in
8262 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8263 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8264 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8265 ## For anything else (eg /usr/lib32), it is up the user to specify
8266 ## the location (bug#5655).
8267 ## Test for crtn.o, not just the directory, because sometimes the
8268 ## directory exists but does not have the relevant files (bug#1287).
8269 ## FIXME better to test for binary compatibility somehow.
8270 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8273 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8274 esac
8276 case "$opsys" in
8277 hpux10-20) CRT_DIR=/lib ;;
8278 esac
8280 test "x${GCC}" = xyes && crt_gcc=yes
8282 fi # CRT_DIR = ""
8284 crt_missing=
8286 for file in $crt_files; do
8288 ## If we're using gcc, try to determine it automatically by asking
8289 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8290 ## system-dependent default from above.]
8291 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8293 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8294 case "$crt_file" in
8295 */*)
8296 CRT_DIR=`$as_dirname -- "$crt_file" ||
8297 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8298 X"$crt_file" : 'X\(//\)[^/]' \| \
8299 X"$crt_file" : 'X\(//\)$' \| \
8300 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8301 $as_echo X"$crt_file" |
8302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8303 s//\1/
8306 /^X\(\/\/\)[^/].*/{
8307 s//\1/
8310 /^X\(\/\/\)$/{
8311 s//\1/
8314 /^X\(\/\).*/{
8315 s//\1/
8318 s/.*/./; q'`
8320 esac
8323 crt_gcc=no
8325 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8326 done # $crt_files
8328 test "x$crt_missing" = x || \
8329 as_fn_error "Required file(s) not found:$crt_missing
8330 Try using the --with-crt-dir option." "$LINENO" 5
8332 fi # crt_files != ""
8336 case $opsys in
8337 netbsd | openbsd )
8338 if test -f $CRT_DIR/crti.o; then
8340 test -f $CRT_DIR/crtn.o || \
8341 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8343 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8344 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8347 esac
8350 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8351 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8352 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8364 LIBC_FATAL_STDERR_=1
8365 export LIBC_FATAL_STDERR_
8367 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8368 # for constant arguments. Useless!
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8370 $as_echo_n "checking for working alloca.h... " >&6; }
8371 if test "${ac_cv_working_alloca_h+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 #include <alloca.h>
8378 main ()
8380 char *p = (char *) alloca (2 * sizeof (int));
8381 if (p) return 0;
8383 return 0;
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387 ac_cv_working_alloca_h=yes
8388 else
8389 ac_cv_working_alloca_h=no
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8395 $as_echo "$ac_cv_working_alloca_h" >&6; }
8396 if test $ac_cv_working_alloca_h = yes; then
8398 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8403 $as_echo_n "checking for alloca... " >&6; }
8404 if test "${ac_cv_func_alloca_works+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #ifdef __GNUC__
8410 # define alloca __builtin_alloca
8411 #else
8412 # ifdef _MSC_VER
8413 # include <malloc.h>
8414 # define alloca _alloca
8415 # else
8416 # ifdef HAVE_ALLOCA_H
8417 # include <alloca.h>
8418 # else
8419 # ifdef _AIX
8420 #pragma alloca
8421 # else
8422 # ifndef alloca /* predefined by HP cc +Olibcalls */
8423 char *alloca ();
8424 # endif
8425 # endif
8426 # endif
8427 # endif
8428 #endif
8431 main ()
8433 char *p = (char *) alloca (1);
8434 if (p) return 0;
8436 return 0;
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 ac_cv_func_alloca_works=yes
8441 else
8442 ac_cv_func_alloca_works=no
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8448 $as_echo "$ac_cv_func_alloca_works" >&6; }
8450 if test $ac_cv_func_alloca_works = yes; then
8452 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8454 else
8455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8456 # that cause trouble. Some versions do not even contain alloca or
8457 # contain a buggy version. If you still want to use their alloca,
8458 # use ar to extract alloca.o from them instead of compiling alloca.c.
8464 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8466 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8470 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8471 if test "${ac_cv_os_cray+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #if defined CRAY && ! defined CRAY2
8477 webecray
8478 #else
8479 wenotbecray
8480 #endif
8482 _ACEOF
8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8484 $EGREP "webecray" >/dev/null 2>&1; then :
8485 ac_cv_os_cray=yes
8486 else
8487 ac_cv_os_cray=no
8489 rm -f conftest*
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8493 $as_echo "$ac_cv_os_cray" >&6; }
8494 if test $ac_cv_os_cray = yes; then
8495 for ac_func in _getb67 GETB67 getb67; do
8496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8498 eval as_val=\$$as_ac_var
8499 if test "x$as_val" = x""yes; then :
8501 cat >>confdefs.h <<_ACEOF
8502 #define CRAY_STACKSEG_END $ac_func
8503 _ACEOF
8505 break
8508 done
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8512 $as_echo_n "checking stack direction for C alloca... " >&6; }
8513 if test "${ac_cv_c_stack_direction+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 if test "$cross_compiling" = yes; then :
8517 ac_cv_c_stack_direction=0
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 $ac_includes_default
8523 find_stack_direction (int *addr, int depth)
8525 int dir, dummy = 0;
8526 if (! addr)
8527 addr = &dummy;
8528 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8529 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8530 return dir + dummy;
8534 main (int argc, char **argv)
8536 return find_stack_direction (0, argc + !argv + 20) < 0;
8538 _ACEOF
8539 if ac_fn_c_try_run "$LINENO"; then :
8540 ac_cv_c_stack_direction=1
8541 else
8542 ac_cv_c_stack_direction=-1
8544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8545 conftest.$ac_objext conftest.beam conftest.$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8550 $as_echo "$ac_cv_c_stack_direction" >&6; }
8551 cat >>confdefs.h <<_ACEOF
8552 #define STACK_DIRECTION $ac_cv_c_stack_direction
8553 _ACEOF
8561 for ac_func in $ac_func_list
8562 do :
8563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8565 eval as_val=\$$as_ac_var
8566 if test "x$as_val" = x""yes; then :
8567 cat >>confdefs.h <<_ACEOF
8568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8569 _ACEOF
8572 done
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8578 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8579 if test "${ac_cv_c_bigendian+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 ac_cv_c_bigendian=unknown
8583 # See if we're dealing with a universal compiler.
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #ifndef __APPLE_CC__
8587 not a universal capable compiler
8588 #endif
8589 typedef int dummy;
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8594 # Check for potential -arch flags. It is not universal unless
8595 # there are at least two -arch flags with different values.
8596 ac_arch=
8597 ac_prev=
8598 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8599 if test -n "$ac_prev"; then
8600 case $ac_word in
8601 i?86 | x86_64 | ppc | ppc64)
8602 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8603 ac_arch=$ac_word
8604 else
8605 ac_cv_c_bigendian=universal
8606 break
8609 esac
8610 ac_prev=
8611 elif test "x$ac_word" = "x-arch"; then
8612 ac_prev=arch
8614 done
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 if test $ac_cv_c_bigendian = unknown; then
8618 # See if sys/param.h defines the BYTE_ORDER macro.
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <sys/param.h>
8625 main ()
8627 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8628 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8629 && LITTLE_ENDIAN)
8630 bogus endian macros
8631 #endif
8634 return 0;
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"; then :
8638 # It does; now see whether it defined to BIG_ENDIAN or not.
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <sys/types.h>
8642 #include <sys/param.h>
8645 main ()
8647 #if BYTE_ORDER != BIG_ENDIAN
8648 not big endian
8649 #endif
8652 return 0;
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"; then :
8656 ac_cv_c_bigendian=yes
8657 else
8658 ac_cv_c_bigendian=no
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 if test $ac_cv_c_bigendian = unknown; then
8665 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <limits.h>
8671 main ()
8673 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8674 bogus endian macros
8675 #endif
8678 return 0;
8680 _ACEOF
8681 if ac_fn_c_try_compile "$LINENO"; then :
8682 # It does; now see whether it defined to _BIG_ENDIAN or not.
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <limits.h>
8688 main ()
8690 #ifndef _BIG_ENDIAN
8691 not big endian
8692 #endif
8695 return 0;
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"; then :
8699 ac_cv_c_bigendian=yes
8700 else
8701 ac_cv_c_bigendian=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 if test $ac_cv_c_bigendian = unknown; then
8708 # Compile a test program.
8709 if test "$cross_compiling" = yes; then :
8710 # Try to guess by grepping values from an object file.
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 short int ascii_mm[] =
8714 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8715 short int ascii_ii[] =
8716 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8717 int use_ascii (int i) {
8718 return ascii_mm[i] + ascii_ii[i];
8720 short int ebcdic_ii[] =
8721 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8722 short int ebcdic_mm[] =
8723 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8724 int use_ebcdic (int i) {
8725 return ebcdic_mm[i] + ebcdic_ii[i];
8727 extern int foo;
8730 main ()
8732 return use_ascii (foo) == use_ebcdic (foo);
8734 return 0;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8739 ac_cv_c_bigendian=yes
8741 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8742 if test "$ac_cv_c_bigendian" = unknown; then
8743 ac_cv_c_bigendian=no
8744 else
8745 # finding both strings is unlikely to happen, but who knows?
8746 ac_cv_c_bigendian=unknown
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 $ac_includes_default
8756 main ()
8759 /* Are we little or big endian? From Harbison&Steele. */
8760 union
8762 long int l;
8763 char c[sizeof (long int)];
8764 } u;
8765 u.l = 1;
8766 return u.c[sizeof (long int) - 1] == 1;
8769 return 0;
8771 _ACEOF
8772 if ac_fn_c_try_run "$LINENO"; then :
8773 ac_cv_c_bigendian=no
8774 else
8775 ac_cv_c_bigendian=yes
8777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8778 conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8784 $as_echo "$ac_cv_c_bigendian" >&6; }
8785 case $ac_cv_c_bigendian in #(
8786 yes)
8787 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8788 ;; #(
8790 ;; #(
8791 universal)
8793 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8795 ;; #(
8797 as_fn_error "unknown endianness
8798 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8799 esac
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8803 $as_echo_n "checking for inline... " >&6; }
8804 if test "${ac_cv_c_inline+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 ac_cv_c_inline=no
8808 for ac_kw in inline __inline__ __inline; do
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #ifndef __cplusplus
8812 typedef int foo_t;
8813 static $ac_kw foo_t static_foo () {return 0; }
8814 $ac_kw foo_t foo () {return 0; }
8815 #endif
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819 ac_cv_c_inline=$ac_kw
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 test "$ac_cv_c_inline" != no && break
8823 done
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8827 $as_echo "$ac_cv_c_inline" >&6; }
8829 case $ac_cv_c_inline in
8830 inline | yes) ;;
8832 case $ac_cv_c_inline in
8833 no) ac_val=;;
8834 *) ac_val=$ac_cv_c_inline;;
8835 esac
8836 cat >>confdefs.h <<_ACEOF
8837 #ifndef __cplusplus
8838 #define inline $ac_val
8839 #endif
8840 _ACEOF
8842 esac
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8846 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8847 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 /* On HP-UX before 11.23, strtold returns a struct instead of
8853 long double. Reject implementations like that, by requiring
8854 compatibility with the C99 prototype. */
8855 #include <stdlib.h>
8856 static long double (*p) (char const *, char **) = strtold;
8857 static long double
8858 test (char const *nptr, char **endptr)
8860 long double r;
8861 r = strtold (nptr, endptr);
8862 return r;
8865 main ()
8867 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 gl_cv_func_c99_strtold=yes
8874 else
8875 gl_cv_func_c99_strtold=no
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8881 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8882 if test $gl_cv_func_c99_strtold = yes; then
8884 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8889 GNULIB_CHDIR=0;
8890 GNULIB_CHOWN=0;
8891 GNULIB_CLOSE=0;
8892 GNULIB_DUP=0;
8893 GNULIB_DUP2=0;
8894 GNULIB_DUP3=0;
8895 GNULIB_ENVIRON=0;
8896 GNULIB_EUIDACCESS=0;
8897 GNULIB_FACCESSAT=0;
8898 GNULIB_FCHDIR=0;
8899 GNULIB_FCHOWNAT=0;
8900 GNULIB_FDATASYNC=0;
8901 GNULIB_FSYNC=0;
8902 GNULIB_FTRUNCATE=0;
8903 GNULIB_GETCWD=0;
8904 GNULIB_GETDOMAINNAME=0;
8905 GNULIB_GETDTABLESIZE=0;
8906 GNULIB_GETGROUPS=0;
8907 GNULIB_GETHOSTNAME=0;
8908 GNULIB_GETLOGIN=0;
8909 GNULIB_GETLOGIN_R=0;
8910 GNULIB_GETPAGESIZE=0;
8911 GNULIB_GETUSERSHELL=0;
8912 GNULIB_GROUP_MEMBER=0;
8913 GNULIB_ISATTY=0;
8914 GNULIB_LCHOWN=0;
8915 GNULIB_LINK=0;
8916 GNULIB_LINKAT=0;
8917 GNULIB_LSEEK=0;
8918 GNULIB_PIPE=0;
8919 GNULIB_PIPE2=0;
8920 GNULIB_PREAD=0;
8921 GNULIB_PWRITE=0;
8922 GNULIB_READ=0;
8923 GNULIB_READLINK=0;
8924 GNULIB_READLINKAT=0;
8925 GNULIB_RMDIR=0;
8926 GNULIB_SETHOSTNAME=0;
8927 GNULIB_SLEEP=0;
8928 GNULIB_SYMLINK=0;
8929 GNULIB_SYMLINKAT=0;
8930 GNULIB_TTYNAME_R=0;
8931 GNULIB_UNISTD_H_NONBLOCKING=0;
8932 GNULIB_UNISTD_H_SIGPIPE=0;
8933 GNULIB_UNLINK=0;
8934 GNULIB_UNLINKAT=0;
8935 GNULIB_USLEEP=0;
8936 GNULIB_WRITE=0;
8937 HAVE_CHOWN=1;
8938 HAVE_DUP2=1;
8939 HAVE_DUP3=1;
8940 HAVE_EUIDACCESS=1;
8941 HAVE_FACCESSAT=1;
8942 HAVE_FCHDIR=1;
8943 HAVE_FCHOWNAT=1;
8944 HAVE_FDATASYNC=1;
8945 HAVE_FSYNC=1;
8946 HAVE_FTRUNCATE=1;
8947 HAVE_GETDTABLESIZE=1;
8948 HAVE_GETGROUPS=1;
8949 HAVE_GETHOSTNAME=1;
8950 HAVE_GETLOGIN=1;
8951 HAVE_GETPAGESIZE=1;
8952 HAVE_GROUP_MEMBER=1;
8953 HAVE_LCHOWN=1;
8954 HAVE_LINK=1;
8955 HAVE_LINKAT=1;
8956 HAVE_PIPE=1;
8957 HAVE_PIPE2=1;
8958 HAVE_PREAD=1;
8959 HAVE_PWRITE=1;
8960 HAVE_READLINK=1;
8961 HAVE_READLINKAT=1;
8962 HAVE_SETHOSTNAME=1;
8963 HAVE_SLEEP=1;
8964 HAVE_SYMLINK=1;
8965 HAVE_SYMLINKAT=1;
8966 HAVE_UNLINKAT=1;
8967 HAVE_USLEEP=1;
8968 HAVE_DECL_ENVIRON=1;
8969 HAVE_DECL_FCHDIR=1;
8970 HAVE_DECL_FDATASYNC=1;
8971 HAVE_DECL_GETDOMAINNAME=1;
8972 HAVE_DECL_GETLOGIN_R=1;
8973 HAVE_DECL_GETPAGESIZE=1;
8974 HAVE_DECL_GETUSERSHELL=1;
8975 HAVE_DECL_SETHOSTNAME=1;
8976 HAVE_DECL_TTYNAME_R=1;
8977 HAVE_OS_H=0;
8978 HAVE_SYS_PARAM_H=0;
8979 REPLACE_CHOWN=0;
8980 REPLACE_CLOSE=0;
8981 REPLACE_DUP=0;
8982 REPLACE_DUP2=0;
8983 REPLACE_FCHOWNAT=0;
8984 REPLACE_FTRUNCATE=0;
8985 REPLACE_GETCWD=0;
8986 REPLACE_GETDOMAINNAME=0;
8987 REPLACE_GETLOGIN_R=0;
8988 REPLACE_GETGROUPS=0;
8989 REPLACE_GETPAGESIZE=0;
8990 REPLACE_ISATTY=0;
8991 REPLACE_LCHOWN=0;
8992 REPLACE_LINK=0;
8993 REPLACE_LINKAT=0;
8994 REPLACE_LSEEK=0;
8995 REPLACE_PREAD=0;
8996 REPLACE_PWRITE=0;
8997 REPLACE_READ=0;
8998 REPLACE_READLINK=0;
8999 REPLACE_RMDIR=0;
9000 REPLACE_SLEEP=0;
9001 REPLACE_SYMLINK=0;
9002 REPLACE_TTYNAME_R=0;
9003 REPLACE_UNLINK=0;
9004 REPLACE_UNLINKAT=0;
9005 REPLACE_USLEEP=0;
9006 REPLACE_WRITE=0;
9007 UNISTD_H_HAVE_WINSOCK2_H=0;
9008 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
9012 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
9013 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9019 #include <sys/types.h>
9020 #include <sys/stat.h>
9022 main ()
9024 struct stat s; s.st_dm_mode;
9026 return 0;
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"; then :
9030 ac_cv_struct_st_dm_mode=yes
9031 else
9032 ac_cv_struct_st_dm_mode=no
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
9037 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
9039 if test $ac_cv_struct_st_dm_mode = yes; then
9041 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
9046 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
9047 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
9048 ac_have_decl=1
9049 else
9050 ac_have_decl=0
9053 cat >>confdefs.h <<_ACEOF
9054 #define HAVE_DECL_STRMODE $ac_have_decl
9055 _ACEOF
9058 GNULIB__EXIT=0;
9059 GNULIB_ATOLL=0;
9060 GNULIB_CALLOC_POSIX=0;
9061 GNULIB_CANONICALIZE_FILE_NAME=0;
9062 GNULIB_GETLOADAVG=0;
9063 GNULIB_GETSUBOPT=0;
9064 GNULIB_GRANTPT=0;
9065 GNULIB_MALLOC_POSIX=0;
9066 GNULIB_MBTOWC=0;
9067 GNULIB_MKDTEMP=0;
9068 GNULIB_MKOSTEMP=0;
9069 GNULIB_MKOSTEMPS=0;
9070 GNULIB_MKSTEMP=0;
9071 GNULIB_MKSTEMPS=0;
9072 GNULIB_POSIX_OPENPT=0;
9073 GNULIB_PTSNAME=0;
9074 GNULIB_PTSNAME_R=0;
9075 GNULIB_PUTENV=0;
9076 GNULIB_RANDOM=0;
9077 GNULIB_RANDOM_R=0;
9078 GNULIB_REALLOC_POSIX=0;
9079 GNULIB_REALPATH=0;
9080 GNULIB_RPMATCH=0;
9081 GNULIB_SETENV=0;
9082 GNULIB_STRTOD=0;
9083 GNULIB_STRTOLL=0;
9084 GNULIB_STRTOULL=0;
9085 GNULIB_SYSTEM_POSIX=0;
9086 GNULIB_UNLOCKPT=0;
9087 GNULIB_UNSETENV=0;
9088 GNULIB_WCTOMB=0;
9089 HAVE__EXIT=1;
9090 HAVE_ATOLL=1;
9091 HAVE_CANONICALIZE_FILE_NAME=1;
9092 HAVE_DECL_GETLOADAVG=1;
9093 HAVE_GETSUBOPT=1;
9094 HAVE_GRANTPT=1;
9095 HAVE_MKDTEMP=1;
9096 HAVE_MKOSTEMP=1;
9097 HAVE_MKOSTEMPS=1;
9098 HAVE_MKSTEMP=1;
9099 HAVE_MKSTEMPS=1;
9100 HAVE_POSIX_OPENPT=1;
9101 HAVE_PTSNAME=1;
9102 HAVE_PTSNAME_R=1;
9103 HAVE_RANDOM=1;
9104 HAVE_RANDOM_H=1;
9105 HAVE_RANDOM_R=1;
9106 HAVE_REALPATH=1;
9107 HAVE_RPMATCH=1;
9108 HAVE_SETENV=1;
9109 HAVE_DECL_SETENV=1;
9110 HAVE_STRTOD=1;
9111 HAVE_STRTOLL=1;
9112 HAVE_STRTOULL=1;
9113 HAVE_STRUCT_RANDOM_DATA=1;
9114 HAVE_SYS_LOADAVG_H=0;
9115 HAVE_UNLOCKPT=1;
9116 HAVE_DECL_UNSETENV=1;
9117 REPLACE_CALLOC=0;
9118 REPLACE_CANONICALIZE_FILE_NAME=0;
9119 REPLACE_MALLOC=0;
9120 REPLACE_MBTOWC=0;
9121 REPLACE_MKSTEMP=0;
9122 REPLACE_PTSNAME_R=0;
9123 REPLACE_PUTENV=0;
9124 REPLACE_RANDOM_R=0;
9125 REPLACE_REALLOC=0;
9126 REPLACE_REALPATH=0;
9127 REPLACE_SETENV=0;
9128 REPLACE_STRTOD=0;
9129 REPLACE_UNSETENV=0;
9130 REPLACE_WCTOMB=0;
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9135 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9136 if test "${gl_cv_have_include_next+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 rm -rf conftestd1a conftestd1b conftestd2
9140 mkdir conftestd1a conftestd1b conftestd2
9141 cat <<EOF > conftestd1a/conftest.h
9142 #define DEFINED_IN_CONFTESTD1
9143 #include_next <conftest.h>
9144 #ifdef DEFINED_IN_CONFTESTD2
9145 int foo;
9146 #else
9147 #error "include_next doesn't work"
9148 #endif
9150 cat <<EOF > conftestd1b/conftest.h
9151 #define DEFINED_IN_CONFTESTD1
9152 #include <stdio.h>
9153 #include_next <conftest.h>
9154 #ifdef DEFINED_IN_CONFTESTD2
9155 int foo;
9156 #else
9157 #error "include_next doesn't work"
9158 #endif
9160 cat <<EOF > conftestd2/conftest.h
9161 #ifndef DEFINED_IN_CONFTESTD1
9162 #error "include_next test doesn't work"
9163 #endif
9164 #define DEFINED_IN_CONFTESTD2
9166 gl_save_CPPFLAGS="$CPPFLAGS"
9167 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 #include <conftest.h>
9171 _ACEOF
9172 if ac_fn_c_try_compile "$LINENO"; then :
9173 gl_cv_have_include_next=yes
9174 else
9175 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 #include <conftest.h>
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181 gl_cv_have_include_next=buggy
9182 else
9183 gl_cv_have_include_next=no
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 CPPFLAGS="$gl_save_CPPFLAGS"
9190 rm -rf conftestd1a conftestd1b conftestd2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9194 $as_echo "$gl_cv_have_include_next" >&6; }
9195 PRAGMA_SYSTEM_HEADER=
9196 if test $gl_cv_have_include_next = yes; then
9197 INCLUDE_NEXT=include_next
9198 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9199 if test -n "$GCC"; then
9200 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9202 else
9203 if test $gl_cv_have_include_next = buggy; then
9204 INCLUDE_NEXT=include
9205 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9206 else
9207 INCLUDE_NEXT=include
9208 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9215 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9216 if test "${gl_cv_pragma_columns+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 #ifdef __TANDEM
9223 choke me
9224 #endif
9226 _ACEOF
9227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9228 $EGREP "choke me" >/dev/null 2>&1; then :
9229 gl_cv_pragma_columns=yes
9230 else
9231 gl_cv_pragma_columns=no
9233 rm -f conftest*
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9238 $as_echo "$gl_cv_pragma_columns" >&6; }
9239 if test $gl_cv_pragma_columns = yes; then
9240 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9241 else
9242 PRAGMA_COLUMNS=
9249 for ac_header in $ac_header_list
9250 do :
9251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9252 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9254 eval as_val=\$$as_ac_Header
9255 if test "x$as_val" = x""yes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9258 _ACEOF
9262 done
9279 if test $gl_cv_have_include_next = yes; then
9280 gl_cv_next_getopt_h='<'getopt.h'>'
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9283 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9284 if test "${gl_cv_next_getopt_h+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9288 if test $ac_cv_header_getopt_h = yes; then
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 #include <getopt.h>
9295 _ACEOF
9296 case "$host_os" in
9297 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9298 *) gl_absname_cpp="$ac_cpp" ;;
9299 esac
9301 case "$host_os" in
9302 mingw*)
9303 gl_dirsep_regex='[/\\]'
9306 gl_dirsep_regex='\/'
9308 esac
9309 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9311 gl_header_literal_regex=`echo 'getopt.h' \
9312 | sed -e "$gl_make_literal_regex_sed"`
9313 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9314 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9315 s|^/[^/]|//&|
9319 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9320 sed -n "$gl_absolute_header_sed"`'"'
9321 else
9322 gl_cv_next_getopt_h='<'getopt.h'>'
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9328 $as_echo "$gl_cv_next_getopt_h" >&6; }
9330 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9334 gl_next_as_first_directive='<'getopt.h'>'
9335 else
9336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9337 gl_next_as_first_directive=$gl_cv_next_getopt_h
9339 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9344 if test $ac_cv_header_getopt_h = yes; then
9345 HAVE_GETOPT_H=1
9346 else
9347 HAVE_GETOPT_H=0
9351 gl_replace_getopt=
9353 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9354 for ac_header in getopt.h
9355 do :
9356 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9357 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_GETOPT_H 1
9360 _ACEOF
9362 else
9363 gl_replace_getopt=yes
9366 done
9370 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9371 for ac_func in getopt_long_only
9372 do :
9373 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9374 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9375 cat >>confdefs.h <<_ACEOF
9376 #define HAVE_GETOPT_LONG_ONLY 1
9377 _ACEOF
9379 else
9380 gl_replace_getopt=yes
9382 done
9386 if test -z "$gl_replace_getopt"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9388 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9389 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9393 if test $cross_compiling = no; then
9394 if test "$cross_compiling" = yes; then :
9395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9397 as_fn_error "cannot run test program while cross compiling
9398 See \`config.log' for more details." "$LINENO" 5; }
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9403 #include <unistd.h>
9404 #include <stdlib.h>
9405 #include <string.h>
9408 main ()
9410 static char program[] = "program";
9411 static char a[] = "-a";
9412 static char foo[] = "foo";
9413 static char bar[] = "bar";
9414 char *argv[] = { program, a, foo, bar, NULL };
9415 int c;
9417 c = getopt (4, argv, "ab");
9418 if (!(c == 'a'))
9419 return 1;
9420 c = getopt (4, argv, "ab");
9421 if (!(c == -1))
9422 return 2;
9423 if (!(optind == 2))
9424 return 3;
9425 return 0;
9428 _ACEOF
9429 if ac_fn_c_try_run "$LINENO"; then :
9430 gl_cv_func_getopt_posix=maybe
9431 else
9432 gl_cv_func_getopt_posix=no
9434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9435 conftest.$ac_objext conftest.beam conftest.$ac_ext
9438 if test $gl_cv_func_getopt_posix = maybe; then
9439 if test "$cross_compiling" = yes; then :
9440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9442 as_fn_error "cannot run test program while cross compiling
9443 See \`config.log' for more details." "$LINENO" 5; }
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 #include <unistd.h>
9449 #include <stdlib.h>
9450 #include <string.h>
9453 main ()
9455 static char program[] = "program";
9456 static char donald[] = "donald";
9457 static char p[] = "-p";
9458 static char billy[] = "billy";
9459 static char duck[] = "duck";
9460 static char a[] = "-a";
9461 static char bar[] = "bar";
9462 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9463 int c;
9465 c = getopt (7, argv, "+abp:q:");
9466 if (!(c == -1))
9467 return 4;
9468 if (!(strcmp (argv[0], "program") == 0))
9469 return 5;
9470 if (!(strcmp (argv[1], "donald") == 0))
9471 return 6;
9472 if (!(strcmp (argv[2], "-p") == 0))
9473 return 7;
9474 if (!(strcmp (argv[3], "billy") == 0))
9475 return 8;
9476 if (!(strcmp (argv[4], "duck") == 0))
9477 return 9;
9478 if (!(strcmp (argv[5], "-a") == 0))
9479 return 10;
9480 if (!(strcmp (argv[6], "bar") == 0))
9481 return 11;
9482 if (!(optind == 1))
9483 return 12;
9484 return 0;
9487 _ACEOF
9488 if ac_fn_c_try_run "$LINENO"; then :
9489 gl_cv_func_getopt_posix=maybe
9490 else
9491 gl_cv_func_getopt_posix=no
9493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9494 conftest.$ac_objext conftest.beam conftest.$ac_ext
9498 if test $gl_cv_func_getopt_posix = maybe; then
9499 if test "$cross_compiling" = yes; then :
9500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9502 as_fn_error "cannot run test program while cross compiling
9503 See \`config.log' for more details." "$LINENO" 5; }
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9508 #include <unistd.h>
9509 #include <stdlib.h>
9510 #include <string.h>
9513 main ()
9515 static char program[] = "program";
9516 static char ab[] = "-ab";
9517 char *argv[3] = { program, ab, NULL };
9518 if (getopt (2, argv, "ab:") != 'a')
9519 return 13;
9520 if (getopt (2, argv, "ab:") != '?')
9521 return 14;
9522 if (optopt != 'b')
9523 return 15;
9524 if (optind != 2)
9525 return 16;
9526 return 0;
9529 _ACEOF
9530 if ac_fn_c_try_run "$LINENO"; then :
9531 gl_cv_func_getopt_posix=yes
9532 else
9533 gl_cv_func_getopt_posix=no
9535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9536 conftest.$ac_objext conftest.beam conftest.$ac_ext
9540 else
9541 case "$host_os" in
9542 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
9543 *) gl_cv_func_getopt_posix="guessing yes";;
9544 esac
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9549 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9550 case "$gl_cv_func_getopt_posix" in
9551 *no) gl_replace_getopt=yes ;;
9552 esac
9555 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9557 $as_echo_n "checking for working GNU getopt function... " >&6; }
9558 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9562 # optstring is necessary for programs like m4 that have POSIX-mandated
9563 # semantics for supporting options interspersed with files.
9564 # Also, since getopt_long is a GNU extension, we require optind=0.
9565 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9566 # so take care to revert to the correct (non-)export state.
9567 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9568 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9569 xx) gl_had_POSIXLY_CORRECT=exported ;;
9570 x) gl_had_POSIXLY_CORRECT=yes ;;
9571 *) gl_had_POSIXLY_CORRECT= ;;
9572 esac
9573 POSIXLY_CORRECT=1
9574 export POSIXLY_CORRECT
9575 if test "$cross_compiling" = yes; then :
9576 gl_cv_func_getopt_gnu="guessing no"
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <getopt.h>
9582 #include <stddef.h>
9583 #include <string.h>
9585 #include <stdlib.h>
9586 #if defined __MACH__ && defined __APPLE__
9587 /* Avoid a crash on Mac OS X. */
9588 #include <mach/mach.h>
9589 #include <mach/mach_error.h>
9590 #include <mach/thread_status.h>
9591 #include <mach/exception.h>
9592 #include <mach/task.h>
9593 #include <pthread.h>
9594 /* The exception port on which our thread listens. */
9595 static mach_port_t our_exception_port;
9596 /* The main function of the thread listening for exceptions of type
9597 EXC_BAD_ACCESS. */
9598 static void *
9599 mach_exception_thread (void *arg)
9601 /* Buffer for a message to be received. */
9602 struct {
9603 mach_msg_header_t head;
9604 mach_msg_body_t msgh_body;
9605 char data[1024];
9606 } msg;
9607 mach_msg_return_t retval;
9608 /* Wait for a message on the exception port. */
9609 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9610 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9611 if (retval != MACH_MSG_SUCCESS)
9612 abort ();
9613 exit (1);
9615 static void
9616 nocrash_init (void)
9618 mach_port_t self = mach_task_self ();
9619 /* Allocate a port on which the thread shall listen for exceptions. */
9620 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9621 == KERN_SUCCESS) {
9622 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9623 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9624 MACH_MSG_TYPE_MAKE_SEND)
9625 == KERN_SUCCESS) {
9626 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9627 for us. */
9628 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9629 /* Create the thread listening on the exception port. */
9630 pthread_attr_t attr;
9631 pthread_t thread;
9632 if (pthread_attr_init (&attr) == 0
9633 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9634 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9635 pthread_attr_destroy (&attr);
9636 /* Replace the exception port info for these exceptions with our own.
9637 Note that we replace the exception port for the entire task, not only
9638 for a particular thread. This has the effect that when our exception
9639 port gets the message, the thread specific exception port has already
9640 been asked, and we don't need to bother about it.
9641 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9642 task_set_exception_ports (self, mask, our_exception_port,
9643 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9648 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9649 /* Avoid a crash on native Windows. */
9650 #define WIN32_LEAN_AND_MEAN
9651 #include <windows.h>
9652 #include <winerror.h>
9653 static LONG WINAPI
9654 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9656 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9658 case EXCEPTION_ACCESS_VIOLATION:
9659 case EXCEPTION_IN_PAGE_ERROR:
9660 case EXCEPTION_STACK_OVERFLOW:
9661 case EXCEPTION_GUARD_PAGE:
9662 case EXCEPTION_PRIV_INSTRUCTION:
9663 case EXCEPTION_ILLEGAL_INSTRUCTION:
9664 case EXCEPTION_DATATYPE_MISALIGNMENT:
9665 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9666 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9667 exit (1);
9669 return EXCEPTION_CONTINUE_SEARCH;
9671 static void
9672 nocrash_init (void)
9674 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9676 #else
9677 /* Avoid a crash on POSIX systems. */
9678 #include <signal.h>
9679 /* A POSIX signal handler. */
9680 static void
9681 exception_handler (int sig)
9683 exit (1);
9685 static void
9686 nocrash_init (void)
9688 #ifdef SIGSEGV
9689 signal (SIGSEGV, exception_handler);
9690 #endif
9691 #ifdef SIGBUS
9692 signal (SIGBUS, exception_handler);
9693 #endif
9695 #endif
9699 main ()
9702 int result = 0;
9704 nocrash_init();
9706 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9707 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9708 OSF/1 5.1, Solaris 10. */
9710 static char conftest[] = "conftest";
9711 static char plus[] = "-+";
9712 char *argv[3] = { conftest, plus, NULL };
9713 opterr = 0;
9714 if (getopt (2, argv, "+a") != '?')
9715 result |= 1;
9717 /* This code succeeds on glibc 2.8, mingw,
9718 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9719 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9721 static char program[] = "program";
9722 static char p[] = "-p";
9723 static char foo[] = "foo";
9724 static char bar[] = "bar";
9725 char *argv[] = { program, p, foo, bar, NULL };
9727 optind = 1;
9728 if (getopt (4, argv, "p::") != 'p')
9729 result |= 2;
9730 else if (optarg != NULL)
9731 result |= 4;
9732 else if (getopt (4, argv, "p::") != -1)
9733 result |= 6;
9734 else if (optind != 2)
9735 result |= 8;
9737 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9739 static char program[] = "program";
9740 static char foo[] = "foo";
9741 static char p[] = "-p";
9742 char *argv[] = { program, foo, p, NULL };
9743 optind = 0;
9744 if (getopt (3, argv, "-p") != 1)
9745 result |= 16;
9746 else if (getopt (3, argv, "-p") != 'p')
9747 result |= 16;
9749 /* This code fails on glibc 2.11. */
9751 static char program[] = "program";
9752 static char b[] = "-b";
9753 static char a[] = "-a";
9754 char *argv[] = { program, b, a, NULL };
9755 optind = opterr = 0;
9756 if (getopt (3, argv, "+:a:b") != 'b')
9757 result |= 32;
9758 else if (getopt (3, argv, "+:a:b") != ':')
9759 result |= 32;
9761 /* This code dumps core on glibc 2.14. */
9763 static char program[] = "program";
9764 static char w[] = "-W";
9765 static char dummy[] = "dummy";
9766 char *argv[] = { program, w, dummy, NULL };
9767 optind = opterr = 1;
9768 if (getopt (3, argv, "W;") != 'W')
9769 result |= 64;
9771 return result;
9774 return 0;
9776 _ACEOF
9777 if ac_fn_c_try_run "$LINENO"; then :
9778 gl_cv_func_getopt_gnu=yes
9779 else
9780 gl_cv_func_getopt_gnu=no
9782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9783 conftest.$ac_objext conftest.beam conftest.$ac_ext
9786 case $gl_had_POSIXLY_CORRECT in
9787 exported) ;;
9788 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9789 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9790 esac
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9794 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9795 if test "$gl_cv_func_getopt_gnu" != yes; then
9796 gl_replace_getopt=yes
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9799 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9800 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 if test "$cross_compiling" = yes; then :
9804 case "$host_os" in
9805 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
9806 *) gl_cv_func_getopt_long_gnu="guessing yes";;
9807 esac
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #include <getopt.h>
9813 #include <stddef.h>
9814 #include <string.h>
9817 main ()
9819 static const struct option long_options[] =
9821 { "xtremely-",no_argument, NULL, 1003 },
9822 { "xtra", no_argument, NULL, 1001 },
9823 { "xtreme", no_argument, NULL, 1002 },
9824 { "xtremely", no_argument, NULL, 1003 },
9825 { NULL, 0, NULL, 0 }
9827 /* This code fails on OpenBSD 5.0. */
9829 static char program[] = "program";
9830 static char xtremel[] = "--xtremel";
9831 char *argv[] = { program, xtremel, NULL };
9832 int option_index;
9833 optind = 1; opterr = 0;
9834 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9835 return 1;
9837 return 0;
9840 return 0;
9842 _ACEOF
9843 if ac_fn_c_try_run "$LINENO"; then :
9844 gl_cv_func_getopt_long_gnu=yes
9845 else
9846 gl_cv_func_getopt_long_gnu=no
9848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9849 conftest.$ac_objext conftest.beam conftest.$ac_ext
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9855 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9856 case "$gl_cv_func_getopt_long_gnu" in
9857 *yes) ;;
9858 *) gl_replace_getopt=yes ;;
9859 esac
9867 REPLACE_GETOPT=0
9870 if test -n "$gl_replace_getopt"; then :
9872 REPLACE_GETOPT=1
9877 if test $REPLACE_GETOPT = 1; then
9879 GETOPT_H=getopt.h
9881 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9887 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9888 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9889 ac_have_decl=1
9890 else
9891 ac_have_decl=0
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_GETENV $ac_have_decl
9896 _ACEOF
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9906 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9907 if test "${ac_cv_c_restrict+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 ac_cv_c_restrict=no
9911 # The order here caters to the fact that C++ does not require restrict.
9912 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 typedef int * int_ptr;
9916 int foo (int_ptr $ac_kw ip) {
9917 return ip[0];
9920 main ()
9922 int s[1];
9923 int * $ac_kw t = s;
9924 t[0] = 0;
9925 return foo(t)
9927 return 0;
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 ac_cv_c_restrict=$ac_kw
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 test "$ac_cv_c_restrict" != no && break
9935 done
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9939 $as_echo "$ac_cv_c_restrict" >&6; }
9941 case $ac_cv_c_restrict in
9942 restrict) ;;
9943 no) $as_echo "#define restrict /**/" >>confdefs.h
9945 *) cat >>confdefs.h <<_ACEOF
9946 #define restrict $ac_cv_c_restrict
9947 _ACEOF
9949 esac
9952 GNULIB_GETTIMEOFDAY=0;
9953 HAVE_GETTIMEOFDAY=1;
9954 HAVE_STRUCT_TIMEVAL=1;
9955 HAVE_SYS_TIME_H=1;
9956 REPLACE_GETTIMEOFDAY=0;
9957 REPLACE_STRUCT_TIMEVAL=0;
9976 if test $gl_cv_have_include_next = yes; then
9977 gl_cv_next_sys_time_h='<'sys/time.h'>'
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9980 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9981 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9985 if test $ac_cv_header_sys_time_h = yes; then
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #include <sys/time.h>
9992 _ACEOF
9993 case "$host_os" in
9994 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9995 *) gl_absname_cpp="$ac_cpp" ;;
9996 esac
9998 case "$host_os" in
9999 mingw*)
10000 gl_dirsep_regex='[/\\]'
10003 gl_dirsep_regex='\/'
10005 esac
10006 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10008 gl_header_literal_regex=`echo 'sys/time.h' \
10009 | sed -e "$gl_make_literal_regex_sed"`
10010 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10011 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10012 s|^/[^/]|//&|
10016 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10017 sed -n "$gl_absolute_header_sed"`'"'
10018 else
10019 gl_cv_next_sys_time_h='<'sys/time.h'>'
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10025 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10027 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
10029 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10031 gl_next_as_first_directive='<'sys/time.h'>'
10032 else
10033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10034 gl_next_as_first_directive=$gl_cv_next_sys_time_h
10036 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
10042 if test $ac_cv_header_sys_time_h != yes; then
10043 HAVE_SYS_TIME_H=0
10050 if test $ac_cv_header_sys_socket_h != yes; then
10051 for ac_header in winsock2.h
10052 do :
10053 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10054 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
10055 cat >>confdefs.h <<_ACEOF
10056 #define HAVE_WINSOCK2_H 1
10057 _ACEOF
10061 done
10064 if test "$ac_cv_header_winsock2_h" = yes; then
10065 HAVE_WINSOCK2_H=1
10066 UNISTD_H_HAVE_WINSOCK2_H=1
10067 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10068 else
10069 HAVE_WINSOCK2_H=0
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10074 $as_echo_n "checking for struct timeval... " >&6; }
10075 if test "${gl_cv_sys_struct_timeval+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; x.tv_sec = x.tv_usec;
10093 return 0;
10095 _ACEOF
10096 if ac_fn_c_try_compile "$LINENO"; then :
10097 gl_cv_sys_struct_timeval=yes
10098 else
10099 gl_cv_sys_struct_timeval=no
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10105 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10106 if test $gl_cv_sys_struct_timeval != yes; then
10107 HAVE_STRUCT_TIMEVAL=0
10108 else
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10110 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10111 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 #if HAVE_SYS_TIME_H
10117 #include <sys/time.h>
10118 #endif
10119 #include <time.h>
10120 #if HAVE_WINSOCK2_H
10121 # include <winsock2.h>
10122 #endif
10125 main ()
10127 static struct timeval x;
10128 typedef int verify_tv_sec_type[
10129 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137 gl_cv_sys_struct_timeval_tv_sec=yes
10138 else
10139 gl_cv_sys_struct_timeval_tv_sec=no
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10145 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10146 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10147 REPLACE_STRUCT_TIMEVAL=1
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10158 $as_echo_n "checking for unsigned long long int... " >&6; }
10159 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 ac_cv_type_unsigned_long_long_int=yes
10163 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10167 /* For now, do not test the preprocessor; as of 2007 there are too many
10168 implementations with broken preprocessors. Perhaps this can
10169 be revisited in 2012. In the meantime, code should not expect
10170 #if to work with literals wider than 32 bits. */
10171 /* Test literals. */
10172 long long int ll = 9223372036854775807ll;
10173 long long int nll = -9223372036854775807LL;
10174 unsigned long long int ull = 18446744073709551615ULL;
10175 /* Test constant expressions. */
10176 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10177 ? 1 : -1)];
10178 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10179 ? 1 : -1)];
10180 int i = 63;
10182 main ()
10184 /* Test availability of runtime routines for shift and division. */
10185 long long int llmax = 9223372036854775807ll;
10186 unsigned long long int ullmax = 18446744073709551615ull;
10187 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10188 | (llmax / ll) | (llmax % ll)
10189 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10190 | (ullmax / ull) | (ullmax % ull));
10192 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10198 else
10199 ac_cv_type_unsigned_long_long_int=no
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10206 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10207 if test $ac_cv_type_unsigned_long_long_int = yes; then
10209 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10216 $as_echo_n "checking for long long int... " >&6; }
10217 if test "${ac_cv_type_long_long_int+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 ac_cv_type_long_long_int=yes
10221 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10222 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10223 if test $ac_cv_type_long_long_int = yes; then
10224 if test "$cross_compiling" = yes; then :
10226 else
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h. */
10229 #include <limits.h>
10230 #ifndef LLONG_MAX
10231 # define HALF \
10232 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10233 # define LLONG_MAX (HALF - 1 + HALF)
10234 #endif
10236 main ()
10238 long long int n = 1;
10239 int i;
10240 for (i = 0; ; i++)
10242 long long int m = n << i;
10243 if (m >> i != n)
10244 return 1;
10245 if (LLONG_MAX / 2 < m)
10246 break;
10248 return 0;
10250 return 0;
10252 _ACEOF
10253 if ac_fn_c_try_run "$LINENO"; then :
10255 else
10256 ac_cv_type_long_long_int=no
10258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10259 conftest.$ac_objext conftest.beam conftest.$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10266 $as_echo "$ac_cv_type_long_long_int" >&6; }
10267 if test $ac_cv_type_long_long_int = yes; then
10269 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10278 gl_cv_c_multiarch=no
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 #ifndef __APPLE_CC__
10282 not a universal capable compiler
10283 #endif
10284 typedef int dummy;
10286 _ACEOF
10287 if ac_fn_c_try_compile "$LINENO"; then :
10289 arch=
10290 prev=
10291 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10292 if test -n "$prev"; then
10293 case $word in
10294 i?86 | x86_64 | ppc | ppc64)
10295 if test -z "$arch" || test "$arch" = "$word"; then
10296 arch="$word"
10297 else
10298 gl_cv_c_multiarch=yes
10301 esac
10302 prev=
10303 else
10304 if test "x$word" = "x-arch"; then
10305 prev=arch
10308 done
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 if test $gl_cv_c_multiarch = yes; then
10313 APPLE_UNIVERSAL_BUILD=1
10314 else
10315 APPLE_UNIVERSAL_BUILD=0
10322 if test $ac_cv_type_long_long_int = yes; then
10323 HAVE_LONG_LONG_INT=1
10324 else
10325 HAVE_LONG_LONG_INT=0
10329 if test $ac_cv_type_unsigned_long_long_int = yes; then
10330 HAVE_UNSIGNED_LONG_LONG_INT=1
10331 else
10332 HAVE_UNSIGNED_LONG_LONG_INT=0
10337 if test $ac_cv_header_wchar_h = yes; then
10338 HAVE_WCHAR_H=1
10339 else
10340 HAVE_WCHAR_H=0
10344 if test $ac_cv_header_inttypes_h = yes; then
10345 HAVE_INTTYPES_H=1
10346 else
10347 HAVE_INTTYPES_H=0
10351 if test $ac_cv_header_sys_types_h = yes; then
10352 HAVE_SYS_TYPES_H=1
10353 else
10354 HAVE_SYS_TYPES_H=0
10367 if test $gl_cv_have_include_next = yes; then
10368 gl_cv_next_stdint_h='<'stdint.h'>'
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10371 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10372 if test "${gl_cv_next_stdint_h+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10376 if test $ac_cv_header_stdint_h = yes; then
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #include <stdint.h>
10383 _ACEOF
10384 case "$host_os" in
10385 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10386 *) gl_absname_cpp="$ac_cpp" ;;
10387 esac
10389 case "$host_os" in
10390 mingw*)
10391 gl_dirsep_regex='[/\\]'
10394 gl_dirsep_regex='\/'
10396 esac
10397 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10399 gl_header_literal_regex=`echo 'stdint.h' \
10400 | sed -e "$gl_make_literal_regex_sed"`
10401 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10402 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10403 s|^/[^/]|//&|
10407 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10408 sed -n "$gl_absolute_header_sed"`'"'
10409 else
10410 gl_cv_next_stdint_h='<'stdint.h'>'
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10416 $as_echo "$gl_cv_next_stdint_h" >&6; }
10418 NEXT_STDINT_H=$gl_cv_next_stdint_h
10420 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10422 gl_next_as_first_directive='<'stdint.h'>'
10423 else
10424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10425 gl_next_as_first_directive=$gl_cv_next_stdint_h
10427 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10432 if test $ac_cv_header_stdint_h = yes; then
10433 HAVE_STDINT_H=1
10434 else
10435 HAVE_STDINT_H=0
10439 if test $ac_cv_header_stdint_h = yes; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10441 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10442 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 gl_cv_header_working_stdint_h=no
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10450 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10451 #include <stdint.h>
10452 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10453 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10454 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10455 #endif
10458 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10459 included before <wchar.h>. */
10460 #include <stddef.h>
10461 #include <signal.h>
10462 #if HAVE_WCHAR_H
10463 # include <stdio.h>
10464 # include <time.h>
10465 # include <wchar.h>
10466 #endif
10469 #ifdef INT8_MAX
10470 int8_t a1 = INT8_MAX;
10471 int8_t a1min = INT8_MIN;
10472 #endif
10473 #ifdef INT16_MAX
10474 int16_t a2 = INT16_MAX;
10475 int16_t a2min = INT16_MIN;
10476 #endif
10477 #ifdef INT32_MAX
10478 int32_t a3 = INT32_MAX;
10479 int32_t a3min = INT32_MIN;
10480 #endif
10481 #ifdef INT64_MAX
10482 int64_t a4 = INT64_MAX;
10483 int64_t a4min = INT64_MIN;
10484 #endif
10485 #ifdef UINT8_MAX
10486 uint8_t b1 = UINT8_MAX;
10487 #else
10488 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10489 #endif
10490 #ifdef UINT16_MAX
10491 uint16_t b2 = UINT16_MAX;
10492 #endif
10493 #ifdef UINT32_MAX
10494 uint32_t b3 = UINT32_MAX;
10495 #endif
10496 #ifdef UINT64_MAX
10497 uint64_t b4 = UINT64_MAX;
10498 #endif
10499 int_least8_t c1 = INT8_C (0x7f);
10500 int_least8_t c1max = INT_LEAST8_MAX;
10501 int_least8_t c1min = INT_LEAST8_MIN;
10502 int_least16_t c2 = INT16_C (0x7fff);
10503 int_least16_t c2max = INT_LEAST16_MAX;
10504 int_least16_t c2min = INT_LEAST16_MIN;
10505 int_least32_t c3 = INT32_C (0x7fffffff);
10506 int_least32_t c3max = INT_LEAST32_MAX;
10507 int_least32_t c3min = INT_LEAST32_MIN;
10508 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10509 int_least64_t c4max = INT_LEAST64_MAX;
10510 int_least64_t c4min = INT_LEAST64_MIN;
10511 uint_least8_t d1 = UINT8_C (0xff);
10512 uint_least8_t d1max = UINT_LEAST8_MAX;
10513 uint_least16_t d2 = UINT16_C (0xffff);
10514 uint_least16_t d2max = UINT_LEAST16_MAX;
10515 uint_least32_t d3 = UINT32_C (0xffffffff);
10516 uint_least32_t d3max = UINT_LEAST32_MAX;
10517 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10518 uint_least64_t d4max = UINT_LEAST64_MAX;
10519 int_fast8_t e1 = INT_FAST8_MAX;
10520 int_fast8_t e1min = INT_FAST8_MIN;
10521 int_fast16_t e2 = INT_FAST16_MAX;
10522 int_fast16_t e2min = INT_FAST16_MIN;
10523 int_fast32_t e3 = INT_FAST32_MAX;
10524 int_fast32_t e3min = INT_FAST32_MIN;
10525 int_fast64_t e4 = INT_FAST64_MAX;
10526 int_fast64_t e4min = INT_FAST64_MIN;
10527 uint_fast8_t f1 = UINT_FAST8_MAX;
10528 uint_fast16_t f2 = UINT_FAST16_MAX;
10529 uint_fast32_t f3 = UINT_FAST32_MAX;
10530 uint_fast64_t f4 = UINT_FAST64_MAX;
10531 #ifdef INTPTR_MAX
10532 intptr_t g = INTPTR_MAX;
10533 intptr_t gmin = INTPTR_MIN;
10534 #endif
10535 #ifdef UINTPTR_MAX
10536 uintptr_t h = UINTPTR_MAX;
10537 #endif
10538 intmax_t i = INTMAX_MAX;
10539 uintmax_t j = UINTMAX_MAX;
10541 #include <limits.h> /* for CHAR_BIT */
10542 #define TYPE_MINIMUM(t) \
10543 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10544 #define TYPE_MAXIMUM(t) \
10545 ((t) ((t) 0 < (t) -1 \
10546 ? (t) -1 \
10547 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10548 struct s {
10549 int check_PTRDIFF:
10550 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10551 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10552 ? 1 : -1;
10553 /* Detect bug in FreeBSD 6.0 / ia64. */
10554 int check_SIG_ATOMIC:
10555 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10556 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10557 ? 1 : -1;
10558 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10559 int check_WCHAR:
10560 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10561 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10562 ? 1 : -1;
10563 /* Detect bug in mingw. */
10564 int check_WINT:
10565 WINT_MIN == TYPE_MINIMUM (wint_t)
10566 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10567 ? 1 : -1;
10569 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10570 int check_UINT8_C:
10571 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10572 int check_UINT16_C:
10573 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10575 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10576 #ifdef UINT8_MAX
10577 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10578 #endif
10579 #ifdef UINT16_MAX
10580 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10581 #endif
10582 #ifdef UINT32_MAX
10583 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10584 #endif
10585 #ifdef UINT64_MAX
10586 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10587 #endif
10588 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10589 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10590 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10591 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10592 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10593 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10594 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10595 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10596 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10597 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10598 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10602 main ()
10606 return 0;
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 if test "$cross_compiling" = yes; then :
10611 gl_cv_header_working_stdint_h=yes
10613 else
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10618 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10619 #include <stdint.h>
10622 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10623 included before <wchar.h>. */
10624 #include <stddef.h>
10625 #include <signal.h>
10626 #if HAVE_WCHAR_H
10627 # include <stdio.h>
10628 # include <time.h>
10629 # include <wchar.h>
10630 #endif
10633 #include <stdio.h>
10634 #include <string.h>
10635 #define MVAL(macro) MVAL1(macro)
10636 #define MVAL1(expression) #expression
10637 static const char *macro_values[] =
10639 #ifdef INT8_MAX
10640 MVAL (INT8_MAX),
10641 #endif
10642 #ifdef INT16_MAX
10643 MVAL (INT16_MAX),
10644 #endif
10645 #ifdef INT32_MAX
10646 MVAL (INT32_MAX),
10647 #endif
10648 #ifdef INT64_MAX
10649 MVAL (INT64_MAX),
10650 #endif
10651 #ifdef UINT8_MAX
10652 MVAL (UINT8_MAX),
10653 #endif
10654 #ifdef UINT16_MAX
10655 MVAL (UINT16_MAX),
10656 #endif
10657 #ifdef UINT32_MAX
10658 MVAL (UINT32_MAX),
10659 #endif
10660 #ifdef UINT64_MAX
10661 MVAL (UINT64_MAX),
10662 #endif
10663 NULL
10667 main ()
10670 const char **mv;
10671 for (mv = macro_values; *mv != NULL; mv++)
10673 const char *value = *mv;
10674 /* Test whether it looks like a cast expression. */
10675 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10676 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10677 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10678 || strncmp (value, "((int)"/*)*/, 6) == 0
10679 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10680 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10681 return mv - macro_values + 1;
10683 return 0;
10686 return 0;
10688 _ACEOF
10689 if ac_fn_c_try_run "$LINENO"; then :
10690 gl_cv_header_working_stdint_h=yes
10692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10693 conftest.$ac_objext conftest.beam conftest.$ac_ext
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10702 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10704 if test "$gl_cv_header_working_stdint_h" = yes; then
10705 STDINT_H=
10706 else
10707 for ac_header in sys/inttypes.h sys/bitypes.h
10708 do :
10709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10710 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10711 eval as_val=\$$as_ac_Header
10712 if test "x$as_val" = x""yes; then :
10713 cat >>confdefs.h <<_ACEOF
10714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10715 _ACEOF
10719 done
10721 if test $ac_cv_header_sys_inttypes_h = yes; then
10722 HAVE_SYS_INTTYPES_H=1
10723 else
10724 HAVE_SYS_INTTYPES_H=0
10727 if test $ac_cv_header_sys_bitypes_h = yes; then
10728 HAVE_SYS_BITYPES_H=1
10729 else
10730 HAVE_SYS_BITYPES_H=0
10736 if test $APPLE_UNIVERSAL_BUILD = 0; then
10739 for gltype in ptrdiff_t size_t ; do
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10741 $as_echo_n "checking for bit size of $gltype... " >&6; }
10742 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10746 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10747 included before <wchar.h>. */
10748 #include <stddef.h>
10749 #include <signal.h>
10750 #if HAVE_WCHAR_H
10751 # include <stdio.h>
10752 # include <time.h>
10753 # include <wchar.h>
10754 #endif
10756 #include <limits.h>"; then :
10758 else
10759 result=unknown
10762 eval gl_cv_bitsizeof_${gltype}=\$result
10765 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10767 $as_echo "$ac_res" >&6; }
10768 eval result=\$gl_cv_bitsizeof_${gltype}
10769 if test $result = unknown; then
10770 result=0
10772 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10773 cat >>confdefs.h <<_ACEOF
10774 #define BITSIZEOF_${GLTYPE} $result
10775 _ACEOF
10777 eval BITSIZEOF_${GLTYPE}=\$result
10778 done
10784 for gltype in sig_atomic_t wchar_t wint_t ; do
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10786 $as_echo_n "checking for bit size of $gltype... " >&6; }
10787 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10791 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10792 included before <wchar.h>. */
10793 #include <stddef.h>
10794 #include <signal.h>
10795 #if HAVE_WCHAR_H
10796 # include <stdio.h>
10797 # include <time.h>
10798 # include <wchar.h>
10799 #endif
10801 #include <limits.h>"; then :
10803 else
10804 result=unknown
10807 eval gl_cv_bitsizeof_${gltype}=\$result
10810 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10812 $as_echo "$ac_res" >&6; }
10813 eval result=\$gl_cv_bitsizeof_${gltype}
10814 if test $result = unknown; then
10815 result=0
10817 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10818 cat >>confdefs.h <<_ACEOF
10819 #define BITSIZEOF_${GLTYPE} $result
10820 _ACEOF
10822 eval BITSIZEOF_${GLTYPE}=\$result
10823 done
10828 for gltype in sig_atomic_t wchar_t wint_t ; do
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10830 $as_echo_n "checking whether $gltype is signed... " >&6; }
10831 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10838 included before <wchar.h>. */
10839 #include <stddef.h>
10840 #include <signal.h>
10841 #if HAVE_WCHAR_H
10842 # include <stdio.h>
10843 # include <time.h>
10844 # include <wchar.h>
10845 #endif
10847 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10849 main ()
10853 return 0;
10855 _ACEOF
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857 result=yes
10858 else
10859 result=no
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 eval gl_cv_type_${gltype}_signed=\$result
10865 eval ac_res=\$gl_cv_type_${gltype}_signed
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10867 $as_echo "$ac_res" >&6; }
10868 eval result=\$gl_cv_type_${gltype}_signed
10869 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10870 if test "$result" = yes; then
10871 cat >>confdefs.h <<_ACEOF
10872 #define HAVE_SIGNED_${GLTYPE} 1
10873 _ACEOF
10875 eval HAVE_SIGNED_${GLTYPE}=1
10876 else
10877 eval HAVE_SIGNED_${GLTYPE}=0
10879 done
10882 gl_cv_type_ptrdiff_t_signed=yes
10883 gl_cv_type_size_t_signed=no
10884 if test $APPLE_UNIVERSAL_BUILD = 0; then
10887 for gltype in ptrdiff_t size_t ; do
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10889 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10890 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 eval gl_cv_type_${gltype}_suffix=no
10894 eval result=\$gl_cv_type_${gltype}_signed
10895 if test "$result" = yes; then
10896 glsufu=
10897 else
10898 glsufu=u
10900 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10901 case $glsuf in
10902 '') gltype1='int';;
10903 l) gltype1='long int';;
10904 ll) gltype1='long long int';;
10905 i64) gltype1='__int64';;
10906 u) gltype1='unsigned int';;
10907 ul) gltype1='unsigned long int';;
10908 ull) gltype1='unsigned long long int';;
10909 ui64)gltype1='unsigned __int64';;
10910 esac
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10914 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10915 included before <wchar.h>. */
10916 #include <stddef.h>
10917 #include <signal.h>
10918 #if HAVE_WCHAR_H
10919 # include <stdio.h>
10920 # include <time.h>
10921 # include <wchar.h>
10922 #endif
10924 extern $gltype foo;
10925 extern $gltype1 foo;
10927 main ()
10931 return 0;
10933 _ACEOF
10934 if ac_fn_c_try_compile "$LINENO"; then :
10935 eval gl_cv_type_${gltype}_suffix=\$glsuf
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938 eval result=\$gl_cv_type_${gltype}_suffix
10939 test "$result" != no && break
10940 done
10942 eval ac_res=\$gl_cv_type_${gltype}_suffix
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10944 $as_echo "$ac_res" >&6; }
10945 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10946 eval result=\$gl_cv_type_${gltype}_suffix
10947 test "$result" = no && result=
10948 eval ${GLTYPE}_SUFFIX=\$result
10949 cat >>confdefs.h <<_ACEOF
10950 #define ${GLTYPE}_SUFFIX $result
10951 _ACEOF
10953 done
10959 for gltype in sig_atomic_t wchar_t wint_t ; do
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10961 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10962 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 eval gl_cv_type_${gltype}_suffix=no
10966 eval result=\$gl_cv_type_${gltype}_signed
10967 if test "$result" = yes; then
10968 glsufu=
10969 else
10970 glsufu=u
10972 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10973 case $glsuf in
10974 '') gltype1='int';;
10975 l) gltype1='long int';;
10976 ll) gltype1='long long int';;
10977 i64) gltype1='__int64';;
10978 u) gltype1='unsigned int';;
10979 ul) gltype1='unsigned long int';;
10980 ull) gltype1='unsigned long long int';;
10981 ui64)gltype1='unsigned __int64';;
10982 esac
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10987 included before <wchar.h>. */
10988 #include <stddef.h>
10989 #include <signal.h>
10990 #if HAVE_WCHAR_H
10991 # include <stdio.h>
10992 # include <time.h>
10993 # include <wchar.h>
10994 #endif
10996 extern $gltype foo;
10997 extern $gltype1 foo;
10999 main ()
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_compile "$LINENO"; then :
11007 eval gl_cv_type_${gltype}_suffix=\$glsuf
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 eval result=\$gl_cv_type_${gltype}_suffix
11011 test "$result" != no && break
11012 done
11014 eval ac_res=\$gl_cv_type_${gltype}_suffix
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11016 $as_echo "$ac_res" >&6; }
11017 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11018 eval result=\$gl_cv_type_${gltype}_suffix
11019 test "$result" = no && result=
11020 eval ${GLTYPE}_SUFFIX=\$result
11021 cat >>confdefs.h <<_ACEOF
11022 #define ${GLTYPE}_SUFFIX $result
11023 _ACEOF
11025 done
11029 if test $BITSIZEOF_WINT_T -lt 32; then
11030 BITSIZEOF_WINT_T=32
11033 STDINT_H=stdint.h
11036 if test -n "$STDINT_H"; then
11037 GL_GENERATE_STDINT_H_TRUE=
11038 GL_GENERATE_STDINT_H_FALSE='#'
11039 else
11040 GL_GENERATE_STDINT_H_TRUE='#'
11041 GL_GENERATE_STDINT_H_FALSE=
11048 GNULIB_IMAXABS=0;
11049 GNULIB_IMAXDIV=0;
11050 GNULIB_STRTOIMAX=0;
11051 GNULIB_STRTOUMAX=0;
11052 HAVE_DECL_IMAXABS=1;
11053 HAVE_DECL_IMAXDIV=1;
11054 HAVE_DECL_STRTOIMAX=1;
11055 HAVE_DECL_STRTOUMAX=1;
11056 REPLACE_STRTOIMAX=0;
11057 INT32_MAX_LT_INTMAX_MAX=1;
11058 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11059 PRI_MACROS_BROKEN=0;
11060 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11061 UINT32_MAX_LT_UINTMAX_MAX=1;
11062 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11078 if test $gl_cv_have_include_next = yes; then
11079 gl_cv_next_inttypes_h='<'inttypes.h'>'
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11082 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11083 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11087 if test $ac_cv_header_inttypes_h = yes; then
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #include <inttypes.h>
11094 _ACEOF
11095 case "$host_os" in
11096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11097 *) gl_absname_cpp="$ac_cpp" ;;
11098 esac
11100 case "$host_os" in
11101 mingw*)
11102 gl_dirsep_regex='[/\\]'
11105 gl_dirsep_regex='\/'
11107 esac
11108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11110 gl_header_literal_regex=`echo 'inttypes.h' \
11111 | sed -e "$gl_make_literal_regex_sed"`
11112 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11113 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11114 s|^/[^/]|//&|
11118 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11119 sed -n "$gl_absolute_header_sed"`'"'
11120 else
11121 gl_cv_next_inttypes_h='<'inttypes.h'>'
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11127 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11129 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11131 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11133 gl_next_as_first_directive='<'inttypes.h'>'
11134 else
11135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11136 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11138 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11150 case "$host_os" in
11151 mingw*)
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11153 $as_echo_n "checking for 64-bit off_t... " >&6; }
11154 if test "${gl_cv_type_off_t_64+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 #include <sys/types.h>
11160 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11163 main ()
11167 return 0;
11169 _ACEOF
11170 if ac_fn_c_try_compile "$LINENO"; then :
11171 gl_cv_type_off_t_64=yes
11172 else
11173 gl_cv_type_off_t_64=no
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11179 $as_echo "$gl_cv_type_off_t_64" >&6; }
11180 if test $gl_cv_type_off_t_64 = no; then
11181 WINDOWS_64_BIT_OFF_T=1
11182 else
11183 WINDOWS_64_BIT_OFF_T=0
11185 WINDOWS_64_BIT_ST_SIZE=1
11188 WINDOWS_64_BIT_OFF_T=0
11189 WINDOWS_64_BIT_ST_SIZE=0
11191 esac
11194 GNULIB_FCHMODAT=0;
11195 GNULIB_FSTAT=0;
11196 GNULIB_FSTATAT=0;
11197 GNULIB_FUTIMENS=0;
11198 GNULIB_LCHMOD=0;
11199 GNULIB_LSTAT=0;
11200 GNULIB_MKDIRAT=0;
11201 GNULIB_MKFIFO=0;
11202 GNULIB_MKFIFOAT=0;
11203 GNULIB_MKNOD=0;
11204 GNULIB_MKNODAT=0;
11205 GNULIB_STAT=0;
11206 GNULIB_UTIMENSAT=0;
11207 HAVE_FCHMODAT=1;
11208 HAVE_FSTATAT=1;
11209 HAVE_FUTIMENS=1;
11210 HAVE_LCHMOD=1;
11211 HAVE_LSTAT=1;
11212 HAVE_MKDIRAT=1;
11213 HAVE_MKFIFO=1;
11214 HAVE_MKFIFOAT=1;
11215 HAVE_MKNOD=1;
11216 HAVE_MKNODAT=1;
11217 HAVE_UTIMENSAT=1;
11218 REPLACE_FSTAT=0;
11219 REPLACE_FSTATAT=0;
11220 REPLACE_FUTIMENS=0;
11221 REPLACE_LSTAT=0;
11222 REPLACE_MKDIR=0;
11223 REPLACE_MKFIFO=0;
11224 REPLACE_MKNOD=0;
11225 REPLACE_STAT=0;
11226 REPLACE_UTIMENSAT=0;
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11232 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11233 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 rm -f conftest.sym conftest.file
11237 echo >conftest.file
11238 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11239 if test "$cross_compiling" = yes; then :
11240 case "$host_os" in
11241 # Guess yes on glibc systems.
11242 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11243 # If we don't know, assume the worst.
11244 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11245 esac
11247 else
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 $ac_includes_default
11252 main ()
11254 struct stat sbuf;
11255 /* Linux will dereference the symlink and fail, as required by
11256 POSIX. That is better in the sense that it means we will not
11257 have to compile and use the lstat wrapper. */
11258 return lstat ("conftest.sym/", &sbuf) == 0;
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_run "$LINENO"; then :
11265 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11266 else
11267 gl_cv_func_lstat_dereferences_slashed_symlink=no
11269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11270 conftest.$ac_objext conftest.beam conftest.$ac_ext
11273 else
11274 # If the 'ln -s' command failed, then we probably don't even
11275 # have an lstat function.
11276 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
11278 rm -f conftest.sym conftest.file
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11282 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11283 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11284 *yes)
11286 cat >>confdefs.h <<_ACEOF
11287 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11288 _ACEOF
11291 esac
11294 GNULIB_MKTIME=0;
11295 GNULIB_NANOSLEEP=0;
11296 GNULIB_STRPTIME=0;
11297 GNULIB_TIMEGM=0;
11298 GNULIB_TIME_R=0;
11299 HAVE_DECL_LOCALTIME_R=1;
11300 HAVE_NANOSLEEP=1;
11301 HAVE_STRPTIME=1;
11302 HAVE_TIMEGM=1;
11303 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11304 REPLACE_MKTIME=GNULIB_PORTCHECK;
11305 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11306 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11313 GNULIB_PSELECT=0;
11314 GNULIB_SELECT=0;
11315 HAVE_PSELECT=1;
11316 REPLACE_PSELECT=0;
11317 REPLACE_SELECT=0;
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11325 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11326 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <sys/select.h>
11334 main ()
11336 struct timeval b;
11338 return 0;
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342 gl_cv_header_sys_select_h_selfcontained=yes
11343 else
11344 gl_cv_header_sys_select_h_selfcontained=no
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 #include <sys/select.h>
11352 main ()
11354 int memset; int bzero;
11356 return 0;
11359 _ACEOF
11360 if ac_fn_c_try_compile "$LINENO"; then :
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363 #include <sys/select.h>
11365 main ()
11368 #undef memset
11369 #define memset nonexistent_memset
11370 extern
11371 #ifdef __cplusplus
11373 #endif
11374 void *memset (void *, int, unsigned long);
11375 #undef bzero
11376 #define bzero nonexistent_bzero
11377 extern
11378 #ifdef __cplusplus
11380 #endif
11381 void bzero (void *, unsigned long);
11382 fd_set fds;
11383 FD_ZERO (&fds);
11386 return 0;
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11392 else
11393 gl_cv_header_sys_select_h_selfcontained=no
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11404 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11414 if test $gl_cv_have_include_next = yes; then
11415 gl_cv_next_sys_select_h='<'sys/select.h'>'
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11418 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11419 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11423 if test $ac_cv_header_sys_select_h = yes; then
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #include <sys/select.h>
11430 _ACEOF
11431 case "$host_os" in
11432 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11433 *) gl_absname_cpp="$ac_cpp" ;;
11434 esac
11436 case "$host_os" in
11437 mingw*)
11438 gl_dirsep_regex='[/\\]'
11441 gl_dirsep_regex='\/'
11443 esac
11444 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11446 gl_header_literal_regex=`echo 'sys/select.h' \
11447 | sed -e "$gl_make_literal_regex_sed"`
11448 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11449 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11450 s|^/[^/]|//&|
11454 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11455 sed -n "$gl_absolute_header_sed"`'"'
11456 else
11457 gl_cv_next_sys_select_h='<'sys/select.h'>'
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11463 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11465 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
11467 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11469 gl_next_as_first_directive='<'sys/select.h'>'
11470 else
11471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11472 gl_next_as_first_directive=$gl_cv_next_sys_select_h
11474 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
11479 if test $ac_cv_header_sys_select_h = yes; then
11480 HAVE_SYS_SELECT_H=1
11481 else
11482 HAVE_SYS_SELECT_H=0
11489 if test $ac_cv_header_sys_socket_h != yes; then
11490 for ac_header in winsock2.h
11491 do :
11492 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11493 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_WINSOCK2_H 1
11496 _ACEOF
11500 done
11503 if test "$ac_cv_header_winsock2_h" = yes; then
11504 HAVE_WINSOCK2_H=1
11505 UNISTD_H_HAVE_WINSOCK2_H=1
11506 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11507 else
11508 HAVE_WINSOCK2_H=0
11518 GNULIB_PTHREAD_SIGMASK=0;
11519 GNULIB_RAISE=0;
11520 GNULIB_SIGNAL_H_SIGPIPE=0;
11521 GNULIB_SIGPROCMASK=0;
11522 GNULIB_SIGACTION=0;
11523 HAVE_POSIX_SIGNALBLOCKING=1;
11524 HAVE_PTHREAD_SIGMASK=1;
11525 HAVE_RAISE=1;
11526 HAVE_SIGSET_T=1;
11527 HAVE_SIGINFO_T=1;
11528 HAVE_SIGACTION=1;
11529 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11531 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11533 HAVE_SIGHANDLER_T=1;
11534 REPLACE_PTHREAD_SIGMASK=0;
11535 REPLACE_RAISE=0;
11542 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11543 #include <signal.h>
11544 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11545 #include <sys/types.h>
11548 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11550 cat >>confdefs.h <<_ACEOF
11551 #define HAVE_SIGSET_T 1
11552 _ACEOF
11554 gl_cv_type_sigset_t=yes
11555 else
11556 gl_cv_type_sigset_t=no
11559 if test $gl_cv_type_sigset_t != yes; then
11560 HAVE_SIGSET_T=0
11563 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11564 if test "x$ac_cv_type_pid_t" = x""yes; then :
11566 else
11568 cat >>confdefs.h <<_ACEOF
11569 #define pid_t int
11570 _ACEOF
11576 if test $ac_cv_header_sys_socket_h = no; then
11577 for ac_header in ws2tcpip.h
11578 do :
11579 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11580 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
11581 cat >>confdefs.h <<_ACEOF
11582 #define HAVE_WS2TCPIP_H 1
11583 _ACEOF
11587 done
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11592 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11593 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11599 #include <stdbool.h>
11600 #ifndef bool
11601 "error: bool is not defined"
11602 #endif
11603 #ifndef false
11604 "error: false is not defined"
11605 #endif
11606 #if false
11607 "error: false is not 0"
11608 #endif
11609 #ifndef true
11610 "error: true is not defined"
11611 #endif
11612 #if true != 1
11613 "error: true is not 1"
11614 #endif
11615 #ifndef __bool_true_false_are_defined
11616 "error: __bool_true_false_are_defined is not defined"
11617 #endif
11619 struct s { _Bool s: 1; _Bool t; } s;
11621 char a[true == 1 ? 1 : -1];
11622 char b[false == 0 ? 1 : -1];
11623 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11624 char d[(bool) 0.5 == true ? 1 : -1];
11625 /* See body of main program for 'e'. */
11626 char f[(_Bool) 0.0 == false ? 1 : -1];
11627 char g[true];
11628 char h[sizeof (_Bool)];
11629 char i[sizeof s.t];
11630 enum { j = false, k = true, l = false * true, m = true * 256 };
11631 /* The following fails for
11632 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11633 _Bool n[m];
11634 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11635 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11636 /* Catch a bug in an HP-UX C compiler. See
11637 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11638 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11640 _Bool q = true;
11641 _Bool *pq = &q;
11644 main ()
11647 bool e = &s;
11648 *pq |= q;
11649 *pq |= ! q;
11650 /* Refer to every declared value, to avoid compiler optimizations. */
11651 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11652 + !m + !n + !o + !p + !q + !pq);
11655 return 0;
11657 _ACEOF
11658 if ac_fn_c_try_compile "$LINENO"; then :
11659 ac_cv_header_stdbool_h=yes
11660 else
11661 ac_cv_header_stdbool_h=no
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11666 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11667 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11668 if test "x$ac_cv_type__Bool" = x""yes; then :
11670 cat >>confdefs.h <<_ACEOF
11671 #define HAVE__BOOL 1
11672 _ACEOF
11679 REPLACE_NULL=0;
11680 HAVE_WCHAR_T=1;
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11684 $as_echo_n "checking for wchar_t... " >&6; }
11685 if test "${gt_cv_c_wchar_t+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <stddef.h>
11691 wchar_t foo = (wchar_t)'\0';
11693 main ()
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_compile "$LINENO"; then :
11701 gt_cv_c_wchar_t=yes
11702 else
11703 gt_cv_c_wchar_t=no
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11708 $as_echo "$gt_cv_c_wchar_t" >&6; }
11709 if test $gt_cv_c_wchar_t = yes; then
11711 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11716 GNULIB_DPRINTF=0;
11717 GNULIB_FCLOSE=0;
11718 GNULIB_FDOPEN=0;
11719 GNULIB_FFLUSH=0;
11720 GNULIB_FGETC=0;
11721 GNULIB_FGETS=0;
11722 GNULIB_FOPEN=0;
11723 GNULIB_FPRINTF=0;
11724 GNULIB_FPRINTF_POSIX=0;
11725 GNULIB_FPURGE=0;
11726 GNULIB_FPUTC=0;
11727 GNULIB_FPUTS=0;
11728 GNULIB_FREAD=0;
11729 GNULIB_FREOPEN=0;
11730 GNULIB_FSCANF=0;
11731 GNULIB_FSEEK=0;
11732 GNULIB_FSEEKO=0;
11733 GNULIB_FTELL=0;
11734 GNULIB_FTELLO=0;
11735 GNULIB_FWRITE=0;
11736 GNULIB_GETC=0;
11737 GNULIB_GETCHAR=0;
11738 GNULIB_GETDELIM=0;
11739 GNULIB_GETLINE=0;
11740 GNULIB_OBSTACK_PRINTF=0;
11741 GNULIB_OBSTACK_PRINTF_POSIX=0;
11742 GNULIB_PCLOSE=0;
11743 GNULIB_PERROR=0;
11744 GNULIB_POPEN=0;
11745 GNULIB_PRINTF=0;
11746 GNULIB_PRINTF_POSIX=0;
11747 GNULIB_PUTC=0;
11748 GNULIB_PUTCHAR=0;
11749 GNULIB_PUTS=0;
11750 GNULIB_REMOVE=0;
11751 GNULIB_RENAME=0;
11752 GNULIB_RENAMEAT=0;
11753 GNULIB_SCANF=0;
11754 GNULIB_SNPRINTF=0;
11755 GNULIB_SPRINTF_POSIX=0;
11756 GNULIB_STDIO_H_NONBLOCKING=0;
11757 GNULIB_STDIO_H_SIGPIPE=0;
11758 GNULIB_TMPFILE=0;
11759 GNULIB_VASPRINTF=0;
11760 GNULIB_VFSCANF=0;
11761 GNULIB_VSCANF=0;
11762 GNULIB_VDPRINTF=0;
11763 GNULIB_VFPRINTF=0;
11764 GNULIB_VFPRINTF_POSIX=0;
11765 GNULIB_VPRINTF=0;
11766 GNULIB_VPRINTF_POSIX=0;
11767 GNULIB_VSNPRINTF=0;
11768 GNULIB_VSPRINTF_POSIX=0;
11769 HAVE_DECL_FPURGE=1;
11770 HAVE_DECL_FSEEKO=1;
11771 HAVE_DECL_FTELLO=1;
11772 HAVE_DECL_GETDELIM=1;
11773 HAVE_DECL_GETLINE=1;
11774 HAVE_DECL_OBSTACK_PRINTF=1;
11775 HAVE_DECL_SNPRINTF=1;
11776 HAVE_DECL_VSNPRINTF=1;
11777 HAVE_DPRINTF=1;
11778 HAVE_FSEEKO=1;
11779 HAVE_FTELLO=1;
11780 HAVE_PCLOSE=1;
11781 HAVE_POPEN=1;
11782 HAVE_RENAMEAT=1;
11783 HAVE_VASPRINTF=1;
11784 HAVE_VDPRINTF=1;
11785 REPLACE_DPRINTF=0;
11786 REPLACE_FCLOSE=0;
11787 REPLACE_FDOPEN=0;
11788 REPLACE_FFLUSH=0;
11789 REPLACE_FOPEN=0;
11790 REPLACE_FPRINTF=0;
11791 REPLACE_FPURGE=0;
11792 REPLACE_FREOPEN=0;
11793 REPLACE_FSEEK=0;
11794 REPLACE_FSEEKO=0;
11795 REPLACE_FTELL=0;
11796 REPLACE_FTELLO=0;
11797 REPLACE_GETDELIM=0;
11798 REPLACE_GETLINE=0;
11799 REPLACE_OBSTACK_PRINTF=0;
11800 REPLACE_PERROR=0;
11801 REPLACE_POPEN=0;
11802 REPLACE_PRINTF=0;
11803 REPLACE_REMOVE=0;
11804 REPLACE_RENAME=0;
11805 REPLACE_RENAMEAT=0;
11806 REPLACE_SNPRINTF=0;
11807 REPLACE_SPRINTF=0;
11808 REPLACE_STDIO_READ_FUNCS=0;
11809 REPLACE_STDIO_WRITE_FUNCS=0;
11810 REPLACE_TMPFILE=0;
11811 REPLACE_VASPRINTF=0;
11812 REPLACE_VDPRINTF=0;
11813 REPLACE_VFPRINTF=0;
11814 REPLACE_VPRINTF=0;
11815 REPLACE_VSNPRINTF=0;
11816 REPLACE_VSPRINTF=0;
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11819 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11820 if test "${ac_cv_struct_tm+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #include <sys/types.h>
11826 #include <time.h>
11829 main ()
11831 struct tm tm;
11832 int *p = &tm.tm_sec;
11833 return !p;
11835 return 0;
11837 _ACEOF
11838 if ac_fn_c_try_compile "$LINENO"; then :
11839 ac_cv_struct_tm=time.h
11840 else
11841 ac_cv_struct_tm=sys/time.h
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11846 $as_echo "$ac_cv_struct_tm" >&6; }
11847 if test $ac_cv_struct_tm = sys/time.h; then
11849 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11853 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11854 #include <$ac_cv_struct_tm>
11857 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11859 cat >>confdefs.h <<_ACEOF
11860 #define HAVE_STRUCT_TM_TM_ZONE 1
11861 _ACEOF
11866 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11868 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11870 else
11871 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11873 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11874 ac_have_decl=1
11875 else
11876 ac_have_decl=0
11879 cat >>confdefs.h <<_ACEOF
11880 #define HAVE_DECL_TZNAME $ac_have_decl
11881 _ACEOF
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11884 $as_echo_n "checking for tzname... " >&6; }
11885 if test "${ac_cv_var_tzname+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11890 #include <time.h>
11891 #if !HAVE_DECL_TZNAME
11892 extern char *tzname[];
11893 #endif
11896 main ()
11898 return tzname[0][0];
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_var_tzname=yes
11905 else
11906 ac_cv_var_tzname=no
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11912 $as_echo "$ac_cv_var_tzname" >&6; }
11913 if test $ac_cv_var_tzname = yes; then
11915 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11921 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11923 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11925 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11934 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11935 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
11936 ac_have_decl=1
11937 else
11938 ac_have_decl=0
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11943 _ACEOF
11947 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11948 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
11949 ac_have_decl=1
11950 else
11951 ac_have_decl=0
11954 cat >>confdefs.h <<_ACEOF
11955 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11956 _ACEOF
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11961 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11962 if test "${ac_cv_header_stat_broken+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <sys/types.h>
11968 #include <sys/stat.h>
11970 #if defined S_ISBLK && defined S_IFDIR
11971 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11972 #endif
11974 #if defined S_ISBLK && defined S_IFCHR
11975 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11976 #endif
11978 #if defined S_ISLNK && defined S_IFREG
11979 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11980 #endif
11982 #if defined S_ISSOCK && defined S_IFREG
11983 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11984 #endif
11986 _ACEOF
11987 if ac_fn_c_try_compile "$LINENO"; then :
11988 ac_cv_header_stat_broken=no
11989 else
11990 ac_cv_header_stat_broken=yes
11992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11995 $as_echo "$ac_cv_header_stat_broken" >&6; }
11996 if test $ac_cv_header_stat_broken = yes; then
11998 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12004 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12005 if test "x$ac_cv_type_mode_t" = x""yes; then :
12007 else
12009 cat >>confdefs.h <<_ACEOF
12010 #define mode_t int
12011 _ACEOF
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12018 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12019 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 #include <time.h>
12027 main ()
12029 static struct timespec x; x.tv_sec = x.tv_nsec;
12031 return 0;
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035 gl_cv_sys_struct_timespec_in_time_h=yes
12036 else
12037 gl_cv_sys_struct_timespec_in_time_h=no
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12042 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12044 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12045 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12046 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12047 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12048 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12051 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12052 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 #include <sys/time.h>
12060 main ()
12062 static struct timespec x; x.tv_sec = x.tv_nsec;
12064 return 0;
12066 _ACEOF
12067 if ac_fn_c_try_compile "$LINENO"; then :
12068 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12069 else
12070 gl_cv_sys_struct_timespec_in_sys_time_h=no
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12075 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12076 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12077 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12080 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12081 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #include <pthread.h>
12089 main ()
12091 static struct timespec x; x.tv_sec = x.tv_nsec;
12093 return 0;
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 gl_cv_sys_struct_timespec_in_pthread_h=yes
12098 else
12099 gl_cv_sys_struct_timespec_in_pthread_h=no
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12104 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12105 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12106 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12125 if test $gl_cv_have_include_next = yes; then
12126 gl_cv_next_time_h='<'time.h'>'
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12129 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12130 if test "${gl_cv_next_time_h+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <time.h>
12138 _ACEOF
12139 case "$host_os" in
12140 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12141 *) gl_absname_cpp="$ac_cpp" ;;
12142 esac
12144 case "$host_os" in
12145 mingw*)
12146 gl_dirsep_regex='[/\\]'
12149 gl_dirsep_regex='\/'
12151 esac
12152 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12154 gl_header_literal_regex=`echo 'time.h' \
12155 | sed -e "$gl_make_literal_regex_sed"`
12156 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12157 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12158 s|^/[^/]|//&|
12162 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12163 sed -n "$gl_absolute_header_sed"`'"'
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12168 $as_echo "$gl_cv_next_time_h" >&6; }
12170 NEXT_TIME_H=$gl_cv_next_time_h
12172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12174 gl_next_as_first_directive='<'time.h'>'
12175 else
12176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12177 gl_next_as_first_directive=$gl_cv_next_time_h
12179 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12196 $as_echo_n "checking whether the utimes function works... " >&6; }
12197 if test "${gl_cv_func_working_utimes+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12201 if test "$cross_compiling" = yes; then :
12202 gl_cv_func_working_utimes=no
12203 else
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 #include <sys/types.h>
12208 #include <sys/stat.h>
12209 #include <fcntl.h>
12210 #include <sys/time.h>
12211 #include <time.h>
12212 #include <unistd.h>
12213 #include <stdlib.h>
12214 #include <stdio.h>
12215 #include <utime.h>
12217 static int
12218 inorder (time_t a, time_t b, time_t c)
12220 return a <= b && b <= c;
12224 main ()
12226 int result = 0;
12227 char const *file = "conftest.utimes";
12228 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12230 /* Test whether utimes() essentially works. */
12232 struct stat sbuf;
12233 FILE *f = fopen (file, "w");
12234 if (f == NULL)
12235 result |= 1;
12236 else if (fclose (f) != 0)
12237 result |= 1;
12238 else if (utimes (file, timeval) != 0)
12239 result |= 2;
12240 else if (lstat (file, &sbuf) != 0)
12241 result |= 1;
12242 else if (!(sbuf.st_atime == timeval[0].tv_sec
12243 && sbuf.st_mtime == timeval[1].tv_sec))
12244 result |= 4;
12245 if (unlink (file) != 0)
12246 result |= 1;
12249 /* Test whether utimes() with a NULL argument sets the file's timestamp
12250 to the current time. Use 'fstat' as well as 'time' to
12251 determine the "current" time, to accommodate NFS file systems
12252 if there is a time skew between the host and the NFS server. */
12254 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12255 if (fd < 0)
12256 result |= 1;
12257 else
12259 time_t t0, t2;
12260 struct stat st0, st1, st2;
12261 if (time (&t0) == (time_t) -1)
12262 result |= 1;
12263 else if (fstat (fd, &st0) != 0)
12264 result |= 1;
12265 else if (utimes (file, timeval) != 0)
12266 result |= 2;
12267 else if (utimes (file, NULL) != 0)
12268 result |= 8;
12269 else if (fstat (fd, &st1) != 0)
12270 result |= 1;
12271 else if (write (fd, "\n", 1) != 1)
12272 result |= 1;
12273 else if (fstat (fd, &st2) != 0)
12274 result |= 1;
12275 else if (time (&t2) == (time_t) -1)
12276 result |= 1;
12277 else
12279 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12280 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12281 if (! (st1.st_atime == st1.st_mtime))
12282 result |= 16;
12283 if (! (m_ok_POSIX || m_ok_NFS))
12284 result |= 32;
12286 if (close (fd) != 0)
12287 result |= 1;
12289 if (unlink (file) != 0)
12290 result |= 1;
12293 /* Test whether utimes() with a NULL argument works on read-only files. */
12295 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12296 if (fd < 0)
12297 result |= 1;
12298 else if (close (fd) != 0)
12299 result |= 1;
12300 else if (utimes (file, NULL) != 0)
12301 result |= 64;
12302 if (unlink (file) != 0)
12303 result |= 1;
12306 return result;
12309 _ACEOF
12310 if ac_fn_c_try_run "$LINENO"; then :
12311 gl_cv_func_working_utimes=yes
12312 else
12313 gl_cv_func_working_utimes=no
12315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12316 conftest.$ac_objext conftest.beam conftest.$ac_ext
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12321 $as_echo "$gl_cv_func_working_utimes" >&6; }
12323 if test $gl_cv_func_working_utimes = yes; then
12325 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12334 $as_echo_n "checking for struct utimbuf... " >&6; }
12335 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340 #if HAVE_SYS_TIME_H
12341 #include <sys/time.h>
12342 #endif
12343 #include <time.h>
12344 #ifdef HAVE_UTIME_H
12345 #include <utime.h>
12346 #endif
12349 main ()
12351 static struct utimbuf x; x.actime = x.modtime;
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357 gl_cv_sys_struct_utimbuf=yes
12358 else
12359 gl_cv_sys_struct_utimbuf=no
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12364 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12366 if test $gl_cv_sys_struct_utimbuf = yes; then
12368 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12385 if false; then
12386 GL_COND_LIBTOOL_TRUE=
12387 GL_COND_LIBTOOL_FALSE='#'
12388 else
12389 GL_COND_LIBTOOL_TRUE='#'
12390 GL_COND_LIBTOOL_FALSE=
12393 gl_cond_libtool=false
12394 gl_libdeps=
12395 gl_ltlibdeps=
12396 gl_m4_base='m4'
12406 gl_source_base='lib'
12409 if test $ac_cv_func_alloca_works = no; then
12413 # Define an additional variable used in the Makefile substitution.
12414 if test $ac_cv_working_alloca_h = yes; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12416 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12417 if test "${gl_cv_rpl_alloca+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12425 Need own alloca
12426 #endif
12428 _ACEOF
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12431 gl_cv_rpl_alloca=yes
12432 else
12433 gl_cv_rpl_alloca=no
12435 rm -f conftest*
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12440 $as_echo "$gl_cv_rpl_alloca" >&6; }
12441 if test $gl_cv_rpl_alloca = yes; then
12443 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12445 ALLOCA_H=alloca.h
12446 else
12447 ALLOCA_H=
12449 else
12450 ALLOCA_H=alloca.h
12453 if test -n "$ALLOCA_H"; then
12454 GL_GENERATE_ALLOCA_H_TRUE=
12455 GL_GENERATE_ALLOCA_H_FALSE='#'
12456 else
12457 GL_GENERATE_ALLOCA_H_TRUE='#'
12458 GL_GENERATE_ALLOCA_H_FALSE=
12466 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12467 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12469 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12470 # programs in the package would end up linked with that potentially-shared
12471 # library, inducing unnecessary run-time overhead.
12472 LIB_CLOCK_GETTIME=
12474 gl_saved_libs=$LIBS
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12476 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12477 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 ac_func_search_save_LIBS=$LIBS
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char clock_gettime ();
12492 main ()
12494 return clock_gettime ();
12496 return 0;
12498 _ACEOF
12499 for ac_lib in '' rt posix4; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12502 else
12503 ac_res=-l$ac_lib
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 ac_cv_search_clock_gettime=$ac_res
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext
12511 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12512 break
12514 done
12515 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12517 else
12518 ac_cv_search_clock_gettime=no
12520 rm conftest.$ac_ext
12521 LIBS=$ac_func_search_save_LIBS
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12524 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12525 ac_res=$ac_cv_search_clock_gettime
12526 if test "$ac_res" != no; then :
12527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12528 test "$ac_cv_search_clock_gettime" = "none required" ||
12529 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12532 for ac_func in clock_gettime clock_settime
12533 do :
12534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12536 eval as_val=\$$as_ac_var
12537 if test "x$as_val" = x""yes; then :
12538 cat >>confdefs.h <<_ACEOF
12539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12540 _ACEOF
12543 done
12545 LIBS=$gl_saved_libs
12571 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12574 if test $HAVE_DUP2 = 1; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12576 $as_echo_n "checking whether dup2 works... " >&6; }
12577 if test "${gl_cv_func_dup2_works+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test "$cross_compiling" = yes; then :
12581 case "$host_os" in
12582 mingw*) # on this platform, dup2 always returns 0 for success
12583 gl_cv_func_dup2_works="guessing no" ;;
12584 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12585 gl_cv_func_dup2_works="guessing no" ;;
12586 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12587 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12588 gl_cv_func_dup2_works="guessing no" ;;
12589 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12590 gl_cv_func_dup2_works="guessing no" ;;
12591 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12592 gl_cv_func_dup2_works="guessing no" ;;
12593 *) gl_cv_func_dup2_works="guessing yes" ;;
12594 esac
12595 else
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12599 #include <unistd.h>
12600 #include <fcntl.h>
12601 #include <errno.h>
12603 main ()
12605 int result = 0;
12606 #ifdef FD_CLOEXEC
12607 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12608 result |= 1;
12609 #endif
12610 if (dup2 (1, 1) == 0)
12611 result |= 2;
12612 #ifdef FD_CLOEXEC
12613 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12614 result |= 4;
12615 #endif
12616 close (0);
12617 if (dup2 (0, 0) != -1)
12618 result |= 8;
12619 /* Many gnulib modules require POSIX conformance of EBADF. */
12620 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12621 result |= 16;
12622 return result;
12625 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_run "$LINENO"; then :
12630 gl_cv_func_dup2_works=yes
12631 else
12632 gl_cv_func_dup2_works=no
12634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12635 conftest.$ac_objext conftest.beam conftest.$ac_ext
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12641 $as_echo "$gl_cv_func_dup2_works" >&6; }
12642 case "$gl_cv_func_dup2_works" in
12643 *yes) ;;
12645 REPLACE_DUP2=1
12647 esac
12651 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
12660 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12669 GNULIB_DUP2=1
12681 # Persuade glibc <stdlib.h> to declare getloadavg().
12684 gl_save_LIBS=$LIBS
12686 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12687 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12688 HAVE_GETLOADAVG=1
12689 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12690 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12692 else
12693 gl_func_getloadavg_done=no
12695 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12696 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12697 # to get the right answer into the cache.
12698 # For kstat on solaris, we need to test for libelf and libkvm to force the
12699 # definition of SVR4 below.
12700 if test $gl_func_getloadavg_done = no; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12702 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12703 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lelf $LIBS"
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char elf_begin ();
12719 main ()
12721 return elf_begin ();
12723 return 0;
12725 _ACEOF
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 ac_cv_lib_elf_elf_begin=yes
12728 else
12729 ac_cv_lib_elf_elf_begin=no
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12736 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12737 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12738 LIBS="-lelf $LIBS"
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12742 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12743 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 ac_check_lib_save_LIBS=$LIBS
12747 LIBS="-lkvm $LIBS"
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 char kvm_open ();
12759 main ()
12761 return kvm_open ();
12763 return 0;
12765 _ACEOF
12766 if ac_fn_c_try_link "$LINENO"; then :
12767 ac_cv_lib_kvm_kvm_open=yes
12768 else
12769 ac_cv_lib_kvm_kvm_open=no
12771 rm -f core conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12773 LIBS=$ac_check_lib_save_LIBS
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12776 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12777 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12778 LIBS="-lkvm $LIBS"
12781 # Check for the 4.4BSD definition of getloadavg.
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12783 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12784 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-lutil $LIBS"
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char getloadavg ();
12800 main ()
12802 return getloadavg ();
12804 return 0;
12806 _ACEOF
12807 if ac_fn_c_try_link "$LINENO"; then :
12808 ac_cv_lib_util_getloadavg=yes
12809 else
12810 ac_cv_lib_util_getloadavg=no
12812 rm -f core conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12817 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12818 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12819 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
12824 if test $gl_func_getloadavg_done = no; then
12825 # There is a commonly available library for RS/6000 AIX.
12826 # Since it is not a standard part of AIX, it might be installed locally.
12827 gl_getloadavg_LIBS=$LIBS
12828 LIBS="-L/usr/local/lib $LIBS"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12830 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12831 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 ac_check_lib_save_LIBS=$LIBS
12835 LIBS="-lgetloadavg $LIBS"
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12842 #ifdef __cplusplus
12843 extern "C"
12844 #endif
12845 char getloadavg ();
12847 main ()
12849 return getloadavg ();
12851 return 0;
12853 _ACEOF
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 ac_cv_lib_getloadavg_getloadavg=yes
12856 else
12857 ac_cv_lib_getloadavg_getloadavg=no
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12864 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12865 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12866 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
12867 else
12868 LIBS=$gl_getloadavg_LIBS
12873 # Set up the replacement function if necessary.
12874 if test $gl_func_getloadavg_done = no; then
12875 HAVE_GETLOADAVG=0
12877 # Solaris has libkstat which does not require root.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12879 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12880 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lkstat $LIBS"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char kstat_open ();
12896 main ()
12898 return kstat_open ();
12900 return 0;
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_lib_kstat_kstat_open=yes
12905 else
12906 ac_cv_lib_kstat_kstat_open=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12913 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12914 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_LIBKSTAT 1
12917 _ACEOF
12919 LIBS="-lkstat $LIBS"
12923 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
12925 # AIX has libperfstat which does not require root
12926 if test $gl_func_getloadavg_done = no; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12928 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12929 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 ac_check_lib_save_LIBS=$LIBS
12933 LIBS="-lperfstat $LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char perfstat_cpu_total ();
12945 main ()
12947 return perfstat_cpu_total ();
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 ac_cv_lib_perfstat_perfstat_cpu_total=yes
12954 else
12955 ac_cv_lib_perfstat_perfstat_cpu_total=no
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12962 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12963 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_LIBPERFSTAT 1
12966 _ACEOF
12968 LIBS="-lperfstat $LIBS"
12972 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
12975 if test $gl_func_getloadavg_done = no; then
12976 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12977 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12978 gl_func_getloadavg_done=yes
12980 $as_echo "#define DGUX 1" >>confdefs.h
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12983 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12984 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-ldgc $LIBS"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12992 /* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 char dg_sys_info ();
13000 main ()
13002 return dg_sys_info ();
13004 return 0;
13006 _ACEOF
13007 if ac_fn_c_try_link "$LINENO"; then :
13008 ac_cv_lib_dgc_dg_sys_info=yes
13009 else
13010 ac_cv_lib_dgc_dg_sys_info=no
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014 LIBS=$ac_check_lib_save_LIBS
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13017 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13018 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_LIBDGC 1
13021 _ACEOF
13023 LIBS="-ldgc $LIBS"
13035 if test "x$gl_save_LIBS" = x; then
13036 GETLOADAVG_LIBS=$LIBS
13037 else
13038 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
13040 LIBS=$gl_save_LIBS
13043 # Test whether the system declares getloadavg. Solaris has the function
13044 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
13045 for ac_header in sys/loadavg.h
13046 do :
13047 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
13048 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
13049 cat >>confdefs.h <<_ACEOF
13050 #define HAVE_SYS_LOADAVG_H 1
13051 _ACEOF
13055 done
13057 if test $ac_cv_header_sys_loadavg_h = yes; then
13058 HAVE_SYS_LOADAVG_H=1
13059 else
13060 HAVE_SYS_LOADAVG_H=0
13062 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
13063 # include <sys/loadavg.h>
13064 #endif
13065 #include <stdlib.h>
13067 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
13069 else
13070 HAVE_DECL_GETLOADAVG=0
13074 if test $HAVE_GETLOADAVG = 0; then
13083 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
13086 # Figure out what our getloadavg.c needs.
13088 # On HPUX9, an unprivileged user can get load averages this way.
13089 if test $gl_func_getloadavg_done = no; then
13090 for ac_func in pstat_getdynamic
13091 do :
13092 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13093 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_PSTAT_GETDYNAMIC 1
13096 _ACEOF
13097 gl_func_getloadavg_done=yes
13099 done
13103 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13104 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13105 # Irix 4.0.5F has the header but not the library.
13106 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13107 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13108 gl_func_getloadavg_done=yes
13110 $as_echo "#define SVR4 1" >>confdefs.h
13114 if test $gl_func_getloadavg_done = no; then
13115 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13116 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13117 gl_func_getloadavg_done=yes
13119 $as_echo "#define UMAX 1" >>confdefs.h
13122 $as_echo "#define UMAX4_3 1" >>confdefs.h
13129 if test $gl_func_getloadavg_done = no; then
13130 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13131 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13132 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
13139 if test $gl_func_getloadavg_done = no; then
13140 for ac_header in mach/mach.h
13141 do :
13142 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13143 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_MACH_MACH_H 1
13146 _ACEOF
13150 done
13154 for ac_header in nlist.h
13155 do :
13156 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13157 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_NLIST_H 1
13160 _ACEOF
13161 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13163 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13167 _ACEOF
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 #include <nlist.h>
13176 main ()
13178 struct nlist x;
13179 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13180 x.n_un.n_name = "";
13181 #else
13182 x.n_name = "";
13183 #endif
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13190 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13198 done
13206 GNULIB_GETLOADAVG=1
13217 if test $REPLACE_GETOPT = 1; then
13226 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13236 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13241 GNULIB_GL_UNISTD_H_GETOPT=1
13249 REPLACE_GETOPT=0
13252 if test -n "$gl_replace_getopt"; then :
13254 REPLACE_GETOPT=1
13259 if test $REPLACE_GETOPT = 1; then
13261 GETOPT_H=getopt.h
13263 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13269 if test $REPLACE_GETOPT = 1; then
13278 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13288 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13293 GNULIB_GL_UNISTD_H_GETOPT=1
13307 gl_gettimeofday_timezone=void
13308 if test $ac_cv_func_gettimeofday != yes; then
13309 HAVE_GETTIMEOFDAY=0
13310 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13315 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13316 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 if test "$cross_compiling" = yes; then :
13320 # When cross-compiling:
13321 case "$host_os" in
13322 # Guess all is fine on glibc systems.
13323 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13324 # If we don't know, assume the worst.
13325 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13326 esac
13328 else
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331 #include <string.h>
13332 #include <sys/time.h>
13333 #include <time.h>
13334 #include <stdlib.h>
13337 main ()
13340 time_t t = 0;
13341 struct tm *lt;
13342 struct tm saved_lt;
13343 struct timeval tv;
13344 lt = localtime (&t);
13345 saved_lt = *lt;
13346 gettimeofday (&tv, NULL);
13347 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13350 return 0;
13352 _ACEOF
13353 if ac_fn_c_try_run "$LINENO"; then :
13354 gl_cv_func_gettimeofday_clobber=no
13355 else
13356 gl_cv_func_gettimeofday_clobber=yes
13358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13359 conftest.$ac_objext conftest.beam conftest.$ac_ext
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13364 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13366 case "$gl_cv_func_gettimeofday_clobber" in
13367 *yes)
13368 REPLACE_GETTIMEOFDAY=1
13371 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13374 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13378 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13381 esac
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13384 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13385 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 #include <sys/time.h>
13391 struct timeval c;
13392 int gettimeofday (struct timeval *restrict, void *restrict);
13395 main ()
13397 /* glibc uses struct timezone * rather than the POSIX void *
13398 if _GNU_SOURCE is defined. However, since the only portable
13399 use of gettimeofday uses NULL as the second parameter, and
13400 since the glibc definition is actually more typesafe, it is
13401 not worth wrapping this to get a compliant signature. */
13402 int (*f) (struct timeval *restrict, void *restrict)
13403 = gettimeofday;
13404 int x = f (&c, 0);
13405 return !(x | c.tv_sec | c.tv_usec);
13408 return 0;
13410 _ACEOF
13411 if ac_fn_c_try_compile "$LINENO"; then :
13412 gl_cv_func_gettimeofday_posix_signature=yes
13413 else
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13416 #include <sys/time.h>
13417 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13420 main ()
13424 return 0;
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 gl_cv_func_gettimeofday_posix_signature=almost
13429 else
13430 gl_cv_func_gettimeofday_posix_signature=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13437 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13438 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13439 gl_gettimeofday_timezone='struct timezone'
13440 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13441 REPLACE_GETTIMEOFDAY=1
13443 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13444 REPLACE_GETTIMEOFDAY=1
13449 cat >>confdefs.h <<_ACEOF
13450 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13451 _ACEOF
13454 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13463 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13466 for ac_header in sys/timeb.h
13467 do :
13468 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13469 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_SYS_TIMEB_H 1
13472 _ACEOF
13476 done
13478 for ac_func in _ftime
13479 do :
13480 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13481 if test "x$ac_cv_func__ftime" = x""yes; then :
13482 cat >>confdefs.h <<_ACEOF
13483 #define HAVE__FTIME 1
13484 _ACEOF
13487 done
13496 GNULIB_GETTIMEOFDAY=1
13508 if test $ac_cv_func_lstat = yes; then
13510 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13511 *no)
13512 REPLACE_LSTAT=1
13514 esac
13515 else
13516 HAVE_LSTAT=0
13519 if test $REPLACE_LSTAT = 1; then
13528 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13540 GNULIB_LSTAT=1
13552 if test $APPLE_UNIVERSAL_BUILD = 1; then
13553 # A universal build on Apple Mac OS X platforms.
13554 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13555 # But we need a configuration result that is valid in both modes.
13556 gl_cv_func_working_mktime=no
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13559 $as_echo_n "checking for working mktime... " >&6; }
13560 if test "${gl_cv_func_working_mktime+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 if test "$cross_compiling" = yes; then :
13564 gl_cv_func_working_mktime=no
13565 else
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 /* Test program from Paul Eggert and Tony Leneis. */
13569 #include <limits.h>
13570 #include <stdlib.h>
13571 #include <time.h>
13573 #ifdef HAVE_UNISTD_H
13574 # include <unistd.h>
13575 #endif
13577 #ifndef HAVE_ALARM
13578 # define alarm(X) /* empty */
13579 #endif
13581 /* Work around redefinition to rpl_putenv by other config tests. */
13582 #undef putenv
13584 static time_t time_t_max;
13585 static time_t time_t_min;
13587 /* Values we'll use to set the TZ environment variable. */
13588 static char *tz_strings[] = {
13589 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13590 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13592 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13594 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13595 Based on a problem report from Andreas Jaeger. */
13596 static int
13597 spring_forward_gap ()
13599 /* glibc (up to about 1998-10-07) failed this test. */
13600 struct tm tm;
13602 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13603 instead of "TZ=America/Vancouver" in order to detect the bug even
13604 on systems that don't support the Olson extension, or don't have the
13605 full zoneinfo tables installed. */
13606 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13608 tm.tm_year = 98;
13609 tm.tm_mon = 3;
13610 tm.tm_mday = 5;
13611 tm.tm_hour = 2;
13612 tm.tm_min = 0;
13613 tm.tm_sec = 0;
13614 tm.tm_isdst = -1;
13615 return mktime (&tm) != (time_t) -1;
13618 static int
13619 mktime_test1 (time_t now)
13621 struct tm *lt;
13622 return ! (lt = localtime (&now)) || mktime (lt) == now;
13625 static int
13626 mktime_test (time_t now)
13628 return (mktime_test1 (now)
13629 && mktime_test1 ((time_t) (time_t_max - now))
13630 && mktime_test1 ((time_t) (time_t_min + now)));
13633 static int
13634 irix_6_4_bug ()
13636 /* Based on code from Ariel Faigon. */
13637 struct tm tm;
13638 tm.tm_year = 96;
13639 tm.tm_mon = 3;
13640 tm.tm_mday = 0;
13641 tm.tm_hour = 0;
13642 tm.tm_min = 0;
13643 tm.tm_sec = 0;
13644 tm.tm_isdst = -1;
13645 mktime (&tm);
13646 return tm.tm_mon == 2 && tm.tm_mday == 31;
13649 static int
13650 bigtime_test (int j)
13652 struct tm tm;
13653 time_t now;
13654 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13655 now = mktime (&tm);
13656 if (now != (time_t) -1)
13658 struct tm *lt = localtime (&now);
13659 if (! (lt
13660 && lt->tm_year == tm.tm_year
13661 && lt->tm_mon == tm.tm_mon
13662 && lt->tm_mday == tm.tm_mday
13663 && lt->tm_hour == tm.tm_hour
13664 && lt->tm_min == tm.tm_min
13665 && lt->tm_sec == tm.tm_sec
13666 && lt->tm_yday == tm.tm_yday
13667 && lt->tm_wday == tm.tm_wday
13668 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13669 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13670 return 0;
13672 return 1;
13675 static int
13676 year_2050_test ()
13678 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13679 ignoring leap seconds. */
13680 unsigned long int answer = 2527315200UL;
13682 struct tm tm;
13683 time_t t;
13684 tm.tm_year = 2050 - 1900;
13685 tm.tm_mon = 2 - 1;
13686 tm.tm_mday = 1;
13687 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13688 tm.tm_isdst = -1;
13690 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13691 instead of "TZ=America/Vancouver" in order to detect the bug even
13692 on systems that don't support the Olson extension, or don't have the
13693 full zoneinfo tables installed. */
13694 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13696 t = mktime (&tm);
13698 /* Check that the result is either a failure, or close enough
13699 to the correct answer that we can assume the discrepancy is
13700 due to leap seconds. */
13701 return (t == (time_t) -1
13702 || (0 < t && answer - 120 <= t && t <= answer + 120));
13706 main ()
13708 int result = 0;
13709 time_t t, delta;
13710 int i, j;
13711 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13712 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13714 /* This test makes some buggy mktime implementations loop.
13715 Give up after 60 seconds; a mktime slower than that
13716 isn't worth using anyway. */
13717 alarm (60);
13719 time_t_max = (! time_t_signed
13720 ? (time_t) -1
13721 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13722 * 2 + 1));
13723 time_t_min = (! time_t_signed
13724 ? (time_t) 0
13725 : time_t_signed_magnitude
13726 ? ~ (time_t) 0
13727 : ~ time_t_max);
13729 delta = time_t_max / 997; /* a suitable prime number */
13730 for (i = 0; i < N_STRINGS; i++)
13732 if (tz_strings[i])
13733 putenv (tz_strings[i]);
13735 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13736 if (! mktime_test (t))
13737 result |= 1;
13738 if ((result & 2) == 0
13739 && ! (mktime_test ((time_t) 1)
13740 && mktime_test ((time_t) (60 * 60))
13741 && mktime_test ((time_t) (60 * 60 * 24))))
13742 result |= 2;
13744 for (j = 1; (result & 4) == 0; j <<= 1)
13746 if (! bigtime_test (j))
13747 result |= 4;
13748 if (INT_MAX / 2 < j)
13749 break;
13751 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13752 result |= 8;
13754 if (! irix_6_4_bug ())
13755 result |= 16;
13756 if (! spring_forward_gap ())
13757 result |= 32;
13758 if (! year_2050_test ())
13759 result |= 64;
13760 return result;
13762 _ACEOF
13763 if ac_fn_c_try_run "$LINENO"; then :
13764 gl_cv_func_working_mktime=yes
13765 else
13766 gl_cv_func_working_mktime=no
13768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13769 conftest.$ac_objext conftest.beam conftest.$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13775 $as_echo "$gl_cv_func_working_mktime" >&6; }
13777 if test $gl_cv_func_working_mktime = no; then
13778 REPLACE_MKTIME=1
13779 else
13780 REPLACE_MKTIME=0
13783 if test $REPLACE_MKTIME = 1; then
13792 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
13803 GNULIB_MKTIME=1
13815 if test $ac_cv_func_pselect = yes; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13817 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13818 if test "${gl_cv_sig_pselect+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <sys/select.h>
13826 main ()
13828 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13829 struct timespec const *restrict,
13830 sigset_t const *restrict) = pselect;
13831 return !p;
13833 return 0;
13835 _ACEOF
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 gl_cv_sig_pselect=yes
13838 else
13839 gl_cv_sig_pselect=no
13841 rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext conftest.$ac_ext
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13845 $as_echo "$gl_cv_sig_pselect" >&6; }
13848 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
13849 REPLACE_PSELECT=1
13852 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
13861 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
13869 GNULIB_PSELECT=1
13879 LIB_PTHREAD_SIGMASK=
13882 if test $ac_cv_func_pthread_sigmask = yes; then
13884 else
13885 HAVE_PTHREAD_SIGMASK=0
13886 REPLACE_PTHREAD_SIGMASK=1
13892 if test $HAVE_PTHREAD_SIGMASK = 1; then
13895 if test -z "$LIB_PTHREAD_SIGMASK"; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13897 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13898 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13902 if test "$cross_compiling" = yes; then :
13904 case "$host_os" in
13905 freebsd* | hpux* | solaris | solaris2.[2-9]*)
13906 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
13908 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
13909 esac
13911 else
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13915 #include <pthread.h>
13916 #include <signal.h>
13917 #include <stddef.h>
13918 int main ()
13920 sigset_t set;
13921 sigemptyset (&set);
13922 return pthread_sigmask (1729, &set, NULL) != 0;
13924 _ACEOF
13925 if ac_fn_c_try_run "$LINENO"; then :
13926 gl_cv_func_pthread_sigmask_in_libc_works=no
13927 else
13928 gl_cv_func_pthread_sigmask_in_libc_works=yes
13930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13931 conftest.$ac_objext conftest.beam conftest.$ac_ext
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13937 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13938 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13939 *no)
13940 REPLACE_PTHREAD_SIGMASK=1
13942 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13945 esac
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13949 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13950 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13954 gl_save_LIBS="$LIBS"
13955 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
13956 if test "$cross_compiling" = yes; then :
13957 case "$host_os" in
13958 cygwin*)
13959 gl_cv_func_pthread_sigmask_return_works="guessing no";;
13961 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
13962 esac
13964 else
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13968 #include <pthread.h>
13969 #include <signal.h>
13970 #include <stddef.h>
13971 int main ()
13973 sigset_t set;
13974 sigemptyset (&set);
13975 if (pthread_sigmask (1729, &set, NULL) == -1)
13976 return 1;
13977 return 0;
13979 _ACEOF
13980 if ac_fn_c_try_run "$LINENO"; then :
13981 gl_cv_func_pthread_sigmask_return_works=yes
13982 else
13983 gl_cv_func_pthread_sigmask_return_works=no
13985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13986 conftest.$ac_objext conftest.beam conftest.$ac_ext
13989 LIBS="$gl_save_LIBS"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13993 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13994 case "$gl_cv_func_pthread_sigmask_return_works" in
13995 *no)
13996 REPLACE_PTHREAD_SIGMASK=1
13998 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
14001 esac
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
14004 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
14005 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14009 case "$host_os" in
14010 irix*)
14011 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
14013 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
14014 esac
14015 gl_save_LIBS="$LIBS"
14016 LIBS="$LIBS $LIBMULTITHREAD"
14017 if test "$cross_compiling" = yes; then :
14019 else
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14023 #include <pthread.h>
14024 #include <signal.h>
14025 #include <stdio.h>
14026 #include <stdlib.h>
14027 #include <unistd.h>
14028 static volatile int sigint_occurred;
14029 static void
14030 sigint_handler (int sig)
14032 sigint_occurred++;
14034 int main ()
14036 sigset_t set;
14037 int pid = getpid ();
14038 char command[80];
14039 signal (SIGINT, sigint_handler);
14040 sigemptyset (&set);
14041 sigaddset (&set, SIGINT);
14042 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
14043 return 1;
14044 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
14045 if (!(system (command) == 0))
14046 return 2;
14047 sleep (2);
14048 if (!(sigint_occurred == 0))
14049 return 3;
14050 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
14051 return 4;
14052 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
14053 return 5;
14054 return 0;
14056 _ACEOF
14057 if ac_fn_c_try_run "$LINENO"; then :
14059 else
14060 gl_cv_func_pthread_sigmask_unblock_works=no
14062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14063 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 LIBS="$gl_save_LIBS"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
14070 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
14071 case "$gl_cv_func_pthread_sigmask_unblock_works" in
14072 *no)
14073 REPLACE_PTHREAD_SIGMASK=1
14075 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
14078 esac
14081 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
14090 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14093 if test $HAVE_PTHREAD_SIGMASK = 1; then
14095 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14105 GNULIB_PTHREAD_SIGMASK=1
14114 if test $ac_cv_func_readlink = no; then
14115 HAVE_READLINK=0
14116 else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14118 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14119 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <unistd.h>
14125 /* Cause compilation failure if original declaration has wrong type. */
14126 ssize_t readlink (const char *, char *, size_t);
14128 main ()
14132 return 0;
14134 _ACEOF
14135 if ac_fn_c_try_compile "$LINENO"; then :
14136 gl_cv_decl_readlink_works=yes
14137 else
14138 gl_cv_decl_readlink_works=no
14140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14143 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14145 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14146 if test "${gl_cv_func_readlink_works+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 # We have readlink, so assume ln -s works.
14150 ln -s conftest.no-such conftest.link
14151 ln -s conftest.link conftest.lnk2
14152 if test "$cross_compiling" = yes; then :
14153 case "$host_os" in
14154 # Guess yes on glibc systems.
14155 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14156 # If we don't know, assume the worst.
14157 *) gl_cv_func_readlink_works="guessing no" ;;
14158 esac
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 #include <unistd.h>
14166 main ()
14168 char buf[20];
14169 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14171 return 0;
14173 _ACEOF
14174 if ac_fn_c_try_run "$LINENO"; then :
14175 gl_cv_func_readlink_works=yes
14176 else
14177 gl_cv_func_readlink_works=no
14179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14180 conftest.$ac_objext conftest.beam conftest.$ac_ext
14183 rm -f conftest.link conftest.lnk2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14186 $as_echo "$gl_cv_func_readlink_works" >&6; }
14187 case "$gl_cv_func_readlink_works" in
14188 *yes)
14189 if test "$gl_cv_decl_readlink_works" != yes; then
14190 REPLACE_READLINK=1
14195 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14197 REPLACE_READLINK=1
14199 esac
14202 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14211 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14222 GNULIB_READLINK=1
14239 if test $gl_cv_have_include_next = yes; then
14240 gl_cv_next_signal_h='<'signal.h'>'
14241 else
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14243 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14244 if test "${gl_cv_next_signal_h+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <signal.h>
14252 _ACEOF
14253 case "$host_os" in
14254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14255 *) gl_absname_cpp="$ac_cpp" ;;
14256 esac
14258 case "$host_os" in
14259 mingw*)
14260 gl_dirsep_regex='[/\\]'
14263 gl_dirsep_regex='\/'
14265 esac
14266 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14268 gl_header_literal_regex=`echo 'signal.h' \
14269 | sed -e "$gl_make_literal_regex_sed"`
14270 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14272 s|^/[^/]|//&|
14276 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14277 sed -n "$gl_absolute_header_sed"`'"'
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14282 $as_echo "$gl_cv_next_signal_h" >&6; }
14284 NEXT_SIGNAL_H=$gl_cv_next_signal_h
14286 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14288 gl_next_as_first_directive='<'signal.h'>'
14289 else
14290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14291 gl_next_as_first_directive=$gl_cv_next_signal_h
14293 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
14299 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14300 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14301 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14302 #include <signal.h>
14305 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
14307 else
14308 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
14317 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14318 #include <signal.h>
14321 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
14323 else
14324 HAVE_SIGHANDLER_T=0
14330 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14331 /* <sys/types.h> is not needed according to POSIX, but the
14332 <sys/socket.h> in i386-unknown-freebsd4.10 and
14333 powerpc-apple-darwin5.5 required it. */
14334 #include <sys/types.h>
14335 #if HAVE_SYS_SOCKET_H
14336 # include <sys/socket.h>
14337 #elif HAVE_WS2TCPIP_H
14338 # include <ws2tcpip.h>
14339 #endif
14342 if test "x$ac_cv_type_socklen_t" = x""yes; then :
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14346 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14347 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 # Systems have either "struct sockaddr *" or
14351 # "void *" as the second argument to getpeername
14352 gl_cv_socklen_t_equiv=
14353 for arg2 in "struct sockaddr" void; do
14354 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 #include <sys/types.h>
14358 #include <sys/socket.h>
14360 int getpeername (int, $arg2 *, $t *);
14362 main ()
14364 $t len;
14365 getpeername (0, 0, &len);
14367 return 0;
14369 _ACEOF
14370 if ac_fn_c_try_compile "$LINENO"; then :
14371 gl_cv_socklen_t_equiv="$t"
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 test "$gl_cv_socklen_t_equiv" != "" && break
14375 done
14376 test "$gl_cv_socklen_t_equiv" != "" && break
14377 done
14381 if test "$gl_cv_socklen_t_equiv" = ""; then
14382 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14385 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14387 cat >>confdefs.h <<_ACEOF
14388 #define socklen_t $gl_cv_socklen_t_equiv
14389 _ACEOF
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14395 $as_echo_n "checking for ssize_t... " >&6; }
14396 if test "${gt_cv_ssize_t+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 #include <sys/types.h>
14403 main ()
14405 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14406 return !x;
14408 return 0;
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"; then :
14412 gt_cv_ssize_t=yes
14413 else
14414 gt_cv_ssize_t=no
14416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14419 $as_echo "$gt_cv_ssize_t" >&6; }
14420 if test $gt_cv_ssize_t = no; then
14422 $as_echo "#define ssize_t int" >>confdefs.h
14431 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>
14432 #include <sys/stat.h>
14434 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14438 _ACEOF
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14441 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14442 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14448 #include <sys/types.h>
14449 #include <sys/stat.h>
14450 #if HAVE_SYS_TIME_H
14451 # include <sys/time.h>
14452 #endif
14453 #include <time.h>
14454 struct timespec ts;
14455 struct stat st;
14458 main ()
14461 st.st_atim = ts;
14464 return 0;
14466 _ACEOF
14467 if ac_fn_c_try_compile "$LINENO"; then :
14468 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14469 else
14470 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14475 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14476 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14478 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14481 else
14482 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>
14483 #include <sys/stat.h>
14485 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14489 _ACEOF
14492 else
14493 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14494 #include <sys/stat.h>
14496 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
14498 cat >>confdefs.h <<_ACEOF
14499 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14500 _ACEOF
14503 else
14504 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>
14505 #include <sys/stat.h>
14507 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
14509 cat >>confdefs.h <<_ACEOF
14510 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14511 _ACEOF
14527 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>
14528 #include <sys/stat.h>
14530 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14534 _ACEOF
14537 else
14538 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14539 #include <sys/stat.h>
14541 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
14543 cat >>confdefs.h <<_ACEOF
14544 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14545 _ACEOF
14548 else
14549 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>
14550 #include <sys/stat.h>
14552 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
14554 cat >>confdefs.h <<_ACEOF
14555 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14556 _ACEOF
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14568 $as_echo_n "checking for working stdalign.h... " >&6; }
14569 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 #include <stdalign.h>
14575 #include <stddef.h>
14577 /* Test that alignof yields a result consistent with offsetof.
14578 This catches GCC bug 52023
14579 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14580 #ifdef __cplusplus
14581 template <class t> struct alignof_helper { char a; t b; };
14582 # define ao(type) offsetof (alignof_helper<type>, b)
14583 #else
14584 # define ao(type) offsetof (struct { char a; type b; }, b)
14585 #endif
14586 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14587 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14588 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14590 /* Test _Alignas only on platforms where gnulib can help. */
14591 #if \
14592 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14593 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14594 int alignas (8) alignas_int = 1;
14595 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14596 #endif
14599 main ()
14603 return 0;
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 gl_cv_header_working_stdalign_h=yes
14608 else
14609 gl_cv_header_working_stdalign_h=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14614 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14616 if test $gl_cv_header_working_stdalign_h = yes; then
14617 STDALIGN_H=''
14618 else
14619 STDALIGN_H='stdalign.h'
14623 if test -n "$STDALIGN_H"; then
14624 GL_GENERATE_STDALIGN_H_TRUE=
14625 GL_GENERATE_STDALIGN_H_FALSE='#'
14626 else
14627 GL_GENERATE_STDALIGN_H_TRUE='#'
14628 GL_GENERATE_STDALIGN_H_FALSE=
14633 STDARG_H=''
14634 NEXT_STDARG_H='<stdarg.h>'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14636 $as_echo_n "checking for va_copy... " >&6; }
14637 if test "${gl_cv_func_va_copy+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 #include <stdarg.h>
14645 main ()
14648 #ifndef va_copy
14649 void (*func) (va_list, va_list) = va_copy;
14650 #endif
14653 return 0;
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 gl_cv_func_va_copy=yes
14658 else
14659 gl_cv_func_va_copy=no
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14665 $as_echo "$gl_cv_func_va_copy" >&6; }
14666 if test $gl_cv_func_va_copy = no; then
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 #if defined _AIX && !defined __GNUC__
14670 AIX vaccine
14671 #endif
14673 _ACEOF
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675 $EGREP "vaccine" >/dev/null 2>&1; then :
14676 gl_aixcc=yes
14677 else
14678 gl_aixcc=no
14680 rm -f conftest*
14682 if test $gl_aixcc = yes; then
14683 STDARG_H=stdarg.h
14692 if test $gl_cv_have_include_next = yes; then
14693 gl_cv_next_stdarg_h='<'stdarg.h'>'
14694 else
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14696 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14697 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 #include <stdarg.h>
14705 _ACEOF
14706 case "$host_os" in
14707 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14708 *) gl_absname_cpp="$ac_cpp" ;;
14709 esac
14711 case "$host_os" in
14712 mingw*)
14713 gl_dirsep_regex='[/\\]'
14716 gl_dirsep_regex='\/'
14718 esac
14719 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14721 gl_header_literal_regex=`echo 'stdarg.h' \
14722 | sed -e "$gl_make_literal_regex_sed"`
14723 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14724 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14725 s|^/[^/]|//&|
14729 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14730 sed -n "$gl_absolute_header_sed"`'"'
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14735 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14737 NEXT_STDARG_H=$gl_cv_next_stdarg_h
14739 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14741 gl_next_as_first_directive='<'stdarg.h'>'
14742 else
14743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14744 gl_next_as_first_directive=$gl_cv_next_stdarg_h
14746 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
14751 if test "$gl_cv_next_stdarg_h" = '""'; then
14752 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
14753 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
14755 else
14757 saved_as_echo_n="$as_echo_n"
14758 as_echo_n=':'
14759 if test "${gl_cv_func___va_copy+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 #include <stdarg.h>
14767 main ()
14770 #ifndef __va_copy
14771 error, bail out
14772 #endif
14775 return 0;
14777 _ACEOF
14778 if ac_fn_c_try_compile "$LINENO"; then :
14779 gl_cv_func___va_copy=yes
14780 else
14781 gl_cv_func___va_copy=no
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 as_echo_n="$saved_as_echo_n"
14788 if test $gl_cv_func___va_copy = yes; then
14790 $as_echo "#define va_copy __va_copy" >>confdefs.h
14792 else
14795 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14801 if test -n "$STDARG_H"; then
14802 GL_GENERATE_STDARG_H_TRUE=
14803 GL_GENERATE_STDARG_H_FALSE='#'
14804 else
14805 GL_GENERATE_STDARG_H_TRUE='#'
14806 GL_GENERATE_STDARG_H_FALSE=
14814 # Define two additional variables used in the Makefile substitution.
14816 if test "$ac_cv_header_stdbool_h" = yes; then
14817 STDBOOL_H=''
14818 else
14819 STDBOOL_H='stdbool.h'
14822 if test -n "$STDBOOL_H"; then
14823 GL_GENERATE_STDBOOL_H_TRUE=
14824 GL_GENERATE_STDBOOL_H_FALSE='#'
14825 else
14826 GL_GENERATE_STDBOOL_H_TRUE='#'
14827 GL_GENERATE_STDBOOL_H_FALSE=
14831 if test "$ac_cv_type__Bool" = yes; then
14832 HAVE__BOOL=1
14833 else
14834 HAVE__BOOL=0
14841 STDDEF_H=
14842 if test $gt_cv_c_wchar_t = no; then
14843 HAVE_WCHAR_T=0
14844 STDDEF_H=stddef.h
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14847 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14848 if test "${gl_cv_decl_null_works+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 #include <stddef.h>
14854 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14857 main ()
14861 return 0;
14863 _ACEOF
14864 if ac_fn_c_try_compile "$LINENO"; then :
14865 gl_cv_decl_null_works=yes
14866 else
14867 gl_cv_decl_null_works=no
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14872 $as_echo "$gl_cv_decl_null_works" >&6; }
14873 if test $gl_cv_decl_null_works = no; then
14874 REPLACE_NULL=1
14875 STDDEF_H=stddef.h
14878 if test -n "$STDDEF_H"; then
14879 GL_GENERATE_STDDEF_H_TRUE=
14880 GL_GENERATE_STDDEF_H_FALSE='#'
14881 else
14882 GL_GENERATE_STDDEF_H_TRUE='#'
14883 GL_GENERATE_STDDEF_H_FALSE=
14886 if test -n "$STDDEF_H"; then
14895 if test $gl_cv_have_include_next = yes; then
14896 gl_cv_next_stddef_h='<'stddef.h'>'
14897 else
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14899 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14900 if test "${gl_cv_next_stddef_h+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <stddef.h>
14908 _ACEOF
14909 case "$host_os" in
14910 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14911 *) gl_absname_cpp="$ac_cpp" ;;
14912 esac
14914 case "$host_os" in
14915 mingw*)
14916 gl_dirsep_regex='[/\\]'
14919 gl_dirsep_regex='\/'
14921 esac
14922 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14924 gl_header_literal_regex=`echo 'stddef.h' \
14925 | sed -e "$gl_make_literal_regex_sed"`
14926 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14927 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14928 s|^/[^/]|//&|
14932 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14933 sed -n "$gl_absolute_header_sed"`'"'
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14938 $as_echo "$gl_cv_next_stddef_h" >&6; }
14940 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14942 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14944 gl_next_as_first_directive='<'stddef.h'>'
14945 else
14946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14947 gl_next_as_first_directive=$gl_cv_next_stddef_h
14949 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14968 if test $gl_cv_have_include_next = yes; then
14969 gl_cv_next_stdio_h='<'stdio.h'>'
14970 else
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14972 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14973 if test "${gl_cv_next_stdio_h+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 #include <stdio.h>
14981 _ACEOF
14982 case "$host_os" in
14983 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14984 *) gl_absname_cpp="$ac_cpp" ;;
14985 esac
14987 case "$host_os" in
14988 mingw*)
14989 gl_dirsep_regex='[/\\]'
14992 gl_dirsep_regex='\/'
14994 esac
14995 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14997 gl_header_literal_regex=`echo 'stdio.h' \
14998 | sed -e "$gl_make_literal_regex_sed"`
14999 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15000 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15001 s|^/[^/]|//&|
15005 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15006 sed -n "$gl_absolute_header_sed"`'"'
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
15011 $as_echo "$gl_cv_next_stdio_h" >&6; }
15013 NEXT_STDIO_H=$gl_cv_next_stdio_h
15015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15017 gl_next_as_first_directive='<'stdio.h'>'
15018 else
15019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15020 gl_next_as_first_directive=$gl_cv_next_stdio_h
15022 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
15028 GNULIB_FSCANF=1
15031 cat >>confdefs.h <<_ACEOF
15032 #define GNULIB_FSCANF 1
15033 _ACEOF
15036 GNULIB_SCANF=1
15039 cat >>confdefs.h <<_ACEOF
15040 #define GNULIB_SCANF 1
15041 _ACEOF
15044 GNULIB_FGETC=1
15045 GNULIB_GETC=1
15046 GNULIB_GETCHAR=1
15047 GNULIB_FGETS=1
15048 GNULIB_FREAD=1
15051 GNULIB_FPRINTF=1
15052 GNULIB_PRINTF=1
15053 GNULIB_VFPRINTF=1
15054 GNULIB_VPRINTF=1
15055 GNULIB_FPUTC=1
15056 GNULIB_PUTC=1
15057 GNULIB_PUTCHAR=1
15058 GNULIB_FPUTS=1
15059 GNULIB_PUTS=1
15060 GNULIB_FWRITE=1
15076 if test $gl_cv_have_include_next = yes; then
15077 gl_cv_next_stdlib_h='<'stdlib.h'>'
15078 else
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15080 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15081 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #include <stdlib.h>
15089 _ACEOF
15090 case "$host_os" in
15091 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15092 *) gl_absname_cpp="$ac_cpp" ;;
15093 esac
15095 case "$host_os" in
15096 mingw*)
15097 gl_dirsep_regex='[/\\]'
15100 gl_dirsep_regex='\/'
15102 esac
15103 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15105 gl_header_literal_regex=`echo 'stdlib.h' \
15106 | sed -e "$gl_make_literal_regex_sed"`
15107 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15108 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15109 s|^/[^/]|//&|
15113 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15114 sed -n "$gl_absolute_header_sed"`'"'
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15119 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15121 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15123 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15124 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15125 gl_next_as_first_directive='<'stdlib.h'>'
15126 else
15127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15128 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15130 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15140 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15148 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15157 if test "$ac_cv_have_decl_strtoimax" != yes; then
15158 HAVE_DECL_STRTOIMAX=0
15161 if test $ac_cv_func_strtoimax = yes; then
15162 HAVE_STRTOIMAX=1
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15164 $as_echo_n "checking whether strtoimax works... " >&6; }
15165 if test "${gl_cv_func_strtoimax+set}" = set; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 if test "$cross_compiling" = yes; then :
15169 case "$host_os" in
15170 # Guess no on AIX 5.
15171 aix5*) gl_cv_func_strtoimax="guessing no" ;;
15172 # Guess yes otherwise.
15173 *) gl_cv_func_strtoimax="guessing yes" ;;
15174 esac
15176 else
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15180 #include <errno.h>
15181 #include <string.h>
15182 #include <inttypes.h>
15183 int main ()
15185 if (sizeof (intmax_t) > sizeof (int))
15187 const char *s = "4294967295";
15188 char *p;
15189 intmax_t res;
15190 errno = 0;
15191 res = strtoimax (s, &p, 10);
15192 if (p != s + strlen (s))
15193 return 1;
15194 if (errno != 0)
15195 return 2;
15196 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15197 return 3;
15199 else
15201 const char *s = "2147483647";
15202 char *p;
15203 intmax_t res;
15204 errno = 0;
15205 res = strtoimax (s, &p, 10);
15206 if (p != s + strlen (s))
15207 return 1;
15208 if (errno != 0)
15209 return 2;
15210 if (res != 2147483647)
15211 return 3;
15213 return 0;
15216 _ACEOF
15217 if ac_fn_c_try_run "$LINENO"; then :
15218 gl_cv_func_strtoimax=yes
15219 else
15220 gl_cv_func_strtoimax=no
15222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15223 conftest.$ac_objext conftest.beam conftest.$ac_ext
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15229 $as_echo "$gl_cv_func_strtoimax" >&6; }
15230 case "$gl_cv_func_strtoimax" in
15231 *no) REPLACE_STRTOIMAX=1 ;;
15232 esac
15233 else
15234 HAVE_STRTOIMAX=0
15237 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
15246 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
15249 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15250 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
15251 ac_have_decl=1
15252 else
15253 ac_have_decl=0
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_DECL_STRTOLL $ac_have_decl
15258 _ACEOF
15268 GNULIB_STRTOIMAX=1
15278 if test "$ac_cv_have_decl_strtoumax" != yes; then
15279 HAVE_DECL_STRTOUMAX=0
15282 if test $ac_cv_func_strtoumax = no; then
15291 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
15294 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15295 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
15296 ac_have_decl=1
15297 else
15298 ac_have_decl=0
15301 cat >>confdefs.h <<_ACEOF
15302 #define HAVE_DECL_STRTOULL $ac_have_decl
15303 _ACEOF
15313 GNULIB_STRTOUMAX=1
15321 if test $ac_cv_func_symlink = no; then
15322 HAVE_SYMLINK=0
15323 else
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15325 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15326 if test "${gl_cv_func_symlink_works+set}" = set; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 if test "$cross_compiling" = yes; then :
15330 case "$host_os" in
15331 # Guess yes on glibc systems.
15332 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
15333 # If we don't know, assume the worst.
15334 *) gl_cv_func_symlink_works="guessing no" ;;
15335 esac
15337 else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <unistd.h>
15343 main ()
15345 int result = 0;
15346 if (!symlink ("a", "conftest.link/"))
15347 result |= 1;
15348 if (symlink ("conftest.f", "conftest.lnk2"))
15349 result |= 2;
15350 else if (!symlink ("a", "conftest.lnk2/"))
15351 result |= 4;
15352 return result;
15355 return 0;
15357 _ACEOF
15358 if ac_fn_c_try_run "$LINENO"; then :
15359 gl_cv_func_symlink_works=yes
15360 else
15361 gl_cv_func_symlink_works=no
15363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15364 conftest.$ac_objext conftest.beam conftest.$ac_ext
15367 rm -f conftest.f conftest.link conftest.lnk2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15370 $as_echo "$gl_cv_func_symlink_works" >&6; }
15371 case "$gl_cv_func_symlink_works" in
15372 *yes) ;;
15374 REPLACE_SYMLINK=1
15376 esac
15379 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
15388 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
15396 GNULIB_SYMLINK=1
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15406 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15407 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 #include <sys/select.h>
15415 main ()
15417 struct timeval b;
15419 return 0;
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 gl_cv_header_sys_select_h_selfcontained=yes
15424 else
15425 gl_cv_header_sys_select_h_selfcontained=no
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #include <sys/select.h>
15433 main ()
15435 int memset; int bzero;
15437 return 0;
15440 _ACEOF
15441 if ac_fn_c_try_compile "$LINENO"; then :
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 #include <sys/select.h>
15446 main ()
15449 #undef memset
15450 #define memset nonexistent_memset
15451 extern
15452 #ifdef __cplusplus
15454 #endif
15455 void *memset (void *, int, unsigned long);
15456 #undef bzero
15457 #define bzero nonexistent_bzero
15458 extern
15459 #ifdef __cplusplus
15461 #endif
15462 void bzero (void *, unsigned long);
15463 fd_set fds;
15464 FD_ZERO (&fds);
15467 return 0;
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"; then :
15473 else
15474 gl_cv_header_sys_select_h_selfcontained=no
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15485 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15495 if test $gl_cv_have_include_next = yes; then
15496 gl_cv_next_sys_select_h='<'sys/select.h'>'
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15499 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15500 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15501 $as_echo_n "(cached) " >&6
15502 else
15504 if test $ac_cv_header_sys_select_h = yes; then
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 #include <sys/select.h>
15511 _ACEOF
15512 case "$host_os" in
15513 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15514 *) gl_absname_cpp="$ac_cpp" ;;
15515 esac
15517 case "$host_os" in
15518 mingw*)
15519 gl_dirsep_regex='[/\\]'
15522 gl_dirsep_regex='\/'
15524 esac
15525 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15527 gl_header_literal_regex=`echo 'sys/select.h' \
15528 | sed -e "$gl_make_literal_regex_sed"`
15529 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15530 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15531 s|^/[^/]|//&|
15535 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15536 sed -n "$gl_absolute_header_sed"`'"'
15537 else
15538 gl_cv_next_sys_select_h='<'sys/select.h'>'
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15544 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15546 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
15548 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15550 gl_next_as_first_directive='<'sys/select.h'>'
15551 else
15552 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15553 gl_next_as_first_directive=$gl_cv_next_sys_select_h
15555 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
15560 if test $ac_cv_header_sys_select_h = yes; then
15561 HAVE_SYS_SELECT_H=1
15562 else
15563 HAVE_SYS_SELECT_H=0
15570 if test $ac_cv_header_sys_socket_h != yes; then
15571 for ac_header in winsock2.h
15572 do :
15573 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15574 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_WINSOCK2_H 1
15577 _ACEOF
15581 done
15584 if test "$ac_cv_header_winsock2_h" = yes; then
15585 HAVE_WINSOCK2_H=1
15586 UNISTD_H_HAVE_WINSOCK2_H=1
15587 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15588 else
15589 HAVE_WINSOCK2_H=0
15613 if test $gl_cv_have_include_next = yes; then
15614 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15617 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15618 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15622 if test $ac_cv_header_sys_stat_h = yes; then
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <sys/stat.h>
15629 _ACEOF
15630 case "$host_os" in
15631 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15632 *) gl_absname_cpp="$ac_cpp" ;;
15633 esac
15635 case "$host_os" in
15636 mingw*)
15637 gl_dirsep_regex='[/\\]'
15640 gl_dirsep_regex='\/'
15642 esac
15643 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15645 gl_header_literal_regex=`echo 'sys/stat.h' \
15646 | sed -e "$gl_make_literal_regex_sed"`
15647 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15648 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15649 s|^/[^/]|//&|
15653 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15654 sed -n "$gl_absolute_header_sed"`'"'
15655 else
15656 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15662 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15664 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15666 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15668 gl_next_as_first_directive='<'sys/stat.h'>'
15669 else
15670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15671 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15673 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15685 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15687 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15691 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15692 #include <sys/stat.h>
15694 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15696 else
15698 $as_echo "#define nlink_t int" >>confdefs.h
15719 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15721 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15722 ac_have_decl=1
15723 else
15724 ac_have_decl=0
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15729 _ACEOF
15731 if test $ac_cv_have_decl_localtime_r = no; then
15732 HAVE_DECL_LOCALTIME_R=0
15736 if test $ac_cv_func_localtime_r = yes; then
15737 HAVE_LOCALTIME_R=1
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15739 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15740 if test "${gl_cv_time_r_posix+set}" = set; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 #include <time.h>
15747 main ()
15749 /* We don't need to append 'restrict's to the argument types,
15750 even though the POSIX signature has the 'restrict's,
15751 since C99 says they can't affect type compatibility. */
15752 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15753 if (ptr) return 0;
15754 /* Check the return type is a pointer.
15755 On HP-UX 10 it is 'int'. */
15756 *localtime_r (0, 0);
15758 return 0;
15761 _ACEOF
15762 if ac_fn_c_try_compile "$LINENO"; then :
15763 gl_cv_time_r_posix=yes
15764 else
15765 gl_cv_time_r_posix=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15771 $as_echo "$gl_cv_time_r_posix" >&6; }
15772 if test $gl_cv_time_r_posix = yes; then
15773 REPLACE_LOCALTIME_R=0
15774 else
15775 REPLACE_LOCALTIME_R=1
15777 else
15778 HAVE_LOCALTIME_R=0
15781 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15790 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15801 GNULIB_TIME_R=1
15824 if test $gl_cv_have_include_next = yes; then
15825 gl_cv_next_unistd_h='<'unistd.h'>'
15826 else
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15828 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15829 if test "${gl_cv_next_unistd_h+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15833 if test $ac_cv_header_unistd_h = yes; then
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 #include <unistd.h>
15840 _ACEOF
15841 case "$host_os" in
15842 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15843 *) gl_absname_cpp="$ac_cpp" ;;
15844 esac
15846 case "$host_os" in
15847 mingw*)
15848 gl_dirsep_regex='[/\\]'
15851 gl_dirsep_regex='\/'
15853 esac
15854 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15856 gl_header_literal_regex=`echo 'unistd.h' \
15857 | sed -e "$gl_make_literal_regex_sed"`
15858 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15859 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15860 s|^/[^/]|//&|
15864 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15865 sed -n "$gl_absolute_header_sed"`'"'
15866 else
15867 gl_cv_next_unistd_h='<'unistd.h'>'
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15873 $as_echo "$gl_cv_next_unistd_h" >&6; }
15875 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15877 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15879 gl_next_as_first_directive='<'unistd.h'>'
15880 else
15881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15882 gl_next_as_first_directive=$gl_cv_next_unistd_h
15884 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15889 if test $ac_cv_header_unistd_h = yes; then
15890 HAVE_UNISTD_H=1
15891 else
15892 HAVE_UNISTD_H=0
15908 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15910 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15911 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 touch conftest.file
15915 if test "$cross_compiling" = yes; then :
15916 case "$host_os" in
15917 # Guess yes on glibc systems.
15918 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
15919 # If we don't know, assume the worst.
15920 *) gl_cv_func_futimesat_works="guessing no" ;;
15921 esac
15923 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15927 #include <stddef.h>
15928 #include <sys/times.h>
15929 #include <fcntl.h>
15932 main ()
15934 int fd = open ("conftest.file", O_RDWR);
15935 if (fd < 0) return 1;
15936 if (futimesat (fd, NULL, NULL)) return 2;
15939 return 0;
15941 _ACEOF
15942 if ac_fn_c_try_run "$LINENO"; then :
15943 gl_cv_func_futimesat_works=yes
15944 else
15945 gl_cv_func_futimesat_works=no
15947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948 conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 rm -f conftest.file
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15954 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15955 case "$gl_cv_func_futimesat_works" in
15956 *yes) ;;
15959 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15962 esac
15965 gl_gnulib_enabled_dosname=false
15966 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
15967 gl_gnulib_enabled_pathmax=false
15968 gl_gnulib_enabled_stat=false
15969 gl_gnulib_enabled_strtoll=false
15970 gl_gnulib_enabled_strtoull=false
15971 gl_gnulib_enabled_verify=false
15972 func_gl_gnulib_m4code_dosname ()
15974 if ! $gl_gnulib_enabled_dosname; then
15975 gl_gnulib_enabled_dosname=true
15978 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
15980 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15983 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
15986 func_gl_gnulib_m4code_pathmax ()
15988 if ! $gl_gnulib_enabled_pathmax; then
15992 gl_gnulib_enabled_pathmax=true
15995 func_gl_gnulib_m4code_stat ()
15997 if ! $gl_gnulib_enabled_stat; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16002 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16003 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16004 $as_echo_n "(cached) " >&6
16005 else
16006 if test "$cross_compiling" = yes; then :
16007 case $host_os in
16008 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16009 *) gl_cv_func_stat_dir_slash="guessing yes";;
16010 esac
16011 else
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014 #include <sys/stat.h>
16017 main ()
16019 struct stat st; return stat (".", &st) != stat ("./", &st);
16021 return 0;
16023 _ACEOF
16024 if ac_fn_c_try_run "$LINENO"; then :
16025 gl_cv_func_stat_dir_slash=yes
16026 else
16027 gl_cv_func_stat_dir_slash=no
16029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16030 conftest.$ac_objext conftest.beam conftest.$ac_ext
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16035 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16037 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16038 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 touch conftest.tmp
16042 # Assume that if we have lstat, we can also check symlinks.
16043 if test $ac_cv_func_lstat = yes; then
16044 ln -s conftest.tmp conftest.lnk
16046 if test "$cross_compiling" = yes; then :
16047 case "$host_os" in
16048 # Guess yes on glibc systems.
16049 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16050 # If we don't know, assume the worst.
16051 *) gl_cv_func_stat_file_slash="guessing no" ;;
16052 esac
16054 else
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <sys/stat.h>
16060 main ()
16062 int result = 0;
16063 struct stat st;
16064 if (!stat ("conftest.tmp/", &st))
16065 result |= 1;
16066 #if HAVE_LSTAT
16067 if (!stat ("conftest.lnk/", &st))
16068 result |= 2;
16069 #endif
16070 return result;
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_run "$LINENO"; then :
16077 gl_cv_func_stat_file_slash=yes
16078 else
16079 gl_cv_func_stat_file_slash=no
16081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16082 conftest.$ac_objext conftest.beam conftest.$ac_ext
16085 rm -f conftest.tmp conftest.lnk
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16088 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16089 case $gl_cv_func_stat_dir_slash in
16090 *no) REPLACE_STAT=1
16092 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16094 esac
16095 case $gl_cv_func_stat_file_slash in
16096 *no) REPLACE_STAT=1
16098 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16100 esac
16102 if test $REPLACE_STAT = 1; then
16111 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16123 GNULIB_STAT=1
16129 gl_gnulib_enabled_stat=true
16130 if test $REPLACE_STAT = 1; then
16131 func_gl_gnulib_m4code_dosname
16133 if test $REPLACE_STAT = 1; then
16134 func_gl_gnulib_m4code_pathmax
16136 if test $REPLACE_STAT = 1; then
16137 func_gl_gnulib_m4code_verify
16141 func_gl_gnulib_m4code_strtoll ()
16143 if ! $gl_gnulib_enabled_strtoll; then
16147 if test "$ac_cv_type_long_long_int" = yes; then
16148 for ac_func in strtoll
16149 do :
16150 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16151 if test "x$ac_cv_func_strtoll" = x""yes; then :
16152 cat >>confdefs.h <<_ACEOF
16153 #define HAVE_STRTOLL 1
16154 _ACEOF
16157 done
16159 if test $ac_cv_func_strtoll = no; then
16160 HAVE_STRTOLL=0
16164 if test $HAVE_STRTOLL = 0; then
16173 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
16184 GNULIB_STRTOLL=1
16190 gl_gnulib_enabled_strtoll=true
16193 func_gl_gnulib_m4code_strtoull ()
16195 if ! $gl_gnulib_enabled_strtoull; then
16199 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16200 for ac_func in strtoull
16201 do :
16202 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16203 if test "x$ac_cv_func_strtoull" = x""yes; then :
16204 cat >>confdefs.h <<_ACEOF
16205 #define HAVE_STRTOULL 1
16206 _ACEOF
16209 done
16211 if test $ac_cv_func_strtoull = no; then
16212 HAVE_STRTOULL=0
16216 if test $HAVE_STRTOULL = 0; then
16225 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
16236 GNULIB_STRTOULL=1
16242 gl_gnulib_enabled_strtoull=true
16245 func_gl_gnulib_m4code_verify ()
16247 if ! $gl_gnulib_enabled_verify; then
16248 gl_gnulib_enabled_verify=true
16251 if test $REPLACE_GETOPT = 1; then
16252 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16254 if test $REPLACE_LSTAT = 1; then
16255 func_gl_gnulib_m4code_dosname
16257 if test $REPLACE_LSTAT = 1; then
16258 func_gl_gnulib_m4code_stat
16260 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16261 func_gl_gnulib_m4code_stat
16263 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16264 func_gl_gnulib_m4code_strtoll
16266 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
16267 func_gl_gnulib_m4code_verify
16269 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
16270 func_gl_gnulib_m4code_strtoull
16272 if test $ac_cv_func_strtoumax = no; then
16273 func_gl_gnulib_m4code_verify
16276 if $gl_gnulib_enabled_dosname; then
16277 gl_GNULIB_ENABLED_dosname_TRUE=
16278 gl_GNULIB_ENABLED_dosname_FALSE='#'
16279 else
16280 gl_GNULIB_ENABLED_dosname_TRUE='#'
16281 gl_GNULIB_ENABLED_dosname_FALSE=
16284 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16285 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
16286 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
16287 else
16288 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
16289 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
16292 if $gl_gnulib_enabled_pathmax; then
16293 gl_GNULIB_ENABLED_pathmax_TRUE=
16294 gl_GNULIB_ENABLED_pathmax_FALSE='#'
16295 else
16296 gl_GNULIB_ENABLED_pathmax_TRUE='#'
16297 gl_GNULIB_ENABLED_pathmax_FALSE=
16300 if $gl_gnulib_enabled_stat; then
16301 gl_GNULIB_ENABLED_stat_TRUE=
16302 gl_GNULIB_ENABLED_stat_FALSE='#'
16303 else
16304 gl_GNULIB_ENABLED_stat_TRUE='#'
16305 gl_GNULIB_ENABLED_stat_FALSE=
16308 if $gl_gnulib_enabled_strtoll; then
16309 gl_GNULIB_ENABLED_strtoll_TRUE=
16310 gl_GNULIB_ENABLED_strtoll_FALSE='#'
16311 else
16312 gl_GNULIB_ENABLED_strtoll_TRUE='#'
16313 gl_GNULIB_ENABLED_strtoll_FALSE=
16316 if $gl_gnulib_enabled_strtoull; then
16317 gl_GNULIB_ENABLED_strtoull_TRUE=
16318 gl_GNULIB_ENABLED_strtoull_FALSE='#'
16319 else
16320 gl_GNULIB_ENABLED_strtoull_TRUE='#'
16321 gl_GNULIB_ENABLED_strtoull_FALSE=
16324 if $gl_gnulib_enabled_verify; then
16325 gl_GNULIB_ENABLED_verify_TRUE=
16326 gl_GNULIB_ENABLED_verify_FALSE='#'
16327 else
16328 gl_GNULIB_ENABLED_verify_TRUE='#'
16329 gl_GNULIB_ENABLED_verify_FALSE=
16332 # End of code from modules
16342 gltests_libdeps=
16343 gltests_ltlibdeps=
16353 gl_source_base='tests'
16354 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
16356 gl_module_indicator_condition=$gltests_WITNESS
16367 LIBGNU_LIBDEPS="$gl_libdeps"
16369 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16373 # Extract the first word of "pkg-config", so it can be a program name with args.
16374 set dummy pkg-config; ac_word=$2
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16376 $as_echo_n "checking for $ac_word... " >&6; }
16377 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380 case $PKG_CONFIG in
16381 [\\/]* | ?:[\\/]*)
16382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16388 IFS=$as_save_IFS
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16394 break 2
16396 done
16397 done
16398 IFS=$as_save_IFS
16400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16402 esac
16404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16405 if test -n "$PKG_CONFIG"; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16407 $as_echo "$PKG_CONFIG" >&6; }
16408 else
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16418 if test "${with_sound}" != "no"; then
16419 # Sound support for GNU/Linux and the free BSDs.
16420 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
16421 do :
16422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16424 eval as_val=\$$as_ac_Header
16425 if test "x$as_val" = x""yes; then :
16426 cat >>confdefs.h <<_ACEOF
16427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16428 _ACEOF
16429 have_sound_header=yes
16432 done
16434 # Emulation library used on NetBSD.
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16436 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16437 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16438 $as_echo_n "(cached) " >&6
16439 else
16440 ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-lossaudio $LIBS"
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16445 /* Override any GCC internal prototype to avoid an error.
16446 Use char because int might match the return type of a GCC
16447 builtin and then its argument prototype would still apply. */
16448 #ifdef __cplusplus
16449 extern "C"
16450 #endif
16451 char _oss_ioctl ();
16453 main ()
16455 return _oss_ioctl ();
16457 return 0;
16459 _ACEOF
16460 if ac_fn_c_try_link "$LINENO"; then :
16461 ac_cv_lib_ossaudio__oss_ioctl=yes
16462 else
16463 ac_cv_lib_ossaudio__oss_ioctl=no
16465 rm -f core conftest.err conftest.$ac_objext \
16466 conftest$ac_exeext conftest.$ac_ext
16467 LIBS=$ac_check_lib_save_LIBS
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16470 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16471 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
16472 LIBSOUND=-lossaudio
16473 else
16474 LIBSOUND=
16479 ALSA_REQUIRED=1.0.0
16480 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
16482 succeeded=no
16484 if test "$PKG_CONFIG" = "no" ; then
16485 HAVE_ALSA=no
16486 else
16487 PKG_CONFIG_MIN_VERSION=0.9.0
16488 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16490 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16492 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16493 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16494 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16495 edit_cflags="
16496 s,///*,/,g
16497 s/^/ /
16498 s/ -I/ $isystem/g
16499 s/^ //
16501 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16502 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16504 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16505 succeeded=yes
16506 else
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508 $as_echo "no" >&6; }
16509 ALSA_CFLAGS=""
16510 ALSA_LIBS=""
16511 ## If we have a custom action on failure, don't print errors, but
16512 ## do set a variable so people can do so.
16513 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16519 else
16520 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16521 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16525 if test $succeeded = yes; then
16526 HAVE_ALSA=yes
16527 else
16528 HAVE_ALSA=no
16531 if test $HAVE_ALSA = yes; then
16532 SAVE_CFLAGS="$CFLAGS"
16533 SAVE_LIBS="$LIBS"
16534 CFLAGS="$ALSA_CFLAGS $CFLAGS"
16535 LIBS="$ALSA_LIBS $LIBS"
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 #include <asoundlib.h>
16540 main ()
16542 snd_lib_error_set_handler (0);
16544 return 0;
16546 _ACEOF
16547 if ac_fn_c_try_compile "$LINENO"; then :
16548 emacs_alsa_normal=yes
16549 else
16550 emacs_alsa_normal=no
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 if test "$emacs_alsa_normal" != yes; then
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <alsa/asoundlib.h>
16558 main ()
16560 snd_lib_error_set_handler (0);
16562 return 0;
16564 _ACEOF
16565 if ac_fn_c_try_compile "$LINENO"; then :
16566 emacs_alsa_subdir=yes
16567 else
16568 emacs_alsa_subdir=no
16570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 if test "$emacs_alsa_subdir" != yes; then
16572 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16574 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16577 CFLAGS="$SAVE_CFLAGS"
16578 LIBS="$SAVE_LIBS"
16579 LIBSOUND="$LIBSOUND $ALSA_LIBS"
16580 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
16582 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16586 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
16587 case "$opsys" in
16588 gnu-linux|freebsd|netbsd)
16590 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16593 esac
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16628 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 #include <sys/personality.h>
16633 main ()
16635 personality (PER_LINUX32)
16637 return 0;
16639 _ACEOF
16640 if ac_fn_c_try_compile "$LINENO"; then :
16641 emacs_cv_personality_linux32=yes
16642 else
16643 emacs_cv_personality_linux32=no
16645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16647 $as_echo "$emacs_cv_personality_linux32" >&6; }
16649 if test $emacs_cv_personality_linux32 = yes; then
16651 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16655 for ac_header in term.h
16656 do :
16657 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
16658 if test "x$ac_cv_header_term_h" = x""yes; then :
16659 cat >>confdefs.h <<_ACEOF
16660 #define HAVE_TERM_H 1
16661 _ACEOF
16665 done
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16668 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16669 if test "${ac_cv_header_time+set}" = set; then :
16670 $as_echo_n "(cached) " >&6
16671 else
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 #include <sys/types.h>
16675 #include <sys/time.h>
16676 #include <time.h>
16679 main ()
16681 if ((struct tm *) 0)
16682 return 0;
16684 return 0;
16686 _ACEOF
16687 if ac_fn_c_try_compile "$LINENO"; then :
16688 ac_cv_header_time=yes
16689 else
16690 ac_cv_header_time=no
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16695 $as_echo "$ac_cv_header_time" >&6; }
16696 if test $ac_cv_header_time = yes; then
16698 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16702 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16703 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16704 ac_have_decl=1
16705 else
16706 ac_have_decl=0
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16711 _ACEOF
16713 if test $ac_cv_have_decl_sys_siglist != yes; then
16714 # For Tru64, at least:
16715 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16716 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16717 ac_have_decl=1
16718 else
16719 ac_have_decl=0
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16724 _ACEOF
16726 if test $ac_cv_have_decl___sys_siglist = yes; then
16728 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16733 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16734 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 #include <sys/types.h>
16740 #include <sys/wait.h>
16741 #ifndef WEXITSTATUS
16742 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16743 #endif
16744 #ifndef WIFEXITED
16745 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16746 #endif
16749 main ()
16751 int s;
16752 wait (&s);
16753 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16755 return 0;
16757 _ACEOF
16758 if ac_fn_c_try_compile "$LINENO"; then :
16759 ac_cv_header_sys_wait_h=yes
16760 else
16761 ac_cv_header_sys_wait_h=no
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16766 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16767 if test $ac_cv_header_sys_wait_h = yes; then
16769 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16775 $as_echo_n "checking for speed_t... " >&6; }
16776 if test "${emacs_cv_speed_t+set}" = set; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <termios.h>
16783 main ()
16785 speed_t x = 1;
16787 return 0;
16789 _ACEOF
16790 if ac_fn_c_try_compile "$LINENO"; then :
16791 emacs_cv_speed_t=yes
16792 else
16793 emacs_cv_speed_t=no
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16798 $as_echo "$emacs_cv_speed_t" >&6; }
16799 if test $emacs_cv_speed_t = yes; then
16801 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16806 $as_echo_n "checking for struct exception... " >&6; }
16807 if test "${emacs_cv_struct_exception+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 #include <math.h>
16814 main ()
16816 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16818 return 0;
16820 _ACEOF
16821 if ac_fn_c_try_compile "$LINENO"; then :
16822 emacs_cv_struct_exception=yes
16823 else
16824 emacs_cv_struct_exception=no
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16829 $as_echo "$emacs_cv_struct_exception" >&6; }
16830 HAVE_EXCEPTION=$emacs_cv_struct_exception
16831 if test $emacs_cv_struct_exception != yes; then
16833 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16838 for ac_header in net/if.h
16839 do :
16840 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16841 #if HAVE_SYS_SOCKET_H
16842 #include <sys/socket.h>
16843 #endif
16845 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_NET_IF_H 1
16848 _ACEOF
16852 done
16854 for ac_header in ifaddrs.h
16855 do :
16856 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16857 #if HAVE_SYS_SOCKET_H
16858 #include <sys/socket.h>
16859 #endif
16861 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
16862 cat >>confdefs.h <<_ACEOF
16863 #define HAVE_IFADDRS_H 1
16864 _ACEOF
16868 done
16870 for ac_header in net/if_dl.h
16871 do :
16872 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16873 #if HAVE_SYS_SOCKET_H
16874 #include <sys/socket.h>
16875 #endif
16877 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
16878 cat >>confdefs.h <<_ACEOF
16879 #define HAVE_NET_IF_DL_H 1
16880 _ACEOF
16884 done
16887 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16888 #if HAVE_SYS_SOCKET_H
16889 #include <sys/socket.h>
16890 #endif
16891 #if HAVE_NET_IF_H
16892 #include <net/if.h>
16893 #endif
16895 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16899 _ACEOF
16903 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16904 #if HAVE_SYS_SOCKET_H
16905 #include <sys/socket.h>
16906 #endif
16907 #if HAVE_NET_IF_H
16908 #include <net/if.h>
16909 #endif
16911 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16915 _ACEOF
16919 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16920 #if HAVE_SYS_SOCKET_H
16921 #include <sys/socket.h>
16922 #endif
16923 #if HAVE_NET_IF_H
16924 #include <net/if.h>
16925 #endif
16927 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
16929 cat >>confdefs.h <<_ACEOF
16930 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16931 _ACEOF
16935 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16936 #if HAVE_SYS_SOCKET_H
16937 #include <sys/socket.h>
16938 #endif
16939 #if HAVE_NET_IF_H
16940 #include <net/if.h>
16941 #endif
16943 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16947 _ACEOF
16951 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16952 #if HAVE_SYS_SOCKET_H
16953 #include <sys/socket.h>
16954 #endif
16955 #if HAVE_NET_IF_H
16956 #include <net/if.h>
16957 #endif
16959 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16963 _ACEOF
16967 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16968 #if HAVE_SYS_SOCKET_H
16969 #include <sys/socket.h>
16970 #endif
16971 #if HAVE_NET_IF_H
16972 #include <net/if.h>
16973 #endif
16975 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16979 _ACEOF
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16987 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16988 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 char __attribute__ ((__aligned__ (1 << 3))) c;
16995 main ()
16999 return 0;
17001 _ACEOF
17002 if ac_fn_c_try_compile "$LINENO"; then :
17003 emacs_cv_attribute_aligned=yes
17004 else
17005 emacs_cv_attribute_aligned=no
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
17010 $as_echo "$emacs_cv_attribute_aligned" >&6; }
17011 if test $emacs_cv_attribute_aligned = yes; then
17013 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
17018 DEPFLAGS=
17019 MKDEPDIR=":"
17020 deps_frag=deps.mk
17021 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
17023 $as_echo_n "checking whether we are using GNU Make... " >&6; }
17024 HAVE_GNU_MAKE=no
17025 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
17026 if test "x$testval" != x; then
17027 HAVE_GNU_MAKE=yes
17028 else
17029 ac_enable_autodepend=no
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
17032 $as_echo "$HAVE_GNU_MAKE" >&6; }
17033 if test $HAVE_GNU_MAKE = yes; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
17035 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
17036 SAVE_CFLAGS="$CFLAGS"
17037 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17042 main ()
17046 return 0;
17048 _ACEOF
17049 if ac_fn_c_try_compile "$LINENO"; then :
17051 else
17052 ac_enable_autodepend=no
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 CFLAGS="$SAVE_CFLAGS"
17056 test -f deps.d || ac_enable_autodepend=no
17057 rm -rf deps.d
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
17059 $as_echo "$ac_enable_autodepend" >&6; }
17061 if test $ac_enable_autodepend = yes; then
17062 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
17063 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
17064 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
17065 deps_frag=autodeps.mk
17068 deps_frag=$srcdir/src/$deps_frag
17074 lisp_frag=$srcdir/src/lisp.mk
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
17079 $as_echo_n "checking for long file names... " >&6; }
17080 if test "${ac_cv_sys_long_file_names+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 ac_cv_sys_long_file_names=yes
17084 # Test for long file names in all the places we know might matter:
17085 # . the current directory, where building will happen
17086 # $prefix/lib where we will be installing things
17087 # $exec_prefix/lib likewise
17088 # $TMPDIR if set, where it might want to write temporary files
17089 # /tmp where it might want to write temporary files
17090 # /var/tmp likewise
17091 # /usr/tmp likewise
17092 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
17093 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17094 # in the usual case where exec_prefix is '${prefix}'.
17095 case $ac_dir in #(
17096 . | /* | ?:[\\/]*) ;; #(
17097 *) continue;;
17098 esac
17099 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
17100 ac_xdir=$ac_dir/cf$$
17101 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
17102 ac_tf1=$ac_xdir/conftest9012345
17103 ac_tf2=$ac_xdir/conftest9012346
17104 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17105 ac_cv_sys_long_file_names=no
17106 rm -f -r "$ac_xdir" 2>/dev/null
17107 test $ac_cv_sys_long_file_names = no && break
17108 done
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17111 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17112 if test $ac_cv_sys_long_file_names = yes; then
17114 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17119 #### Choose a window system.
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17122 $as_echo_n "checking for X... " >&6; }
17125 # Check whether --with-x was given.
17126 if test "${with_x+set}" = set; then :
17127 withval=$with_x;
17130 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17131 if test "x$with_x" = xno; then
17132 # The user explicitly disabled X.
17133 have_x=disabled
17134 else
17135 case $x_includes,$x_libraries in #(
17136 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17137 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 # One or both of the vars are not set, and there is no cached value.
17141 ac_x_includes=no ac_x_libraries=no
17142 rm -f -r conftest.dir
17143 if mkdir conftest.dir; then
17144 cd conftest.dir
17145 cat >Imakefile <<'_ACEOF'
17146 incroot:
17147 @echo incroot='${INCROOT}'
17148 usrlibdir:
17149 @echo usrlibdir='${USRLIBDIR}'
17150 libdir:
17151 @echo libdir='${LIBDIR}'
17152 _ACEOF
17153 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17155 for ac_var in incroot usrlibdir libdir; do
17156 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17157 done
17158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17159 for ac_extension in a so sl dylib la dll; do
17160 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17161 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17162 ac_im_usrlibdir=$ac_im_libdir; break
17164 done
17165 # Screen out bogus values from the imake configuration. They are
17166 # bogus both because they are the default anyway, and because
17167 # using them would break gcc on systems where it needs fixed includes.
17168 case $ac_im_incroot in
17169 /usr/include) ac_x_includes= ;;
17170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17171 esac
17172 case $ac_im_usrlibdir in
17173 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17175 esac
17177 cd ..
17178 rm -f -r conftest.dir
17181 # Standard set of common directories for X headers.
17182 # Check X11 before X11Rn because it is often a symlink to the current release.
17183 ac_x_header_dirs='
17184 /usr/X11/include
17185 /usr/X11R7/include
17186 /usr/X11R6/include
17187 /usr/X11R5/include
17188 /usr/X11R4/include
17190 /usr/include/X11
17191 /usr/include/X11R7
17192 /usr/include/X11R6
17193 /usr/include/X11R5
17194 /usr/include/X11R4
17196 /usr/local/X11/include
17197 /usr/local/X11R7/include
17198 /usr/local/X11R6/include
17199 /usr/local/X11R5/include
17200 /usr/local/X11R4/include
17202 /usr/local/include/X11
17203 /usr/local/include/X11R7
17204 /usr/local/include/X11R6
17205 /usr/local/include/X11R5
17206 /usr/local/include/X11R4
17208 /usr/X386/include
17209 /usr/x386/include
17210 /usr/XFree86/include/X11
17212 /usr/include
17213 /usr/local/include
17214 /usr/unsupported/include
17215 /usr/athena/include
17216 /usr/local/x11r5/include
17217 /usr/lpp/Xamples/include
17219 /usr/openwin/include
17220 /usr/openwin/share/include'
17222 if test "$ac_x_includes" = no; then
17223 # Guess where to find include files, by looking for Xlib.h.
17224 # First, try using that file with no special directory specified.
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17227 #include <X11/Xlib.h>
17228 _ACEOF
17229 if ac_fn_c_try_cpp "$LINENO"; then :
17230 # We can compile using X headers with no special include directory.
17231 ac_x_includes=
17232 else
17233 for ac_dir in $ac_x_header_dirs; do
17234 if test -r "$ac_dir/X11/Xlib.h"; then
17235 ac_x_includes=$ac_dir
17236 break
17238 done
17240 rm -f conftest.err conftest.$ac_ext
17241 fi # $ac_x_includes = no
17243 if test "$ac_x_libraries" = no; then
17244 # Check for the libraries.
17245 # See if we find them without any special options.
17246 # Don't add to $LIBS permanently.
17247 ac_save_LIBS=$LIBS
17248 LIBS="-lX11 $LIBS"
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 #include <X11/Xlib.h>
17253 main ()
17255 XrmInitialize ()
17257 return 0;
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 LIBS=$ac_save_LIBS
17262 # We can link X programs with no special library path.
17263 ac_x_libraries=
17264 else
17265 LIBS=$ac_save_LIBS
17266 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17268 # Don't even attempt the hair of trying to link an X program!
17269 for ac_extension in a so sl dylib la dll; do
17270 if test -r "$ac_dir/libX11.$ac_extension"; then
17271 ac_x_libraries=$ac_dir
17272 break 2
17274 done
17275 done
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279 fi # $ac_x_libraries = no
17281 case $ac_x_includes,$ac_x_libraries in #(
17282 no,* | *,no | *\'*)
17283 # Didn't find X, or a directory has "'" in its name.
17284 ac_cv_have_x="have_x=no";; #(
17286 # Record where we found X for the cache.
17287 ac_cv_have_x="have_x=yes\
17288 ac_x_includes='$ac_x_includes'\
17289 ac_x_libraries='$ac_x_libraries'"
17290 esac
17292 ;; #(
17293 *) have_x=yes;;
17294 esac
17295 eval "$ac_cv_have_x"
17296 fi # $with_x != no
17298 if test "$have_x" != yes; then
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17300 $as_echo "$have_x" >&6; }
17301 no_x=yes
17302 else
17303 # If each of the values was on the command line, it overrides each guess.
17304 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17305 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17306 # Update the cache value to reflect the command line values.
17307 ac_cv_have_x="have_x=yes\
17308 ac_x_includes='$x_includes'\
17309 ac_x_libraries='$x_libraries'"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17311 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17314 if test "$no_x" = yes; then
17315 window_system=none
17316 else
17317 window_system=x11
17320 LD_SWITCH_X_SITE_RPATH=
17321 if test "${x_libraries}" != NONE; then
17322 if test -n "${x_libraries}"; then
17323 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17324 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17326 x_default_search_path=""
17327 x_search_path=${x_libraries}
17328 if test -z "${x_search_path}"; then
17329 x_search_path=/usr/lib
17331 for x_library in `echo ${x_search_path}: | \
17332 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17333 x_search_path="\
17334 ${x_library}/X11/%L/%T/%N%C%S:\
17335 ${x_library}/X11/%l/%T/%N%C%S:\
17336 ${x_library}/X11/%T/%N%C%S:\
17337 ${x_library}/X11/%L/%T/%N%S:\
17338 ${x_library}/X11/%l/%T/%N%S:\
17339 ${x_library}/X11/%T/%N%S"
17340 if test x"${x_default_search_path}" = x; then
17341 x_default_search_path=${x_search_path}
17342 else
17343 x_default_search_path="${x_search_path}:${x_default_search_path}"
17345 done
17349 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
17350 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17353 if test x"${x_includes}" = x; then
17354 bitmapdir=/usr/include/X11/bitmaps
17355 else
17356 # accumulate include directories that have X11 bitmap subdirectories
17357 bmd_acc="dummyval"
17358 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17359 if test -d "${bmd}/X11/bitmaps"; then
17360 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
17362 if test -d "${bmd}/bitmaps"; then
17363 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
17365 done
17366 if test ${bmd_acc} != "dummyval"; then
17367 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17371 HAVE_NS=no
17372 NS_IMPL_COCOA=no
17373 NS_IMPL_GNUSTEP=no
17374 tmp_CPPFLAGS="$CPPFLAGS"
17375 tmp_CFLAGS="$CFLAGS"
17376 CPPFLAGS="$CPPFLAGS -x objective-c"
17377 CFLAGS="$CFLAGS -x objective-c"
17378 TEMACS_LDFLAGS2="\${LDFLAGS}"
17379 GNU_OBJC_CFLAGS=
17380 if test "${with_ns}" != no; then
17381 if test "${opsys}" = darwin; then
17382 NS_IMPL_COCOA=yes
17383 ns_appdir=`pwd`/nextstep/Emacs.app
17384 ns_appbindir=${ns_appdir}/Contents/MacOS
17385 ns_appresdir=${ns_appdir}/Contents/Resources
17386 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
17387 elif test -f $GNUSTEP_CONFIG_FILE; then
17388 NS_IMPL_GNUSTEP=yes
17389 ns_appdir=`pwd`/nextstep/Emacs.app
17390 ns_appbindir=${ns_appdir}
17391 ns_appresdir=${ns_appdir}/Resources
17392 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
17393 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17394 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17395 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17396 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17397 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17398 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
17399 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17400 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
17401 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17402 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17403 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17404 LIB_STANDARD=
17405 START_FILES=
17406 TEMACS_LDFLAGS2=
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17408 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17409 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17410 $as_echo_n "(cached) " >&6
17411 else
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 #include <GNUstepBase/GSConfig.h>
17416 main ()
17418 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17420 #else
17421 fail;
17422 #endif
17424 return 0;
17426 _ACEOF
17427 if ac_fn_c_try_compile "$LINENO"; then :
17428 emacs_cv_objc_exceptions=yes
17429 else
17430 emacs_cv_objc_exceptions=no
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17435 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17436 if test $emacs_cv_objc_exceptions = yes; then
17438 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17440 GNU_OBJC_CFLAGS="-fobjc-exceptions"
17444 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
17446 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17447 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
17448 HAVE_NS=yes
17449 else
17450 as_fn_error "\`--with-ns' was specified, but the include
17451 files are missing or cannot be compiled." "$LINENO" 5
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 #include <Foundation/NSObjCRuntime.h>
17459 main ()
17461 NSInteger i;
17463 return 0;
17465 _ACEOF
17466 if ac_fn_c_try_compile "$LINENO"; then :
17467 ns_have_nsinteger=yes
17468 else
17469 ns_have_nsinteger=no
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472 if test $ns_have_nsinteger = yes; then
17474 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17480 INSTALL_ARCH_INDEP_EXTRA=install-etc
17481 ns_self_contained=no
17482 ns_frag=/dev/null
17483 NS_OBJ=
17484 NS_OBJC_OBJ=
17485 if test "${HAVE_NS}" = yes; then
17486 if test "$with_toolkit_scroll_bars" = "no"; then
17487 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17490 window_system=nextstep
17491 with_xft=no
17492 # set up packaging dirs
17493 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17494 ns_self_contained=yes
17495 prefix=${ns_appresdir}
17496 exec_prefix=${ns_appbindir}
17497 libexecdir="\${ns_appbindir}/libexec"
17498 archlibdir="\${ns_appbindir}/libexec"
17499 docdir="\${ns_appresdir}/etc"
17500 etcdir="\${ns_appresdir}/etc"
17501 infodir="\${ns_appresdir}/info"
17502 mandir="\${ns_appresdir}/man"
17503 lispdir="\${ns_appresdir}/lisp"
17504 leimdir="\${ns_appresdir}/leim"
17505 INSTALL_ARCH_INDEP_EXTRA=
17507 ns_frag=$srcdir/src/ns.mk
17508 NS_OBJ="fontset.o fringe.o image.o"
17509 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17511 CFLAGS="$tmp_CFLAGS"
17512 CPPFLAGS="$tmp_CPPFLAGS"
17520 case "${window_system}" in
17521 x11 )
17522 HAVE_X_WINDOWS=yes
17523 HAVE_X11=yes
17524 case "${with_x_toolkit}" in
17525 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
17526 motif ) USE_X_TOOLKIT=MOTIF ;;
17527 gtk ) with_gtk=yes
17528 USE_X_TOOLKIT=none ;;
17529 gtk3 ) with_gtk3=yes
17530 USE_X_TOOLKIT=none ;;
17531 no ) USE_X_TOOLKIT=none ;;
17532 * ) USE_X_TOOLKIT=maybe ;;
17533 esac
17535 nextstep | none )
17536 HAVE_X_WINDOWS=no
17537 HAVE_X11=no
17538 USE_X_TOOLKIT=none
17540 esac
17542 if test "$window_system" = none && test "X$with_x" != "Xno"; then
17543 # Extract the first word of "X", so it can be a program name with args.
17544 set dummy X; ac_word=$2
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17546 $as_echo_n "checking for $ac_word... " >&6; }
17547 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17548 $as_echo_n "(cached) " >&6
17549 else
17550 if test -n "$HAVE_XSERVER"; then
17551 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
17552 else
17553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554 for as_dir in $PATH
17556 IFS=$as_save_IFS
17557 test -z "$as_dir" && as_dir=.
17558 for ac_exec_ext in '' $ac_executable_extensions; do
17559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17560 ac_cv_prog_HAVE_XSERVER="true"
17561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17562 break 2
17564 done
17565 done
17566 IFS=$as_save_IFS
17568 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
17571 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
17572 if test -n "$HAVE_XSERVER"; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17574 $as_echo "$HAVE_XSERVER" >&6; }
17575 else
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17581 if test "$HAVE_XSERVER" = true ||
17582 test -n "$DISPLAY" ||
17583 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17584 as_fn_error "You seem to be running X, but no X development libraries
17585 were found. You should install the relevant development files for X
17586 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17587 sure you have development files for image handling, i.e.
17588 tiff, gif, jpeg, png and xpm.
17589 If you are sure you want Emacs compiled without X window support, pass
17590 --without-x
17591 to configure." "$LINENO" 5
17595 ### If we're using X11, we should use the X menu package.
17596 HAVE_MENUS=no
17597 case ${HAVE_X11} in
17598 yes ) HAVE_MENUS=yes ;;
17599 esac
17601 # Does the opsystem file prohibit the use of the GNU malloc?
17602 # Assume not, until told otherwise.
17603 GNU_MALLOC=yes
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17606 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17607 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17608 $as_echo_n "(cached) " >&6
17609 else
17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h. */
17612 #include <malloc.h>
17613 static void hook (void) {}
17615 main ()
17617 malloc_set_state (malloc_get_state ());
17618 __after_morecore_hook = hook;
17619 __malloc_initialize_hook = hook;
17621 return 0;
17623 _ACEOF
17624 if ac_fn_c_try_link "$LINENO"; then :
17625 emacs_cv_var_doug_lea_malloc=yes
17626 else
17627 emacs_cv_var_doug_lea_malloc=no
17629 rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17633 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17634 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
17637 system_malloc=no
17638 case "$opsys" in
17639 ## darwin ld insists on the use of malloc routines in the System framework.
17640 darwin|sol2-10) system_malloc=yes ;;
17641 esac
17643 if test "${system_malloc}" = "yes"; then
17645 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17647 GNU_MALLOC=no
17648 GNU_MALLOC_reason="
17649 (The GNU allocators don't work with this system configuration.)"
17650 GMALLOC_OBJ=
17651 VMLIMIT_OBJ=
17652 else
17653 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
17654 VMLIMIT_OBJ=vm-limit.o
17659 if test "$doug_lea_malloc" = "yes" ; then
17660 if test "$GNU_MALLOC" = yes ; then
17661 GNU_MALLOC_reason="
17662 (Using Doug Lea's new malloc from the GNU C Library.)"
17665 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17668 ## Use mmap directly for allocating larger buffers.
17669 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17670 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17671 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17672 case "$opsys" in
17673 gnu*) REL_ALLOC=no ;;
17674 esac
17677 if test x"${REL_ALLOC}" = x; then
17678 REL_ALLOC=${GNU_MALLOC}
17681 use_mmap_for_buffers=no
17682 case "$opsys" in
17683 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
17684 esac
17689 for ac_func in getpagesize
17690 do :
17691 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17692 if test "x$ac_cv_func_getpagesize" = x""yes; then :
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_GETPAGESIZE 1
17695 _ACEOF
17698 done
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17701 $as_echo_n "checking for working mmap... " >&6; }
17702 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 if test "$cross_compiling" = yes; then :
17706 ac_cv_func_mmap_fixed_mapped=no
17707 else
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 $ac_includes_default
17711 /* malloc might have been renamed as rpl_malloc. */
17712 #undef malloc
17714 /* Thanks to Mike Haertel and Jim Avera for this test.
17715 Here is a matrix of mmap possibilities:
17716 mmap private not fixed
17717 mmap private fixed at somewhere currently unmapped
17718 mmap private fixed at somewhere already mapped
17719 mmap shared not fixed
17720 mmap shared fixed at somewhere currently unmapped
17721 mmap shared fixed at somewhere already mapped
17722 For private mappings, we should verify that changes cannot be read()
17723 back from the file, nor mmap's back from the file at a different
17724 address. (There have been systems where private was not correctly
17725 implemented like the infamous i386 svr4.0, and systems where the
17726 VM page cache was not coherent with the file system buffer cache
17727 like early versions of FreeBSD and possibly contemporary NetBSD.)
17728 For shared mappings, we should conversely verify that changes get
17729 propagated back to all the places they're supposed to be.
17731 Grep wants private fixed already mapped.
17732 The main things grep needs to know about mmap are:
17733 * does it exist and is it safe to write into the mmap'd area
17734 * how to use it (BSD variants) */
17736 #include <fcntl.h>
17737 #include <sys/mman.h>
17739 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17740 char *malloc ();
17741 #endif
17743 /* This mess was copied from the GNU getpagesize.h. */
17744 #ifndef HAVE_GETPAGESIZE
17745 # ifdef _SC_PAGESIZE
17746 # define getpagesize() sysconf(_SC_PAGESIZE)
17747 # else /* no _SC_PAGESIZE */
17748 # ifdef HAVE_SYS_PARAM_H
17749 # include <sys/param.h>
17750 # ifdef EXEC_PAGESIZE
17751 # define getpagesize() EXEC_PAGESIZE
17752 # else /* no EXEC_PAGESIZE */
17753 # ifdef NBPG
17754 # define getpagesize() NBPG * CLSIZE
17755 # ifndef CLSIZE
17756 # define CLSIZE 1
17757 # endif /* no CLSIZE */
17758 # else /* no NBPG */
17759 # ifdef NBPC
17760 # define getpagesize() NBPC
17761 # else /* no NBPC */
17762 # ifdef PAGESIZE
17763 # define getpagesize() PAGESIZE
17764 # endif /* PAGESIZE */
17765 # endif /* no NBPC */
17766 # endif /* no NBPG */
17767 # endif /* no EXEC_PAGESIZE */
17768 # else /* no HAVE_SYS_PARAM_H */
17769 # define getpagesize() 8192 /* punt totally */
17770 # endif /* no HAVE_SYS_PARAM_H */
17771 # endif /* no _SC_PAGESIZE */
17773 #endif /* no HAVE_GETPAGESIZE */
17776 main ()
17778 char *data, *data2, *data3;
17779 const char *cdata2;
17780 int i, pagesize;
17781 int fd, fd2;
17783 pagesize = getpagesize ();
17785 /* First, make a file with some known garbage in it. */
17786 data = (char *) malloc (pagesize);
17787 if (!data)
17788 return 1;
17789 for (i = 0; i < pagesize; ++i)
17790 *(data + i) = rand ();
17791 umask (0);
17792 fd = creat ("conftest.mmap", 0600);
17793 if (fd < 0)
17794 return 2;
17795 if (write (fd, data, pagesize) != pagesize)
17796 return 3;
17797 close (fd);
17799 /* Next, check that the tail of a page is zero-filled. File must have
17800 non-zero length, otherwise we risk SIGBUS for entire page. */
17801 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17802 if (fd2 < 0)
17803 return 4;
17804 cdata2 = "";
17805 if (write (fd2, cdata2, 1) != 1)
17806 return 5;
17807 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17808 if (data2 == MAP_FAILED)
17809 return 6;
17810 for (i = 0; i < pagesize; ++i)
17811 if (*(data2 + i))
17812 return 7;
17813 close (fd2);
17814 if (munmap (data2, pagesize))
17815 return 8;
17817 /* Next, try to mmap the file at a fixed address which already has
17818 something else allocated at it. If we can, also make sure that
17819 we see the same garbage. */
17820 fd = open ("conftest.mmap", O_RDWR);
17821 if (fd < 0)
17822 return 9;
17823 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17824 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17825 return 10;
17826 for (i = 0; i < pagesize; ++i)
17827 if (*(data + i) != *(data2 + i))
17828 return 11;
17830 /* Finally, make sure that changes to the mapped area do not
17831 percolate back to the file as seen by read(). (This is a bug on
17832 some variants of i386 svr4.0.) */
17833 for (i = 0; i < pagesize; ++i)
17834 *(data2 + i) = *(data2 + i) + 1;
17835 data3 = (char *) malloc (pagesize);
17836 if (!data3)
17837 return 12;
17838 if (read (fd, data3, pagesize) != pagesize)
17839 return 13;
17840 for (i = 0; i < pagesize; ++i)
17841 if (*(data + i) != *(data3 + i))
17842 return 14;
17843 close (fd);
17844 return 0;
17846 _ACEOF
17847 if ac_fn_c_try_run "$LINENO"; then :
17848 ac_cv_func_mmap_fixed_mapped=yes
17849 else
17850 ac_cv_func_mmap_fixed_mapped=no
17852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17853 conftest.$ac_objext conftest.beam conftest.$ac_ext
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17858 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17861 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17864 rm -f conftest.mmap conftest.txt
17866 if test $use_mmap_for_buffers = yes; then
17868 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17870 REL_ALLOC=no
17873 LIBS="$LIBS_SYSTEM $LIBS"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17876 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17877 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17879 else
17880 ac_check_lib_save_LIBS=$LIBS
17881 LIBS="-ldnet $LIBS"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17885 /* Override any GCC internal prototype to avoid an error.
17886 Use char because int might match the return type of a GCC
17887 builtin and then its argument prototype would still apply. */
17888 #ifdef __cplusplus
17889 extern "C"
17890 #endif
17891 char dnet_ntoa ();
17893 main ()
17895 return dnet_ntoa ();
17897 return 0;
17899 _ACEOF
17900 if ac_fn_c_try_link "$LINENO"; then :
17901 ac_cv_lib_dnet_dnet_ntoa=yes
17902 else
17903 ac_cv_lib_dnet_dnet_ntoa=no
17905 rm -f core conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17910 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17911 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17912 cat >>confdefs.h <<_ACEOF
17913 #define HAVE_LIBDNET 1
17914 _ACEOF
17916 LIBS="-ldnet $LIBS"
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17922 $as_echo_n "checking for main in -lXbsd... " >&6; }
17923 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 ac_check_lib_save_LIBS=$LIBS
17927 LIBS="-lXbsd $LIBS"
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17933 main ()
17935 return main ();
17937 return 0;
17939 _ACEOF
17940 if ac_fn_c_try_link "$LINENO"; then :
17941 ac_cv_lib_Xbsd_main=yes
17942 else
17943 ac_cv_lib_Xbsd_main=no
17945 rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17947 LIBS=$ac_check_lib_save_LIBS
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17950 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17951 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
17952 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
17956 LIB_PTHREAD=
17960 if test "$ac_cv_header_pthread_h"; then
17961 if test "$GMALLOC_OBJ" = gmalloc.o; then
17962 emacs_pthread_function=pthread_atfork
17963 else
17964 emacs_pthread_function=pthread_self
17966 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17968 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17969 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17970 $as_echo_n "(cached) " >&6
17971 else
17972 ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-lpthread $LIBS"
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17977 /* Override any GCC internal prototype to avoid an error.
17978 Use char because int might match the return type of a GCC
17979 builtin and then its argument prototype would still apply. */
17980 #ifdef __cplusplus
17981 extern "C"
17982 #endif
17983 char $emacs_pthread_function ();
17985 main ()
17987 return $emacs_pthread_function ();
17989 return 0;
17991 _ACEOF
17992 if ac_fn_c_try_link "$LINENO"; then :
17993 eval "$as_ac_Lib=yes"
17994 else
17995 eval "$as_ac_Lib=no"
17997 rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
17999 LIBS=$ac_check_lib_save_LIBS
18001 eval ac_res=\$$as_ac_Lib
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18003 $as_echo "$ac_res" >&6; }
18004 eval as_val=\$$as_ac_Lib
18005 if test "x$as_val" = x""yes; then :
18006 HAVE_PTHREAD=yes
18010 if test "$HAVE_PTHREAD" = yes; then
18011 case "${canonical}" in
18012 *-hpux*) ;;
18013 *) LIB_PTHREAD="-lpthread"
18014 LIBS="$LIB_PTHREAD $LIBS" ;;
18015 esac
18017 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
18023 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
18024 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
18025 $as_echo_n "(cached) " >&6
18026 else
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lpthreads $LIBS"
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18032 /* Override any GCC internal prototype to avoid an error.
18033 Use char because int might match the return type of a GCC
18034 builtin and then its argument prototype would still apply. */
18035 #ifdef __cplusplus
18036 extern "C"
18037 #endif
18038 char cma_open ();
18040 main ()
18042 return cma_open ();
18044 return 0;
18046 _ACEOF
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 ac_cv_lib_pthreads_cma_open=yes
18049 else
18050 ac_cv_lib_pthreads_cma_open=no
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
18057 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
18058 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_LIBPTHREADS 1
18061 _ACEOF
18063 LIBS="-lpthreads $LIBS"
18068 ## Note: when using cpp in s/aix4.2.h, this definition depended on
18069 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
18070 ## the system file was sourced. Hence the value of LIBS_SYSTEM
18071 ## added to LIBS in configure would never contain the pthreads part,
18072 ## but the value used in Makefiles might. FIXME?
18074 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
18075 ## be harmless on older versions of X where it happens to exist.
18076 test "$opsys" = "aix4-2" && \
18077 test $ac_cv_lib_pthreads_cma_open = yes && \
18078 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
18081 case ${host_os} in
18082 aix*)
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18084 $as_echo_n "checking for -bbigtoc option... " >&6; }
18085 if test "${gdb_cv_bigtoc+set}" = set; then :
18086 $as_echo_n "(cached) " >&6
18087 else
18089 case $GCC in
18090 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18091 *) gdb_cv_bigtoc=-bbigtoc ;;
18092 esac
18094 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18099 main ()
18101 int i;
18103 return 0;
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18108 else
18109 gdb_cv_bigtoc=
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18116 $as_echo "$gdb_cv_bigtoc" >&6; }
18118 esac
18120 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18121 # used for the tests that follow. We set them back to REAL_CFLAGS and
18122 # REAL_CPPFLAGS later on.
18124 REAL_CFLAGS="$CFLAGS"
18125 REAL_CPPFLAGS="$CPPFLAGS"
18127 if test "${HAVE_X11}" = "yes"; then
18128 DEFS="$C_SWITCH_X_SITE $DEFS"
18129 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
18130 LIBS="-lX11 $LIBS"
18131 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
18132 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
18134 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18135 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18136 # but it's more convenient here to set LD_RUN_PATH since this
18137 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18138 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
18139 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18140 export LD_RUN_PATH
18143 if test "${opsys}" = "gnu-linux"; then
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18145 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18150 main ()
18152 XOpenDisplay ("foo");
18154 return 0;
18156 _ACEOF
18157 if ac_fn_c_try_link "$LINENO"; then :
18158 xgnu_linux_first_failure=no
18159 else
18160 xgnu_linux_first_failure=yes
18162 rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164 if test "${xgnu_linux_first_failure}" = "yes"; then
18165 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
18166 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
18167 OLD_CPPFLAGS="$CPPFLAGS"
18168 OLD_LIBS="$LIBS"
18169 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
18170 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
18171 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
18172 LIBS="$LIBS -b i486-linuxaout"
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18177 main ()
18179 XOpenDisplay ("foo");
18181 return 0;
18183 _ACEOF
18184 if ac_fn_c_try_link "$LINENO"; then :
18185 xgnu_linux_second_failure=no
18186 else
18187 xgnu_linux_second_failure=yes
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 if test "${xgnu_linux_second_failure}" = "yes"; then
18192 # If we get the same failure with -b, there is no use adding -b.
18193 # So take it out. This plays safe.
18194 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
18195 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
18196 CPPFLAGS="$OLD_CPPFLAGS"
18197 LIBS="$OLD_LIBS"
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199 $as_echo "no" >&6; }
18200 else
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18202 $as_echo "yes" >&6; }
18204 else
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18210 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18211 # header files included from there.
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18213 $as_echo_n "checking for Xkb... " >&6; }
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #include <X11/Xlib.h>
18217 #include <X11/XKBlib.h>
18219 main ()
18221 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18223 return 0;
18225 _ACEOF
18226 if ac_fn_c_try_link "$LINENO"; then :
18227 emacs_xkb=yes
18228 else
18229 emacs_xkb=no
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18234 $as_echo "$emacs_xkb" >&6; }
18235 if test $emacs_xkb = yes; then
18237 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18241 for ac_func in XrmSetDatabase XScreenResourceString \
18242 XScreenNumberOfScreen
18243 do :
18244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18246 eval as_val=\$$as_ac_var
18247 if test "x$as_val" = x""yes; then :
18248 cat >>confdefs.h <<_ACEOF
18249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 _ACEOF
18253 done
18257 if test "${window_system}" = "x11"; then
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18259 $as_echo_n "checking X11 version 6... " >&6; }
18260 if test "${emacs_cv_x11_version_6+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18265 #include <X11/Xlib.h>
18267 main ()
18269 #if XlibSpecificationRelease < 6
18270 fail;
18271 #endif
18274 return 0;
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278 emacs_cv_x11_version_6=yes
18279 else
18280 emacs_cv_x11_version_6=no
18282 rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18286 if test $emacs_cv_x11_version_6 = yes; then
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18288 $as_echo "6 or newer" >&6; }
18290 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18293 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18295 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18296 ## XIM support.
18297 case "$opsys" in
18298 sol2-*) : ;;
18300 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18303 esac
18304 else
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18306 $as_echo "before 6" >&6; }
18311 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18312 HAVE_RSVG=no
18313 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
18314 if test "${with_rsvg}" != "no"; then
18315 RSVG_REQUIRED=2.11.0
18316 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
18319 succeeded=no
18321 if test "$PKG_CONFIG" = "no" ; then
18323 else
18324 PKG_CONFIG_MIN_VERSION=0.9.0
18325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18327 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18329 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18330 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18331 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18332 edit_cflags="
18333 s,///*,/,g
18334 s/^/ /
18335 s/ -I/ $isystem/g
18336 s/^ //
18338 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18339 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18341 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18342 succeeded=yes
18343 else
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345 $as_echo "no" >&6; }
18346 RSVG_CFLAGS=""
18347 RSVG_LIBS=""
18348 ## If we have a custom action on failure, don't print errors, but
18349 ## do set a variable so people can do so.
18350 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18356 else
18357 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18358 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18362 if test $succeeded = yes; then
18363 HAVE_RSVG=yes
18364 else
18371 if test $HAVE_RSVG = yes; then
18373 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18375 CFLAGS="$CFLAGS $RSVG_CFLAGS"
18376 LIBS="$RSVG_LIBS $LIBS"
18381 HAVE_IMAGEMAGICK=no
18382 if test "${HAVE_X11}" = "yes"; then
18383 if test "${with_imagemagick}" != "no"; then
18384 ## 6.2.8 is the earliest version known to work, but earlier versions
18385 ## might work - let us know if you find one.
18386 ## 6.0.7 does not work. See bug#7955.
18387 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
18389 succeeded=no
18391 if test "$PKG_CONFIG" = "no" ; then
18393 else
18394 PKG_CONFIG_MIN_VERSION=0.9.0
18395 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18397 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18399 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18400 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18401 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18402 edit_cflags="
18403 s,///*,/,g
18404 s/^/ /
18405 s/ -I/ $isystem/g
18406 s/^ //
18408 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18409 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18411 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18412 succeeded=yes
18413 else
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 IMAGEMAGICK_CFLAGS=""
18417 IMAGEMAGICK_LIBS=""
18418 ## If we have a custom action on failure, don't print errors, but
18419 ## do set a variable so people can do so.
18420 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18426 else
18427 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18428 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18432 if test $succeeded = yes; then
18433 HAVE_IMAGEMAGICK=yes
18434 else
18441 if test $HAVE_IMAGEMAGICK = yes; then
18443 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18445 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
18446 LIBS="$IMAGEMAGICK_LIBS $LIBS"
18447 for ac_func in MagickExportImagePixels MagickMergeImageLayers
18448 do :
18449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18451 eval as_val=\$$as_ac_var
18452 if test "x$as_val" = x""yes; then :
18453 cat >>confdefs.h <<_ACEOF
18454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18455 _ACEOF
18458 done
18465 HAVE_GTK=no
18466 GTK_OBJ=
18467 if test "${with_gtk3}" = "yes"; then
18468 GLIB_REQUIRED=2.28
18469 GTK_REQUIRED=3.0
18470 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18473 succeeded=no
18475 if test "$PKG_CONFIG" = "no" ; then
18476 pkg_check_gtk=no
18477 else
18478 PKG_CONFIG_MIN_VERSION=0.9.0
18479 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18481 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18483 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18484 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18485 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18486 edit_cflags="
18487 s,///*,/,g
18488 s/^/ /
18489 s/ -I/ $isystem/g
18490 s/^ //
18492 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18493 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18495 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18496 succeeded=yes
18497 else
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18500 GTK_CFLAGS=""
18501 GTK_LIBS=""
18502 ## If we have a custom action on failure, don't print errors, but
18503 ## do set a variable so people can do so.
18504 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18510 else
18511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18516 if test $succeeded = yes; then
18517 pkg_check_gtk=yes
18518 else
18519 pkg_check_gtk=no
18522 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18523 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18526 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18528 GTK_OBJ=emacsgtkfixed.o
18531 if test "$pkg_check_gtk" != "yes"; then
18532 HAVE_GTK=no
18533 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
18534 GLIB_REQUIRED=2.10
18535 GTK_REQUIRED=2.10
18536 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18539 succeeded=no
18541 if test "$PKG_CONFIG" = "no" ; then
18542 pkg_check_gtk=no
18543 else
18544 PKG_CONFIG_MIN_VERSION=0.9.0
18545 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18547 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18549 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18550 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18551 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18552 edit_cflags="
18553 s,///*,/,g
18554 s/^/ /
18555 s/ -I/ $isystem/g
18556 s/^ //
18558 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18559 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18561 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18562 succeeded=yes
18563 else
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 GTK_CFLAGS=""
18567 GTK_LIBS=""
18568 ## If we have a custom action on failure, don't print errors, but
18569 ## do set a variable so people can do so.
18570 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18576 else
18577 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18578 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18582 if test $succeeded = yes; then
18583 pkg_check_gtk=yes
18584 else
18585 pkg_check_gtk=no
18588 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18589 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18594 if test x"$pkg_check_gtk" = xyes; then
18598 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
18599 CFLAGS="$CFLAGS $GTK_CFLAGS"
18600 LIBS="$GTK_LIBS $LIBS"
18601 GTK_COMPILES=no
18602 for ac_func in gtk_main
18603 do :
18604 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18605 if test "x$ac_cv_func_gtk_main" = x""yes; then :
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_GTK_MAIN 1
18608 _ACEOF
18609 GTK_COMPILES=yes
18611 done
18613 if test "${GTK_COMPILES}" != "yes"; then
18614 if test "$USE_X_TOOLKIT" != "maybe"; then
18615 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18617 else
18618 HAVE_GTK=yes
18620 $as_echo "#define USE_GTK 1" >>confdefs.h
18622 GTK_OBJ="gtkutil.o $GTK_OBJ"
18623 USE_X_TOOLKIT=none
18624 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
18626 else
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18628 closing open displays. This is no problem if you just use
18629 one display, but if you use more than one and close one of them
18630 Emacs may crash." >&5
18631 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18632 closing open displays. This is no problem if you just use
18633 one display, but if you use more than one and close one of them
18634 Emacs may crash." >&2;}
18635 sleep 3
18643 if test "${HAVE_GTK}" = "yes"; then
18645 if test "$with_toolkit_scroll_bars" != no; then
18646 with_toolkit_scroll_bars=yes
18649 HAVE_GTK_FILE_SELECTION=no
18650 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18651 #include <gtk/gtk.h>
18653 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
18654 HAVE_GTK_FILE_SELECTION=yes
18655 else
18656 HAVE_GTK_FILE_SELECTION=no
18659 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18660 for ac_func in gtk_file_selection_new
18661 do :
18662 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18663 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
18664 cat >>confdefs.h <<_ACEOF
18665 #define HAVE_GTK_FILE_SELECTION_NEW 1
18666 _ACEOF
18669 done
18674 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
18675 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18676 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18677 gtk_orientable_set_orientation \
18678 gtk_window_set_has_resize_grip
18679 do :
18680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18682 eval as_val=\$$as_ac_var
18683 if test "x$as_val" = x""yes; then :
18684 cat >>confdefs.h <<_ACEOF
18685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18686 _ACEOF
18689 done
18693 HAVE_DBUS=no
18694 DBUS_OBJ=
18695 if test "${with_dbus}" = "yes"; then
18697 succeeded=no
18699 if test "$PKG_CONFIG" = "no" ; then
18700 HAVE_DBUS=no
18701 else
18702 PKG_CONFIG_MIN_VERSION=0.9.0
18703 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18705 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18707 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18708 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18709 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18710 edit_cflags="
18711 s,///*,/,g
18712 s/^/ /
18713 s/ -I/ $isystem/g
18714 s/^ //
18716 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18717 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18719 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18720 succeeded=yes
18721 else
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18724 DBUS_CFLAGS=""
18725 DBUS_LIBS=""
18726 ## If we have a custom action on failure, don't print errors, but
18727 ## do set a variable so people can do so.
18728 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18734 else
18735 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18736 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18740 if test $succeeded = yes; then
18741 HAVE_DBUS=yes
18742 else
18743 HAVE_DBUS=no
18746 if test "$HAVE_DBUS" = yes; then
18747 LIBS="$LIBS $DBUS_LIBS"
18749 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18751 for ac_func in dbus_watch_get_unix_fd \
18752 dbus_type_is_valid \
18753 dbus_validate_bus_name \
18754 dbus_validate_path \
18755 dbus_validate_interface \
18756 dbus_validate_member
18757 do :
18758 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18759 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18760 eval as_val=\$$as_ac_var
18761 if test "x$as_val" = x""yes; then :
18762 cat >>confdefs.h <<_ACEOF
18763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18767 done
18769 DBUS_OBJ=dbusbind.o
18774 HAVE_GSETTINGS=no
18775 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18777 succeeded=no
18779 if test "$PKG_CONFIG" = "no" ; then
18780 HAVE_GSETTINGS=no
18781 else
18782 PKG_CONFIG_MIN_VERSION=0.9.0
18783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18785 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18787 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18788 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18789 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18790 edit_cflags="
18791 s,///*,/,g
18792 s/^/ /
18793 s/ -I/ $isystem/g
18794 s/^ //
18796 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18797 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18799 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18800 succeeded=yes
18801 else
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803 $as_echo "no" >&6; }
18804 GSETTINGS_CFLAGS=""
18805 GSETTINGS_LIBS=""
18806 ## If we have a custom action on failure, don't print errors, but
18807 ## do set a variable so people can do so.
18808 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18814 else
18815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18820 if test $succeeded = yes; then
18821 HAVE_GSETTINGS=yes
18822 else
18823 HAVE_GSETTINGS=no
18826 if test "$HAVE_GSETTINGS" = "yes"; then
18828 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18830 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
18831 SETTINGS_LIBS="$GSETTINGS_LIBS"
18835 HAVE_GCONF=no
18836 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18838 succeeded=no
18840 if test "$PKG_CONFIG" = "no" ; then
18841 HAVE_GCONF=no
18842 else
18843 PKG_CONFIG_MIN_VERSION=0.9.0
18844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18846 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18848 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18849 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18850 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18851 edit_cflags="
18852 s,///*,/,g
18853 s/^/ /
18854 s/ -I/ $isystem/g
18855 s/^ //
18857 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18858 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18860 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18861 succeeded=yes
18862 else
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18865 GCONF_CFLAGS=""
18866 GCONF_LIBS=""
18867 ## If we have a custom action on failure, don't print errors, but
18868 ## do set a variable so people can do so.
18869 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18875 else
18876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18881 if test $succeeded = yes; then
18882 HAVE_GCONF=yes
18883 else
18884 HAVE_GCONF=no
18887 if test "$HAVE_GCONF" = yes; then
18889 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18891 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18892 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
18896 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
18897 SAVE_CFLAGS="$CFLAGS"
18898 SAVE_LIBS="$LIBS"
18899 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
18900 LIBS="$SETTINGS_LIBS $LIBS"
18901 for ac_func in g_type_init
18902 do :
18903 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18904 if test "x$ac_cv_func_g_type_init" = x""yes; then :
18905 cat >>confdefs.h <<_ACEOF
18906 #define HAVE_G_TYPE_INIT 1
18907 _ACEOF
18910 done
18912 CFLAGS="$SAVE_CFLAGS"
18913 LIBS="$SAVE_LIBS"
18919 HAVE_LIBSELINUX=no
18920 LIBSELINUX_LIBS=
18921 if test "${with_selinux}" = "yes"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18923 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18924 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18925 $as_echo_n "(cached) " >&6
18926 else
18927 ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lselinux $LIBS"
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18932 /* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18935 #ifdef __cplusplus
18936 extern "C"
18937 #endif
18938 char lgetfilecon ();
18940 main ()
18942 return lgetfilecon ();
18944 return 0;
18946 _ACEOF
18947 if ac_fn_c_try_link "$LINENO"; then :
18948 ac_cv_lib_selinux_lgetfilecon=yes
18949 else
18950 ac_cv_lib_selinux_lgetfilecon=no
18952 rm -f core conftest.err conftest.$ac_objext \
18953 conftest$ac_exeext conftest.$ac_ext
18954 LIBS=$ac_check_lib_save_LIBS
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18957 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18958 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
18959 HAVE_LIBSELINUX=yes
18960 else
18961 HAVE_LIBSELINUX=no
18964 if test "$HAVE_LIBSELINUX" = yes; then
18966 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18968 LIBSELINUX_LIBS=-lselinux
18973 HAVE_GNUTLS=no
18974 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
18975 if test "${with_gnutls}" = "yes" ; then
18977 succeeded=no
18979 if test "$PKG_CONFIG" = "no" ; then
18980 HAVE_GNUTLS=no
18981 else
18982 PKG_CONFIG_MIN_VERSION=0.9.0
18983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18985 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18987 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18988 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18989 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18990 edit_cflags="
18991 s,///*,/,g
18992 s/^/ /
18993 s/ -I/ $isystem/g
18994 s/^ //
18996 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18997 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18999 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
19000 succeeded=yes
19001 else
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19004 LIBGNUTLS_CFLAGS=""
19005 LIBGNUTLS_LIBS=""
19006 ## If we have a custom action on failure, don't print errors, but
19007 ## do set a variable so people can do so.
19008 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
19014 else
19015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19020 if test $succeeded = yes; then
19021 HAVE_GNUTLS=yes
19022 else
19023 HAVE_GNUTLS=no
19026 if test "${HAVE_GNUTLS}" = "yes"; then
19028 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
19032 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
19033 LIBS="$LIBGNUTLS_LIBS $LIBS"
19034 for ac_func in gnutls_certificate_set_verify_function
19035 do :
19036 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
19037 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
19038 cat >>confdefs.h <<_ACEOF
19039 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
19040 _ACEOF
19041 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
19043 done
19046 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
19048 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
19056 HAVE_XAW3D=no
19057 LUCID_LIBW=
19058 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
19059 if test "$with_xaw3d" != no; then
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
19061 $as_echo_n "checking for xaw3d... " >&6; }
19062 if test "${emacs_cv_xaw3d+set}" = set; then :
19063 $as_echo_n "(cached) " >&6
19064 else
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 #include <X11/Intrinsic.h>
19069 #include <X11/Xaw3d/Simple.h>
19071 main ()
19075 return 0;
19077 _ACEOF
19078 if ac_fn_c_try_link "$LINENO"; then :
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
19080 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
19081 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
19082 $as_echo_n "(cached) " >&6
19083 else
19084 ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lXaw3d $LIBS"
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h. */
19089 /* Override any GCC internal prototype to avoid an error.
19090 Use char because int might match the return type of a GCC
19091 builtin and then its argument prototype would still apply. */
19092 #ifdef __cplusplus
19093 extern "C"
19094 #endif
19095 char XawScrollbarSetThumb ();
19097 main ()
19099 return XawScrollbarSetThumb ();
19101 return 0;
19103 _ACEOF
19104 if ac_fn_c_try_link "$LINENO"; then :
19105 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
19106 else
19107 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
19109 rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19114 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19115 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
19116 emacs_cv_xaw3d=yes
19117 else
19118 emacs_cv_xaw3d=no
19121 else
19122 emacs_cv_xaw3d=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19128 else
19129 emacs_cv_xaw3d=no
19131 if test $emacs_cv_xaw3d = yes; then
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19133 $as_echo "yes; using Lucid toolkit" >&6; }
19134 USE_X_TOOLKIT=LUCID
19135 HAVE_XAW3D=yes
19136 LUCID_LIBW=-lXaw3d
19138 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19140 else
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19144 $as_echo_n "checking for libXaw... " >&6; }
19145 if test "${emacs_cv_xaw+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19147 else
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 #include <X11/Intrinsic.h>
19152 #include <X11/Xaw/Simple.h>
19154 main ()
19158 return 0;
19160 _ACEOF
19161 if ac_fn_c_try_link "$LINENO"; then :
19162 emacs_cv_xaw=yes
19163 else
19164 emacs_cv_xaw=no
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19170 if test $emacs_cv_xaw = yes; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19172 $as_echo "yes; using Lucid toolkit" >&6; }
19173 USE_X_TOOLKIT=LUCID
19174 LUCID_LIBW=-lXaw
19175 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
19176 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19177 else
19178 as_fn_error "No X toolkit could be found.
19179 If you are sure you want Emacs compiled without an X toolkit, pass
19180 --with-x-toolkit=no
19181 to configure. Otherwise, install the development libraries for the toolkit
19182 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19187 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
19189 LIBXTR6=
19190 if test "${USE_X_TOOLKIT}" != "none"; then
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19192 $as_echo_n "checking X11 toolkit version... " >&6; }
19193 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19194 $as_echo_n "(cached) " >&6
19195 else
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19198 #include <X11/Intrinsic.h>
19200 main ()
19202 #if XtSpecificationRelease < 6
19203 fail;
19204 #endif
19207 return 0;
19209 _ACEOF
19210 if ac_fn_c_try_link "$LINENO"; then :
19211 emacs_cv_x11_toolkit_version_6=yes
19212 else
19213 emacs_cv_x11_toolkit_version_6=no
19215 rm -f core conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19219 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
19220 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19222 $as_echo "6 or newer" >&6; }
19224 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19226 LIBXTR6="-lSM -lICE"
19227 case "$opsys" in
19228 ## Use libw.a along with X11R6 Xt.
19229 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
19230 esac
19231 else
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19233 $as_echo "before 6" >&6; }
19236 OLDLIBS="$LIBS"
19237 if test x$HAVE_X11XTR6 = xyes; then
19238 LIBS="-lXt -lSM -lICE $LIBS"
19239 else
19240 LIBS="-lXt $LIBS"
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19243 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19244 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19245 $as_echo_n "(cached) " >&6
19246 else
19247 ac_check_lib_save_LIBS=$LIBS
19248 LIBS="-lXmu $LIBS"
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19252 /* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 char XmuConvertStandardSelection ();
19260 main ()
19262 return XmuConvertStandardSelection ();
19264 return 0;
19266 _ACEOF
19267 if ac_fn_c_try_link "$LINENO"; then :
19268 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
19269 else
19270 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
19272 rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19277 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19278 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_LIBXMU 1
19281 _ACEOF
19283 LIBS="-lXmu $LIBS"
19287 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
19291 LIBXMU=-lXmu
19292 case $opsys in
19293 ## These systems don't supply Xmu.
19294 hpux* | aix4-2 )
19295 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
19297 esac
19300 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19301 if test "${HAVE_X11}" = "yes"; then
19302 if test "${USE_X_TOOLKIT}" != "none"; then
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19304 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19305 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19306 $as_echo_n "(cached) " >&6
19307 else
19308 ac_check_lib_save_LIBS=$LIBS
19309 LIBS="-lXext $LIBS"
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19313 /* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19316 #ifdef __cplusplus
19317 extern "C"
19318 #endif
19319 char XShapeQueryExtension ();
19321 main ()
19323 return XShapeQueryExtension ();
19325 return 0;
19327 _ACEOF
19328 if ac_fn_c_try_link "$LINENO"; then :
19329 ac_cv_lib_Xext_XShapeQueryExtension=yes
19330 else
19331 ac_cv_lib_Xext_XShapeQueryExtension=no
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19338 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19339 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_LIBXEXT 1
19342 _ACEOF
19344 LIBS="-lXext $LIBS"
19351 LIBXP=
19352 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19354 $as_echo_n "checking for Motif version 2.1... " >&6; }
19355 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19356 $as_echo_n "(cached) " >&6
19357 else
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19360 #include <Xm/Xm.h>
19362 main ()
19364 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19365 int x = 5;
19366 #else
19367 Motif version prior to 2.1.
19368 #endif
19370 return 0;
19372 _ACEOF
19373 if ac_fn_c_try_compile "$LINENO"; then :
19374 emacs_cv_motif_version_2_1=yes
19375 else
19376 emacs_cv_motif_version_2_1=no
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19381 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19382 if test $emacs_cv_motif_version_2_1 = yes; then
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19384 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19385 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 ac_check_lib_save_LIBS=$LIBS
19389 LIBS="-lXp $LIBS"
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 char XpCreateContext ();
19401 main ()
19403 return XpCreateContext ();
19405 return 0;
19407 _ACEOF
19408 if ac_fn_c_try_link "$LINENO"; then :
19409 ac_cv_lib_Xp_XpCreateContext=yes
19410 else
19411 ac_cv_lib_Xp_XpCreateContext=no
19413 rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19418 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19419 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
19420 LIBXP=-lXp
19423 else
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19425 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19426 if test "${emacs_cv_lesstif+set}" = set; then :
19427 $as_echo_n "(cached) " >&6
19428 else
19429 # We put this in CFLAGS temporarily to precede other -I options
19430 # that might be in CFLAGS temporarily.
19431 # We put this in CPPFLAGS where it precedes the other -I options.
19432 OLD_CPPFLAGS=$CPPFLAGS
19433 OLD_CFLAGS=$CFLAGS
19434 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19435 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19438 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19440 main ()
19442 int x = 5;
19444 return 0;
19446 _ACEOF
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448 emacs_cv_lesstif=yes
19449 else
19450 emacs_cv_lesstif=no
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19455 $as_echo "$emacs_cv_lesstif" >&6; }
19456 if test $emacs_cv_lesstif = yes; then
19457 # Make sure this -I option remains in CPPFLAGS after it is set
19458 # back to REAL_CPPFLAGS.
19459 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19460 # have those other -I options anyway. Ultimately, having this
19461 # directory ultimately in CPPFLAGS will be enough.
19462 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19463 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19464 else
19465 CFLAGS=$OLD_CFLAGS
19466 CPPFLAGS=$OLD_CPPFLAGS
19469 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19470 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
19472 else
19473 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
19480 USE_TOOLKIT_SCROLL_BARS=no
19481 if test "${with_toolkit_scroll_bars}" != "no"; then
19482 if test "${USE_X_TOOLKIT}" != "none"; then
19483 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19484 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19486 HAVE_XAW3D=no
19487 USE_TOOLKIT_SCROLL_BARS=yes
19488 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
19489 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19491 USE_TOOLKIT_SCROLL_BARS=yes
19493 elif test "${HAVE_GTK}" = "yes"; then
19494 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19496 USE_TOOLKIT_SCROLL_BARS=yes
19497 elif test "${HAVE_NS}" = "yes"; then
19498 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19500 USE_TOOLKIT_SCROLL_BARS=yes
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19507 #include <X11/Xlib.h>
19508 #include <X11/Xresource.h>
19510 main ()
19512 XIMProc callback;
19514 return 0;
19516 _ACEOF
19517 if ac_fn_c_try_compile "$LINENO"; then :
19518 HAVE_XIM=yes
19520 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19522 else
19523 HAVE_XIM=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 if test "${with_xim}" != "no"; then
19530 $as_echo "#define USE_XIM 1" >>confdefs.h
19535 if test "${HAVE_XIM}" != "no"; then
19536 late_CFLAGS=$CFLAGS
19537 if test "$GCC" = yes; then
19538 CFLAGS="$CFLAGS --pedantic-errors"
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19543 #include <X11/Xlib.h>
19544 #include <X11/Xresource.h>
19546 main ()
19548 Display *display;
19549 XrmDatabase db;
19550 char *res_name;
19551 char *res_class;
19552 XIMProc callback;
19553 XPointer *client_data;
19554 #ifndef __GNUC__
19555 /* If we're not using GCC, it's probably not XFree86, and this is
19556 probably right, but we can't use something like --pedantic-errors. */
19557 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19558 char*, XIMProc, XPointer*);
19559 #endif
19560 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19561 client_data);
19563 return 0;
19565 _ACEOF
19566 if ac_fn_c_try_compile "$LINENO"; then :
19567 emacs_cv_arg6_star=yes
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 if test "$emacs_cv_arg6_star" = yes; then
19571 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19573 else
19574 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19577 CFLAGS=$late_CFLAGS
19580 ### Start of font-backend (under any platform) section.
19581 # (nothing here yet -- this is a placeholder)
19582 ### End of font-backend (under any platform) section.
19584 ### Start of font-backend (under X11) section.
19585 if test "${HAVE_X11}" = "yes"; then
19587 succeeded=no
19589 if test "$PKG_CONFIG" = "no" ; then
19590 HAVE_FC=no
19591 else
19592 PKG_CONFIG_MIN_VERSION=0.9.0
19593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19595 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19597 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19598 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19599 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19600 edit_cflags="
19601 s,///*,/,g
19602 s/^/ /
19603 s/ -I/ $isystem/g
19604 s/^ //
19606 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19607 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19609 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19610 succeeded=yes
19611 else
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19613 $as_echo "no" >&6; }
19614 FONTCONFIG_CFLAGS=""
19615 FONTCONFIG_LIBS=""
19616 ## If we have a custom action on failure, don't print errors, but
19617 ## do set a variable so people can do so.
19618 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19624 else
19625 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19626 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19630 if test $succeeded = yes; then
19631 HAVE_FC=yes
19632 else
19633 HAVE_FC=no
19637 ## Use -lXft if available, unless `--with-xft=no'.
19638 HAVE_XFT=maybe
19639 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
19640 with_xft="no";
19642 if test "x${with_xft}" != "xno"; then
19645 succeeded=no
19647 if test "$PKG_CONFIG" = "no" ; then
19648 HAVE_XFT=no
19649 else
19650 PKG_CONFIG_MIN_VERSION=0.9.0
19651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19653 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19655 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19656 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19657 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19658 edit_cflags="
19659 s,///*,/,g
19660 s/^/ /
19661 s/ -I/ $isystem/g
19662 s/^ //
19664 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19665 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19667 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19668 succeeded=yes
19669 else
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19671 $as_echo "no" >&6; }
19672 XFT_CFLAGS=""
19673 XFT_LIBS=""
19674 ## If we have a custom action on failure, don't print errors, but
19675 ## do set a variable so people can do so.
19676 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19682 else
19683 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19684 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19688 if test $succeeded = yes; then
19690 else
19691 HAVE_XFT=no
19694 ## Because xftfont.c uses XRenderQueryExtension, we also
19695 ## need to link to -lXrender.
19696 HAVE_XRENDER=no
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19698 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19699 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19700 $as_echo_n "(cached) " >&6
19701 else
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lXrender $LIBS"
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 char XRenderQueryExtension ();
19715 main ()
19717 return XRenderQueryExtension ();
19719 return 0;
19721 _ACEOF
19722 if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19724 else
19725 ac_cv_lib_Xrender_XRenderQueryExtension=no
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 LIBS=$ac_check_lib_save_LIBS
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19732 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19733 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19734 HAVE_XRENDER=yes
19737 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
19738 OLD_CPPFLAGS="$CPPFLAGS"
19739 OLD_CFLAGS="$CFLAGS"
19740 OLD_LIBS="$LIBS"
19741 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
19742 CFLAGS="$CFLAGS $XFT_CFLAGS"
19743 XFT_LIBS="-lXrender $XFT_LIBS"
19744 LIBS="$XFT_LIBS $LIBS"
19745 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19746 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19748 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19749 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19750 $as_echo_n "(cached) " >&6
19751 else
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lXft $XFT_LIBS $LIBS"
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19757 /* Override any GCC internal prototype to avoid an error.
19758 Use char because int might match the return type of a GCC
19759 builtin and then its argument prototype would still apply. */
19760 #ifdef __cplusplus
19761 extern "C"
19762 #endif
19763 char XftFontOpen ();
19765 main ()
19767 return XftFontOpen ();
19769 return 0;
19771 _ACEOF
19772 if ac_fn_c_try_link "$LINENO"; then :
19773 ac_cv_lib_Xft_XftFontOpen=yes
19774 else
19775 ac_cv_lib_Xft_XftFontOpen=no
19777 rm -f core conftest.err conftest.$ac_objext \
19778 conftest$ac_exeext conftest.$ac_ext
19779 LIBS=$ac_check_lib_save_LIBS
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19782 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19783 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
19784 HAVE_XFT=yes
19791 if test "${HAVE_XFT}" = "yes"; then
19793 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19796 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
19797 else
19798 CPPFLAGS="$OLD_CPPFLAGS"
19799 CFLAGS="$OLD_CFLAGS"
19800 LIBS="$OLD_LIBS"
19801 fi # "${HAVE_XFT}" = "yes"
19802 fi # "$HAVE_XFT" != no
19803 fi # "x${with_xft}" != "xno"
19805 ## We used to allow building with FreeType and without Xft.
19806 ## However, the ftx font backend driver is not in good shape.
19807 if test "$HAVE_XFT" != "yes"; then
19808 HAVE_XFT=no
19809 HAVE_FREETYPE=no
19810 else
19812 succeeded=no
19814 if test "$PKG_CONFIG" = "no" ; then
19815 HAVE_FREETYPE=no
19816 else
19817 PKG_CONFIG_MIN_VERSION=0.9.0
19818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19820 $as_echo_n "checking for freetype2... " >&6; }
19822 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19823 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19824 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19825 edit_cflags="
19826 s,///*,/,g
19827 s/^/ /
19828 s/ -I/ $isystem/g
19829 s/^ //
19831 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19832 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19834 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19835 succeeded=yes
19836 else
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838 $as_echo "no" >&6; }
19839 FREETYPE_CFLAGS=""
19840 FREETYPE_LIBS=""
19841 ## If we have a custom action on failure, don't print errors, but
19842 ## do set a variable so people can do so.
19843 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19849 else
19850 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19851 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19855 if test $succeeded = yes; then
19856 HAVE_FREETYPE=yes
19857 else
19858 HAVE_FREETYPE=no
19862 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
19865 HAVE_LIBOTF=no
19866 if test "${HAVE_FREETYPE}" = "yes"; then
19868 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19870 if test "${with_libotf}" != "no"; then
19872 succeeded=no
19874 if test "$PKG_CONFIG" = "no" ; then
19875 HAVE_LIBOTF=no
19876 else
19877 PKG_CONFIG_MIN_VERSION=0.9.0
19878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19880 $as_echo_n "checking for libotf... " >&6; }
19882 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19883 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19884 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19885 edit_cflags="
19886 s,///*,/,g
19887 s/^/ /
19888 s/ -I/ $isystem/g
19889 s/^ //
19891 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19892 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19894 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19895 succeeded=yes
19896 else
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19898 $as_echo "no" >&6; }
19899 LIBOTF_CFLAGS=""
19900 LIBOTF_LIBS=""
19901 ## If we have a custom action on failure, don't print errors, but
19902 ## do set a variable so people can do so.
19903 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19909 else
19910 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19911 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19915 if test $succeeded = yes; then
19916 HAVE_LIBOTF=yes
19917 else
19918 HAVE_LIBOTF=no
19921 if test "$HAVE_LIBOTF" = "yes"; then
19923 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19926 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19927 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19928 $as_echo_n "(cached) " >&6
19929 else
19930 ac_check_lib_save_LIBS=$LIBS
19931 LIBS="-lotf $LIBS"
19932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h. */
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19938 #ifdef __cplusplus
19939 extern "C"
19940 #endif
19941 char OTF_get_variation_glyphs ();
19943 main ()
19945 return OTF_get_variation_glyphs ();
19947 return 0;
19949 _ACEOF
19950 if ac_fn_c_try_link "$LINENO"; then :
19951 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
19952 else
19953 ac_cv_lib_otf_OTF_get_variation_glyphs=no
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19960 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19961 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
19962 HAVE_OTF_GET_VARIATION_GLYPHS=yes
19963 else
19964 HAVE_OTF_GET_VARIATION_GLYPHS=no
19967 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19969 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19976 HAVE_M17N_FLT=no
19977 if test "${HAVE_LIBOTF}" = yes; then
19978 if test "${with_m17n_flt}" != "no"; then
19980 succeeded=no
19982 if test "$PKG_CONFIG" = "no" ; then
19983 HAVE_M17N_FLT=no
19984 else
19985 PKG_CONFIG_MIN_VERSION=0.9.0
19986 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19988 $as_echo_n "checking for m17n-flt... " >&6; }
19990 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19991 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19992 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19993 edit_cflags="
19994 s,///*,/,g
19995 s/^/ /
19996 s/ -I/ $isystem/g
19997 s/^ //
19999 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
20000 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
20002 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
20003 succeeded=yes
20004 else
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20006 $as_echo "no" >&6; }
20007 M17N_FLT_CFLAGS=""
20008 M17N_FLT_LIBS=""
20009 ## If we have a custom action on failure, don't print errors, but
20010 ## do set a variable so people can do so.
20011 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
20017 else
20018 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20019 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20023 if test $succeeded = yes; then
20024 HAVE_M17N_FLT=yes
20025 else
20026 HAVE_M17N_FLT=no
20029 if test "$HAVE_M17N_FLT" = "yes"; then
20031 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
20036 else
20037 HAVE_XFT=no
20038 HAVE_FREETYPE=no
20039 HAVE_LIBOTF=no
20040 HAVE_M17N_FLT=no
20043 ### End of font-backend (under X11) section.
20054 ### Use -lXpm if available, unless `--with-xpm=no'.
20055 HAVE_XPM=no
20056 LIBXPM=
20057 if test "${HAVE_X11}" = "yes"; then
20058 if test "${with_xpm}" != "no"; then
20059 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
20060 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
20062 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
20063 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lXpm -lX11 $LIBS"
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char XpmReadFileToPixmap ();
20079 main ()
20081 return XpmReadFileToPixmap ();
20083 return 0;
20085 _ACEOF
20086 if ac_fn_c_try_link "$LINENO"; then :
20087 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
20088 else
20089 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
20091 rm -f core conftest.err conftest.$ac_objext \
20092 conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20096 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20097 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
20098 HAVE_XPM=yes
20104 if test "${HAVE_XPM}" = "yes"; then
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20106 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20109 #include "X11/xpm.h"
20110 #ifndef XpmReturnAllocPixels
20111 no_return_alloc_pixels
20112 #endif
20114 _ACEOF
20115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20116 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
20117 HAVE_XPM=no
20118 else
20119 HAVE_XPM=yes
20121 rm -f conftest*
20124 if test "${HAVE_XPM}" = "yes"; then
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20126 $as_echo "yes" >&6; }
20127 else
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129 $as_echo "no" >&6; }
20134 if test "${HAVE_XPM}" = "yes"; then
20136 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20138 LIBXPM=-lXpm
20143 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20144 HAVE_JPEG=no
20145 LIBJPEG=
20146 if test "${HAVE_X11}" = "yes"; then
20147 if test "${with_jpeg}" != "no"; then
20148 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20149 if test "x$ac_cv_header_jerror_h" = x""yes; then :
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20151 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20152 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20155 ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-ljpeg $LIBS"
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char jpeg_destroy_compress ();
20168 main ()
20170 return jpeg_destroy_compress ();
20172 return 0;
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
20177 else
20178 ac_cv_lib_jpeg_jpeg_destroy_compress=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_check_lib_save_LIBS
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20185 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20186 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
20187 HAVE_JPEG=yes
20195 if test "${HAVE_JPEG}" = "yes"; then
20196 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199 /* end confdefs.h. */
20200 #include <jpeglib.h>
20201 version=JPEG_LIB_VERSION
20203 _ACEOF
20204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20205 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
20206 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20208 else
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20210 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20211 HAVE_JPEG=no
20213 rm -f conftest*
20216 if test "${HAVE_JPEG}" = "yes"; then
20217 LIBJPEG=-ljpeg
20222 ### Use -lpng if available, unless `--with-png=no'.
20223 HAVE_PNG=no
20224 LIBPNG=
20225 if test "${HAVE_X11}" = "yes"; then
20226 if test "${with_png}" != "no"; then
20227 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20228 # in /usr/include/libpng.
20229 for ac_header in png.h libpng/png.h
20230 do :
20231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20233 eval as_val=\$$as_ac_Header
20234 if test "x$as_val" = x""yes; then :
20235 cat >>confdefs.h <<_ACEOF
20236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20237 _ACEOF
20241 done
20243 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20245 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20246 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20247 $as_echo_n "(cached) " >&6
20248 else
20249 ac_check_lib_save_LIBS=$LIBS
20250 LIBS="-lpng -lz -lm $LIBS"
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 /* Override any GCC internal prototype to avoid an error.
20255 Use char because int might match the return type of a GCC
20256 builtin and then its argument prototype would still apply. */
20257 #ifdef __cplusplus
20258 extern "C"
20259 #endif
20260 char png_get_channels ();
20262 main ()
20264 return png_get_channels ();
20266 return 0;
20268 _ACEOF
20269 if ac_fn_c_try_link "$LINENO"; then :
20270 ac_cv_lib_png_png_get_channels=yes
20271 else
20272 ac_cv_lib_png_png_get_channels=no
20274 rm -f core conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276 LIBS=$ac_check_lib_save_LIBS
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20279 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20280 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
20281 HAVE_PNG=yes
20287 if test "${HAVE_PNG}" = "yes"; then
20289 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20291 LIBPNG="-lpng -lz -lm"
20296 ### Use -ltiff if available, unless `--with-tiff=no'.
20297 HAVE_TIFF=no
20298 LIBTIFF=
20299 if test "${HAVE_X11}" = "yes"; then
20300 if test "${with_tiff}" != "no"; then
20301 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20302 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
20303 tifflibs="-lz -lm"
20304 # At least one tiff package requires the jpeg library.
20305 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20307 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20308 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20309 $as_echo_n "(cached) " >&6
20310 else
20311 ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-ltiff $tifflibs $LIBS"
20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314 /* end confdefs.h. */
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char TIFFGetVersion ();
20324 main ()
20326 return TIFFGetVersion ();
20328 return 0;
20330 _ACEOF
20331 if ac_fn_c_try_link "$LINENO"; then :
20332 ac_cv_lib_tiff_TIFFGetVersion=yes
20333 else
20334 ac_cv_lib_tiff_TIFFGetVersion=no
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20338 LIBS=$ac_check_lib_save_LIBS
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20341 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20342 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
20343 HAVE_TIFF=yes
20351 if test "${HAVE_TIFF}" = "yes"; then
20353 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20355 LIBTIFF=-ltiff
20360 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20361 HAVE_GIF=no
20362 LIBGIF=
20363 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20364 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20365 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
20366 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20367 # Earlier versions can crash Emacs.
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20369 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20370 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20371 $as_echo_n "(cached) " >&6
20372 else
20373 ac_check_lib_save_LIBS=$LIBS
20374 LIBS="-lgif $LIBS"
20375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376 /* end confdefs.h. */
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char EGifPutExtensionLast ();
20386 main ()
20388 return EGifPutExtensionLast ();
20390 return 0;
20392 _ACEOF
20393 if ac_fn_c_try_link "$LINENO"; then :
20394 ac_cv_lib_gif_EGifPutExtensionLast=yes
20395 else
20396 ac_cv_lib_gif_EGifPutExtensionLast=no
20398 rm -f core conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20403 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20404 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
20405 HAVE_GIF=yes
20406 else
20407 HAVE_GIF=maybe
20414 if test "$HAVE_GIF" = yes; then
20415 LIBGIF=-lgif
20416 elif test "$HAVE_GIF" = maybe; then
20417 # If gif_lib.h but no libgif, try libungif.
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20419 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20420 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20422 else
20423 ac_check_lib_save_LIBS=$LIBS
20424 LIBS="-lungif $LIBS"
20425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20431 #ifdef __cplusplus
20432 extern "C"
20433 #endif
20434 char EGifPutExtensionLast ();
20436 main ()
20438 return EGifPutExtensionLast ();
20440 return 0;
20442 _ACEOF
20443 if ac_fn_c_try_link "$LINENO"; then :
20444 ac_cv_lib_ungif_EGifPutExtensionLast=yes
20445 else
20446 ac_cv_lib_ungif_EGifPutExtensionLast=no
20448 rm -f core conftest.err conftest.$ac_objext \
20449 conftest$ac_exeext conftest.$ac_ext
20450 LIBS=$ac_check_lib_save_LIBS
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20453 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20454 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
20455 HAVE_GIF=yes
20456 else
20457 HAVE_GIF=no
20460 test "$HAVE_GIF" = yes && LIBGIF=-lungif
20463 if test "${HAVE_GIF}" = "yes"; then
20465 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20471 if test "${HAVE_X11}" = "yes"; then
20472 MISSING=""
20473 WITH_NO=""
20474 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20475 MISSING="libXpm" && WITH_NO="--with-xpm=no"
20476 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20477 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
20478 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20479 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
20480 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20481 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
20482 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20483 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
20485 if test "X${MISSING}" != X; then
20486 as_fn_error "The following required libraries were not found:
20487 $MISSING
20488 Maybe some development libraries/packages are missing?
20489 If you don't want to link with them give
20490 $WITH_NO
20491 as options to configure" "$LINENO" 5
20495 ### Use -lgpm if available, unless `--with-gpm=no'.
20496 HAVE_GPM=no
20497 LIBGPM=
20498 if test "${with_gpm}" != "no"; then
20499 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20500 if test "x$ac_cv_header_gpm_h" = x""yes; then :
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20502 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20503 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20504 $as_echo_n "(cached) " >&6
20505 else
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lgpm $LIBS"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char Gpm_Open ();
20519 main ()
20521 return Gpm_Open ();
20523 return 0;
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_lib_gpm_Gpm_Open=yes
20528 else
20529 ac_cv_lib_gpm_Gpm_Open=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20536 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20537 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
20538 HAVE_GPM=yes
20545 if test "${HAVE_GPM}" = "yes"; then
20547 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20549 LIBGPM=-lgpm
20558 GNUSTEP_CFLAGS=
20559 ### Use NeXTstep API to implement GUI.
20560 if test "${HAVE_NS}" = "yes"; then
20562 $as_echo "#define HAVE_NS 1" >>confdefs.h
20564 if test "${NS_IMPL_COCOA}" = "yes"; then
20566 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20569 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20571 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20573 # See also .m.o rule in Makefile.in */
20574 # FIXME: are all these flags really needed? Document here why. */
20575 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20576 ## Extra CFLAGS applied to src/*.m files.
20577 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"
20579 # We also have mouse menus.
20580 HAVE_MENUS=yes
20581 OTHER_FILES=ns-app
20585 ### Use session management (-lSM -lICE) if available
20586 HAVE_X_SM=no
20587 LIBXSM=
20588 if test "${HAVE_X11}" = "yes"; then
20589 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20590 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20592 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20593 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20594 $as_echo_n "(cached) " >&6
20595 else
20596 ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-lSM -lICE $LIBS"
20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20601 /* Override any GCC internal prototype to avoid an error.
20602 Use char because int might match the return type of a GCC
20603 builtin and then its argument prototype would still apply. */
20604 #ifdef __cplusplus
20605 extern "C"
20606 #endif
20607 char SmcOpenConnection ();
20609 main ()
20611 return SmcOpenConnection ();
20613 return 0;
20615 _ACEOF
20616 if ac_fn_c_try_link "$LINENO"; then :
20617 ac_cv_lib_SM_SmcOpenConnection=yes
20618 else
20619 ac_cv_lib_SM_SmcOpenConnection=no
20621 rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20623 LIBS=$ac_check_lib_save_LIBS
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20626 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20627 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
20628 HAVE_X_SM=yes
20635 if test "${HAVE_X_SM}" = "yes"; then
20637 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20639 LIBXSM="-lSM -lICE"
20640 case "$LIBS" in
20641 *-lSM*) ;;
20642 *) LIBS="$LIBXSM $LIBS" ;;
20643 esac
20648 ### Use libxml (-lxml2) if available
20649 HAVE_LIBXML2=no
20650 if test "${with_xml2}" != "no"; then
20651 ### I'm not sure what the version number should be, so I just guessed.
20653 succeeded=no
20655 if test "$PKG_CONFIG" = "no" ; then
20656 HAVE_LIBXML2=no
20657 else
20658 PKG_CONFIG_MIN_VERSION=0.9.0
20659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20661 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20663 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20664 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20665 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20666 edit_cflags="
20667 s,///*,/,g
20668 s/^/ /
20669 s/ -I/ $isystem/g
20670 s/^ //
20672 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20673 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20675 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20676 succeeded=yes
20677 else
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20679 $as_echo "no" >&6; }
20680 LIBXML2_CFLAGS=""
20681 LIBXML2_LIBS=""
20682 ## If we have a custom action on failure, don't print errors, but
20683 ## do set a variable so people can do so.
20684 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20690 else
20691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20696 if test $succeeded = yes; then
20697 HAVE_LIBXML2=yes
20698 else
20699 HAVE_LIBXML2=no
20702 if test "${HAVE_LIBXML2}" = "yes"; then
20703 LIBS="$LIBXML2_LIBS $LIBS"
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20705 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20706 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20709 ac_check_lib_save_LIBS=$LIBS
20710 LIBS="-lxml2 $LIBS"
20711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20717 #ifdef __cplusplus
20718 extern "C"
20719 #endif
20720 char htmlReadMemory ();
20722 main ()
20724 return htmlReadMemory ();
20726 return 0;
20728 _ACEOF
20729 if ac_fn_c_try_link "$LINENO"; then :
20730 ac_cv_lib_xml2_htmlReadMemory=yes
20731 else
20732 ac_cv_lib_xml2_htmlReadMemory=no
20734 rm -f core conftest.err conftest.$ac_objext \
20735 conftest$ac_exeext conftest.$ac_ext
20736 LIBS=$ac_check_lib_save_LIBS
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20739 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20740 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
20741 HAVE_LIBXML2=yes
20742 else
20743 HAVE_LIBXML2=no
20746 if test "${HAVE_LIBXML2}" = "yes"; then
20748 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20750 else
20751 LIBXML2_LIBS=""
20752 LIBXML2_CFLAGS=""
20759 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20761 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20762 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20763 $as_echo_n "(cached) " >&6
20764 else
20765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20766 /* end confdefs.h. */
20767 #include <netdb.h>
20769 main ()
20771 return h_errno;
20773 return 0;
20775 _ACEOF
20776 if ac_fn_c_try_link "$LINENO"; then :
20777 emacs_cv_netdb_declares_h_errno=yes
20778 else
20779 emacs_cv_netdb_declares_h_errno=no
20781 rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext conftest.$ac_ext
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20785 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20786 if test $emacs_cv_netdb_declares_h_errno = yes; then
20788 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20792 # fmod, logb, and frexp are found in -lm on most systems.
20793 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20795 $as_echo_n "checking for sqrt in -lm... " >&6; }
20796 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lm $LIBS"
20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h. */
20804 /* Override any GCC internal prototype to avoid an error.
20805 Use char because int might match the return type of a GCC
20806 builtin and then its argument prototype would still apply. */
20807 #ifdef __cplusplus
20808 extern "C"
20809 #endif
20810 char sqrt ();
20812 main ()
20814 return sqrt ();
20816 return 0;
20818 _ACEOF
20819 if ac_fn_c_try_link "$LINENO"; then :
20820 ac_cv_lib_m_sqrt=yes
20821 else
20822 ac_cv_lib_m_sqrt=no
20824 rm -f core conftest.err conftest.$ac_objext \
20825 conftest$ac_exeext conftest.$ac_ext
20826 LIBS=$ac_check_lib_save_LIBS
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20829 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20830 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
20831 cat >>confdefs.h <<_ACEOF
20832 #define HAVE_LIBM 1
20833 _ACEOF
20835 LIBS="-lm $LIBS"
20840 # Check for mail-locking functions in a "mail" library. Probably this should
20841 # have the same check as for liblockfile below.
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20843 $as_echo_n "checking for maillock in -lmail... " >&6; }
20844 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20845 $as_echo_n "(cached) " >&6
20846 else
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lmail $LIBS"
20849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20852 /* Override any GCC internal prototype to avoid an error.
20853 Use char because int might match the return type of a GCC
20854 builtin and then its argument prototype would still apply. */
20855 #ifdef __cplusplus
20856 extern "C"
20857 #endif
20858 char maillock ();
20860 main ()
20862 return maillock ();
20864 return 0;
20866 _ACEOF
20867 if ac_fn_c_try_link "$LINENO"; then :
20868 ac_cv_lib_mail_maillock=yes
20869 else
20870 ac_cv_lib_mail_maillock=no
20872 rm -f core conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
20874 LIBS=$ac_check_lib_save_LIBS
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20877 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20878 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
20879 have_mail=yes
20880 else
20881 have_mail=no
20884 if test $have_mail = yes; then
20885 LIBS_MAIL=-lmail
20886 LIBS="$LIBS_MAIL $LIBS"
20888 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20890 else
20891 LIBS_MAIL=
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20894 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20895 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20896 $as_echo_n "(cached) " >&6
20897 else
20898 ac_check_lib_save_LIBS=$LIBS
20899 LIBS="-llockfile $LIBS"
20900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20903 /* Override any GCC internal prototype to avoid an error.
20904 Use char because int might match the return type of a GCC
20905 builtin and then its argument prototype would still apply. */
20906 #ifdef __cplusplus
20907 extern "C"
20908 #endif
20909 char maillock ();
20911 main ()
20913 return maillock ();
20915 return 0;
20917 _ACEOF
20918 if ac_fn_c_try_link "$LINENO"; then :
20919 ac_cv_lib_lockfile_maillock=yes
20920 else
20921 ac_cv_lib_lockfile_maillock=no
20923 rm -f core conftest.err conftest.$ac_objext \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20928 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20929 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
20930 have_lockfile=yes
20931 else
20932 have_lockfile=no
20935 if test $have_lockfile = yes; then
20936 LIBS_MAIL=-llockfile
20937 LIBS="$LIBS_MAIL $LIBS"
20939 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20941 else
20942 # If we have the shared liblockfile, assume we must use it for mail
20943 # locking (e.g. Debian). If we couldn't link against liblockfile
20944 # (no liblockfile.a installed), ensure that we don't need to.
20945 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20946 set dummy liblockfile.so; ac_word=$2
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948 $as_echo_n "checking for $ac_word... " >&6; }
20949 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20951 else
20952 if test -n "$liblockfile"; then
20953 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
20954 else
20955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20956 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20957 for as_dir in $as_dummy
20959 IFS=$as_save_IFS
20960 test -z "$as_dir" && as_dir=.
20961 for ac_exec_ext in '' $ac_executable_extensions; do
20962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20963 ac_cv_prog_liblockfile="yes"
20964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20965 break 2
20967 done
20968 done
20969 IFS=$as_save_IFS
20971 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
20974 liblockfile=$ac_cv_prog_liblockfile
20975 if test -n "$liblockfile"; then
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20977 $as_echo "$liblockfile" >&6; }
20978 else
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20984 if test $ac_cv_prog_liblockfile = yes; then
20985 as_fn_error "Shared liblockfile found but can't link against it.
20986 This probably means that movemail could lose mail.
20987 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20995 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20996 ## interlock access to the mail spool. The alternative is a lock file named
20997 ## /usr/spool/mail/$USER.lock.
20998 mail_lock=no
20999 case "$opsys" in
21000 aix4-2) mail_lock="lockf" ;;
21002 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
21004 ## On GNU/Linux systems, both methods are used by various mail programs.
21005 ## I assume most people are using newer mailers that have heard of flock.
21006 ## Change this if you need to.
21007 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
21008 ## configure gets the right answers, and that means *NOT* using flock.
21009 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
21010 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
21011 ## Debian maintainer hasn't provided a clean fix for Emacs.
21012 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
21013 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
21014 ## correct logic. -- fx
21015 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
21016 ## liblockfile is a Free Software replacement for libmail, used on
21017 ## Debian systems and elsewhere. -rfr.
21018 gnu-*)
21019 mail_lock="flock"
21020 if test $have_mail = yes || test $have_lockfile = yes; then
21021 test $ac_cv_header_maillock_h = yes && mail_lock=no
21024 esac
21026 BLESSMAIL_TARGET=
21027 case "$mail_lock" in
21028 flock)
21029 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
21032 lockf)
21033 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
21036 *) BLESSMAIL_TARGET="need-blessmail" ;;
21037 esac
21041 for ac_func in gethostname \
21042 rename closedir mkdir rmdir getrusage get_current_dir_name \
21043 lrand48 logb frexp fmod cbrt setsid \
21044 strerror fpathconf select euidaccess getpagesize setlocale \
21045 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
21046 __fpending strsignal setitimer \
21047 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
21048 gai_strerror mkstemp getline getdelim fsync sync \
21049 difftime posix_memalign \
21050 getpwent endpwent getgrent endgrent \
21051 touchlock \
21052 cfmakeraw cfsetspeed copysign __executable_start
21053 do :
21054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21056 eval as_val=\$$as_ac_var
21057 if test "x$as_val" = x""yes; then :
21058 cat >>confdefs.h <<_ACEOF
21059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21060 _ACEOF
21063 done
21066 if test $opsys != unixware; then
21067 for ac_func in getwd
21068 do :
21069 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
21070 if test "x$ac_cv_func_getwd" = x""yes; then :
21071 cat >>confdefs.h <<_ACEOF
21072 #define HAVE_GETWD 1
21073 _ACEOF
21076 done
21080 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
21081 ## has a broken `rint' in some library versions including math library
21082 ## version number A.09.05.
21083 ## You can fix the math library by installing patch number PHSS_4630.
21084 ## But we can fix it more reliably for Emacs by just not using rint.
21085 ## We also skip HAVE_RANDOM - see comments in src/s/hpux10-20.h.
21086 case $opsys in
21087 hpux*) : ;;
21088 *) for ac_func in random rint
21089 do :
21090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21092 eval as_val=\$$as_ac_var
21093 if test "x$as_val" = x""yes; then :
21094 cat >>confdefs.h <<_ACEOF
21095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21096 _ACEOF
21099 done
21101 esac
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
21104 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
21105 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21107 else
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21112 main ()
21114 __builtin_unwind_init ();
21116 return 0;
21118 _ACEOF
21119 if ac_fn_c_try_link "$LINENO"; then :
21120 emacs_cv_func___builtin_unwind_init=yes
21121 else
21122 emacs_cv_func___builtin_unwind_init=no
21124 rm -f core conftest.err conftest.$ac_objext \
21125 conftest$ac_exeext conftest.$ac_ext
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21128 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21129 if test $emacs_cv_func___builtin_unwind_init = yes; then
21131 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21140 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21141 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21142 $as_echo_n "(cached) " >&6
21143 else
21144 while :; do
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147 #include <sys/types.h> /* for off_t */
21148 #include <stdio.h>
21150 main ()
21152 int (*fp) (FILE *, off_t, int) = fseeko;
21153 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21155 return 0;
21157 _ACEOF
21158 if ac_fn_c_try_link "$LINENO"; then :
21159 ac_cv_sys_largefile_source=no; break
21161 rm -f core conftest.err conftest.$ac_objext \
21162 conftest$ac_exeext conftest.$ac_ext
21163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165 #define _LARGEFILE_SOURCE 1
21166 #include <sys/types.h> /* for off_t */
21167 #include <stdio.h>
21169 main ()
21171 int (*fp) (FILE *, off_t, int) = fseeko;
21172 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21174 return 0;
21176 _ACEOF
21177 if ac_fn_c_try_link "$LINENO"; then :
21178 ac_cv_sys_largefile_source=1; break
21180 rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
21182 ac_cv_sys_largefile_source=unknown
21183 break
21184 done
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21187 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21188 case $ac_cv_sys_largefile_source in #(
21189 no | unknown) ;;
21191 cat >>confdefs.h <<_ACEOF
21192 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21193 _ACEOF
21195 esac
21196 rm -rf conftest*
21198 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21199 # in glibc 2.1.3, but that breaks too many other things.
21200 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21201 if test $ac_cv_sys_largefile_source != unknown; then
21203 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21209 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21210 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21211 $as_echo_n "(cached) " >&6
21212 else
21213 # Use it with a single arg.
21214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21215 /* end confdefs.h. */
21216 $ac_includes_default
21218 main ()
21220 getpgrp (0);
21222 return 0;
21224 _ACEOF
21225 if ac_fn_c_try_compile "$LINENO"; then :
21226 ac_cv_func_getpgrp_void=no
21227 else
21228 ac_cv_func_getpgrp_void=yes
21230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21234 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21235 if test $ac_cv_func_getpgrp_void = yes; then
21237 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21242 # UNIX98 PTYs.
21243 for ac_func in grantpt
21244 do :
21245 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21246 if test "x$ac_cv_func_grantpt" = x""yes; then :
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_GRANTPT 1
21249 _ACEOF
21252 done
21255 # PTY-related GNU extensions.
21256 for ac_func in getpt
21257 do :
21258 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21259 if test "x$ac_cv_func_getpt" = x""yes; then :
21260 cat >>confdefs.h <<_ACEOF
21261 #define HAVE_GETPT 1
21262 _ACEOF
21265 done
21268 # Check this now, so that we will NOT find the above functions in ncurses.
21269 # That is because we have not set up to link ncurses in lib-src.
21270 # It's better to believe a function is not available
21271 # than to expect to find it in ncurses.
21272 # Also we need tputs and friends to be able to build at all.
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21274 $as_echo_n "checking for library containing tputs... " >&6; }
21275 # Run a test program that contains a call to tputs, a call that is
21276 # never executed. This tests whether a pre-'main' dynamic linker
21277 # works with the library. It's too much trouble to actually call
21278 # tputs in the test program, due to portability hassles. When
21279 # cross-compiling, assume the test program will run if it links.
21281 # Maybe curses should be tried earlier?
21282 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21283 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
21284 OLIBS=$LIBS
21285 if test -z "$tputs_library"; then
21286 LIBS_TERMCAP=
21287 msg='none required'
21288 else
21289 LIBS_TERMCAP=-l$tputs_library
21290 msg=$LIBS_TERMCAP
21291 LIBS="$LIBS_TERMCAP $LIBS"
21293 if test "$cross_compiling" = yes; then :
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21297 extern void tputs (const char *, int, int (*)(int));
21298 int main (int argc, char **argv)
21300 if (argc == 10000)
21301 tputs (argv[0], 0, 0);
21302 return 0;
21305 _ACEOF
21306 if ac_fn_c_try_link "$LINENO"; then :
21308 else
21309 msg=no
21311 rm -f core conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21313 else
21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21317 extern void tputs (const char *, int, int (*)(int));
21318 int main (int argc, char **argv)
21320 if (argc == 10000)
21321 tputs (argv[0], 0, 0);
21322 return 0;
21325 _ACEOF
21326 if ac_fn_c_try_run "$LINENO"; then :
21328 else
21329 msg=no
21331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21332 conftest.$ac_objext conftest.beam conftest.$ac_ext
21335 LIBS=$OLIBS
21336 if test "X$msg" != Xno; then
21337 break
21339 done
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21341 $as_echo "$msg" >&6; }
21342 if test "X$msg" = Xno; then
21343 as_fn_error "The required function \`tputs' was not found in any library.
21344 The following libraries were tried (in order):
21345 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21346 Please try installing whichever of these libraries is most appropriate
21347 for your system, together with its header files.
21348 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21351 ## Use termcap instead of terminfo?
21352 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21353 TERMINFO=yes
21354 ## FIXME? In the cases below where we unconditionally set
21355 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21356 ## if that was found above to have tputs.
21357 ## Should we use the gnu* logic everywhere?
21358 case "$opsys" in
21359 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21360 ## The ncurses library has been moved out of the System framework in
21361 ## Mac OS X 10.2. So if configure detects it, set the command-line
21362 ## option to use it.
21363 darwin) LIBS_TERMCAP="-lncurses" ;;
21365 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
21367 freebsd)
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21369 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21370 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21371 $as_echo_n "(cached) " >&6
21372 else
21373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374 /* end confdefs.h. */
21375 #include <osreldate.h>
21377 main ()
21379 #if __FreeBSD_version < 400000
21380 fail;
21381 #endif
21384 return 0;
21386 _ACEOF
21387 if ac_fn_c_try_link "$LINENO"; then :
21388 emacs_cv_freebsd_terminfo=yes
21389 else
21390 emacs_cv_freebsd_terminfo=no
21392 rm -f core conftest.err conftest.$ac_objext \
21393 conftest$ac_exeext conftest.$ac_ext
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21398 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21400 if test $emacs_cv_freebsd_terminfo = yes; then
21401 LIBS_TERMCAP="-lncurses"
21402 else
21403 TERMINFO=no
21404 LIBS_TERMCAP="-ltermcap"
21408 netbsd)
21409 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21410 TERMINFO=no
21411 LIBS_TERMCAP="-ltermcap"
21415 openbsd) LIBS_TERMCAP="-lncurses" ;;
21417 ## hpux: Make sure we get select from libc rather than from libcurses
21418 ## because libcurses on HPUX 10.10 has a broken version of select.
21419 ## We used to use -lc -lcurses, but this may be cleaner.
21420 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21421 # set that way, now it uses the default). Isn't this a contradiction?
21422 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21424 esac
21426 TERMCAP_OBJ=tparam.o
21427 if test $TERMINFO = yes; then
21429 $as_echo "#define TERMINFO 1" >>confdefs.h
21431 TERMCAP_OBJ=terminfo.o
21437 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21438 # On Darwin, res_init appears not to be useful: see bug#562 and
21439 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
21440 resolv=no
21442 if test $opsys != darwin; then
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <netinet/in.h>
21447 #include <arpa/nameser.h>
21448 #include <resolv.h>
21450 main ()
21452 return res_init();
21454 return 0;
21456 _ACEOF
21457 if ac_fn_c_try_link "$LINENO"; then :
21458 have_res_init=yes
21459 else
21460 have_res_init=no
21462 rm -f core conftest.err conftest.$ac_objext \
21463 conftest$ac_exeext conftest.$ac_ext
21464 if test "$have_res_init" = no; then
21465 OLIBS="$LIBS"
21466 LIBS="$LIBS -lresolv"
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21468 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21471 #include <netinet/in.h>
21472 #include <arpa/nameser.h>
21473 #include <resolv.h>
21475 main ()
21477 return res_init();
21479 return 0;
21481 _ACEOF
21482 if ac_fn_c_try_link "$LINENO"; then :
21483 have_res_init=yes
21484 else
21485 have_res_init=no
21487 rm -f core conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21490 $as_echo "$have_res_init" >&6; }
21491 if test "$have_res_init" = yes ; then
21492 resolv=yes
21494 LIBS="$OLIBS"
21497 if test "$have_res_init" = yes; then
21499 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21503 # Do we need the Hesiod library to provide the support routines?
21504 LIBHESIOD=
21505 if test "$with_hesiod" != no ; then
21506 # Don't set $LIBS here -- see comments above. FIXME which comments?
21507 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21508 if test "x$ac_cv_func_res_send" = x""yes; then :
21510 else
21511 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21512 if test "x$ac_cv_func___res_send" = x""yes; then :
21514 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21516 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21517 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21518 $as_echo_n "(cached) " >&6
21519 else
21520 ac_check_lib_save_LIBS=$LIBS
21521 LIBS="-lresolv $LIBS"
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21525 /* Override any GCC internal prototype to avoid an error.
21526 Use char because int might match the return type of a GCC
21527 builtin and then its argument prototype would still apply. */
21528 #ifdef __cplusplus
21529 extern "C"
21530 #endif
21531 char res_send ();
21533 main ()
21535 return res_send ();
21537 return 0;
21539 _ACEOF
21540 if ac_fn_c_try_link "$LINENO"; then :
21541 ac_cv_lib_resolv_res_send=yes
21542 else
21543 ac_cv_lib_resolv_res_send=no
21545 rm -f core conftest.err conftest.$ac_objext \
21546 conftest$ac_exeext conftest.$ac_ext
21547 LIBS=$ac_check_lib_save_LIBS
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21550 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21551 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21552 resolv=yes
21553 else
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21555 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21556 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21558 else
21559 ac_check_lib_save_LIBS=$LIBS
21560 LIBS="-lresolv $LIBS"
21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char __res_send ();
21572 main ()
21574 return __res_send ();
21576 return 0;
21578 _ACEOF
21579 if ac_fn_c_try_link "$LINENO"; then :
21580 ac_cv_lib_resolv___res_send=yes
21581 else
21582 ac_cv_lib_resolv___res_send=no
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21589 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21590 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21591 resolv=yes
21600 if test "$resolv" = yes ; then
21601 RESOLVLIB=-lresolv
21602 else
21603 RESOLVLIB=
21605 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21606 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21608 else
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21610 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21611 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21612 $as_echo_n "(cached) " >&6
21613 else
21614 ac_check_lib_save_LIBS=$LIBS
21615 LIBS="-lhesiod $RESOLVLIB $LIBS"
21616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21617 /* end confdefs.h. */
21619 /* Override any GCC internal prototype to avoid an error.
21620 Use char because int might match the return type of a GCC
21621 builtin and then its argument prototype would still apply. */
21622 #ifdef __cplusplus
21623 extern "C"
21624 #endif
21625 char hes_getmailhost ();
21627 main ()
21629 return hes_getmailhost ();
21631 return 0;
21633 _ACEOF
21634 if ac_fn_c_try_link "$LINENO"; then :
21635 ac_cv_lib_hesiod_hes_getmailhost=yes
21636 else
21637 ac_cv_lib_hesiod_hes_getmailhost=no
21639 rm -f core conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21641 LIBS=$ac_check_lib_save_LIBS
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21644 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21645 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21646 hesiod=yes
21647 else
21654 if test x"$hesiod" = xyes; then
21656 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21658 LIBHESIOD=-lhesiod
21663 # Do we need libresolv (due to res_init or Hesiod)?
21664 if test "$resolv" = yes && test $opsys != darwin; then
21666 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21668 LIBRESOLV=-lresolv
21669 else
21670 LIBRESOLV=
21674 # These tell us which Kerberos-related libraries to use.
21675 COM_ERRLIB=
21676 CRYPTOLIB=
21677 KRB5LIB=
21678 DESLIB=
21679 KRB4LIB=
21681 if test "${with_kerberos}" != no; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21683 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21684 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21686 else
21687 ac_check_lib_save_LIBS=$LIBS
21688 LIBS="-lcom_err $LIBS"
21689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690 /* end confdefs.h. */
21692 /* Override any GCC internal prototype to avoid an error.
21693 Use char because int might match the return type of a GCC
21694 builtin and then its argument prototype would still apply. */
21695 #ifdef __cplusplus
21696 extern "C"
21697 #endif
21698 char com_err ();
21700 main ()
21702 return com_err ();
21704 return 0;
21706 _ACEOF
21707 if ac_fn_c_try_link "$LINENO"; then :
21708 ac_cv_lib_com_err_com_err=yes
21709 else
21710 ac_cv_lib_com_err_com_err=no
21712 rm -f core conftest.err conftest.$ac_objext \
21713 conftest$ac_exeext conftest.$ac_ext
21714 LIBS=$ac_check_lib_save_LIBS
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21717 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21718 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21719 have_com_err=yes
21720 else
21721 have_com_err=no
21724 if test $have_com_err = yes; then
21725 COM_ERRLIB=-lcom_err
21726 LIBS="$COM_ERRLIB $LIBS"
21728 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21732 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21733 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21735 else
21736 ac_check_lib_save_LIBS=$LIBS
21737 LIBS="-lcrypto $LIBS"
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21741 /* Override any GCC internal prototype to avoid an error.
21742 Use char because int might match the return type of a GCC
21743 builtin and then its argument prototype would still apply. */
21744 #ifdef __cplusplus
21745 extern "C"
21746 #endif
21747 char mit_des_cbc_encrypt ();
21749 main ()
21751 return mit_des_cbc_encrypt ();
21753 return 0;
21755 _ACEOF
21756 if ac_fn_c_try_link "$LINENO"; then :
21757 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21758 else
21759 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21761 rm -f core conftest.err conftest.$ac_objext \
21762 conftest$ac_exeext conftest.$ac_ext
21763 LIBS=$ac_check_lib_save_LIBS
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21766 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21767 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21768 have_crypto=yes
21769 else
21770 have_crypto=no
21773 if test $have_crypto = yes; then
21774 CRYPTOLIB=-lcrypto
21775 LIBS="$CRYPTOLIB $LIBS"
21777 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21781 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21782 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21784 else
21785 ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-lk5crypto $LIBS"
21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21793 #ifdef __cplusplus
21794 extern "C"
21795 #endif
21796 char mit_des_cbc_encrypt ();
21798 main ()
21800 return mit_des_cbc_encrypt ();
21802 return 0;
21804 _ACEOF
21805 if ac_fn_c_try_link "$LINENO"; then :
21806 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21807 else
21808 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21810 rm -f core conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
21812 LIBS=$ac_check_lib_save_LIBS
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21815 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21816 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21817 have_k5crypto=yes
21818 else
21819 have_k5crypto=no
21822 if test $have_k5crypto = yes; then
21823 CRYPTOLIB=-lk5crypto
21824 LIBS="$CRYPTOLIB $LIBS"
21826 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21830 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21831 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21833 else
21834 ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lkrb5 $LIBS"
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21842 #ifdef __cplusplus
21843 extern "C"
21844 #endif
21845 char krb5_init_context ();
21847 main ()
21849 return krb5_init_context ();
21851 return 0;
21853 _ACEOF
21854 if ac_fn_c_try_link "$LINENO"; then :
21855 ac_cv_lib_krb5_krb5_init_context=yes
21856 else
21857 ac_cv_lib_krb5_krb5_init_context=no
21859 rm -f core conftest.err conftest.$ac_objext \
21860 conftest$ac_exeext conftest.$ac_ext
21861 LIBS=$ac_check_lib_save_LIBS
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21864 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21865 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21866 have_krb5=yes
21867 else
21868 have_krb5=no
21871 if test $have_krb5=yes; then
21872 KRB5LIB=-lkrb5
21873 LIBS="$KRB5LIB $LIBS"
21875 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21878 if test "${with_kerberos5}" = no; then
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21880 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21881 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21882 $as_echo_n "(cached) " >&6
21883 else
21884 ac_check_lib_save_LIBS=$LIBS
21885 LIBS="-ldes425 $LIBS"
21886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h. */
21889 /* Override any GCC internal prototype to avoid an error.
21890 Use char because int might match the return type of a GCC
21891 builtin and then its argument prototype would still apply. */
21892 #ifdef __cplusplus
21893 extern "C"
21894 #endif
21895 char des_cbc_encrypt ();
21897 main ()
21899 return des_cbc_encrypt ();
21901 return 0;
21903 _ACEOF
21904 if ac_fn_c_try_link "$LINENO"; then :
21905 ac_cv_lib_des425_des_cbc_encrypt=yes
21906 else
21907 ac_cv_lib_des425_des_cbc_encrypt=no
21909 rm -f core conftest.err conftest.$ac_objext \
21910 conftest$ac_exeext conftest.$ac_ext
21911 LIBS=$ac_check_lib_save_LIBS
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21914 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21915 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21916 have_des425=yes
21917 else
21918 have_des425=no
21921 if test $have_des425 = yes; then
21922 DESLIB=-ldes425
21923 LIBS="$DESLIB $LIBS"
21925 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21927 else
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21929 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21930 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-ldes $LIBS"
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21938 /* Override any GCC internal prototype to avoid an error.
21939 Use char because int might match the return type of a GCC
21940 builtin and then its argument prototype would still apply. */
21941 #ifdef __cplusplus
21942 extern "C"
21943 #endif
21944 char des_cbc_encrypt ();
21946 main ()
21948 return des_cbc_encrypt ();
21950 return 0;
21952 _ACEOF
21953 if ac_fn_c_try_link "$LINENO"; then :
21954 ac_cv_lib_des_des_cbc_encrypt=yes
21955 else
21956 ac_cv_lib_des_des_cbc_encrypt=no
21958 rm -f core conftest.err conftest.$ac_objext \
21959 conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21963 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21964 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21965 have_des=yes
21966 else
21967 have_des=no
21970 if test $have_des = yes; then
21971 DESLIB=-ldes
21972 LIBS="$DESLIB $LIBS"
21974 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21979 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21980 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lkrb4 $LIBS"
21985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21986 /* end confdefs.h. */
21988 /* Override any GCC internal prototype to avoid an error.
21989 Use char because int might match the return type of a GCC
21990 builtin and then its argument prototype would still apply. */
21991 #ifdef __cplusplus
21992 extern "C"
21993 #endif
21994 char krb_get_cred ();
21996 main ()
21998 return krb_get_cred ();
22000 return 0;
22002 _ACEOF
22003 if ac_fn_c_try_link "$LINENO"; then :
22004 ac_cv_lib_krb4_krb_get_cred=yes
22005 else
22006 ac_cv_lib_krb4_krb_get_cred=no
22008 rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
22010 LIBS=$ac_check_lib_save_LIBS
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22013 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22014 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22015 have_krb4=yes
22016 else
22017 have_krb4=no
22020 if test $have_krb4 = yes; then
22021 KRB4LIB=-lkrb4
22022 LIBS="$KRB4LIB $LIBS"
22024 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22026 else
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22028 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22029 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22030 $as_echo_n "(cached) " >&6
22031 else
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lkrb $LIBS"
22034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22035 /* end confdefs.h. */
22037 /* Override any GCC internal prototype to avoid an error.
22038 Use char because int might match the return type of a GCC
22039 builtin and then its argument prototype would still apply. */
22040 #ifdef __cplusplus
22041 extern "C"
22042 #endif
22043 char krb_get_cred ();
22045 main ()
22047 return krb_get_cred ();
22049 return 0;
22051 _ACEOF
22052 if ac_fn_c_try_link "$LINENO"; then :
22053 ac_cv_lib_krb_krb_get_cred=yes
22054 else
22055 ac_cv_lib_krb_krb_get_cred=no
22057 rm -f core conftest.err conftest.$ac_objext \
22058 conftest$ac_exeext conftest.$ac_ext
22059 LIBS=$ac_check_lib_save_LIBS
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22062 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22063 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22064 have_krb=yes
22065 else
22066 have_krb=no
22069 if test $have_krb = yes; then
22070 KRB4LIB=-lkrb
22071 LIBS="$KRB4LIB $LIBS"
22073 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22079 if test "${with_kerberos5}" != no; then
22080 for ac_header in krb5.h
22081 do :
22082 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22083 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22084 cat >>confdefs.h <<_ACEOF
22085 #define HAVE_KRB5_H 1
22086 _ACEOF
22087 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22089 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22091 cat >>confdefs.h <<_ACEOF
22092 #define HAVE_KRB5_ERROR_TEXT 1
22093 _ACEOF
22097 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22099 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22101 cat >>confdefs.h <<_ACEOF
22102 #define HAVE_KRB5_ERROR_E_TEXT 1
22103 _ACEOF
22110 done
22112 else
22113 for ac_header in des.h
22114 do :
22115 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22116 if test "x$ac_cv_header_des_h" = x""yes; then :
22117 cat >>confdefs.h <<_ACEOF
22118 #define HAVE_DES_H 1
22119 _ACEOF
22121 else
22122 for ac_header in kerberosIV/des.h
22123 do :
22124 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22125 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22126 cat >>confdefs.h <<_ACEOF
22127 #define HAVE_KERBEROSIV_DES_H 1
22128 _ACEOF
22130 else
22131 for ac_header in kerberos/des.h
22132 do :
22133 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22134 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22135 cat >>confdefs.h <<_ACEOF
22136 #define HAVE_KERBEROS_DES_H 1
22137 _ACEOF
22141 done
22145 done
22149 done
22151 for ac_header in krb.h
22152 do :
22153 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22154 if test "x$ac_cv_header_krb_h" = x""yes; then :
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_KRB_H 1
22157 _ACEOF
22159 else
22160 for ac_header in kerberosIV/krb.h
22161 do :
22162 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22163 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22164 cat >>confdefs.h <<_ACEOF
22165 #define HAVE_KERBEROSIV_KRB_H 1
22166 _ACEOF
22168 else
22169 for ac_header in kerberos/krb.h
22170 do :
22171 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22172 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22173 cat >>confdefs.h <<_ACEOF
22174 #define HAVE_KERBEROS_KRB_H 1
22175 _ACEOF
22179 done
22183 done
22187 done
22190 for ac_header in com_err.h
22191 do :
22192 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22193 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22194 cat >>confdefs.h <<_ACEOF
22195 #define HAVE_COM_ERR_H 1
22196 _ACEOF
22200 done
22210 for ac_func in tzset
22211 do :
22212 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
22213 if test "x$ac_cv_func_tzset" = x""yes; then :
22214 cat >>confdefs.h <<_ACEOF
22215 #define HAVE_TZSET 1
22216 _ACEOF
22219 done
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22222 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22223 if test "${emacs_cv_localtime_cache+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 if test x$ac_cv_func_tzset = xyes; then
22227 if test "$cross_compiling" = yes; then :
22228 # If we have tzset, assume the worst when cross-compiling.
22229 emacs_cv_localtime_cache=yes
22230 else
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22233 #include <time.h>
22234 char TZ_GMT0[] = "TZ=GMT0";
22235 char TZ_PST8[] = "TZ=PST8";
22236 main()
22238 time_t now = time ((time_t *) 0);
22239 int hour_GMT0, hour_unset;
22240 if (putenv (TZ_GMT0) != 0)
22241 exit (1);
22242 hour_GMT0 = localtime (&now)->tm_hour;
22243 unsetenv("TZ");
22244 hour_unset = localtime (&now)->tm_hour;
22245 if (putenv (TZ_PST8) != 0)
22246 exit (1);
22247 if (localtime (&now)->tm_hour == hour_GMT0)
22248 exit (1);
22249 unsetenv("TZ");
22250 if (localtime (&now)->tm_hour != hour_unset)
22251 exit (1);
22252 exit (0);
22254 _ACEOF
22255 if ac_fn_c_try_run "$LINENO"; then :
22256 emacs_cv_localtime_cache=no
22257 else
22258 emacs_cv_localtime_cache=yes
22260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22261 conftest.$ac_objext conftest.beam conftest.$ac_ext
22264 else
22265 # If we lack tzset, report that localtime does not cache TZ,
22266 # since we can't invalidate the cache if we don't have tzset.
22267 emacs_cv_localtime_cache=no
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22271 $as_echo "$emacs_cv_localtime_cache" >&6; }
22272 if test $emacs_cv_localtime_cache = yes; then
22274 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22278 ok_so_far=yes
22279 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22280 if test "x$ac_cv_func_socket" = x""yes; then :
22282 else
22283 ok_so_far=no
22286 if test $ok_so_far = yes; then
22287 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22288 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
22290 else
22291 ok_so_far=no
22296 if test $ok_so_far = yes; then
22297 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22298 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
22300 else
22301 ok_so_far=no
22306 if test $ok_so_far = yes; then
22308 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22312 if test -f /usr/lpp/X11/bin/smt.exp; then
22314 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22319 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22320 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22322 $as_echo "yes" >&6; }
22324 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22326 else
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22328 $as_echo "no" >&6; }
22331 for ac_header in vfork.h
22332 do :
22333 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22334 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22335 cat >>confdefs.h <<_ACEOF
22336 #define HAVE_VFORK_H 1
22337 _ACEOF
22341 done
22343 for ac_func in fork vfork
22344 do :
22345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22347 eval as_val=\$$as_ac_var
22348 if test "x$as_val" = x""yes; then :
22349 cat >>confdefs.h <<_ACEOF
22350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22351 _ACEOF
22354 done
22356 if test "x$ac_cv_func_fork" = xyes; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22358 $as_echo_n "checking for working fork... " >&6; }
22359 if test "${ac_cv_func_fork_works+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22361 else
22362 if test "$cross_compiling" = yes; then :
22363 ac_cv_func_fork_works=cross
22364 else
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22367 $ac_includes_default
22369 main ()
22372 /* By Ruediger Kuhlmann. */
22373 return fork () < 0;
22376 return 0;
22378 _ACEOF
22379 if ac_fn_c_try_run "$LINENO"; then :
22380 ac_cv_func_fork_works=yes
22381 else
22382 ac_cv_func_fork_works=no
22384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22385 conftest.$ac_objext conftest.beam conftest.$ac_ext
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22390 $as_echo "$ac_cv_func_fork_works" >&6; }
22392 else
22393 ac_cv_func_fork_works=$ac_cv_func_fork
22395 if test "x$ac_cv_func_fork_works" = xcross; then
22396 case $host in
22397 *-*-amigaos* | *-*-msdosdjgpp*)
22398 # Override, as these systems have only a dummy fork() stub
22399 ac_cv_func_fork_works=no
22402 ac_cv_func_fork_works=yes
22404 esac
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22406 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22408 ac_cv_func_vfork_works=$ac_cv_func_vfork
22409 if test "x$ac_cv_func_vfork" = xyes; then
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22411 $as_echo_n "checking for working vfork... " >&6; }
22412 if test "${ac_cv_func_vfork_works+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 if test "$cross_compiling" = yes; then :
22416 ac_cv_func_vfork_works=cross
22417 else
22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h. */
22420 /* Thanks to Paul Eggert for this test. */
22421 $ac_includes_default
22422 #include <sys/wait.h>
22423 #ifdef HAVE_VFORK_H
22424 # include <vfork.h>
22425 #endif
22426 /* On some sparc systems, changes by the child to local and incoming
22427 argument registers are propagated back to the parent. The compiler
22428 is told about this with #include <vfork.h>, but some compilers
22429 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22430 static variable whose address is put into a register that is
22431 clobbered by the vfork. */
22432 static void
22433 #ifdef __cplusplus
22434 sparc_address_test (int arg)
22435 # else
22436 sparc_address_test (arg) int arg;
22437 #endif
22439 static pid_t child;
22440 if (!child) {
22441 child = vfork ();
22442 if (child < 0) {
22443 perror ("vfork");
22444 _exit(2);
22446 if (!child) {
22447 arg = getpid();
22448 write(-1, "", 0);
22449 _exit (arg);
22455 main ()
22457 pid_t parent = getpid ();
22458 pid_t child;
22460 sparc_address_test (0);
22462 child = vfork ();
22464 if (child == 0) {
22465 /* Here is another test for sparc vfork register problems. This
22466 test uses lots of local variables, at least as many local
22467 variables as main has allocated so far including compiler
22468 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22469 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22470 reuse the register of parent for one of the local variables,
22471 since it will think that parent can't possibly be used any more
22472 in this routine. Assigning to the local variable will thus
22473 munge parent in the parent process. */
22474 pid_t
22475 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22476 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22477 /* Convince the compiler that p..p7 are live; otherwise, it might
22478 use the same hardware register for all 8 local variables. */
22479 if (p != p1 || p != p2 || p != p3 || p != p4
22480 || p != p5 || p != p6 || p != p7)
22481 _exit(1);
22483 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22484 from child file descriptors. If the child closes a descriptor
22485 before it execs or exits, this munges the parent's descriptor
22486 as well. Test for this by closing stdout in the child. */
22487 _exit(close(fileno(stdout)) != 0);
22488 } else {
22489 int status;
22490 struct stat st;
22492 while (wait(&status) != child)
22494 return (
22495 /* Was there some problem with vforking? */
22496 child < 0
22498 /* Did the child fail? (This shouldn't happen.) */
22499 || status
22501 /* Did the vfork/compiler bug occur? */
22502 || parent != getpid()
22504 /* Did the file descriptor bug occur? */
22505 || fstat(fileno(stdout), &st) != 0
22509 _ACEOF
22510 if ac_fn_c_try_run "$LINENO"; then :
22511 ac_cv_func_vfork_works=yes
22512 else
22513 ac_cv_func_vfork_works=no
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22516 conftest.$ac_objext conftest.beam conftest.$ac_ext
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22521 $as_echo "$ac_cv_func_vfork_works" >&6; }
22524 if test "x$ac_cv_func_fork_works" = xcross; then
22525 ac_cv_func_vfork_works=$ac_cv_func_vfork
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22527 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22530 if test "x$ac_cv_func_vfork_works" = xyes; then
22532 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22534 else
22536 $as_echo "#define vfork fork" >>confdefs.h
22539 if test "x$ac_cv_func_fork_works" = xyes; then
22541 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22546 for ac_func in snprintf
22547 do :
22548 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22549 if test "x$ac_cv_func_snprintf" = x""yes; then :
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_SNPRINTF 1
22552 _ACEOF
22555 done
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22559 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22560 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h. */
22565 #include <langinfo.h>
22567 main ()
22569 char* cs = nl_langinfo(CODESET);
22571 return 0;
22573 _ACEOF
22574 if ac_fn_c_try_link "$LINENO"; then :
22575 emacs_cv_langinfo_codeset=yes
22576 else
22577 emacs_cv_langinfo_codeset=no
22579 rm -f core conftest.err conftest.$ac_objext \
22580 conftest$ac_exeext conftest.$ac_ext
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22584 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22585 if test $emacs_cv_langinfo_codeset = yes; then
22587 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22592 $as_echo_n "checking for mbstate_t... " >&6; }
22593 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h. */
22598 $ac_includes_default
22599 # include <wchar.h>
22601 main ()
22603 mbstate_t x; return sizeof x;
22605 return 0;
22607 _ACEOF
22608 if ac_fn_c_try_compile "$LINENO"; then :
22609 ac_cv_type_mbstate_t=yes
22610 else
22611 ac_cv_type_mbstate_t=no
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22616 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22617 if test $ac_cv_type_mbstate_t = yes; then
22619 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22621 else
22623 $as_echo "#define mbstate_t int" >>confdefs.h
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22628 $as_echo_n "checking for C restricted array declarations... " >&6; }
22629 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22631 else
22632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633 /* end confdefs.h. */
22634 void fred (int x[__restrict]);
22636 main ()
22640 return 0;
22642 _ACEOF
22643 if ac_fn_c_try_compile "$LINENO"; then :
22644 emacs_cv_c_restrict_arr=yes
22645 else
22646 emacs_cv_c_restrict_arr=no
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22651 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22652 if test "$emacs_cv_c_restrict_arr" = yes; then
22654 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22659 case $opsys in
22660 darwin | gnu | hpux* | *bsd )
22662 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22665 esac
22667 case $opsys in
22668 hpux* | irix6-5 | openbsd | sol2* | unixware )
22670 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22673 esac
22675 case $opsys in
22676 gnu-* | sol2-10 )
22678 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22681 esac
22683 case $opsys in
22684 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
22686 hpux11)
22688 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22691 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22694 opsysfile="s/hpux10-20.h"
22697 openbsd) opsysfile="s/netbsd.h" ;;
22699 sol2-10)
22701 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22703 opsysfile="s/sol2-6.h"
22705 esac
22707 # Set up the CFLAGS for real compilation, so we can substitute it.
22708 CFLAGS="$REAL_CFLAGS"
22709 CPPFLAGS="$REAL_CPPFLAGS"
22711 ## Hack to detect a buggy GCC version.
22712 if test "x$GCC" = xyes \
22713 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22714 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22715 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22716 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22719 version=$PACKAGE_VERSION
22721 ### Specify what sort of things we'll be editing into Makefile and config.h.
22722 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22725 ## Unused?
22748 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22749 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22750 ## end of LIBX_BASE, but nothing ever set it.
22755 ## Used in lwlib/Makefile.in.
22757 if test -n "${opsysfile}"; then
22758 S_FILE="\$(srcdir)/${opsysfile}"
22759 else
22760 S_FILE=
22771 cat >>confdefs.h <<_ACEOF
22772 #define EMACS_CONFIGURATION "${canonical}"
22773 _ACEOF
22776 cat >>confdefs.h <<_ACEOF
22777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22778 _ACEOF
22780 if test -n "$opsysfile"; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define config_opsysfile "${opsysfile}"
22784 _ACEOF
22788 XMENU_OBJ=
22789 XOBJ=
22790 FONT_OBJ=
22791 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22793 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22795 XMENU_OBJ=xmenu.o
22796 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22797 FONT_OBJ=xfont.o
22798 if test "$HAVE_XFT" = "yes"; then
22799 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22800 elif test "$HAVE_FREETYPE" = "yes"; then
22801 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22809 WIDGET_OBJ=
22810 MOTIF_LIBW=
22811 if test "${USE_X_TOOLKIT}" != "none" ; then
22812 WIDGET_OBJ=widget.o
22814 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22816 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22818 $as_echo "#define USE_LUCID 1" >>confdefs.h
22820 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22822 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22824 MOTIF_LIBW=-lXm
22825 case "$opsys" in
22826 gnu-linux)
22827 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22828 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22831 unixware)
22832 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22833 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22834 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22837 aix4-2)
22838 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22839 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22841 esac
22842 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22847 TOOLKIT_LIBW=
22848 case "$USE_X_TOOLKIT" in
22849 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22850 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22851 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
22852 esac
22855 if test "$USE_X_TOOLKIT" = "none"; then
22856 LIBXT_OTHER="\$(LIBXSM)"
22857 OLDXMENU_TARGET="really-oldXMenu"
22858 else
22859 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22860 OLDXMENU_TARGET="really-lwlib"
22864 ## The X Menu stuff is present in the X10 distribution, but missing
22865 ## from X11. If we have X10, just use the installed library;
22866 ## otherwise, use our own copy.
22867 if test "${HAVE_X11}" = "yes" ; then
22869 $as_echo "#define HAVE_X11 1" >>confdefs.h
22872 if test "$USE_X_TOOLKIT" = "none"; then
22873 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22874 else
22875 OLDXMENU="\${lwlibdir}/liblw.a"
22877 LIBXMENU="\$(OLDXMENU)"
22878 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22879 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22880 else
22881 ## For a syntactically valid Makefile; not actually used for anything.
22882 ## See comments in src/Makefile.in.
22883 OLDXMENU=nothing
22884 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22885 if test "${HAVE_X_WINDOWS}" = "yes"; then
22886 LIBXMENU="-lXMenu"
22887 else
22888 LIBXMENU=
22890 LIBX_OTHER=
22891 OLDXMENU_DEPS=
22894 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22895 OLDXMENU_TARGET=
22896 OLDXMENU=nothing
22897 LIBXMENU=
22898 OLDXMENU_DEPS=
22907 if test "${HAVE_MENUS}" = "yes" ; then
22909 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22913 if test "${GNU_MALLOC}" = "yes" ; then
22915 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22919 RALLOC_OBJ=
22920 if test "${REL_ALLOC}" = "yes" ; then
22922 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22925 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22929 if test "$opsys" = "cygwin"; then
22930 CYGWIN_OBJ="sheap.o"
22931 ## Cygwin differs because of its unexec().
22932 PRE_ALLOC_OBJ=
22933 POST_ALLOC_OBJ=lastfile.o
22934 else
22935 CYGWIN_OBJ=
22936 PRE_ALLOC_OBJ=lastfile.o
22937 POST_ALLOC_OBJ=
22943 case "$opsys" in
22944 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22946 darwin)
22947 ## The -headerpad option tells ld (see man page) to leave room at the
22948 ## end of the header for adding load commands. Needed for dumping.
22949 ## 0x690 is the total size of 30 segment load commands (at 56
22950 ## each); under Cocoa 31 commands are required.
22951 if test "$HAVE_NS" = "yes"; then
22952 libs_nsgui="-framework AppKit"
22953 headerpad_extra=6C8
22954 else
22955 libs_nsgui=
22956 headerpad_extra=690
22958 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22960 ## This is here because src/Makefile.in did some extra fiddling around
22961 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22962 ## #ifndef LD_SWITCH_SYSTEM
22963 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22964 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22965 ## not using gcc, darwin.
22966 ## Because this was done in src/Makefile.in, the resulting part of
22967 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22968 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22969 ## rather than LD_SWITCH_SYSTEM.
22970 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22971 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22974 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22975 ## find X at run-time.
22976 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22977 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22978 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22979 ## had different values in configure (in ac_link) and src/Makefile.in.
22980 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22981 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22983 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22984 esac
22986 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22987 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22993 LD_FIRSTFLAG=
22994 ORDINARY_LINK=
22995 case "$opsys" in
22996 ## gnu: GNU needs its own crt0.
22997 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22999 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23000 ## library search parth, i.e. it won't search /usr/lib for libc and
23001 ## friends. Using -nostartfiles instead avoids this problem, and
23002 ## will also work on earlier NetBSD releases.
23003 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23005 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23006 ## MkLinux/LinuxPPC needs this.
23007 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23008 gnu-*)
23009 case "$canonical" in
23010 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23011 esac
23013 esac
23016 if test "x$ORDINARY_LINK" = "xyes"; then
23018 LD_FIRSTFLAG=""
23020 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23023 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23024 ## freebsd, gnu-* not on powerpc*|s390x*.
23025 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23027 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23028 ## places that are difficult to figure out at make time. Fortunately,
23029 ## these same versions allow you to pass arbitrary flags on to the
23030 ## linker, so there is no reason not to use it as a linker.
23032 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23033 ## searching for libraries in its internal directories, so we have to
23034 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23035 LD_FIRSTFLAG="-nostdlib"
23038 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23039 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23044 ## FIXME? The logic here is not precisely the same as that above.
23045 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23046 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23047 LIB_GCC=
23048 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23050 case "$opsys" in
23051 freebsd|netbsd|openbsd) LIB_GCC= ;;
23053 gnu-*)
23054 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23055 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23056 case $host_cpu in
23057 arm*)
23058 LIB_GCC="-lgcc_s"
23061 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23062 ## immediately undefine it again and redefine it to empty.
23063 ## Was the C_SWITCH_X_SITE part really necessary?
23064 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23065 LIB_GCC=
23067 esac
23070 ## Ask GCC where to find libgcc.a.
23071 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23072 esac
23076 ## If we're using X11/GNUstep, define some consequences.
23077 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23079 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23082 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23089 #### Report on what we decided to do.
23090 #### Report GTK as a toolkit, even if it doesn't use Xt.
23091 #### It makes printing result more understandable as using GTK sets
23092 #### toolkit_scroll_bars to yes by default.
23093 if test "${HAVE_GTK}" = "yes"; then
23094 USE_X_TOOLKIT=GTK
23097 echo "
23098 Configured for \`${canonical}'.
23100 Where should the build process find the source code? ${srcdir}
23101 What operating system file should Emacs use? ${opsysfile-none}
23102 What compiler should emacs be built with? ${CC} ${CFLAGS}
23103 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23104 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23105 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23106 What window system should Emacs use? ${window_system}
23107 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23109 if test -n "${x_includes}"; then
23110 echo " Where do we find X Windows header files? ${x_includes}"
23111 else
23112 echo " Where do we find X Windows header files? Standard dirs"
23114 if test -n "${x_libraries}"; then
23115 echo " Where do we find X Windows libraries? ${x_libraries}"
23116 else
23117 echo " Where do we find X Windows libraries? Standard dirs"
23120 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23121 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23122 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23123 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23124 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23125 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23126 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23127 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23129 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23130 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23131 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23132 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23133 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23134 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23135 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23137 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23138 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23139 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23140 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23142 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23143 echo
23145 if test -n "${EMACSDATA}"; then
23146 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23148 if test -n "${EMACSDOC}"; then
23149 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23152 echo
23154 if test "$HAVE_NS" = "yes"; then
23155 echo
23156 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23157 The installed application will go to nextstep/Emacs.app and can be
23158 run or moved from there."
23159 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23160 echo "The application will be fully self-contained."
23161 else
23162 echo "The lisp resources for the application will be installed under ${prefix}.
23163 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23164 to run if these resources are not installed."
23166 echo
23169 if test "${opsys}" = "cygwin"; then
23170 case `uname -r` in
23171 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23172 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23173 echo
23175 esac
23178 # Remove any trailing slashes in these variables.
23179 test "${prefix}" != NONE &&
23180 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23181 test "${exec_prefix}" != NONE &&
23182 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23184 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"
23186 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"
23189 opt_makefile=test/automated/Makefile
23191 if test -f $srcdir/${opt_makefile}.in; then
23192 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23193 ac_config_files="$ac_config_files test/automated/Makefile"
23198 opt_makefile=admin/unidata/Makefile
23200 if test -f $srcdir/${opt_makefile}.in; then
23201 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23202 ac_config_files="$ac_config_files admin/unidata/Makefile"
23207 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23211 ac_config_commands="$ac_config_commands mkdirs"
23214 ac_config_commands="$ac_config_commands epaths"
23217 ac_config_commands="$ac_config_commands gdbinit"
23220 cat >confcache <<\_ACEOF
23221 # This file is a shell script that caches the results of configure
23222 # tests run on this system so they can be shared between configure
23223 # scripts and configure runs, see configure's option --config-cache.
23224 # It is not useful on other systems. If it contains results you don't
23225 # want to keep, you may remove or edit it.
23227 # config.status only pays attention to the cache file if you give it
23228 # the --recheck option to rerun configure.
23230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23232 # following values.
23234 _ACEOF
23236 # The following way of writing the cache mishandles newlines in values,
23237 # but we know of no workaround that is simple, portable, and efficient.
23238 # So, we kill variables containing newlines.
23239 # Ultrix sh set writes to stderr and can't be redirected directly,
23240 # and sets the high bit in the cache file unless we assign to the vars.
23242 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23243 eval ac_val=\$$ac_var
23244 case $ac_val in #(
23245 *${as_nl}*)
23246 case $ac_var in #(
23247 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23248 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23249 esac
23250 case $ac_var in #(
23251 _ | IFS | as_nl) ;; #(
23252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23253 *) { eval $ac_var=; unset $ac_var;} ;;
23254 esac ;;
23255 esac
23256 done
23258 (set) 2>&1 |
23259 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23260 *${as_nl}ac_space=\ *)
23261 # `set' does not quote correctly, so add quotes: double-quote
23262 # substitution turns \\\\ into \\, and sed turns \\ into \.
23263 sed -n \
23264 "s/'/'\\\\''/g;
23265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23266 ;; #(
23268 # `set' quotes correctly as required by POSIX, so do not add quotes.
23269 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23271 esac |
23272 sort
23274 sed '
23275 /^ac_cv_env_/b end
23276 t clear
23277 :clear
23278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23279 t end
23280 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23281 :end' >>confcache
23282 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23283 if test -w "$cache_file"; then
23284 test "x$cache_file" != "x/dev/null" &&
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23286 $as_echo "$as_me: updating cache $cache_file" >&6;}
23287 cat confcache >$cache_file
23288 else
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23290 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23293 rm -f confcache
23295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23296 # Let make expand exec_prefix.
23297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23299 DEFS=-DHAVE_CONFIG_H
23301 ac_libobjs=
23302 ac_ltlibobjs=
23303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23304 # 1. Remove the extension, and $U if already installed.
23305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23306 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23308 # will be set to the directory where LIBOBJS objects are built.
23309 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23310 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23311 done
23312 LIBOBJS=$ac_libobjs
23314 LTLIBOBJS=$ac_ltlibobjs
23317 if test -n "$EXEEXT"; then
23318 am__EXEEXT_TRUE=
23319 am__EXEEXT_FALSE='#'
23320 else
23321 am__EXEEXT_TRUE='#'
23322 am__EXEEXT_FALSE=
23325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23326 as_fn_error "conditional \"AMDEP\" was never defined.
23327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23330 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23333 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23334 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23337 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23338 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23342 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23343 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23346 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23347 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23350 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23351 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23354 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23355 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23358 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23359 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23362 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23363 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23366 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23367 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23370 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23371 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23374 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23375 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23378 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23379 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23382 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23383 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23386 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23387 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23391 gl_libobjs=
23392 gl_ltlibobjs=
23393 if test -n "$gl_LIBOBJS"; then
23394 # Remove the extension.
23395 sed_drop_objext='s/\.o$//;s/\.obj$//'
23396 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23397 gl_libobjs="$gl_libobjs $i.$ac_objext"
23398 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23399 done
23401 gl_LIBOBJS=$gl_libobjs
23403 gl_LTLIBOBJS=$gl_ltlibobjs
23407 gltests_libobjs=
23408 gltests_ltlibobjs=
23409 if test -n "$gltests_LIBOBJS"; then
23410 # Remove the extension.
23411 sed_drop_objext='s/\.o$//;s/\.obj$//'
23412 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23413 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23414 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23415 done
23417 gltests_LIBOBJS=$gltests_libobjs
23419 gltests_LTLIBOBJS=$gltests_ltlibobjs
23423 : ${CONFIG_STATUS=./config.status}
23424 ac_write_fail=0
23425 ac_clean_files_save=$ac_clean_files
23426 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23428 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23429 as_write_fail=0
23430 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23431 #! $SHELL
23432 # Generated by $as_me.
23433 # Run this file to recreate the current configuration.
23434 # Compiler output produced by configure, useful for debugging
23435 # configure, is in config.log if it exists.
23437 debug=false
23438 ac_cs_recheck=false
23439 ac_cs_silent=false
23441 SHELL=\${CONFIG_SHELL-$SHELL}
23442 export SHELL
23443 _ASEOF
23444 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23445 ## -------------------- ##
23446 ## M4sh Initialization. ##
23447 ## -------------------- ##
23449 # Be more Bourne compatible
23450 DUALCASE=1; export DUALCASE # for MKS sh
23451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23452 emulate sh
23453 NULLCMD=:
23454 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23455 # is contrary to our usage. Disable this feature.
23456 alias -g '${1+"$@"}'='"$@"'
23457 setopt NO_GLOB_SUBST
23458 else
23459 case `(set -o) 2>/dev/null` in #(
23460 *posix*) :
23461 set -o posix ;; #(
23462 *) :
23464 esac
23468 as_nl='
23470 export as_nl
23471 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23472 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23475 # Prefer a ksh shell builtin over an external printf program on Solaris,
23476 # but without wasting forks for bash or zsh.
23477 if test -z "$BASH_VERSION$ZSH_VERSION" \
23478 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23479 as_echo='print -r --'
23480 as_echo_n='print -rn --'
23481 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23482 as_echo='printf %s\n'
23483 as_echo_n='printf %s'
23484 else
23485 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23486 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23487 as_echo_n='/usr/ucb/echo -n'
23488 else
23489 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23490 as_echo_n_body='eval
23491 arg=$1;
23492 case $arg in #(
23493 *"$as_nl"*)
23494 expr "X$arg" : "X\\(.*\\)$as_nl";
23495 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23496 esac;
23497 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23499 export as_echo_n_body
23500 as_echo_n='sh -c $as_echo_n_body as_echo'
23502 export as_echo_body
23503 as_echo='sh -c $as_echo_body as_echo'
23506 # The user is always right.
23507 if test "${PATH_SEPARATOR+set}" != set; then
23508 PATH_SEPARATOR=:
23509 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23510 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23511 PATH_SEPARATOR=';'
23516 # IFS
23517 # We need space, tab and new line, in precisely that order. Quoting is
23518 # there to prevent editors from complaining about space-tab.
23519 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23520 # splitting by setting IFS to empty value.)
23521 IFS=" "" $as_nl"
23523 # Find who we are. Look in the path if we contain no directory separator.
23524 case $0 in #((
23525 *[\\/]* ) as_myself=$0 ;;
23526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23527 for as_dir in $PATH
23529 IFS=$as_save_IFS
23530 test -z "$as_dir" && as_dir=.
23531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23532 done
23533 IFS=$as_save_IFS
23536 esac
23537 # We did not find ourselves, most probably we were run as `sh COMMAND'
23538 # in which case we are not to be found in the path.
23539 if test "x$as_myself" = x; then
23540 as_myself=$0
23542 if test ! -f "$as_myself"; then
23543 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23544 exit 1
23547 # Unset variables that we do not need and which cause bugs (e.g. in
23548 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23549 # suppresses any "Segmentation fault" message there. '((' could
23550 # trigger a bug in pdksh 5.2.14.
23551 for as_var in BASH_ENV ENV MAIL MAILPATH
23552 do eval test x\${$as_var+set} = xset \
23553 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23554 done
23555 PS1='$ '
23556 PS2='> '
23557 PS4='+ '
23559 # NLS nuisances.
23560 LC_ALL=C
23561 export LC_ALL
23562 LANGUAGE=C
23563 export LANGUAGE
23565 # CDPATH.
23566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23569 # as_fn_error ERROR [LINENO LOG_FD]
23570 # ---------------------------------
23571 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23572 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23573 # script with status $?, using 1 if that was 0.
23574 as_fn_error ()
23576 as_status=$?; test $as_status -eq 0 && as_status=1
23577 if test "$3"; then
23578 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23579 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23581 $as_echo "$as_me: error: $1" >&2
23582 as_fn_exit $as_status
23583 } # as_fn_error
23586 # as_fn_set_status STATUS
23587 # -----------------------
23588 # Set $? to STATUS, without forking.
23589 as_fn_set_status ()
23591 return $1
23592 } # as_fn_set_status
23594 # as_fn_exit STATUS
23595 # -----------------
23596 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23597 as_fn_exit ()
23599 set +e
23600 as_fn_set_status $1
23601 exit $1
23602 } # as_fn_exit
23604 # as_fn_unset VAR
23605 # ---------------
23606 # Portably unset VAR.
23607 as_fn_unset ()
23609 { eval $1=; unset $1;}
23611 as_unset=as_fn_unset
23612 # as_fn_append VAR VALUE
23613 # ----------------------
23614 # Append the text in VALUE to the end of the definition contained in VAR. Take
23615 # advantage of any shell optimizations that allow amortized linear growth over
23616 # repeated appends, instead of the typical quadratic growth present in naive
23617 # implementations.
23618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23619 eval 'as_fn_append ()
23621 eval $1+=\$2
23623 else
23624 as_fn_append ()
23626 eval $1=\$$1\$2
23628 fi # as_fn_append
23630 # as_fn_arith ARG...
23631 # ------------------
23632 # Perform arithmetic evaluation on the ARGs, and store the result in the
23633 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23634 # must be portable across $(()) and expr.
23635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23636 eval 'as_fn_arith ()
23638 as_val=$(( $* ))
23640 else
23641 as_fn_arith ()
23643 as_val=`expr "$@" || test $? -eq 1`
23645 fi # as_fn_arith
23648 if expr a : '\(a\)' >/dev/null 2>&1 &&
23649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23650 as_expr=expr
23651 else
23652 as_expr=false
23655 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23656 as_basename=basename
23657 else
23658 as_basename=false
23661 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23662 as_dirname=dirname
23663 else
23664 as_dirname=false
23667 as_me=`$as_basename -- "$0" ||
23668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23669 X"$0" : 'X\(//\)$' \| \
23670 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23671 $as_echo X/"$0" |
23672 sed '/^.*\/\([^/][^/]*\)\/*$/{
23673 s//\1/
23676 /^X\/\(\/\/\)$/{
23677 s//\1/
23680 /^X\/\(\/\).*/{
23681 s//\1/
23684 s/.*/./; q'`
23686 # Avoid depending upon Character Ranges.
23687 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23688 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23689 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23690 as_cr_digits='0123456789'
23691 as_cr_alnum=$as_cr_Letters$as_cr_digits
23693 ECHO_C= ECHO_N= ECHO_T=
23694 case `echo -n x` in #(((((
23695 -n*)
23696 case `echo 'xy\c'` in
23697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23698 xy) ECHO_C='\c';;
23699 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23700 ECHO_T=' ';;
23701 esac;;
23703 ECHO_N='-n';;
23704 esac
23706 rm -f conf$$ conf$$.exe conf$$.file
23707 if test -d conf$$.dir; then
23708 rm -f conf$$.dir/conf$$.file
23709 else
23710 rm -f conf$$.dir
23711 mkdir conf$$.dir 2>/dev/null
23713 if (echo >conf$$.file) 2>/dev/null; then
23714 if ln -s conf$$.file conf$$ 2>/dev/null; then
23715 as_ln_s='ln -s'
23716 # ... but there are two gotchas:
23717 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23718 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23719 # In both cases, we have to default to `cp -p'.
23720 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23721 as_ln_s='cp -p'
23722 elif ln conf$$.file conf$$ 2>/dev/null; then
23723 as_ln_s=ln
23724 else
23725 as_ln_s='cp -p'
23727 else
23728 as_ln_s='cp -p'
23730 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23731 rmdir conf$$.dir 2>/dev/null
23734 # as_fn_mkdir_p
23735 # -------------
23736 # Create "$as_dir" as a directory, including parents if necessary.
23737 as_fn_mkdir_p ()
23740 case $as_dir in #(
23741 -*) as_dir=./$as_dir;;
23742 esac
23743 test -d "$as_dir" || eval $as_mkdir_p || {
23744 as_dirs=
23745 while :; do
23746 case $as_dir in #(
23747 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23748 *) as_qdir=$as_dir;;
23749 esac
23750 as_dirs="'$as_qdir' $as_dirs"
23751 as_dir=`$as_dirname -- "$as_dir" ||
23752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23753 X"$as_dir" : 'X\(//\)[^/]' \| \
23754 X"$as_dir" : 'X\(//\)$' \| \
23755 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23756 $as_echo X"$as_dir" |
23757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23758 s//\1/
23761 /^X\(\/\/\)[^/].*/{
23762 s//\1/
23765 /^X\(\/\/\)$/{
23766 s//\1/
23769 /^X\(\/\).*/{
23770 s//\1/
23773 s/.*/./; q'`
23774 test -d "$as_dir" && break
23775 done
23776 test -z "$as_dirs" || eval "mkdir $as_dirs"
23777 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23780 } # as_fn_mkdir_p
23781 if mkdir -p . 2>/dev/null; then
23782 as_mkdir_p='mkdir -p "$as_dir"'
23783 else
23784 test -d ./-p && rmdir ./-p
23785 as_mkdir_p=false
23788 if test -x / >/dev/null 2>&1; then
23789 as_test_x='test -x'
23790 else
23791 if ls -dL / >/dev/null 2>&1; then
23792 as_ls_L_option=L
23793 else
23794 as_ls_L_option=
23796 as_test_x='
23797 eval sh -c '\''
23798 if test -d "$1"; then
23799 test -d "$1/.";
23800 else
23801 case $1 in #(
23802 -*)set "./$1";;
23803 esac;
23804 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23805 ???[sx]*):;;*)false;;esac;fi
23806 '\'' sh
23809 as_executable_p=$as_test_x
23811 # Sed expression to map a string onto a valid CPP name.
23812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23814 # Sed expression to map a string onto a valid variable name.
23815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23818 exec 6>&1
23819 ## ----------------------------------- ##
23820 ## Main body of $CONFIG_STATUS script. ##
23821 ## ----------------------------------- ##
23822 _ASEOF
23823 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23826 # Save the log message, to keep $0 and so on meaningful, and to
23827 # report actual input values of CONFIG_FILES etc. instead of their
23828 # values after options handling.
23829 ac_log="
23830 This file was extended by emacs $as_me 24.1.50, which was
23831 generated by GNU Autoconf 2.65. Invocation command line was
23833 CONFIG_FILES = $CONFIG_FILES
23834 CONFIG_HEADERS = $CONFIG_HEADERS
23835 CONFIG_LINKS = $CONFIG_LINKS
23836 CONFIG_COMMANDS = $CONFIG_COMMANDS
23837 $ $0 $@
23839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23842 _ACEOF
23844 case $ac_config_files in *"
23845 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23846 esac
23848 case $ac_config_headers in *"
23849 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23850 esac
23853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23854 # Files that config.status was made for.
23855 config_files="$ac_config_files"
23856 config_headers="$ac_config_headers"
23857 config_commands="$ac_config_commands"
23859 _ACEOF
23861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23862 ac_cs_usage="\
23863 \`$as_me' instantiates files and other configuration actions
23864 from templates according to the current configuration. Unless the files
23865 and actions are specified as TAGs, all are instantiated by default.
23867 Usage: $0 [OPTION]... [TAG]...
23869 -h, --help print this help, then exit
23870 -V, --version print version number and configuration settings, then exit
23871 --config print configuration, then exit
23872 -q, --quiet, --silent
23873 do not print progress messages
23874 -d, --debug don't remove temporary files
23875 --recheck update $as_me by reconfiguring in the same conditions
23876 --file=FILE[:TEMPLATE]
23877 instantiate the configuration file FILE
23878 --header=FILE[:TEMPLATE]
23879 instantiate the configuration header FILE
23881 Configuration files:
23882 $config_files
23884 Configuration headers:
23885 $config_headers
23887 Configuration commands:
23888 $config_commands
23890 Report bugs to the package provider."
23892 _ACEOF
23893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23894 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23895 ac_cs_version="\\
23896 emacs config.status 24.1.50
23897 configured by $0, generated by GNU Autoconf 2.65,
23898 with options \\"\$ac_cs_config\\"
23900 Copyright (C) 2009 Free Software Foundation, Inc.
23901 This config.status script is free software; the Free Software Foundation
23902 gives unlimited permission to copy, distribute and modify it."
23904 ac_pwd='$ac_pwd'
23905 srcdir='$srcdir'
23906 INSTALL='$INSTALL'
23907 MKDIR_P='$MKDIR_P'
23908 AWK='$AWK'
23909 test -n "\$AWK" || AWK=awk
23910 _ACEOF
23912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23913 # The default lists apply if the user does not specify any file.
23914 ac_need_defaults=:
23915 while test $# != 0
23917 case $1 in
23918 --*=*)
23919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23921 ac_shift=:
23924 ac_option=$1
23925 ac_optarg=$2
23926 ac_shift=shift
23928 esac
23930 case $ac_option in
23931 # Handling of the options.
23932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23933 ac_cs_recheck=: ;;
23934 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23935 $as_echo "$ac_cs_version"; exit ;;
23936 --config | --confi | --conf | --con | --co | --c )
23937 $as_echo "$ac_cs_config"; exit ;;
23938 --debug | --debu | --deb | --de | --d | -d )
23939 debug=: ;;
23940 --file | --fil | --fi | --f )
23941 $ac_shift
23942 case $ac_optarg in
23943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23944 esac
23945 as_fn_append CONFIG_FILES " '$ac_optarg'"
23946 ac_need_defaults=false;;
23947 --header | --heade | --head | --hea )
23948 $ac_shift
23949 case $ac_optarg in
23950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23951 esac
23952 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23953 ac_need_defaults=false;;
23954 --he | --h)
23955 # Conflict between --help and --header
23956 as_fn_error "ambiguous option: \`$1'
23957 Try \`$0 --help' for more information.";;
23958 --help | --hel | -h )
23959 $as_echo "$ac_cs_usage"; exit ;;
23960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23962 ac_cs_silent=: ;;
23964 # This is an error.
23965 -*) as_fn_error "unrecognized option: \`$1'
23966 Try \`$0 --help' for more information." ;;
23968 *) as_fn_append ac_config_targets " $1"
23969 ac_need_defaults=false ;;
23971 esac
23972 shift
23973 done
23975 ac_configure_extra_args=
23977 if $ac_cs_silent; then
23978 exec 6>/dev/null
23979 ac_configure_extra_args="$ac_configure_extra_args --silent"
23982 _ACEOF
23983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23984 if \$ac_cs_recheck; then
23985 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23986 shift
23987 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23988 CONFIG_SHELL='$SHELL'
23989 export CONFIG_SHELL
23990 exec "\$@"
23993 _ACEOF
23994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23995 exec 5>>config.log
23997 echo
23998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23999 ## Running $as_me. ##
24000 _ASBOX
24001 $as_echo "$ac_log"
24002 } >&5
24004 _ACEOF
24005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24007 # INIT-COMMANDS
24009 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24010 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24012 _ACEOF
24014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24016 # Handling of arguments.
24017 for ac_config_target in $ac_config_targets
24019 case $ac_config_target in
24020 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24021 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24022 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24023 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24024 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24025 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24026 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24027 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24028 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24029 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24030 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24031 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24032 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24033 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24034 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24035 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24036 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24037 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24038 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24040 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24041 esac
24042 done
24045 # If the user did not use the arguments to specify the items to instantiate,
24046 # then the envvar interface is used. Set only those that are not.
24047 # We use the long form for the default assignment because of an extremely
24048 # bizarre bug on SunOS 4.1.3.
24049 if $ac_need_defaults; then
24050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24055 # Have a temporary directory for convenience. Make it in the build tree
24056 # simply because there is no reason against having it here, and in addition,
24057 # creating and moving files from /tmp can sometimes cause problems.
24058 # Hook for its removal unless debugging.
24059 # Note that there is a small window in which the directory will not be cleaned:
24060 # after its creation but before its name has been assigned to `$tmp'.
24061 $debug ||
24063 tmp=
24064 trap 'exit_status=$?
24065 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24067 trap 'as_fn_exit 1' 1 2 13 15
24069 # Create a (secure) tmp directory for tmp files.
24072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24073 test -n "$tmp" && test -d "$tmp"
24074 } ||
24076 tmp=./conf$$-$RANDOM
24077 (umask 077 && mkdir "$tmp")
24078 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24080 # Set up the scripts for CONFIG_FILES section.
24081 # No need to generate them if there are no CONFIG_FILES.
24082 # This happens for instance with `./config.status config.h'.
24083 if test -n "$CONFIG_FILES"; then
24085 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24086 ac_cs_awk_getline=:
24087 ac_cs_awk_pipe_init=
24088 ac_cs_awk_read_file='
24089 while ((getline aline < (F[key])) > 0)
24090 print(aline)
24091 close(F[key])'
24092 ac_cs_awk_pipe_fini=
24093 else
24094 ac_cs_awk_getline=false
24095 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24096 ac_cs_awk_read_file='
24097 print "|#_!!_#|"
24098 print "cat " F[key] " &&"
24099 '$ac_cs_awk_pipe_init
24100 # The final `:' finishes the AND list.
24101 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24103 ac_cr=`echo X | tr X '\015'`
24104 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24105 # But we know of no other shell where ac_cr would be empty at this
24106 # point, so we can use a bashism as a fallback.
24107 if test "x$ac_cr" = x; then
24108 eval ac_cr=\$\'\\r\'
24110 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24111 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24112 ac_cs_awk_cr='\r'
24113 else
24114 ac_cs_awk_cr=$ac_cr
24117 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24118 _ACEOF
24120 # Create commands to substitute file output variables.
24122 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24123 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24124 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24125 echo "_ACAWK" &&
24126 echo "_ACEOF"
24127 } >conf$$files.sh &&
24128 . ./conf$$files.sh ||
24129 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24130 rm -f conf$$files.sh
24133 echo "cat >conf$$subs.awk <<_ACEOF" &&
24134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24135 echo "_ACEOF"
24136 } >conf$$subs.sh ||
24137 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24139 ac_delim='%!_!# '
24140 for ac_last_try in false false false false false :; do
24141 . ./conf$$subs.sh ||
24142 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24145 if test $ac_delim_n = $ac_delim_num; then
24146 break
24147 elif $ac_last_try; then
24148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24149 else
24150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24152 done
24153 rm -f conf$$subs.sh
24155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24156 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24157 _ACEOF
24158 sed -n '
24160 s/^/S["/; s/!.*/"]=/
24163 s/^[^!]*!//
24164 :repl
24165 t repl
24166 s/'"$ac_delim"'$//
24167 t delim
24170 s/\(.\{148\}\)..*/\1/
24171 t more1
24172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24175 b repl
24176 :more1
24177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24180 s/.\{148\}//
24181 t nl
24182 :delim
24184 s/\(.\{148\}\)..*/\1/
24185 t more2
24186 s/["\\]/\\&/g; s/^/"/; s/$/"/
24189 :more2
24190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24193 s/.\{148\}//
24194 t delim
24195 ' <conf$$subs.awk | sed '
24196 /^[^""]/{
24198 s/\n//
24200 ' >>$CONFIG_STATUS || ac_write_fail=1
24201 rm -f conf$$subs.awk
24202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24203 _ACAWK
24204 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24205 for (key in S) S_is_set[key] = 1
24206 FS = "\a"
24207 \$ac_cs_awk_pipe_init
24210 line = $ 0
24211 nfields = split(line, field, "@")
24212 substed = 0
24213 len = length(field[1])
24214 for (i = 2; i < nfields; i++) {
24215 key = field[i]
24216 keylen = length(key)
24217 if (S_is_set[key]) {
24218 value = S[key]
24219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24220 len += length(value) + length(field[++i])
24221 substed = 1
24222 } else
24223 len += 1 + keylen
24225 if (nfields == 3 && !substed) {
24226 key = field[2]
24227 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24228 \$ac_cs_awk_read_file
24229 next
24232 print line
24234 \$ac_cs_awk_pipe_fini
24235 _ACAWK
24236 _ACEOF
24237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24240 else
24242 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24243 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24244 _ACEOF
24246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24248 # trailing colons and then remove the whole line if VPATH becomes empty
24249 # (actually we leave an empty line to preserve line numbers).
24250 if test "x$srcdir" = x.; then
24251 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24252 s/:*\$(srcdir):*/:/
24253 s/:*\${srcdir}:*/:/
24254 s/:*@srcdir@:*/:/
24255 s/^\([^=]*=[ ]*\):*/\1/
24256 s/:*$//
24257 s/^[^=]*=[ ]*$//
24261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24262 fi # test -n "$CONFIG_FILES"
24264 # Set up the scripts for CONFIG_HEADERS section.
24265 # No need to generate them if there are no CONFIG_HEADERS.
24266 # This happens for instance with `./config.status Makefile'.
24267 if test -n "$CONFIG_HEADERS"; then
24268 cat >"$tmp/defines.awk" <<\_ACAWK ||
24269 BEGIN {
24270 _ACEOF
24272 # Transform confdefs.h into an awk script `defines.awk', embedded as
24273 # here-document in config.status, that substitutes the proper values into
24274 # config.h.in to produce config.h.
24276 # Create a delimiter string that does not exist in confdefs.h, to ease
24277 # handling of long lines.
24278 ac_delim='%!_!# '
24279 for ac_last_try in false false :; do
24280 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24281 if test -z "$ac_t"; then
24282 break
24283 elif $ac_last_try; then
24284 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24285 else
24286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24288 done
24290 # For the awk script, D is an array of macro values keyed by name,
24291 # likewise P contains macro parameters if any. Preserve backslash
24292 # newline sequences.
24294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24295 sed -n '
24296 s/.\{148\}/&'"$ac_delim"'/g
24297 t rset
24298 :rset
24299 s/^[ ]*#[ ]*define[ ][ ]*/ /
24300 t def
24302 :def
24303 s/\\$//
24304 t bsnl
24305 s/["\\]/\\&/g
24306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24307 D["\1"]=" \3"/p
24308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24310 :bsnl
24311 s/["\\]/\\&/g
24312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24313 D["\1"]=" \3\\\\\\n"\\/p
24314 t cont
24315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24316 t cont
24318 :cont
24320 s/.\{148\}/&'"$ac_delim"'/g
24321 t clear
24322 :clear
24323 s/\\$//
24324 t bsnlc
24325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24327 :bsnlc
24328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24329 b cont
24330 ' <confdefs.h | sed '
24331 s/'"$ac_delim"'/"\\\
24332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24335 for (key in D) D_is_set[key] = 1
24336 FS = "\a"
24338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24339 line = \$ 0
24340 split(line, arg, " ")
24341 if (arg[1] == "#") {
24342 defundef = arg[2]
24343 mac1 = arg[3]
24344 } else {
24345 defundef = substr(arg[1], 2)
24346 mac1 = arg[2]
24348 split(mac1, mac2, "(") #)
24349 macro = mac2[1]
24350 prefix = substr(line, 1, index(line, defundef) - 1)
24351 if (D_is_set[macro]) {
24352 # Preserve the white space surrounding the "#".
24353 print prefix "define", macro P[macro] D[macro]
24354 next
24355 } else {
24356 # Replace #undef with comments. This is necessary, for example,
24357 # in the case of _POSIX_SOURCE, which is predefined and required
24358 # on some systems where configure will not decide to define it.
24359 if (defundef == "undef") {
24360 print "/*", prefix defundef, macro, "*/"
24361 next
24365 { print }
24366 _ACAWK
24367 _ACEOF
24368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24369 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24370 fi # test -n "$CONFIG_HEADERS"
24373 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24374 shift
24375 for ac_tag
24377 case $ac_tag in
24378 :[FHLC]) ac_mode=$ac_tag; continue;;
24379 esac
24380 case $ac_mode$ac_tag in
24381 :[FHL]*:*);;
24382 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24383 :[FH]-) ac_tag=-:-;;
24384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24385 esac
24386 ac_save_IFS=$IFS
24387 IFS=:
24388 set x $ac_tag
24389 IFS=$ac_save_IFS
24390 shift
24391 ac_file=$1
24392 shift
24394 case $ac_mode in
24395 :L) ac_source=$1;;
24396 :[FH])
24397 ac_file_inputs=
24398 for ac_f
24400 case $ac_f in
24401 -) ac_f="$tmp/stdin";;
24402 *) # Look for the file first in the build tree, then in the source tree
24403 # (if the path is not absolute). The absolute path cannot be DOS-style,
24404 # because $ac_f cannot contain `:'.
24405 test -f "$ac_f" ||
24406 case $ac_f in
24407 [\\/$]*) false;;
24408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24409 esac ||
24410 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24411 esac
24412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24413 as_fn_append ac_file_inputs " '$ac_f'"
24414 done
24416 # Let's still pretend it is `configure' which instantiates (i.e., don't
24417 # use $as_me), people would be surprised to read:
24418 # /* config.h. Generated by config.status. */
24419 configure_input='Generated from '`
24420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24421 `' by configure.'
24422 if test x"$ac_file" != x-; then
24423 configure_input="$ac_file. $configure_input"
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24425 $as_echo "$as_me: creating $ac_file" >&6;}
24427 # Neutralize special characters interpreted by sed in replacement strings.
24428 case $configure_input in #(
24429 *\&* | *\|* | *\\* )
24430 ac_sed_conf_input=`$as_echo "$configure_input" |
24431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24432 *) ac_sed_conf_input=$configure_input;;
24433 esac
24435 case $ac_tag in
24436 *:-:* | *:-) cat >"$tmp/stdin" \
24437 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24438 esac
24440 esac
24442 ac_dir=`$as_dirname -- "$ac_file" ||
24443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24444 X"$ac_file" : 'X\(//\)[^/]' \| \
24445 X"$ac_file" : 'X\(//\)$' \| \
24446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24447 $as_echo X"$ac_file" |
24448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24449 s//\1/
24452 /^X\(\/\/\)[^/].*/{
24453 s//\1/
24456 /^X\(\/\/\)$/{
24457 s//\1/
24460 /^X\(\/\).*/{
24461 s//\1/
24464 s/.*/./; q'`
24465 as_dir="$ac_dir"; as_fn_mkdir_p
24466 ac_builddir=.
24468 case "$ac_dir" in
24469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24472 # A ".." for each directory in $ac_dir_suffix.
24473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24474 case $ac_top_builddir_sub in
24475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24477 esac ;;
24478 esac
24479 ac_abs_top_builddir=$ac_pwd
24480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24481 # for backward compatibility:
24482 ac_top_builddir=$ac_top_build_prefix
24484 case $srcdir in
24485 .) # We are building in place.
24486 ac_srcdir=.
24487 ac_top_srcdir=$ac_top_builddir_sub
24488 ac_abs_top_srcdir=$ac_pwd ;;
24489 [\\/]* | ?:[\\/]* ) # Absolute name.
24490 ac_srcdir=$srcdir$ac_dir_suffix;
24491 ac_top_srcdir=$srcdir
24492 ac_abs_top_srcdir=$srcdir ;;
24493 *) # Relative name.
24494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24495 ac_top_srcdir=$ac_top_build_prefix$srcdir
24496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24497 esac
24498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24501 case $ac_mode in
24504 # CONFIG_FILE
24507 case $INSTALL in
24508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24510 esac
24511 ac_MKDIR_P=$MKDIR_P
24512 case $MKDIR_P in
24513 [\\/$]* | ?:[\\/]* ) ;;
24514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24515 esac
24516 _ACEOF
24518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24519 # If the template does not know about datarootdir, expand it.
24520 # FIXME: This hack should be removed a few years after 2.60.
24521 ac_datarootdir_hack=; ac_datarootdir_seen=
24522 ac_sed_dataroot='
24523 /datarootdir/ {
24527 /@datadir@/p
24528 /@docdir@/p
24529 /@infodir@/p
24530 /@localedir@/p
24531 /@mandir@/p'
24532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24533 *datarootdir*) ac_datarootdir_seen=yes;;
24534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24537 _ACEOF
24538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24539 ac_datarootdir_hack='
24540 s&@datadir@&$datadir&g
24541 s&@docdir@&$docdir&g
24542 s&@infodir@&$infodir&g
24543 s&@localedir@&$localedir&g
24544 s&@mandir@&$mandir&g
24545 s&\\\${datarootdir}&$datarootdir&g' ;;
24546 esac
24547 _ACEOF
24549 # Neutralize VPATH when `$srcdir' = `.'.
24550 # Shell code in configure.ac might set extrasub.
24551 # FIXME: do we really want to maintain this feature?
24552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24553 ac_sed_extra="$ac_vpsub
24554 $extrasub
24555 _ACEOF
24556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24559 s|@configure_input@|$ac_sed_conf_input|;t t
24560 s&@top_builddir@&$ac_top_builddir_sub&;t t
24561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24562 s&@srcdir@&$ac_srcdir&;t t
24563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24564 s&@top_srcdir@&$ac_top_srcdir&;t t
24565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24566 s&@builddir@&$ac_builddir&;t t
24567 s&@abs_builddir@&$ac_abs_builddir&;t t
24568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24569 s&@INSTALL@&$ac_INSTALL&;t t
24570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24571 $ac_datarootdir_hack
24573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24574 if $ac_cs_awk_getline; then
24575 $AWK -f "$tmp/subs.awk"
24576 else
24577 $AWK -f "$tmp/subs.awk" | $SHELL
24578 fi >$tmp/out \
24579 || as_fn_error "could not create $ac_file" "$LINENO" 5
24581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24585 which seems to be undefined. Please make sure it is defined." >&5
24586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24587 which seems to be undefined. Please make sure it is defined." >&2;}
24589 rm -f "$tmp/stdin"
24590 case $ac_file in
24591 -) cat "$tmp/out" && rm -f "$tmp/out";;
24592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24593 esac \
24594 || as_fn_error "could not create $ac_file" "$LINENO" 5
24598 # CONFIG_HEADER
24600 if test x"$ac_file" != x-; then
24602 $as_echo "/* $configure_input */" \
24603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24604 } >"$tmp/config.h" \
24605 || as_fn_error "could not create $ac_file" "$LINENO" 5
24606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24609 else
24610 rm -f "$ac_file"
24611 mv "$tmp/config.h" "$ac_file" \
24612 || as_fn_error "could not create $ac_file" "$LINENO" 5
24614 else
24615 $as_echo "/* $configure_input */" \
24616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24617 || as_fn_error "could not create -" "$LINENO" 5
24619 # Compute "$ac_file"'s index in $config_headers.
24620 _am_arg="$ac_file"
24621 _am_stamp_count=1
24622 for _am_header in $config_headers :; do
24623 case $_am_header in
24624 $_am_arg | $_am_arg:* )
24625 break ;;
24627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24628 esac
24629 done
24630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24632 X"$_am_arg" : 'X\(//\)[^/]' \| \
24633 X"$_am_arg" : 'X\(//\)$' \| \
24634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24635 $as_echo X"$_am_arg" |
24636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24637 s//\1/
24640 /^X\(\/\/\)[^/].*/{
24641 s//\1/
24644 /^X\(\/\/\)$/{
24645 s//\1/
24648 /^X\(\/\).*/{
24649 s//\1/
24652 s/.*/./; q'`/stamp-h$_am_stamp_count
24655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24656 $as_echo "$as_me: executing $ac_file commands" >&6;}
24658 esac
24661 case $ac_file$ac_mode in
24662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24663 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24664 # are listed without --file. Let's play safe and only enable the eval
24665 # if we detect the quoting.
24666 case $CONFIG_FILES in
24667 *\'*) eval set x "$CONFIG_FILES" ;;
24668 *) set x $CONFIG_FILES ;;
24669 esac
24670 shift
24671 for mf
24673 # Strip MF so we end up with the name of the file.
24674 mf=`echo "$mf" | sed -e 's/:.*$//'`
24675 # Check whether this is an Automake generated Makefile or not.
24676 # We used to match only the files named `Makefile.in', but
24677 # some people rename them; so instead we look at the file content.
24678 # Grep'ing the first line is not enough: some people post-process
24679 # each Makefile.in and add a new line on top of each file to say so.
24680 # Grep'ing the whole file is not good either: AIX grep has a line
24681 # limit of 2048, but all sed's we know have understand at least 4000.
24682 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24683 dirpart=`$as_dirname -- "$mf" ||
24684 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24685 X"$mf" : 'X\(//\)[^/]' \| \
24686 X"$mf" : 'X\(//\)$' \| \
24687 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24688 $as_echo X"$mf" |
24689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24690 s//\1/
24693 /^X\(\/\/\)[^/].*/{
24694 s//\1/
24697 /^X\(\/\/\)$/{
24698 s//\1/
24701 /^X\(\/\).*/{
24702 s//\1/
24705 s/.*/./; q'`
24706 else
24707 continue
24709 # Extract the definition of DEPDIR, am__include, and am__quote
24710 # from the Makefile without running `make'.
24711 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24712 test -z "$DEPDIR" && continue
24713 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24714 test -z "am__include" && continue
24715 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24716 # When using ansi2knr, U may be empty or an underscore; expand it
24717 U=`sed -n 's/^U = //p' < "$mf"`
24718 # Find all dependency output files, they are included files with
24719 # $(DEPDIR) in their names. We invoke sed twice because it is the
24720 # simplest approach to changing $(DEPDIR) to its actual value in the
24721 # expansion.
24722 for file in `sed -n "
24723 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24724 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24725 # Make sure the directory exists.
24726 test -f "$dirpart/$file" && continue
24727 fdir=`$as_dirname -- "$file" ||
24728 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24729 X"$file" : 'X\(//\)[^/]' \| \
24730 X"$file" : 'X\(//\)$' \| \
24731 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24732 $as_echo X"$file" |
24733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24734 s//\1/
24737 /^X\(\/\/\)[^/].*/{
24738 s//\1/
24741 /^X\(\/\/\)$/{
24742 s//\1/
24745 /^X\(\/\).*/{
24746 s//\1/
24749 s/.*/./; q'`
24750 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24751 # echo "creating $dirpart/$file"
24752 echo '# dummy' > "$dirpart/$file"
24753 done
24754 done
24757 "mkdirs":C)
24758 for dir in etc lisp ; do
24759 test -d ${dir} || mkdir ${dir}
24760 done
24762 "epaths":C)
24763 echo creating src/epaths.h
24764 ${MAKE-make} epaths-force
24766 "gdbinit":C)
24767 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24768 echo creating src/.gdbinit
24769 echo source $srcdir/src/.gdbinit > src/.gdbinit
24773 esac
24774 done # for ac_tag
24777 as_fn_exit 0
24778 _ACEOF
24779 ac_clean_files=$ac_clean_files_save
24781 test $ac_write_fail = 0 ||
24782 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24785 # configure is writing to config.log, and then calls config.status.
24786 # config.status does its own redirection, appending to config.log.
24787 # Unfortunately, on DOS this fails, as config.log is still kept open
24788 # by configure, so config.status won't be able to write to it; its
24789 # output is simply discarded. So we exec the FD to /dev/null,
24790 # effectively closing config.log, so it can be properly (re)opened and
24791 # appended to by config.status. When coming back to configure, we
24792 # need to make the FD available again.
24793 if test "$no_create" != yes; then
24794 ac_cs_success=:
24795 ac_config_status_args=
24796 test "$silent" = yes &&
24797 ac_config_status_args="$ac_config_status_args --quiet"
24798 exec 5>/dev/null
24799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24800 exec 5>>config.log
24801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24802 # would make configure fail if this is the last instruction.
24803 $ac_cs_success || as_fn_exit $?
24805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24807 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}