cus-start.el fix for bug#8192.
[emacs.git] / configure
blobb8a83e66779eb5e37e9f27b2ae2fabac2a7075b9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 gl_getopt_required=POSIX
596 gl_getopt_required=POSIX
597 ac_func_list=
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 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675 NEXT_STDLIB_H
676 STDINT_H
677 WINT_T_SUFFIX
678 WCHAR_T_SUFFIX
679 SIG_ATOMIC_T_SUFFIX
680 SIZE_T_SUFFIX
681 PTRDIFF_T_SUFFIX
682 HAVE_SIGNED_WINT_T
683 HAVE_SIGNED_WCHAR_T
684 HAVE_SIGNED_SIG_ATOMIC_T
685 BITSIZEOF_WINT_T
686 BITSIZEOF_WCHAR_T
687 BITSIZEOF_SIG_ATOMIC_T
688 BITSIZEOF_SIZE_T
689 BITSIZEOF_PTRDIFF_T
690 HAVE_SYS_BITYPES_H
691 HAVE_SYS_INTTYPES_H
692 HAVE_STDINT_H
693 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
694 NEXT_STDINT_H
695 HAVE_SYS_TYPES_H
696 HAVE_INTTYPES_H
697 HAVE_WCHAR_H
698 HAVE_UNSIGNED_LONG_LONG_INT
699 HAVE_LONG_LONG_INT
700 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
701 NEXT_STDDEF_H
702 STDDEF_H
703 HAVE_WCHAR_T
704 REPLACE_NULL
705 HAVE__BOOL
706 STDBOOL_H
707 APPLE_UNIVERSAL_BUILD
708 REPLACE_TIMEGM
709 REPLACE_NANOSLEEP
710 REPLACE_MKTIME
711 REPLACE_LOCALTIME_R
712 HAVE_TIMEGM
713 HAVE_STRPTIME
714 HAVE_NANOSLEEP
715 HAVE_DECL_LOCALTIME_R
716 GNULIB_TIME_R
717 GNULIB_TIMEGM
718 GNULIB_STRPTIME
719 GNULIB_NANOSLEEP
720 GNULIB_MKTIME
721 REPLACE_UTIMENSAT
722 REPLACE_STAT
723 REPLACE_MKNOD
724 REPLACE_MKFIFO
725 REPLACE_MKDIR
726 REPLACE_LSTAT
727 REPLACE_FUTIMENS
728 REPLACE_FSTATAT
729 REPLACE_FSTAT
730 HAVE_UTIMENSAT
731 HAVE_MKNODAT
732 HAVE_MKNOD
733 HAVE_MKFIFOAT
734 HAVE_MKFIFO
735 HAVE_MKDIRAT
736 HAVE_LSTAT
737 HAVE_LCHMOD
738 HAVE_FUTIMENS
739 HAVE_FSTATAT
740 HAVE_FCHMODAT
741 GNULIB_UTIMENSAT
742 GNULIB_STAT
743 GNULIB_MKNODAT
744 GNULIB_MKNOD
745 GNULIB_MKFIFOAT
746 GNULIB_MKFIFO
747 GNULIB_MKDIRAT
748 GNULIB_LSTAT
749 GNULIB_LCHMOD
750 GNULIB_FUTIMENS
751 GNULIB_FSTATAT
752 GNULIB_FCHMODAT
753 LTLIBINTL
754 LIBINTL
755 GETOPT_H
756 HAVE_GETOPT_H
757 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
758 NEXT_GETOPT_H
759 PRAGMA_COLUMNS
760 PRAGMA_SYSTEM_HEADER
761 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
762 INCLUDE_NEXT
763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
764 UNISTD_H_HAVE_WINSOCK2_H
765 REPLACE_WRITE
766 REPLACE_USLEEP
767 REPLACE_UNLINKAT
768 REPLACE_UNLINK
769 REPLACE_TTYNAME_R
770 REPLACE_SYMLINK
771 REPLACE_SLEEP
772 REPLACE_RMDIR
773 REPLACE_READLINK
774 REPLACE_PWRITE
775 REPLACE_PREAD
776 REPLACE_LSEEK
777 REPLACE_LINKAT
778 REPLACE_LINK
779 REPLACE_LCHOWN
780 REPLACE_GETPAGESIZE
781 REPLACE_GETGROUPS
782 REPLACE_GETLOGIN_R
783 REPLACE_GETDOMAINNAME
784 REPLACE_GETCWD
785 REPLACE_FCHOWNAT
786 REPLACE_DUP2
787 REPLACE_DUP
788 REPLACE_CLOSE
789 REPLACE_CHOWN
790 HAVE_SYS_PARAM_H
791 HAVE_OS_H
792 HAVE_DECL_TTYNAME_R
793 HAVE_DECL_GETUSERSHELL
794 HAVE_DECL_GETPAGESIZE
795 HAVE_DECL_GETLOGIN_R
796 HAVE_DECL_GETDOMAINNAME
797 HAVE_DECL_FCHDIR
798 HAVE_DECL_ENVIRON
799 HAVE_USLEEP
800 HAVE_UNLINKAT
801 HAVE_SYMLINKAT
802 HAVE_SYMLINK
803 HAVE_SLEEP
804 HAVE_READLINKAT
805 HAVE_READLINK
806 HAVE_PWRITE
807 HAVE_PREAD
808 HAVE_PIPE2
809 HAVE_PIPE
810 HAVE_LINKAT
811 HAVE_LINK
812 HAVE_LCHOWN
813 HAVE_GETPAGESIZE
814 HAVE_GETLOGIN
815 HAVE_GETHOSTNAME
816 HAVE_GETGROUPS
817 HAVE_GETDTABLESIZE
818 HAVE_FTRUNCATE
819 HAVE_FSYNC
820 HAVE_FCHOWNAT
821 HAVE_FCHDIR
822 HAVE_FACCESSAT
823 HAVE_EUIDACCESS
824 HAVE_DUP3
825 HAVE_DUP2
826 HAVE_CHOWN
827 GNULIB_WRITE
828 GNULIB_USLEEP
829 GNULIB_UNLINKAT
830 GNULIB_UNLINK
831 GNULIB_UNISTD_H_SIGPIPE
832 GNULIB_UNISTD_H_GETOPT
833 GNULIB_TTYNAME_R
834 GNULIB_SYMLINKAT
835 GNULIB_SYMLINK
836 GNULIB_SLEEP
837 GNULIB_RMDIR
838 GNULIB_READLINKAT
839 GNULIB_READLINK
840 GNULIB_PWRITE
841 GNULIB_PREAD
842 GNULIB_PIPE2
843 GNULIB_PIPE
844 GNULIB_LSEEK
845 GNULIB_LINKAT
846 GNULIB_LINK
847 GNULIB_LCHOWN
848 GNULIB_GETUSERSHELL
849 GNULIB_GETPAGESIZE
850 GNULIB_GETLOGIN_R
851 GNULIB_GETLOGIN
852 GNULIB_GETHOSTNAME
853 GNULIB_GETGROUPS
854 GNULIB_GETDTABLESIZE
855 GNULIB_GETDOMAINNAME
856 GNULIB_GETCWD
857 GNULIB_FTRUNCATE
858 GNULIB_FSYNC
859 GNULIB_FCHOWNAT
860 GNULIB_FCHDIR
861 GNULIB_FACCESSAT
862 GNULIB_EUIDACCESS
863 GNULIB_ENVIRON
864 GNULIB_DUP3
865 GNULIB_DUP2
866 GNULIB_CLOSE
867 GNULIB_CHOWN
868 GETLOADAVG_LIBS
869 REPLACE_WCTOMB
870 REPLACE_UNSETENV
871 REPLACE_STRTOD
872 REPLACE_SETENV
873 REPLACE_REALPATH
874 REPLACE_REALLOC
875 REPLACE_PUTENV
876 REPLACE_MKSTEMP
877 REPLACE_MBTOWC
878 REPLACE_MALLOC
879 REPLACE_CANONICALIZE_FILE_NAME
880 REPLACE_CALLOC
881 HAVE_DECL_UNSETENV
882 HAVE_UNLOCKPT
883 HAVE_SYS_LOADAVG_H
884 HAVE_STRUCT_RANDOM_DATA
885 HAVE_STRTOULL
886 HAVE_STRTOLL
887 HAVE_STRTOD
888 HAVE_DECL_SETENV
889 HAVE_SETENV
890 HAVE_RPMATCH
891 HAVE_REALPATH
892 HAVE_RANDOM_R
893 HAVE_RANDOM_H
894 HAVE_PTSNAME
895 HAVE_MKSTEMPS
896 HAVE_MKSTEMP
897 HAVE_MKOSTEMPS
898 HAVE_MKOSTEMP
899 HAVE_MKDTEMP
900 HAVE_GRANTPT
901 HAVE_GETSUBOPT
902 HAVE_DECL_GETLOADAVG
903 HAVE_CANONICALIZE_FILE_NAME
904 HAVE_ATOLL
905 HAVE__EXIT
906 GNULIB_WCTOMB
907 GNULIB_UNSETENV
908 GNULIB_UNLOCKPT
909 GNULIB_SYSTEM_POSIX
910 GNULIB_STRTOULL
911 GNULIB_STRTOLL
912 GNULIB_STRTOD
913 GNULIB_SETENV
914 GNULIB_RPMATCH
915 GNULIB_REALPATH
916 GNULIB_REALLOC_POSIX
917 GNULIB_RANDOM_R
918 GNULIB_PUTENV
919 GNULIB_PTSNAME
920 GNULIB_MKSTEMPS
921 GNULIB_MKSTEMP
922 GNULIB_MKOSTEMPS
923 GNULIB_MKOSTEMP
924 GNULIB_MKDTEMP
925 GNULIB_MBTOWC
926 GNULIB_MALLOC_POSIX
927 GNULIB_GRANTPT
928 GNULIB_GETSUBOPT
929 GNULIB_GETLOADAVG
930 GNULIB_CANONICALIZE_FILE_NAME
931 GNULIB_CALLOC_POSIX
932 GNULIB_ATOLL
933 GNULIB__EXIT
934 GL_COND_LIBTOOL_FALSE
935 GL_COND_LIBTOOL_TRUE
936 BLESSMAIL_TARGET
937 LIBS_MAIL
938 liblockfile
939 ALLOCA
940 LIBXML2_LIBS
941 LIBXML2_CFLAGS
942 LIBXSM
943 LIBGPM
944 LIBGIF
945 LIBTIFF
946 LIBPNG
947 LIBJPEG
948 LIBXPM
949 M17N_FLT_LIBS
950 M17N_FLT_CFLAGS
951 LIBOTF_LIBS
952 LIBOTF_CFLAGS
953 FREETYPE_LIBS
954 FREETYPE_CFLAGS
955 XFT_LIBS
956 XFT_CFLAGS
957 FONTCONFIG_LIBS
958 FONTCONFIG_CFLAGS
959 LIBXMU
960 LIBXTR6
961 LIBGNUTLS_LIBS
962 LIBGNUTLS_CFLAGS
963 LIBSELINUX_LIBS
964 GCONF_LIBS
965 GCONF_CFLAGS
966 DBUS_OBJ
967 DBUS_LIBS
968 DBUS_CFLAGS
969 GTK_OBJ
970 GTK_LIBS
971 GTK_CFLAGS
972 IMAGEMAGICK_LIBS
973 IMAGEMAGICK_CFLAGS
974 RSVG_LIBS
975 RSVG_CFLAGS
976 VMLIMIT_OBJ
977 GMALLOC_OBJ
978 HAVE_XSERVER
979 LIB_STANDARD
980 NS_SUPPORT
981 NS_OBJC_OBJ
982 NS_OBJ
983 TEMACS_LDFLAGS2
984 LD_SWITCH_X_SITE_AUX_RPATH
985 LD_SWITCH_X_SITE_AUX
986 XMKMF
987 DEPFLAGS
988 MKDEPDIR
989 CFLAGS_SOUND
990 ALSA_LIBS
991 ALSA_CFLAGS
992 PKG_CONFIG
993 LIBSOUND
994 START_FILES
995 LIB_MATH
996 CRT_DIR
997 LIBS_SYSTEM
998 C_SWITCH_SYSTEM
999 UNEXEC_OBJ
1000 C_SWITCH_MACHINE
1001 LD_SWITCH_SYSTEM
1002 CANNOT_DUMP
1003 HAVE_MAKEINFO
1004 GZIP_PROG
1005 INSTALL_INFO
1006 C_WARNINGS_SWITCH
1007 EGREP
1008 GREP
1010 RANLIB
1011 am__fastdepCC_FALSE
1012 am__fastdepCC_TRUE
1013 CCDEPMODE
1014 AMDEPBACKSLASH
1015 AMDEP_FALSE
1016 AMDEP_TRUE
1017 am__quote
1018 am__include
1019 DEPDIR
1020 OBJEXT
1021 EXEEXT
1022 ac_ct_CC
1023 CPPFLAGS
1024 LDFLAGS
1025 CFLAGS
1027 host_os
1028 host_vendor
1029 host_cpu
1030 host
1031 build_os
1032 build_vendor
1033 build_cpu
1034 build
1035 PROFILING_CFLAGS
1036 MAINT
1037 GZIP_INFO
1038 am__untar
1039 am__tar
1040 AMTAR
1041 am__leading_dot
1042 SET_MAKE
1044 mkdir_p
1045 MKDIR_P
1046 INSTALL_STRIP_PROGRAM
1047 STRIP
1048 install_sh
1049 MAKEINFO
1050 AUTOHEADER
1051 AUTOMAKE
1052 AUTOCONF
1053 ACLOCAL
1054 VERSION
1055 PACKAGE
1056 CYGPATH_W
1057 am__isrc
1058 INSTALL_DATA
1059 INSTALL_SCRIPT
1060 INSTALL_PROGRAM
1061 target_alias
1062 host_alias
1063 build_alias
1064 LIBS
1065 ECHO_T
1066 ECHO_N
1067 ECHO_C
1068 DEFS
1069 mandir
1070 localedir
1071 libdir
1072 psdir
1073 pdfdir
1074 dvidir
1075 htmldir
1076 infodir
1077 docdir
1078 oldincludedir
1079 includedir
1080 localstatedir
1081 sharedstatedir
1082 sysconfdir
1083 datadir
1084 datarootdir
1085 libexecdir
1086 sbindir
1087 bindir
1088 program_transform_name
1089 prefix
1090 exec_prefix
1091 PACKAGE_URL
1092 PACKAGE_BUGREPORT
1093 PACKAGE_STRING
1094 PACKAGE_VERSION
1095 PACKAGE_TARNAME
1096 PACKAGE_NAME
1097 PATH_SEPARATOR
1098 SHELL'
1099 ac_subst_files='deps_frag
1100 ns_frag'
1101 ac_user_opts='
1102 enable_option_checking
1103 with_pop
1104 with_kerberos
1105 with_kerberos5
1106 with_hesiod
1107 with_mmdf
1108 with_mail_unlink
1109 with_mailhost
1110 with_sound
1111 with_sync_input
1112 with_x_toolkit
1113 with_xpm
1114 with_jpeg
1115 with_tiff
1116 with_gif
1117 with_png
1118 with_rsvg
1119 with_xml2
1120 with_imagemagick
1121 with_xft
1122 with_libotf
1123 with_m17n_flt
1124 with_toolkit_scroll_bars
1125 with_xaw3d
1126 with_xim
1127 with_ns
1128 with_gpm
1129 with_dbus
1130 with_gconf
1131 with_selinux
1132 with_gnutls
1133 with_makeinfo
1134 with_compress_info
1135 with_pkg_config_prog
1136 with_crt_dir
1137 with_gameuser
1138 with_gnustep_conf
1139 enable_ns_self_contained
1140 enable_asserts
1141 enable_maintainer_mode
1142 enable_locallisppath
1143 enable_checking
1144 enable_use_lisp_union_type
1145 enable_profiling
1146 enable_autodepend
1147 enable_dependency_tracking
1148 enable_largefile
1149 with_x
1151 ac_precious_vars='build_alias
1152 host_alias
1153 target_alias
1155 CFLAGS
1156 LDFLAGS
1157 LIBS
1158 CPPFLAGS
1160 XMKMF'
1163 # Initialize some variables set by options.
1164 ac_init_help=
1165 ac_init_version=false
1166 ac_unrecognized_opts=
1167 ac_unrecognized_sep=
1168 # The variables have the same names as the options, with
1169 # dashes changed to underlines.
1170 cache_file=/dev/null
1171 exec_prefix=NONE
1172 no_create=
1173 no_recursion=
1174 prefix=NONE
1175 program_prefix=NONE
1176 program_suffix=NONE
1177 program_transform_name=s,x,x,
1178 silent=
1179 site=
1180 srcdir=
1181 verbose=
1182 x_includes=NONE
1183 x_libraries=NONE
1185 # Installation directory options.
1186 # These are left unexpanded so users can "make install exec_prefix=/foo"
1187 # and all the variables that are supposed to be based on exec_prefix
1188 # by default will actually change.
1189 # Use braces instead of parens because sh, perl, etc. also accept them.
1190 # (The list follows the same order as the GNU Coding Standards.)
1191 bindir='${exec_prefix}/bin'
1192 sbindir='${exec_prefix}/sbin'
1193 libexecdir='${exec_prefix}/libexec'
1194 datarootdir='${prefix}/share'
1195 datadir='${datarootdir}'
1196 sysconfdir='${prefix}/etc'
1197 sharedstatedir='${prefix}/com'
1198 localstatedir='${prefix}/var'
1199 includedir='${prefix}/include'
1200 oldincludedir='/usr/include'
1201 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1202 infodir='${datarootdir}/info'
1203 htmldir='${docdir}'
1204 dvidir='${docdir}'
1205 pdfdir='${docdir}'
1206 psdir='${docdir}'
1207 libdir='${exec_prefix}/lib'
1208 localedir='${datarootdir}/locale'
1209 mandir='${datarootdir}/man'
1211 ac_prev=
1212 ac_dashdash=
1213 for ac_option
1215 # If the previous option needs an argument, assign it.
1216 if test -n "$ac_prev"; then
1217 eval $ac_prev=\$ac_option
1218 ac_prev=
1219 continue
1222 case $ac_option in
1223 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1224 *=) ac_optarg= ;;
1225 *) ac_optarg=yes ;;
1226 esac
1228 # Accept the important Cygnus configure options, so we can diagnose typos.
1230 case $ac_dashdash$ac_option in
1232 ac_dashdash=yes ;;
1234 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1235 ac_prev=bindir ;;
1236 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1237 bindir=$ac_optarg ;;
1239 -build | --build | --buil | --bui | --bu)
1240 ac_prev=build_alias ;;
1241 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1242 build_alias=$ac_optarg ;;
1244 -cache-file | --cache-file | --cache-fil | --cache-fi \
1245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1246 ac_prev=cache_file ;;
1247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1249 cache_file=$ac_optarg ;;
1251 --config-cache | -C)
1252 cache_file=config.cache ;;
1254 -datadir | --datadir | --datadi | --datad)
1255 ac_prev=datadir ;;
1256 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1257 datadir=$ac_optarg ;;
1259 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1260 | --dataroo | --dataro | --datar)
1261 ac_prev=datarootdir ;;
1262 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1263 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1264 datarootdir=$ac_optarg ;;
1266 -disable-* | --disable-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid feature name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "enable_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval enable_$ac_useropt=no ;;
1282 -docdir | --docdir | --docdi | --doc | --do)
1283 ac_prev=docdir ;;
1284 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1285 docdir=$ac_optarg ;;
1287 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1288 ac_prev=dvidir ;;
1289 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1290 dvidir=$ac_optarg ;;
1292 -enable-* | --enable-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid feature name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "enable_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval enable_$ac_useropt=\$ac_optarg ;;
1308 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1309 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1310 | --exec | --exe | --ex)
1311 ac_prev=exec_prefix ;;
1312 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1313 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1314 | --exec=* | --exe=* | --ex=*)
1315 exec_prefix=$ac_optarg ;;
1317 -gas | --gas | --ga | --g)
1318 # Obsolete; use --with-gas.
1319 with_gas=yes ;;
1321 -help | --help | --hel | --he | -h)
1322 ac_init_help=long ;;
1323 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1324 ac_init_help=recursive ;;
1325 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1326 ac_init_help=short ;;
1328 -host | --host | --hos | --ho)
1329 ac_prev=host_alias ;;
1330 -host=* | --host=* | --hos=* | --ho=*)
1331 host_alias=$ac_optarg ;;
1333 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1334 ac_prev=htmldir ;;
1335 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1336 | --ht=*)
1337 htmldir=$ac_optarg ;;
1339 -includedir | --includedir | --includedi | --included | --include \
1340 | --includ | --inclu | --incl | --inc)
1341 ac_prev=includedir ;;
1342 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1343 | --includ=* | --inclu=* | --incl=* | --inc=*)
1344 includedir=$ac_optarg ;;
1346 -infodir | --infodir | --infodi | --infod | --info | --inf)
1347 ac_prev=infodir ;;
1348 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1349 infodir=$ac_optarg ;;
1351 -libdir | --libdir | --libdi | --libd)
1352 ac_prev=libdir ;;
1353 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1354 libdir=$ac_optarg ;;
1356 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1357 | --libexe | --libex | --libe)
1358 ac_prev=libexecdir ;;
1359 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1360 | --libexe=* | --libex=* | --libe=*)
1361 libexecdir=$ac_optarg ;;
1363 -localedir | --localedir | --localedi | --localed | --locale)
1364 ac_prev=localedir ;;
1365 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1366 localedir=$ac_optarg ;;
1368 -localstatedir | --localstatedir | --localstatedi | --localstated \
1369 | --localstate | --localstat | --localsta | --localst | --locals)
1370 ac_prev=localstatedir ;;
1371 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1372 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1373 localstatedir=$ac_optarg ;;
1375 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1376 ac_prev=mandir ;;
1377 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1378 mandir=$ac_optarg ;;
1380 -nfp | --nfp | --nf)
1381 # Obsolete; use --without-fp.
1382 with_fp=no ;;
1384 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1385 | --no-cr | --no-c | -n)
1386 no_create=yes ;;
1388 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1389 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1390 no_recursion=yes ;;
1392 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1393 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1394 | --oldin | --oldi | --old | --ol | --o)
1395 ac_prev=oldincludedir ;;
1396 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1397 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1398 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1399 oldincludedir=$ac_optarg ;;
1401 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1402 ac_prev=prefix ;;
1403 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1404 prefix=$ac_optarg ;;
1406 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1407 | --program-pre | --program-pr | --program-p)
1408 ac_prev=program_prefix ;;
1409 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1410 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1411 program_prefix=$ac_optarg ;;
1413 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1414 | --program-suf | --program-su | --program-s)
1415 ac_prev=program_suffix ;;
1416 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1417 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1418 program_suffix=$ac_optarg ;;
1420 -program-transform-name | --program-transform-name \
1421 | --program-transform-nam | --program-transform-na \
1422 | --program-transform-n | --program-transform- \
1423 | --program-transform | --program-transfor \
1424 | --program-transfo | --program-transf \
1425 | --program-trans | --program-tran \
1426 | --progr-tra | --program-tr | --program-t)
1427 ac_prev=program_transform_name ;;
1428 -program-transform-name=* | --program-transform-name=* \
1429 | --program-transform-nam=* | --program-transform-na=* \
1430 | --program-transform-n=* | --program-transform-=* \
1431 | --program-transform=* | --program-transfor=* \
1432 | --program-transfo=* | --program-transf=* \
1433 | --program-trans=* | --program-tran=* \
1434 | --progr-tra=* | --program-tr=* | --program-t=*)
1435 program_transform_name=$ac_optarg ;;
1437 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1438 ac_prev=pdfdir ;;
1439 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1440 pdfdir=$ac_optarg ;;
1442 -psdir | --psdir | --psdi | --psd | --ps)
1443 ac_prev=psdir ;;
1444 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1445 psdir=$ac_optarg ;;
1447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1448 | -silent | --silent | --silen | --sile | --sil)
1449 silent=yes ;;
1451 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1452 ac_prev=sbindir ;;
1453 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1454 | --sbi=* | --sb=*)
1455 sbindir=$ac_optarg ;;
1457 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1458 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1459 | --sharedst | --shareds | --shared | --share | --shar \
1460 | --sha | --sh)
1461 ac_prev=sharedstatedir ;;
1462 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1463 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1464 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1465 | --sha=* | --sh=*)
1466 sharedstatedir=$ac_optarg ;;
1468 -site | --site | --sit)
1469 ac_prev=site ;;
1470 -site=* | --site=* | --sit=*)
1471 site=$ac_optarg ;;
1473 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1474 ac_prev=srcdir ;;
1475 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1476 srcdir=$ac_optarg ;;
1478 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1479 | --syscon | --sysco | --sysc | --sys | --sy)
1480 ac_prev=sysconfdir ;;
1481 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1482 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1483 sysconfdir=$ac_optarg ;;
1485 -target | --target | --targe | --targ | --tar | --ta | --t)
1486 ac_prev=target_alias ;;
1487 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1488 target_alias=$ac_optarg ;;
1490 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1491 verbose=yes ;;
1493 -version | --version | --versio | --versi | --vers | -V)
1494 ac_init_version=: ;;
1496 -with-* | --with-*)
1497 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1498 # Reject names that are not valid shell variable names.
1499 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1500 as_fn_error $? "invalid package name: $ac_useropt"
1501 ac_useropt_orig=$ac_useropt
1502 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1503 case $ac_user_opts in
1505 "with_$ac_useropt"
1506 "*) ;;
1507 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1508 ac_unrecognized_sep=', ';;
1509 esac
1510 eval with_$ac_useropt=\$ac_optarg ;;
1512 -without-* | --without-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516 as_fn_error $? "invalid package name: $ac_useropt"
1517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1521 "with_$ac_useropt"
1522 "*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval with_$ac_useropt=no ;;
1528 --x)
1529 # Obsolete; use --with-x.
1530 with_x=yes ;;
1532 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1533 | --x-incl | --x-inc | --x-in | --x-i)
1534 ac_prev=x_includes ;;
1535 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1536 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1537 x_includes=$ac_optarg ;;
1539 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1540 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1541 ac_prev=x_libraries ;;
1542 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1543 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1544 x_libraries=$ac_optarg ;;
1546 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1547 Try \`$0 --help' for more information"
1550 *=*)
1551 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1552 # Reject names that are not valid shell variable names.
1553 case $ac_envvar in #(
1554 '' | [0-9]* | *[!_$as_cr_alnum]* )
1555 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1556 esac
1557 eval $ac_envvar=\$ac_optarg
1558 export $ac_envvar ;;
1561 # FIXME: should be removed in autoconf 3.0.
1562 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1563 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1564 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1565 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1568 esac
1569 done
1571 if test -n "$ac_prev"; then
1572 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1573 as_fn_error $? "missing argument to $ac_option"
1576 if test -n "$ac_unrecognized_opts"; then
1577 case $enable_option_checking in
1578 no) ;;
1579 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1580 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1581 esac
1584 # Check all directory arguments for consistency.
1585 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1586 datadir sysconfdir sharedstatedir localstatedir includedir \
1587 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1588 libdir localedir mandir
1590 eval ac_val=\$$ac_var
1591 # Remove trailing slashes.
1592 case $ac_val in
1593 */ )
1594 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1595 eval $ac_var=\$ac_val;;
1596 esac
1597 # Be sure to have absolute directory names.
1598 case $ac_val in
1599 [\\/$]* | ?:[\\/]* ) continue;;
1600 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1601 esac
1602 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1603 done
1605 # There might be people who depend on the old broken behavior: `$host'
1606 # used to hold the argument of --host etc.
1607 # FIXME: To remove some day.
1608 build=$build_alias
1609 host=$host_alias
1610 target=$target_alias
1612 # FIXME: To remove some day.
1613 if test "x$host_alias" != x; then
1614 if test "x$build_alias" = x; then
1615 cross_compiling=maybe
1616 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1617 If a cross compiler is detected then cross compile mode will be used" >&2
1618 elif test "x$build_alias" != "x$host_alias"; then
1619 cross_compiling=yes
1623 ac_tool_prefix=
1624 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1626 test "$silent" = yes && exec 6>/dev/null
1629 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1630 ac_ls_di=`ls -di .` &&
1631 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1632 as_fn_error $? "working directory cannot be determined"
1633 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1634 as_fn_error $? "pwd does not report name of working directory"
1637 # Find the source files, if location was not specified.
1638 if test -z "$srcdir"; then
1639 ac_srcdir_defaulted=yes
1640 # Try the directory containing this script, then the parent directory.
1641 ac_confdir=`$as_dirname -- "$as_myself" ||
1642 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1643 X"$as_myself" : 'X\(//\)[^/]' \| \
1644 X"$as_myself" : 'X\(//\)$' \| \
1645 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1646 $as_echo X"$as_myself" |
1647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1648 s//\1/
1651 /^X\(\/\/\)[^/].*/{
1652 s//\1/
1655 /^X\(\/\/\)$/{
1656 s//\1/
1659 /^X\(\/\).*/{
1660 s//\1/
1663 s/.*/./; q'`
1664 srcdir=$ac_confdir
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666 srcdir=..
1668 else
1669 ac_srcdir_defaulted=no
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1673 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1675 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1676 ac_abs_confdir=`(
1677 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1678 pwd)`
1679 # When building in place, set srcdir=.
1680 if test "$ac_abs_confdir" = "$ac_pwd"; then
1681 srcdir=.
1683 # Remove unnecessary trailing slashes from srcdir.
1684 # Double slashes in file names in object file debugging info
1685 # mess up M-x gdb in Emacs.
1686 case $srcdir in
1687 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1688 esac
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1691 eval ac_env_${ac_var}_value=\$${ac_var}
1692 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1693 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1694 done
1697 # Report the --help message.
1699 if test "$ac_init_help" = "long"; then
1700 # Omit some internal or obsolete options to make the list less imposing.
1701 # This message is too long to be a string in the A/UX 3.1 sh.
1702 cat <<_ACEOF
1703 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1705 Usage: $0 [OPTION]... [VAR=VALUE]...
1707 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1708 VAR=VALUE. See below for descriptions of some of the useful variables.
1710 Defaults for the options are specified in brackets.
1712 Configuration:
1713 -h, --help display this help and exit
1714 --help=short display options specific to this package
1715 --help=recursive display the short help of all the included packages
1716 -V, --version display version information and exit
1717 -q, --quiet, --silent do not print \`checking ...' messages
1718 --cache-file=FILE cache test results in FILE [disabled]
1719 -C, --config-cache alias for \`--cache-file=config.cache'
1720 -n, --no-create do not create output files
1721 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1723 Installation directories:
1724 --prefix=PREFIX install architecture-independent files in PREFIX
1725 [$ac_default_prefix]
1726 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1727 [PREFIX]
1729 By default, \`make install' will install all the files in
1730 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1731 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1732 for instance \`--prefix=\$HOME'.
1734 For better control, use the options below.
1736 Fine tuning of the installation directories:
1737 --bindir=DIR user executables [EPREFIX/bin]
1738 --sbindir=DIR system admin executables [EPREFIX/sbin]
1739 --libexecdir=DIR program executables [EPREFIX/libexec]
1740 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1741 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1742 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1743 --libdir=DIR object code libraries [EPREFIX/lib]
1744 --includedir=DIR C header files [PREFIX/include]
1745 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1746 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1747 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1748 --infodir=DIR info documentation [DATAROOTDIR/info]
1749 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1750 --mandir=DIR man documentation [DATAROOTDIR/man]
1751 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1752 --htmldir=DIR html documentation [DOCDIR]
1753 --dvidir=DIR dvi documentation [DOCDIR]
1754 --pdfdir=DIR pdf documentation [DOCDIR]
1755 --psdir=DIR ps documentation [DOCDIR]
1756 _ACEOF
1758 cat <<\_ACEOF
1760 Program names:
1761 --program-prefix=PREFIX prepend PREFIX to installed program names
1762 --program-suffix=SUFFIX append SUFFIX to installed program names
1763 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1765 X features:
1766 --x-includes=DIR X include files are in DIR
1767 --x-libraries=DIR X library files are in DIR
1769 System types:
1770 --build=BUILD configure for building on BUILD [guessed]
1771 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1772 _ACEOF
1775 if test -n "$ac_init_help"; then
1776 case $ac_init_help in
1777 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1778 esac
1779 cat <<\_ACEOF
1781 Optional Features:
1782 --disable-option-checking ignore unrecognized --enable/--with options
1783 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1784 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1785 --disable-ns-self-contained
1786 disable self contained build under NeXTstep
1787 --enable-asserts compile code with asserts enabled
1788 --enable-maintainer-mode
1789 enable make rules and dependencies not useful (and
1790 sometimes confusing) to the casual installer
1791 --enable-locallisppath=PATH
1792 directories Emacs should search for lisp files
1793 specific to this site
1794 --enable-checking[=LIST]
1795 enable expensive run-time checks. With LIST, enable
1796 only specific categories of checks. Categories are:
1797 all,yes,no. Flags are: stringbytes, stringoverrun,
1798 stringfreelist, xmallocoverrun, conslist
1799 --enable-use-lisp-union-type
1800 use a union for the Lisp_Object data type. This is
1801 only useful for development for catching certain
1802 types of bugs.
1803 --enable-profiling build emacs with profiling support. This might not
1804 work on all platforms
1805 --enable-autodepend automatically generate dependencies to .h-files.
1806 Requires GNU Make and Gcc. Enabled if GNU Make and
1807 Gcc is found
1808 --disable-dependency-tracking speeds up one-time build
1809 --enable-dependency-tracking do not reject slow dependency extractors
1810 --disable-largefile omit support for large files
1812 Optional Packages:
1813 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1814 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1815 --without-pop don't support POP mail retrieval with movemail
1816 --with-kerberos support Kerberos-authenticated POP
1817 --with-kerberos5 support Kerberos version 5 authenticated POP
1818 --with-hesiod support Hesiod to get the POP server host
1819 --with-mmdf support MMDF mailboxes
1820 --with-mail-unlink unlink, rather than empty, mail spool after reading
1821 --with-mailhost=HOSTNAME
1822 string giving default POP mail host
1823 --without-sound don't compile with sound support
1824 --without-sync-input process async input synchronously
1825 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1826 lucid or athena, motif, no)
1827 --without-xpm don't compile with XPM image support
1828 --without-jpeg don't compile with JPEG image support
1829 --without-tiff don't compile with TIFF image support
1830 --without-gif don't compile with GIF image support
1831 --without-png don't compile with PNG image support
1832 --without-rsvg don't compile with SVG image support
1833 --without-xml2 don't compile with XML parsing support
1834 --without-imagemagick don't compile with ImageMagick image support
1835 --without-xft don't use XFT for anti aliased fonts
1836 --without-libotf don't use libotf for OpenType font support
1837 --without-m17n-flt don't use m17n-flt for text shaping
1838 --without-toolkit-scroll-bars
1839 don't use Motif or Xaw3d scroll bars
1840 --without-xaw3d don't use Xaw3d
1841 --without-xim don't use X11 XIM
1842 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1843 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1844 console
1845 --without-dbus don't compile with D-Bus support
1846 --without-gconf don't compile with GConf support
1847 --without-selinux don't compile with SELinux support
1848 --without-gnutls don't use -lgnutls for SSL/TLS support
1849 --without-makeinfo don't require makeinfo for building manuals
1850 --without-compress-info don't compress the installed Info pages
1851 --with-pkg-config-prog=PATH
1852 path to pkg-config for finding GTK and librsvg
1853 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1854 /usr/lib, or /usr/lib64 on some platforms.
1855 --with-gameuser=USER user for shared game score files
1856 --with-gnustep-conf=PATH
1857 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1858 or /etc/GNUstep/GNUstep.conf
1859 --with-x use the X Window System
1861 Some influential environment variables:
1862 CC C compiler command
1863 CFLAGS C compiler flags
1864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1865 nonstandard directory <lib dir>
1866 LIBS libraries to pass to the linker, e.g. -l<library>
1867 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1868 you have headers in a nonstandard directory <include dir>
1869 CPP C preprocessor
1870 XMKMF Path to xmkmf, Makefile generator for X Window System
1872 Use these variables to override the choices made by `configure' or to help
1873 it to find libraries and programs with nonstandard names/locations.
1875 Report bugs to the package provider.
1876 _ACEOF
1877 ac_status=$?
1880 if test "$ac_init_help" = "recursive"; then
1881 # If there are subdirs, report their specific --help.
1882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1883 test -d "$ac_dir" ||
1884 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1885 continue
1886 ac_builddir=.
1888 case "$ac_dir" in
1889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1892 # A ".." for each directory in $ac_dir_suffix.
1893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1894 case $ac_top_builddir_sub in
1895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1897 esac ;;
1898 esac
1899 ac_abs_top_builddir=$ac_pwd
1900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1901 # for backward compatibility:
1902 ac_top_builddir=$ac_top_build_prefix
1904 case $srcdir in
1905 .) # We are building in place.
1906 ac_srcdir=.
1907 ac_top_srcdir=$ac_top_builddir_sub
1908 ac_abs_top_srcdir=$ac_pwd ;;
1909 [\\/]* | ?:[\\/]* ) # Absolute name.
1910 ac_srcdir=$srcdir$ac_dir_suffix;
1911 ac_top_srcdir=$srcdir
1912 ac_abs_top_srcdir=$srcdir ;;
1913 *) # Relative name.
1914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1915 ac_top_srcdir=$ac_top_build_prefix$srcdir
1916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1917 esac
1918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1920 cd "$ac_dir" || { ac_status=$?; continue; }
1921 # Check for guested configure.
1922 if test -f "$ac_srcdir/configure.gnu"; then
1923 echo &&
1924 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1925 elif test -f "$ac_srcdir/configure"; then
1926 echo &&
1927 $SHELL "$ac_srcdir/configure" --help=recursive
1928 else
1929 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1930 fi || ac_status=$?
1931 cd "$ac_pwd" || { ac_status=$?; break; }
1932 done
1935 test -n "$ac_init_help" && exit $ac_status
1936 if $ac_init_version; then
1937 cat <<\_ACEOF
1938 emacs configure 24.0.50
1939 generated by GNU Autoconf 2.67
1941 Copyright (C) 2010 Free Software Foundation, Inc.
1942 This configure script is free software; the Free Software Foundation
1943 gives unlimited permission to copy, distribute and modify it.
1944 _ACEOF
1945 exit
1948 ## ------------------------ ##
1949 ## Autoconf initialization. ##
1950 ## ------------------------ ##
1952 # ac_fn_c_try_compile LINENO
1953 # --------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_c_try_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_c_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=1
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_c_try_compile
1990 # ac_fn_c_try_cpp LINENO
1991 # ----------------------
1992 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_cpp ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_cpp conftest.$ac_ext"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } > conftest.i && {
2012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2013 test ! -s conftest.err
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 ac_retval=1
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 as_fn_set_status $ac_retval
2025 } # ac_fn_c_try_cpp
2027 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2028 # -------------------------------------------------------
2029 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2030 # the include files in INCLUDES and setting the cache variable VAR
2031 # accordingly.
2032 ac_fn_c_check_header_mongrel ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if eval "test \"\${$3+set}\"" = set; then :
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval "test \"\${$3+set}\"" = set; then :
2039 $as_echo_n "(cached) " >&6
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 else
2045 # Is the header compilable?
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2047 $as_echo_n "checking $2 usability... " >&6; }
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 #include <$2>
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_header_compiler=yes
2055 else
2056 ac_header_compiler=no
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2060 $as_echo "$ac_header_compiler" >&6; }
2062 # Is the header present?
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2064 $as_echo_n "checking $2 presence... " >&6; }
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 #include <$2>
2068 _ACEOF
2069 if ac_fn_c_try_cpp "$LINENO"; then :
2070 ac_header_preproc=yes
2071 else
2072 ac_header_preproc=no
2074 rm -f conftest.err conftest.i conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2076 $as_echo "$ac_header_preproc" >&6; }
2078 # So? What about this header?
2079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2080 yes:no: )
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2082 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 no:yes:* )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2088 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2090 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2092 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2094 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 esac
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval "test \"\${$3+set}\"" = set; then :
2102 $as_echo_n "(cached) " >&6
2103 else
2104 eval "$3=\$ac_header_compiler"
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_header_mongrel
2114 # ac_fn_c_try_run LINENO
2115 # ----------------------
2116 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2117 # that executables *can* be run.
2118 ac_fn_c_try_run ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { { ac_try="$ac_link"
2122 case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_link") 2>&5
2129 ac_status=$?
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2132 { { case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_try") 2>&5
2139 ac_status=$?
2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; }; }; then :
2142 ac_retval=0
2143 else
2144 $as_echo "$as_me: program exited with status $ac_status" >&5
2145 $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2148 ac_retval=$ac_status
2150 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 as_fn_set_status $ac_retval
2154 } # ac_fn_c_try_run
2156 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2157 # -------------------------------------------------------
2158 # Tests whether HEADER exists and can be compiled using the include files in
2159 # INCLUDES, setting the cache variable VAR accordingly.
2160 ac_fn_c_check_header_compile ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval "test \"\${$3+set}\"" = set; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2171 #include <$2>
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 eval "$3=yes"
2175 else
2176 eval "$3=no"
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 } # ac_fn_c_check_header_compile
2187 # ac_fn_c_try_link LINENO
2188 # -----------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_c_try_link ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 rm -f conftest.$ac_objext conftest$ac_exeext
2194 if { { ac_try="$ac_link"
2195 case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_link") 2>conftest.err
2202 ac_status=$?
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest$ac_exeext && {
2213 test "$cross_compiling" = yes ||
2214 $as_test_x conftest$ac_exeext
2215 }; then :
2216 ac_retval=0
2217 else
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 ac_retval=1
2223 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225 # interfere with the next link command; also delete a directory that is
2226 # left behind by Apple's compiler. We do this before executing the actions.
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_c_try_link
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 # accordingly.
2237 ac_fn_c_check_decl ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 as_decl_name=`echo $2|sed 's/ *(.*//'`
2241 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval "test \"\${$3+set}\"" = set; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 #ifndef $as_decl_name
2254 #ifdef __cplusplus
2255 (void) $as_decl_use;
2256 #else
2257 (void) $as_decl_name;
2258 #endif
2259 #endif
2262 return 0;
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 eval "$3=yes"
2267 else
2268 eval "$3=no"
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_decl
2279 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2280 # ----------------------------------------------
2281 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2282 ac_fn_c_check_header_preproc ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval "test \"\${$3+set}\"" = set; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 #include <$2>
2293 _ACEOF
2294 if ac_fn_c_try_cpp "$LINENO"; then :
2295 eval "$3=yes"
2296 else
2297 eval "$3=no"
2299 rm -f conftest.err conftest.i conftest.$ac_ext
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_header_preproc
2308 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2309 # ----------------------------------------------------
2310 # Tries to find if the field MEMBER exists in type AGGR, after including
2311 # INCLUDES, setting cache variable VAR accordingly.
2312 ac_fn_c_check_member ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2316 $as_echo_n "checking for $2.$3... " >&6; }
2317 if eval "test \"\${$4+set}\"" = set; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2324 main ()
2326 static $2 ac_aggr;
2327 if (ac_aggr.$3)
2328 return 0;
2330 return 0;
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$4=yes"
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2340 main ()
2342 static $2 ac_aggr;
2343 if (sizeof ac_aggr.$3)
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$4=yes"
2351 else
2352 eval "$4=no"
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 eval ac_res=\$$4
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 } # ac_fn_c_check_member
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if eval "test \"\${$3+set}\"" = set; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2387 #ifdef __STDC__
2388 # include <limits.h>
2389 #else
2390 # include <assert.h>
2391 #endif
2393 #undef $2
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2398 #ifdef __cplusplus
2399 extern "C"
2400 #endif
2401 char $2 ();
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2406 choke me
2407 #endif
2410 main ()
2412 return $2 ();
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_link "$LINENO"; then :
2418 eval "$3=yes"
2419 else
2420 eval "$3=no"
2422 rm -f core conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_check_func
2432 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2433 # -------------------------------------------
2434 # Tests whether TYPE exists after having included INCLUDES, setting cache
2435 # variable VAR accordingly.
2436 ac_fn_c_check_type ()
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2440 $as_echo_n "checking for $2... " >&6; }
2441 if eval "test \"\${$3+set}\"" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 eval "$3=no"
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2449 main ()
2451 if (sizeof ($2))
2452 return 0;
2454 return 0;
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 main ()
2464 if (sizeof (($2)))
2465 return 0;
2467 return 0;
2469 _ACEOF
2470 if ac_fn_c_try_compile "$LINENO"; then :
2472 else
2473 eval "$3=yes"
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_type
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 # computed
2491 ac_fn_c_compute_int ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 main ()
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2503 test_array [0] = 0
2506 return 0;
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_lo=0 ac_mid=0
2511 while :; do
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2516 main ()
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 test_array [0] = 0
2522 return 0;
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2527 else
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2530 ac_lo= ac_hi=
2531 break
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 done
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2544 static int test_array [1 - 2 * !(($2) < 0)];
2545 test_array [0] = 0
2548 return 0;
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552 ac_hi=-1 ac_mid=-1
2553 while :; do
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 main ()
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 test_array [0] = 0
2564 return 0;
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2569 else
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2572 ac_lo= ac_hi=
2573 break
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 done
2579 else
2580 ac_lo= ac_hi=
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2592 main ()
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2598 return 0;
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 ac_hi=$ac_mid
2603 else
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 case $ac_lo in #((
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2610 '') ac_retval=1 ;;
2611 esac
2612 else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2618 #include <stdio.h>
2619 #include <stdlib.h>
2621 main ()
2624 FILE *f = fopen ("conftest.val", "w");
2625 if (! f)
2626 return 1;
2627 if (($2) < 0)
2629 long int i = longval ();
2630 if (i != ($2))
2631 return 1;
2632 fprintf (f, "%ld", i);
2634 else
2636 unsigned long int i = ulongval ();
2637 if (i != ($2))
2638 return 1;
2639 fprintf (f, "%lu", i);
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2651 else
2652 ac_retval=1
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2656 rm -f conftest.val
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 as_fn_set_status $ac_retval
2662 } # ac_fn_c_compute_int
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by emacs $as_me 24.0.50, which was
2668 generated by GNU Autoconf 2.67. Invocation command line was
2670 $ $0 $@
2672 _ACEOF
2673 exec 5>>config.log
2675 cat <<_ASUNAME
2676 ## --------- ##
2677 ## Platform. ##
2678 ## --------- ##
2680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 _ASUNAME
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2705 done
2706 IFS=$as_save_IFS
2708 } >&5
2710 cat >&5 <<_ACEOF
2713 ## ----------- ##
2714 ## Core tests. ##
2715 ## ----------- ##
2717 _ACEOF
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_configure_args=
2726 ac_configure_args0=
2727 ac_configure_args1=
2728 ac_must_keep_next=false
2729 for ac_pass in 1 2
2731 for ac_arg
2733 case $ac_arg in
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2737 continue ;;
2738 *\'*)
2739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 esac
2741 case $ac_pass in
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2747 else
2748 case $ac_arg in
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 esac
2757 -* ) ac_must_keep_next=true ;;
2758 esac
2760 as_fn_append ac_configure_args " '$ac_arg'"
2762 esac
2763 done
2764 done
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2776 echo
2778 $as_echo "## ---------------- ##
2779 ## Cache variables. ##
2780 ## ---------------- ##"
2781 echo
2782 # The following way of writing the cache mishandles newlines in values,
2784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2785 eval ac_val=\$$ac_var
2786 case $ac_val in #(
2787 *${as_nl}*)
2788 case $ac_var in #(
2789 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2791 esac
2792 case $ac_var in #(
2793 _ | IFS | as_nl) ;; #(
2794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795 *) { eval $ac_var=; unset $ac_var;} ;;
2796 esac ;;
2797 esac
2798 done
2799 (set) 2>&1 |
2800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2801 *${as_nl}ac_space=\ *)
2802 sed -n \
2803 "s/'\''/'\''\\\\'\'''\''/g;
2804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2805 ;; #(
2807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 esac |
2810 sort
2812 echo
2814 $as_echo "## ----------------- ##
2815 ## Output variables. ##
2816 ## ----------------- ##"
2817 echo
2818 for ac_var in $ac_subst_vars
2820 eval ac_val=\$$ac_var
2821 case $ac_val in
2822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 esac
2824 $as_echo "$ac_var='\''$ac_val'\''"
2825 done | sort
2826 echo
2828 if test -n "$ac_subst_files"; then
2829 $as_echo "## ------------------- ##
2830 ## File substitutions. ##
2831 ## ------------------- ##"
2832 echo
2833 for ac_var in $ac_subst_files
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2844 if test -s confdefs.h; then
2845 $as_echo "## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##"
2848 echo
2849 cat confdefs.h
2850 echo
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902 # We do not want a PATH search for config.site.
2903 case $CONFIG_SITE in #((
2904 -*) ac_site_file1=./$CONFIG_SITE;;
2905 */*) ac_site_file1=$CONFIG_SITE;;
2906 *) ac_site_file1=./$CONFIG_SITE;;
2907 esac
2908 elif test "x$prefix" != xNONE; then
2909 ac_site_file1=$prefix/share/config.site
2910 ac_site_file2=$prefix/etc/config.site
2911 else
2912 ac_site_file1=$ac_default_prefix/share/config.site
2913 ac_site_file2=$ac_default_prefix/etc/config.site
2915 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 test "x$ac_site_file" = xNONE && continue
2918 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2920 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2921 sed 's/^/| /' "$ac_site_file" >&5
2922 . "$ac_site_file" \
2923 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925 as_fn_error $? "failed to load site script $ac_site_file
2926 See \`config.log' for more details" "$LINENO" 5 ; }
2928 done
2930 if test -r "$cache_file"; then
2931 # Some versions of bash will fail to source /dev/null (special files
2932 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2933 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2935 $as_echo "$as_me: loading cache $cache_file" >&6;}
2936 case $cache_file in
2937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2938 *) . "./$cache_file";;
2939 esac
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2943 $as_echo "$as_me: creating cache $cache_file" >&6;}
2944 >$cache_file
2947 as_fn_append ac_header_list " stdlib.h"
2948 as_fn_append ac_header_list " unistd.h"
2949 as_fn_append ac_header_list " sys/param.h"
2950 gl_getopt_required=GNU
2951 as_fn_append ac_header_list " getopt.h"
2952 as_fn_append ac_func_list " lstat"
2953 as_fn_append ac_func_list " alarm"
2954 as_fn_append ac_func_list " readlink"
2955 as_fn_append ac_header_list " wchar.h"
2956 as_fn_append ac_header_list " stdint.h"
2957 as_fn_append ac_func_list " tzset"
2958 as_fn_append ac_func_list " symlink"
2959 as_fn_append ac_header_list " sys/stat.h"
2960 as_fn_append ac_header_list " sys/time.h"
2961 as_fn_append ac_func_list " localtime_r"
2962 # Check that the precious variables saved in the cache have kept the same
2963 # value.
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2971 set,)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2975 ,set)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,);;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x $ac_old_val`
2984 ac_new_val_w=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted=:
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2998 fi;;
2999 esac
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3002 case $ac_new_val in
3003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3005 esac
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3009 esac
3011 done
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3033 am__api_version='1.11'
3035 ac_aux_dir=
3036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3037 if test -f "$ac_dir/install-sh"; then
3038 ac_aux_dir=$ac_dir
3039 ac_install_sh="$ac_aux_dir/install-sh -c"
3040 break
3041 elif test -f "$ac_dir/install.sh"; then
3042 ac_aux_dir=$ac_dir
3043 ac_install_sh="$ac_aux_dir/install.sh -c"
3044 break
3045 elif test -f "$ac_dir/shtool"; then
3046 ac_aux_dir=$ac_dir
3047 ac_install_sh="$ac_aux_dir/shtool install -c"
3048 break
3050 done
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3064 # Find a good install program. We prefer a C program (faster),
3065 # so one script is as good as another. But avoid the broken or
3066 # incompatible versions:
3067 # SysV /etc/install, /usr/sbin/install
3068 # SunOS /usr/etc/install
3069 # IRIX /sbin/install
3070 # AIX /bin/install
3071 # AmigaOS /C/install, which installs bootblocks on floppy discs
3072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3075 # OS/2's system install, which has a completely different semantic
3076 # ./install, which can be erroneously created by make from ./install.sh.
3077 # Reject install programs that cannot install multiple files.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3079 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3080 if test -z "$INSTALL"; then
3081 if test "${ac_cv_path_install+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 # Account for people who put trailing slashes in PATH elements.
3090 case $as_dir/ in #((
3091 ./ | .// | /[cC]/* | \
3092 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3093 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3094 /usr/ucb/* ) ;;
3096 # OSF1 and SCO ODT 3.0 have their own names for install.
3097 # Don't use installbsd from OSF since it installs stuff as root
3098 # by default.
3099 for ac_prog in ginstall scoinst install; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3102 if test $ac_prog = install &&
3103 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104 # AIX install. It has an incompatible calling convention.
3106 elif test $ac_prog = install &&
3107 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # program-specific install script used by HP pwplus--don't use.
3110 else
3111 rm -rf conftest.one conftest.two conftest.dir
3112 echo one > conftest.one
3113 echo two > conftest.two
3114 mkdir conftest.dir
3115 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3116 test -s conftest.one && test -s conftest.two &&
3117 test -s conftest.dir/conftest.one &&
3118 test -s conftest.dir/conftest.two
3119 then
3120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3121 break 3
3125 done
3126 done
3128 esac
3130 done
3131 IFS=$as_save_IFS
3133 rm -rf conftest.one conftest.two conftest.dir
3136 if test "${ac_cv_path_install+set}" = set; then
3137 INSTALL=$ac_cv_path_install
3138 else
3139 # As a last resort, use the slow shell script. Don't cache a
3140 # value for INSTALL within a source directory, because that will
3141 # break other packages using the cache if that directory is
3142 # removed, or if the value is a relative name.
3143 INSTALL=$ac_install_sh
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3147 $as_echo "$INSTALL" >&6; }
3149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3150 # It thinks the first close brace ends the variable substitution.
3151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3158 $as_echo_n "checking whether build environment is sane... " >&6; }
3159 # Just in case
3160 sleep 1
3161 echo timestamp > conftest.file
3162 # Reject unsafe characters in $srcdir or the absolute working directory
3163 # name. Accept space and tab only in the latter.
3164 am_lf='
3166 case `pwd` in
3167 *[\\\"\#\$\&\'\`$am_lf]*)
3168 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3169 esac
3170 case $srcdir in
3171 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3172 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3173 esac
3175 # Do `set' in a subshell so we don't clobber the current shell's
3176 # arguments. Must try -L first in case configure is actually a
3177 # symlink; some systems play weird games with the mod time of symlinks
3178 # (eg FreeBSD returns the mod time of the symlink's containing
3179 # directory).
3180 if (
3181 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3182 if test "$*" = "X"; then
3183 # -L didn't work.
3184 set X `ls -t "$srcdir/configure" conftest.file`
3186 rm -f conftest.file
3187 if test "$*" != "X $srcdir/configure conftest.file" \
3188 && test "$*" != "X conftest.file $srcdir/configure"; then
3190 # If neither matched, then we have a broken ls. This can happen
3191 # if, for instance, CONFIG_SHELL is bash and it inherits a
3192 # broken ls alias from the environment. This has actually
3193 # happened. Such a system could not be considered "sane".
3194 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3195 alias in your environment" "$LINENO" 5
3198 test "$2" = conftest.file
3200 then
3201 # Ok.
3203 else
3204 as_fn_error $? "newly created file is older than distributed files!
3205 Check your system clock" "$LINENO" 5
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3209 test "$program_prefix" != NONE &&
3210 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3211 # Use a double $ so make ignores it.
3212 test "$program_suffix" != NONE &&
3213 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3214 # Double any \ or $.
3215 # By default was `s,x,x', remove it if useless.
3216 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3217 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3219 # expand $ac_aux_dir to an absolute path
3220 am_aux_dir=`cd $ac_aux_dir && pwd`
3222 if test x"${MISSING+set}" != xset; then
3223 case $am_aux_dir in
3224 *\ * | *\ *)
3225 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3227 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3228 esac
3230 # Use eval to expand $SHELL
3231 if eval "$MISSING --run true"; then
3232 am_missing_run="$MISSING --run "
3233 else
3234 am_missing_run=
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3236 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3239 if test x"${install_sh}" != xset; then
3240 case $am_aux_dir in
3241 *\ * | *\ *)
3242 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3244 install_sh="\${SHELL} $am_aux_dir/install-sh"
3245 esac
3248 # Installed binaries are usually stripped using `strip' when the user
3249 # run `make install-strip'. However `strip' might not be the right
3250 # tool to use in cross-compilation environments, therefore Automake
3251 # will honor the `STRIP' environment variable to overrule this program.
3252 if test "$cross_compiling" != no; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}strip; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_STRIP+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$STRIP"; then
3262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3275 done
3276 done
3277 IFS=$as_save_IFS
3281 STRIP=$ac_cv_prog_STRIP
3282 if test -n "$STRIP"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3284 $as_echo "$STRIP" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3292 if test -z "$ac_cv_prog_STRIP"; then
3293 ac_ct_STRIP=$STRIP
3294 # Extract the first word of "strip", so it can be a program name with args.
3295 set dummy strip; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$ac_ct_STRIP"; then
3302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_ac_ct_STRIP="strip"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3322 if test -n "$ac_ct_STRIP"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3324 $as_echo "$ac_ct_STRIP" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3330 if test "x$ac_ct_STRIP" = x; then
3331 STRIP=":"
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 STRIP=$ac_ct_STRIP
3341 else
3342 STRIP="$ac_cv_prog_STRIP"
3346 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3349 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3350 if test -z "$MKDIR_P"; then
3351 if test "${ac_cv_path_mkdir+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_prog in mkdir gmkdir; do
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3362 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3363 'mkdir (GNU coreutils) '* | \
3364 'mkdir (coreutils) '* | \
3365 'mkdir (fileutils) '4.1*)
3366 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3367 break 3;;
3368 esac
3369 done
3370 done
3371 done
3372 IFS=$as_save_IFS
3376 test -d ./--version && rmdir ./--version
3377 if test "${ac_cv_path_mkdir+set}" = set; then
3378 MKDIR_P="$ac_cv_path_mkdir -p"
3379 else
3380 # As a last resort, use the slow shell script. Don't cache a
3381 # value for MKDIR_P within a source directory, because that will
3382 # break other packages using the cache if that directory is
3383 # removed, or if the value is a relative name.
3384 MKDIR_P="$ac_install_sh -d"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3388 $as_echo "$MKDIR_P" >&6; }
3391 mkdir_p="$MKDIR_P"
3392 case $mkdir_p in
3393 [\\/$]* | ?:[\\/]*) ;;
3394 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3395 esac
3397 for ac_prog in gawk mawk nawk awk
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_AWK+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$AWK"; then
3407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_AWK="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3422 IFS=$as_save_IFS
3426 AWK=$ac_cv_prog_AWK
3427 if test -n "$AWK"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3429 $as_echo "$AWK" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$AWK" && break
3437 done
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3440 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3441 set x ${MAKE-make}
3442 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3443 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat >conftest.make <<\_ACEOF
3447 SHELL = /bin/sh
3448 all:
3449 @echo '@@@%%%=$(MAKE)=@@@%%%'
3450 _ACEOF
3451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3452 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3453 *@@@%%%=?*=@@@%%%*)
3454 eval ac_cv_prog_make_${ac_make}_set=yes;;
3456 eval ac_cv_prog_make_${ac_make}_set=no;;
3457 esac
3458 rm -f conftest.make
3460 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 SET_MAKE=
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 SET_MAKE="MAKE=${MAKE-make}"
3470 rm -rf .tst 2>/dev/null
3471 mkdir .tst 2>/dev/null
3472 if test -d .tst; then
3473 am__leading_dot=.
3474 else
3475 am__leading_dot=_
3477 rmdir .tst 2>/dev/null
3479 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3480 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3481 # is not polluted with repeated "-I."
3482 am__isrc=' -I$(srcdir)'
3483 # test to see if srcdir already configured
3484 if test -f $srcdir/config.status; then
3485 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3489 # test whether we have cygpath
3490 if test -z "$CYGPATH_W"; then
3491 if (cygpath --version) >/dev/null 2>/dev/null; then
3492 CYGPATH_W='cygpath -w'
3493 else
3494 CYGPATH_W=echo
3499 # Define the identity of the package.
3500 PACKAGE='emacs'
3501 VERSION='24.0.50'
3504 cat >>confdefs.h <<_ACEOF
3505 #define PACKAGE "$PACKAGE"
3506 _ACEOF
3509 cat >>confdefs.h <<_ACEOF
3510 #define VERSION "$VERSION"
3511 _ACEOF
3513 # Some tools Automake needs.
3515 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3518 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3521 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3524 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3527 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3529 # We need awk for the "check" target. The system "awk" is bad on
3530 # some platforms.
3531 # Always define AMTAR for backward compatibility.
3533 AMTAR=${AMTAR-"${am_missing_run}tar"}
3535 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3544 lispdir='${datadir}/emacs/${version}/lisp'
3545 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3546 '${datadir}/emacs/site-lisp'
3547 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3548 etcdir='${datadir}/emacs/${version}/etc'
3549 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3550 docdir='${datadir}/emacs/${version}/etc'
3551 gamedir='${localstatedir}/games/emacs'
3556 # Check whether --with-pop was given.
3557 if test "${with_pop+set}" = set; then :
3558 withval=$with_pop;
3559 else
3560 with_pop=yes
3563 if test "$with_pop" = yes; then
3564 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3569 # Check whether --with-kerberos was given.
3570 if test "${with_kerberos+set}" = set; then :
3571 withval=$with_kerberos;
3572 else
3573 with_kerberos=no
3576 if test "$with_kerberos" != no; then
3577 $as_echo "#define KERBEROS 1" >>confdefs.h
3582 # Check whether --with-kerberos5 was given.
3583 if test "${with_kerberos5+set}" = set; then :
3584 withval=$with_kerberos5;
3585 else
3586 with_kerberos5=no
3589 if test "${with_kerberos5}" != no; then
3590 if test "${with_kerberos}" = no; then
3591 with_kerberos=yes
3592 $as_echo "#define KERBEROS 1" >>confdefs.h
3596 $as_echo "#define KERBEROS5 1" >>confdefs.h
3601 # Check whether --with-hesiod was given.
3602 if test "${with_hesiod+set}" = set; then :
3603 withval=$with_hesiod;
3604 else
3605 with_hesiod=no
3608 if test "$with_hesiod" != no; then
3610 $as_echo "#define HESIOD 1" >>confdefs.h
3615 # Check whether --with-mmdf was given.
3616 if test "${with_mmdf+set}" = set; then :
3617 withval=$with_mmdf;
3618 else
3619 with_mmdf=no
3622 if test "$with_mmdf" != no; then
3624 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3629 # Check whether --with-mail-unlink was given.
3630 if test "${with_mail_unlink+set}" = set; then :
3631 withval=$with_mail_unlink;
3632 else
3633 with_mail_unlink=no
3636 if test "$with_mail_unlink" != no; then
3638 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3643 # Check whether --with-mailhost was given.
3644 if test "${with_mailhost+set}" = set; then :
3645 withval=$with_mailhost;
3646 cat >>confdefs.h <<_ACEOF
3647 #define MAILHOST "$withval"
3648 _ACEOF
3654 # Check whether --with-sound was given.
3655 if test "${with_sound+set}" = set; then :
3656 withval=$with_sound;
3657 else
3658 with_sound=yes
3663 # Check whether --with-sync-input was given.
3664 if test "${with_sync_input+set}" = set; then :
3665 withval=$with_sync_input;
3666 else
3667 with_sync_input=yes
3670 if test "$with_sync_input" = yes; then
3672 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3677 # Check whether --with-x-toolkit was given.
3678 if test "${with_x_toolkit+set}" = set; then :
3679 withval=$with_x_toolkit; case "${withval}" in
3680 y | ye | yes ) val=gtk ;;
3681 n | no ) val=no ;;
3682 l | lu | luc | luci | lucid ) val=lucid ;;
3683 a | at | ath | athe | athen | athena ) val=athena ;;
3684 m | mo | mot | moti | motif ) val=motif ;;
3685 g | gt | gtk ) val=gtk ;;
3686 gtk3 ) val=gtk3 ;;
3688 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3689 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3690 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3692 esac
3693 with_x_toolkit=$val
3699 # Check whether --with-xpm was given.
3700 if test "${with_xpm+set}" = set; then :
3701 withval=$with_xpm;
3702 else
3703 with_xpm=yes
3707 # Check whether --with-jpeg was given.
3708 if test "${with_jpeg+set}" = set; then :
3709 withval=$with_jpeg;
3710 else
3711 with_jpeg=yes
3715 # Check whether --with-tiff was given.
3716 if test "${with_tiff+set}" = set; then :
3717 withval=$with_tiff;
3718 else
3719 with_tiff=yes
3723 # Check whether --with-gif was given.
3724 if test "${with_gif+set}" = set; then :
3725 withval=$with_gif;
3726 else
3727 with_gif=yes
3731 # Check whether --with-png was given.
3732 if test "${with_png+set}" = set; then :
3733 withval=$with_png;
3734 else
3735 with_png=yes
3739 # Check whether --with-rsvg was given.
3740 if test "${with_rsvg+set}" = set; then :
3741 withval=$with_rsvg;
3742 else
3743 with_rsvg=yes
3747 # Check whether --with-xml2 was given.
3748 if test "${with_xml2+set}" = set; then :
3749 withval=$with_xml2;
3750 else
3751 with_xml2=yes
3755 # Check whether --with-imagemagick was given.
3756 if test "${with_imagemagick+set}" = set; then :
3757 withval=$with_imagemagick;
3758 else
3759 with_imagemagick=yes
3764 # Check whether --with-xft was given.
3765 if test "${with_xft+set}" = set; then :
3766 withval=$with_xft;
3767 else
3768 with_xft=yes
3772 # Check whether --with-libotf was given.
3773 if test "${with_libotf+set}" = set; then :
3774 withval=$with_libotf;
3775 else
3776 with_libotf=yes
3780 # Check whether --with-m17n-flt was given.
3781 if test "${with_m17n_flt+set}" = set; then :
3782 withval=$with_m17n_flt;
3783 else
3784 with_m17n_flt=yes
3789 # Check whether --with-toolkit-scroll-bars was given.
3790 if test "${with_toolkit_scroll_bars+set}" = set; then :
3791 withval=$with_toolkit_scroll_bars;
3792 else
3793 with_toolkit_scroll_bars=yes
3797 # Check whether --with-xaw3d was given.
3798 if test "${with_xaw3d+set}" = set; then :
3799 withval=$with_xaw3d;
3800 else
3801 with_xaw3d=yes
3805 # Check whether --with-xim was given.
3806 if test "${with_xim+set}" = set; then :
3807 withval=$with_xim;
3808 else
3809 with_xim=yes
3813 # Check whether --with-ns was given.
3814 if test "${with_ns+set}" = set; then :
3815 withval=$with_ns;
3816 else
3817 with_ns=no
3822 # Check whether --with-gpm was given.
3823 if test "${with_gpm+set}" = set; then :
3824 withval=$with_gpm;
3825 else
3826 with_gpm=yes
3830 # Check whether --with-dbus was given.
3831 if test "${with_dbus+set}" = set; then :
3832 withval=$with_dbus;
3833 else
3834 with_dbus=yes
3838 # Check whether --with-gconf was given.
3839 if test "${with_gconf+set}" = set; then :
3840 withval=$with_gconf;
3841 else
3842 with_gconf=yes
3846 # Check whether --with-selinux was given.
3847 if test "${with_selinux+set}" = set; then :
3848 withval=$with_selinux;
3849 else
3850 with_selinux=yes
3854 # Check whether --with-gnutls was given.
3855 if test "${with_gnutls+set}" = set; then :
3856 withval=$with_gnutls;
3857 else
3858 with_gnutls=yes
3862 ## For the times when you want to build Emacs but don't have
3863 ## a suitable makeinfo, and can live without the manuals.
3865 # Check whether --with-makeinfo was given.
3866 if test "${with_makeinfo+set}" = set; then :
3867 withval=$with_makeinfo;
3868 else
3869 with_makeinfo=yes
3873 ## This is an option because I do not know if all info/man support
3874 ## compressed files, nor how to test if they do so.
3876 # Check whether --with-compress-info was given.
3877 if test "${with_compress_info+set}" = set; then :
3878 withval=$with_compress_info;
3879 else
3880 with_compress_info=yes
3883 if test $with_compress_info = yes; then
3884 GZIP_INFO=yes
3885 else
3886 GZIP_INFO=
3891 # Check whether --with-pkg-config-prog was given.
3892 if test "${with_pkg_config_prog+set}" = set; then :
3893 withval=$with_pkg_config_prog;
3896 if test "X${with_pkg_config_prog}" != X; then
3897 if test "${with_pkg_config_prog}" != yes; then
3898 PKG_CONFIG="${with_pkg_config_prog}"
3902 CRT_DIR=
3904 # Check whether --with-crt-dir was given.
3905 if test "${with_crt_dir+set}" = set; then :
3906 withval=$with_crt_dir;
3909 CRT_DIR="${with_crt_dir}"
3912 # Check whether --with-gameuser was given.
3913 if test "${with_gameuser+set}" = set; then :
3914 withval=$with_gameuser;
3917 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3918 && gameuser="${with_gameuser}"
3919 test "X$gameuser" = X && gameuser=games
3922 # Check whether --with-gnustep-conf was given.
3923 if test "${with_gnustep_conf+set}" = set; then :
3924 withval=$with_gnustep_conf;
3927 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3928 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3929 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3930 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3932 # Check whether --enable-ns-self-contained was given.
3933 if test "${enable_ns_self_contained+set}" = set; then :
3934 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3935 else
3936 EN_NS_SELF_CONTAINED=yes
3940 # Check whether --enable-asserts was given.
3941 if test "${enable_asserts+set}" = set; then :
3942 enableval=$enable_asserts; USE_XASSERTS=$enableval
3943 else
3944 USE_XASSERTS=no
3948 # Check whether --enable-maintainer-mode was given.
3949 if test "${enable_maintainer_mode+set}" = set; then :
3950 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3951 else
3952 USE_MAINTAINER_MODE=no
3955 if test $USE_MAINTAINER_MODE = yes; then
3956 MAINT=
3957 else
3958 MAINT=#
3962 # Check whether --enable-locallisppath was given.
3963 if test "${enable_locallisppath+set}" = set; then :
3964 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3965 locallisppath=
3966 elif test "${enableval}" != "yes"; then
3967 locallisppath=${enableval}
3972 # Check whether --enable-checking was given.
3973 if test "${enable_checking+set}" = set; then :
3974 enableval=$enable_checking; ac_checking_flags="${enableval}"
3977 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3978 for check in $ac_checking_flags
3980 case $check in
3981 # these set all the flags to specific states
3982 yes) ac_enable_checking=1 ;;
3983 no) ac_enable_checking= ;
3984 ac_gc_check_stringbytes= ;
3985 ac_gc_check_string_overrun= ;
3986 ac_gc_check_string_free_list= ;
3987 ac_xmalloc_overrun= ;
3988 ac_gc_check_cons_list= ;;
3989 all) ac_enable_checking=1 ;
3990 ac_gc_check_stringbytes=1 ;
3991 ac_gc_check_string_overrun=1 ;
3992 ac_gc_check_string_free_list=1 ;
3993 ac_xmalloc_overrun=1 ;
3994 ac_gc_check_cons_list=1 ;;
3995 # these enable particular checks
3996 stringbytes) ac_gc_check_stringbytes=1 ;;
3997 stringoverrun) ac_gc_check_string_overrun=1 ;;
3998 stringfreelist) ac_gc_check_string_free_list=1 ;;
3999 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4000 conslist) ac_gc_check_cons_list=1 ;;
4001 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
4002 esac
4003 done
4004 IFS="$ac_save_IFS"
4006 if test x$ac_enable_checking != x ; then
4008 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4011 if test x$ac_gc_check_stringbytes != x ; then
4013 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4016 if test x$ac_gc_check_stringoverrun != x ; then
4018 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4021 if test x$ac_gc_check_string_free_list != x ; then
4023 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4026 if test x$ac_xmalloc_overrun != x ; then
4028 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4031 if test x$ac_gc_check_cons_list != x ; then
4033 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4037 # Check whether --enable-use-lisp-union-type was given.
4038 if test "${enable_use_lisp_union_type+set}" = set; then :
4039 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4041 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4048 # Check whether --enable-profiling was given.
4049 if test "${enable_profiling+set}" = set; then :
4050 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4053 if test x$ac_enable_profiling != x ; then
4054 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4055 else
4056 PROFILING_CFLAGS=
4060 # Check whether --enable-autodepend was given.
4061 if test "${enable_autodepend+set}" = set; then :
4062 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4063 else
4064 ac_enable_autodepend=yes
4068 #### Make srcdir absolute, if it isn't already. It's important to
4069 #### avoid running the path through pwd unnecessarily, since pwd can
4070 #### give you automounter prefixes, which can go away. We do all this
4071 #### so Emacs can find its files when run uninstalled.
4072 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4073 unset CDPATH
4074 case "${srcdir}" in
4075 /* ) ;;
4077 ## We may be able to use the $PWD environment variable to make this
4078 ## absolute. But sometimes PWD is inaccurate.
4079 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4080 ## but that tested only for a well-formed and valid PWD,
4081 ## it did not object when PWD was well-formed and valid but just wrong.
4082 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4083 then
4084 srcdir="$PWD"
4085 else
4086 srcdir="`(cd ${srcdir}; pwd)`"
4089 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4090 esac
4092 #### Check if the source directory already has a configured system in it.
4093 if test `pwd` != `(cd ${srcdir} && pwd)` \
4094 && test -f "${srcdir}/src/config.h" ; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4096 as a build directory right now; it has been configured in its own
4097 right. To configure in another directory as well, you MUST
4098 use GNU make. If you do not have GNU make, then you must
4099 now do \`make distclean' in ${srcdir},
4100 and then run $0 again." >&5
4101 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4102 as a build directory right now; it has been configured in its own
4103 right. To configure in another directory as well, you MUST
4104 use GNU make. If you do not have GNU make, then you must
4105 now do \`make distclean' in ${srcdir},
4106 and then run $0 again." >&2;}
4109 #### Given the configuration name, set machfile and opsysfile to the
4110 #### names of the m/*.h and s/*.h files we should use.
4112 ### Canonicalize the configuration name.
4114 # Make sure we can run config.sub.
4115 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4116 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4119 $as_echo_n "checking build system type... " >&6; }
4120 if test "${ac_cv_build+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 ac_build_alias=$build_alias
4124 test "x$ac_build_alias" = x &&
4125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4126 test "x$ac_build_alias" = x &&
4127 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4128 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4129 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4133 $as_echo "$ac_cv_build" >&6; }
4134 case $ac_cv_build in
4135 *-*-*) ;;
4136 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4137 esac
4138 build=$ac_cv_build
4139 ac_save_IFS=$IFS; IFS='-'
4140 set x $ac_cv_build
4141 shift
4142 build_cpu=$1
4143 build_vendor=$2
4144 shift; shift
4145 # Remember, the first character of IFS is used to create $*,
4146 # except with old shells:
4147 build_os=$*
4148 IFS=$ac_save_IFS
4149 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4153 $as_echo_n "checking host system type... " >&6; }
4154 if test "${ac_cv_host+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test "x$host_alias" = x; then
4158 ac_cv_host=$ac_cv_build
4159 else
4160 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4161 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4166 $as_echo "$ac_cv_host" >&6; }
4167 case $ac_cv_host in
4168 *-*-*) ;;
4169 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4170 esac
4171 host=$ac_cv_host
4172 ac_save_IFS=$IFS; IFS='-'
4173 set x $ac_cv_host
4174 shift
4175 host_cpu=$1
4176 host_vendor=$2
4177 shift; shift
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4180 host_os=$*
4181 IFS=$ac_save_IFS
4182 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4185 canonical=$host
4186 configuration=${host_alias-${build_alias-$host}}
4190 ### If you add support for a new configuration, add code to this
4191 ### switch statement to recognize your configuration name and select
4192 ### the appropriate operating system and machine description files.
4194 ### You would hope that you could choose an m/*.h file pretty much
4195 ### based on the machine portion of the configuration name, and an s/*.h
4196 ### file based on the operating system portion. However, it turns out
4197 ### that each m/*.h file is pretty manufacturer-specific - for
4198 ### example mips.h is MIPS
4199 ### So we basically have to have a special case for each
4200 ### configuration name.
4202 ### As far as handling version numbers on operating systems is
4203 ### concerned, make sure things will fail in a fixable way. If
4204 ### /etc/MACHINES doesn't say anything about version numbers, be
4205 ### prepared to handle anything reasonably. If version numbers
4206 ### matter, be sure /etc/MACHINES says something about it.
4208 machine='' opsys='' unported=no
4209 case "${canonical}" in
4211 ## GNU/Linux ports
4212 *-*-linux-gnu*)
4213 opsys=gnu-linux
4214 case ${canonical} in
4215 alpha*) machine=alpha ;;
4216 s390-*) machine=ibms390 ;;
4217 s390x-*) machine=ibms390x ;;
4218 powerpc*) machine=macppc ;;
4219 sparc*) machine=sparc ;;
4220 ia64*) machine=ia64 ;;
4221 m68k*) machine=m68k ;;
4222 x86_64*) machine=amdx86-64 ;;
4223 esac
4226 ## FreeBSD ports
4227 *-*-freebsd* )
4228 opsys=freebsd
4229 case "${canonical}" in
4230 alpha*) machine=alpha ;;
4231 amd64-*|x86_64-*) machine=amdx86-64 ;;
4232 ia64-*) machine=ia64 ;;
4233 i[3456]86-*) machine=intel386 ;;
4234 powerpc-*) machine=macppc ;;
4235 sparc-*) machine=sparc ;;
4236 sparc64-*) machine=sparc ;;
4237 esac
4240 ## FreeBSD kernel + glibc based userland
4241 *-*-kfreebsd*gnu* )
4242 opsys=gnu-kfreebsd
4243 case "${canonical}" in
4244 alpha*) machine=alpha ;;
4245 amd64-*|x86_64-*) machine=amdx86-64 ;;
4246 ia64-*) machine=ia64 ;;
4247 i[3456]86-*) machine=intel386 ;;
4248 powerpc-*) machine=macppc ;;
4249 sparc-*) machine=sparc ;;
4250 sparc64-*) machine=sparc ;;
4251 esac
4254 ## NetBSD ports
4255 *-*-netbsd* )
4256 opsys=netbsd
4257 case "${canonical}" in
4258 alpha*) machine=alpha ;;
4259 x86_64-*) machine=amdx86-64 ;;
4260 i[3456]86-*) machine=intel386 ;;
4261 m68k-*) machine=m68k ;;
4262 powerpc-*) machine=macppc ;;
4263 sparc*-) machine=sparc ;;
4264 vax-*) machine=vax ;;
4265 esac
4268 ## OpenBSD ports
4269 *-*-openbsd* )
4270 opsys=openbsd
4271 case "${canonical}" in
4272 alpha*) machine=alpha ;;
4273 x86_64-*) machine=amdx86-64 ;;
4274 i386-*) machine=intel386 ;;
4275 powerpc-*) machine=macppc ;;
4276 sparc*) machine=sparc ;;
4277 vax-*) machine=vax ;;
4278 esac
4281 ## Apple Darwin / Mac OS X
4282 *-apple-darwin* )
4283 case "${canonical}" in
4284 i[3456]86-* ) machine=intel386 ;;
4285 powerpc-* ) machine=macppc ;;
4286 x86_64-* ) machine=amdx86-64 ;;
4287 * ) unported=yes ;;
4288 esac
4289 opsys=darwin
4290 # Define CPP as follows to make autoconf work correctly.
4291 CPP="${CC-cc} -E -no-cpp-precomp"
4292 # Use fink packages if available.
4293 if test -d /sw/include && test -d /sw/lib; then
4294 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4295 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4296 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4300 ## HP 9000 series 700 and 800, running HP/UX
4301 hppa*-hp-hpux10.2* )
4302 opsys=hpux10-20
4304 hppa*-hp-hpux1[1-9]* )
4305 opsys=hpux11
4306 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4309 ia64*-hp-hpux1[1-9]* )
4310 machine=hp800 opsys=hpux11
4311 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4312 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4313 CANNOT_DUMP=yes
4316 hppa*-*-linux-gnu* )
4317 machine=hp800 opsys=gnu-linux
4320 ## IBM machines
4321 rs6000-ibm-aix4.[23]* )
4322 machine=ibmrs6000 opsys=aix4-2
4324 powerpc-ibm-aix4.[23]* )
4325 machine=ibmrs6000 opsys=aix4-2
4327 rs6000-ibm-aix[56]* )
4328 machine=ibmrs6000 opsys=aix4-2
4330 powerpc-ibm-aix[56]* )
4331 machine=ibmrs6000 opsys=aix4-2
4334 ## Silicon Graphics machines
4335 ## Iris 4D
4336 mips-sgi-irix6.5 )
4337 machine=iris4d opsys=irix6-5
4338 # Without defining _LANGUAGE_C, things get masked out in the headers
4339 # so that, for instance, grepping for `free' in stdlib.h fails and
4340 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4341 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4342 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4345 ## Suns
4346 *-sun-solaris* \
4347 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4348 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4349 case "${canonical}" in
4350 i[3456]86-*-* ) machine=intel386 ;;
4351 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4352 sparc* ) machine=sparc ;;
4353 * ) unported=yes ;;
4354 esac
4355 case "${canonical}" in
4356 *-sunos5.6* | *-solaris2.6* )
4357 opsys=sol2-6
4358 NON_GNU_CPP=/usr/ccs/lib/cpp
4359 RANLIB="ar -ts"
4361 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4362 opsys=sol2-6
4363 emacs_check_sunpro_c=yes
4364 NON_GNU_CPP=/usr/ccs/lib/cpp
4366 *-sunos5* | *-solaris* )
4367 opsys=sol2-10
4368 emacs_check_sunpro_c=yes
4369 NON_GNU_CPP=/usr/ccs/lib/cpp
4371 esac
4372 ## Watch out for a compiler that we know will not work.
4373 case "${canonical}" in
4374 *-solaris* | *-sunos5* )
4375 if [ "x$CC" = x/usr/ucb/cc ]; then
4376 ## /usr/ucb/cc doesn't work;
4377 ## we should find some other compiler that does work.
4378 unset CC
4381 *) ;;
4382 esac
4385 ## Intel 386 machines where we don't care about the manufacturer.
4386 i[3456]86-*-* )
4387 machine=intel386
4388 case "${canonical}" in
4389 *-cygwin ) opsys=cygwin ;;
4390 *-darwin* ) opsys=darwin
4391 CPP="${CC-cc} -E -no-cpp-precomp"
4393 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4394 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4395 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4396 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4397 esac
4401 unported=yes
4403 esac
4405 ### If the code above didn't choose an operating system, just choose
4406 ### an operating system based on the configuration name. You really
4407 ### only want to use this when you have no idea what the right
4408 ### operating system is; if you know what operating systems a machine
4409 ### runs, it's cleaner to make it explicit in the case statement
4410 ### above.
4411 if test x"${opsys}" = x; then
4412 case "${canonical}" in
4413 *-gnu* ) opsys=gnu ;;
4415 unported=yes
4417 esac
4422 if test $unported = yes; then
4423 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4424 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4427 if test -n "$machine"; then
4428 machfile="m/${machine}.h"
4429 else
4430 machfile=
4432 opsysfile="s/${opsys}.h"
4435 #### Choose a compiler.
4436 test -n "$CC" && cc_specified=yes
4438 # Save the value of CFLAGS that the user specified.
4439 SPECIFIED_CFLAGS="$CFLAGS"
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_CC+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC="$CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 CC=$ac_cv_prog_CC
4475 if test -n "$CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4485 if test -z "$ac_cv_prog_CC"; then
4486 ac_ct_CC=$CC
4487 # Extract the first word of "gcc", so it can be a program name with args.
4488 set dummy gcc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -n "$ac_ct_CC"; then
4495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_ac_ct_CC="gcc"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4510 IFS=$as_save_IFS
4514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4517 $as_echo "$ac_ct_CC" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4523 if test "x$ac_ct_CC" = x; then
4524 CC=""
4525 else
4526 case $cross_compiling:$ac_tool_warned in
4527 yes:)
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned=yes ;;
4531 esac
4532 CC=$ac_ct_CC
4534 else
4535 CC="$ac_cv_prog_CC"
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}cc; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="${ac_tool_prefix}cc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4561 done
4562 done
4563 IFS=$as_save_IFS
4567 CC=$ac_cv_prog_CC
4568 if test -n "$CC"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4570 $as_echo "$CC" >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4579 if test -z "$CC"; then
4580 # Extract the first word of "cc", so it can be a program name with args.
4581 set dummy cc; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_CC+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC="$CC" # Let the user override the test.
4589 else
4590 ac_prog_rejected=no
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4599 ac_prog_rejected=yes
4600 continue
4602 ac_cv_prog_CC="cc"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4608 IFS=$as_save_IFS
4610 if test $ac_prog_rejected = yes; then
4611 # We found a bogon in the path, so make sure we never use it.
4612 set dummy $ac_cv_prog_CC
4613 shift
4614 if test $# != 0; then
4615 # We chose a different compiler from the bogus one.
4616 # However, it has the same basename, so the bogon will be chosen
4617 # first if we set CC to just the basename; use the full file name.
4618 shift
4619 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4624 CC=$ac_cv_prog_CC
4625 if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog in cl.exe
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$CC" && break
4677 done
4679 if test -z "$CC"; then
4680 ac_ct_CC=$CC
4681 for ac_prog in cl.exe
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_CC"; then
4691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_CC="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4711 if test -n "$ac_ct_CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4713 $as_echo "$ac_ct_CC" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$ac_ct_CC" && break
4721 done
4723 if test "x$ac_ct_CC" = x; then
4724 CC=""
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 CC=$ac_ct_CC
4739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details" "$LINENO" 5 ; }
4744 # Provide some information about the compiler.
4745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4746 set X $ac_compile
4747 ac_compiler=$2
4748 for ac_option in --version -v -V -qversion; do
4749 { { ac_try="$ac_compiler $ac_option >&5"
4750 case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4757 ac_status=$?
4758 if test -s conftest.err; then
4759 sed '10a\
4760 ... rest of stderr output deleted ...
4761 10q' conftest.err >conftest.er1
4762 cat conftest.er1 >&5
4764 rm -f conftest.er1 conftest.err
4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766 test $ac_status = 0; }
4767 done
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4773 main ()
4777 return 0;
4779 _ACEOF
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4784 # of exeext.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4792 ac_rmfiles=
4793 for ac_file in $ac_files
4795 case $ac_file in
4796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4798 esac
4799 done
4800 rm -f $ac_rmfiles
4802 if { { ac_try="$ac_link_default"
4803 case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_link_default") 2>&5
4810 ac_status=$?
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; }; then :
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4817 # Autoconf.
4818 for ac_file in $ac_files ''
4820 test -f "$ac_file" || continue
4821 case $ac_file in
4822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4824 [ab].out )
4825 # We found the default executable, but exeext='' is most
4826 # certainly right.
4827 break;;
4828 *.* )
4829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4830 then :; else
4831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an `-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4837 # actually working.
4838 break;;
4840 break;;
4841 esac
4842 done
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4845 else
4846 ac_file=''
4848 if test -z "$ac_file"; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error 77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5 ; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext=$ac_cv_exeext
4868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4869 ac_clean_files=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try="$ac_link"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_link") 2>&5
4880 ac_status=$?
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }; then :
4883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4886 # `rm'.
4887 for ac_file in conftest.exe conftest conftest.*; do
4888 test -f "$ac_file" || continue
4889 case $ac_file in
4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4892 break;;
4893 * ) break;;
4894 esac
4895 done
4896 else
4897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5 ; }
4902 rm -f conftest conftest$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4906 rm -f conftest.$ac_ext
4907 EXEEXT=$ac_cv_exeext
4908 ac_exeext=$EXEEXT
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <stdio.h>
4913 main ()
4915 FILE *f = fopen ("conftest.out", "w");
4916 return ferror (f) || fclose (f) != 0;
4919 return 0;
4921 _ACEOF
4922 ac_clean_files="$ac_clean_files conftest.out"
4923 # Check that the compiler produces executables we can run. If not, either
4924 # the compiler is broken, or we cross compile.
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4926 $as_echo_n "checking whether we are cross compiling... " >&6; }
4927 if test "$cross_compiling" != yes; then
4928 { { ac_try="$ac_link"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_link") 2>&5
4936 ac_status=$?
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 if { ac_try='./conftest$ac_cv_exeext'
4940 { { case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945 $as_echo "$ac_try_echo"; } >&5
4946 (eval "$ac_try") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; }; then
4950 cross_compiling=no
4951 else
4952 if test "$cross_compiling" = maybe; then
4953 cross_compiling=yes
4954 else
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "cannot run C compiled programs.
4958 If you meant to cross compile, use \`--host'.
4959 See \`config.log' for more details" "$LINENO" 5 ; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4964 $as_echo "$cross_compiling" >&6; }
4966 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4967 ac_clean_files=$ac_clean_files_save
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4969 $as_echo_n "checking for suffix of object files... " >&6; }
4970 if test "${ac_cv_objext+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4977 main ()
4981 return 0;
4983 _ACEOF
4984 rm -f conftest.o conftest.obj
4985 if { { ac_try="$ac_compile"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_compile") 2>&5
4993 ac_status=$?
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then :
4996 for ac_file in conftest.o conftest.obj conftest.*; do
4997 test -f "$ac_file" || continue;
4998 case $ac_file in
4999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5001 break;;
5002 esac
5003 done
5004 else
5005 $as_echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of object files: cannot compile
5011 See \`config.log' for more details" "$LINENO" 5 ; }
5013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5016 $as_echo "$ac_cv_objext" >&6; }
5017 OBJEXT=$ac_cv_objext
5018 ac_objext=$OBJEXT
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5021 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 main ()
5030 #ifndef __GNUC__
5031 choke me
5032 #endif
5035 return 0;
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_compiler_gnu=yes
5040 else
5041 ac_compiler_gnu=no
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5049 if test $ac_compiler_gnu = yes; then
5050 GCC=yes
5051 else
5052 GCC=
5054 ac_test_CFLAGS=${CFLAGS+set}
5055 ac_save_CFLAGS=$CFLAGS
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5058 if test "${ac_cv_prog_cc_g+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 ac_save_c_werror_flag=$ac_c_werror_flag
5062 ac_c_werror_flag=yes
5063 ac_cv_prog_cc_g=no
5064 CFLAGS="-g"
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5069 main ()
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_prog_cc_g=yes
5078 else
5079 CFLAGS=""
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5084 main ()
5088 return 0;
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"; then :
5093 else
5094 ac_c_werror_flag=$ac_save_c_werror_flag
5095 CFLAGS="-g"
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5100 main ()
5104 return 0;
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_prog_cc_g=yes
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5118 $as_echo "$ac_cv_prog_cc_g" >&6; }
5119 if test "$ac_test_CFLAGS" = set; then
5120 CFLAGS=$ac_save_CFLAGS
5121 elif test $ac_cv_prog_cc_g = yes; then
5122 if test "$GCC" = yes; then
5123 CFLAGS="-g -O2"
5124 else
5125 CFLAGS="-g"
5127 else
5128 if test "$GCC" = yes; then
5129 CFLAGS="-O2"
5130 else
5131 CFLAGS=
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 ac_cv_prog_cc_c89=no
5140 ac_save_CC=$CC
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <stdarg.h>
5144 #include <stdio.h>
5145 #include <sys/types.h>
5146 #include <sys/stat.h>
5147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5148 struct buf { int x; };
5149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5150 static char *e (p, i)
5151 char **p;
5152 int i;
5154 return p[i];
5156 static char *f (char * (*g) (char **, int), char **p, ...)
5158 char *s;
5159 va_list v;
5160 va_start (v,p);
5161 s = g (p, va_arg (v,int));
5162 va_end (v);
5163 return s;
5166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5167 function prototypes and stuff, but not '\xHH' hex character constants.
5168 These don't provoke an error unfortunately, instead are silently treated
5169 as 'x'. The following induces an error, until -std is added to get
5170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5171 array size at least. It's necessary to write '\x00'==0 to get something
5172 that's true only with -std. */
5173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5176 inside strings and character constants. */
5177 #define FOO(x) 'x'
5178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5180 int test (int i, double x);
5181 struct s1 {int (*f) (int a);};
5182 struct s2 {int (*f) (double a);};
5183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5184 int argc;
5185 char **argv;
5187 main ()
5189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5191 return 0;
5193 _ACEOF
5194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5197 CC="$ac_save_CC $ac_arg"
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 ac_cv_prog_cc_c89=$ac_arg
5201 rm -f core conftest.err conftest.$ac_objext
5202 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203 done
5204 rm -f conftest.$ac_ext
5205 CC=$ac_save_CC
5208 # AC_CACHE_VAL
5209 case "x$ac_cv_prog_cc_c89" in
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5212 $as_echo "none needed" >&6; } ;;
5213 xno)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5215 $as_echo "unsupported" >&6; } ;;
5217 CC="$CC $ac_cv_prog_cc_c89"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5219 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5220 esac
5221 if test "x$ac_cv_prog_cc_c89" != xno; then :
5225 ac_ext=c
5226 ac_cpp='$CPP $CPPFLAGS'
5227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5230 DEPDIR="${am__leading_dot}deps"
5232 ac_config_commands="$ac_config_commands depfiles"
5235 am_make=${MAKE-make}
5236 cat > confinc << 'END'
5237 am__doit:
5238 @echo this is the am__doit target
5239 .PHONY: am__doit
5241 # If we don't find an include directive, just comment out the code.
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5243 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5244 am__include="#"
5245 am__quote=
5246 _am_result=none
5247 # First try GNU make style include.
5248 echo "include confinc" > confmf
5249 # Ignore all kinds of additional output from `make'.
5250 case `$am_make -s -f confmf 2> /dev/null` in #(
5251 *the\ am__doit\ target*)
5252 am__include=include
5253 am__quote=
5254 _am_result=GNU
5256 esac
5257 # Now try BSD make style include.
5258 if test "$am__include" = "#"; then
5259 echo '.include "confinc"' > confmf
5260 case `$am_make -s -f confmf 2> /dev/null` in #(
5261 *the\ am__doit\ target*)
5262 am__include=.include
5263 am__quote="\""
5264 _am_result=BSD
5266 esac
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5271 $as_echo "$_am_result" >&6; }
5272 rm -f confinc confmf
5274 # Check whether --enable-dependency-tracking was given.
5275 if test "${enable_dependency_tracking+set}" = set; then :
5276 enableval=$enable_dependency_tracking;
5279 if test "x$enable_dependency_tracking" != xno; then
5280 am_depcomp="$ac_aux_dir/depcomp"
5281 AMDEPBACKSLASH='\'
5283 if test "x$enable_dependency_tracking" != xno; then
5284 AMDEP_TRUE=
5285 AMDEP_FALSE='#'
5286 else
5287 AMDEP_TRUE='#'
5288 AMDEP_FALSE=
5293 depcc="$CC" am_compiler_list=
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5296 $as_echo_n "checking dependency style of $depcc... " >&6; }
5297 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5301 # We make a subdir and do the tests there. Otherwise we can end up
5302 # making bogus files that we don't know about and never remove. For
5303 # instance it was reported that on HP-UX the gcc test will end up
5304 # making a dummy file named `D' -- because `-MD' means `put the output
5305 # in D'.
5306 mkdir conftest.dir
5307 # Copy depcomp to subdir because otherwise we won't find it if we're
5308 # using a relative directory.
5309 cp "$am_depcomp" conftest.dir
5310 cd conftest.dir
5311 # We will build objects and dependencies in a subdirectory because
5312 # it helps to detect inapplicable dependency modes. For instance
5313 # both Tru64's cc and ICC support -MD to output dependencies as a
5314 # side effect of compilation, but ICC will put the dependencies in
5315 # the current directory while Tru64 will put them in the object
5316 # directory.
5317 mkdir sub
5319 am_cv_CC_dependencies_compiler_type=none
5320 if test "$am_compiler_list" = ""; then
5321 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5323 am__universal=false
5324 case " $depcc " in #(
5325 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5326 esac
5328 for depmode in $am_compiler_list; do
5329 # Setup a source with many dependencies, because some compilers
5330 # like to wrap large dependency lists on column 80 (with \), and
5331 # we should not choose a depcomp mode which is confused by this.
5333 # We need to recreate these files for each test, as the compiler may
5334 # overwrite some of them when testing with obscure command lines.
5335 # This happens at least with the AIX C compiler.
5336 : > sub/conftest.c
5337 for i in 1 2 3 4 5 6; do
5338 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5339 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5340 # Solaris 8's {/usr,}/bin/sh.
5341 touch sub/conftst$i.h
5342 done
5343 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5345 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5346 # mode. It turns out that the SunPro C++ compiler does not properly
5347 # handle `-M -o', and we need to detect this. Also, some Intel
5348 # versions had trouble with output in subdirs
5349 am__obj=sub/conftest.${OBJEXT-o}
5350 am__minus_obj="-o $am__obj"
5351 case $depmode in
5352 gcc)
5353 # This depmode causes a compiler race in universal mode.
5354 test "$am__universal" = false || continue
5356 nosideeffect)
5357 # after this tag, mechanisms are not by side-effect, so they'll
5358 # only be used when explicitly requested
5359 if test "x$enable_dependency_tracking" = xyes; then
5360 continue
5361 else
5362 break
5365 msvisualcpp | msvcmsys)
5366 # This compiler won't grok `-c -o', but also, the minuso test has
5367 # not run yet. These depmodes are late enough in the game, and
5368 # so weak that their functioning should not be impacted.
5369 am__obj=conftest.${OBJEXT-o}
5370 am__minus_obj=
5372 none) break ;;
5373 esac
5374 if depmode=$depmode \
5375 source=sub/conftest.c object=$am__obj \
5376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5377 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5378 >/dev/null 2>conftest.err &&
5379 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5380 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5381 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5382 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5383 # icc doesn't choke on unknown options, it will just issue warnings
5384 # or remarks (even with -Werror). So we grep stderr for any message
5385 # that says an option was ignored or not supported.
5386 # When given -MP, icc 7.0 and 7.1 complain thusly:
5387 # icc: Command line warning: ignoring option '-M'; no argument required
5388 # The diagnosis changed in icc 8.0:
5389 # icc: Command line remark: option '-MP' not supported
5390 if (grep 'ignoring option' conftest.err ||
5391 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5392 am_cv_CC_dependencies_compiler_type=$depmode
5393 break
5396 done
5398 cd ..
5399 rm -rf conftest.dir
5400 else
5401 am_cv_CC_dependencies_compiler_type=none
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5406 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5407 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5410 test "x$enable_dependency_tracking" != xno \
5411 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5412 am__fastdepCC_TRUE=
5413 am__fastdepCC_FALSE='#'
5414 else
5415 am__fastdepCC_TRUE='#'
5416 am__fastdepCC_FALSE=
5420 if test "x$CC" != xcc; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5427 set dummy $CC; ac_cc=`$as_echo "$2" |
5428 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5429 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5436 main ()
5440 return 0;
5442 _ACEOF
5443 # Make sure it works both with $CC and with simple cc.
5444 # We do the test twice because some compilers refuse to overwrite an
5445 # existing .o file with -o, though they will create one.
5446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5447 rm -f conftest2.*
5448 if { { case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5453 $as_echo "$ac_try_echo"; } >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; } &&
5458 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5463 $as_echo "$ac_try_echo"; } >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; };
5468 then
5469 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5470 if test "x$CC" != xcc; then
5471 # Test first that cc exists at all.
5472 if { ac_try='cc -c conftest.$ac_ext >&5'
5473 { { case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479 (eval "$ac_try") 2>&5
5480 ac_status=$?
5481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; }; then
5483 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5484 rm -f conftest2.*
5485 if { { case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5490 $as_echo "$ac_try_echo"; } >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } &&
5495 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5500 $as_echo "$ac_try_echo"; } >&5
5501 (eval "$ac_try") 2>&5
5502 ac_status=$?
5503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504 test $ac_status = 0; };
5505 then
5506 # cc works too.
5508 else
5509 # cc exists but doesn't like -o.
5510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5514 else
5515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5517 rm -f core conftest*
5520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5531 # FIXME: we rely on the cache variable name because
5532 # there is no other way.
5533 set dummy $CC
5534 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5536 if test "$am_t" != yes; then
5537 # Losing compiler, so override with the script.
5538 # FIXME: It is wrong to rewrite CC.
5539 # But if we don't then we get into trouble of one sort or another.
5540 # A longer-term fix would be to have automake use am__CC in this case,
5541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5542 CC="$am_aux_dir/compile $CC"
5547 # Initialize gnulib right after verifying that the C compiler works.
5548 if test -n "$ac_tool_prefix"; then
5549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$RANLIB"; then
5557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5570 done
5571 done
5572 IFS=$as_save_IFS
5576 RANLIB=$ac_cv_prog_RANLIB
5577 if test -n "$RANLIB"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5579 $as_echo "$RANLIB" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5587 if test -z "$ac_cv_prog_RANLIB"; then
5588 ac_ct_RANLIB=$RANLIB
5589 # Extract the first word of "ranlib", so it can be a program name with args.
5590 set dummy ranlib; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$ac_ct_RANLIB"; then
5597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_ac_ct_RANLIB="ranlib"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5610 done
5611 done
5612 IFS=$as_save_IFS
5616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5617 if test -n "$ac_ct_RANLIB"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5619 $as_echo "$ac_ct_RANLIB" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5625 if test "x$ac_ct_RANLIB" = x; then
5626 RANLIB=":"
5627 else
5628 case $cross_compiling:$ac_tool_warned in
5629 yes:)
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632 ac_tool_warned=yes ;;
5633 esac
5634 RANLIB=$ac_ct_RANLIB
5636 else
5637 RANLIB="$ac_cv_prog_RANLIB"
5641 ac_ext=c
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5648 # On Suns, sometimes $CPP names a directory.
5649 if test -n "$CPP" && test -d "$CPP"; then
5650 CPP=
5652 if test -z "$CPP"; then
5653 if test "${ac_cv_prog_CPP+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 # Double quotes because CPP needs to be expanded
5657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5659 ac_preproc_ok=false
5660 for ac_c_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #ifdef __STDC__
5671 # include <limits.h>
5672 #else
5673 # include <assert.h>
5674 #endif
5675 Syntax error
5676 _ACEOF
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5679 else
5680 # Broken: fails on valid input.
5681 continue
5683 rm -f conftest.err conftest.i conftest.$ac_ext
5685 # OK, works on sane cases. Now check whether nonexistent headers
5686 # can be detected and how.
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ac_nonexistent.h>
5690 _ACEOF
5691 if ac_fn_c_try_cpp "$LINENO"; then :
5692 # Broken: success on invalid input.
5693 continue
5694 else
5695 # Passes both tests.
5696 ac_preproc_ok=:
5697 break
5699 rm -f conftest.err conftest.i conftest.$ac_ext
5701 done
5702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5703 rm -f conftest.i conftest.err conftest.$ac_ext
5704 if $ac_preproc_ok; then :
5705 break
5708 done
5709 ac_cv_prog_CPP=$CPP
5712 CPP=$ac_cv_prog_CPP
5713 else
5714 ac_cv_prog_CPP=$CPP
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5717 $as_echo "$CPP" >&6; }
5718 ac_preproc_ok=false
5719 for ac_c_preproc_warn_flag in '' yes
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #ifdef __STDC__
5730 # include <limits.h>
5731 #else
5732 # include <assert.h>
5733 #endif
5734 Syntax error
5735 _ACEOF
5736 if ac_fn_c_try_cpp "$LINENO"; then :
5738 else
5739 # Broken: fails on valid input.
5740 continue
5742 rm -f conftest.err conftest.i conftest.$ac_ext
5744 # OK, works on sane cases. Now check whether nonexistent headers
5745 # can be detected and how.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <ac_nonexistent.h>
5749 _ACEOF
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5751 # Broken: success on invalid input.
5752 continue
5753 else
5754 # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5758 rm -f conftest.err conftest.i conftest.$ac_ext
5760 done
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.i conftest.err conftest.$ac_ext
5763 if $ac_preproc_ok; then :
5765 else
5766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5768 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5769 See \`config.log' for more details" "$LINENO" 5 ; }
5772 ac_ext=c
5773 ac_cpp='$CPP $CPPFLAGS'
5774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5780 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5781 if test "${ac_cv_path_GREP+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -z "$GREP"; then
5785 ac_path_GREP_found=false
5786 # Loop through the user's path and test for each of PROGNAME-LIST
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_prog in grep ggrep; do
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5796 # Check for GNU ac_path_GREP and select it if it is found.
5797 # Check for GNU $ac_path_GREP
5798 case `"$ac_path_GREP" --version 2>&1` in
5799 *GNU*)
5800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5802 ac_count=0
5803 $as_echo_n 0123456789 >"conftest.in"
5804 while :
5806 cat "conftest.in" "conftest.in" >"conftest.tmp"
5807 mv "conftest.tmp" "conftest.in"
5808 cp "conftest.in" "conftest.nl"
5809 $as_echo 'GREP' >> "conftest.nl"
5810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5812 as_fn_arith $ac_count + 1 && ac_count=$as_val
5813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5814 # Best one so far, save it but keep looking for a better one
5815 ac_cv_path_GREP="$ac_path_GREP"
5816 ac_path_GREP_max=$ac_count
5818 # 10*(2^10) chars as input seems more than enough
5819 test $ac_count -gt 10 && break
5820 done
5821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 esac
5824 $ac_path_GREP_found && break 3
5825 done
5826 done
5827 done
5828 IFS=$as_save_IFS
5829 if test -z "$ac_cv_path_GREP"; then
5830 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5832 else
5833 ac_cv_path_GREP=$GREP
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5838 $as_echo "$ac_cv_path_GREP" >&6; }
5839 GREP="$ac_cv_path_GREP"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5843 $as_echo_n "checking for egrep... " >&6; }
5844 if test "${ac_cv_path_EGREP+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5848 then ac_cv_path_EGREP="$GREP -E"
5849 else
5850 if test -z "$EGREP"; then
5851 ac_path_EGREP_found=false
5852 # Loop through the user's path and test for each of PROGNAME-LIST
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_prog in egrep; do
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5861 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5862 # Check for GNU ac_path_EGREP and select it if it is found.
5863 # Check for GNU $ac_path_EGREP
5864 case `"$ac_path_EGREP" --version 2>&1` in
5865 *GNU*)
5866 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5868 ac_count=0
5869 $as_echo_n 0123456789 >"conftest.in"
5870 while :
5872 cat "conftest.in" "conftest.in" >"conftest.tmp"
5873 mv "conftest.tmp" "conftest.in"
5874 cp "conftest.in" "conftest.nl"
5875 $as_echo 'EGREP' >> "conftest.nl"
5876 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5878 as_fn_arith $ac_count + 1 && ac_count=$as_val
5879 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5880 # Best one so far, save it but keep looking for a better one
5881 ac_cv_path_EGREP="$ac_path_EGREP"
5882 ac_path_EGREP_max=$ac_count
5884 # 10*(2^10) chars as input seems more than enough
5885 test $ac_count -gt 10 && break
5886 done
5887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5888 esac
5890 $ac_path_EGREP_found && break 3
5891 done
5892 done
5893 done
5894 IFS=$as_save_IFS
5895 if test -z "$ac_cv_path_EGREP"; then
5896 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5898 else
5899 ac_cv_path_EGREP=$EGREP
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5905 $as_echo "$ac_cv_path_EGREP" >&6; }
5906 EGREP="$ac_cv_path_EGREP"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5910 $as_echo_n "checking for ANSI C header files... " >&6; }
5911 if test "${ac_cv_header_stdc+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <stdlib.h>
5917 #include <stdarg.h>
5918 #include <string.h>
5919 #include <float.h>
5922 main ()
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 ac_cv_header_stdc=yes
5931 else
5932 ac_cv_header_stdc=no
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 if test $ac_cv_header_stdc = yes; then
5937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940 #include <string.h>
5942 _ACEOF
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "memchr" >/dev/null 2>&1; then :
5946 else
5947 ac_cv_header_stdc=no
5949 rm -f conftest*
5953 if test $ac_cv_header_stdc = yes; then
5954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <stdlib.h>
5959 _ACEOF
5960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5961 $EGREP "free" >/dev/null 2>&1; then :
5963 else
5964 ac_cv_header_stdc=no
5966 rm -f conftest*
5970 if test $ac_cv_header_stdc = yes; then
5971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5972 if test "$cross_compiling" = yes; then :
5974 else
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977 #include <ctype.h>
5978 #include <stdlib.h>
5979 #if ((' ' & 0x0FF) == 0x020)
5980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5982 #else
5983 # define ISLOWER(c) \
5984 (('a' <= (c) && (c) <= 'i') \
5985 || ('j' <= (c) && (c) <= 'r') \
5986 || ('s' <= (c) && (c) <= 'z'))
5987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5988 #endif
5990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5992 main ()
5994 int i;
5995 for (i = 0; i < 256; i++)
5996 if (XOR (islower (i), ISLOWER (i))
5997 || toupper (i) != TOUPPER (i))
5998 return 2;
5999 return 0;
6001 _ACEOF
6002 if ac_fn_c_try_run "$LINENO"; then :
6004 else
6005 ac_cv_header_stdc=no
6007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6008 conftest.$ac_objext conftest.beam conftest.$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6014 $as_echo "$ac_cv_header_stdc" >&6; }
6015 if test $ac_cv_header_stdc = yes; then
6017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6023 inttypes.h stdint.h unistd.h
6024 do :
6025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6035 done
6041 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6042 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6043 MINIX=yes
6044 else
6045 MINIX=
6049 if test "$MINIX" = yes; then
6051 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6054 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6057 $as_echo "#define _MINIX 1" >>confdefs.h
6061 case "$host_os" in
6062 hpux*)
6064 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6067 esac
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6071 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6072 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 # define __EXTENSIONS__ 1
6079 $ac_includes_default
6081 main ()
6085 return 0;
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then :
6089 ac_cv_safe_to_define___extensions__=yes
6090 else
6091 ac_cv_safe_to_define___extensions__=no
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6096 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6097 test $ac_cv_safe_to_define___extensions__ = yes &&
6098 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6100 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6102 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6104 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6106 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6117 # Code from module arg-nonnull:
6118 # Code from module c++defs:
6119 # Code from module crypto/md5:
6120 # Code from module dosname:
6121 # Code from module dtoastr:
6122 # Code from module extensions:
6124 # Code from module filemode:
6125 # Code from module getloadavg:
6126 # Code from module getopt-gnu:
6127 # Code from module getopt-posix:
6128 # Code from module gettext-h:
6129 # Code from module ignore-value:
6130 # Code from module include_next:
6131 # Code from module intprops:
6132 # Code from module lstat:
6133 # Code from module mktime:
6134 # Code from module multiarch:
6135 # Code from module readlink:
6136 # Code from module stat:
6137 # Code from module stdbool:
6138 # Code from module stddef:
6139 # Code from module stdint:
6140 # Code from module stdlib:
6141 # Code from module strftime:
6142 # Code from module symlink:
6143 # Code from module sys_stat:
6144 # Code from module time:
6145 # Code from module time_r:
6146 # Code from module unistd:
6147 # Code from module warn-on-use:
6150 # On Suns, sometimes $CPP names a directory.
6151 if test -n "$CPP" && test -d "$CPP"; then
6152 CPP=
6155 ## If not using gcc, and on Solaris, and no CPP specified, see if
6156 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6157 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6158 test x"$CPP" = x; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6160 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6161 if test "${emacs_cv_sunpro_c+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6168 main ()
6170 #ifndef __SUNPRO_C
6171 fail;
6172 #endif
6175 return 0;
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 emacs_cv_sunpro_c=yes
6180 else
6181 emacs_cv_sunpro_c=no
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6188 $as_echo "$emacs_cv_sunpro_c" >&6; }
6190 if test x"$emacs_cv_sunpro_c" = xyes; then
6191 NON_GNU_CPP="$CC -E -Xs"
6195 #### Some systems specify a CPP to use unless we are using GCC.
6196 #### Now that we know whether we are using GCC, we can decide whether
6197 #### to use that one.
6198 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6199 then
6200 CPP="$NON_GNU_CPP"
6203 #### Some systems specify a CC to use unless we are using GCC.
6204 #### Now that we know whether we are using GCC, we can decide whether
6205 #### to use that one.
6206 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6207 test x$cc_specified != xyes
6208 then
6209 CC="$NON_GNU_CC"
6212 if test x$GCC = xyes; then
6213 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6214 else
6215 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6218 ### Use -Wdeclaration-after-statement if the compiler supports it
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6220 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6221 SAVE_CFLAGS="$CFLAGS"
6222 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6227 main ()
6231 return 0;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 has_option=yes
6236 else
6237 has_option=no
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 if test $has_option = yes; then
6241 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6244 $as_echo "$has_option" >&6; }
6245 CFLAGS="$SAVE_CFLAGS"
6246 unset has_option
6247 unset SAVE_CFLAGS
6249 ### Use -Wold-style-definition if the compiler supports it
6250 # This can be removed when conversion to standard C is finished.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6252 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6253 SAVE_CFLAGS="$CFLAGS"
6254 CFLAGS="$CFLAGS -Wold-style-definition"
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6259 main ()
6263 return 0;
6265 _ACEOF
6266 if ac_fn_c_try_compile "$LINENO"; then :
6267 has_option=yes
6268 else
6269 has_option=no
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 if test $has_option = yes; then
6273 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6276 $as_echo "$has_option" >&6; }
6277 CFLAGS="$SAVE_CFLAGS"
6278 unset has_option
6279 unset SAVE_CFLAGS
6281 ### Use -Wimplicit-function-declaration if the compiler supports it
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6283 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6284 SAVE_CFLAGS="$CFLAGS"
6285 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6290 main ()
6294 return 0;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 has_option=yes
6299 else
6300 has_option=no
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 if test $has_option = yes; then
6304 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6307 $as_echo "$has_option" >&6; }
6308 CFLAGS="$SAVE_CFLAGS"
6309 unset has_option
6310 unset SAVE_CFLAGS
6315 #### Some other nice autoconf tests.
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6323 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6324 # On Suns, sometimes $CPP names a directory.
6325 if test -n "$CPP" && test -d "$CPP"; then
6326 CPP=
6328 if test -z "$CPP"; then
6329 if test "${ac_cv_prog_CPP+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 # Double quotes because CPP needs to be expanded
6333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6335 ac_preproc_ok=false
6336 for ac_c_preproc_warn_flag in '' yes
6338 # Use a header file that comes with gcc, so configuring glibc
6339 # with a fresh cross-compiler works.
6340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341 # <limits.h> exists even on freestanding compilers.
6342 # On the NeXT, cc -E runs the code through the compiler's parser,
6343 # not just through cpp. "Syntax error" is here to catch this case.
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 #ifdef __STDC__
6347 # include <limits.h>
6348 #else
6349 # include <assert.h>
6350 #endif
6351 Syntax error
6352 _ACEOF
6353 if ac_fn_c_try_cpp "$LINENO"; then :
6355 else
6356 # Broken: fails on valid input.
6357 continue
6359 rm -f conftest.err conftest.i conftest.$ac_ext
6361 # OK, works on sane cases. Now check whether nonexistent headers
6362 # can be detected and how.
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #include <ac_nonexistent.h>
6366 _ACEOF
6367 if ac_fn_c_try_cpp "$LINENO"; then :
6368 # Broken: success on invalid input.
6369 continue
6370 else
6371 # Passes both tests.
6372 ac_preproc_ok=:
6373 break
6375 rm -f conftest.err conftest.i conftest.$ac_ext
6377 done
6378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6379 rm -f conftest.i conftest.err conftest.$ac_ext
6380 if $ac_preproc_ok; then :
6381 break
6384 done
6385 ac_cv_prog_CPP=$CPP
6388 CPP=$ac_cv_prog_CPP
6389 else
6390 ac_cv_prog_CPP=$CPP
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6393 $as_echo "$CPP" >&6; }
6394 ac_preproc_ok=false
6395 for ac_c_preproc_warn_flag in '' yes
6397 # Use a header file that comes with gcc, so configuring glibc
6398 # with a fresh cross-compiler works.
6399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 # <limits.h> exists even on freestanding compilers.
6401 # On the NeXT, cc -E runs the code through the compiler's parser,
6402 # not just through cpp. "Syntax error" is here to catch this case.
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #ifdef __STDC__
6406 # include <limits.h>
6407 #else
6408 # include <assert.h>
6409 #endif
6410 Syntax error
6411 _ACEOF
6412 if ac_fn_c_try_cpp "$LINENO"; then :
6414 else
6415 # Broken: fails on valid input.
6416 continue
6418 rm -f conftest.err conftest.i conftest.$ac_ext
6420 # OK, works on sane cases. Now check whether nonexistent headers
6421 # can be detected and how.
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 #include <ac_nonexistent.h>
6425 _ACEOF
6426 if ac_fn_c_try_cpp "$LINENO"; then :
6427 # Broken: success on invalid input.
6428 continue
6429 else
6430 # Passes both tests.
6431 ac_preproc_ok=:
6432 break
6434 rm -f conftest.err conftest.i conftest.$ac_ext
6436 done
6437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438 rm -f conftest.i conftest.err conftest.$ac_ext
6439 if $ac_preproc_ok; then :
6441 else
6442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6445 See \`config.log' for more details" "$LINENO" 5 ; }
6448 ac_ext=c
6449 ac_cpp='$CPP $CPPFLAGS'
6450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6455 if test "x$RANLIB" = x; then
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$RANLIB"; then
6465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6480 IFS=$as_save_IFS
6484 RANLIB=$ac_cv_prog_RANLIB
6485 if test -n "$RANLIB"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6487 $as_echo "$RANLIB" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_prog_RANLIB"; then
6496 ac_ct_RANLIB=$RANLIB
6497 # Extract the first word of "ranlib", so it can be a program name with args.
6498 set dummy ranlib; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$ac_ct_RANLIB"; then
6505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_RANLIB="ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6518 done
6519 done
6520 IFS=$as_save_IFS
6524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6525 if test -n "$ac_ct_RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6527 $as_echo "$ac_ct_RANLIB" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6533 if test "x$ac_ct_RANLIB" = x; then
6534 RANLIB=":"
6535 else
6536 case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542 RANLIB=$ac_ct_RANLIB
6544 else
6545 RANLIB="$ac_cv_prog_RANLIB"
6550 ## Although we're running on an amd64 kernel, we're actually compiling for
6551 ## the x86 architecture. The user should probably have provided an
6552 ## explicit --build to `configure', but if everything else than the kernel
6553 ## is running in i386 mode, we can help them out.
6554 if test "$machine" = "amdx86-64"; then
6555 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6556 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6560 if test "$ac_cv_have_decl_i386" = "yes"; then
6561 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6562 machine=intel386
6563 machfile="m/${machine}.h"
6567 # Extract the first word of "install-info", so it can be a program name with args.
6568 set dummy install-info; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 case $INSTALL_INFO in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6590 done
6591 done
6592 IFS=$as_save_IFS
6595 esac
6597 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6598 if test -n "$INSTALL_INFO"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6600 $as_echo "$INSTALL_INFO" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6607 # Extract the first word of "install-info", so it can be a program name with args.
6608 set dummy install-info; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 case $INSTALL_INFO in
6615 [\\/]* | ?:[\\/]*)
6616 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in /usr/sbin
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6630 done
6631 done
6632 IFS=$as_save_IFS
6635 esac
6637 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6638 if test -n "$INSTALL_INFO"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6640 $as_echo "$INSTALL_INFO" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6647 # Extract the first word of "install-info", so it can be a program name with args.
6648 set dummy install-info; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 case $INSTALL_INFO in
6655 [\\/]* | ?:[\\/]*)
6656 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in /sbin
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6670 done
6671 done
6672 IFS=$as_save_IFS
6674 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6676 esac
6678 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6679 if test -n "$INSTALL_INFO"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6681 $as_echo "$INSTALL_INFO" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 # Extract the first word of "gzip", so it can be a program name with args.
6689 set dummy gzip; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 case $GZIP_PROG in
6696 [\\/]* | ?:[\\/]*)
6697 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6716 esac
6718 GZIP_PROG=$ac_cv_path_GZIP_PROG
6719 if test -n "$GZIP_PROG"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6721 $as_echo "$GZIP_PROG" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6730 ## Need makeinfo >= 4.6 (?) to build the manuals.
6731 # Extract the first word of "makeinfo", so it can be a program name with args.
6732 set dummy makeinfo; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 case $MAKEINFO in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6758 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6760 esac
6762 MAKEINFO=$ac_cv_path_MAKEINFO
6763 if test -n "$MAKEINFO"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6765 $as_echo "$MAKEINFO" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6772 if test "$MAKEINFO" != "no" && \
6773 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
6774 MAKEINFO=no
6777 ## Makeinfo is unusual. For a released Emacs, the manuals are
6778 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6779 ## therefore in the category of "special tools" not normally required, which
6780 ## configure does not have to check for (eg autoconf itself).
6781 ## In a Bazaar checkout on the other hand, the manuals are not included.
6782 ## So makeinfo is a requirement to build from Bazaar, and configure
6783 ## should test for it as it does for any other build requirement.
6784 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6785 ## with pre-built manuals, from a Bazaar checkout.
6786 HAVE_MAKEINFO=yes
6788 if test "$MAKEINFO" = "no"; then
6789 MAKEINFO=makeinfo
6790 if test "x${with_makeinfo}" = "xno"; then
6791 HAVE_MAKEINFO=no
6792 elif test ! -e $srcdir/info/emacs; then
6793 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6794 source tree does not seem to have pre-built manuals in the \`info' directory.
6795 Either install a suitable version of makeinfo, or re-run configure
6796 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6802 if test x$GCC = xyes; then
6803 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6804 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6805 else
6806 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6807 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6811 late_LDFLAGS=$LDFLAGS
6812 if test x$GCC = xyes; then
6813 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6814 else
6815 LDFLAGS="$LDFLAGS -znocombreloc"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6819 $as_echo_n "checking for -znocombreloc... " >&6; }
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6824 main ()
6828 return 0;
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833 $as_echo "yes" >&6; }
6834 else
6835 LDFLAGS=$late_LDFLAGS
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6843 # The value of CPP is a quoted variable reference, so we need to do this
6844 # to get its actual value...
6845 CPP=`eval "echo $CPP"`
6848 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6849 case "$opsys" in
6850 your-opsys-here) CANNOT_DUMP=yes ;;
6851 esac
6853 test "$CANNOT_DUMP" = "yes" && \
6855 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6861 UNEXEC_OBJ=unexelf.o
6862 case "$opsys" in
6863 # MSDOS uses unexcoff.o
6864 # MSWindows uses unexw32.o
6865 aix4-2)
6866 UNEXEC_OBJ=unexaix.o
6868 cygwin)
6869 UNEXEC_OBJ=unexcw.o
6871 darwin)
6872 UNEXEC_OBJ=unexmacosx.o
6874 hpux10-20 | hpux11)
6875 UNEXEC_OBJ=unexhp9k800.o
6877 sol2-10)
6878 # Use the Solaris dldump() function, called from unexsol.c, to dump
6879 # emacs, instead of the generic ELF dump code found in unexelf.c.
6880 # The resulting binary has a complete symbol table, and is better
6881 # for debugging and other observability tools (debuggers, pstack, etc).
6883 # If you encounter a problem using dldump(), please consider sending
6884 # a message to the OpenSolaris tools-linking mailing list:
6885 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6887 # It is likely that dldump() works with older Solaris too, but this has
6888 # not been tested, so for now this change is for Solaris 10 or newer.
6889 UNEXEC_OBJ=unexsol.o
6891 esac
6893 LD_SWITCH_SYSTEM=
6894 case "$opsys" in
6895 freebsd)
6896 ## Let `ld' find image libs and similar things in /usr/local/lib.
6897 ## The system compiler, GCC, has apparently been modified to not
6898 ## look there, contrary to what a stock GCC would do.
6899 LD_SWITCH_SYSTEM=-L/usr/local/lib
6902 gnu-linux)
6903 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6904 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6907 netbsd)
6908 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6911 openbsd)
6912 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6913 ## otherwise Emacs dumps core on elf systems.
6914 LD_SWITCH_SYSTEM="-Z"
6916 esac
6919 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6921 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6922 ## which has not been defined yet. When this was handled with cpp,
6923 ## it was expanded to null when configure sourced the s/*.h file.
6924 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6925 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6926 ## (or somesuch), but because it is supposed to go at the _front_
6927 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6928 ## Compare with the gnu-linux case below, which added to the end
6929 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6930 ## LD_SWITCH_SYSTEM_TEMACS.
6931 case "$opsys" in
6932 netbsd|openbsd)
6933 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6934 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6935 esac
6938 C_SWITCH_MACHINE=
6939 if test "$machine" = "alpha"; then
6940 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6941 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
6945 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6946 ## With ELF, make sure that all common symbols get allocated to in the
6947 ## data section. Otherwise, the dump of temacs may miss variables in
6948 ## the shared library that have been initialized. For example, with
6949 ## GNU libc, __malloc_initialized would normally be resolved to the
6950 ## shared library's .bss section, which is fatal.
6951 if test "x$GCC" = "xyes"; then
6952 C_SWITCH_MACHINE="-fno-common"
6953 else
6954 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6956 else
6957 UNEXEC_OBJ=unexalpha.o
6964 C_SWITCH_SYSTEM=
6965 ## Some programs in src produce warnings saying certain subprograms
6966 ## are too complex and need a MAXMEM value greater than 2000 for
6967 ## additional optimization. --nils@exp-math.uni-essen.de
6968 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6969 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6970 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6971 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6975 LIBS_SYSTEM=
6976 case "$opsys" in
6977 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6978 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6980 freebsd) LIBS_SYSTEM="-lutil" ;;
6982 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6984 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6986 ## Motif needs -lgen.
6987 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6988 esac
6992 ### Make sure subsequent tests use flags consistent with the build flags.
6994 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6995 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6996 else
6997 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7000 # Check whether --enable-largefile was given.
7001 if test "${enable_largefile+set}" = set; then :
7002 enableval=$enable_largefile;
7005 if test "$enable_largefile" != no; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7008 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7009 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_cv_sys_largefile_CC=no
7013 if test "$GCC" != yes; then
7014 ac_save_CC=$CC
7015 while :; do
7016 # IRIX 6.2 and later do not support large files by default,
7017 # so use the C compiler's -n32 option if that helps.
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <sys/types.h>
7021 /* Check that off_t can represent 2**63 - 1 correctly.
7022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7023 since some C++ compilers masquerading as C compilers
7024 incorrectly reject 9223372036854775807. */
7025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7027 && LARGE_OFF_T % 2147483647 == 1)
7028 ? 1 : -1];
7030 main ()
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 break
7040 rm -f core conftest.err conftest.$ac_objext
7041 CC="$CC -n32"
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 ac_cv_sys_largefile_CC=' -n32'; break
7045 rm -f core conftest.err conftest.$ac_objext
7046 break
7047 done
7048 CC=$ac_save_CC
7049 rm -f conftest.$ac_ext
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7053 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7054 if test "$ac_cv_sys_largefile_CC" != no; then
7055 CC=$CC$ac_cv_sys_largefile_CC
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7059 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7060 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 while :; do
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 /* Check that off_t can represent 2**63 - 1 correctly.
7068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7069 since some C++ compilers masquerading as C compilers
7070 incorrectly reject 9223372036854775807. */
7071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7073 && LARGE_OFF_T % 2147483647 == 1)
7074 ? 1 : -1];
7076 main ()
7080 return 0;
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084 ac_cv_sys_file_offset_bits=no; break
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #define _FILE_OFFSET_BITS 64
7090 #include <sys/types.h>
7091 /* Check that off_t can represent 2**63 - 1 correctly.
7092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7093 since some C++ compilers masquerading as C compilers
7094 incorrectly reject 9223372036854775807. */
7095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7097 && LARGE_OFF_T % 2147483647 == 1)
7098 ? 1 : -1];
7100 main ()
7104 return 0;
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 ac_cv_sys_file_offset_bits=64; break
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 ac_cv_sys_file_offset_bits=unknown
7112 break
7113 done
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7116 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7117 case $ac_cv_sys_file_offset_bits in #(
7118 no | unknown) ;;
7120 cat >>confdefs.h <<_ACEOF
7121 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7122 _ACEOF
7124 esac
7125 rm -rf conftest*
7126 if test $ac_cv_sys_file_offset_bits = unknown; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7128 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7129 if test "${ac_cv_sys_large_files+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 while :; do
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <sys/types.h>
7136 /* Check that off_t can represent 2**63 - 1 correctly.
7137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7138 since some C++ compilers masquerading as C compilers
7139 incorrectly reject 9223372036854775807. */
7140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7142 && LARGE_OFF_T % 2147483647 == 1)
7143 ? 1 : -1];
7145 main ()
7149 return 0;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 ac_cv_sys_large_files=no; break
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #define _LARGE_FILES 1
7159 #include <sys/types.h>
7160 /* Check that off_t can represent 2**63 - 1 correctly.
7161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7162 since some C++ compilers masquerading as C compilers
7163 incorrectly reject 9223372036854775807. */
7164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7166 && LARGE_OFF_T % 2147483647 == 1)
7167 ? 1 : -1];
7169 main ()
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 ac_cv_sys_large_files=1; break
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 ac_cv_sys_large_files=unknown
7181 break
7182 done
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7185 $as_echo "$ac_cv_sys_large_files" >&6; }
7186 case $ac_cv_sys_large_files in #(
7187 no | unknown) ;;
7189 cat >>confdefs.h <<_ACEOF
7190 #define _LARGE_FILES $ac_cv_sys_large_files
7191 _ACEOF
7193 esac
7194 rm -rf conftest*
7200 ## If user specified a crt-dir, use that unconditionally.
7201 if test "X$CRT_DIR" = "X"; then
7203 case "$canonical" in
7204 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7205 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7206 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7207 ## For anything else (eg /usr/lib32), it is up the user to specify
7208 ## the location (bug#5655).
7209 ## Test for crtn.o, not just the directory, because sometimes the
7210 ## directory exists but does not have the relevant files (bug#1287).
7211 ## FIXME better to test for binary compatibility somehow.
7212 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7215 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7216 esac
7218 case "$opsys" in
7219 hpux10-20) CRT_DIR=/lib ;;
7220 esac
7222 ## Default is /usr/lib.
7223 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7225 else
7227 ## Some platforms don't use any of these files, so it is not
7228 ## appropriate to put this test outside the if block.
7229 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7230 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7236 LIB_MATH=-lm
7237 LIB_STANDARD=
7238 START_FILES=
7240 case $opsys in
7241 cygwin )
7242 LIB_MATH=
7243 START_FILES='pre-crt0.o'
7245 darwin )
7246 ## Adding -lm confuses the dynamic linker, so omit it.
7247 LIB_MATH=
7248 START_FILES='pre-crt0.o'
7250 freebsd )
7251 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7252 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7254 gnu-linux | gnu-kfreebsd )
7255 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7256 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7258 hpux10-20 | hpux11 )
7259 LIB_STANDARD=-lc
7260 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7262 netbsd | openbsd )
7263 if test -f $CRT_DIR/crti.o; then
7264 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7265 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7266 else
7267 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7268 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7271 esac
7279 if test "${with_sound}" != "no"; then
7280 # Sound support for GNU/Linux and the free BSDs.
7281 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7282 do :
7283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7286 cat >>confdefs.h <<_ACEOF
7287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7288 _ACEOF
7289 have_sound_header=yes
7292 done
7294 # Emulation library used on NetBSD.
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7296 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 ac_check_lib_save_LIBS=$LIBS
7301 LIBS="-lossaudio $LIBS"
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 #endif
7311 char _oss_ioctl ();
7313 main ()
7315 return _oss_ioctl ();
7317 return 0;
7319 _ACEOF
7320 if ac_fn_c_try_link "$LINENO"; then :
7321 ac_cv_lib_ossaudio__oss_ioctl=yes
7322 else
7323 ac_cv_lib_ossaudio__oss_ioctl=no
7325 rm -f core conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7330 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7331 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7332 LIBSOUND=-lossaudio
7333 else
7334 LIBSOUND=
7339 ALSA_REQUIRED=1.0.0
7340 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7342 succeeded=no
7344 # Extract the first word of "pkg-config", so it can be a program name with args.
7345 set dummy pkg-config; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 case $PKG_CONFIG in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7369 IFS=$as_save_IFS
7371 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7373 esac
7375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7376 if test -n "$PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7378 $as_echo "$PKG_CONFIG" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test "$PKG_CONFIG" = "no" ; then
7387 HAVE_ALSA=no
7388 else
7389 PKG_CONFIG_MIN_VERSION=0.9.0
7390 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7392 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7394 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }
7397 succeeded=yes
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7400 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7401 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7403 $as_echo "$ALSA_CFLAGS" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7406 $as_echo_n "checking ALSA_LIBS... " >&6; }
7407 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7409 $as_echo "$ALSA_LIBS" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 ALSA_CFLAGS=""
7414 ALSA_LIBS=""
7415 ## If we have a custom action on failure, don't print errors, but
7416 ## do set a variable so people can do so.
7417 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7423 else
7424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7429 if test $succeeded = yes; then
7430 HAVE_ALSA=yes
7431 else
7432 HAVE_ALSA=no
7435 if test $HAVE_ALSA = yes; then
7436 SAVE_CFLAGS="$CFLAGS"
7437 SAVE_LDFLAGS="$LDFLAGS"
7438 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7439 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <asoundlib.h>
7444 main ()
7446 snd_lib_error_set_handler (0);
7448 return 0;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 emacs_alsa_normal=yes
7453 else
7454 emacs_alsa_normal=no
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 if test "$emacs_alsa_normal" != yes; then
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <alsa/asoundlib.h>
7462 main ()
7464 snd_lib_error_set_handler (0);
7466 return 0;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 emacs_alsa_subdir=yes
7471 else
7472 emacs_alsa_subdir=no
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 if test "$emacs_alsa_subdir" != yes; then
7476 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7478 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7481 CFLAGS="$SAVE_CFLAGS"
7482 LDFLAGS="$SAVE_LDFLAGS"
7483 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7484 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7486 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7490 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7491 case "$opsys" in
7492 gnu-linux|freebsd|netbsd)
7494 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7497 esac
7503 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7504 linux/version.h sys/systeminfo.h limits.h \
7505 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7506 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7507 sys/utsname.h pwd.h utmp.h dirent.h util.h
7508 do :
7509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 _ACEOF
7518 done
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7522 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <sys/personality.h>
7527 main ()
7529 personality (PER_LINUX32)
7531 return 0;
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 emacs_cv_personality_linux32=yes
7536 else
7537 emacs_cv_personality_linux32=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7541 $as_echo "$emacs_cv_personality_linux32" >&6; }
7543 if test $emacs_cv_personality_linux32 = yes; then
7545 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7549 for ac_header in term.h
7550 do :
7551 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7552 if test "x$ac_cv_header_term_h" = x""yes; then :
7553 cat >>confdefs.h <<_ACEOF
7554 #define HAVE_TERM_H 1
7555 _ACEOF
7559 done
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7562 $as_echo_n "checking for ANSI C header files... " >&6; }
7563 if test "${ac_cv_header_stdc+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <stdlib.h>
7569 #include <stdarg.h>
7570 #include <string.h>
7571 #include <float.h>
7574 main ()
7578 return 0;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 ac_cv_header_stdc=yes
7583 else
7584 ac_cv_header_stdc=no
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 if test $ac_cv_header_stdc = yes; then
7589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 #include <string.h>
7594 _ACEOF
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "memchr" >/dev/null 2>&1; then :
7598 else
7599 ac_cv_header_stdc=no
7601 rm -f conftest*
7605 if test $ac_cv_header_stdc = yes; then
7606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #include <stdlib.h>
7611 _ACEOF
7612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 $EGREP "free" >/dev/null 2>&1; then :
7615 else
7616 ac_cv_header_stdc=no
7618 rm -f conftest*
7622 if test $ac_cv_header_stdc = yes; then
7623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7624 if test "$cross_compiling" = yes; then :
7626 else
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 #include <ctype.h>
7630 #include <stdlib.h>
7631 #if ((' ' & 0x0FF) == 0x020)
7632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7634 #else
7635 # define ISLOWER(c) \
7636 (('a' <= (c) && (c) <= 'i') \
7637 || ('j' <= (c) && (c) <= 'r') \
7638 || ('s' <= (c) && (c) <= 'z'))
7639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7640 #endif
7642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7644 main ()
7646 int i;
7647 for (i = 0; i < 256; i++)
7648 if (XOR (islower (i), ISLOWER (i))
7649 || toupper (i) != TOUPPER (i))
7650 return 2;
7651 return 0;
7653 _ACEOF
7654 if ac_fn_c_try_run "$LINENO"; then :
7656 else
7657 ac_cv_header_stdc=no
7659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7660 conftest.$ac_objext conftest.beam conftest.$ac_ext
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7666 $as_echo "$ac_cv_header_stdc" >&6; }
7667 if test $ac_cv_header_stdc = yes; then
7669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7674 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7675 if test "${ac_cv_header_time+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #include <sys/types.h>
7681 #include <sys/time.h>
7682 #include <time.h>
7685 main ()
7687 if ((struct tm *) 0)
7688 return 0;
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 ac_cv_header_time=yes
7695 else
7696 ac_cv_header_time=no
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7701 $as_echo "$ac_cv_header_time" >&6; }
7702 if test $ac_cv_header_time = yes; then
7704 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7708 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7709 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7710 ac_have_decl=1
7711 else
7712 ac_have_decl=0
7715 cat >>confdefs.h <<_ACEOF
7716 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7717 _ACEOF
7719 if test $ac_cv_have_decl_sys_siglist != yes; then
7720 # For Tru64, at least:
7721 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7722 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7723 ac_have_decl=1
7724 else
7725 ac_have_decl=0
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7730 _ACEOF
7732 if test $ac_cv_have_decl___sys_siglist = yes; then
7734 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7739 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7740 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <sys/types.h>
7746 #include <sys/wait.h>
7747 #ifndef WEXITSTATUS
7748 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7749 #endif
7750 #ifndef WIFEXITED
7751 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7752 #endif
7755 main ()
7757 int s;
7758 wait (&s);
7759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7761 return 0;
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 ac_cv_header_sys_wait_h=yes
7766 else
7767 ac_cv_header_sys_wait_h=no
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7772 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7773 if test $ac_cv_header_sys_wait_h = yes; then
7775 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7781 $as_echo_n "checking for struct utimbuf... " >&6; }
7782 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #ifdef TIME_WITH_SYS_TIME
7788 #include <sys/time.h>
7789 #include <time.h>
7790 #else
7791 #ifdef HAVE_SYS_TIME_H
7792 #include <sys/time.h>
7793 #else
7794 #include <time.h>
7795 #endif
7796 #endif
7797 #ifdef HAVE_UTIME_H
7798 #include <utime.h>
7799 #endif
7801 main ()
7803 static struct utimbuf x; x.actime = x.modtime;
7805 return 0;
7807 _ACEOF
7808 if ac_fn_c_try_compile "$LINENO"; then :
7809 emacs_cv_struct_utimbuf=yes
7810 else
7811 emacs_cv_struct_utimbuf=no
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7816 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7817 if test $emacs_cv_struct_utimbuf = yes; then
7819 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7824 $as_echo_n "checking return type of signal handlers... " >&6; }
7825 if test "${ac_cv_type_signal+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 #include <sys/types.h>
7831 #include <signal.h>
7834 main ()
7836 return *(signal (0, 0)) (0) == 1;
7838 return 0;
7840 _ACEOF
7841 if ac_fn_c_try_compile "$LINENO"; then :
7842 ac_cv_type_signal=int
7843 else
7844 ac_cv_type_signal=void
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7849 $as_echo "$ac_cv_type_signal" >&6; }
7851 cat >>confdefs.h <<_ACEOF
7852 #define RETSIGTYPE $ac_cv_type_signal
7853 _ACEOF
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7858 $as_echo_n "checking for speed_t... " >&6; }
7859 if test "${emacs_cv_speed_t+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <termios.h>
7866 main ()
7868 speed_t x = 1;
7870 return 0;
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 emacs_cv_speed_t=yes
7875 else
7876 emacs_cv_speed_t=no
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7881 $as_echo "$emacs_cv_speed_t" >&6; }
7882 if test $emacs_cv_speed_t = yes; then
7884 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7889 $as_echo_n "checking for struct timeval... " >&6; }
7890 if test "${emacs_cv_struct_timeval+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #ifdef TIME_WITH_SYS_TIME
7896 #include <sys/time.h>
7897 #include <time.h>
7898 #else
7899 #ifdef HAVE_SYS_TIME_H
7900 #include <sys/time.h>
7901 #else
7902 #include <time.h>
7903 #endif
7904 #endif
7906 main ()
7908 static struct timeval x; x.tv_sec = x.tv_usec;
7910 return 0;
7912 _ACEOF
7913 if ac_fn_c_try_compile "$LINENO"; then :
7914 emacs_cv_struct_timeval=yes
7915 else
7916 emacs_cv_struct_timeval=no
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7921 $as_echo "$emacs_cv_struct_timeval" >&6; }
7922 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7923 if test $emacs_cv_struct_timeval = yes; then
7925 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #include <math.h>
7938 main ()
7940 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7942 return 0;
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 emacs_cv_struct_exception=yes
7947 else
7948 emacs_cv_struct_exception=no
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7953 $as_echo "$emacs_cv_struct_exception" >&6; }
7954 HAVE_EXCEPTION=$emacs_cv_struct_exception
7955 if test $emacs_cv_struct_exception != yes; then
7957 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7961 for ac_header in sys/socket.h
7962 do :
7963 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7964 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_SYS_SOCKET_H 1
7967 _ACEOF
7971 done
7973 for ac_header in net/if.h
7974 do :
7975 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7976 #if HAVE_SYS_SOCKET_H
7977 #include <sys/socket.h>
7978 #endif
7980 if test "x$ac_cv_header_net_if_h" = x""yes; then :
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_NET_IF_H 1
7983 _ACEOF
7987 done
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7991 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7992 if test "${ac_cv_struct_tm+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
7998 #include <time.h>
8001 main ()
8003 struct tm tm;
8004 int *p = &tm.tm_sec;
8005 return !p;
8007 return 0;
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_struct_tm=time.h
8012 else
8013 ac_cv_struct_tm=sys/time.h
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8018 $as_echo "$ac_cv_struct_tm" >&6; }
8019 if test $ac_cv_struct_tm = sys/time.h; then
8021 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8025 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8026 #include <$ac_cv_struct_tm>
8029 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8031 cat >>confdefs.h <<_ACEOF
8032 #define HAVE_STRUCT_TM_TM_ZONE 1
8033 _ACEOF
8038 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8040 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8042 else
8043 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8045 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8046 ac_have_decl=1
8047 else
8048 ac_have_decl=0
8051 cat >>confdefs.h <<_ACEOF
8052 #define HAVE_DECL_TZNAME $ac_have_decl
8053 _ACEOF
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8056 $as_echo_n "checking for tzname... " >&6; }
8057 if test "${ac_cv_var_tzname+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <time.h>
8063 #if !HAVE_DECL_TZNAME
8064 extern char *tzname[];
8065 #endif
8068 main ()
8070 return tzname[0][0];
8072 return 0;
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 ac_cv_var_tzname=yes
8077 else
8078 ac_cv_var_tzname=no
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8084 $as_echo "$ac_cv_var_tzname" >&6; }
8085 if test $ac_cv_var_tzname = yes; then
8087 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8092 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8094 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8096 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8100 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8101 #if HAVE_SYS_SOCKET_H
8102 #include <sys/socket.h>
8103 #endif
8104 #if HAVE_NET_IF_H
8105 #include <net/if.h>
8106 #endif
8108 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8110 cat >>confdefs.h <<_ACEOF
8111 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8112 _ACEOF
8116 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8117 #if HAVE_SYS_SOCKET_H
8118 #include <sys/socket.h>
8119 #endif
8120 #if HAVE_NET_IF_H
8121 #include <net/if.h>
8122 #endif
8124 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8126 cat >>confdefs.h <<_ACEOF
8127 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8128 _ACEOF
8132 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8133 #if HAVE_SYS_SOCKET_H
8134 #include <sys/socket.h>
8135 #endif
8136 #if HAVE_NET_IF_H
8137 #include <net/if.h>
8138 #endif
8140 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8142 cat >>confdefs.h <<_ACEOF
8143 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8144 _ACEOF
8148 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8151 #endif
8152 #if HAVE_NET_IF_H
8153 #include <net/if.h>
8154 #endif
8156 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8160 _ACEOF
8164 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8165 #if HAVE_SYS_SOCKET_H
8166 #include <sys/socket.h>
8167 #endif
8168 #if HAVE_NET_IF_H
8169 #include <net/if.h>
8170 #endif
8172 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8174 cat >>confdefs.h <<_ACEOF
8175 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8176 _ACEOF
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8184 $as_echo_n "checking for function prototypes... " >&6; }
8185 if test "$ac_cv_prog_cc_c89" != no; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8187 $as_echo "yes" >&6; }
8189 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8192 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8200 $as_echo_n "checking for working volatile... " >&6; }
8201 if test "${ac_cv_c_volatile+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8208 main ()
8211 volatile int x;
8212 int * volatile y = (int *) 0;
8213 return !x && !y;
8215 return 0;
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 ac_cv_c_volatile=yes
8220 else
8221 ac_cv_c_volatile=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8226 $as_echo "$ac_cv_c_volatile" >&6; }
8227 if test $ac_cv_c_volatile = no; then
8229 $as_echo "#define volatile /**/" >>confdefs.h
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8234 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8235 if test "${ac_cv_c_const+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8242 main ()
8244 /* FIXME: Include the comments suggested by Paul. */
8245 #ifndef __cplusplus
8246 /* Ultrix mips cc rejects this. */
8247 typedef int charset[2];
8248 const charset cs;
8249 /* SunOS 4.1.1 cc rejects this. */
8250 char const *const *pcpcc;
8251 char **ppc;
8252 /* NEC SVR4.0.2 mips cc rejects this. */
8253 struct point {int x, y;};
8254 static struct point const zero = {0,0};
8255 /* AIX XL C 1.02.0.0 rejects this.
8256 It does not let you subtract one const X* pointer from another in
8257 an arm of an if-expression whose if-part is not a constant
8258 expression */
8259 const char *g = "string";
8260 pcpcc = &g + (g ? g-g : 0);
8261 /* HPUX 7.0 cc rejects these. */
8262 ++pcpcc;
8263 ppc = (char**) pcpcc;
8264 pcpcc = (char const *const *) ppc;
8265 { /* SCO 3.2v4 cc rejects this. */
8266 char *t;
8267 char const *s = 0 ? (char *) 0 : (char const *) 0;
8269 *t++ = 0;
8270 if (s) return 0;
8272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8273 int x[] = {25, 17};
8274 const int *foo = &x[0];
8275 ++foo;
8277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8278 typedef const int *iptr;
8279 iptr p = 0;
8280 ++p;
8282 { /* AIX XL C 1.02.0.0 rejects this saying
8283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8284 struct s { int j; const int *ap[3]; };
8285 struct s *b; b->j = 5;
8287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8288 const int foo = 10;
8289 if (!foo) return 0;
8291 return !cs[0] && !zero.x;
8292 #endif
8295 return 0;
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 ac_cv_c_const=yes
8300 else
8301 ac_cv_c_const=no
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8306 $as_echo "$ac_cv_c_const" >&6; }
8307 if test $ac_cv_c_const = no; then
8309 $as_echo "#define const /**/" >>confdefs.h
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8314 $as_echo_n "checking for void * support... " >&6; }
8315 if test "${emacs_cv_void_star+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8322 main ()
8324 void * foo;
8326 return 0;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 emacs_cv_void_star=yes
8331 else
8332 emacs_cv_void_star=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8337 $as_echo "$emacs_cv_void_star" >&6; }
8338 if test $emacs_cv_void_star = yes; then
8339 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8341 else
8342 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8348 if test "${ac_cv_c_bigendian+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 ac_cv_c_bigendian=unknown
8352 # See if we're dealing with a universal compiler.
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #ifndef __APPLE_CC__
8356 not a universal capable compiler
8357 #endif
8358 typedef int dummy;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8363 # Check for potential -arch flags. It is not universal unless
8364 # there are at least two -arch flags with different values.
8365 ac_arch=
8366 ac_prev=
8367 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8368 if test -n "$ac_prev"; then
8369 case $ac_word in
8370 i?86 | x86_64 | ppc | ppc64)
8371 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8372 ac_arch=$ac_word
8373 else
8374 ac_cv_c_bigendian=universal
8375 break
8378 esac
8379 ac_prev=
8380 elif test "x$ac_word" = "x-arch"; then
8381 ac_prev=arch
8383 done
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 if test $ac_cv_c_bigendian = unknown; then
8387 # See if sys/param.h defines the BYTE_ORDER macro.
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8394 main ()
8396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8398 && LITTLE_ENDIAN)
8399 bogus endian macros
8400 #endif
8403 return 0;
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8407 # It does; now see whether it defined to BIG_ENDIAN or not.
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <sys/types.h>
8411 #include <sys/param.h>
8414 main ()
8416 #if BYTE_ORDER != BIG_ENDIAN
8417 not big endian
8418 #endif
8421 return 0;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 ac_cv_c_bigendian=yes
8426 else
8427 ac_cv_c_bigendian=no
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <limits.h>
8440 main ()
8442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8443 bogus endian macros
8444 #endif
8447 return 0;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 # It does; now see whether it defined to _BIG_ENDIAN or not.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <limits.h>
8457 main ()
8459 #ifndef _BIG_ENDIAN
8460 not big endian
8461 #endif
8464 return 0;
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_c_bigendian=yes
8469 else
8470 ac_cv_c_bigendian=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 if test $ac_cv_c_bigendian = unknown; then
8477 # Compile a test program.
8478 if test "$cross_compiling" = yes; then :
8479 # Try to guess by grepping values from an object file.
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 short int ascii_mm[] =
8483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8484 short int ascii_ii[] =
8485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8486 int use_ascii (int i) {
8487 return ascii_mm[i] + ascii_ii[i];
8489 short int ebcdic_ii[] =
8490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short int ebcdic_mm[] =
8492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 int use_ebcdic (int i) {
8494 return ebcdic_mm[i] + ebcdic_ii[i];
8496 extern int foo;
8499 main ()
8501 return use_ascii (foo) == use_ebcdic (foo);
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"; then :
8507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8508 ac_cv_c_bigendian=yes
8510 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8511 if test "$ac_cv_c_bigendian" = unknown; then
8512 ac_cv_c_bigendian=no
8513 else
8514 # finding both strings is unlikely to happen, but who knows?
8515 ac_cv_c_bigendian=unknown
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 else
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 $ac_includes_default
8525 main ()
8528 /* Are we little or big endian? From Harbison&Steele. */
8529 union
8531 long int l;
8532 char c[sizeof (long int)];
8533 } u;
8534 u.l = 1;
8535 return u.c[sizeof (long int) - 1] == 1;
8538 return 0;
8540 _ACEOF
8541 if ac_fn_c_try_run "$LINENO"; then :
8542 ac_cv_c_bigendian=no
8543 else
8544 ac_cv_c_bigendian=yes
8546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8547 conftest.$ac_objext conftest.beam conftest.$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8553 $as_echo "$ac_cv_c_bigendian" >&6; }
8554 case $ac_cv_c_bigendian in #(
8555 yes)
8556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8557 ;; #(
8559 ;; #(
8560 universal)
8562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8564 ;; #(
8566 as_fn_error $? "unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8568 esac
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8572 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8573 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 char __attribute__ ((__aligned__ (1 << 3))) c;
8580 main ()
8584 return 0;
8586 _ACEOF
8587 if ac_fn_c_try_compile "$LINENO"; then :
8588 emacs_cv_attribute_aligned=yes
8589 else
8590 emacs_cv_attribute_aligned=no
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8595 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8596 if test $emacs_cv_attribute_aligned = yes; then
8598 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8603 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8604 set x ${MAKE-make}
8605 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8606 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat >conftest.make <<\_ACEOF
8610 SHELL = /bin/sh
8611 all:
8612 @echo '@@@%%%=$(MAKE)=@@@%%%'
8613 _ACEOF
8614 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8615 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8616 *@@@%%%=?*=@@@%%%*)
8617 eval ac_cv_prog_make_${ac_make}_set=yes;;
8619 eval ac_cv_prog_make_${ac_make}_set=no;;
8620 esac
8621 rm -f conftest.make
8623 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625 $as_echo "yes" >&6; }
8626 SET_MAKE=
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 SET_MAKE="MAKE=${MAKE-make}"
8634 DEPFLAGS=
8635 MKDEPDIR=":"
8636 deps_frag=deps.mk
8637 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8639 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8640 HAVE_GNU_MAKE=no
8641 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8642 if test "x$testval" != x; then
8643 HAVE_GNU_MAKE=yes
8644 else
8645 ac_enable_autodepend=no
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8648 $as_echo "$HAVE_GNU_MAKE" >&6; }
8649 if test $HAVE_GNU_MAKE = yes; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8651 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8652 SAVE_CFLAGS="$CFLAGS"
8653 CFLAGS="$CFLAGS -MMD -MF deps.d"
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8658 main ()
8662 return 0;
8664 _ACEOF
8665 if ac_fn_c_try_compile "$LINENO"; then :
8667 else
8668 ac_enable_autodepend=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 CFLAGS="$SAVE_CFLAGS"
8672 test -f deps.d || ac_enable_autodepend=no
8673 rm -rf deps.d
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8675 $as_echo "$ac_enable_autodepend" >&6; }
8677 if test $ac_enable_autodepend = yes; then
8678 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8679 ## In parallel builds, another make might create depdir between
8680 ## the first test and mkdir, so stick another test on the end.
8681 ## Or use mkinstalldirs? mkdir -p is not portable.
8682 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8683 deps_frag=autodeps.mk
8686 deps_frag=$srcdir/src/$deps_frag
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8693 $as_echo_n "checking for long file names... " >&6; }
8694 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 ac_cv_sys_long_file_names=yes
8698 # Test for long file names in all the places we know might matter:
8699 # . the current directory, where building will happen
8700 # $prefix/lib where we will be installing things
8701 # $exec_prefix/lib likewise
8702 # $TMPDIR if set, where it might want to write temporary files
8703 # /tmp where it might want to write temporary files
8704 # /var/tmp likewise
8705 # /usr/tmp likewise
8706 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8707 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8708 # in the usual case where exec_prefix is '${prefix}'.
8709 case $ac_dir in #(
8710 . | /* | ?:[\\/]*) ;; #(
8711 *) continue;;
8712 esac
8713 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8714 ac_xdir=$ac_dir/cf$$
8715 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8716 ac_tf1=$ac_xdir/conftest9012345
8717 ac_tf2=$ac_xdir/conftest9012346
8718 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8719 ac_cv_sys_long_file_names=no
8720 rm -f -r "$ac_xdir" 2>/dev/null
8721 test $ac_cv_sys_long_file_names = no && break
8722 done
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8725 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8726 if test $ac_cv_sys_long_file_names = yes; then
8728 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8733 #### Choose a window system.
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8736 $as_echo_n "checking for X... " >&6; }
8739 # Check whether --with-x was given.
8740 if test "${with_x+set}" = set; then :
8741 withval=$with_x;
8744 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8745 if test "x$with_x" = xno; then
8746 # The user explicitly disabled X.
8747 have_x=disabled
8748 else
8749 case $x_includes,$x_libraries in #(
8750 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
8751 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 # One or both of the vars are not set, and there is no cached value.
8755 ac_x_includes=no ac_x_libraries=no
8756 rm -f -r conftest.dir
8757 if mkdir conftest.dir; then
8758 cd conftest.dir
8759 cat >Imakefile <<'_ACEOF'
8760 incroot:
8761 @echo incroot='${INCROOT}'
8762 usrlibdir:
8763 @echo usrlibdir='${USRLIBDIR}'
8764 libdir:
8765 @echo libdir='${LIBDIR}'
8766 _ACEOF
8767 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8769 for ac_var in incroot usrlibdir libdir; do
8770 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8771 done
8772 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8773 for ac_extension in a so sl dylib la dll; do
8774 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8775 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8776 ac_im_usrlibdir=$ac_im_libdir; break
8778 done
8779 # Screen out bogus values from the imake configuration. They are
8780 # bogus both because they are the default anyway, and because
8781 # using them would break gcc on systems where it needs fixed includes.
8782 case $ac_im_incroot in
8783 /usr/include) ac_x_includes= ;;
8784 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8785 esac
8786 case $ac_im_usrlibdir in
8787 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8788 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8789 esac
8791 cd ..
8792 rm -f -r conftest.dir
8795 # Standard set of common directories for X headers.
8796 # Check X11 before X11Rn because it is often a symlink to the current release.
8797 ac_x_header_dirs='
8798 /usr/X11/include
8799 /usr/X11R7/include
8800 /usr/X11R6/include
8801 /usr/X11R5/include
8802 /usr/X11R4/include
8804 /usr/include/X11
8805 /usr/include/X11R7
8806 /usr/include/X11R6
8807 /usr/include/X11R5
8808 /usr/include/X11R4
8810 /usr/local/X11/include
8811 /usr/local/X11R7/include
8812 /usr/local/X11R6/include
8813 /usr/local/X11R5/include
8814 /usr/local/X11R4/include
8816 /usr/local/include/X11
8817 /usr/local/include/X11R7
8818 /usr/local/include/X11R6
8819 /usr/local/include/X11R5
8820 /usr/local/include/X11R4
8822 /usr/X386/include
8823 /usr/x386/include
8824 /usr/XFree86/include/X11
8826 /usr/include
8827 /usr/local/include
8828 /usr/unsupported/include
8829 /usr/athena/include
8830 /usr/local/x11r5/include
8831 /usr/lpp/Xamples/include
8833 /usr/openwin/include
8834 /usr/openwin/share/include'
8836 if test "$ac_x_includes" = no; then
8837 # Guess where to find include files, by looking for Xlib.h.
8838 # First, try using that file with no special directory specified.
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <X11/Xlib.h>
8842 _ACEOF
8843 if ac_fn_c_try_cpp "$LINENO"; then :
8844 # We can compile using X headers with no special include directory.
8845 ac_x_includes=
8846 else
8847 for ac_dir in $ac_x_header_dirs; do
8848 if test -r "$ac_dir/X11/Xlib.h"; then
8849 ac_x_includes=$ac_dir
8850 break
8852 done
8854 rm -f conftest.err conftest.i conftest.$ac_ext
8855 fi # $ac_x_includes = no
8857 if test "$ac_x_libraries" = no; then
8858 # Check for the libraries.
8859 # See if we find them without any special options.
8860 # Don't add to $LIBS permanently.
8861 ac_save_LIBS=$LIBS
8862 LIBS="-lX11 $LIBS"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #include <X11/Xlib.h>
8867 main ()
8869 XrmInitialize ()
8871 return 0;
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875 LIBS=$ac_save_LIBS
8876 # We can link X programs with no special library path.
8877 ac_x_libraries=
8878 else
8879 LIBS=$ac_save_LIBS
8880 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8882 # Don't even attempt the hair of trying to link an X program!
8883 for ac_extension in a so sl dylib la dll; do
8884 if test -r "$ac_dir/libX11.$ac_extension"; then
8885 ac_x_libraries=$ac_dir
8886 break 2
8888 done
8889 done
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 fi # $ac_x_libraries = no
8895 case $ac_x_includes,$ac_x_libraries in #(
8896 no,* | *,no | *\'*)
8897 # Didn't find X, or a directory has "'" in its name.
8898 ac_cv_have_x="have_x=no";; #(
8900 # Record where we found X for the cache.
8901 ac_cv_have_x="have_x=yes\
8902 ac_x_includes='$ac_x_includes'\
8903 ac_x_libraries='$ac_x_libraries'"
8904 esac
8906 ;; #(
8907 *) have_x=yes;;
8908 esac
8909 eval "$ac_cv_have_x"
8910 fi # $with_x != no
8912 if test "$have_x" != yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8914 $as_echo "$have_x" >&6; }
8915 no_x=yes
8916 else
8917 # If each of the values was on the command line, it overrides each guess.
8918 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8919 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8920 # Update the cache value to reflect the command line values.
8921 ac_cv_have_x="have_x=yes\
8922 ac_x_includes='$x_includes'\
8923 ac_x_libraries='$x_libraries'"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8925 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8928 if test "$no_x" = yes; then
8929 window_system=none
8930 else
8931 window_system=x11
8934 ## Workaround for bug in autoconf <= 2.62.
8935 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8936 ## No need to do anything special for these standard directories.
8937 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8939 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8943 LD_SWITCH_X_SITE_AUX=
8944 LD_SWITCH_X_SITE_AUX_RPATH=
8945 if test "${x_libraries}" != NONE; then
8946 if test -n "${x_libraries}"; then
8947 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8948 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8949 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8951 x_default_search_path=""
8952 x_search_path=${x_libraries}
8953 if test -z "${x_search_path}"; then
8954 x_search_path=/usr/lib
8956 for x_library in `echo ${x_search_path}: | \
8957 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8958 x_search_path="\
8959 ${x_library}/X11/%L/%T/%N%C%S:\
8960 ${x_library}/X11/%l/%T/%N%C%S:\
8961 ${x_library}/X11/%T/%N%C%S:\
8962 ${x_library}/X11/%L/%T/%N%S:\
8963 ${x_library}/X11/%l/%T/%N%S:\
8964 ${x_library}/X11/%T/%N%S"
8965 if test x"${x_default_search_path}" = x; then
8966 x_default_search_path=${x_search_path}
8967 else
8968 x_default_search_path="${x_search_path}:${x_default_search_path}"
8970 done
8975 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8976 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8979 if test x"${x_includes}" = x; then
8980 bitmapdir=/usr/include/X11/bitmaps
8981 else
8982 # accumulate include directories that have X11 bitmap subdirectories
8983 bmd_acc="dummyval"
8984 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8985 if test -d "${bmd}/X11/bitmaps"; then
8986 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8988 if test -d "${bmd}/bitmaps"; then
8989 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8991 done
8992 if test ${bmd_acc} != "dummyval"; then
8993 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8997 HAVE_NS=no
8998 NS_IMPL_COCOA=no
8999 NS_IMPL_GNUSTEP=no
9000 tmp_CPPFLAGS="$CPPFLAGS"
9001 tmp_CFLAGS="$CFLAGS"
9002 CPPFLAGS="$CPPFLAGS -x objective-c"
9003 CFLAGS="$CFLAGS -x objective-c"
9004 TEMACS_LDFLAGS2="\${LDFLAGS}"
9005 if test "${with_ns}" != no; then
9006 if test "${opsys}" = darwin; then
9007 NS_IMPL_COCOA=yes
9008 ns_appdir=`pwd`/nextstep/Emacs.app
9009 ns_appbindir=${ns_appdir}/Contents/MacOS/
9010 ns_appresdir=${ns_appdir}/Contents/Resources
9011 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9012 elif test -f $GNUSTEP_CONFIG_FILE; then
9013 NS_IMPL_GNUSTEP=yes
9014 ns_appdir=`pwd`/nextstep/Emacs.app
9015 ns_appbindir=${ns_appdir}/
9016 ns_appresdir=${ns_appdir}/Resources
9017 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9018 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9019 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9020 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9021 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9022 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9023 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9024 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9025 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9026 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9027 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9028 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9029 LIB_STANDARD=
9030 START_FILES=
9031 TEMACS_LDFLAGS2=
9033 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9034 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9035 HAVE_NS=yes
9036 else
9037 as_fn_error $? "\`--with-ns' was specified, but the include
9038 files are missing or cannot be compiled." "$LINENO" 5
9042 NS_HAVE_NSINTEGER=yes
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 #include <Foundation/NSObjCRuntime.h>
9047 main ()
9049 NSInteger i;
9051 return 0;
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055 ns_have_nsinteger=yes
9056 else
9057 ns_have_nsinteger=no
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 if test $ns_have_nsinteger = no; then
9061 NS_HAVE_NSINTEGER=no
9066 ns_frag=/dev/null
9067 NS_OBJ=
9068 NS_OBJC_OBJ=
9069 NS_SUPPORT=
9070 if test "${HAVE_NS}" = yes; then
9071 window_system=nextstep
9072 with_xft=no
9073 # set up packaging dirs
9074 exec_prefix=${ns_appbindir}
9075 libexecdir=${ns_appbindir}/libexec
9076 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9077 prefix=${ns_appresdir}
9079 ns_frag=$srcdir/src/ns.mk
9080 NS_OBJ="fontset.o fringe.o image.o"
9081 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9082 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9084 CFLAGS="$tmp_CFLAGS"
9085 CPPFLAGS="$tmp_CPPFLAGS"
9092 case "${window_system}" in
9093 x11 )
9094 HAVE_X_WINDOWS=yes
9095 HAVE_X11=yes
9096 case "${with_x_toolkit}" in
9097 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9098 motif ) USE_X_TOOLKIT=MOTIF ;;
9099 gtk ) with_gtk=yes
9100 USE_X_TOOLKIT=none ;;
9101 gtk3 ) with_gtk3=yes
9102 USE_X_TOOLKIT=none ;;
9103 no ) USE_X_TOOLKIT=none ;;
9104 * ) USE_X_TOOLKIT=maybe ;;
9105 esac
9107 nextstep | none )
9108 HAVE_X_WINDOWS=no
9109 HAVE_X11=no
9110 USE_X_TOOLKIT=none
9112 esac
9114 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9115 # Extract the first word of "X", so it can be a program name with args.
9116 set dummy X; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 if test -n "$HAVE_XSERVER"; then
9123 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_HAVE_XSERVER="true"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9138 IFS=$as_save_IFS
9140 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9143 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9144 if test -n "$HAVE_XSERVER"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9146 $as_echo "$HAVE_XSERVER" >&6; }
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9153 if test "$HAVE_XSERVER" = true ||
9154 test -n "$DISPLAY" ||
9155 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9156 as_fn_error $? "You seem to be running X, but no X development libraries
9157 were found. You should install the relevant development files for X
9158 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9159 sure you have development files for image handling, i.e.
9160 tiff, gif, jpeg, png and xpm.
9161 If you are sure you want Emacs compiled without X window support, pass
9162 --without-x
9163 to configure." "$LINENO" 5
9167 ### If we're using X11, we should use the X menu package.
9168 HAVE_MENUS=no
9169 case ${HAVE_X11} in
9170 yes ) HAVE_MENUS=yes ;;
9171 esac
9173 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9174 # Assume not, until told otherwise.
9175 GNU_MALLOC=yes
9176 doug_lea_malloc=yes
9177 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9178 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9180 else
9181 doug_lea_malloc=no
9184 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9185 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9187 else
9188 doug_lea_malloc=no
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9192 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9193 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 extern void (* __after_morecore_hook)();
9200 main ()
9202 __after_morecore_hook = 0
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 emacs_cv_var___after_morecore_hook=yes
9209 else
9210 emacs_cv_var___after_morecore_hook=no
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9216 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9217 if test $emacs_cv_var___after_morecore_hook = no; then
9218 doug_lea_malloc=no
9222 system_malloc=no
9223 case "$opsys" in
9224 ## darwin ld insists on the use of malloc routines in the System framework.
9225 darwin|sol2-10) system_malloc=yes ;;
9226 esac
9228 if test "${system_malloc}" = "yes"; then
9230 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9232 GNU_MALLOC=no
9233 GNU_MALLOC_reason="
9234 (The GNU allocators don't work with this system configuration.)"
9235 GMALLOC_OBJ=
9236 VMLIMIT_OBJ=
9237 else
9238 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9239 VMLIMIT_OBJ=vm-limit.o
9244 if test "$doug_lea_malloc" = "yes" ; then
9245 if test "$GNU_MALLOC" = yes ; then
9246 GNU_MALLOC_reason="
9247 (Using Doug Lea's new malloc from the GNU C Library.)"
9250 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9253 ## Use mmap directly for allocating larger buffers.
9254 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9255 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9256 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9257 case "$opsys" in
9258 gnu*) REL_ALLOC=no ;;
9259 esac
9262 if test x"${REL_ALLOC}" = x; then
9263 REL_ALLOC=${GNU_MALLOC}
9266 use_mmap_for_buffers=no
9267 case "$opsys" in
9268 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9269 esac
9274 for ac_header in $ac_header_list
9275 do :
9276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9280 cat >>confdefs.h <<_ACEOF
9281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282 _ACEOF
9286 done
9295 for ac_func in getpagesize
9296 do :
9297 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9298 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9299 cat >>confdefs.h <<_ACEOF
9300 #define HAVE_GETPAGESIZE 1
9301 _ACEOF
9304 done
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9307 $as_echo_n "checking for working mmap... " >&6; }
9308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 if test "$cross_compiling" = yes; then :
9312 ac_cv_func_mmap_fixed_mapped=no
9313 else
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 /* malloc might have been renamed as rpl_malloc. */
9318 #undef malloc
9320 /* Thanks to Mike Haertel and Jim Avera for this test.
9321 Here is a matrix of mmap possibilities:
9322 mmap private not fixed
9323 mmap private fixed at somewhere currently unmapped
9324 mmap private fixed at somewhere already mapped
9325 mmap shared not fixed
9326 mmap shared fixed at somewhere currently unmapped
9327 mmap shared fixed at somewhere already mapped
9328 For private mappings, we should verify that changes cannot be read()
9329 back from the file, nor mmap's back from the file at a different
9330 address. (There have been systems where private was not correctly
9331 implemented like the infamous i386 svr4.0, and systems where the
9332 VM page cache was not coherent with the file system buffer cache
9333 like early versions of FreeBSD and possibly contemporary NetBSD.)
9334 For shared mappings, we should conversely verify that changes get
9335 propagated back to all the places they're supposed to be.
9337 Grep wants private fixed already mapped.
9338 The main things grep needs to know about mmap are:
9339 * does it exist and is it safe to write into the mmap'd area
9340 * how to use it (BSD variants) */
9342 #include <fcntl.h>
9343 #include <sys/mman.h>
9345 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9346 char *malloc ();
9347 #endif
9349 /* This mess was copied from the GNU getpagesize.h. */
9350 #ifndef HAVE_GETPAGESIZE
9351 # ifdef _SC_PAGESIZE
9352 # define getpagesize() sysconf(_SC_PAGESIZE)
9353 # else /* no _SC_PAGESIZE */
9354 # ifdef HAVE_SYS_PARAM_H
9355 # include <sys/param.h>
9356 # ifdef EXEC_PAGESIZE
9357 # define getpagesize() EXEC_PAGESIZE
9358 # else /* no EXEC_PAGESIZE */
9359 # ifdef NBPG
9360 # define getpagesize() NBPG * CLSIZE
9361 # ifndef CLSIZE
9362 # define CLSIZE 1
9363 # endif /* no CLSIZE */
9364 # else /* no NBPG */
9365 # ifdef NBPC
9366 # define getpagesize() NBPC
9367 # else /* no NBPC */
9368 # ifdef PAGESIZE
9369 # define getpagesize() PAGESIZE
9370 # endif /* PAGESIZE */
9371 # endif /* no NBPC */
9372 # endif /* no NBPG */
9373 # endif /* no EXEC_PAGESIZE */
9374 # else /* no HAVE_SYS_PARAM_H */
9375 # define getpagesize() 8192 /* punt totally */
9376 # endif /* no HAVE_SYS_PARAM_H */
9377 # endif /* no _SC_PAGESIZE */
9379 #endif /* no HAVE_GETPAGESIZE */
9382 main ()
9384 char *data, *data2, *data3;
9385 const char *cdata2;
9386 int i, pagesize;
9387 int fd, fd2;
9389 pagesize = getpagesize ();
9391 /* First, make a file with some known garbage in it. */
9392 data = (char *) malloc (pagesize);
9393 if (!data)
9394 return 1;
9395 for (i = 0; i < pagesize; ++i)
9396 *(data + i) = rand ();
9397 umask (0);
9398 fd = creat ("conftest.mmap", 0600);
9399 if (fd < 0)
9400 return 2;
9401 if (write (fd, data, pagesize) != pagesize)
9402 return 3;
9403 close (fd);
9405 /* Next, check that the tail of a page is zero-filled. File must have
9406 non-zero length, otherwise we risk SIGBUS for entire page. */
9407 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9408 if (fd2 < 0)
9409 return 4;
9410 cdata2 = "";
9411 if (write (fd2, cdata2, 1) != 1)
9412 return 5;
9413 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9414 if (data2 == MAP_FAILED)
9415 return 6;
9416 for (i = 0; i < pagesize; ++i)
9417 if (*(data2 + i))
9418 return 7;
9419 close (fd2);
9420 if (munmap (data2, pagesize))
9421 return 8;
9423 /* Next, try to mmap the file at a fixed address which already has
9424 something else allocated at it. If we can, also make sure that
9425 we see the same garbage. */
9426 fd = open ("conftest.mmap", O_RDWR);
9427 if (fd < 0)
9428 return 9;
9429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9431 return 10;
9432 for (i = 0; i < pagesize; ++i)
9433 if (*(data + i) != *(data2 + i))
9434 return 11;
9436 /* Finally, make sure that changes to the mapped area do not
9437 percolate back to the file as seen by read(). (This is a bug on
9438 some variants of i386 svr4.0.) */
9439 for (i = 0; i < pagesize; ++i)
9440 *(data2 + i) = *(data2 + i) + 1;
9441 data3 = (char *) malloc (pagesize);
9442 if (!data3)
9443 return 12;
9444 if (read (fd, data3, pagesize) != pagesize)
9445 return 13;
9446 for (i = 0; i < pagesize; ++i)
9447 if (*(data + i) != *(data3 + i))
9448 return 14;
9449 close (fd);
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_run "$LINENO"; then :
9454 ac_cv_func_mmap_fixed_mapped=yes
9455 else
9456 ac_cv_func_mmap_fixed_mapped=no
9458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9459 conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9464 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9465 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9467 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9470 rm -f conftest.mmap conftest.txt
9472 if test $use_mmap_for_buffers = yes; then
9474 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9476 REL_ALLOC=no
9479 LIBS="$LIBS_SYSTEM $LIBS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9482 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9483 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-ldnet $LIBS"
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char dnet_ntoa ();
9499 main ()
9501 return dnet_ntoa ();
9503 return 0;
9505 _ACEOF
9506 if ac_fn_c_try_link "$LINENO"; then :
9507 ac_cv_lib_dnet_dnet_ntoa=yes
9508 else
9509 ac_cv_lib_dnet_dnet_ntoa=no
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9516 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9517 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_LIBDNET 1
9520 _ACEOF
9522 LIBS="-ldnet $LIBS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9528 $as_echo_n "checking for main in -lXbsd... " >&6; }
9529 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 ac_check_lib_save_LIBS=$LIBS
9533 LIBS="-lXbsd $LIBS"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9539 main ()
9541 return main ();
9543 return 0;
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_lib_Xbsd_main=yes
9548 else
9549 ac_cv_lib_Xbsd_main=no
9551 rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9556 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9557 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9558 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9563 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9564 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 ac_check_lib_save_LIBS=$LIBS
9568 LIBS="-lpthreads $LIBS"
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char cma_open ();
9580 main ()
9582 return cma_open ();
9584 return 0;
9586 _ACEOF
9587 if ac_fn_c_try_link "$LINENO"; then :
9588 ac_cv_lib_pthreads_cma_open=yes
9589 else
9590 ac_cv_lib_pthreads_cma_open=no
9592 rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9597 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9598 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9599 cat >>confdefs.h <<_ACEOF
9600 #define HAVE_LIBPTHREADS 1
9601 _ACEOF
9603 LIBS="-lpthreads $LIBS"
9608 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9609 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9610 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9611 ## added to LIBS in configure would never contain the pthreads part,
9612 ## but the value used in Makefiles might. FIXME?
9614 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9615 ## be harmless on older versions of X where it happens to exist.
9616 test "$opsys" = "aix4-2" && \
9617 test $ac_cv_lib_pthreads_cma_open = yes && \
9618 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9621 case ${host_os} in
9622 aix*)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9624 $as_echo_n "checking for -bbigtoc option... " >&6; }
9625 if test "${gdb_cv_bigtoc+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9629 case $GCC in
9630 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9631 *) gdb_cv_bigtoc=-bbigtoc ;;
9632 esac
9634 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9639 main ()
9641 int i;
9643 return 0;
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9648 else
9649 gdb_cv_bigtoc=
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9656 $as_echo "$gdb_cv_bigtoc" >&6; }
9658 esac
9660 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9661 # used for the tests that follow. We set them back to REAL_CFLAGS and
9662 # REAL_CPPFLAGS later on.
9664 REAL_CFLAGS="$CFLAGS"
9665 REAL_CPPFLAGS="$CPPFLAGS"
9667 if test "${HAVE_X11}" = "yes"; then
9668 DEFS="$C_SWITCH_X_SITE $DEFS"
9669 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9670 LIBS="-lX11 $LIBS"
9671 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9672 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9674 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9675 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9676 # but it's more convenient here to set LD_RUN_PATH
9677 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9678 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9679 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9680 export LD_RUN_PATH
9683 if test "${opsys}" = "gnu-linux"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9685 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9690 main ()
9692 XOpenDisplay ("foo");
9694 return 0;
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698 xlinux_first_failure=no
9699 else
9700 xlinux_first_failure=yes
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 if test "${xlinux_first_failure}" = "yes"; then
9705 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9706 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9707 OLD_CPPFLAGS="$CPPFLAGS"
9708 OLD_LIBS="$LIBS"
9709 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9710 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9711 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9712 LIBS="$LIBS -b i486-linuxaout"
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9717 main ()
9719 XOpenDisplay ("foo");
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 xlinux_second_failure=no
9726 else
9727 xlinux_second_failure=yes
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 if test "${xlinux_second_failure}" = "yes"; then
9732 # If we get the same failure with -b, there is no use adding -b.
9733 # So take it out. This plays safe.
9734 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9735 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9736 CPPFLAGS="$OLD_CPPFLAGS"
9737 LIBS="$OLD_LIBS"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9740 else
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9751 # header files included from there.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9753 $as_echo_n "checking for Xkb... " >&6; }
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 #include <X11/Xlib.h>
9757 #include <X11/XKBlib.h>
9759 main ()
9761 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9763 return 0;
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 emacs_xkb=yes
9768 else
9769 emacs_xkb=no
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9774 $as_echo "$emacs_xkb" >&6; }
9775 if test $emacs_xkb = yes; then
9777 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9781 for ac_func in XrmSetDatabase XScreenResourceString \
9782 XScreenNumberOfScreen XSetWMProtocols
9783 do :
9784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9785 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9786 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9789 _ACEOF
9792 done
9796 if test "${window_system}" = "x11"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9798 $as_echo_n "checking X11 version 6... " >&6; }
9799 if test "${emacs_cv_x11_version_6+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <X11/Xlib.h>
9806 main ()
9808 #if XlibSpecificationRelease < 6
9809 fail;
9810 #endif
9813 return 0;
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 emacs_cv_x11_version_6=yes
9818 else
9819 emacs_cv_x11_version_6=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9825 if test $emacs_cv_x11_version_6 = yes; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9827 $as_echo "6 or newer" >&6; }
9829 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9832 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9834 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9835 ## XIM support.
9836 case "$opsys" in
9837 sol2-*) : ;;
9839 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9842 esac
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9845 $as_echo "before 6" >&6; }
9850 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9851 HAVE_RSVG=no
9852 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9853 if test "${with_rsvg}" != "no"; then
9854 RSVG_REQUIRED=2.11.0
9855 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9858 succeeded=no
9860 # Extract the first word of "pkg-config", so it can be a program name with args.
9861 set dummy pkg-config; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 case $PKG_CONFIG in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9889 esac
9891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9892 if test -n "$PKG_CONFIG"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9894 $as_echo "$PKG_CONFIG" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9902 if test "$PKG_CONFIG" = "no" ; then
9904 else
9905 PKG_CONFIG_MIN_VERSION=0.9.0
9906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9908 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9910 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9912 $as_echo "yes" >&6; }
9913 succeeded=yes
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9916 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9917 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9919 $as_echo "$RSVG_CFLAGS" >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9922 $as_echo_n "checking RSVG_LIBS... " >&6; }
9923 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9925 $as_echo "$RSVG_LIBS" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9929 RSVG_CFLAGS=""
9930 RSVG_LIBS=""
9931 ## If we have a custom action on failure, don't print errors, but
9932 ## do set a variable so people can do so.
9933 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9939 else
9940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9945 if test $succeeded = yes; then
9946 HAVE_RSVG=yes
9947 else
9954 if test $HAVE_RSVG = yes; then
9956 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9958 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9959 LIBS="$RSVG_LIBS $LIBS"
9964 HAVE_IMAGEMAGICK=no
9965 if test "${HAVE_X11}" = "yes"; then
9966 if test "${with_imagemagick}" != "no"; then
9967 IMAGEMAGICK_MODULE="Wand"
9969 succeeded=no
9971 # Extract the first word of "pkg-config", so it can be a program name with args.
9972 set dummy pkg-config; ac_word=$2
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 $as_echo_n "checking for $ac_word... " >&6; }
9975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 case $PKG_CONFIG in
9979 [\\/]* | ?:[\\/]*)
9980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 for as_dir in $PATH
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9994 done
9995 done
9996 IFS=$as_save_IFS
9998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10000 esac
10002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10003 if test -n "$PKG_CONFIG"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10005 $as_echo "$PKG_CONFIG" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10013 if test "$PKG_CONFIG" = "no" ; then
10015 else
10016 PKG_CONFIG_MIN_VERSION=0.9.0
10017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10019 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10021 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023 $as_echo "yes" >&6; }
10024 succeeded=yes
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10027 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10028 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10030 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10033 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10034 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10036 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 IMAGEMAGICK_CFLAGS=""
10041 IMAGEMAGICK_LIBS=""
10042 ## If we have a custom action on failure, don't print errors, but
10043 ## do set a variable so people can do so.
10044 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10050 else
10051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10056 if test $succeeded = yes; then
10057 HAVE_IMAGEMAGICK=yes
10058 else
10065 if test $HAVE_IMAGEMAGICK = yes; then
10067 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10069 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10070 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10071 for ac_func in MagickExportImagePixels
10072 do :
10073 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10074 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10077 _ACEOF
10080 done
10087 HAVE_GTK=no
10088 if test "${with_gtk3}" = "yes"; then
10089 GLIB_REQUIRED=2.6
10090 GTK_REQUIRED=2.90
10091 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10094 succeeded=no
10096 # Extract the first word of "pkg-config", so it can be a program name with args.
10097 set dummy pkg-config; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 case $PKG_CONFIG in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10125 esac
10127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10128 if test -n "$PKG_CONFIG"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10130 $as_echo "$PKG_CONFIG" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10138 if test "$PKG_CONFIG" = "no" ; then
10139 pkg_check_gtk=no
10140 else
10141 PKG_CONFIG_MIN_VERSION=0.9.0
10142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10144 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10146 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10149 succeeded=yes
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10152 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10153 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10155 $as_echo "$GTK_CFLAGS" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10158 $as_echo_n "checking GTK_LIBS... " >&6; }
10159 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10161 $as_echo "$GTK_LIBS" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 GTK_CFLAGS=""
10166 GTK_LIBS=""
10167 ## If we have a custom action on failure, don't print errors, but
10168 ## do set a variable so people can do so.
10169 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10175 else
10176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10181 if test $succeeded = yes; then
10182 pkg_check_gtk=yes
10183 else
10184 pkg_check_gtk=no
10187 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10188 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10192 if test "$pkg_check_gtk" != "yes"; then
10193 HAVE_GTK=no
10194 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10195 GLIB_REQUIRED=2.6
10196 GTK_REQUIRED=2.6
10197 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10200 succeeded=no
10202 # Extract the first word of "pkg-config", so it can be a program name with args.
10203 set dummy pkg-config; ac_word=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 case $PKG_CONFIG in
10210 [\\/]* | ?:[\\/]*)
10211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10225 done
10226 done
10227 IFS=$as_save_IFS
10229 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10231 esac
10233 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10234 if test -n "$PKG_CONFIG"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10236 $as_echo "$PKG_CONFIG" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10244 if test "$PKG_CONFIG" = "no" ; then
10245 pkg_check_gtk=no
10246 else
10247 PKG_CONFIG_MIN_VERSION=0.9.0
10248 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10250 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10252 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }
10255 succeeded=yes
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10258 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10259 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10261 $as_echo "$GTK_CFLAGS" >&6; }
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10264 $as_echo_n "checking GTK_LIBS... " >&6; }
10265 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10267 $as_echo "$GTK_LIBS" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 GTK_CFLAGS=""
10272 GTK_LIBS=""
10273 ## If we have a custom action on failure, don't print errors, but
10274 ## do set a variable so people can do so.
10275 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10281 else
10282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10287 if test $succeeded = yes; then
10288 pkg_check_gtk=yes
10289 else
10290 pkg_check_gtk=no
10293 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10294 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10299 GTK_OBJ=
10300 if test x"$pkg_check_gtk" = xyes; then
10304 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10305 CFLAGS="$CFLAGS $GTK_CFLAGS"
10306 LIBS="$GTK_LIBS $LIBS"
10307 GTK_COMPILES=no
10308 for ac_func in gtk_main
10309 do :
10310 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10311 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_GTK_MAIN 1
10314 _ACEOF
10315 GTK_COMPILES=yes
10317 done
10319 if test "${GTK_COMPILES}" != "yes"; then
10320 if test "$USE_X_TOOLKIT" != "maybe"; then
10321 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10323 else
10324 HAVE_GTK=yes
10326 $as_echo "#define USE_GTK 1" >>confdefs.h
10328 GTK_OBJ=gtkutil.o
10329 USE_X_TOOLKIT=none
10330 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10334 closing open displays. This is no problem if you just use
10335 one display, but if you use more than one and close one of them
10336 Emacs may crash." >&5
10337 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10338 closing open displays. This is no problem if you just use
10339 one display, but if you use more than one and close one of them
10340 Emacs may crash." >&2;}
10341 sleep 3
10349 if test "${HAVE_GTK}" = "yes"; then
10351 if test "$with_toolkit_scroll_bars" != no; then
10352 with_toolkit_scroll_bars=yes
10355 HAVE_GTK_FILE_SELECTION=no
10356 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10357 #include <gtk/gtk.h>
10359 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10360 HAVE_GTK_FILE_SELECTION=yes
10361 else
10362 HAVE_GTK_FILE_SELECTION=no
10365 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10366 for ac_func in gtk_file_selection_new
10367 do :
10368 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10369 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_GTK_FILE_SELECTION_NEW 1
10372 _ACEOF
10375 done
10379 HAVE_GTK_AND_PTHREAD=no
10380 for ac_header in pthread.h
10381 do :
10382 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10383 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10384 cat >>confdefs.h <<_ACEOF
10385 #define HAVE_PTHREAD_H 1
10386 _ACEOF
10390 done
10392 if test "$ac_cv_header_pthread_h"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10394 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10395 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 ac_check_lib_save_LIBS=$LIBS
10399 LIBS="-lpthread $LIBS"
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 char pthread_self ();
10411 main ()
10413 return pthread_self ();
10415 return 0;
10417 _ACEOF
10418 if ac_fn_c_try_link "$LINENO"; then :
10419 ac_cv_lib_pthread_pthread_self=yes
10420 else
10421 ac_cv_lib_pthread_pthread_self=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10428 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10429 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10430 HAVE_GTK_AND_PTHREAD=yes
10434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10435 case "${canonical}" in
10436 *-hpux*) ;;
10437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10438 esac
10440 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10444 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10445 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10446 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10447 gtk_orientable_set_orientation
10448 do :
10449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10452 cat >>confdefs.h <<_ACEOF
10453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10457 done
10462 HAVE_DBUS=no
10463 DBUS_OBJ=
10464 if test "${with_dbus}" = "yes"; then
10466 succeeded=no
10468 # Extract the first word of "pkg-config", so it can be a program name with args.
10469 set dummy pkg-config; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 case $PKG_CONFIG in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10497 esac
10499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10500 if test -n "$PKG_CONFIG"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10502 $as_echo "$PKG_CONFIG" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10510 if test "$PKG_CONFIG" = "no" ; then
10511 HAVE_DBUS=no
10512 else
10513 PKG_CONFIG_MIN_VERSION=0.9.0
10514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10516 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10518 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; }
10521 succeeded=yes
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10524 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10525 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10527 $as_echo "$DBUS_CFLAGS" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10530 $as_echo_n "checking DBUS_LIBS... " >&6; }
10531 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10533 $as_echo "$DBUS_LIBS" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 DBUS_CFLAGS=""
10538 DBUS_LIBS=""
10539 ## If we have a custom action on failure, don't print errors, but
10540 ## do set a variable so people can do so.
10541 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10547 else
10548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10553 if test $succeeded = yes; then
10554 HAVE_DBUS=yes
10555 else
10556 HAVE_DBUS=no
10559 if test "$HAVE_DBUS" = yes; then
10560 LIBS="$LIBS $DBUS_LIBS"
10562 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10564 for ac_func in dbus_watch_get_unix_fd
10565 do :
10566 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10567 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10570 _ACEOF
10573 done
10575 DBUS_OBJ=dbusbind.o
10580 HAVE_GCONF=no
10581 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10583 succeeded=no
10585 # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 case $PKG_CONFIG in
10593 [\\/]* | ?:[\\/]*)
10594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10608 done
10609 done
10610 IFS=$as_save_IFS
10612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10614 esac
10616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10627 if test "$PKG_CONFIG" = "no" ; then
10628 HAVE_GCONF=no
10629 else
10630 PKG_CONFIG_MIN_VERSION=0.9.0
10631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10633 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10635 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637 $as_echo "yes" >&6; }
10638 succeeded=yes
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10641 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10642 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10644 $as_echo "$GCONF_CFLAGS" >&6; }
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10647 $as_echo_n "checking GCONF_LIBS... " >&6; }
10648 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10650 $as_echo "$GCONF_LIBS" >&6; }
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10654 GCONF_CFLAGS=""
10655 GCONF_LIBS=""
10656 ## If we have a custom action on failure, don't print errors, but
10657 ## do set a variable so people can do so.
10658 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10664 else
10665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10670 if test $succeeded = yes; then
10671 HAVE_GCONF=yes
10672 else
10673 HAVE_GCONF=no
10676 if test "$HAVE_GCONF" = yes; then
10678 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10680 for ac_func in g_type_init
10681 do :
10682 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10683 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10684 cat >>confdefs.h <<_ACEOF
10685 #define HAVE_G_TYPE_INIT 1
10686 _ACEOF
10689 done
10694 HAVE_LIBSELINUX=no
10695 LIBSELINUX_LIBS=
10696 if test "${with_selinux}" = "yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10698 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10699 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-lselinux $LIBS"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char lgetfilecon ();
10715 main ()
10717 return lgetfilecon ();
10719 return 0;
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 ac_cv_lib_selinux_lgetfilecon=yes
10724 else
10725 ac_cv_lib_selinux_lgetfilecon=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10732 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10733 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10734 HAVE_LIBSELINUX=yes
10735 else
10736 HAVE_LIBSELINUX=no
10739 if test "$HAVE_LIBSELINUX" = yes; then
10741 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10743 LIBSELINUX_LIBS=-lselinux
10748 HAVE_GNUTLS=no
10749 if test "${with_gnutls}" = "yes" ; then
10751 succeeded=no
10753 # Extract the first word of "pkg-config", so it can be a program name with args.
10754 set dummy pkg-config; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $PKG_CONFIG in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10780 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10782 esac
10784 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10785 if test -n "$PKG_CONFIG"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10787 $as_echo "$PKG_CONFIG" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10795 if test "$PKG_CONFIG" = "no" ; then
10796 HAVE_GNUTLS=no
10797 else
10798 PKG_CONFIG_MIN_VERSION=0.9.0
10799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10801 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10803 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; }
10806 succeeded=yes
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10809 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10810 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10812 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10815 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10816 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10818 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 LIBGNUTLS_CFLAGS=""
10823 LIBGNUTLS_LIBS=""
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so.
10826 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10832 else
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10838 if test $succeeded = yes; then
10839 HAVE_GNUTLS=yes
10840 else
10841 HAVE_GNUTLS=no
10844 if test "${HAVE_GNUTLS}" = "yes"; then
10846 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10853 HAVE_XAW3D=no
10854 LUCID_LIBW=
10855 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10856 if test "$with_xaw3d" != no; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10858 $as_echo_n "checking for xaw3d... " >&6; }
10859 if test "${emacs_cv_xaw3d+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 #include <X11/Intrinsic.h>
10866 #include <X11/Xaw3d/Simple.h>
10868 main ()
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10877 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10878 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-lXaw3d $LIBS"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 char XawScrollbarSetThumb ();
10894 main ()
10896 return XawScrollbarSetThumb ();
10898 return 0;
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10903 else
10904 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10911 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10912 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10913 emacs_cv_xaw3d=yes
10914 else
10915 emacs_cv_xaw3d=no
10918 else
10919 emacs_cv_xaw3d=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10925 else
10926 emacs_cv_xaw3d=no
10928 if test $emacs_cv_xaw3d = yes; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10930 $as_echo "yes; using Lucid toolkit" >&6; }
10931 USE_X_TOOLKIT=LUCID
10932 HAVE_XAW3D=yes
10933 LUCID_LIBW=-lXaw3d
10935 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10941 $as_echo_n "checking for libXaw... " >&6; }
10942 if test "${emacs_cv_xaw+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 #include <X11/Intrinsic.h>
10949 #include <X11/Xaw/Simple.h>
10951 main ()
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 emacs_cv_xaw=yes
10960 else
10961 emacs_cv_xaw=no
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10967 if test $emacs_cv_xaw = yes; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10969 $as_echo "yes; using Lucid toolkit" >&6; }
10970 USE_X_TOOLKIT=LUCID
10971 LUCID_LIBW=-lXaw
10972 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10973 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10976 $as_echo "no; do not use toolkit by default" >&6; }
10977 USE_X_TOOLKIT=none
10982 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10984 LIBXTR6=
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10987 $as_echo_n "checking X11 toolkit version... " >&6; }
10988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993 #include <X11/Intrinsic.h>
10995 main ()
10997 #if XtSpecificationRelease < 6
10998 fail;
10999 #endif
11002 return 0;
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 emacs_cv_x11_toolkit_version_6=yes
11007 else
11008 emacs_cv_x11_toolkit_version_6=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11014 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11015 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11017 $as_echo "6 or newer" >&6; }
11019 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11021 LIBXTR6="-lSM -lICE"
11022 case "$opsys" in
11023 ## Use libw.a along with X11R6 Xt.
11024 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11025 esac
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11028 $as_echo "before 6" >&6; }
11031 OLDLIBS="$LIBS"
11032 if test x$HAVE_X11XTR6 = xyes; then
11033 LIBS="-lXt -lSM -lICE $LIBS"
11034 else
11035 LIBS="-lXt $LIBS"
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11038 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11039 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-lXmu $LIBS"
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char XmuConvertStandardSelection ();
11055 main ()
11057 return XmuConvertStandardSelection ();
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11064 else
11065 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11072 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11073 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_LIBXMU 1
11076 _ACEOF
11078 LIBS="-lXmu $LIBS"
11082 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11086 LIBXMU=-lXmu
11087 case $opsys in
11088 ## These systems don't supply Xmu.
11089 hpux* | aix4-2 )
11090 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11092 esac
11095 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11096 if test "${HAVE_X11}" = "yes"; then
11097 if test "${USE_X_TOOLKIT}" != "none"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11099 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11100 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lXext $LIBS"
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111 #ifdef __cplusplus
11112 extern "C"
11113 #endif
11114 char XShapeQueryExtension ();
11116 main ()
11118 return XShapeQueryExtension ();
11120 return 0;
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 ac_cv_lib_Xext_XShapeQueryExtension=yes
11125 else
11126 ac_cv_lib_Xext_XShapeQueryExtension=no
11128 rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11133 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11134 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11135 cat >>confdefs.h <<_ACEOF
11136 #define HAVE_LIBXEXT 1
11137 _ACEOF
11139 LIBS="-lXext $LIBS"
11146 LIBXP=
11147 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11149 $as_echo_n "checking for Motif version 2.1... " >&6; }
11150 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155 #include <Xm/Xm.h>
11157 main ()
11159 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11160 int x = 5;
11161 #else
11162 Motif version prior to 2.1.
11163 #endif
11165 return 0;
11167 _ACEOF
11168 if ac_fn_c_try_compile "$LINENO"; then :
11169 emacs_cv_motif_version_2_1=yes
11170 else
11171 emacs_cv_motif_version_2_1=no
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11176 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11177 if test $emacs_cv_motif_version_2_1 = yes; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11179 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11180 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11182 else
11183 ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-lXp $LIBS"
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11188 /* Override any GCC internal prototype to avoid an error.
11189 Use char because int might match the return type of a GCC
11190 builtin and then its argument prototype would still apply. */
11191 #ifdef __cplusplus
11192 extern "C"
11193 #endif
11194 char XpCreateContext ();
11196 main ()
11198 return XpCreateContext ();
11200 return 0;
11202 _ACEOF
11203 if ac_fn_c_try_link "$LINENO"; then :
11204 ac_cv_lib_Xp_XpCreateContext=yes
11205 else
11206 ac_cv_lib_Xp_XpCreateContext=no
11208 rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
11210 LIBS=$ac_check_lib_save_LIBS
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11213 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11214 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11215 LIBXP=-lXp
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11220 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11221 if test "${emacs_cv_lesstif+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 # We put this in CFLAGS temporarily to precede other -I options
11225 # that might be in CFLAGS temporarily.
11226 # We put this in CPPFLAGS where it precedes the other -I options.
11227 OLD_CPPFLAGS=$CPPFLAGS
11228 OLD_CFLAGS=$CFLAGS
11229 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11230 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11235 main ()
11237 int x = 5;
11239 return 0;
11241 _ACEOF
11242 if ac_fn_c_try_compile "$LINENO"; then :
11243 emacs_cv_lesstif=yes
11244 else
11245 emacs_cv_lesstif=no
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11250 $as_echo "$emacs_cv_lesstif" >&6; }
11251 if test $emacs_cv_lesstif = yes; then
11252 # Make sure this -I option remains in CPPFLAGS after it is set
11253 # back to REAL_CPPFLAGS.
11254 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11255 # have those other -I options anyway. Ultimately, having this
11256 # directory ultimately in CPPFLAGS will be enough.
11257 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11258 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11259 else
11260 CFLAGS=$OLD_CFLAGS
11261 CPPFLAGS=$OLD_CPPFLAGS
11267 USE_TOOLKIT_SCROLL_BARS=no
11268 if test "${with_toolkit_scroll_bars}" != "no"; then
11269 if test "${USE_X_TOOLKIT}" != "none"; then
11270 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11271 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11273 HAVE_XAW3D=no
11274 USE_TOOLKIT_SCROLL_BARS=yes
11275 elif test "${HAVE_XAW3D}" = "yes"; then
11276 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11278 USE_TOOLKIT_SCROLL_BARS=yes
11280 elif test "${HAVE_GTK}" = "yes"; then
11281 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11283 USE_TOOLKIT_SCROLL_BARS=yes
11284 elif test "${HAVE_NS}" = "yes"; then
11285 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11287 USE_TOOLKIT_SCROLL_BARS=yes
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 #include <X11/Xlib.h>
11295 #include <X11/Xresource.h>
11297 main ()
11299 XIMProc callback;
11301 return 0;
11303 _ACEOF
11304 if ac_fn_c_try_compile "$LINENO"; then :
11305 HAVE_XIM=yes
11307 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11309 else
11310 HAVE_XIM=no
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 if test "${with_xim}" != "no"; then
11317 $as_echo "#define USE_XIM 1" >>confdefs.h
11322 if test "${HAVE_XIM}" != "no"; then
11323 late_CFLAGS=$CFLAGS
11324 if test "$GCC" = yes; then
11325 CFLAGS="$CFLAGS --pedantic-errors"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 #include <X11/Xlib.h>
11331 #include <X11/Xresource.h>
11333 main ()
11335 Display *display;
11336 XrmDatabase db;
11337 char *res_name;
11338 char *res_class;
11339 XIMProc callback;
11340 XPointer *client_data;
11341 #ifndef __GNUC__
11342 /* If we're not using GCC, it's probably not XFree86, and this is
11343 probably right, but we can't use something like --pedantic-errors. */
11344 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11345 char*, XIMProc, XPointer*);
11346 #endif
11347 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11348 client_data);
11350 return 0;
11352 _ACEOF
11353 if ac_fn_c_try_compile "$LINENO"; then :
11354 emacs_cv_arg6_star=yes
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 if test "$emacs_cv_arg6_star" = yes; then
11358 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11360 else
11361 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11364 CFLAGS=$late_CFLAGS
11367 ### Start of font-backend (under any platform) section.
11368 # (nothing here yet -- this is a placeholder)
11369 ### End of font-backend (under any platform) section.
11371 ### Start of font-backend (under X11) section.
11372 if test "${HAVE_X11}" = "yes"; then
11374 succeeded=no
11376 # Extract the first word of "pkg-config", so it can be a program name with args.
11377 set dummy pkg-config; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 case $PKG_CONFIG in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11399 done
11400 done
11401 IFS=$as_save_IFS
11403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11405 esac
11407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11408 if test -n "$PKG_CONFIG"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11410 $as_echo "$PKG_CONFIG" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11418 if test "$PKG_CONFIG" = "no" ; then
11419 HAVE_FC=no
11420 else
11421 PKG_CONFIG_MIN_VERSION=0.9.0
11422 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11424 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11426 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11429 succeeded=yes
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11432 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11433 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11435 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11438 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11439 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11441 $as_echo "$FONTCONFIG_LIBS" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 FONTCONFIG_CFLAGS=""
11446 FONTCONFIG_LIBS=""
11447 ## If we have a custom action on failure, don't print errors, but
11448 ## do set a variable so people can do so.
11449 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11455 else
11456 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11457 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11461 if test $succeeded = yes; then
11462 HAVE_FC=yes
11463 else
11464 HAVE_FC=no
11468 ## Use -lXft if available, unless `--with-xft=no'.
11469 HAVE_XFT=maybe
11470 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11471 with_xft="no";
11473 if test "x${with_xft}" != "xno"; then
11476 succeeded=no
11478 # Extract the first word of "pkg-config", so it can be a program name with args.
11479 set dummy pkg-config; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 case $PKG_CONFIG in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11507 esac
11509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11510 if test -n "$PKG_CONFIG"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11512 $as_echo "$PKG_CONFIG" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11520 if test "$PKG_CONFIG" = "no" ; then
11521 HAVE_XFT=no
11522 else
11523 PKG_CONFIG_MIN_VERSION=0.9.0
11524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11526 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11528 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530 $as_echo "yes" >&6; }
11531 succeeded=yes
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11534 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11535 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11537 $as_echo "$XFT_CFLAGS" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11540 $as_echo_n "checking XFT_LIBS... " >&6; }
11541 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11543 $as_echo "$XFT_LIBS" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 XFT_CFLAGS=""
11548 XFT_LIBS=""
11549 ## If we have a custom action on failure, don't print errors, but
11550 ## do set a variable so people can do so.
11551 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11557 else
11558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11563 if test $succeeded = yes; then
11565 else
11566 HAVE_XFT=no
11569 ## Because xftfont.c uses XRenderQueryExtension, we also
11570 ## need to link to -lXrender.
11571 HAVE_XRENDER=no
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11573 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11574 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-lXrender $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char XRenderQueryExtension ();
11590 main ()
11592 return XRenderQueryExtension ();
11594 return 0;
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11599 else
11600 ac_cv_lib_Xrender_XRenderQueryExtension=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11607 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11608 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11609 HAVE_XRENDER=yes
11612 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11613 OLD_CPPFLAGS="$CPPFLAGS"
11614 OLD_CFLAGS="$CFLAGS"
11615 OLD_LIBS="$LIBS"
11616 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11617 CFLAGS="$CFLAGS $XFT_CFLAGS"
11618 XFT_LIBS="-lXrender $XFT_LIBS"
11619 LIBS="$XFT_LIBS $LIBS"
11620 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11621 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11623 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11624 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lXft $XFT_LIBS $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char XftFontOpen ();
11640 main ()
11642 return XftFontOpen ();
11644 return 0;
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_Xft_XftFontOpen=yes
11649 else
11650 ac_cv_lib_Xft_XftFontOpen=no
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11657 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11658 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11659 HAVE_XFT=yes
11666 if test "${HAVE_XFT}" = "yes"; then
11668 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11671 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11672 else
11673 CPPFLAGS="$OLD_CPPFLAGS"
11674 CFLAGS="$OLD_CFLAGS"
11675 LIBS="$OLD_LIBS"
11676 fi # "${HAVE_XFT}" = "yes"
11677 fi # "$HAVE_XFT" != no
11678 fi # "x${with_xft}" != "xno"
11680 ## We used to allow building with FreeType and without Xft.
11681 ## However, the ftx font backend driver is not in good shape.
11682 if test "$HAVE_XFT" != "yes"; then
11683 HAVE_XFT=no
11684 HAVE_FREETYPE=no
11685 else
11687 succeeded=no
11689 # Extract the first word of "pkg-config", so it can be a program name with args.
11690 set dummy pkg-config; ac_word=$2
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 case $PKG_CONFIG in
11697 [\\/]* | ?:[\\/]*)
11698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11712 done
11713 done
11714 IFS=$as_save_IFS
11716 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11718 esac
11720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11721 if test -n "$PKG_CONFIG"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11723 $as_echo "$PKG_CONFIG" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test "$PKG_CONFIG" = "no" ; then
11732 HAVE_FREETYPE=no
11733 else
11734 PKG_CONFIG_MIN_VERSION=0.9.0
11735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11737 $as_echo_n "checking for freetype2... " >&6; }
11739 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742 succeeded=yes
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11745 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11746 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11748 $as_echo "$FREETYPE_CFLAGS" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11751 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11752 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11754 $as_echo "$FREETYPE_LIBS" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 FREETYPE_CFLAGS=""
11759 FREETYPE_LIBS=""
11760 ## If we have a custom action on failure, don't print errors, but
11761 ## do set a variable so people can do so.
11762 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11768 else
11769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11774 if test $succeeded = yes; then
11775 HAVE_FREETYPE=yes
11776 else
11777 HAVE_FREETYPE=no
11781 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
11784 HAVE_LIBOTF=no
11785 if test "${HAVE_FREETYPE}" = "yes"; then
11787 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11789 if test "${with_libotf}" != "no"; then
11791 succeeded=no
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 case $PKG_CONFIG in
11801 [\\/]* | ?:[\\/]*)
11802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11822 esac
11824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11836 HAVE_LIBOTF=no
11837 else
11838 PKG_CONFIG_MIN_VERSION=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11841 $as_echo_n "checking for libotf... " >&6; }
11843 if $PKG_CONFIG --exists "libotf" 2>&5; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11846 succeeded=yes
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11849 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11850 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11852 $as_echo "$LIBOTF_CFLAGS" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11855 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11856 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11858 $as_echo "$LIBOTF_LIBS" >&6; }
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 LIBOTF_CFLAGS=""
11863 LIBOTF_LIBS=""
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11872 else
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11879 HAVE_LIBOTF=yes
11880 else
11881 HAVE_LIBOTF=no
11884 if test "$HAVE_LIBOTF" = "yes"; then
11886 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11889 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11890 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lotf $LIBS"
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char OTF_get_variation_glyphs ();
11906 main ()
11908 return OTF_get_variation_glyphs ();
11910 return 0;
11912 _ACEOF
11913 if ac_fn_c_try_link "$LINENO"; then :
11914 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11915 else
11916 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11918 rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920 LIBS=$ac_check_lib_save_LIBS
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11923 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11924 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11925 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11926 else
11927 HAVE_OTF_GET_VARIATION_GLYPHS=no
11930 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11932 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11939 HAVE_M17N_FLT=no
11940 if test "${HAVE_LIBOTF}" = yes; then
11941 if test "${with_m17n_flt}" != "no"; then
11943 succeeded=no
11945 # Extract the first word of "pkg-config", so it can be a program name with args.
11946 set dummy pkg-config; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 case $PKG_CONFIG in
11953 [\\/]* | ?:[\\/]*)
11954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11968 done
11969 done
11970 IFS=$as_save_IFS
11972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11974 esac
11976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11977 if test -n "$PKG_CONFIG"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11979 $as_echo "$PKG_CONFIG" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 if test "$PKG_CONFIG" = "no" ; then
11988 HAVE_M17N_FLT=no
11989 else
11990 PKG_CONFIG_MIN_VERSION=0.9.0
11991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11993 $as_echo_n "checking for m17n-flt... " >&6; }
11995 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997 $as_echo "yes" >&6; }
11998 succeeded=yes
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12001 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12002 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12004 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12007 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12008 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12010 $as_echo "$M17N_FLT_LIBS" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 M17N_FLT_CFLAGS=""
12015 M17N_FLT_LIBS=""
12016 ## If we have a custom action on failure, don't print errors, but
12017 ## do set a variable so people can do so.
12018 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12024 else
12025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12030 if test $succeeded = yes; then
12031 HAVE_M17N_FLT=yes
12032 else
12033 HAVE_M17N_FLT=no
12036 if test "$HAVE_M17N_FLT" = "yes"; then
12038 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12043 else
12044 HAVE_XFT=no
12045 HAVE_FREETYPE=no
12046 HAVE_LIBOTF=no
12047 HAVE_M17N_FLT=no
12050 ### End of font-backend (under X11) section.
12061 ### Use -lXpm if available, unless `--with-xpm=no'.
12062 HAVE_XPM=no
12063 LIBXPM=
12064 if test "${HAVE_X11}" = "yes"; then
12065 if test "${with_xpm}" != "no"; then
12066 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12067 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12069 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12070 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-lXpm -lX11 $LIBS"
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char XpmReadFileToPixmap ();
12086 main ()
12088 return XpmReadFileToPixmap ();
12090 return 0;
12092 _ACEOF
12093 if ac_fn_c_try_link "$LINENO"; then :
12094 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12095 else
12096 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12098 rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12103 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12104 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12105 HAVE_XPM=yes
12111 if test "${HAVE_XPM}" = "yes"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12113 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 #include "X11/xpm.h"
12117 #ifndef XpmReturnAllocPixels
12118 no_return_alloc_pixels
12119 #endif
12121 _ACEOF
12122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12123 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12124 HAVE_XPM=no
12125 else
12126 HAVE_XPM=yes
12128 rm -f conftest*
12131 if test "${HAVE_XPM}" = "yes"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 $as_echo "yes" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test "${HAVE_XPM}" = "yes"; then
12143 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12145 LIBXPM=-lXpm
12150 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12151 HAVE_JPEG=no
12152 LIBJPEG=
12153 if test "${HAVE_X11}" = "yes"; then
12154 if test "${with_jpeg}" != "no"; then
12155 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12156 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12158 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ljpeg $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char jpeg_destroy_compress ();
12175 main ()
12177 return jpeg_destroy_compress ();
12179 return 0;
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12184 else
12185 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12192 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12193 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12194 HAVE_JPEG=yes
12202 if test "${HAVE_JPEG}" = "yes"; then
12203 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <jpeglib.h>
12208 version=JPEG_LIB_VERSION
12210 _ACEOF
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12213 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12217 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12218 HAVE_JPEG=no
12220 rm -f conftest*
12223 if test "${HAVE_JPEG}" = "yes"; then
12224 LIBJPEG=-ljpeg
12229 ### Use -lpng if available, unless `--with-png=no'.
12230 HAVE_PNG=no
12231 LIBPNG=
12232 if test "${HAVE_X11}" = "yes"; then
12233 if test "${with_png}" != "no"; then
12234 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12235 # in /usr/include/libpng.
12236 for ac_header in png.h libpng/png.h
12237 do :
12238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12241 cat >>confdefs.h <<_ACEOF
12242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243 _ACEOF
12247 done
12249 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12251 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12252 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lpng -lz -lm $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char png_get_channels ();
12268 main ()
12270 return png_get_channels ();
12272 return 0;
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_png_png_get_channels=yes
12277 else
12278 ac_cv_lib_png_png_get_channels=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12285 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12286 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12287 HAVE_PNG=yes
12293 if test "${HAVE_PNG}" = "yes"; then
12295 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12297 LIBPNG="-lpng -lz -lm"
12302 ### Use -ltiff if available, unless `--with-tiff=no'.
12303 HAVE_TIFF=no
12304 LIBTIFF=
12305 if test "${HAVE_X11}" = "yes"; then
12306 if test "${with_tiff}" != "no"; then
12307 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12308 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12309 tifflibs="-lz -lm"
12310 # At least one tiff package requires the jpeg library.
12311 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12313 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12314 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-ltiff $tifflibs $LIBS"
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 char TIFFGetVersion ();
12330 main ()
12332 return TIFFGetVersion ();
12334 return 0;
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_lib_tiff_TIFFGetVersion=yes
12339 else
12340 ac_cv_lib_tiff_TIFFGetVersion=no
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12347 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12348 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12349 HAVE_TIFF=yes
12357 if test "${HAVE_TIFF}" = "yes"; then
12359 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12361 LIBTIFF=-ltiff
12366 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12367 HAVE_GIF=no
12368 LIBGIF=
12369 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12370 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12371 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12372 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12373 # Earlier versions can crash Emacs.
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12375 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12376 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-lgif $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char EGifPutExtensionLast ();
12392 main ()
12394 return EGifPutExtensionLast ();
12396 return 0;
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_lib_gif_EGifPutExtensionLast=yes
12401 else
12402 ac_cv_lib_gif_EGifPutExtensionLast=no
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12409 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12410 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12411 HAVE_GIF=yes
12412 else
12413 HAVE_GIF=maybe
12420 if test "$HAVE_GIF" = yes; then
12421 LIBGIF=-lgif
12422 elif test "$HAVE_GIF" = maybe; then
12423 # If gif_lib.h but no libgif, try libungif.
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12425 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12426 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lungif $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char EGifPutExtensionLast ();
12442 main ()
12444 return EGifPutExtensionLast ();
12446 return 0;
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12451 else
12452 ac_cv_lib_ungif_EGifPutExtensionLast=no
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12459 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12460 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12461 HAVE_GIF=yes
12462 else
12463 HAVE_GIF=no
12466 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12469 if test "${HAVE_GIF}" = "yes"; then
12471 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12477 if test "${HAVE_X11}" = "yes"; then
12478 MISSING=""
12479 WITH_NO=""
12480 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12481 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12482 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12483 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12484 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12485 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12486 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12487 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12488 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12489 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12491 if test "X${MISSING}" != X; then
12492 as_fn_error $? "The following required libraries were not found:
12493 $MISSING
12494 Maybe some development libraries/packages are missing?
12495 If you don't want to link with them give
12496 $WITH_NO
12497 as options to configure" "$LINENO" 5
12501 ### Use -lgpm if available, unless `--with-gpm=no'.
12502 HAVE_GPM=no
12503 LIBGPM=
12504 MOUSE_SUPPORT=
12505 if test "${with_gpm}" != "no"; then
12506 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12507 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12509 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12510 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lgpm $LIBS"
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char Gpm_Open ();
12526 main ()
12528 return Gpm_Open ();
12530 return 0;
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"; then :
12534 ac_cv_lib_gpm_Gpm_Open=yes
12535 else
12536 ac_cv_lib_gpm_Gpm_Open=no
12538 rm -f core conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12543 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12544 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12545 HAVE_GPM=yes
12552 if test "${HAVE_GPM}" = "yes"; then
12554 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12556 LIBGPM=-lgpm
12557 ## May be reset below.
12558 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12563 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12564 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12566 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12572 C_SWITCH_X_SYSTEM=
12573 ### Use NeXTstep API to implement GUI.
12574 if test "${HAVE_NS}" = "yes"; then
12576 $as_echo "#define HAVE_NS 1" >>confdefs.h
12578 if test "${NS_IMPL_COCOA}" = "yes"; then
12580 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12582 GNU_OBJC_CFLAGS=
12584 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12586 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12588 # See also .m.o rule in Makefile.in */
12589 # FIXME: are all these flags really needed? Document here why. */
12590 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12591 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12593 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12595 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12598 # We also have mouse menus.
12599 HAVE_MENUS=yes
12600 OTHER_FILES=ns-app
12604 ### Use session management (-lSM -lICE) if available
12605 HAVE_X_SM=no
12606 LIBXSM=
12607 if test "${HAVE_X11}" = "yes"; then
12608 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12609 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12611 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12612 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lSM -lICE $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char SmcOpenConnection ();
12628 main ()
12630 return SmcOpenConnection ();
12632 return 0;
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_SM_SmcOpenConnection=yes
12637 else
12638 ac_cv_lib_SM_SmcOpenConnection=no
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12645 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12646 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12647 HAVE_X_SM=yes
12654 if test "${HAVE_X_SM}" = "yes"; then
12656 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12658 LIBXSM="-lSM -lICE"
12659 case "$LIBS" in
12660 *-lSM*) ;;
12661 *) LIBS="$LIBXSM $LIBS" ;;
12662 esac
12667 ### Use libxml (-lxml2) if available
12668 if test "${with_xml2}" != "no"; then
12669 ### I'm not sure what the version number should be, so I just guessed.
12671 succeeded=no
12673 # Extract the first word of "pkg-config", so it can be a program name with args.
12674 set dummy pkg-config; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 case $PKG_CONFIG in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12702 esac
12704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12705 if test -n "$PKG_CONFIG"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12707 $as_echo "$PKG_CONFIG" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$PKG_CONFIG" = "no" ; then
12716 HAVE_LIBXML2=no
12717 else
12718 PKG_CONFIG_MIN_VERSION=0.9.0
12719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12721 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12723 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12726 succeeded=yes
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12729 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12730 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12732 $as_echo "$LIBXML2_CFLAGS" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12735 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12736 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12738 $as_echo "$LIBXML2_LIBS" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 LIBXML2_CFLAGS=""
12743 LIBXML2_LIBS=""
12744 ## If we have a custom action on failure, don't print errors, but
12745 ## do set a variable so people can do so.
12746 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12752 else
12753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12758 if test $succeeded = yes; then
12759 HAVE_LIBXML2=yes
12760 else
12761 HAVE_LIBXML2=no
12764 if test "${HAVE_LIBXML2}" = "yes"; then
12765 LIBS="$LIBXML2_LIBS $LIBS"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12767 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12768 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 ac_check_lib_save_LIBS=$LIBS
12772 LIBS="-lxml2 $LIBS"
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char htmlReadMemory ();
12784 main ()
12786 return htmlReadMemory ();
12788 return 0;
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"; then :
12792 ac_cv_lib_xml2_htmlReadMemory=yes
12793 else
12794 ac_cv_lib_xml2_htmlReadMemory=no
12796 rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 LIBS=$ac_check_lib_save_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12801 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12802 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12803 HAVE_LIBXML2=yes
12804 else
12805 HAVE_LIBXML2=no
12808 if test "${HAVE_LIBXML2}" = "yes"; then
12810 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12812 else
12813 LIBXML2_LIBS=""
12814 LIBXML2_CFLAGS=""
12821 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12823 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12824 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include <netdb.h>
12831 main ()
12833 return h_errno;
12835 return 0;
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"; then :
12839 emacs_cv_netdb_declares_h_errno=yes
12840 else
12841 emacs_cv_netdb_declares_h_errno=no
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12847 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12848 if test $emacs_cv_netdb_declares_h_errno = yes; then
12850 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12855 # for constant arguments. Useless!
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12857 $as_echo_n "checking for working alloca.h... " >&6; }
12858 if test "${ac_cv_working_alloca_h+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 #include <alloca.h>
12865 main ()
12867 char *p = (char *) alloca (2 * sizeof (int));
12868 if (p) return 0;
12870 return 0;
12872 _ACEOF
12873 if ac_fn_c_try_link "$LINENO"; then :
12874 ac_cv_working_alloca_h=yes
12875 else
12876 ac_cv_working_alloca_h=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12882 $as_echo "$ac_cv_working_alloca_h" >&6; }
12883 if test $ac_cv_working_alloca_h = yes; then
12885 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12890 $as_echo_n "checking for alloca... " >&6; }
12891 if test "${ac_cv_func_alloca_works+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12896 #ifdef __GNUC__
12897 # define alloca __builtin_alloca
12898 #else
12899 # ifdef _MSC_VER
12900 # include <malloc.h>
12901 # define alloca _alloca
12902 # else
12903 # ifdef HAVE_ALLOCA_H
12904 # include <alloca.h>
12905 # else
12906 # ifdef _AIX
12907 #pragma alloca
12908 # else
12909 # ifndef alloca /* predefined by HP cc +Olibcalls */
12910 char *alloca ();
12911 # endif
12912 # endif
12913 # endif
12914 # endif
12915 #endif
12918 main ()
12920 char *p = (char *) alloca (1);
12921 if (p) return 0;
12923 return 0;
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ac_cv_func_alloca_works=yes
12928 else
12929 ac_cv_func_alloca_works=no
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12935 $as_echo "$ac_cv_func_alloca_works" >&6; }
12937 if test $ac_cv_func_alloca_works = yes; then
12939 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12941 else
12942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12943 # that cause trouble. Some versions do not even contain alloca or
12944 # contain a buggy version. If you still want to use their alloca,
12945 # use ar to extract alloca.o from them instead of compiling alloca.c.
12947 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12949 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12953 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12954 if test "${ac_cv_os_cray+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #if defined CRAY && ! defined CRAY2
12960 webecray
12961 #else
12962 wenotbecray
12963 #endif
12965 _ACEOF
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967 $EGREP "webecray" >/dev/null 2>&1; then :
12968 ac_cv_os_cray=yes
12969 else
12970 ac_cv_os_cray=no
12972 rm -f conftest*
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12976 $as_echo "$ac_cv_os_cray" >&6; }
12977 if test $ac_cv_os_cray = yes; then
12978 for ac_func in _getb67 GETB67 getb67; do
12979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define CRAY_STACKSEG_END $ac_func
12985 _ACEOF
12987 break
12990 done
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12994 $as_echo_n "checking stack direction for C alloca... " >&6; }
12995 if test "${ac_cv_c_stack_direction+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 if test "$cross_compiling" = yes; then :
12999 ac_cv_c_stack_direction=0
13000 else
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 $ac_includes_default
13005 find_stack_direction ()
13007 static char *addr = 0;
13008 auto char dummy;
13009 if (addr == 0)
13011 addr = &dummy;
13012 return find_stack_direction ();
13014 else
13015 return (&dummy > addr) ? 1 : -1;
13019 main ()
13021 return find_stack_direction () < 0;
13023 _ACEOF
13024 if ac_fn_c_try_run "$LINENO"; then :
13025 ac_cv_c_stack_direction=1
13026 else
13027 ac_cv_c_stack_direction=-1
13029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13030 conftest.$ac_objext conftest.beam conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13035 $as_echo "$ac_cv_c_stack_direction" >&6; }
13036 cat >>confdefs.h <<_ACEOF
13037 #define STACK_DIRECTION $ac_cv_c_stack_direction
13038 _ACEOF
13044 if test x"$ac_cv_func_alloca_works" != xyes; then
13045 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
13048 # fmod, logb, and frexp are found in -lm on most systems.
13049 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13051 $as_echo_n "checking for sqrt in -lm... " >&6; }
13052 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 ac_check_lib_save_LIBS=$LIBS
13056 LIBS="-lm $LIBS"
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char sqrt ();
13068 main ()
13070 return sqrt ();
13072 return 0;
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 ac_cv_lib_m_sqrt=yes
13077 else
13078 ac_cv_lib_m_sqrt=no
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 LIBS=$ac_check_lib_save_LIBS
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13085 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13086 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_LIBM 1
13089 _ACEOF
13091 LIBS="-lm $LIBS"
13096 # Check for mail-locking functions in a "mail" library. Probably this should
13097 # have the same check as for liblockfile below.
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13099 $as_echo_n "checking for maillock in -lmail... " >&6; }
13100 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-lmail $LIBS"
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char maillock ();
13116 main ()
13118 return maillock ();
13120 return 0;
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124 ac_cv_lib_mail_maillock=yes
13125 else
13126 ac_cv_lib_mail_maillock=no
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13133 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13134 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13135 have_mail=yes
13136 else
13137 have_mail=no
13140 if test $have_mail = yes; then
13141 LIBS_MAIL=-lmail
13142 LIBS="$LIBS_MAIL $LIBS"
13144 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13146 else
13147 LIBS_MAIL=
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13150 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13151 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-llockfile $LIBS"
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char maillock ();
13167 main ()
13169 return maillock ();
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 ac_cv_lib_lockfile_maillock=yes
13176 else
13177 ac_cv_lib_lockfile_maillock=no
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13184 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13185 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13186 have_lockfile=yes
13187 else
13188 have_lockfile=no
13191 if test $have_lockfile = yes; then
13192 LIBS_MAIL=-llockfile
13193 LIBS="$LIBS_MAIL $LIBS"
13195 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13197 else
13198 # If we have the shared liblockfile, assume we must use it for mail
13199 # locking (e.g. Debian). If we couldn't link against liblockfile
13200 # (no liblockfile.a installed), ensure that we don't need to.
13201 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13202 set dummy liblockfile.so; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 if test -n "$liblockfile"; then
13209 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13213 for as_dir in $as_dummy
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_prog_liblockfile="yes"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13223 done
13224 done
13225 IFS=$as_save_IFS
13227 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13230 liblockfile=$ac_cv_prog_liblockfile
13231 if test -n "$liblockfile"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13233 $as_echo "$liblockfile" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13240 if test $ac_cv_prog_liblockfile = yes; then
13241 as_fn_error $? "Shared liblockfile found but can't link against it.
13242 This probably means that movemail could lose mail.
13243 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13246 for ac_func in touchlock
13247 do :
13248 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13249 if test "x$ac_cv_func_touchlock" = x""yes; then :
13250 cat >>confdefs.h <<_ACEOF
13251 #define HAVE_TOUCHLOCK 1
13252 _ACEOF
13255 done
13257 for ac_header in maillock.h
13258 do :
13259 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13260 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_MAILLOCK_H 1
13263 _ACEOF
13267 done
13271 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13272 ## interlock access to the mail spool. The alternative is a lock file named
13273 ## /usr/spool/mail/$USER.lock.
13274 mail_lock=no
13275 case "$opsys" in
13276 aix4-2) mail_lock="lockf" ;;
13278 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13280 ## On GNU/Linux systems, both methods are used by various mail programs.
13281 ## I assume most people are using newer mailers that have heard of flock.
13282 ## Change this if you need to.
13283 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13284 ## configure gets the right answers, and that means *NOT* using flock.
13285 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13286 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13287 ## Debian maintainer hasn't provided a clean fix for Emacs.
13288 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13289 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13290 ## correct logic. -- fx
13291 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13292 ## liblockfile is a Free Software replacement for libmail, used on
13293 ## Debian systems and elsewhere. -rfr.
13294 gnu-*)
13295 mail_lock="flock"
13296 if test $have_mail = yes || test $have_lockfile = yes; then
13297 test $ac_cv_header_maillock_h = yes && mail_lock=no
13300 esac
13302 BLESSMAIL_TARGET=
13303 case "$mail_lock" in
13304 flock)
13305 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13308 lockf)
13309 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13312 *) BLESSMAIL_TARGET="need-blessmail" ;;
13313 esac
13317 for ac_func in gethostname getdomainname dup2 \
13318 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13319 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13320 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13321 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13322 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13323 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13324 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13325 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13326 cfmakeraw cfsetspeed isnan copysign __executable_start
13327 do :
13328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13331 cat >>confdefs.h <<_ACEOF
13332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13333 _ACEOF
13336 done
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13340 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13341 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13348 main ()
13350 __builtin_unwind_init ();
13352 return 0;
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 emacs_cv_func___builtin_unwind_init=yes
13357 else
13358 emacs_cv_func___builtin_unwind_init=no
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13364 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13365 if test $emacs_cv_func___builtin_unwind_init = yes; then
13367 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13371 for ac_header in sys/un.h
13372 do :
13373 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13374 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13375 cat >>confdefs.h <<_ACEOF
13376 #define HAVE_SYS_UN_H 1
13377 _ACEOF
13381 done
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13385 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13386 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 while :; do
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 #include <sys/types.h> /* for off_t */
13393 #include <stdio.h>
13395 main ()
13397 int (*fp) (FILE *, off_t, int) = fseeko;
13398 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13400 return 0;
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 ac_cv_sys_largefile_source=no; break
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #define _LARGEFILE_SOURCE 1
13411 #include <sys/types.h> /* for off_t */
13412 #include <stdio.h>
13414 main ()
13416 int (*fp) (FILE *, off_t, int) = fseeko;
13417 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13419 return 0;
13421 _ACEOF
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 ac_cv_sys_largefile_source=1; break
13425 rm -f core conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13427 ac_cv_sys_largefile_source=unknown
13428 break
13429 done
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13432 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13433 case $ac_cv_sys_largefile_source in #(
13434 no | unknown) ;;
13436 cat >>confdefs.h <<_ACEOF
13437 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13438 _ACEOF
13440 esac
13441 rm -rf conftest*
13443 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13444 # in glibc 2.1.3, but that breaks too many other things.
13445 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13446 if test $ac_cv_sys_largefile_source != unknown; then
13448 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13454 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13455 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 # Use it with a single arg.
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 $ac_includes_default
13463 main ()
13465 getpgrp (0);
13467 return 0;
13469 _ACEOF
13470 if ac_fn_c_try_compile "$LINENO"; then :
13471 ac_cv_func_getpgrp_void=no
13472 else
13473 ac_cv_func_getpgrp_void=yes
13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13479 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13480 if test $ac_cv_func_getpgrp_void = yes; then
13482 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13487 # Configure gnulib.
13498 LIBC_FATAL_STDERR_=1
13499 export LIBC_FATAL_STDERR_
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13504 if test "${ac_cv_c_bigendian+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 ac_cv_c_bigendian=unknown
13508 # See if we're dealing with a universal compiler.
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 #ifndef __APPLE_CC__
13512 not a universal capable compiler
13513 #endif
13514 typedef int dummy;
13516 _ACEOF
13517 if ac_fn_c_try_compile "$LINENO"; then :
13519 # Check for potential -arch flags. It is not universal unless
13520 # there are at least two -arch flags with different values.
13521 ac_arch=
13522 ac_prev=
13523 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13524 if test -n "$ac_prev"; then
13525 case $ac_word in
13526 i?86 | x86_64 | ppc | ppc64)
13527 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13528 ac_arch=$ac_word
13529 else
13530 ac_cv_c_bigendian=universal
13531 break
13534 esac
13535 ac_prev=
13536 elif test "x$ac_word" = "x-arch"; then
13537 ac_prev=arch
13539 done
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 if test $ac_cv_c_bigendian = unknown; then
13543 # See if sys/param.h defines the BYTE_ORDER macro.
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 #include <sys/types.h>
13547 #include <sys/param.h>
13550 main ()
13552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13554 && LITTLE_ENDIAN)
13555 bogus endian macros
13556 #endif
13559 return 0;
13561 _ACEOF
13562 if ac_fn_c_try_compile "$LINENO"; then :
13563 # It does; now see whether it defined to BIG_ENDIAN or not.
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 #include <sys/types.h>
13567 #include <sys/param.h>
13570 main ()
13572 #if BYTE_ORDER != BIG_ENDIAN
13573 not big endian
13574 #endif
13577 return 0;
13579 _ACEOF
13580 if ac_fn_c_try_compile "$LINENO"; then :
13581 ac_cv_c_bigendian=yes
13582 else
13583 ac_cv_c_bigendian=no
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 if test $ac_cv_c_bigendian = unknown; then
13590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <limits.h>
13596 main ()
13598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13599 bogus endian macros
13600 #endif
13603 return 0;
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 # It does; now see whether it defined to _BIG_ENDIAN or not.
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 #include <limits.h>
13613 main ()
13615 #ifndef _BIG_ENDIAN
13616 not big endian
13617 #endif
13620 return 0;
13622 _ACEOF
13623 if ac_fn_c_try_compile "$LINENO"; then :
13624 ac_cv_c_bigendian=yes
13625 else
13626 ac_cv_c_bigendian=no
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 if test $ac_cv_c_bigendian = unknown; then
13633 # Compile a test program.
13634 if test "$cross_compiling" = yes; then :
13635 # Try to guess by grepping values from an object file.
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638 short int ascii_mm[] =
13639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13640 short int ascii_ii[] =
13641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13642 int use_ascii (int i) {
13643 return ascii_mm[i] + ascii_ii[i];
13645 short int ebcdic_ii[] =
13646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13647 short int ebcdic_mm[] =
13648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13649 int use_ebcdic (int i) {
13650 return ebcdic_mm[i] + ebcdic_ii[i];
13652 extern int foo;
13655 main ()
13657 return use_ascii (foo) == use_ebcdic (foo);
13659 return 0;
13661 _ACEOF
13662 if ac_fn_c_try_compile "$LINENO"; then :
13663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13664 ac_cv_c_bigendian=yes
13666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13667 if test "$ac_cv_c_bigendian" = unknown; then
13668 ac_cv_c_bigendian=no
13669 else
13670 # finding both strings is unlikely to happen, but who knows?
13671 ac_cv_c_bigendian=unknown
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 else
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 $ac_includes_default
13681 main ()
13684 /* Are we little or big endian? From Harbison&Steele. */
13685 union
13687 long int l;
13688 char c[sizeof (long int)];
13689 } u;
13690 u.l = 1;
13691 return u.c[sizeof (long int) - 1] == 1;
13694 return 0;
13696 _ACEOF
13697 if ac_fn_c_try_run "$LINENO"; then :
13698 ac_cv_c_bigendian=no
13699 else
13700 ac_cv_c_bigendian=yes
13702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13703 conftest.$ac_objext conftest.beam conftest.$ac_ext
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13709 $as_echo "$ac_cv_c_bigendian" >&6; }
13710 case $ac_cv_c_bigendian in #(
13711 yes)
13712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13713 ;; #(
13715 ;; #(
13716 universal)
13718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13720 ;; #(
13722 as_fn_error $? "unknown endianness
13723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13724 esac
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13728 $as_echo_n "checking for inline... " >&6; }
13729 if test "${ac_cv_c_inline+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 ac_cv_c_inline=no
13733 for ac_kw in inline __inline__ __inline; do
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 #ifndef __cplusplus
13737 typedef int foo_t;
13738 static $ac_kw foo_t static_foo () {return 0; }
13739 $ac_kw foo_t foo () {return 0; }
13740 #endif
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 ac_cv_c_inline=$ac_kw
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 test "$ac_cv_c_inline" != no && break
13748 done
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13752 $as_echo "$ac_cv_c_inline" >&6; }
13754 case $ac_cv_c_inline in
13755 inline | yes) ;;
13757 case $ac_cv_c_inline in
13758 no) ac_val=;;
13759 *) ac_val=$ac_cv_c_inline;;
13760 esac
13761 cat >>confdefs.h <<_ACEOF
13762 #ifndef __cplusplus
13763 #define inline $ac_val
13764 #endif
13765 _ACEOF
13767 esac
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13771 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13772 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 /* On HP-UX before 11.23, strtold returns a struct instead of
13778 long double. Reject implementations like that, by requiring
13779 compatibility with the C99 prototype. */
13780 #include <stdlib.h>
13781 static long double (*p) (char const *, char **) = strtold;
13782 static long double
13783 test (char const *nptr, char **endptr)
13785 long double r;
13786 r = strtold (nptr, endptr);
13787 return r;
13790 main ()
13792 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13794 return 0;
13796 _ACEOF
13797 if ac_fn_c_try_link "$LINENO"; then :
13798 gl_cv_func_c99_strtold=yes
13799 else
13800 gl_cv_func_c99_strtold=no
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13806 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13807 if test $gl_cv_func_c99_strtold = yes; then
13809 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13814 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13815 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13821 #include <sys/types.h>
13822 #include <sys/stat.h>
13824 main ()
13826 struct stat s; s.st_dm_mode;
13828 return 0;
13830 _ACEOF
13831 if ac_fn_c_try_compile "$LINENO"; then :
13832 ac_cv_struct_st_dm_mode=yes
13833 else
13834 ac_cv_struct_st_dm_mode=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13839 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13841 if test $ac_cv_struct_st_dm_mode = yes; then
13843 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13848 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13849 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13850 ac_have_decl=1
13851 else
13852 ac_have_decl=0
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_DECL_STRMODE $ac_have_decl
13857 _ACEOF
13860 GNULIB__EXIT=0;
13861 GNULIB_ATOLL=0;
13862 GNULIB_CALLOC_POSIX=0;
13863 GNULIB_CANONICALIZE_FILE_NAME=0;
13864 GNULIB_GETLOADAVG=0;
13865 GNULIB_GETSUBOPT=0;
13866 GNULIB_GRANTPT=0;
13867 GNULIB_MALLOC_POSIX=0;
13868 GNULIB_MBTOWC=0;
13869 GNULIB_MKDTEMP=0;
13870 GNULIB_MKOSTEMP=0;
13871 GNULIB_MKOSTEMPS=0;
13872 GNULIB_MKSTEMP=0;
13873 GNULIB_MKSTEMPS=0;
13874 GNULIB_PTSNAME=0;
13875 GNULIB_PUTENV=0;
13876 GNULIB_RANDOM_R=0;
13877 GNULIB_REALLOC_POSIX=0;
13878 GNULIB_REALPATH=0;
13879 GNULIB_RPMATCH=0;
13880 GNULIB_SETENV=0;
13881 GNULIB_STRTOD=0;
13882 GNULIB_STRTOLL=0;
13883 GNULIB_STRTOULL=0;
13884 GNULIB_SYSTEM_POSIX=0;
13885 GNULIB_UNLOCKPT=0;
13886 GNULIB_UNSETENV=0;
13887 GNULIB_WCTOMB=0;
13888 HAVE__EXIT=1;
13889 HAVE_ATOLL=1;
13890 HAVE_CANONICALIZE_FILE_NAME=1;
13891 HAVE_DECL_GETLOADAVG=1;
13892 HAVE_GETSUBOPT=1;
13893 HAVE_GRANTPT=1;
13894 HAVE_MKDTEMP=1;
13895 HAVE_MKOSTEMP=1;
13896 HAVE_MKOSTEMPS=1;
13897 HAVE_MKSTEMP=1;
13898 HAVE_MKSTEMPS=1;
13899 HAVE_PTSNAME=1;
13900 HAVE_RANDOM_H=1;
13901 HAVE_RANDOM_R=1;
13902 HAVE_REALPATH=1;
13903 HAVE_RPMATCH=1;
13904 HAVE_SETENV=1;
13905 HAVE_DECL_SETENV=1;
13906 HAVE_STRTOD=1;
13907 HAVE_STRTOLL=1;
13908 HAVE_STRTOULL=1;
13909 HAVE_STRUCT_RANDOM_DATA=1;
13910 HAVE_SYS_LOADAVG_H=0;
13911 HAVE_UNLOCKPT=1;
13912 HAVE_DECL_UNSETENV=1;
13913 REPLACE_CALLOC=0;
13914 REPLACE_CANONICALIZE_FILE_NAME=0;
13915 REPLACE_MALLOC=0;
13916 REPLACE_MBTOWC=0;
13917 REPLACE_MKSTEMP=0;
13918 REPLACE_PUTENV=0;
13919 REPLACE_REALLOC=0;
13920 REPLACE_REALPATH=0;
13921 REPLACE_SETENV=0;
13922 REPLACE_STRTOD=0;
13923 REPLACE_UNSETENV=0;
13924 REPLACE_WCTOMB=0;
13927 GNULIB_CHOWN=0;
13928 GNULIB_CLOSE=0;
13929 GNULIB_DUP2=0;
13930 GNULIB_DUP3=0;
13931 GNULIB_ENVIRON=0;
13932 GNULIB_EUIDACCESS=0;
13933 GNULIB_FACCESSAT=0;
13934 GNULIB_FCHDIR=0;
13935 GNULIB_FCHOWNAT=0;
13936 GNULIB_FSYNC=0;
13937 GNULIB_FTRUNCATE=0;
13938 GNULIB_GETCWD=0;
13939 GNULIB_GETDOMAINNAME=0;
13940 GNULIB_GETDTABLESIZE=0;
13941 GNULIB_GETGROUPS=0;
13942 GNULIB_GETHOSTNAME=0;
13943 GNULIB_GETLOGIN=0;
13944 GNULIB_GETLOGIN_R=0;
13945 GNULIB_GETPAGESIZE=0;
13946 GNULIB_GETUSERSHELL=0;
13947 GNULIB_LCHOWN=0;
13948 GNULIB_LINK=0;
13949 GNULIB_LINKAT=0;
13950 GNULIB_LSEEK=0;
13951 GNULIB_PIPE=0;
13952 GNULIB_PIPE2=0;
13953 GNULIB_PREAD=0;
13954 GNULIB_PWRITE=0;
13955 GNULIB_READLINK=0;
13956 GNULIB_READLINKAT=0;
13957 GNULIB_RMDIR=0;
13958 GNULIB_SLEEP=0;
13959 GNULIB_SYMLINK=0;
13960 GNULIB_SYMLINKAT=0;
13961 GNULIB_TTYNAME_R=0;
13962 GNULIB_UNISTD_H_GETOPT=0;
13963 GNULIB_UNISTD_H_SIGPIPE=0;
13964 GNULIB_UNLINK=0;
13965 GNULIB_UNLINKAT=0;
13966 GNULIB_USLEEP=0;
13967 GNULIB_WRITE=0;
13968 HAVE_CHOWN=1;
13969 HAVE_DUP2=1;
13970 HAVE_DUP3=1;
13971 HAVE_EUIDACCESS=1;
13972 HAVE_FACCESSAT=1;
13973 HAVE_FCHDIR=1;
13974 HAVE_FCHOWNAT=1;
13975 HAVE_FSYNC=1;
13976 HAVE_FTRUNCATE=1;
13977 HAVE_GETDTABLESIZE=1;
13978 HAVE_GETGROUPS=1;
13979 HAVE_GETHOSTNAME=1;
13980 HAVE_GETLOGIN=1;
13981 HAVE_GETPAGESIZE=1;
13982 HAVE_LCHOWN=1;
13983 HAVE_LINK=1;
13984 HAVE_LINKAT=1;
13985 HAVE_PIPE=1;
13986 HAVE_PIPE2=1;
13987 HAVE_PREAD=1;
13988 HAVE_PWRITE=1;
13989 HAVE_READLINK=1;
13990 HAVE_READLINKAT=1;
13991 HAVE_SLEEP=1;
13992 HAVE_SYMLINK=1;
13993 HAVE_SYMLINKAT=1;
13994 HAVE_UNLINKAT=1;
13995 HAVE_USLEEP=1;
13996 HAVE_DECL_ENVIRON=1;
13997 HAVE_DECL_FCHDIR=1;
13998 HAVE_DECL_GETDOMAINNAME=1;
13999 HAVE_DECL_GETLOGIN_R=1;
14000 HAVE_DECL_GETPAGESIZE=1;
14001 HAVE_DECL_GETUSERSHELL=1;
14002 HAVE_DECL_TTYNAME_R=1;
14003 HAVE_OS_H=0;
14004 HAVE_SYS_PARAM_H=0;
14005 REPLACE_CHOWN=0;
14006 REPLACE_CLOSE=0;
14007 REPLACE_DUP=0;
14008 REPLACE_DUP2=0;
14009 REPLACE_FCHOWNAT=0;
14010 REPLACE_GETCWD=0;
14011 REPLACE_GETDOMAINNAME=0;
14012 REPLACE_GETLOGIN_R=0;
14013 REPLACE_GETGROUPS=0;
14014 REPLACE_GETPAGESIZE=0;
14015 REPLACE_LCHOWN=0;
14016 REPLACE_LINK=0;
14017 REPLACE_LINKAT=0;
14018 REPLACE_LSEEK=0;
14019 REPLACE_PREAD=0;
14020 REPLACE_PWRITE=0;
14021 REPLACE_READLINK=0;
14022 REPLACE_RMDIR=0;
14023 REPLACE_SLEEP=0;
14024 REPLACE_SYMLINK=0;
14025 REPLACE_TTYNAME_R=0;
14026 REPLACE_UNLINK=0;
14027 REPLACE_UNLINKAT=0;
14028 REPLACE_USLEEP=0;
14029 REPLACE_WRITE=0;
14030 UNISTD_H_HAVE_WINSOCK2_H=0;
14031 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14037 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14038 if test "${gl_cv_have_include_next+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 rm -rf conftestd1a conftestd1b conftestd2
14042 mkdir conftestd1a conftestd1b conftestd2
14043 cat <<EOF > conftestd1a/conftest.h
14044 #define DEFINED_IN_CONFTESTD1
14045 #include_next <conftest.h>
14046 #ifdef DEFINED_IN_CONFTESTD2
14047 int foo;
14048 #else
14049 #error "include_next doesn't work"
14050 #endif
14052 cat <<EOF > conftestd1b/conftest.h
14053 #define DEFINED_IN_CONFTESTD1
14054 #include <stdio.h>
14055 #include_next <conftest.h>
14056 #ifdef DEFINED_IN_CONFTESTD2
14057 int foo;
14058 #else
14059 #error "include_next doesn't work"
14060 #endif
14062 cat <<EOF > conftestd2/conftest.h
14063 #ifndef DEFINED_IN_CONFTESTD1
14064 #error "include_next test doesn't work"
14065 #endif
14066 #define DEFINED_IN_CONFTESTD2
14068 gl_save_CPPFLAGS="$CPPFLAGS"
14069 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 #include <conftest.h>
14073 _ACEOF
14074 if ac_fn_c_try_compile "$LINENO"; then :
14075 gl_cv_have_include_next=yes
14076 else
14077 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <conftest.h>
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 gl_cv_have_include_next=buggy
14084 else
14085 gl_cv_have_include_next=no
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 CPPFLAGS="$gl_save_CPPFLAGS"
14092 rm -rf conftestd1a conftestd1b conftestd2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14096 $as_echo "$gl_cv_have_include_next" >&6; }
14097 PRAGMA_SYSTEM_HEADER=
14098 if test $gl_cv_have_include_next = yes; then
14099 INCLUDE_NEXT=include_next
14100 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14101 if test -n "$GCC"; then
14102 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14104 else
14105 if test $gl_cv_have_include_next = buggy; then
14106 INCLUDE_NEXT=include
14107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14108 else
14109 INCLUDE_NEXT=include
14110 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14117 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14118 if test "${gl_cv_pragma_columns+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14124 #ifdef __TANDEM
14125 choke me
14126 #endif
14128 _ACEOF
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "choke me" >/dev/null 2>&1; then :
14131 gl_cv_pragma_columns=yes
14132 else
14133 gl_cv_pragma_columns=no
14135 rm -f conftest*
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14140 $as_echo "$gl_cv_pragma_columns" >&6; }
14141 if test $gl_cv_pragma_columns = yes; then
14142 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14143 else
14144 PRAGMA_COLUMNS=
14163 if test $gl_cv_have_include_next = yes; then
14164 gl_cv_next_getopt_h='<'getopt.h'>'
14165 else
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14167 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14168 if test "${gl_cv_next_getopt_h+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14172 if test $ac_cv_header_getopt_h = yes; then
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177 #include <getopt.h>
14179 _ACEOF
14180 case "$host_os" in
14181 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14182 *) gl_absname_cpp="$ac_cpp" ;;
14183 esac
14184 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14185 sed -n '\#/getopt.h#{
14186 s#.*"\(.*/getopt.h\)".*#\1#
14187 s#^/[^/]#//&#
14190 }'`'"'
14191 else
14192 gl_cv_next_getopt_h='<'getopt.h'>'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14198 $as_echo "$gl_cv_next_getopt_h" >&6; }
14200 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14204 gl_next_as_first_directive='<'getopt.h'>'
14205 else
14206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14207 gl_next_as_first_directive=$gl_cv_next_getopt_h
14209 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14214 if test $ac_cv_header_getopt_h = yes; then
14215 HAVE_GETOPT_H=1
14216 else
14217 HAVE_GETOPT_H=0
14221 gl_replace_getopt=
14223 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14224 for ac_header in getopt.h
14225 do :
14226 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14227 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14228 cat >>confdefs.h <<_ACEOF
14229 #define HAVE_GETOPT_H 1
14230 _ACEOF
14232 else
14233 gl_replace_getopt=yes
14236 done
14240 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14241 for ac_func in getopt_long_only
14242 do :
14243 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14244 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14245 cat >>confdefs.h <<_ACEOF
14246 #define HAVE_GETOPT_LONG_ONLY 1
14247 _ACEOF
14249 else
14250 gl_replace_getopt=yes
14252 done
14256 if test -z "$gl_replace_getopt"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14258 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14259 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 #include <unistd.h>
14267 main ()
14269 int *p = &optreset; return optreset;
14271 return 0;
14273 _ACEOF
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275 gl_optind_min=1
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <getopt.h>
14281 main ()
14283 return !getopt_clip;
14285 return 0;
14287 _ACEOF
14288 if ac_fn_c_try_compile "$LINENO"; then :
14289 gl_optind_min=1
14290 else
14291 gl_optind_min=0
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 gl_save_CPPFLAGS=$CPPFLAGS
14298 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14299 if test "$cross_compiling" = yes; then :
14300 case "$host_os" in
14301 mingw*) gl_cv_func_getopt_posix="guessing no";;
14302 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14303 *) gl_cv_func_getopt_posix="guessing yes";;
14304 esac
14306 else
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 #include <unistd.h>
14311 #include <stdlib.h>
14312 #include <string.h>
14315 main ()
14318 int argc = 0;
14319 char *argv[10];
14320 int c;
14322 argv[argc++] = "program";
14323 argv[argc++] = "-a";
14324 argv[argc++] = "foo";
14325 argv[argc++] = "bar";
14326 argv[argc] = NULL;
14327 optind = OPTIND_MIN;
14328 opterr = 0;
14330 c = getopt (argc, argv, "ab");
14331 if (!(c == 'a'))
14332 return 1;
14333 c = getopt (argc, argv, "ab");
14334 if (!(c == -1))
14335 return 2;
14336 if (!(optind == 2))
14337 return 3;
14339 /* Some internal state exists at this point. */
14341 int argc = 0;
14342 char *argv[10];
14343 int c;
14345 argv[argc++] = "program";
14346 argv[argc++] = "donald";
14347 argv[argc++] = "-p";
14348 argv[argc++] = "billy";
14349 argv[argc++] = "duck";
14350 argv[argc++] = "-a";
14351 argv[argc++] = "bar";
14352 argv[argc] = NULL;
14353 optind = OPTIND_MIN;
14354 opterr = 0;
14356 c = getopt (argc, argv, "+abp:q:");
14357 if (!(c == -1))
14358 return 4;
14359 if (!(strcmp (argv[0], "program") == 0))
14360 return 5;
14361 if (!(strcmp (argv[1], "donald") == 0))
14362 return 6;
14363 if (!(strcmp (argv[2], "-p") == 0))
14364 return 7;
14365 if (!(strcmp (argv[3], "billy") == 0))
14366 return 8;
14367 if (!(strcmp (argv[4], "duck") == 0))
14368 return 9;
14369 if (!(strcmp (argv[5], "-a") == 0))
14370 return 10;
14371 if (!(strcmp (argv[6], "bar") == 0))
14372 return 11;
14373 if (!(optind == 1))
14374 return 12;
14376 /* Detect MacOS 10.5, AIX 7.1 bug. */
14378 char *argv[3] = { "program", "-ab", NULL };
14379 optind = OPTIND_MIN;
14380 opterr = 0;
14381 if (getopt (2, argv, "ab:") != 'a')
14382 return 13;
14383 if (getopt (2, argv, "ab:") != '?')
14384 return 14;
14385 if (optopt != 'b')
14386 return 15;
14387 if (optind != 2)
14388 return 16;
14391 return 0;
14394 _ACEOF
14395 if ac_fn_c_try_run "$LINENO"; then :
14396 gl_cv_func_getopt_posix=yes
14397 else
14398 gl_cv_func_getopt_posix=no
14400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14401 conftest.$ac_objext conftest.beam conftest.$ac_ext
14404 CPPFLAGS=$gl_save_CPPFLAGS
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14408 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14409 case "$gl_cv_func_getopt_posix" in
14410 *no) gl_replace_getopt=yes ;;
14411 esac
14414 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14416 $as_echo_n "checking for working GNU getopt function... " >&6; }
14417 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14421 # optstring is necessary for programs like m4 that have POSIX-mandated
14422 # semantics for supporting options interspersed with files.
14423 # Also, since getopt_long is a GNU extension, we require optind=0.
14424 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14425 # so take care to revert to the correct (non-)export state.
14426 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14427 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14428 xx) gl_had_POSIXLY_CORRECT=exported ;;
14429 x) gl_had_POSIXLY_CORRECT=yes ;;
14430 *) gl_had_POSIXLY_CORRECT= ;;
14431 esac
14432 POSIXLY_CORRECT=1
14433 export POSIXLY_CORRECT
14434 if test "$cross_compiling" = yes; then :
14435 case $host_os:$ac_cv_have_decl_optreset in
14436 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14437 *:yes) gl_cv_func_getopt_gnu=no;;
14438 *) gl_cv_func_getopt_gnu=yes;;
14439 esac
14441 else
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <getopt.h>
14445 #include <stddef.h>
14446 #include <string.h>
14449 main ()
14452 int result = 0;
14453 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14454 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14455 OSF/1 5.1, Solaris 10. */
14457 char *myargv[3];
14458 myargv[0] = "conftest";
14459 myargv[1] = "-+";
14460 myargv[2] = 0;
14461 opterr = 0;
14462 if (getopt (2, myargv, "+a") != '?')
14463 result |= 1;
14465 /* This code succeeds on glibc 2.8, mingw,
14466 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14467 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14469 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14471 optind = 1;
14472 if (getopt (4, argv, "p::") != 'p')
14473 result |= 2;
14474 else if (optarg != NULL)
14475 result |= 4;
14476 else if (getopt (4, argv, "p::") != -1)
14477 result |= 6;
14478 else if (optind != 2)
14479 result |= 8;
14481 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14483 char *argv[] = { "program", "foo", "-p", NULL };
14484 optind = 0;
14485 if (getopt (3, argv, "-p") != 1)
14486 result |= 16;
14487 else if (getopt (3, argv, "-p") != 'p')
14488 result |= 32;
14490 /* This code fails on glibc 2.11. */
14492 char *argv[] = { "program", "-b", "-a", NULL };
14493 optind = opterr = 0;
14494 if (getopt (3, argv, "+:a:b") != 'b')
14495 result |= 64;
14496 else if (getopt (3, argv, "+:a:b") != ':')
14497 result |= 64;
14499 return result;
14502 return 0;
14504 _ACEOF
14505 if ac_fn_c_try_run "$LINENO"; then :
14506 gl_cv_func_getopt_gnu=yes
14507 else
14508 gl_cv_func_getopt_gnu=no
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14511 conftest.$ac_objext conftest.beam conftest.$ac_ext
14514 case $gl_had_POSIXLY_CORRECT in
14515 exported) ;;
14516 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14517 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14518 esac
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14522 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14523 if test "$gl_cv_func_getopt_gnu" = "no"; then
14524 gl_replace_getopt=yes
14528 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14529 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14530 ac_have_decl=1
14531 else
14532 ac_have_decl=0
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_DECL_GETENV $ac_have_decl
14537 _ACEOF
14544 if test -n "$gl_replace_getopt"; then :
14548 GETOPT_H=getopt.h
14550 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14554 GNULIB_UNISTD_H_GETOPT=1
14563 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14573 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14584 GNULIB_FCHMODAT=0;
14585 GNULIB_FSTATAT=0;
14586 GNULIB_FUTIMENS=0;
14587 GNULIB_LCHMOD=0;
14588 GNULIB_LSTAT=0;
14589 GNULIB_MKDIRAT=0;
14590 GNULIB_MKFIFO=0;
14591 GNULIB_MKFIFOAT=0;
14592 GNULIB_MKNOD=0;
14593 GNULIB_MKNODAT=0;
14594 GNULIB_STAT=0;
14595 GNULIB_UTIMENSAT=0;
14596 HAVE_FCHMODAT=1;
14597 HAVE_FSTATAT=1;
14598 HAVE_FUTIMENS=1;
14599 HAVE_LCHMOD=1;
14600 HAVE_LSTAT=1;
14601 HAVE_MKDIRAT=1;
14602 HAVE_MKFIFO=1;
14603 HAVE_MKFIFOAT=1;
14604 HAVE_MKNOD=1;
14605 HAVE_MKNODAT=1;
14606 HAVE_UTIMENSAT=1;
14607 REPLACE_FSTAT=0;
14608 REPLACE_FSTATAT=0;
14609 REPLACE_FUTIMENS=0;
14610 REPLACE_LSTAT=0;
14611 REPLACE_MKDIR=0;
14612 REPLACE_MKFIFO=0;
14613 REPLACE_MKNOD=0;
14614 REPLACE_STAT=0;
14615 REPLACE_UTIMENSAT=0;
14620 for ac_func in $ac_func_list
14621 do :
14622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14625 cat >>confdefs.h <<_ACEOF
14626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14627 _ACEOF
14630 done
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14636 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14637 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 rm -f conftest.sym conftest.file
14641 echo >conftest.file
14642 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14643 if test "$cross_compiling" = yes; then :
14644 # When cross-compiling, be pessimistic so we will end up using the
14645 # replacement version of lstat that checks for trailing slashes and
14646 # calls lstat a second time when necessary.
14647 ac_cv_func_lstat_dereferences_slashed_symlink=no
14649 else
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652 $ac_includes_default
14654 main ()
14656 struct stat sbuf;
14657 /* Linux will dereference the symlink and fail, as required by
14658 POSIX. That is better in the sense that it means we will not
14659 have to compile and use the lstat wrapper. */
14660 return lstat ("conftest.sym/", &sbuf) == 0;
14663 return 0;
14665 _ACEOF
14666 if ac_fn_c_try_run "$LINENO"; then :
14667 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14668 else
14669 ac_cv_func_lstat_dereferences_slashed_symlink=no
14671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14672 conftest.$ac_objext conftest.beam conftest.$ac_ext
14675 else
14676 # If the 'ln -s' command failed, then we probably don't even
14677 # have an lstat function.
14678 ac_cv_func_lstat_dereferences_slashed_symlink=no
14680 rm -f conftest.sym conftest.file
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14684 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14685 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14687 cat >>confdefs.h <<_ACEOF
14688 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14689 _ACEOF
14691 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14700 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14705 GNULIB_MKTIME=0;
14706 GNULIB_NANOSLEEP=0;
14707 GNULIB_STRPTIME=0;
14708 GNULIB_TIMEGM=0;
14709 GNULIB_TIME_R=0;
14710 HAVE_DECL_LOCALTIME_R=1;
14711 HAVE_NANOSLEEP=1;
14712 HAVE_STRPTIME=1;
14713 HAVE_TIMEGM=1;
14714 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14715 REPLACE_MKTIME=GNULIB_PORTCHECK;
14716 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14717 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14722 gl_cv_c_multiarch=no
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 #ifndef __APPLE_CC__
14726 not a universal capable compiler
14727 #endif
14728 typedef int dummy;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"; then :
14733 arch=
14734 prev=
14735 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14736 if test -n "$prev"; then
14737 case $word in
14738 i?86 | x86_64 | ppc | ppc64)
14739 if test -z "$arch" || test "$arch" = "$word"; then
14740 arch="$word"
14741 else
14742 gl_cv_c_multiarch=yes
14745 esac
14746 prev=
14747 else
14748 if test "x$word" = "x-arch"; then
14749 prev=arch
14752 done
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 if test $gl_cv_c_multiarch = yes; then
14757 APPLE_UNIVERSAL_BUILD=1
14758 else
14759 APPLE_UNIVERSAL_BUILD=0
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14766 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14767 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14773 #include <stdbool.h>
14774 #ifndef bool
14775 "error: bool is not defined"
14776 #endif
14777 #ifndef false
14778 "error: false is not defined"
14779 #endif
14780 #if false
14781 "error: false is not 0"
14782 #endif
14783 #ifndef true
14784 "error: true is not defined"
14785 #endif
14786 #if true != 1
14787 "error: true is not 1"
14788 #endif
14789 #ifndef __bool_true_false_are_defined
14790 "error: __bool_true_false_are_defined is not defined"
14791 #endif
14793 struct s { _Bool s: 1; _Bool t; } s;
14795 char a[true == 1 ? 1 : -1];
14796 char b[false == 0 ? 1 : -1];
14797 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14798 char d[(bool) 0.5 == true ? 1 : -1];
14799 /* See body of main program for 'e'. */
14800 char f[(_Bool) 0.0 == false ? 1 : -1];
14801 char g[true];
14802 char h[sizeof (_Bool)];
14803 char i[sizeof s.t];
14804 enum { j = false, k = true, l = false * true, m = true * 256 };
14805 /* The following fails for
14806 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14807 _Bool n[m];
14808 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14809 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14810 /* Catch a bug in an HP-UX C compiler. See
14811 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14812 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14814 _Bool q = true;
14815 _Bool *pq = &q;
14818 main ()
14821 bool e = &s;
14822 *pq |= q;
14823 *pq |= ! q;
14824 /* Refer to every declared value, to avoid compiler optimizations. */
14825 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14826 + !m + !n + !o + !p + !q + !pq);
14829 return 0;
14831 _ACEOF
14832 if ac_fn_c_try_compile "$LINENO"; then :
14833 ac_cv_header_stdbool_h=yes
14834 else
14835 ac_cv_header_stdbool_h=no
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14840 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14841 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14842 if test "x$ac_cv_type__Bool" = x""yes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE__BOOL 1
14846 _ACEOF
14853 REPLACE_NULL=0;
14854 HAVE_WCHAR_T=1;
14855 STDDEF_H='';
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14859 $as_echo_n "checking for wchar_t... " >&6; }
14860 if test "${gt_cv_c_wchar_t+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14865 #include <stddef.h>
14866 wchar_t foo = (wchar_t)'\0';
14868 main ()
14872 return 0;
14874 _ACEOF
14875 if ac_fn_c_try_compile "$LINENO"; then :
14876 gt_cv_c_wchar_t=yes
14877 else
14878 gt_cv_c_wchar_t=no
14880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14883 $as_echo "$gt_cv_c_wchar_t" >&6; }
14884 if test $gt_cv_c_wchar_t = yes; then
14886 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14892 $as_echo_n "checking for unsigned long long int... " >&6; }
14893 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 ac_cv_type_unsigned_long_long_int=yes
14897 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 /* For now, do not test the preprocessor; as of 2007 there are too many
14902 implementations with broken preprocessors. Perhaps this can
14903 be revisited in 2012. In the meantime, code should not expect
14904 #if to work with literals wider than 32 bits. */
14905 /* Test literals. */
14906 long long int ll = 9223372036854775807ll;
14907 long long int nll = -9223372036854775807LL;
14908 unsigned long long int ull = 18446744073709551615ULL;
14909 /* Test constant expressions. */
14910 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14911 ? 1 : -1)];
14912 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14913 ? 1 : -1)];
14914 int i = 63;
14916 main ()
14918 /* Test availability of runtime routines for shift and division. */
14919 long long int llmax = 9223372036854775807ll;
14920 unsigned long long int ullmax = 18446744073709551615ull;
14921 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14922 | (llmax / ll) | (llmax % ll)
14923 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14924 | (ullmax / ull) | (ullmax % ull));
14926 return 0;
14929 _ACEOF
14930 if ac_fn_c_try_link "$LINENO"; then :
14932 else
14933 ac_cv_type_unsigned_long_long_int=no
14935 rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14940 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14941 if test $ac_cv_type_unsigned_long_long_int = yes; then
14943 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14950 $as_echo_n "checking for long long int... " >&6; }
14951 if test "${ac_cv_type_long_long_int+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14953 else
14954 ac_cv_type_long_long_int=yes
14955 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14956 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14957 if test $ac_cv_type_long_long_int = yes; then
14958 if test "$cross_compiling" = yes; then :
14960 else
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <limits.h>
14964 #ifndef LLONG_MAX
14965 # define HALF \
14966 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14967 # define LLONG_MAX (HALF - 1 + HALF)
14968 #endif
14970 main ()
14972 long long int n = 1;
14973 int i;
14974 for (i = 0; ; i++)
14976 long long int m = n << i;
14977 if (m >> i != n)
14978 return 1;
14979 if (LLONG_MAX / 2 < m)
14980 break;
14982 return 0;
14984 return 0;
14986 _ACEOF
14987 if ac_fn_c_try_run "$LINENO"; then :
14989 else
14990 ac_cv_type_long_long_int=no
14992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14993 conftest.$ac_objext conftest.beam conftest.$ac_ext
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15000 $as_echo "$ac_cv_type_long_long_int" >&6; }
15001 if test $ac_cv_type_long_long_int = yes; then
15003 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15012 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15014 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15016 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15026 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15027 if test "${ac_cv_header_stat_broken+set}" = set; then :
15028 $as_echo_n "(cached) " >&6
15029 else
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #include <sys/types.h>
15033 #include <sys/stat.h>
15035 #if defined S_ISBLK && defined S_IFDIR
15036 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15037 #endif
15039 #if defined S_ISBLK && defined S_IFCHR
15040 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15041 #endif
15043 #if defined S_ISLNK && defined S_IFREG
15044 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15045 #endif
15047 #if defined S_ISSOCK && defined S_IFREG
15048 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15049 #endif
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 ac_cv_header_stat_broken=no
15054 else
15055 ac_cv_header_stat_broken=yes
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15060 $as_echo "$ac_cv_header_stat_broken" >&6; }
15061 if test $ac_cv_header_stat_broken = yes; then
15063 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15070 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15071 if test "${ac_cv_c_restrict+set}" = set; then :
15072 $as_echo_n "(cached) " >&6
15073 else
15074 ac_cv_c_restrict=no
15075 # The order here caters to the fact that C++ does not require restrict.
15076 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 typedef int * int_ptr;
15080 int foo (int_ptr $ac_kw ip) {
15081 return ip[0];
15084 main ()
15086 int s[1];
15087 int * $ac_kw t = s;
15088 t[0] = 0;
15089 return foo(t)
15091 return 0;
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 ac_cv_c_restrict=$ac_kw
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 test "$ac_cv_c_restrict" != no && break
15099 done
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15103 $as_echo "$ac_cv_c_restrict" >&6; }
15105 case $ac_cv_c_restrict in
15106 restrict) ;;
15107 no) $as_echo "#define restrict /**/" >>confdefs.h
15109 *) cat >>confdefs.h <<_ACEOF
15110 #define restrict $ac_cv_c_restrict
15111 _ACEOF
15113 esac
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15120 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15121 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15122 $as_echo_n "(cached) " >&6
15123 else
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126 #include <time.h>
15129 main ()
15131 static struct timespec x; x.tv_sec = x.tv_nsec;
15133 return 0;
15135 _ACEOF
15136 if ac_fn_c_try_compile "$LINENO"; then :
15137 gl_cv_sys_struct_timespec_in_time_h=yes
15138 else
15139 gl_cv_sys_struct_timespec_in_time_h=no
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15144 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15146 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15147 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15148 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15149 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15150 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15151 else
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15153 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15154 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <sys/time.h>
15162 main ()
15164 static struct timespec x; x.tv_sec = x.tv_nsec;
15166 return 0;
15168 _ACEOF
15169 if ac_fn_c_try_compile "$LINENO"; then :
15170 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15171 else
15172 gl_cv_sys_struct_timespec_in_sys_time_h=no
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15177 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15178 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15179 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15180 else
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15182 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15183 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <pthread.h>
15191 main ()
15193 static struct timespec x; x.tv_sec = x.tv_nsec;
15195 return 0;
15197 _ACEOF
15198 if ac_fn_c_try_compile "$LINENO"; then :
15199 gl_cv_sys_struct_timespec_in_pthread_h=yes
15200 else
15201 gl_cv_sys_struct_timespec_in_pthread_h=no
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15206 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15207 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15208 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15227 if test $gl_cv_have_include_next = yes; then
15228 gl_cv_next_time_h='<'time.h'>'
15229 else
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15231 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15232 if test "${gl_cv_next_time_h+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 #include <time.h>
15240 _ACEOF
15241 case "$host_os" in
15242 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15243 *) gl_absname_cpp="$ac_cpp" ;;
15244 esac
15245 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15246 sed -n '\#/time.h#{
15247 s#.*"\(.*/time.h\)".*#\1#
15248 s#^/[^/]#//&#
15251 }'`'"'
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15256 $as_echo "$gl_cv_next_time_h" >&6; }
15258 NEXT_TIME_H=$gl_cv_next_time_h
15260 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15262 gl_next_as_first_directive='<'time.h'>'
15263 else
15264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15265 gl_next_as_first_directive=$gl_cv_next_time_h
15267 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15274 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15275 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15276 ac_have_decl=1
15277 else
15278 ac_have_decl=0
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15283 _ACEOF
15288 if false; then
15289 GL_COND_LIBTOOL_TRUE=
15290 GL_COND_LIBTOOL_FALSE='#'
15291 else
15292 GL_COND_LIBTOOL_TRUE='#'
15293 GL_COND_LIBTOOL_FALSE=
15296 gl_cond_libtool=false
15297 gl_libdeps=
15298 gl_ltlibdeps=
15299 gl_m4_base='m4'
15309 gl_source_base='lib'
15310 # Code from module arg-nonnull:
15311 # Code from module c++defs:
15312 # Code from module crypto/md5:
15322 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15329 # Code from module dosname:
15330 # Code from module dtoastr:
15332 # Code from module extensions:
15333 # Code from module filemode:
15344 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15348 # Code from module getloadavg:
15351 # Persuade glibc <stdlib.h> to declare getloadavg().
15354 # Make sure getloadavg.c is where it belongs, at configure-time.
15355 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15356 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15358 gl_save_LIBS=$LIBS
15360 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15361 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15362 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15363 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15365 else
15366 gl_have_func=no
15368 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15369 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15370 # to get the right answer into the cache.
15371 # For kstat on solaris, we need to test for libelf and libkvm to force the
15372 # definition of SVR4 below.
15373 if test $gl_have_func = no; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15375 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15376 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 ac_check_lib_save_LIBS=$LIBS
15380 LIBS="-lelf $LIBS"
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char elf_begin ();
15392 main ()
15394 return elf_begin ();
15396 return 0;
15398 _ACEOF
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 ac_cv_lib_elf_elf_begin=yes
15401 else
15402 ac_cv_lib_elf_elf_begin=no
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 LIBS=$ac_check_lib_save_LIBS
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15409 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15410 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15411 LIBS="-lelf $LIBS"
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15415 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15416 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 ac_check_lib_save_LIBS=$LIBS
15420 LIBS="-lkvm $LIBS"
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15424 /* Override any GCC internal prototype to avoid an error.
15425 Use char because int might match the return type of a GCC
15426 builtin and then its argument prototype would still apply. */
15427 #ifdef __cplusplus
15428 extern "C"
15429 #endif
15430 char kvm_open ();
15432 main ()
15434 return kvm_open ();
15436 return 0;
15438 _ACEOF
15439 if ac_fn_c_try_link "$LINENO"; then :
15440 ac_cv_lib_kvm_kvm_open=yes
15441 else
15442 ac_cv_lib_kvm_kvm_open=no
15444 rm -f core conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15446 LIBS=$ac_check_lib_save_LIBS
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15449 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15450 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15451 LIBS="-lkvm $LIBS"
15454 # Check for the 4.4BSD definition of getloadavg.
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15456 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15457 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15458 $as_echo_n "(cached) " >&6
15459 else
15460 ac_check_lib_save_LIBS=$LIBS
15461 LIBS="-lutil $LIBS"
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 char getloadavg ();
15473 main ()
15475 return getloadavg ();
15477 return 0;
15479 _ACEOF
15480 if ac_fn_c_try_link "$LINENO"; then :
15481 ac_cv_lib_util_getloadavg=yes
15482 else
15483 ac_cv_lib_util_getloadavg=no
15485 rm -f core conftest.err conftest.$ac_objext \
15486 conftest$ac_exeext conftest.$ac_ext
15487 LIBS=$ac_check_lib_save_LIBS
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15490 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15491 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15492 LIBS="-lutil $LIBS" gl_have_func=yes
15497 if test $gl_have_func = no; then
15498 # There is a commonly available library for RS/6000 AIX.
15499 # Since it is not a standard part of AIX, it might be installed locally.
15500 gl_getloadavg_LIBS=$LIBS
15501 LIBS="-L/usr/local/lib $LIBS"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15503 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15504 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 ac_check_lib_save_LIBS=$LIBS
15508 LIBS="-lgetloadavg $LIBS"
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15512 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */
15515 #ifdef __cplusplus
15516 extern "C"
15517 #endif
15518 char getloadavg ();
15520 main ()
15522 return getloadavg ();
15524 return 0;
15526 _ACEOF
15527 if ac_fn_c_try_link "$LINENO"; then :
15528 ac_cv_lib_getloadavg_getloadavg=yes
15529 else
15530 ac_cv_lib_getloadavg_getloadavg=no
15532 rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15537 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15538 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15539 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15540 else
15541 LIBS=$gl_getloadavg_LIBS
15546 # Set up the replacement function if necessary.
15547 if test $gl_have_func = no; then
15556 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15559 # Figure out what our getloadavg.c needs.
15561 # Solaris has libkstat which does not require root.
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15563 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15564 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 ac_check_lib_save_LIBS=$LIBS
15568 LIBS="-lkstat $LIBS"
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char kstat_open ();
15580 main ()
15582 return kstat_open ();
15584 return 0;
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"; then :
15588 ac_cv_lib_kstat_kstat_open=yes
15589 else
15590 ac_cv_lib_kstat_kstat_open=no
15592 rm -f core conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15594 LIBS=$ac_check_lib_save_LIBS
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15597 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15598 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15599 cat >>confdefs.h <<_ACEOF
15600 #define HAVE_LIBKSTAT 1
15601 _ACEOF
15603 LIBS="-lkstat $LIBS"
15607 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15609 # On HPUX9, an unprivileged user can get load averages this way.
15610 if test $gl_have_func = no; then
15611 for ac_func in pstat_getdynamic
15612 do :
15613 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15614 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_PSTAT_GETDYNAMIC 1
15617 _ACEOF
15618 gl_have_func=yes
15620 done
15624 # AIX has libperfstat which does not require root
15625 if test $gl_have_func = no; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15627 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15628 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lperfstat $LIBS"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char perfstat_cpu_total ();
15644 main ()
15646 return perfstat_cpu_total ();
15648 return 0;
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"; then :
15652 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15653 else
15654 ac_cv_lib_perfstat_perfstat_cpu_total=no
15656 rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15658 LIBS=$ac_check_lib_save_LIBS
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15661 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15662 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15663 cat >>confdefs.h <<_ACEOF
15664 #define HAVE_LIBPERFSTAT 1
15665 _ACEOF
15667 LIBS="-lperfstat $LIBS"
15671 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15674 if test $gl_have_func = no; then
15675 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15676 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15677 gl_have_func=yes
15679 $as_echo "#define DGUX 1" >>confdefs.h
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15682 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15683 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 ac_check_lib_save_LIBS=$LIBS
15687 LIBS="-ldgc $LIBS"
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15691 /* Override any GCC internal prototype to avoid an error.
15692 Use char because int might match the return type of a GCC
15693 builtin and then its argument prototype would still apply. */
15694 #ifdef __cplusplus
15695 extern "C"
15696 #endif
15697 char dg_sys_info ();
15699 main ()
15701 return dg_sys_info ();
15703 return 0;
15705 _ACEOF
15706 if ac_fn_c_try_link "$LINENO"; then :
15707 ac_cv_lib_dgc_dg_sys_info=yes
15708 else
15709 ac_cv_lib_dgc_dg_sys_info=no
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 LIBS=$ac_check_lib_save_LIBS
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15716 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15717 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15718 cat >>confdefs.h <<_ACEOF
15719 #define HAVE_LIBDGC 1
15720 _ACEOF
15722 LIBS="-ldgc $LIBS"
15731 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15732 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15733 # Irix 4.0.5F has the header but not the library.
15734 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15735 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15736 gl_have_func=yes
15738 $as_echo "#define SVR4 1" >>confdefs.h
15742 if test $gl_have_func = no; then
15743 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15744 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15745 gl_have_func=yes
15747 $as_echo "#define UMAX 1" >>confdefs.h
15750 $as_echo "#define UMAX4_3 1" >>confdefs.h
15757 if test $gl_have_func = no; then
15758 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15759 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15760 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15767 if test $gl_have_func = no; then
15768 for ac_header in mach/mach.h
15769 do :
15770 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15771 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_MACH_MACH_H 1
15774 _ACEOF
15778 done
15782 for ac_header in nlist.h
15783 do :
15784 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15785 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15786 cat >>confdefs.h <<_ACEOF
15787 #define HAVE_NLIST_H 1
15788 _ACEOF
15789 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15791 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15793 cat >>confdefs.h <<_ACEOF
15794 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15795 _ACEOF
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 #include <nlist.h>
15804 main ()
15806 struct nlist x;
15807 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15808 x.n_un.n_name = "";
15809 #else
15810 x.n_name = "";
15811 #endif
15813 return 0;
15815 _ACEOF
15816 if ac_fn_c_try_link "$LINENO"; then :
15818 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15821 rm -f core conftest.err conftest.$ac_objext \
15822 conftest$ac_exeext conftest.$ac_ext
15826 done
15832 if test "x$gl_save_LIBS" = x; then
15833 GETLOADAVG_LIBS=$LIBS
15834 else
15835 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15837 LIBS=$gl_save_LIBS
15840 # Test whether the system declares getloadavg. Solaris has the function
15841 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15842 for ac_header in sys/loadavg.h
15843 do :
15844 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15845 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
15846 cat >>confdefs.h <<_ACEOF
15847 #define HAVE_SYS_LOADAVG_H 1
15848 _ACEOF
15852 done
15854 if test $ac_cv_header_sys_loadavg_h = yes; then
15855 HAVE_SYS_LOADAVG_H=1
15856 else
15857 HAVE_SYS_LOADAVG_H=0
15859 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15860 # include <sys/loadavg.h>
15861 #endif
15862 #include <stdlib.h>
15864 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
15866 else
15867 HAVE_DECL_GETLOADAVG=0
15874 GNULIB_GETLOADAVG=1
15878 # Code from module getopt-gnu:
15885 # Code from module getopt-posix:
15891 if test -n "$gl_replace_getopt"; then :
15895 GETOPT_H=getopt.h
15897 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15901 GNULIB_UNISTD_H_GETOPT=1
15910 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15920 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15930 # Code from module gettext-h:
15933 # Code from module ignore-value:
15935 # Code from module include_next:
15936 # Code from module intprops:
15937 # Code from module lstat:
15941 if test $ac_cv_func_lstat = yes; then
15943 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15944 REPLACE_LSTAT=1
15946 # Prerequisites of lib/lstat.c.
15948 else
15949 HAVE_LSTAT=0
15955 GNULIB_LSTAT=1
15959 # Code from module mktime:
15965 if test $APPLE_UNIVERSAL_BUILD = 1; then
15966 # A universal build on Apple MacOS X platforms.
15967 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15968 # But we need a configuration result that is valid in both modes.
15969 ac_cv_func_working_mktime=no
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15972 $as_echo_n "checking for working mktime... " >&6; }
15973 if test "${ac_cv_func_working_mktime+set}" = set; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 if test "$cross_compiling" = yes; then :
15977 ac_cv_func_working_mktime=no
15978 else
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 /* Test program from Paul Eggert and Tony Leneis. */
15982 #include <limits.h>
15983 #include <stdlib.h>
15984 #include <time.h>
15986 #ifdef HAVE_UNISTD_H
15987 # include <unistd.h>
15988 #endif
15990 #ifndef HAVE_ALARM
15991 # define alarm(X) /* empty */
15992 #endif
15994 /* Work around redefinition to rpl_putenv by other config tests. */
15995 #undef putenv
15997 static time_t time_t_max;
15998 static time_t time_t_min;
16000 /* Values we'll use to set the TZ environment variable. */
16001 static char *tz_strings[] = {
16002 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16003 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16005 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16007 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16008 Based on a problem report from Andreas Jaeger. */
16009 static int
16010 spring_forward_gap ()
16012 /* glibc (up to about 1998-10-07) failed this test. */
16013 struct tm tm;
16015 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16016 instead of "TZ=America/Vancouver" in order to detect the bug even
16017 on systems that don't support the Olson extension, or don't have the
16018 full zoneinfo tables installed. */
16019 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16021 tm.tm_year = 98;
16022 tm.tm_mon = 3;
16023 tm.tm_mday = 5;
16024 tm.tm_hour = 2;
16025 tm.tm_min = 0;
16026 tm.tm_sec = 0;
16027 tm.tm_isdst = -1;
16028 return mktime (&tm) != (time_t) -1;
16031 static int
16032 mktime_test1 (time_t now)
16034 struct tm *lt;
16035 return ! (lt = localtime (&now)) || mktime (lt) == now;
16038 static int
16039 mktime_test (time_t now)
16041 return (mktime_test1 (now)
16042 && mktime_test1 ((time_t) (time_t_max - now))
16043 && mktime_test1 ((time_t) (time_t_min + now)));
16046 static int
16047 irix_6_4_bug ()
16049 /* Based on code from Ariel Faigon. */
16050 struct tm tm;
16051 tm.tm_year = 96;
16052 tm.tm_mon = 3;
16053 tm.tm_mday = 0;
16054 tm.tm_hour = 0;
16055 tm.tm_min = 0;
16056 tm.tm_sec = 0;
16057 tm.tm_isdst = -1;
16058 mktime (&tm);
16059 return tm.tm_mon == 2 && tm.tm_mday == 31;
16062 static int
16063 bigtime_test (int j)
16065 struct tm tm;
16066 time_t now;
16067 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16068 now = mktime (&tm);
16069 if (now != (time_t) -1)
16071 struct tm *lt = localtime (&now);
16072 if (! (lt
16073 && lt->tm_year == tm.tm_year
16074 && lt->tm_mon == tm.tm_mon
16075 && lt->tm_mday == tm.tm_mday
16076 && lt->tm_hour == tm.tm_hour
16077 && lt->tm_min == tm.tm_min
16078 && lt->tm_sec == tm.tm_sec
16079 && lt->tm_yday == tm.tm_yday
16080 && lt->tm_wday == tm.tm_wday
16081 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16082 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16083 return 0;
16085 return 1;
16088 static int
16089 year_2050_test ()
16091 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16092 ignoring leap seconds. */
16093 unsigned long int answer = 2527315200UL;
16095 struct tm tm;
16096 time_t t;
16097 tm.tm_year = 2050 - 1900;
16098 tm.tm_mon = 2 - 1;
16099 tm.tm_mday = 1;
16100 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16101 tm.tm_isdst = -1;
16103 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16104 instead of "TZ=America/Vancouver" in order to detect the bug even
16105 on systems that don't support the Olson extension, or don't have the
16106 full zoneinfo tables installed. */
16107 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16109 t = mktime (&tm);
16111 /* Check that the result is either a failure, or close enough
16112 to the correct answer that we can assume the discrepancy is
16113 due to leap seconds. */
16114 return (t == (time_t) -1
16115 || (0 < t && answer - 120 <= t && t <= answer + 120));
16119 main ()
16121 int result = 0;
16122 time_t t, delta;
16123 int i, j;
16124 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16125 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16127 /* This test makes some buggy mktime implementations loop.
16128 Give up after 60 seconds; a mktime slower than that
16129 isn't worth using anyway. */
16130 alarm (60);
16132 time_t_max = (! time_t_signed
16133 ? (time_t) -1
16134 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16135 * 2 + 1));
16136 time_t_min = (! time_t_signed
16137 ? (time_t) 0
16138 : time_t_signed_magnitude
16139 ? ~ (time_t) 0
16140 : ~ time_t_max);
16142 delta = time_t_max / 997; /* a suitable prime number */
16143 for (i = 0; i < N_STRINGS; i++)
16145 if (tz_strings[i])
16146 putenv (tz_strings[i]);
16148 for (t = 0; t <= time_t_max - delta; t += delta)
16149 if (! mktime_test (t))
16150 result |= 1;
16151 if (! (mktime_test ((time_t) 1)
16152 && mktime_test ((time_t) (60 * 60))
16153 && mktime_test ((time_t) (60 * 60 * 24))))
16154 result |= 2;
16156 for (j = 1; ; j <<= 1)
16157 if (! bigtime_test (j))
16158 result |= 4;
16159 else if (INT_MAX / 2 < j)
16160 break;
16161 if (! bigtime_test (INT_MAX))
16162 result |= 8;
16164 if (! irix_6_4_bug ())
16165 result |= 16;
16166 if (! spring_forward_gap ())
16167 result |= 32;
16168 if (! year_2050_test ())
16169 result |= 64;
16170 return result;
16172 _ACEOF
16173 if ac_fn_c_try_run "$LINENO"; then :
16174 ac_cv_func_working_mktime=yes
16175 else
16176 ac_cv_func_working_mktime=no
16178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16179 conftest.$ac_objext conftest.beam conftest.$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16184 $as_echo "$ac_cv_func_working_mktime" >&6; }
16185 if test $ac_cv_func_working_mktime = no; then
16194 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16198 if test $ac_cv_func_working_mktime = no; then
16199 REPLACE_MKTIME=1
16203 else
16204 REPLACE_MKTIME=0
16210 GNULIB_MKTIME=1
16214 # Code from module multiarch:
16216 # Code from module readlink:
16220 if test $ac_cv_func_readlink = no; then
16221 HAVE_READLINK=0
16230 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16235 else
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16237 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16238 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <unistd.h>
16244 /* Cause compilation failure if original declaration has wrong type. */
16245 ssize_t readlink (const char *, char *, size_t);
16247 main ()
16251 return 0;
16253 _ACEOF
16254 if ac_fn_c_try_compile "$LINENO"; then :
16255 gl_cv_decl_readlink_works=yes
16256 else
16257 gl_cv_decl_readlink_works=no
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16262 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16264 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16265 if test "${gl_cv_func_readlink_works+set}" = set; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268 # We have readlink, so assume ln -s works.
16269 ln -s conftest.no-such conftest.link
16270 ln -s conftest.link conftest.lnk2
16271 if test "$cross_compiling" = yes; then :
16272 gl_cv_func_readlink_works="guessing no"
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #include <unistd.h>
16279 main ()
16281 char buf[20];
16282 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16284 return 0;
16286 _ACEOF
16287 if ac_fn_c_try_run "$LINENO"; then :
16288 gl_cv_func_readlink_works=yes
16289 else
16290 gl_cv_func_readlink_works=no
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16293 conftest.$ac_objext conftest.beam conftest.$ac_ext
16296 rm -f conftest.link conftest.lnk2
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16299 $as_echo "$gl_cv_func_readlink_works" >&6; }
16300 if test "$gl_cv_func_readlink_works" != yes; then
16302 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16304 REPLACE_READLINK=1
16313 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16315 elif test "$gl_cv_decl_readlink_works" != yes; then
16316 REPLACE_READLINK=1
16325 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16333 GNULIB_READLINK=1
16337 # Code from module stat:
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16342 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16343 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if test "$cross_compiling" = yes; then :
16347 case $host_os in
16348 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16349 *) gl_cv_func_stat_dir_slash="guessing yes";;
16350 esac
16351 else
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #include <sys/stat.h>
16357 main ()
16359 struct stat st; return stat (".", &st) != stat ("./", &st);
16361 return 0;
16363 _ACEOF
16364 if ac_fn_c_try_run "$LINENO"; then :
16365 gl_cv_func_stat_dir_slash=yes
16366 else
16367 gl_cv_func_stat_dir_slash=no
16369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16370 conftest.$ac_objext conftest.beam conftest.$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16375 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16377 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16378 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 touch conftest.tmp
16382 # Assume that if we have lstat, we can also check symlinks.
16383 if test $ac_cv_func_lstat = yes; then
16384 ln -s conftest.tmp conftest.lnk
16386 if test "$cross_compiling" = yes; then :
16387 gl_cv_func_stat_file_slash="guessing no"
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <sys/stat.h>
16394 main ()
16396 int result = 0;
16397 struct stat st;
16398 if (!stat ("conftest.tmp/", &st))
16399 result |= 1;
16400 #if HAVE_LSTAT
16401 if (!stat ("conftest.lnk/", &st))
16402 result |= 2;
16403 #endif
16404 return result;
16407 return 0;
16409 _ACEOF
16410 if ac_fn_c_try_run "$LINENO"; then :
16411 gl_cv_func_stat_file_slash=yes
16412 else
16413 gl_cv_func_stat_file_slash=no
16415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16416 conftest.$ac_objext conftest.beam conftest.$ac_ext
16419 rm -f conftest.tmp conftest.lnk
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16422 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16423 case $gl_cv_func_stat_dir_slash in
16424 *no) REPLACE_STAT=1
16426 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16428 esac
16429 case $gl_cv_func_stat_file_slash in
16430 *no) REPLACE_STAT=1
16432 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16434 esac
16435 if test $REPLACE_STAT = 1; then
16444 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16452 GNULIB_STAT=1
16456 # Code from module stdbool:
16460 # Define two additional variables used in the Makefile substitution.
16462 if test "$ac_cv_header_stdbool_h" = yes; then
16463 STDBOOL_H=''
16464 else
16465 STDBOOL_H='stdbool.h'
16469 if test "$ac_cv_type__Bool" = yes; then
16470 HAVE__BOOL=1
16471 else
16472 HAVE__BOOL=0
16476 # Code from module stddef:
16480 if test $gt_cv_c_wchar_t = no; then
16481 HAVE_WCHAR_T=0
16482 STDDEF_H=stddef.h
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16485 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16486 if test "${gl_cv_decl_null_works+set}" = set; then :
16487 $as_echo_n "(cached) " >&6
16488 else
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491 #include <stddef.h>
16492 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16495 main ()
16499 return 0;
16501 _ACEOF
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503 gl_cv_decl_null_works=yes
16504 else
16505 gl_cv_decl_null_works=no
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16510 $as_echo "$gl_cv_decl_null_works" >&6; }
16511 if test $gl_cv_decl_null_works = no; then
16512 REPLACE_NULL=1
16513 STDDEF_H=stddef.h
16515 if test -n "$STDDEF_H"; then
16524 if test $gl_cv_have_include_next = yes; then
16525 gl_cv_next_stddef_h='<'stddef.h'>'
16526 else
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16528 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16529 if test "${gl_cv_next_stddef_h+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 #include <stddef.h>
16537 _ACEOF
16538 case "$host_os" in
16539 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16540 *) gl_absname_cpp="$ac_cpp" ;;
16541 esac
16542 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16543 sed -n '\#/stddef.h#{
16544 s#.*"\(.*/stddef.h\)".*#\1#
16545 s#^/[^/]#//&#
16548 }'`'"'
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16553 $as_echo "$gl_cv_next_stddef_h" >&6; }
16555 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16557 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16559 gl_next_as_first_directive='<'stddef.h'>'
16560 else
16561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16562 gl_next_as_first_directive=$gl_cv_next_stddef_h
16564 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16571 # Code from module stdint:
16575 if test $ac_cv_type_long_long_int = yes; then
16576 HAVE_LONG_LONG_INT=1
16577 else
16578 HAVE_LONG_LONG_INT=0
16582 if test $ac_cv_type_unsigned_long_long_int = yes; then
16583 HAVE_UNSIGNED_LONG_LONG_INT=1
16584 else
16585 HAVE_UNSIGNED_LONG_LONG_INT=0
16590 if test $ac_cv_header_wchar_h = yes; then
16591 HAVE_WCHAR_H=1
16592 else
16593 HAVE_WCHAR_H=0
16597 if test $ac_cv_header_inttypes_h = yes; then
16598 HAVE_INTTYPES_H=1
16599 else
16600 HAVE_INTTYPES_H=0
16604 if test $ac_cv_header_sys_types_h = yes; then
16605 HAVE_SYS_TYPES_H=1
16606 else
16607 HAVE_SYS_TYPES_H=0
16620 if test $gl_cv_have_include_next = yes; then
16621 gl_cv_next_stdint_h='<'stdint.h'>'
16622 else
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16624 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16625 if test "${gl_cv_next_stdint_h+set}" = set; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16629 if test $ac_cv_header_stdint_h = yes; then
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <stdint.h>
16636 _ACEOF
16637 case "$host_os" in
16638 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16639 *) gl_absname_cpp="$ac_cpp" ;;
16640 esac
16641 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16642 sed -n '\#/stdint.h#{
16643 s#.*"\(.*/stdint.h\)".*#\1#
16644 s#^/[^/]#//&#
16647 }'`'"'
16648 else
16649 gl_cv_next_stdint_h='<'stdint.h'>'
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16655 $as_echo "$gl_cv_next_stdint_h" >&6; }
16657 NEXT_STDINT_H=$gl_cv_next_stdint_h
16659 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16661 gl_next_as_first_directive='<'stdint.h'>'
16662 else
16663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16664 gl_next_as_first_directive=$gl_cv_next_stdint_h
16666 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16671 if test $ac_cv_header_stdint_h = yes; then
16672 HAVE_STDINT_H=1
16673 else
16674 HAVE_STDINT_H=0
16678 if test $ac_cv_header_stdint_h = yes; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16680 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16681 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 gl_cv_header_working_stdint_h=no
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16689 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16690 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16691 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16692 #include <stdint.h>
16693 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16694 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16695 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16696 #endif
16699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16700 included before <wchar.h>. */
16701 #include <stddef.h>
16702 #include <signal.h>
16703 #if HAVE_WCHAR_H
16704 # include <stdio.h>
16705 # include <time.h>
16706 # include <wchar.h>
16707 #endif
16710 #ifdef INT8_MAX
16711 int8_t a1 = INT8_MAX;
16712 int8_t a1min = INT8_MIN;
16713 #endif
16714 #ifdef INT16_MAX
16715 int16_t a2 = INT16_MAX;
16716 int16_t a2min = INT16_MIN;
16717 #endif
16718 #ifdef INT32_MAX
16719 int32_t a3 = INT32_MAX;
16720 int32_t a3min = INT32_MIN;
16721 #endif
16722 #ifdef INT64_MAX
16723 int64_t a4 = INT64_MAX;
16724 int64_t a4min = INT64_MIN;
16725 #endif
16726 #ifdef UINT8_MAX
16727 uint8_t b1 = UINT8_MAX;
16728 #else
16729 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16730 #endif
16731 #ifdef UINT16_MAX
16732 uint16_t b2 = UINT16_MAX;
16733 #endif
16734 #ifdef UINT32_MAX
16735 uint32_t b3 = UINT32_MAX;
16736 #endif
16737 #ifdef UINT64_MAX
16738 uint64_t b4 = UINT64_MAX;
16739 #endif
16740 int_least8_t c1 = INT8_C (0x7f);
16741 int_least8_t c1max = INT_LEAST8_MAX;
16742 int_least8_t c1min = INT_LEAST8_MIN;
16743 int_least16_t c2 = INT16_C (0x7fff);
16744 int_least16_t c2max = INT_LEAST16_MAX;
16745 int_least16_t c2min = INT_LEAST16_MIN;
16746 int_least32_t c3 = INT32_C (0x7fffffff);
16747 int_least32_t c3max = INT_LEAST32_MAX;
16748 int_least32_t c3min = INT_LEAST32_MIN;
16749 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16750 int_least64_t c4max = INT_LEAST64_MAX;
16751 int_least64_t c4min = INT_LEAST64_MIN;
16752 uint_least8_t d1 = UINT8_C (0xff);
16753 uint_least8_t d1max = UINT_LEAST8_MAX;
16754 uint_least16_t d2 = UINT16_C (0xffff);
16755 uint_least16_t d2max = UINT_LEAST16_MAX;
16756 uint_least32_t d3 = UINT32_C (0xffffffff);
16757 uint_least32_t d3max = UINT_LEAST32_MAX;
16758 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16759 uint_least64_t d4max = UINT_LEAST64_MAX;
16760 int_fast8_t e1 = INT_FAST8_MAX;
16761 int_fast8_t e1min = INT_FAST8_MIN;
16762 int_fast16_t e2 = INT_FAST16_MAX;
16763 int_fast16_t e2min = INT_FAST16_MIN;
16764 int_fast32_t e3 = INT_FAST32_MAX;
16765 int_fast32_t e3min = INT_FAST32_MIN;
16766 int_fast64_t e4 = INT_FAST64_MAX;
16767 int_fast64_t e4min = INT_FAST64_MIN;
16768 uint_fast8_t f1 = UINT_FAST8_MAX;
16769 uint_fast16_t f2 = UINT_FAST16_MAX;
16770 uint_fast32_t f3 = UINT_FAST32_MAX;
16771 uint_fast64_t f4 = UINT_FAST64_MAX;
16772 #ifdef INTPTR_MAX
16773 intptr_t g = INTPTR_MAX;
16774 intptr_t gmin = INTPTR_MIN;
16775 #endif
16776 #ifdef UINTPTR_MAX
16777 uintptr_t h = UINTPTR_MAX;
16778 #endif
16779 intmax_t i = INTMAX_MAX;
16780 uintmax_t j = UINTMAX_MAX;
16782 #include <limits.h> /* for CHAR_BIT */
16783 #define TYPE_MINIMUM(t) \
16784 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16785 #define TYPE_MAXIMUM(t) \
16786 ((t) ((t) 0 < (t) -1 \
16787 ? (t) -1 \
16788 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16789 struct s {
16790 int check_PTRDIFF:
16791 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16792 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16793 ? 1 : -1;
16794 /* Detect bug in FreeBSD 6.0 / ia64. */
16795 int check_SIG_ATOMIC:
16796 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16797 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16798 ? 1 : -1;
16799 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16800 int check_WCHAR:
16801 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16802 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16803 ? 1 : -1;
16804 /* Detect bug in mingw. */
16805 int check_WINT:
16806 WINT_MIN == TYPE_MINIMUM (wint_t)
16807 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16808 ? 1 : -1;
16810 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16811 int check_UINT8_C:
16812 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16813 int check_UINT16_C:
16814 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16816 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16817 #ifdef UINT8_MAX
16818 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16819 #endif
16820 #ifdef UINT16_MAX
16821 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16822 #endif
16823 #ifdef UINT32_MAX
16824 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16825 #endif
16826 #ifdef UINT64_MAX
16827 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16828 #endif
16829 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16830 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16831 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16832 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16833 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16834 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16835 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16836 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16837 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16838 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16839 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16843 main ()
16847 return 0;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 if test "$cross_compiling" = yes; then :
16852 gl_cv_header_working_stdint_h=yes
16854 else
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16859 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16860 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16861 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16862 #include <stdint.h>
16865 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16866 included before <wchar.h>. */
16867 #include <stddef.h>
16868 #include <signal.h>
16869 #if HAVE_WCHAR_H
16870 # include <stdio.h>
16871 # include <time.h>
16872 # include <wchar.h>
16873 #endif
16876 #include <stdio.h>
16877 #include <string.h>
16878 #define MVAL(macro) MVAL1(macro)
16879 #define MVAL1(expression) #expression
16880 static const char *macro_values[] =
16882 #ifdef INT8_MAX
16883 MVAL (INT8_MAX),
16884 #endif
16885 #ifdef INT16_MAX
16886 MVAL (INT16_MAX),
16887 #endif
16888 #ifdef INT32_MAX
16889 MVAL (INT32_MAX),
16890 #endif
16891 #ifdef INT64_MAX
16892 MVAL (INT64_MAX),
16893 #endif
16894 #ifdef UINT8_MAX
16895 MVAL (UINT8_MAX),
16896 #endif
16897 #ifdef UINT16_MAX
16898 MVAL (UINT16_MAX),
16899 #endif
16900 #ifdef UINT32_MAX
16901 MVAL (UINT32_MAX),
16902 #endif
16903 #ifdef UINT64_MAX
16904 MVAL (UINT64_MAX),
16905 #endif
16906 NULL
16910 main ()
16913 const char **mv;
16914 for (mv = macro_values; *mv != NULL; mv++)
16916 const char *value = *mv;
16917 /* Test whether it looks like a cast expression. */
16918 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16919 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16920 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16921 || strncmp (value, "((int)"/*)*/, 6) == 0
16922 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16923 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16924 return mv - macro_values + 1;
16926 return 0;
16929 return 0;
16931 _ACEOF
16932 if ac_fn_c_try_run "$LINENO"; then :
16933 gl_cv_header_working_stdint_h=yes
16935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16936 conftest.$ac_objext conftest.beam conftest.$ac_ext
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16945 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16947 if test "$gl_cv_header_working_stdint_h" = yes; then
16948 STDINT_H=
16949 else
16950 for ac_header in sys/inttypes.h sys/bitypes.h
16951 do :
16952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16955 cat >>confdefs.h <<_ACEOF
16956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16957 _ACEOF
16961 done
16963 if test $ac_cv_header_sys_inttypes_h = yes; then
16964 HAVE_SYS_INTTYPES_H=1
16965 else
16966 HAVE_SYS_INTTYPES_H=0
16969 if test $ac_cv_header_sys_bitypes_h = yes; then
16970 HAVE_SYS_BITYPES_H=1
16971 else
16972 HAVE_SYS_BITYPES_H=0
16978 if test $APPLE_UNIVERSAL_BUILD = 0; then
16981 for gltype in ptrdiff_t size_t ; do
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16983 $as_echo_n "checking for bit size of $gltype... " >&6; }
16984 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16988 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16989 included before <wchar.h>. */
16990 #include <stddef.h>
16991 #include <signal.h>
16992 #if HAVE_WCHAR_H
16993 # include <stdio.h>
16994 # include <time.h>
16995 # include <wchar.h>
16996 #endif
16998 #include <limits.h>"; then :
17000 else
17001 result=unknown
17004 eval gl_cv_bitsizeof_${gltype}=\$result
17007 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17009 $as_echo "$ac_res" >&6; }
17010 eval result=\$gl_cv_bitsizeof_${gltype}
17011 if test $result = unknown; then
17012 result=0
17014 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17015 cat >>confdefs.h <<_ACEOF
17016 #define BITSIZEOF_${GLTYPE} $result
17017 _ACEOF
17019 eval BITSIZEOF_${GLTYPE}=\$result
17020 done
17026 for gltype in sig_atomic_t wchar_t wint_t ; do
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17028 $as_echo_n "checking for bit size of $gltype... " >&6; }
17029 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17030 $as_echo_n "(cached) " >&6
17031 else
17032 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17033 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17034 included before <wchar.h>. */
17035 #include <stddef.h>
17036 #include <signal.h>
17037 #if HAVE_WCHAR_H
17038 # include <stdio.h>
17039 # include <time.h>
17040 # include <wchar.h>
17041 #endif
17043 #include <limits.h>"; then :
17045 else
17046 result=unknown
17049 eval gl_cv_bitsizeof_${gltype}=\$result
17052 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17054 $as_echo "$ac_res" >&6; }
17055 eval result=\$gl_cv_bitsizeof_${gltype}
17056 if test $result = unknown; then
17057 result=0
17059 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17060 cat >>confdefs.h <<_ACEOF
17061 #define BITSIZEOF_${GLTYPE} $result
17062 _ACEOF
17064 eval BITSIZEOF_${GLTYPE}=\$result
17065 done
17070 for gltype in sig_atomic_t wchar_t wint_t ; do
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17072 $as_echo_n "checking whether $gltype is signed... " >&6; }
17073 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17074 $as_echo_n "(cached) " >&6
17075 else
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17079 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17080 included before <wchar.h>. */
17081 #include <stddef.h>
17082 #include <signal.h>
17083 #if HAVE_WCHAR_H
17084 # include <stdio.h>
17085 # include <time.h>
17086 # include <wchar.h>
17087 #endif
17089 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17091 main ()
17095 return 0;
17097 _ACEOF
17098 if ac_fn_c_try_compile "$LINENO"; then :
17099 result=yes
17100 else
17101 result=no
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 eval gl_cv_type_${gltype}_signed=\$result
17107 eval ac_res=\$gl_cv_type_${gltype}_signed
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17109 $as_echo "$ac_res" >&6; }
17110 eval result=\$gl_cv_type_${gltype}_signed
17111 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17112 if test "$result" = yes; then
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_SIGNED_${GLTYPE} 1
17115 _ACEOF
17117 eval HAVE_SIGNED_${GLTYPE}=1
17118 else
17119 eval HAVE_SIGNED_${GLTYPE}=0
17121 done
17124 gl_cv_type_ptrdiff_t_signed=yes
17125 gl_cv_type_size_t_signed=no
17126 if test $APPLE_UNIVERSAL_BUILD = 0; then
17129 for gltype in ptrdiff_t size_t ; do
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17131 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17132 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17133 $as_echo_n "(cached) " >&6
17134 else
17135 eval gl_cv_type_${gltype}_suffix=no
17136 eval result=\$gl_cv_type_${gltype}_signed
17137 if test "$result" = yes; then
17138 glsufu=
17139 else
17140 glsufu=u
17142 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17143 case $glsuf in
17144 '') gltype1='int';;
17145 l) gltype1='long int';;
17146 ll) gltype1='long long int';;
17147 i64) gltype1='__int64';;
17148 u) gltype1='unsigned int';;
17149 ul) gltype1='unsigned long int';;
17150 ull) gltype1='unsigned long long int';;
17151 ui64)gltype1='unsigned __int64';;
17152 esac
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17156 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17157 included before <wchar.h>. */
17158 #include <stddef.h>
17159 #include <signal.h>
17160 #if HAVE_WCHAR_H
17161 # include <stdio.h>
17162 # include <time.h>
17163 # include <wchar.h>
17164 #endif
17166 extern $gltype foo;
17167 extern $gltype1 foo;
17169 main ()
17173 return 0;
17175 _ACEOF
17176 if ac_fn_c_try_compile "$LINENO"; then :
17177 eval gl_cv_type_${gltype}_suffix=\$glsuf
17179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17180 eval result=\$gl_cv_type_${gltype}_suffix
17181 test "$result" != no && break
17182 done
17184 eval ac_res=\$gl_cv_type_${gltype}_suffix
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17186 $as_echo "$ac_res" >&6; }
17187 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17188 eval result=\$gl_cv_type_${gltype}_suffix
17189 test "$result" = no && result=
17190 eval ${GLTYPE}_SUFFIX=\$result
17191 cat >>confdefs.h <<_ACEOF
17192 #define ${GLTYPE}_SUFFIX $result
17193 _ACEOF
17195 done
17201 for gltype in sig_atomic_t wchar_t wint_t ; do
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17203 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17204 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17205 $as_echo_n "(cached) " >&6
17206 else
17207 eval gl_cv_type_${gltype}_suffix=no
17208 eval result=\$gl_cv_type_${gltype}_signed
17209 if test "$result" = yes; then
17210 glsufu=
17211 else
17212 glsufu=u
17214 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17215 case $glsuf in
17216 '') gltype1='int';;
17217 l) gltype1='long int';;
17218 ll) gltype1='long long int';;
17219 i64) gltype1='__int64';;
17220 u) gltype1='unsigned int';;
17221 ul) gltype1='unsigned long int';;
17222 ull) gltype1='unsigned long long int';;
17223 ui64)gltype1='unsigned __int64';;
17224 esac
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17229 included before <wchar.h>. */
17230 #include <stddef.h>
17231 #include <signal.h>
17232 #if HAVE_WCHAR_H
17233 # include <stdio.h>
17234 # include <time.h>
17235 # include <wchar.h>
17236 #endif
17238 extern $gltype foo;
17239 extern $gltype1 foo;
17241 main ()
17245 return 0;
17247 _ACEOF
17248 if ac_fn_c_try_compile "$LINENO"; then :
17249 eval gl_cv_type_${gltype}_suffix=\$glsuf
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252 eval result=\$gl_cv_type_${gltype}_suffix
17253 test "$result" != no && break
17254 done
17256 eval ac_res=\$gl_cv_type_${gltype}_suffix
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17258 $as_echo "$ac_res" >&6; }
17259 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17260 eval result=\$gl_cv_type_${gltype}_suffix
17261 test "$result" = no && result=
17262 eval ${GLTYPE}_SUFFIX=\$result
17263 cat >>confdefs.h <<_ACEOF
17264 #define ${GLTYPE}_SUFFIX $result
17265 _ACEOF
17267 done
17271 STDINT_H=stdint.h
17275 # Code from module stdlib:
17286 if test $gl_cv_have_include_next = yes; then
17287 gl_cv_next_stdlib_h='<'stdlib.h'>'
17288 else
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17290 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17291 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17292 $as_echo_n "(cached) " >&6
17293 else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 #include <stdlib.h>
17299 _ACEOF
17300 case "$host_os" in
17301 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17302 *) gl_absname_cpp="$ac_cpp" ;;
17303 esac
17304 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17305 sed -n '\#/stdlib.h#{
17306 s#.*"\(.*/stdlib.h\)".*#\1#
17307 s#^/[^/]#//&#
17310 }'`'"'
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17315 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17317 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17321 gl_next_as_first_directive='<'stdlib.h'>'
17322 else
17323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17324 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17326 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17334 # Code from module strftime:
17345 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17348 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17356 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17360 # Code from module symlink:
17364 if test $ac_cv_func_symlink = no; then
17365 HAVE_SYMLINK=0
17374 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17376 else
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17378 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17379 if test "${gl_cv_func_symlink_works+set}" = set; then :
17380 $as_echo_n "(cached) " >&6
17381 else
17382 if test "$cross_compiling" = yes; then :
17383 gl_cv_func_symlink_works="guessing no"
17384 else
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <unistd.h>
17390 main ()
17392 int result = 0;
17393 if (!symlink ("a", "conftest.link/"))
17394 result |= 1;
17395 if (symlink ("conftest.f", "conftest.lnk2"))
17396 result |= 2;
17397 else if (!symlink ("a", "conftest.lnk2/"))
17398 result |= 4;
17399 return result;
17402 return 0;
17404 _ACEOF
17405 if ac_fn_c_try_run "$LINENO"; then :
17406 gl_cv_func_symlink_works=yes
17407 else
17408 gl_cv_func_symlink_works=no
17410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17411 conftest.$ac_objext conftest.beam conftest.$ac_ext
17414 rm -f conftest.f conftest.link conftest.lnk2
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17417 $as_echo "$gl_cv_func_symlink_works" >&6; }
17418 if test "$gl_cv_func_symlink_works" != yes; then
17419 REPLACE_SYMLINK=1
17428 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17436 GNULIB_SYMLINK=1
17440 # Code from module sys_stat:
17457 if test $gl_cv_have_include_next = yes; then
17458 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17459 else
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17461 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17462 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17466 if test $ac_cv_header_sys_stat_h = yes; then
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <sys/stat.h>
17473 _ACEOF
17474 case "$host_os" in
17475 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17476 *) gl_absname_cpp="$ac_cpp" ;;
17477 esac
17478 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17479 sed -n '\#/sys/stat.h#{
17480 s#.*"\(.*/sys/stat.h\)".*#\1#
17481 s#^/[^/]#//&#
17484 }'`'"'
17485 else
17486 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17492 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17494 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17496 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17498 gl_next_as_first_directive='<'sys/stat.h'>'
17499 else
17500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17501 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17503 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17509 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17510 #include <sys/stat.h>
17512 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17514 else
17516 $as_echo "#define nlink_t int" >>confdefs.h
17524 # Code from module time:
17528 # Code from module time_r:
17536 if test $ac_cv_have_decl_localtime_r = no; then
17537 HAVE_DECL_LOCALTIME_R=0
17541 if test $ac_cv_func_localtime_r = yes; then
17542 HAVE_LOCALTIME_R=1
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17544 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17545 if test "${gl_cv_time_r_posix+set}" = set; then :
17546 $as_echo_n "(cached) " >&6
17547 else
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17550 #include <time.h>
17552 main ()
17554 /* We don't need to append 'restrict's to the argument types,
17555 even though the POSIX signature has the 'restrict's,
17556 since C99 says they can't affect type compatibility. */
17557 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17558 if (ptr) return 0;
17559 /* Check the return type is a pointer.
17560 On HP-UX 10 it is 'int'. */
17561 *localtime_r (0, 0);
17563 return 0;
17566 _ACEOF
17567 if ac_fn_c_try_compile "$LINENO"; then :
17568 gl_cv_time_r_posix=yes
17569 else
17570 gl_cv_time_r_posix=no
17572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17576 $as_echo "$gl_cv_time_r_posix" >&6; }
17577 if test $gl_cv_time_r_posix = yes; then
17578 REPLACE_LOCALTIME_R=0
17579 else
17580 REPLACE_LOCALTIME_R=1
17582 else
17583 HAVE_LOCALTIME_R=0
17585 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17594 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17604 GNULIB_TIME_R=1
17608 # Code from module unistd:
17622 if test $gl_cv_have_include_next = yes; then
17623 gl_cv_next_unistd_h='<'unistd.h'>'
17624 else
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17626 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17627 if test "${gl_cv_next_unistd_h+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17631 if test $ac_cv_header_unistd_h = yes; then
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17636 #include <unistd.h>
17638 _ACEOF
17639 case "$host_os" in
17640 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17641 *) gl_absname_cpp="$ac_cpp" ;;
17642 esac
17643 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17644 sed -n '\#/unistd.h#{
17645 s#.*"\(.*/unistd.h\)".*#\1#
17646 s#^/[^/]#//&#
17649 }'`'"'
17650 else
17651 gl_cv_next_unistd_h='<'unistd.h'>'
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17657 $as_echo "$gl_cv_next_unistd_h" >&6; }
17659 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17661 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17663 gl_next_as_first_directive='<'unistd.h'>'
17664 else
17665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17666 gl_next_as_first_directive=$gl_cv_next_unistd_h
17668 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17673 if test $ac_cv_header_unistd_h = yes; then
17674 HAVE_UNISTD_H=1
17675 else
17676 HAVE_UNISTD_H=0
17682 # Code from module warn-on-use:
17683 # End of code from modules
17693 gltests_libdeps=
17694 gltests_ltlibdeps=
17704 gl_source_base='tests'
17705 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
17707 gl_module_indicator_condition=$gltests_WITNESS
17717 LIBGNU_LIBDEPS="$gl_libdeps"
17719 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17723 # UNIX98 PTYs.
17724 for ac_func in grantpt
17725 do :
17726 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17727 if test "x$ac_cv_func_grantpt" = x""yes; then :
17728 cat >>confdefs.h <<_ACEOF
17729 #define HAVE_GRANTPT 1
17730 _ACEOF
17733 done
17736 # PTY-related GNU extensions.
17737 for ac_func in getpt
17738 do :
17739 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
17740 if test "x$ac_cv_func_getpt" = x""yes; then :
17741 cat >>confdefs.h <<_ACEOF
17742 #define HAVE_GETPT 1
17743 _ACEOF
17746 done
17749 # Check this now, so that we will NOT find the above functions in ncurses.
17750 # That is because we have not set up to link ncurses in lib-src.
17751 # It's better to believe a function is not available
17752 # than to expect to find it in ncurses.
17753 # Also we need tputs and friends to be able to build at all.
17754 have_tputs_et_al=true
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17756 $as_echo_n "checking for library containing tputs... " >&6; }
17757 if test "${ac_cv_search_tputs+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 ac_func_search_save_LIBS=$LIBS
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 /* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17767 #ifdef __cplusplus
17768 extern "C"
17769 #endif
17770 char tputs ();
17772 main ()
17774 return tputs ();
17776 return 0;
17778 _ACEOF
17779 for ac_lib in '' ncurses terminfo termcap; do
17780 if test -z "$ac_lib"; then
17781 ac_res="none required"
17782 else
17783 ac_res=-l$ac_lib
17784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 ac_cv_search_tputs=$ac_res
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext
17791 if test "${ac_cv_search_tputs+set}" = set; then :
17792 break
17794 done
17795 if test "${ac_cv_search_tputs+set}" = set; then :
17797 else
17798 ac_cv_search_tputs=no
17800 rm conftest.$ac_ext
17801 LIBS=$ac_func_search_save_LIBS
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17804 $as_echo "$ac_cv_search_tputs" >&6; }
17805 ac_res=$ac_cv_search_tputs
17806 if test "$ac_res" != no; then :
17807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17809 else
17810 have_tputs_et_al=false
17813 if test "$have_tputs_et_al" != true; then
17814 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17815 Maybe some development libraries/packages are missing? Try installing
17816 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17818 # Must define this when any termcap library is found.
17820 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17822 ## FIXME This was the cpp logic, but I am not sure it is right.
17823 ## The above test has not necessarily found libncurses.
17824 HAVE_LIBNCURSES=yes
17826 ## Use terminfo instead of termcap?
17827 ## Note only system files NOT using terminfo are:
17828 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17829 ## darwin|gnu without ncurses.
17830 TERMINFO=no
17831 LIBS_TERMCAP=
17832 case "$opsys" in
17833 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17834 ## hpux10-20: Use the system provided termcap(3) library.
17835 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17836 ## is necessary. Otherwise Emacs dumps core when run -nw.
17837 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17839 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17840 ## The ncurses library has been moved out of the System framework in
17841 ## Mac OS X 10.2. So if configure detects it, set the command-line
17842 ## option to use it.
17843 darwin|gnu*)
17844 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17845 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17846 TERMINFO=yes
17847 LIBS_TERMCAP="-lncurses"
17851 freebsd)
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17853 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17854 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859 #include <osreldate.h>
17861 main ()
17863 #if __FreeBSD_version < 400000
17864 fail;
17865 #endif
17868 return 0;
17870 _ACEOF
17871 if ac_fn_c_try_link "$LINENO"; then :
17872 emacs_cv_freebsd_terminfo=yes
17873 else
17874 emacs_cv_freebsd_terminfo=no
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17882 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17884 if test $emacs_cv_freebsd_terminfo = yes; then
17885 TERMINFO=yes
17886 LIBS_TERMCAP="-lncurses"
17887 else
17888 LIBS_TERMCAP="-ltermcap"
17892 netbsd)
17893 if test $ac_cv_search_tputs = -lterminfo; then
17894 TERMINFO=yes
17895 LIBS_TERMCAP="-lterminfo"
17896 else
17897 LIBS_TERMCAP="-ltermcap"
17901 esac
17903 case "$opsys" in
17904 ## hpux: Make sure we get select from libc rather than from libcurses
17905 ## because libcurses on HPUX 10.10 has a broken version of select.
17906 ## We used to use -lc -lcurses, but this may be cleaner.
17907 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17909 openbsd) LIBS_TERMCAP="-lncurses" ;;
17911 ## Must use system termcap, if we use any termcap. It does special things.
17912 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17913 esac
17915 TERMCAP_OBJ=tparam.o
17916 if test $TERMINFO = yes; then
17918 $as_echo "#define TERMINFO 1" >>confdefs.h
17921 ## Default used to be -ltermcap. Add a case above if need something else.
17922 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17924 TERMCAP_OBJ=terminfo.o
17930 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17931 resolv=no
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 #include <netinet/in.h>
17935 #include <arpa/nameser.h>
17936 #include <resolv.h>
17938 main ()
17940 return res_init();
17942 return 0;
17944 _ACEOF
17945 if ac_fn_c_try_link "$LINENO"; then :
17946 have_res_init=yes
17947 else
17948 have_res_init=no
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 if test "$have_res_init" = no; then
17953 OLIBS="$LIBS"
17954 LIBS="$LIBS -lresolv"
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17956 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959 #include <netinet/in.h>
17960 #include <arpa/nameser.h>
17961 #include <resolv.h>
17963 main ()
17965 return res_init();
17967 return 0;
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"; then :
17971 have_res_init=yes
17972 else
17973 have_res_init=no
17975 rm -f core conftest.err conftest.$ac_objext \
17976 conftest$ac_exeext conftest.$ac_ext
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17978 $as_echo "$have_res_init" >&6; }
17979 if test "$have_res_init" = yes ; then
17980 resolv=yes
17982 LIBS="$OLIBS"
17985 if test "$have_res_init" = yes; then
17987 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17991 # Do we need the Hesiod library to provide the support routines?
17992 LIBHESIOD=
17993 if test "$with_hesiod" != no ; then
17994 # Don't set $LIBS here -- see comments above. FIXME which comments?
17995 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
17996 if test "x$ac_cv_func_res_send" = x""yes; then :
17998 else
17999 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18000 if test "x$ac_cv_func___res_send" = x""yes; then :
18002 else
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18004 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18005 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008 ac_check_lib_save_LIBS=$LIBS
18009 LIBS="-lresolv $LIBS"
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char res_send ();
18021 main ()
18023 return res_send ();
18025 return 0;
18027 _ACEOF
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 ac_cv_lib_resolv_res_send=yes
18030 else
18031 ac_cv_lib_resolv_res_send=no
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18038 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18039 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
18040 resolv=yes
18041 else
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18043 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18044 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18045 $as_echo_n "(cached) " >&6
18046 else
18047 ac_check_lib_save_LIBS=$LIBS
18048 LIBS="-lresolv $LIBS"
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char __res_send ();
18060 main ()
18062 return __res_send ();
18064 return 0;
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 ac_cv_lib_resolv___res_send=yes
18069 else
18070 ac_cv_lib_resolv___res_send=no
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 LIBS=$ac_check_lib_save_LIBS
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18077 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18078 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
18079 resolv=yes
18088 if test "$resolv" = yes ; then
18089 RESOLVLIB=-lresolv
18090 else
18091 RESOLVLIB=
18093 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18094 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
18096 else
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18098 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18099 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18100 $as_echo_n "(cached) " >&6
18101 else
18102 ac_check_lib_save_LIBS=$LIBS
18103 LIBS="-lhesiod $RESOLVLIB $LIBS"
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 char hes_getmailhost ();
18115 main ()
18117 return hes_getmailhost ();
18119 return 0;
18121 _ACEOF
18122 if ac_fn_c_try_link "$LINENO"; then :
18123 ac_cv_lib_hesiod_hes_getmailhost=yes
18124 else
18125 ac_cv_lib_hesiod_hes_getmailhost=no
18127 rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18129 LIBS=$ac_check_lib_save_LIBS
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18132 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18133 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
18134 hesiod=yes
18135 else
18142 if test x"$hesiod" = xyes; then
18144 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18146 LIBHESIOD=-lhesiod
18151 # Do we need libresolv (due to res_init or Hesiod)?
18152 if test "$resolv" = yes ; then
18154 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18156 LIBRESOLV=-lresolv
18157 else
18158 LIBRESOLV=
18162 # These tell us which Kerberos-related libraries to use.
18163 COM_ERRLIB=
18164 CRYPTOLIB=
18165 KRB5LIB=
18166 DESLIB=
18167 KRB4LIB=
18169 if test "${with_kerberos}" != no; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18171 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18172 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 ac_check_lib_save_LIBS=$LIBS
18176 LIBS="-lcom_err $LIBS"
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18180 /* Override any GCC internal prototype to avoid an error.
18181 Use char because int might match the return type of a GCC
18182 builtin and then its argument prototype would still apply. */
18183 #ifdef __cplusplus
18184 extern "C"
18185 #endif
18186 char com_err ();
18188 main ()
18190 return com_err ();
18192 return 0;
18194 _ACEOF
18195 if ac_fn_c_try_link "$LINENO"; then :
18196 ac_cv_lib_com_err_com_err=yes
18197 else
18198 ac_cv_lib_com_err_com_err=no
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18205 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18206 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
18207 have_com_err=yes
18208 else
18209 have_com_err=no
18212 if test $have_com_err = yes; then
18213 COM_ERRLIB=-lcom_err
18214 LIBS="$COM_ERRLIB $LIBS"
18216 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18220 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18221 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-lcrypto $LIBS"
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 char mit_des_cbc_encrypt ();
18237 main ()
18239 return mit_des_cbc_encrypt ();
18241 return 0;
18243 _ACEOF
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18246 else
18247 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18254 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18255 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
18256 have_crypto=yes
18257 else
18258 have_crypto=no
18261 if test $have_crypto = yes; then
18262 CRYPTOLIB=-lcrypto
18263 LIBS="$CRYPTOLIB $LIBS"
18265 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18269 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18270 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lk5crypto $LIBS"
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 char mit_des_cbc_encrypt ();
18286 main ()
18288 return mit_des_cbc_encrypt ();
18290 return 0;
18292 _ACEOF
18293 if ac_fn_c_try_link "$LINENO"; then :
18294 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18295 else
18296 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18298 rm -f core conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18300 LIBS=$ac_check_lib_save_LIBS
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18303 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18304 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
18305 have_k5crypto=yes
18306 else
18307 have_k5crypto=no
18310 if test $have_k5crypto = yes; then
18311 CRYPTOLIB=-lk5crypto
18312 LIBS="$CRYPTOLIB $LIBS"
18314 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18318 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18319 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18320 $as_echo_n "(cached) " >&6
18321 else
18322 ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-lkrb5 $LIBS"
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char krb5_init_context ();
18335 main ()
18337 return krb5_init_context ();
18339 return 0;
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"; then :
18343 ac_cv_lib_krb5_krb5_init_context=yes
18344 else
18345 ac_cv_lib_krb5_krb5_init_context=no
18347 rm -f core conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18352 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18353 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
18354 have_krb5=yes
18355 else
18356 have_krb5=no
18359 if test $have_krb5=yes; then
18360 KRB5LIB=-lkrb5
18361 LIBS="$KRB5LIB $LIBS"
18363 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18366 if test "${with_kerberos5}" = no; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18368 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18369 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18370 $as_echo_n "(cached) " >&6
18371 else
18372 ac_check_lib_save_LIBS=$LIBS
18373 LIBS="-ldes425 $LIBS"
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char des_cbc_encrypt ();
18385 main ()
18387 return des_cbc_encrypt ();
18389 return 0;
18391 _ACEOF
18392 if ac_fn_c_try_link "$LINENO"; then :
18393 ac_cv_lib_des425_des_cbc_encrypt=yes
18394 else
18395 ac_cv_lib_des425_des_cbc_encrypt=no
18397 rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18402 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18403 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
18404 have_des425=yes
18405 else
18406 have_des425=no
18409 if test $have_des425 = yes; then
18410 DESLIB=-ldes425
18411 LIBS="$DESLIB $LIBS"
18413 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18415 else
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18417 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18418 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18419 $as_echo_n "(cached) " >&6
18420 else
18421 ac_check_lib_save_LIBS=$LIBS
18422 LIBS="-ldes $LIBS"
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18429 #ifdef __cplusplus
18430 extern "C"
18431 #endif
18432 char des_cbc_encrypt ();
18434 main ()
18436 return des_cbc_encrypt ();
18438 return 0;
18440 _ACEOF
18441 if ac_fn_c_try_link "$LINENO"; then :
18442 ac_cv_lib_des_des_cbc_encrypt=yes
18443 else
18444 ac_cv_lib_des_des_cbc_encrypt=no
18446 rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448 LIBS=$ac_check_lib_save_LIBS
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18451 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18452 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
18453 have_des=yes
18454 else
18455 have_des=no
18458 if test $have_des = yes; then
18459 DESLIB=-ldes
18460 LIBS="$DESLIB $LIBS"
18462 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18467 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18468 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 ac_check_lib_save_LIBS=$LIBS
18472 LIBS="-lkrb4 $LIBS"
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 char krb_get_cred ();
18484 main ()
18486 return krb_get_cred ();
18488 return 0;
18490 _ACEOF
18491 if ac_fn_c_try_link "$LINENO"; then :
18492 ac_cv_lib_krb4_krb_get_cred=yes
18493 else
18494 ac_cv_lib_krb4_krb_get_cred=no
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18501 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18502 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
18503 have_krb4=yes
18504 else
18505 have_krb4=no
18508 if test $have_krb4 = yes; then
18509 KRB4LIB=-lkrb4
18510 LIBS="$KRB4LIB $LIBS"
18512 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18514 else
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18516 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18517 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18518 $as_echo_n "(cached) " >&6
18519 else
18520 ac_check_lib_save_LIBS=$LIBS
18521 LIBS="-lkrb $LIBS"
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 char krb_get_cred ();
18533 main ()
18535 return krb_get_cred ();
18537 return 0;
18539 _ACEOF
18540 if ac_fn_c_try_link "$LINENO"; then :
18541 ac_cv_lib_krb_krb_get_cred=yes
18542 else
18543 ac_cv_lib_krb_krb_get_cred=no
18545 rm -f core conftest.err conftest.$ac_objext \
18546 conftest$ac_exeext conftest.$ac_ext
18547 LIBS=$ac_check_lib_save_LIBS
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18550 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18551 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18552 have_krb=yes
18553 else
18554 have_krb=no
18557 if test $have_krb = yes; then
18558 KRB4LIB=-lkrb
18559 LIBS="$KRB4LIB $LIBS"
18561 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18567 if test "${with_kerberos5}" != no; then
18568 for ac_header in krb5.h
18569 do :
18570 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18571 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18572 cat >>confdefs.h <<_ACEOF
18573 #define HAVE_KRB5_H 1
18574 _ACEOF
18575 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18577 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18579 cat >>confdefs.h <<_ACEOF
18580 #define HAVE_KRB5_ERROR_TEXT 1
18581 _ACEOF
18585 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18587 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18589 cat >>confdefs.h <<_ACEOF
18590 #define HAVE_KRB5_ERROR_E_TEXT 1
18591 _ACEOF
18598 done
18600 else
18601 for ac_header in des.h
18602 do :
18603 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18604 if test "x$ac_cv_header_des_h" = x""yes; then :
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_DES_H 1
18607 _ACEOF
18609 else
18610 for ac_header in kerberosIV/des.h
18611 do :
18612 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18613 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_KERBEROSIV_DES_H 1
18616 _ACEOF
18618 else
18619 for ac_header in kerberos/des.h
18620 do :
18621 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18622 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18623 cat >>confdefs.h <<_ACEOF
18624 #define HAVE_KERBEROS_DES_H 1
18625 _ACEOF
18629 done
18633 done
18637 done
18639 for ac_header in krb.h
18640 do :
18641 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18642 if test "x$ac_cv_header_krb_h" = x""yes; then :
18643 cat >>confdefs.h <<_ACEOF
18644 #define HAVE_KRB_H 1
18645 _ACEOF
18647 else
18648 for ac_header in kerberosIV/krb.h
18649 do :
18650 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18651 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_KERBEROSIV_KRB_H 1
18654 _ACEOF
18656 else
18657 for ac_header in kerberos/krb.h
18658 do :
18659 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18660 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
18661 cat >>confdefs.h <<_ACEOF
18662 #define HAVE_KERBEROS_KRB_H 1
18663 _ACEOF
18667 done
18671 done
18675 done
18678 for ac_header in com_err.h
18679 do :
18680 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18681 if test "x$ac_cv_header_com_err_h" = x""yes; then :
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_COM_ERR_H 1
18684 _ACEOF
18688 done
18698 # Solaris requires -lintl if you want strerror (which calls dgettext)
18699 # to return localized messages.
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18701 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18702 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lintl $LIBS"
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char dgettext ();
18718 main ()
18720 return dgettext ();
18722 return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 ac_cv_lib_intl_dgettext=yes
18727 else
18728 ac_cv_lib_intl_dgettext=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18735 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18736 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
18737 cat >>confdefs.h <<_ACEOF
18738 #define HAVE_LIBINTL 1
18739 _ACEOF
18741 LIBS="-lintl $LIBS"
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18747 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18748 if test "${emacs_cv_localtime_cache+set}" = set; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18751 if test x$ac_cv_func_tzset = xyes; then
18752 if test "$cross_compiling" = yes; then :
18753 # If we have tzset, assume the worst when cross-compiling.
18754 emacs_cv_localtime_cache=yes
18755 else
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #include <time.h>
18759 char TZ_GMT0[] = "TZ=GMT0";
18760 char TZ_PST8[] = "TZ=PST8";
18761 main()
18763 time_t now = time ((time_t *) 0);
18764 int hour_GMT0, hour_unset;
18765 if (putenv (TZ_GMT0) != 0)
18766 exit (1);
18767 hour_GMT0 = localtime (&now)->tm_hour;
18768 unsetenv("TZ");
18769 hour_unset = localtime (&now)->tm_hour;
18770 if (putenv (TZ_PST8) != 0)
18771 exit (1);
18772 if (localtime (&now)->tm_hour == hour_GMT0)
18773 exit (1);
18774 unsetenv("TZ");
18775 if (localtime (&now)->tm_hour != hour_unset)
18776 exit (1);
18777 exit (0);
18779 _ACEOF
18780 if ac_fn_c_try_run "$LINENO"; then :
18781 emacs_cv_localtime_cache=no
18782 else
18783 emacs_cv_localtime_cache=yes
18785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18786 conftest.$ac_objext conftest.beam conftest.$ac_ext
18789 else
18790 # If we lack tzset, report that localtime does not cache TZ,
18791 # since we can't invalidate the cache if we don't have tzset.
18792 emacs_cv_localtime_cache=no
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18796 $as_echo "$emacs_cv_localtime_cache" >&6; }
18797 if test $emacs_cv_localtime_cache = yes; then
18799 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18803 if test "x$HAVE_TIMEVAL" = xyes; then
18804 for ac_func in gettimeofday
18805 do :
18806 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18807 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18808 cat >>confdefs.h <<_ACEOF
18809 #define HAVE_GETTIMEOFDAY 1
18810 _ACEOF
18813 done
18815 if test $ac_cv_func_gettimeofday = yes; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18817 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18818 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
18819 $as_echo_n "(cached) " >&6
18820 else
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 #ifdef TIME_WITH_SYS_TIME
18825 #include <sys/time.h>
18826 #include <time.h>
18827 #else
18828 #ifdef HAVE_SYS_TIME_H
18829 #include <sys/time.h>
18830 #else
18831 #include <time.h>
18832 #endif
18833 #endif
18835 main ()
18837 struct timeval time;
18838 gettimeofday (&time, 0);
18840 return 0;
18842 _ACEOF
18843 if ac_fn_c_try_compile "$LINENO"; then :
18844 emacs_cv_gettimeofday_two_arguments=yes
18845 else
18846 emacs_cv_gettimeofday_two_arguments=no
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18851 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18852 if test $emacs_cv_gettimeofday_two_arguments = no; then
18854 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18860 ok_so_far=yes
18861 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18862 if test "x$ac_cv_func_socket" = x""yes; then :
18864 else
18865 ok_so_far=no
18868 if test $ok_so_far = yes; then
18869 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18870 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
18872 else
18873 ok_so_far=no
18878 if test $ok_so_far = yes; then
18879 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18880 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
18882 else
18883 ok_so_far=no
18888 if test $ok_so_far = yes; then
18890 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18894 if test -f /usr/lpp/X11/bin/smt.exp; then
18896 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18901 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18902 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18904 $as_echo "yes" >&6; }
18906 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18908 else
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 $as_echo "no" >&6; }
18913 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18914 if test "x$ac_cv_type_pid_t" = x""yes; then :
18916 else
18918 cat >>confdefs.h <<_ACEOF
18919 #define pid_t int
18920 _ACEOF
18924 for ac_header in vfork.h
18925 do :
18926 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18927 if test "x$ac_cv_header_vfork_h" = x""yes; then :
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_VFORK_H 1
18930 _ACEOF
18934 done
18936 for ac_func in fork vfork
18937 do :
18938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18941 cat >>confdefs.h <<_ACEOF
18942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18943 _ACEOF
18946 done
18948 if test "x$ac_cv_func_fork" = xyes; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18950 $as_echo_n "checking for working fork... " >&6; }
18951 if test "${ac_cv_func_fork_works+set}" = set; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 if test "$cross_compiling" = yes; then :
18955 ac_cv_func_fork_works=cross
18956 else
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 $ac_includes_default
18961 main ()
18964 /* By Ruediger Kuhlmann. */
18965 return fork () < 0;
18968 return 0;
18970 _ACEOF
18971 if ac_fn_c_try_run "$LINENO"; then :
18972 ac_cv_func_fork_works=yes
18973 else
18974 ac_cv_func_fork_works=no
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977 conftest.$ac_objext conftest.beam conftest.$ac_ext
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18982 $as_echo "$ac_cv_func_fork_works" >&6; }
18984 else
18985 ac_cv_func_fork_works=$ac_cv_func_fork
18987 if test "x$ac_cv_func_fork_works" = xcross; then
18988 case $host in
18989 *-*-amigaos* | *-*-msdosdjgpp*)
18990 # Override, as these systems have only a dummy fork() stub
18991 ac_cv_func_fork_works=no
18994 ac_cv_func_fork_works=yes
18996 esac
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18998 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19000 ac_cv_func_vfork_works=$ac_cv_func_vfork
19001 if test "x$ac_cv_func_vfork" = xyes; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19003 $as_echo_n "checking for working vfork... " >&6; }
19004 if test "${ac_cv_func_vfork_works+set}" = set; then :
19005 $as_echo_n "(cached) " >&6
19006 else
19007 if test "$cross_compiling" = yes; then :
19008 ac_cv_func_vfork_works=cross
19009 else
19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012 /* Thanks to Paul Eggert for this test. */
19013 $ac_includes_default
19014 #include <sys/wait.h>
19015 #ifdef HAVE_VFORK_H
19016 # include <vfork.h>
19017 #endif
19018 /* On some sparc systems, changes by the child to local and incoming
19019 argument registers are propagated back to the parent. The compiler
19020 is told about this with #include <vfork.h>, but some compilers
19021 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19022 static variable whose address is put into a register that is
19023 clobbered by the vfork. */
19024 static void
19025 #ifdef __cplusplus
19026 sparc_address_test (int arg)
19027 # else
19028 sparc_address_test (arg) int arg;
19029 #endif
19031 static pid_t child;
19032 if (!child) {
19033 child = vfork ();
19034 if (child < 0) {
19035 perror ("vfork");
19036 _exit(2);
19038 if (!child) {
19039 arg = getpid();
19040 write(-1, "", 0);
19041 _exit (arg);
19047 main ()
19049 pid_t parent = getpid ();
19050 pid_t child;
19052 sparc_address_test (0);
19054 child = vfork ();
19056 if (child == 0) {
19057 /* Here is another test for sparc vfork register problems. This
19058 test uses lots of local variables, at least as many local
19059 variables as main has allocated so far including compiler
19060 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19061 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19062 reuse the register of parent for one of the local variables,
19063 since it will think that parent can't possibly be used any more
19064 in this routine. Assigning to the local variable will thus
19065 munge parent in the parent process. */
19066 pid_t
19067 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19068 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19069 /* Convince the compiler that p..p7 are live; otherwise, it might
19070 use the same hardware register for all 8 local variables. */
19071 if (p != p1 || p != p2 || p != p3 || p != p4
19072 || p != p5 || p != p6 || p != p7)
19073 _exit(1);
19075 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19076 from child file descriptors. If the child closes a descriptor
19077 before it execs or exits, this munges the parent's descriptor
19078 as well. Test for this by closing stdout in the child. */
19079 _exit(close(fileno(stdout)) != 0);
19080 } else {
19081 int status;
19082 struct stat st;
19084 while (wait(&status) != child)
19086 return (
19087 /* Was there some problem with vforking? */
19088 child < 0
19090 /* Did the child fail? (This shouldn't happen.) */
19091 || status
19093 /* Did the vfork/compiler bug occur? */
19094 || parent != getpid()
19096 /* Did the file descriptor bug occur? */
19097 || fstat(fileno(stdout), &st) != 0
19101 _ACEOF
19102 if ac_fn_c_try_run "$LINENO"; then :
19103 ac_cv_func_vfork_works=yes
19104 else
19105 ac_cv_func_vfork_works=no
19107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19108 conftest.$ac_objext conftest.beam conftest.$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19113 $as_echo "$ac_cv_func_vfork_works" >&6; }
19116 if test "x$ac_cv_func_fork_works" = xcross; then
19117 ac_cv_func_vfork_works=$ac_cv_func_vfork
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19119 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19122 if test "x$ac_cv_func_vfork_works" = xyes; then
19124 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19126 else
19128 $as_echo "#define vfork fork" >>confdefs.h
19131 if test "x$ac_cv_func_fork_works" = xyes; then
19133 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19139 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19140 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19141 $as_echo_n "(cached) " >&6
19142 else
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19145 #include <langinfo.h>
19147 main ()
19149 char* cs = nl_langinfo(CODESET);
19151 return 0;
19153 _ACEOF
19154 if ac_fn_c_try_link "$LINENO"; then :
19155 emacs_cv_langinfo_codeset=yes
19156 else
19157 emacs_cv_langinfo_codeset=no
19159 rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19164 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19165 if test $emacs_cv_langinfo_codeset = yes; then
19167 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19171 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19172 if test "x$ac_cv_type_size_t" = x""yes; then :
19174 cat >>confdefs.h <<_ACEOF
19175 #define HAVE_SIZE_T 1
19176 _ACEOF
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19183 $as_echo_n "checking for mbstate_t... " >&6; }
19184 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19185 $as_echo_n "(cached) " >&6
19186 else
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19189 $ac_includes_default
19190 # include <wchar.h>
19192 main ()
19194 mbstate_t x; return sizeof x;
19196 return 0;
19198 _ACEOF
19199 if ac_fn_c_try_compile "$LINENO"; then :
19200 ac_cv_type_mbstate_t=yes
19201 else
19202 ac_cv_type_mbstate_t=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19207 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19208 if test $ac_cv_type_mbstate_t = yes; then
19210 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19212 else
19214 $as_echo "#define mbstate_t int" >>confdefs.h
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19219 $as_echo_n "checking for C restricted array declarations... " >&6; }
19220 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19221 $as_echo_n "(cached) " >&6
19222 else
19223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224 /* end confdefs.h. */
19225 void fred (int x[__restrict]);
19227 main ()
19231 return 0;
19233 _ACEOF
19234 if ac_fn_c_try_compile "$LINENO"; then :
19235 emacs_cv_c_restrict_arr=yes
19236 else
19237 emacs_cv_c_restrict_arr=no
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19242 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19243 if test "$emacs_cv_c_restrict_arr" = yes; then
19245 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19251 # Set up the CFLAGS for real compilation, so we can substitute it.
19252 CFLAGS="$REAL_CFLAGS"
19253 CPPFLAGS="$REAL_CPPFLAGS"
19255 ## Hack to detect a buggy GCC version.
19256 if test "x$GCC" = xyes \
19257 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19258 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19259 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19260 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19263 version=$PACKAGE_VERSION
19265 ### Specify what sort of things we'll be editing into Makefile and config.h.
19266 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19269 ## Unused?
19290 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19291 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19292 ## end of LIBX_BASE, but nothing ever set it.
19297 ## Used in lwlib/Makefile.in.
19299 if test -n "${machfile}"; then
19300 M_FILE="\$(srcdir)/${machfile}"
19301 else
19302 M_FILE=
19304 S_FILE="\$(srcdir)/${opsysfile}"
19315 cat >>confdefs.h <<_ACEOF
19316 #define EMACS_CONFIGURATION "${canonical}"
19317 _ACEOF
19320 cat >>confdefs.h <<_ACEOF
19321 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19322 _ACEOF
19324 if test -n "$machfile"; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define config_machfile "${machfile}"
19328 _ACEOF
19332 cat >>confdefs.h <<_ACEOF
19333 #define config_opsysfile "${opsysfile}"
19334 _ACEOF
19337 XMENU_OBJ=
19338 XOBJ=
19339 FONT_OBJ=
19340 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19342 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19344 XMENU_OBJ=xmenu.o
19345 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19346 FONT_OBJ=xfont.o
19347 if test "$HAVE_XFT" = "yes"; then
19348 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19349 elif test "$HAVE_FREETYPE" = "yes"; then
19350 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19358 WIDGET_OBJ=
19359 MOTIF_LIBW=
19360 if test "${USE_X_TOOLKIT}" != "none" ; then
19361 WIDGET_OBJ=widget.o
19363 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19365 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19367 $as_echo "#define USE_LUCID 1" >>confdefs.h
19369 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19371 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19373 MOTIF_LIBW=-lXm
19374 case "$opsys" in
19375 gnu-linux)
19376 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19377 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19380 unixware)
19381 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19382 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19383 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19386 aix4-2)
19387 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19388 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19390 esac
19391 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19396 TOOLKIT_LIBW=
19397 case "$USE_X_TOOLKIT" in
19398 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19399 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19400 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19401 esac
19404 if test "$USE_X_TOOLKIT" = "none"; then
19405 LIBXT_OTHER="\$(LIBXSM)"
19406 OLDXMENU_TARGET="really-oldXMenu"
19407 else
19408 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19409 OLDXMENU_TARGET="really-lwlib"
19413 ## The X Menu stuff is present in the X10 distribution, but missing
19414 ## from X11. If we have X10, just use the installed library;
19415 ## otherwise, use our own copy.
19416 if test "${HAVE_X11}" = "yes" ; then
19418 $as_echo "#define HAVE_X11 1" >>confdefs.h
19421 if test "$USE_X_TOOLKIT" = "none"; then
19422 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19423 else
19424 OLDXMENU="\${lwlibdir}/liblw.a"
19426 LIBXMENU="\$(OLDXMENU)"
19427 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19428 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19429 else
19430 ## For a syntactically valid Makefile; not actually used for anything.
19431 ## See comments in src/Makefile.in.
19432 OLDXMENU=nothing
19433 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19434 if test "${HAVE_X_WINDOWS}" = "yes"; then
19435 LIBXMENU="-lXMenu"
19436 else
19437 LIBXMENU=
19439 LIBX_OTHER=
19440 OLDXMENU_DEPS=
19443 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19444 OLDXMENU_TARGET=
19445 OLDXMENU=nothing
19446 LIBXMENU=
19447 OLDXMENU_DEPS=
19456 if test "${HAVE_MENUS}" = "yes" ; then
19458 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19462 if test "${GNU_MALLOC}" = "yes" ; then
19464 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19468 RALLOC_OBJ=
19469 if test "${REL_ALLOC}" = "yes" ; then
19471 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19474 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19478 if test "$opsys" = "cygwin"; then
19479 CYGWIN_OBJ="sheap.o"
19480 ## Cygwin differs because of its unexec().
19481 PRE_ALLOC_OBJ=
19482 POST_ALLOC_OBJ=lastfile.o
19483 else
19484 CYGWIN_OBJ=
19485 PRE_ALLOC_OBJ=lastfile.o
19486 POST_ALLOC_OBJ=
19493 case "$opsys" in
19494 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19496 darwin)
19497 ## The -headerpad option tells ld (see man page) to leave room at the
19498 ## end of the header for adding load commands. Needed for dumping.
19499 ## 0x690 is the total size of 30 segment load commands (at 56
19500 ## each); under Cocoa 31 commands are required.
19501 if test "$HAVE_NS" = "yes"; then
19502 libs_nsgui="-framework AppKit"
19503 headerpad_extra=6C8
19504 else
19505 libs_nsgui=
19506 headerpad_extra=690
19508 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19510 ## This is here because src/Makefile.in did some extra fiddling around
19511 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19512 ## #ifndef LD_SWITCH_SYSTEM
19513 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19514 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19515 ## not using gcc, darwin system not on an alpha (ie darwin, since
19516 ## darwin + alpha does not occur).
19517 ## Because this was done in src/Makefile.in, the resulting part of
19518 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19519 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19520 ## rather than LD_SWITCH_SYSTEM.
19521 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19522 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19525 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19526 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19527 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19528 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19529 ## had different values in configure (in ac_link) and src/Makefile.in.
19530 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19531 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19533 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19534 esac
19536 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19537 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19543 LD_FIRSTFLAG=
19544 ORDINARY_LINK=
19545 case "$opsys" in
19546 ## gnu: GNU needs its own crt0.
19547 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19549 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19550 ## library search parth, i.e. it won't search /usr/lib for libc and
19551 ## friends. Using -nostartfiles instead avoids this problem, and
19552 ## will also work on earlier NetBSD releases.
19553 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19555 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19556 ## MkLinux/LinuxPPC needs this.
19557 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19558 gnu-*)
19559 case "$machine" in
19560 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19561 esac
19563 esac
19566 if test "x$ORDINARY_LINK" = "xyes"; then
19568 LD_FIRSTFLAG=""
19570 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19573 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19574 ## freebsd, gnu-* not on macppc|ibms390x.
19575 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19577 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19578 ## places that are difficult to figure out at make time. Fortunately,
19579 ## these same versions allow you to pass arbitrary flags on to the
19580 ## linker, so there is no reason not to use it as a linker.
19582 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19583 ## searching for libraries in its internal directories, so we have to
19584 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19585 LD_FIRSTFLAG="-nostdlib"
19588 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19589 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19594 ## FIXME? The logic here is not precisely the same as that above.
19595 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19596 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19597 LIB_GCC=
19598 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19600 case "$opsys" in
19601 freebsd|netbsd|openbsd) LIB_GCC= ;;
19603 gnu-*)
19604 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19605 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19606 case $host_cpu in
19607 arm*)
19608 LIB_GCC="-lgcc_s"
19611 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19612 ## immediately undefine it again and redefine it to empty.
19613 ## Was the C_SWITCH_X_SITE part really necessary?
19614 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19615 LIB_GCC=
19617 esac
19620 ## Ask GCC where to find libgcc.a.
19621 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19622 esac
19626 TOOLTIP_SUPPORT=
19627 WINDOW_SUPPORT=
19628 ## If we're using X11/GNUstep, define some consequences.
19629 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19631 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19634 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19636 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19637 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19639 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19640 test "$HAVE_X_WINDOWS" = "yes" && \
19641 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19651 #### Report on what we decided to do.
19652 #### Report GTK as a toolkit, even if it doesn't use Xt.
19653 #### It makes printing result more understandable as using GTK sets
19654 #### toolkit_scroll_bars to yes by default.
19655 if test "${HAVE_GTK}" = "yes"; then
19656 USE_X_TOOLKIT=GTK
19659 and_machfile=
19660 if test -n "$machfile"; then
19661 and_machfile=" and \`${machfile}'"
19664 echo "
19665 Configured for \`${canonical}'.
19667 Where should the build process find the source code? ${srcdir}
19668 What operating system and machine description files should Emacs use?
19669 \`${opsysfile}'${and_machfile}
19670 What compiler should emacs be built with? ${CC} ${CFLAGS}
19671 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19672 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19673 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19674 What window system should Emacs use? ${window_system}
19675 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19677 if test -n "${x_includes}"; then
19678 echo " Where do we find X Windows header files? ${x_includes}"
19679 else
19680 echo " Where do we find X Windows header files? Standard dirs"
19682 if test -n "${x_libraries}"; then
19683 echo " Where do we find X Windows libraries? ${x_libraries}"
19684 else
19685 echo " Where do we find X Windows libraries? Standard dirs"
19688 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19689 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19690 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19691 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19692 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19693 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19694 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19695 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19697 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19698 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19699 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19700 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19701 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19702 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19704 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19705 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19706 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19707 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19709 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19710 echo
19712 if test $USE_XASSERTS = yes; then
19713 echo " Compiling with asserts turned on."
19714 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19717 echo
19719 if test "$HAVE_NS" = "yes"; then
19720 echo
19721 echo "You must run \"make install\" in order to test the built application.
19722 The installed application will go to nextstep/Emacs.app and can be
19723 run or moved from there."
19724 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19725 echo "The application will be fully self-contained."
19726 else
19727 echo "The lisp resources for the application will be installed under ${prefix}.
19728 You may need to run \"make install\" with sudo. The application will fail
19729 to run if these resources are not installed."
19731 echo
19735 # Remove any trailing slashes in these variables.
19736 test "${prefix}" != NONE &&
19737 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19738 test "${exec_prefix}" != NONE &&
19739 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19741 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 test/automated/Makefile"
19744 ac_config_commands="$ac_config_commands mkdirs"
19747 ac_config_commands="$ac_config_commands epaths"
19750 ac_config_commands="$ac_config_commands gdbinit"
19753 cat >confcache <<\_ACEOF
19754 # This file is a shell script that caches the results of configure
19755 # tests run on this system so they can be shared between configure
19756 # scripts and configure runs, see configure's option --config-cache.
19757 # It is not useful on other systems. If it contains results you don't
19758 # want to keep, you may remove or edit it.
19760 # config.status only pays attention to the cache file if you give it
19761 # the --recheck option to rerun configure.
19763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19765 # following values.
19767 _ACEOF
19769 # The following way of writing the cache mishandles newlines in values,
19770 # but we know of no workaround that is simple, portable, and efficient.
19771 # So, we kill variables containing newlines.
19772 # Ultrix sh set writes to stderr and can't be redirected directly,
19773 # and sets the high bit in the cache file unless we assign to the vars.
19775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19776 eval ac_val=\$$ac_var
19777 case $ac_val in #(
19778 *${as_nl}*)
19779 case $ac_var in #(
19780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19782 esac
19783 case $ac_var in #(
19784 _ | IFS | as_nl) ;; #(
19785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19786 *) { eval $ac_var=; unset $ac_var;} ;;
19787 esac ;;
19788 esac
19789 done
19791 (set) 2>&1 |
19792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19793 *${as_nl}ac_space=\ *)
19794 # `set' does not quote correctly, so add quotes: double-quote
19795 # substitution turns \\\\ into \\, and sed turns \\ into \.
19796 sed -n \
19797 "s/'/'\\\\''/g;
19798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19799 ;; #(
19801 # `set' quotes correctly as required by POSIX, so do not add quotes.
19802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19804 esac |
19805 sort
19807 sed '
19808 /^ac_cv_env_/b end
19809 t clear
19810 :clear
19811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19812 t end
19813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19814 :end' >>confcache
19815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19816 if test -w "$cache_file"; then
19817 test "x$cache_file" != "x/dev/null" &&
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19819 $as_echo "$as_me: updating cache $cache_file" >&6;}
19820 cat confcache >$cache_file
19821 else
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19826 rm -f confcache
19828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19829 # Let make expand exec_prefix.
19830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19832 DEFS=-DHAVE_CONFIG_H
19834 ac_libobjs=
19835 ac_ltlibobjs=
19837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19838 # 1. Remove the extension, and $U if already installed.
19839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19842 # will be set to the directory where LIBOBJS objects are built.
19843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19845 done
19846 LIBOBJS=$ac_libobjs
19848 LTLIBOBJS=$ac_ltlibobjs
19851 if test -n "$EXEEXT"; then
19852 am__EXEEXT_TRUE=
19853 am__EXEEXT_FALSE='#'
19854 else
19855 am__EXEEXT_TRUE='#'
19856 am__EXEEXT_FALSE=
19859 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19860 as_fn_error $? "conditional \"AMDEP\" was never defined.
19861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19864 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19869 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19874 gl_libobjs=
19875 gl_ltlibobjs=
19876 if test -n "$gl_LIBOBJS"; then
19877 # Remove the extension.
19878 sed_drop_objext='s/\.o$//;s/\.obj$//'
19879 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19880 gl_libobjs="$gl_libobjs $i.$ac_objext"
19881 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19882 done
19884 gl_LIBOBJS=$gl_libobjs
19886 gl_LTLIBOBJS=$gl_ltlibobjs
19890 gltests_libobjs=
19891 gltests_ltlibobjs=
19892 if test -n "$gltests_LIBOBJS"; then
19893 # Remove the extension.
19894 sed_drop_objext='s/\.o$//;s/\.obj$//'
19895 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19896 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19897 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19898 done
19900 gltests_LIBOBJS=$gltests_libobjs
19902 gltests_LTLIBOBJS=$gltests_ltlibobjs
19906 : ${CONFIG_STATUS=./config.status}
19907 ac_write_fail=0
19908 ac_clean_files_save=$ac_clean_files
19909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19912 as_write_fail=0
19913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19914 #! $SHELL
19915 # Generated by $as_me.
19916 # Run this file to recreate the current configuration.
19917 # Compiler output produced by configure, useful for debugging
19918 # configure, is in config.log if it exists.
19920 debug=false
19921 ac_cs_recheck=false
19922 ac_cs_silent=false
19924 SHELL=\${CONFIG_SHELL-$SHELL}
19925 export SHELL
19926 _ASEOF
19927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19928 ## -------------------- ##
19929 ## M4sh Initialization. ##
19930 ## -------------------- ##
19932 # Be more Bourne compatible
19933 DUALCASE=1; export DUALCASE # for MKS sh
19934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19935 emulate sh
19936 NULLCMD=:
19937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19938 # is contrary to our usage. Disable this feature.
19939 alias -g '${1+"$@"}'='"$@"'
19940 setopt NO_GLOB_SUBST
19941 else
19942 case `(set -o) 2>/dev/null` in #(
19943 *posix*) :
19944 set -o posix ;; #(
19945 *) :
19947 esac
19951 as_nl='
19953 export as_nl
19954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19958 # Prefer a ksh shell builtin over an external printf program on Solaris,
19959 # but without wasting forks for bash or zsh.
19960 if test -z "$BASH_VERSION$ZSH_VERSION" \
19961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19962 as_echo='print -r --'
19963 as_echo_n='print -rn --'
19964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19965 as_echo='printf %s\n'
19966 as_echo_n='printf %s'
19967 else
19968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19970 as_echo_n='/usr/ucb/echo -n'
19971 else
19972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19973 as_echo_n_body='eval
19974 arg=$1;
19975 case $arg in #(
19976 *"$as_nl"*)
19977 expr "X$arg" : "X\\(.*\\)$as_nl";
19978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19979 esac;
19980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19982 export as_echo_n_body
19983 as_echo_n='sh -c $as_echo_n_body as_echo'
19985 export as_echo_body
19986 as_echo='sh -c $as_echo_body as_echo'
19989 # The user is always right.
19990 if test "${PATH_SEPARATOR+set}" != set; then
19991 PATH_SEPARATOR=:
19992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19994 PATH_SEPARATOR=';'
19999 # IFS
20000 # We need space, tab and new line, in precisely that order. Quoting is
20001 # there to prevent editors from complaining about space-tab.
20002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20003 # splitting by setting IFS to empty value.)
20004 IFS=" "" $as_nl"
20006 # Find who we are. Look in the path if we contain no directory separator.
20007 case $0 in #((
20008 *[\\/]* ) as_myself=$0 ;;
20009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20012 IFS=$as_save_IFS
20013 test -z "$as_dir" && as_dir=.
20014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20015 done
20016 IFS=$as_save_IFS
20019 esac
20020 # We did not find ourselves, most probably we were run as `sh COMMAND'
20021 # in which case we are not to be found in the path.
20022 if test "x$as_myself" = x; then
20023 as_myself=$0
20025 if test ! -f "$as_myself"; then
20026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20027 exit 1
20030 # Unset variables that we do not need and which cause bugs (e.g. in
20031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20032 # suppresses any "Segmentation fault" message there. '((' could
20033 # trigger a bug in pdksh 5.2.14.
20034 for as_var in BASH_ENV ENV MAIL MAILPATH
20035 do eval test x\${$as_var+set} = xset \
20036 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20037 done
20038 PS1='$ '
20039 PS2='> '
20040 PS4='+ '
20042 # NLS nuisances.
20043 LC_ALL=C
20044 export LC_ALL
20045 LANGUAGE=C
20046 export LANGUAGE
20048 # CDPATH.
20049 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20052 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20053 # ----------------------------------------
20054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20056 # script with STATUS, using 1 if that was 0.
20057 as_fn_error ()
20059 as_status=$1; test $as_status -eq 0 && as_status=1
20060 if test "$4"; then
20061 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20064 $as_echo "$as_me: error: $2" >&2
20065 as_fn_exit $as_status
20066 } # as_fn_error
20069 # as_fn_set_status STATUS
20070 # -----------------------
20071 # Set $? to STATUS, without forking.
20072 as_fn_set_status ()
20074 return $1
20075 } # as_fn_set_status
20077 # as_fn_exit STATUS
20078 # -----------------
20079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20080 as_fn_exit ()
20082 set +e
20083 as_fn_set_status $1
20084 exit $1
20085 } # as_fn_exit
20087 # as_fn_unset VAR
20088 # ---------------
20089 # Portably unset VAR.
20090 as_fn_unset ()
20092 { eval $1=; unset $1;}
20094 as_unset=as_fn_unset
20095 # as_fn_append VAR VALUE
20096 # ----------------------
20097 # Append the text in VALUE to the end of the definition contained in VAR. Take
20098 # advantage of any shell optimizations that allow amortized linear growth over
20099 # repeated appends, instead of the typical quadratic growth present in naive
20100 # implementations.
20101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20102 eval 'as_fn_append ()
20104 eval $1+=\$2
20106 else
20107 as_fn_append ()
20109 eval $1=\$$1\$2
20111 fi # as_fn_append
20113 # as_fn_arith ARG...
20114 # ------------------
20115 # Perform arithmetic evaluation on the ARGs, and store the result in the
20116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20117 # must be portable across $(()) and expr.
20118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20119 eval 'as_fn_arith ()
20121 as_val=$(( $* ))
20123 else
20124 as_fn_arith ()
20126 as_val=`expr "$@" || test $? -eq 1`
20128 fi # as_fn_arith
20131 if expr a : '\(a\)' >/dev/null 2>&1 &&
20132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20133 as_expr=expr
20134 else
20135 as_expr=false
20138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20139 as_basename=basename
20140 else
20141 as_basename=false
20144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20145 as_dirname=dirname
20146 else
20147 as_dirname=false
20150 as_me=`$as_basename -- "$0" ||
20151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20152 X"$0" : 'X\(//\)$' \| \
20153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20154 $as_echo X/"$0" |
20155 sed '/^.*\/\([^/][^/]*\)\/*$/{
20156 s//\1/
20159 /^X\/\(\/\/\)$/{
20160 s//\1/
20163 /^X\/\(\/\).*/{
20164 s//\1/
20167 s/.*/./; q'`
20169 # Avoid depending upon Character Ranges.
20170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20173 as_cr_digits='0123456789'
20174 as_cr_alnum=$as_cr_Letters$as_cr_digits
20176 ECHO_C= ECHO_N= ECHO_T=
20177 case `echo -n x` in #(((((
20178 -n*)
20179 case `echo 'xy\c'` in
20180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20181 xy) ECHO_C='\c';;
20182 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20183 ECHO_T=' ';;
20184 esac;;
20186 ECHO_N='-n';;
20187 esac
20189 rm -f conf$$ conf$$.exe conf$$.file
20190 if test -d conf$$.dir; then
20191 rm -f conf$$.dir/conf$$.file
20192 else
20193 rm -f conf$$.dir
20194 mkdir conf$$.dir 2>/dev/null
20196 if (echo >conf$$.file) 2>/dev/null; then
20197 if ln -s conf$$.file conf$$ 2>/dev/null; then
20198 as_ln_s='ln -s'
20199 # ... but there are two gotchas:
20200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20202 # In both cases, we have to default to `cp -p'.
20203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20204 as_ln_s='cp -p'
20205 elif ln conf$$.file conf$$ 2>/dev/null; then
20206 as_ln_s=ln
20207 else
20208 as_ln_s='cp -p'
20210 else
20211 as_ln_s='cp -p'
20213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20214 rmdir conf$$.dir 2>/dev/null
20217 # as_fn_mkdir_p
20218 # -------------
20219 # Create "$as_dir" as a directory, including parents if necessary.
20220 as_fn_mkdir_p ()
20223 case $as_dir in #(
20224 -*) as_dir=./$as_dir;;
20225 esac
20226 test -d "$as_dir" || eval $as_mkdir_p || {
20227 as_dirs=
20228 while :; do
20229 case $as_dir in #(
20230 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20231 *) as_qdir=$as_dir;;
20232 esac
20233 as_dirs="'$as_qdir' $as_dirs"
20234 as_dir=`$as_dirname -- "$as_dir" ||
20235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20236 X"$as_dir" : 'X\(//\)[^/]' \| \
20237 X"$as_dir" : 'X\(//\)$' \| \
20238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20239 $as_echo X"$as_dir" |
20240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20241 s//\1/
20244 /^X\(\/\/\)[^/].*/{
20245 s//\1/
20248 /^X\(\/\/\)$/{
20249 s//\1/
20252 /^X\(\/\).*/{
20253 s//\1/
20256 s/.*/./; q'`
20257 test -d "$as_dir" && break
20258 done
20259 test -z "$as_dirs" || eval "mkdir $as_dirs"
20260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20263 } # as_fn_mkdir_p
20264 if mkdir -p . 2>/dev/null; then
20265 as_mkdir_p='mkdir -p "$as_dir"'
20266 else
20267 test -d ./-p && rmdir ./-p
20268 as_mkdir_p=false
20271 if test -x / >/dev/null 2>&1; then
20272 as_test_x='test -x'
20273 else
20274 if ls -dL / >/dev/null 2>&1; then
20275 as_ls_L_option=L
20276 else
20277 as_ls_L_option=
20279 as_test_x='
20280 eval sh -c '\''
20281 if test -d "$1"; then
20282 test -d "$1/.";
20283 else
20284 case $1 in #(
20285 -*)set "./$1";;
20286 esac;
20287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20288 ???[sx]*):;;*)false;;esac;fi
20289 '\'' sh
20292 as_executable_p=$as_test_x
20294 # Sed expression to map a string onto a valid CPP name.
20295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20297 # Sed expression to map a string onto a valid variable name.
20298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20301 exec 6>&1
20302 ## ----------------------------------- ##
20303 ## Main body of $CONFIG_STATUS script. ##
20304 ## ----------------------------------- ##
20305 _ASEOF
20306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20309 # Save the log message, to keep $0 and so on meaningful, and to
20310 # report actual input values of CONFIG_FILES etc. instead of their
20311 # values after options handling.
20312 ac_log="
20313 This file was extended by emacs $as_me 24.0.50, which was
20314 generated by GNU Autoconf 2.67. Invocation command line was
20316 CONFIG_FILES = $CONFIG_FILES
20317 CONFIG_HEADERS = $CONFIG_HEADERS
20318 CONFIG_LINKS = $CONFIG_LINKS
20319 CONFIG_COMMANDS = $CONFIG_COMMANDS
20320 $ $0 $@
20322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20325 _ACEOF
20327 case $ac_config_files in *"
20328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20329 esac
20331 case $ac_config_headers in *"
20332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20333 esac
20336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337 # Files that config.status was made for.
20338 config_files="$ac_config_files"
20339 config_headers="$ac_config_headers"
20340 config_commands="$ac_config_commands"
20342 _ACEOF
20344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20345 ac_cs_usage="\
20346 \`$as_me' instantiates files and other configuration actions
20347 from templates according to the current configuration. Unless the files
20348 and actions are specified as TAGs, all are instantiated by default.
20350 Usage: $0 [OPTION]... [TAG]...
20352 -h, --help print this help, then exit
20353 -V, --version print version number and configuration settings, then exit
20354 --config print configuration, then exit
20355 -q, --quiet, --silent
20356 do not print progress messages
20357 -d, --debug don't remove temporary files
20358 --recheck update $as_me by reconfiguring in the same conditions
20359 --file=FILE[:TEMPLATE]
20360 instantiate the configuration file FILE
20361 --header=FILE[:TEMPLATE]
20362 instantiate the configuration header FILE
20364 Configuration files:
20365 $config_files
20367 Configuration headers:
20368 $config_headers
20370 Configuration commands:
20371 $config_commands
20373 Report bugs to the package provider."
20375 _ACEOF
20376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20378 ac_cs_version="\\
20379 emacs config.status 24.0.50
20380 configured by $0, generated by GNU Autoconf 2.67,
20381 with options \\"\$ac_cs_config\\"
20383 Copyright (C) 2010 Free Software Foundation, Inc.
20384 This config.status script is free software; the Free Software Foundation
20385 gives unlimited permission to copy, distribute and modify it."
20387 ac_pwd='$ac_pwd'
20388 srcdir='$srcdir'
20389 INSTALL='$INSTALL'
20390 MKDIR_P='$MKDIR_P'
20391 AWK='$AWK'
20392 test -n "\$AWK" || AWK=awk
20393 _ACEOF
20395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20396 # The default lists apply if the user does not specify any file.
20397 ac_need_defaults=:
20398 while test $# != 0
20400 case $1 in
20401 --*=?*)
20402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20404 ac_shift=:
20406 --*=)
20407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20408 ac_optarg=
20409 ac_shift=:
20412 ac_option=$1
20413 ac_optarg=$2
20414 ac_shift=shift
20416 esac
20418 case $ac_option in
20419 # Handling of the options.
20420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20421 ac_cs_recheck=: ;;
20422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20423 $as_echo "$ac_cs_version"; exit ;;
20424 --config | --confi | --conf | --con | --co | --c )
20425 $as_echo "$ac_cs_config"; exit ;;
20426 --debug | --debu | --deb | --de | --d | -d )
20427 debug=: ;;
20428 --file | --fil | --fi | --f )
20429 $ac_shift
20430 case $ac_optarg in
20431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20432 '') as_fn_error $? "missing file argument" ;;
20433 esac
20434 as_fn_append CONFIG_FILES " '$ac_optarg'"
20435 ac_need_defaults=false;;
20436 --header | --heade | --head | --hea )
20437 $ac_shift
20438 case $ac_optarg in
20439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20440 esac
20441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20442 ac_need_defaults=false;;
20443 --he | --h)
20444 # Conflict between --help and --header
20445 as_fn_error $? "ambiguous option: \`$1'
20446 Try \`$0 --help' for more information.";;
20447 --help | --hel | -h )
20448 $as_echo "$ac_cs_usage"; exit ;;
20449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20451 ac_cs_silent=: ;;
20453 # This is an error.
20454 -*) as_fn_error $? "unrecognized option: \`$1'
20455 Try \`$0 --help' for more information." ;;
20457 *) as_fn_append ac_config_targets " $1"
20458 ac_need_defaults=false ;;
20460 esac
20461 shift
20462 done
20464 ac_configure_extra_args=
20466 if $ac_cs_silent; then
20467 exec 6>/dev/null
20468 ac_configure_extra_args="$ac_configure_extra_args --silent"
20471 _ACEOF
20472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473 if \$ac_cs_recheck; then
20474 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20475 shift
20476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20477 CONFIG_SHELL='$SHELL'
20478 export CONFIG_SHELL
20479 exec "\$@"
20482 _ACEOF
20483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20484 exec 5>>config.log
20486 echo
20487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20488 ## Running $as_me. ##
20489 _ASBOX
20490 $as_echo "$ac_log"
20491 } >&5
20493 _ACEOF
20494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20496 # INIT-COMMANDS
20498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20499 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20501 _ACEOF
20503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20505 # Handling of arguments.
20506 for ac_config_target in $ac_config_targets
20508 case $ac_config_target in
20509 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20512 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20513 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20514 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20515 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20516 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20517 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20518 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20519 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20520 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20521 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20522 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20523 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20524 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20525 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20526 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20529 esac
20530 done
20533 # If the user did not use the arguments to specify the items to instantiate,
20534 # then the envvar interface is used. Set only those that are not.
20535 # We use the long form for the default assignment because of an extremely
20536 # bizarre bug on SunOS 4.1.3.
20537 if $ac_need_defaults; then
20538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20543 # Have a temporary directory for convenience. Make it in the build tree
20544 # simply because there is no reason against having it here, and in addition,
20545 # creating and moving files from /tmp can sometimes cause problems.
20546 # Hook for its removal unless debugging.
20547 # Note that there is a small window in which the directory will not be cleaned:
20548 # after its creation but before its name has been assigned to `$tmp'.
20549 $debug ||
20551 tmp=
20552 trap 'exit_status=$?
20553 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20555 trap 'as_fn_exit 1' 1 2 13 15
20557 # Create a (secure) tmp directory for tmp files.
20560 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20561 test -n "$tmp" && test -d "$tmp"
20562 } ||
20564 tmp=./conf$$-$RANDOM
20565 (umask 077 && mkdir "$tmp")
20566 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20568 # Set up the scripts for CONFIG_FILES section.
20569 # No need to generate them if there are no CONFIG_FILES.
20570 # This happens for instance with `./config.status config.h'.
20571 if test -n "$CONFIG_FILES"; then
20573 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20574 ac_cs_awk_getline=:
20575 ac_cs_awk_pipe_init=
20576 ac_cs_awk_read_file='
20577 while ((getline aline < (F[key])) > 0)
20578 print(aline)
20579 close(F[key])'
20580 ac_cs_awk_pipe_fini=
20581 else
20582 ac_cs_awk_getline=false
20583 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20584 ac_cs_awk_read_file='
20585 print "|#_!!_#|"
20586 print "cat " F[key] " &&"
20587 '$ac_cs_awk_pipe_init
20588 # The final `:' finishes the AND list.
20589 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20591 ac_cr=`echo X | tr X '\015'`
20592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20593 # But we know of no other shell where ac_cr would be empty at this
20594 # point, so we can use a bashism as a fallback.
20595 if test "x$ac_cr" = x; then
20596 eval ac_cr=\$\'\\r\'
20598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20600 ac_cs_awk_cr='\\r'
20601 else
20602 ac_cs_awk_cr=$ac_cr
20605 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20606 _ACEOF
20608 # Create commands to substitute file output variables.
20610 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20611 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20612 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20613 echo "_ACAWK" &&
20614 echo "_ACEOF"
20615 } >conf$$files.sh &&
20616 . ./conf$$files.sh ||
20617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20618 rm -f conf$$files.sh
20621 echo "cat >conf$$subs.awk <<_ACEOF" &&
20622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20623 echo "_ACEOF"
20624 } >conf$$subs.sh ||
20625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20627 ac_delim='%!_!# '
20628 for ac_last_try in false false false false false :; do
20629 . ./conf$$subs.sh ||
20630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20633 if test $ac_delim_n = $ac_delim_num; then
20634 break
20635 elif $ac_last_try; then
20636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20637 else
20638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20640 done
20641 rm -f conf$$subs.sh
20643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20645 _ACEOF
20646 sed -n '
20648 s/^/S["/; s/!.*/"]=/
20651 s/^[^!]*!//
20652 :repl
20653 t repl
20654 s/'"$ac_delim"'$//
20655 t delim
20658 s/\(.\{148\}\)..*/\1/
20659 t more1
20660 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20663 b repl
20664 :more1
20665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20668 s/.\{148\}//
20669 t nl
20670 :delim
20672 s/\(.\{148\}\)..*/\1/
20673 t more2
20674 s/["\\]/\\&/g; s/^/"/; s/$/"/
20677 :more2
20678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20681 s/.\{148\}//
20682 t delim
20683 ' <conf$$subs.awk | sed '
20684 /^[^""]/{
20686 s/\n//
20688 ' >>$CONFIG_STATUS || ac_write_fail=1
20689 rm -f conf$$subs.awk
20690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20691 _ACAWK
20692 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20693 for (key in S) S_is_set[key] = 1
20694 FS = "\a"
20695 \$ac_cs_awk_pipe_init
20698 line = $ 0
20699 nfields = split(line, field, "@")
20700 substed = 0
20701 len = length(field[1])
20702 for (i = 2; i < nfields; i++) {
20703 key = field[i]
20704 keylen = length(key)
20705 if (S_is_set[key]) {
20706 value = S[key]
20707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20708 len += length(value) + length(field[++i])
20709 substed = 1
20710 } else
20711 len += 1 + keylen
20713 if (nfields == 3 && !substed) {
20714 key = field[2]
20715 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20716 \$ac_cs_awk_read_file
20717 next
20720 print line
20722 \$ac_cs_awk_pipe_fini
20723 _ACAWK
20724 _ACEOF
20725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20728 else
20730 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20732 _ACEOF
20734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20736 # trailing colons and then remove the whole line if VPATH becomes empty
20737 # (actually we leave an empty line to preserve line numbers).
20738 if test "x$srcdir" = x.; then
20739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20741 s///
20742 s/^/:/
20743 s/[ ]*$/:/
20744 s/:\$(srcdir):/:/g
20745 s/:\${srcdir}:/:/g
20746 s/:@srcdir@:/:/g
20747 s/^:*//
20748 s/:*$//
20750 s/\(=[ ]*\).*/\1/
20752 s/\n//
20753 s/^[^=]*=[ ]*$//
20757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20758 fi # test -n "$CONFIG_FILES"
20760 # Set up the scripts for CONFIG_HEADERS section.
20761 # No need to generate them if there are no CONFIG_HEADERS.
20762 # This happens for instance with `./config.status Makefile'.
20763 if test -n "$CONFIG_HEADERS"; then
20764 cat >"$tmp/defines.awk" <<\_ACAWK ||
20765 BEGIN {
20766 _ACEOF
20768 # Transform confdefs.h into an awk script `defines.awk', embedded as
20769 # here-document in config.status, that substitutes the proper values into
20770 # config.h.in to produce config.h.
20772 # Create a delimiter string that does not exist in confdefs.h, to ease
20773 # handling of long lines.
20774 ac_delim='%!_!# '
20775 for ac_last_try in false false :; do
20776 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20777 if test -z "$ac_t"; then
20778 break
20779 elif $ac_last_try; then
20780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20781 else
20782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20784 done
20786 # For the awk script, D is an array of macro values keyed by name,
20787 # likewise P contains macro parameters if any. Preserve backslash
20788 # newline sequences.
20790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20791 sed -n '
20792 s/.\{148\}/&'"$ac_delim"'/g
20793 t rset
20794 :rset
20795 s/^[ ]*#[ ]*define[ ][ ]*/ /
20796 t def
20798 :def
20799 s/\\$//
20800 t bsnl
20801 s/["\\]/\\&/g
20802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20803 D["\1"]=" \3"/p
20804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20806 :bsnl
20807 s/["\\]/\\&/g
20808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20809 D["\1"]=" \3\\\\\\n"\\/p
20810 t cont
20811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20812 t cont
20814 :cont
20816 s/.\{148\}/&'"$ac_delim"'/g
20817 t clear
20818 :clear
20819 s/\\$//
20820 t bsnlc
20821 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20823 :bsnlc
20824 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20825 b cont
20826 ' <confdefs.h | sed '
20827 s/'"$ac_delim"'/"\\\
20828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831 for (key in D) D_is_set[key] = 1
20832 FS = "\a"
20834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20835 line = \$ 0
20836 split(line, arg, " ")
20837 if (arg[1] == "#") {
20838 defundef = arg[2]
20839 mac1 = arg[3]
20840 } else {
20841 defundef = substr(arg[1], 2)
20842 mac1 = arg[2]
20844 split(mac1, mac2, "(") #)
20845 macro = mac2[1]
20846 prefix = substr(line, 1, index(line, defundef) - 1)
20847 if (D_is_set[macro]) {
20848 # Preserve the white space surrounding the "#".
20849 print prefix "define", macro P[macro] D[macro]
20850 next
20851 } else {
20852 # Replace #undef with comments. This is necessary, for example,
20853 # in the case of _POSIX_SOURCE, which is predefined and required
20854 # on some systems where configure will not decide to define it.
20855 if (defundef == "undef") {
20856 print "/*", prefix defundef, macro, "*/"
20857 next
20861 { print }
20862 _ACAWK
20863 _ACEOF
20864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20866 fi # test -n "$CONFIG_HEADERS"
20869 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20870 shift
20871 for ac_tag
20873 case $ac_tag in
20874 :[FHLC]) ac_mode=$ac_tag; continue;;
20875 esac
20876 case $ac_mode$ac_tag in
20877 :[FHL]*:*);;
20878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20879 :[FH]-) ac_tag=-:-;;
20880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20881 esac
20882 ac_save_IFS=$IFS
20883 IFS=:
20884 set x $ac_tag
20885 IFS=$ac_save_IFS
20886 shift
20887 ac_file=$1
20888 shift
20890 case $ac_mode in
20891 :L) ac_source=$1;;
20892 :[FH])
20893 ac_file_inputs=
20894 for ac_f
20896 case $ac_f in
20897 -) ac_f="$tmp/stdin";;
20898 *) # Look for the file first in the build tree, then in the source tree
20899 # (if the path is not absolute). The absolute path cannot be DOS-style,
20900 # because $ac_f cannot contain `:'.
20901 test -f "$ac_f" ||
20902 case $ac_f in
20903 [\\/$]*) false;;
20904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20905 esac ||
20906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20907 esac
20908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20909 as_fn_append ac_file_inputs " '$ac_f'"
20910 done
20912 # Let's still pretend it is `configure' which instantiates (i.e., don't
20913 # use $as_me), people would be surprised to read:
20914 # /* config.h. Generated by config.status. */
20915 configure_input='Generated from '`
20916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20917 `' by configure.'
20918 if test x"$ac_file" != x-; then
20919 configure_input="$ac_file. $configure_input"
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20921 $as_echo "$as_me: creating $ac_file" >&6;}
20923 # Neutralize special characters interpreted by sed in replacement strings.
20924 case $configure_input in #(
20925 *\&* | *\|* | *\\* )
20926 ac_sed_conf_input=`$as_echo "$configure_input" |
20927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20928 *) ac_sed_conf_input=$configure_input;;
20929 esac
20931 case $ac_tag in
20932 *:-:* | *:-) cat >"$tmp/stdin" \
20933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20934 esac
20936 esac
20938 ac_dir=`$as_dirname -- "$ac_file" ||
20939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$ac_file" : 'X\(//\)[^/]' \| \
20941 X"$ac_file" : 'X\(//\)$' \| \
20942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20943 $as_echo X"$ac_file" |
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945 s//\1/
20948 /^X\(\/\/\)[^/].*/{
20949 s//\1/
20952 /^X\(\/\/\)$/{
20953 s//\1/
20956 /^X\(\/\).*/{
20957 s//\1/
20960 s/.*/./; q'`
20961 as_dir="$ac_dir"; as_fn_mkdir_p
20962 ac_builddir=.
20964 case "$ac_dir" in
20965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20968 # A ".." for each directory in $ac_dir_suffix.
20969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20970 case $ac_top_builddir_sub in
20971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20973 esac ;;
20974 esac
20975 ac_abs_top_builddir=$ac_pwd
20976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20977 # for backward compatibility:
20978 ac_top_builddir=$ac_top_build_prefix
20980 case $srcdir in
20981 .) # We are building in place.
20982 ac_srcdir=.
20983 ac_top_srcdir=$ac_top_builddir_sub
20984 ac_abs_top_srcdir=$ac_pwd ;;
20985 [\\/]* | ?:[\\/]* ) # Absolute name.
20986 ac_srcdir=$srcdir$ac_dir_suffix;
20987 ac_top_srcdir=$srcdir
20988 ac_abs_top_srcdir=$srcdir ;;
20989 *) # Relative name.
20990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20991 ac_top_srcdir=$ac_top_build_prefix$srcdir
20992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20993 esac
20994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20997 case $ac_mode in
21000 # CONFIG_FILE
21003 case $INSTALL in
21004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21006 esac
21007 ac_MKDIR_P=$MKDIR_P
21008 case $MKDIR_P in
21009 [\\/$]* | ?:[\\/]* ) ;;
21010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21011 esac
21012 _ACEOF
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015 # If the template does not know about datarootdir, expand it.
21016 # FIXME: This hack should be removed a few years after 2.60.
21017 ac_datarootdir_hack=; ac_datarootdir_seen=
21018 ac_sed_dataroot='
21019 /datarootdir/ {
21023 /@datadir@/p
21024 /@docdir@/p
21025 /@infodir@/p
21026 /@localedir@/p
21027 /@mandir@/p'
21028 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21029 *datarootdir*) ac_datarootdir_seen=yes;;
21030 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21032 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21033 _ACEOF
21034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21035 ac_datarootdir_hack='
21036 s&@datadir@&$datadir&g
21037 s&@docdir@&$docdir&g
21038 s&@infodir@&$infodir&g
21039 s&@localedir@&$localedir&g
21040 s&@mandir@&$mandir&g
21041 s&\\\${datarootdir}&$datarootdir&g' ;;
21042 esac
21043 _ACEOF
21045 # Neutralize VPATH when `$srcdir' = `.'.
21046 # Shell code in configure.ac might set extrasub.
21047 # FIXME: do we really want to maintain this feature?
21048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21049 ac_sed_extra="$ac_vpsub
21050 $extrasub
21051 _ACEOF
21052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21055 s|@configure_input@|$ac_sed_conf_input|;t t
21056 s&@top_builddir@&$ac_top_builddir_sub&;t t
21057 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21058 s&@srcdir@&$ac_srcdir&;t t
21059 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060 s&@top_srcdir@&$ac_top_srcdir&;t t
21061 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062 s&@builddir@&$ac_builddir&;t t
21063 s&@abs_builddir@&$ac_abs_builddir&;t t
21064 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065 s&@INSTALL@&$ac_INSTALL&;t t
21066 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21067 $ac_datarootdir_hack
21069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21070 if $ac_cs_awk_getline; then
21071 $AWK -f "$tmp/subs.awk"
21072 else
21073 $AWK -f "$tmp/subs.awk" | $SHELL
21074 fi >$tmp/out \
21075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21078 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21081 which seems to be undefined. Please make sure it is defined" >&5
21082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21083 which seems to be undefined. Please make sure it is defined" >&2;}
21085 rm -f "$tmp/stdin"
21086 case $ac_file in
21087 -) cat "$tmp/out" && rm -f "$tmp/out";;
21088 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21089 esac \
21090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21094 # CONFIG_HEADER
21096 if test x"$ac_file" != x-; then
21098 $as_echo "/* $configure_input */" \
21099 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21100 } >"$tmp/config.h" \
21101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21102 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21105 else
21106 rm -f "$ac_file"
21107 mv "$tmp/config.h" "$ac_file" \
21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21110 else
21111 $as_echo "/* $configure_input */" \
21112 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21113 || as_fn_error $? "could not create -" "$LINENO" 5
21115 # Compute "$ac_file"'s index in $config_headers.
21116 _am_arg="$ac_file"
21117 _am_stamp_count=1
21118 for _am_header in $config_headers :; do
21119 case $_am_header in
21120 $_am_arg | $_am_arg:* )
21121 break ;;
21123 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21124 esac
21125 done
21126 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21127 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21128 X"$_am_arg" : 'X\(//\)[^/]' \| \
21129 X"$_am_arg" : 'X\(//\)$' \| \
21130 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21131 $as_echo X"$_am_arg" |
21132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21133 s//\1/
21136 /^X\(\/\/\)[^/].*/{
21137 s//\1/
21140 /^X\(\/\/\)$/{
21141 s//\1/
21144 /^X\(\/\).*/{
21145 s//\1/
21148 s/.*/./; q'`/stamp-h$_am_stamp_count
21151 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21152 $as_echo "$as_me: executing $ac_file commands" >&6;}
21154 esac
21157 case $ac_file$ac_mode in
21158 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21159 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21160 # are listed without --file. Let's play safe and only enable the eval
21161 # if we detect the quoting.
21162 case $CONFIG_FILES in
21163 *\'*) eval set x "$CONFIG_FILES" ;;
21164 *) set x $CONFIG_FILES ;;
21165 esac
21166 shift
21167 for mf
21169 # Strip MF so we end up with the name of the file.
21170 mf=`echo "$mf" | sed -e 's/:.*$//'`
21171 # Check whether this is an Automake generated Makefile or not.
21172 # We used to match only the files named `Makefile.in', but
21173 # some people rename them; so instead we look at the file content.
21174 # Grep'ing the first line is not enough: some people post-process
21175 # each Makefile.in and add a new line on top of each file to say so.
21176 # Grep'ing the whole file is not good either: AIX grep has a line
21177 # limit of 2048, but all sed's we know have understand at least 4000.
21178 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21179 dirpart=`$as_dirname -- "$mf" ||
21180 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181 X"$mf" : 'X\(//\)[^/]' \| \
21182 X"$mf" : 'X\(//\)$' \| \
21183 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21184 $as_echo X"$mf" |
21185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21186 s//\1/
21189 /^X\(\/\/\)[^/].*/{
21190 s//\1/
21193 /^X\(\/\/\)$/{
21194 s//\1/
21197 /^X\(\/\).*/{
21198 s//\1/
21201 s/.*/./; q'`
21202 else
21203 continue
21205 # Extract the definition of DEPDIR, am__include, and am__quote
21206 # from the Makefile without running `make'.
21207 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21208 test -z "$DEPDIR" && continue
21209 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21210 test -z "am__include" && continue
21211 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21212 # When using ansi2knr, U may be empty or an underscore; expand it
21213 U=`sed -n 's/^U = //p' < "$mf"`
21214 # Find all dependency output files, they are included files with
21215 # $(DEPDIR) in their names. We invoke sed twice because it is the
21216 # simplest approach to changing $(DEPDIR) to its actual value in the
21217 # expansion.
21218 for file in `sed -n "
21219 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21220 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21221 # Make sure the directory exists.
21222 test -f "$dirpart/$file" && continue
21223 fdir=`$as_dirname -- "$file" ||
21224 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 X"$file" : 'X\(//\)[^/]' \| \
21226 X"$file" : 'X\(//\)$' \| \
21227 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21228 $as_echo X"$file" |
21229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 s//\1/
21233 /^X\(\/\/\)[^/].*/{
21234 s//\1/
21237 /^X\(\/\/\)$/{
21238 s//\1/
21241 /^X\(\/\).*/{
21242 s//\1/
21245 s/.*/./; q'`
21246 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21247 # echo "creating $dirpart/$file"
21248 echo '# dummy' > "$dirpart/$file"
21249 done
21250 done
21253 "mkdirs":C)
21254 for dir in etc lisp ; do
21255 test -d ${dir} || mkdir ${dir}
21256 done
21258 "epaths":C)
21259 echo creating src/epaths.h
21260 ${MAKE-make} epaths-force
21262 "gdbinit":C)
21263 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21264 echo creating src/.gdbinit
21265 echo source $srcdir/src/.gdbinit > src/.gdbinit
21269 esac
21270 done # for ac_tag
21273 as_fn_exit 0
21274 _ACEOF
21275 ac_clean_files=$ac_clean_files_save
21277 test $ac_write_fail = 0 ||
21278 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21281 # configure is writing to config.log, and then calls config.status.
21282 # config.status does its own redirection, appending to config.log.
21283 # Unfortunately, on DOS this fails, as config.log is still kept open
21284 # by configure, so config.status won't be able to write to it; its
21285 # output is simply discarded. So we exec the FD to /dev/null,
21286 # effectively closing config.log, so it can be properly (re)opened and
21287 # appended to by config.status. When coming back to configure, we
21288 # need to make the FD available again.
21289 if test "$no_create" != yes; then
21290 ac_cs_success=:
21291 ac_config_status_args=
21292 test "$silent" = yes &&
21293 ac_config_status_args="$ac_config_status_args --quiet"
21294 exec 5>/dev/null
21295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21296 exec 5>>config.log
21297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21298 # would make configure fail if this is the last instruction.
21299 $ac_cs_success || as_fn_exit 1
21301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}