Auto-commit of generated files.
[emacs.git] / autogen / configure
blob94c65d62ccdb5f213cc067558a8e13754e438270
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.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 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 NEXT_STDIO_H
678 REPLACE_VSPRINTF
679 REPLACE_VSNPRINTF
680 REPLACE_VPRINTF
681 REPLACE_VFPRINTF
682 REPLACE_VDPRINTF
683 REPLACE_VASPRINTF
684 REPLACE_TMPFILE
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_SPRINTF
687 REPLACE_SNPRINTF
688 REPLACE_RENAMEAT
689 REPLACE_RENAME
690 REPLACE_REMOVE
691 REPLACE_PRINTF
692 REPLACE_POPEN
693 REPLACE_PERROR
694 REPLACE_OBSTACK_PRINTF
695 REPLACE_GETLINE
696 REPLACE_GETDELIM
697 REPLACE_FTELLO
698 REPLACE_FTELL
699 REPLACE_FSEEKO
700 REPLACE_FSEEK
701 REPLACE_FREOPEN
702 REPLACE_FPURGE
703 REPLACE_FPRINTF
704 REPLACE_FOPEN
705 REPLACE_FFLUSH
706 REPLACE_FCLOSE
707 REPLACE_DPRINTF
708 HAVE_VDPRINTF
709 HAVE_VASPRINTF
710 HAVE_RENAMEAT
711 HAVE_FTELLO
712 HAVE_FSEEKO
713 HAVE_DPRINTF
714 HAVE_DECL_VSNPRINTF
715 HAVE_DECL_SNPRINTF
716 HAVE_DECL_OBSTACK_PRINTF
717 HAVE_DECL_GETLINE
718 HAVE_DECL_GETDELIM
719 HAVE_DECL_FTELLO
720 HAVE_DECL_FSEEKO
721 HAVE_DECL_FPURGE
722 GNULIB_VSPRINTF_POSIX
723 GNULIB_VSNPRINTF
724 GNULIB_VPRINTF_POSIX
725 GNULIB_VPRINTF
726 GNULIB_VFPRINTF_POSIX
727 GNULIB_VFPRINTF
728 GNULIB_VDPRINTF
729 GNULIB_VASPRINTF
730 GNULIB_TMPFILE
731 GNULIB_STDIO_H_SIGPIPE
732 GNULIB_SPRINTF_POSIX
733 GNULIB_SNPRINTF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_FWRITE
749 GNULIB_FTELLO
750 GNULIB_FTELL
751 GNULIB_FSEEKO
752 GNULIB_FSEEK
753 GNULIB_FREOPEN
754 GNULIB_FPUTS
755 GNULIB_FPUTC
756 GNULIB_FPURGE
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 GNULIB_FOPEN
760 GNULIB_FFLUSH
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 STDINT_H
764 WINT_T_SUFFIX
765 WCHAR_T_SUFFIX
766 SIG_ATOMIC_T_SUFFIX
767 SIZE_T_SUFFIX
768 PTRDIFF_T_SUFFIX
769 HAVE_SIGNED_WINT_T
770 HAVE_SIGNED_WCHAR_T
771 HAVE_SIGNED_SIG_ATOMIC_T
772 BITSIZEOF_WINT_T
773 BITSIZEOF_WCHAR_T
774 BITSIZEOF_SIG_ATOMIC_T
775 BITSIZEOF_SIZE_T
776 BITSIZEOF_PTRDIFF_T
777 HAVE_SYS_BITYPES_H
778 HAVE_SYS_INTTYPES_H
779 HAVE_STDINT_H
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
781 NEXT_STDINT_H
782 HAVE_SYS_TYPES_H
783 HAVE_INTTYPES_H
784 HAVE_WCHAR_H
785 HAVE_UNSIGNED_LONG_LONG_INT
786 HAVE_LONG_LONG_INT
787 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
788 NEXT_STDDEF_H
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 STDBOOL_H
794 APPLE_UNIVERSAL_BUILD
795 REPLACE_TIMEGM
796 REPLACE_NANOSLEEP
797 REPLACE_MKTIME
798 REPLACE_LOCALTIME_R
799 HAVE_TIMEGM
800 HAVE_STRPTIME
801 HAVE_NANOSLEEP
802 HAVE_DECL_LOCALTIME_R
803 GNULIB_TIME_R
804 GNULIB_TIMEGM
805 GNULIB_STRPTIME
806 GNULIB_NANOSLEEP
807 GNULIB_MKTIME
808 REPLACE_UTIMENSAT
809 REPLACE_STAT
810 REPLACE_MKNOD
811 REPLACE_MKFIFO
812 REPLACE_MKDIR
813 REPLACE_LSTAT
814 REPLACE_FUTIMENS
815 REPLACE_FSTATAT
816 REPLACE_FSTAT
817 HAVE_UTIMENSAT
818 HAVE_MKNODAT
819 HAVE_MKNOD
820 HAVE_MKFIFOAT
821 HAVE_MKFIFO
822 HAVE_MKDIRAT
823 HAVE_LSTAT
824 HAVE_LCHMOD
825 HAVE_FUTIMENS
826 HAVE_FSTATAT
827 HAVE_FCHMODAT
828 GNULIB_UTIMENSAT
829 GNULIB_STAT
830 GNULIB_MKNODAT
831 GNULIB_MKNOD
832 GNULIB_MKFIFOAT
833 GNULIB_MKFIFO
834 GNULIB_MKDIRAT
835 GNULIB_LSTAT
836 GNULIB_LCHMOD
837 GNULIB_FUTIMENS
838 GNULIB_FSTATAT
839 GNULIB_FCHMODAT
840 LTLIBINTL
841 LIBINTL
842 GETOPT_H
843 HAVE_GETOPT_H
844 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
845 NEXT_GETOPT_H
846 PRAGMA_COLUMNS
847 PRAGMA_SYSTEM_HEADER
848 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
849 INCLUDE_NEXT
850 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
851 UNISTD_H_HAVE_WINSOCK2_H
852 REPLACE_WRITE
853 REPLACE_USLEEP
854 REPLACE_UNLINKAT
855 REPLACE_UNLINK
856 REPLACE_TTYNAME_R
857 REPLACE_SYMLINK
858 REPLACE_SLEEP
859 REPLACE_RMDIR
860 REPLACE_READLINK
861 REPLACE_PWRITE
862 REPLACE_PREAD
863 REPLACE_LSEEK
864 REPLACE_LINKAT
865 REPLACE_LINK
866 REPLACE_LCHOWN
867 REPLACE_GETPAGESIZE
868 REPLACE_GETGROUPS
869 REPLACE_GETLOGIN_R
870 REPLACE_GETDOMAINNAME
871 REPLACE_GETCWD
872 REPLACE_FCHOWNAT
873 REPLACE_DUP2
874 REPLACE_DUP
875 REPLACE_CLOSE
876 REPLACE_CHOWN
877 HAVE_SYS_PARAM_H
878 HAVE_OS_H
879 HAVE_DECL_TTYNAME_R
880 HAVE_DECL_GETUSERSHELL
881 HAVE_DECL_GETPAGESIZE
882 HAVE_DECL_GETLOGIN_R
883 HAVE_DECL_GETDOMAINNAME
884 HAVE_DECL_FCHDIR
885 HAVE_DECL_ENVIRON
886 HAVE_USLEEP
887 HAVE_UNLINKAT
888 HAVE_SYMLINKAT
889 HAVE_SYMLINK
890 HAVE_SLEEP
891 HAVE_READLINKAT
892 HAVE_READLINK
893 HAVE_PWRITE
894 HAVE_PREAD
895 HAVE_PIPE2
896 HAVE_PIPE
897 HAVE_LINKAT
898 HAVE_LINK
899 HAVE_LCHOWN
900 HAVE_GETPAGESIZE
901 HAVE_GETLOGIN
902 HAVE_GETHOSTNAME
903 HAVE_GETGROUPS
904 HAVE_GETDTABLESIZE
905 HAVE_FTRUNCATE
906 HAVE_FSYNC
907 HAVE_FCHOWNAT
908 HAVE_FCHDIR
909 HAVE_FACCESSAT
910 HAVE_EUIDACCESS
911 HAVE_DUP3
912 HAVE_DUP2
913 HAVE_CHOWN
914 GNULIB_WRITE
915 GNULIB_USLEEP
916 GNULIB_UNLINKAT
917 GNULIB_UNLINK
918 GNULIB_UNISTD_H_SIGPIPE
919 GNULIB_UNISTD_H_GETOPT
920 GNULIB_TTYNAME_R
921 GNULIB_SYMLINKAT
922 GNULIB_SYMLINK
923 GNULIB_SLEEP
924 GNULIB_RMDIR
925 GNULIB_READLINKAT
926 GNULIB_READLINK
927 GNULIB_PWRITE
928 GNULIB_PREAD
929 GNULIB_PIPE2
930 GNULIB_PIPE
931 GNULIB_LSEEK
932 GNULIB_LINKAT
933 GNULIB_LINK
934 GNULIB_LCHOWN
935 GNULIB_GETUSERSHELL
936 GNULIB_GETPAGESIZE
937 GNULIB_GETLOGIN_R
938 GNULIB_GETLOGIN
939 GNULIB_GETHOSTNAME
940 GNULIB_GETGROUPS
941 GNULIB_GETDTABLESIZE
942 GNULIB_GETDOMAINNAME
943 GNULIB_GETCWD
944 GNULIB_FTRUNCATE
945 GNULIB_FSYNC
946 GNULIB_FCHOWNAT
947 GNULIB_FCHDIR
948 GNULIB_FACCESSAT
949 GNULIB_EUIDACCESS
950 GNULIB_ENVIRON
951 GNULIB_DUP3
952 GNULIB_DUP2
953 GNULIB_CLOSE
954 GNULIB_CHOWN
955 GETLOADAVG_LIBS
956 REPLACE_WCTOMB
957 REPLACE_UNSETENV
958 REPLACE_STRTOD
959 REPLACE_SETENV
960 REPLACE_REALPATH
961 REPLACE_REALLOC
962 REPLACE_PUTENV
963 REPLACE_MKSTEMP
964 REPLACE_MBTOWC
965 REPLACE_MALLOC
966 REPLACE_CANONICALIZE_FILE_NAME
967 REPLACE_CALLOC
968 HAVE_DECL_UNSETENV
969 HAVE_UNLOCKPT
970 HAVE_SYS_LOADAVG_H
971 HAVE_STRUCT_RANDOM_DATA
972 HAVE_STRTOULL
973 HAVE_STRTOLL
974 HAVE_STRTOD
975 HAVE_DECL_SETENV
976 HAVE_SETENV
977 HAVE_RPMATCH
978 HAVE_REALPATH
979 HAVE_RANDOM_R
980 HAVE_RANDOM_H
981 HAVE_PTSNAME
982 HAVE_MKSTEMPS
983 HAVE_MKSTEMP
984 HAVE_MKOSTEMPS
985 HAVE_MKOSTEMP
986 HAVE_MKDTEMP
987 HAVE_GRANTPT
988 HAVE_GETSUBOPT
989 HAVE_DECL_GETLOADAVG
990 HAVE_CANONICALIZE_FILE_NAME
991 HAVE_ATOLL
992 HAVE__EXIT
993 GNULIB_WCTOMB
994 GNULIB_UNSETENV
995 GNULIB_UNLOCKPT
996 GNULIB_SYSTEM_POSIX
997 GNULIB_STRTOULL
998 GNULIB_STRTOLL
999 GNULIB_STRTOD
1000 GNULIB_SETENV
1001 GNULIB_RPMATCH
1002 GNULIB_REALPATH
1003 GNULIB_REALLOC_POSIX
1004 GNULIB_RANDOM_R
1005 GNULIB_PUTENV
1006 GNULIB_PTSNAME
1007 GNULIB_MKSTEMPS
1008 GNULIB_MKSTEMP
1009 GNULIB_MKOSTEMPS
1010 GNULIB_MKOSTEMP
1011 GNULIB_MKDTEMP
1012 GNULIB_MBTOWC
1013 GNULIB_MALLOC_POSIX
1014 GNULIB_GRANTPT
1015 GNULIB_GETSUBOPT
1016 GNULIB_GETLOADAVG
1017 GNULIB_CANONICALIZE_FILE_NAME
1018 GNULIB_CALLOC_POSIX
1019 GNULIB_ATOLL
1020 GNULIB__EXIT
1021 GL_COND_LIBTOOL_FALSE
1022 GL_COND_LIBTOOL_TRUE
1023 BLESSMAIL_TARGET
1024 LIBS_MAIL
1025 liblockfile
1026 ALLOCA
1027 LIBXML2_LIBS
1028 LIBXML2_CFLAGS
1029 LIBXSM
1030 LIBGPM
1031 LIBGIF
1032 LIBTIFF
1033 LIBPNG
1034 LIBJPEG
1035 LIBXPM
1036 M17N_FLT_LIBS
1037 M17N_FLT_CFLAGS
1038 LIBOTF_LIBS
1039 LIBOTF_CFLAGS
1040 FREETYPE_LIBS
1041 FREETYPE_CFLAGS
1042 XFT_LIBS
1043 XFT_CFLAGS
1044 FONTCONFIG_LIBS
1045 FONTCONFIG_CFLAGS
1046 LIBXMU
1047 LIBXTR6
1048 LIBGNUTLS_LIBS
1049 LIBGNUTLS_CFLAGS
1050 LIBSELINUX_LIBS
1051 GCONF_LIBS
1052 GCONF_CFLAGS
1053 DBUS_OBJ
1054 DBUS_LIBS
1055 DBUS_CFLAGS
1056 GTK_OBJ
1057 GTK_LIBS
1058 GTK_CFLAGS
1059 IMAGEMAGICK_LIBS
1060 IMAGEMAGICK_CFLAGS
1061 RSVG_LIBS
1062 RSVG_CFLAGS
1063 VMLIMIT_OBJ
1064 GMALLOC_OBJ
1065 HAVE_XSERVER
1066 LIB_STANDARD
1067 NS_SUPPORT
1068 NS_OBJC_OBJ
1069 NS_OBJ
1070 TEMACS_LDFLAGS2
1071 LD_SWITCH_X_SITE_AUX_RPATH
1072 LD_SWITCH_X_SITE_AUX
1073 XMKMF
1074 DEPFLAGS
1075 MKDEPDIR
1076 CFLAGS_SOUND
1077 ALSA_LIBS
1078 ALSA_CFLAGS
1079 PKG_CONFIG
1080 LIBSOUND
1081 START_FILES
1082 LIB_MATH
1083 CRT_DIR
1084 LIBS_SYSTEM
1085 C_SWITCH_SYSTEM
1086 UNEXEC_OBJ
1087 C_SWITCH_MACHINE
1088 LD_SWITCH_SYSTEM
1089 CANNOT_DUMP
1090 HAVE_MAKEINFO
1091 GZIP_PROG
1092 INSTALL_INFO
1093 C_WARNINGS_SWITCH
1094 EGREP
1095 GREP
1097 RANLIB
1098 am__fastdepCC_FALSE
1099 am__fastdepCC_TRUE
1100 CCDEPMODE
1101 AMDEPBACKSLASH
1102 AMDEP_FALSE
1103 AMDEP_TRUE
1104 am__quote
1105 am__include
1106 DEPDIR
1107 OBJEXT
1108 EXEEXT
1109 ac_ct_CC
1110 CPPFLAGS
1111 LDFLAGS
1112 CFLAGS
1114 host_os
1115 host_vendor
1116 host_cpu
1117 host
1118 build_os
1119 build_vendor
1120 build_cpu
1121 build
1122 PROFILING_CFLAGS
1123 MAINT
1124 GZIP_INFO
1125 am__untar
1126 am__tar
1127 AMTAR
1128 am__leading_dot
1129 SET_MAKE
1131 mkdir_p
1132 MKDIR_P
1133 INSTALL_STRIP_PROGRAM
1134 STRIP
1135 install_sh
1136 MAKEINFO
1137 AUTOHEADER
1138 AUTOMAKE
1139 AUTOCONF
1140 ACLOCAL
1141 VERSION
1142 PACKAGE
1143 CYGPATH_W
1144 am__isrc
1145 INSTALL_DATA
1146 INSTALL_SCRIPT
1147 INSTALL_PROGRAM
1148 target_alias
1149 host_alias
1150 build_alias
1151 LIBS
1152 ECHO_T
1153 ECHO_N
1154 ECHO_C
1155 DEFS
1156 mandir
1157 localedir
1158 libdir
1159 psdir
1160 pdfdir
1161 dvidir
1162 htmldir
1163 infodir
1164 docdir
1165 oldincludedir
1166 includedir
1167 localstatedir
1168 sharedstatedir
1169 sysconfdir
1170 datadir
1171 datarootdir
1172 libexecdir
1173 sbindir
1174 bindir
1175 program_transform_name
1176 prefix
1177 exec_prefix
1178 PACKAGE_URL
1179 PACKAGE_BUGREPORT
1180 PACKAGE_STRING
1181 PACKAGE_VERSION
1182 PACKAGE_TARNAME
1183 PACKAGE_NAME
1184 PATH_SEPARATOR
1185 SHELL'
1186 ac_subst_files='deps_frag
1187 ns_frag'
1188 ac_user_opts='
1189 enable_option_checking
1190 with_pop
1191 with_kerberos
1192 with_kerberos5
1193 with_hesiod
1194 with_mmdf
1195 with_mail_unlink
1196 with_mailhost
1197 with_sound
1198 with_sync_input
1199 with_x_toolkit
1200 with_xpm
1201 with_jpeg
1202 with_tiff
1203 with_gif
1204 with_png
1205 with_rsvg
1206 with_xml2
1207 with_imagemagick
1208 with_xft
1209 with_libotf
1210 with_m17n_flt
1211 with_toolkit_scroll_bars
1212 with_xaw3d
1213 with_xim
1214 with_ns
1215 with_gpm
1216 with_dbus
1217 with_gconf
1218 with_selinux
1219 with_gnutls
1220 with_makeinfo
1221 with_compress_info
1222 with_pkg_config_prog
1223 with_crt_dir
1224 with_gameuser
1225 with_gnustep_conf
1226 enable_ns_self_contained
1227 enable_asserts
1228 enable_maintainer_mode
1229 enable_locallisppath
1230 enable_checking
1231 enable_use_lisp_union_type
1232 enable_profiling
1233 enable_autodepend
1234 enable_dependency_tracking
1235 enable_largefile
1236 with_x
1238 ac_precious_vars='build_alias
1239 host_alias
1240 target_alias
1242 CFLAGS
1243 LDFLAGS
1244 LIBS
1245 CPPFLAGS
1247 XMKMF'
1250 # Initialize some variables set by options.
1251 ac_init_help=
1252 ac_init_version=false
1253 ac_unrecognized_opts=
1254 ac_unrecognized_sep=
1255 # The variables have the same names as the options, with
1256 # dashes changed to underlines.
1257 cache_file=/dev/null
1258 exec_prefix=NONE
1259 no_create=
1260 no_recursion=
1261 prefix=NONE
1262 program_prefix=NONE
1263 program_suffix=NONE
1264 program_transform_name=s,x,x,
1265 silent=
1266 site=
1267 srcdir=
1268 verbose=
1269 x_includes=NONE
1270 x_libraries=NONE
1272 # Installation directory options.
1273 # These are left unexpanded so users can "make install exec_prefix=/foo"
1274 # and all the variables that are supposed to be based on exec_prefix
1275 # by default will actually change.
1276 # Use braces instead of parens because sh, perl, etc. also accept them.
1277 # (The list follows the same order as the GNU Coding Standards.)
1278 bindir='${exec_prefix}/bin'
1279 sbindir='${exec_prefix}/sbin'
1280 libexecdir='${exec_prefix}/libexec'
1281 datarootdir='${prefix}/share'
1282 datadir='${datarootdir}'
1283 sysconfdir='${prefix}/etc'
1284 sharedstatedir='${prefix}/com'
1285 localstatedir='${prefix}/var'
1286 includedir='${prefix}/include'
1287 oldincludedir='/usr/include'
1288 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1289 infodir='${datarootdir}/info'
1290 htmldir='${docdir}'
1291 dvidir='${docdir}'
1292 pdfdir='${docdir}'
1293 psdir='${docdir}'
1294 libdir='${exec_prefix}/lib'
1295 localedir='${datarootdir}/locale'
1296 mandir='${datarootdir}/man'
1298 ac_prev=
1299 ac_dashdash=
1300 for ac_option
1302 # If the previous option needs an argument, assign it.
1303 if test -n "$ac_prev"; then
1304 eval $ac_prev=\$ac_option
1305 ac_prev=
1306 continue
1309 case $ac_option in
1310 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1311 *) ac_optarg=yes ;;
1312 esac
1314 # Accept the important Cygnus configure options, so we can diagnose typos.
1316 case $ac_dashdash$ac_option in
1318 ac_dashdash=yes ;;
1320 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1321 ac_prev=bindir ;;
1322 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1323 bindir=$ac_optarg ;;
1325 -build | --build | --buil | --bui | --bu)
1326 ac_prev=build_alias ;;
1327 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1328 build_alias=$ac_optarg ;;
1330 -cache-file | --cache-file | --cache-fil | --cache-fi \
1331 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1332 ac_prev=cache_file ;;
1333 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1334 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1335 cache_file=$ac_optarg ;;
1337 --config-cache | -C)
1338 cache_file=config.cache ;;
1340 -datadir | --datadir | --datadi | --datad)
1341 ac_prev=datadir ;;
1342 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1343 datadir=$ac_optarg ;;
1345 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1346 | --dataroo | --dataro | --datar)
1347 ac_prev=datarootdir ;;
1348 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1349 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1350 datarootdir=$ac_optarg ;;
1352 -disable-* | --disable-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error "invalid feature name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1361 "enable_$ac_useropt"
1362 "*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval enable_$ac_useropt=no ;;
1368 -docdir | --docdir | --docdi | --doc | --do)
1369 ac_prev=docdir ;;
1370 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1371 docdir=$ac_optarg ;;
1373 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1374 ac_prev=dvidir ;;
1375 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1376 dvidir=$ac_optarg ;;
1378 -enable-* | --enable-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error "invalid feature name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1387 "enable_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval enable_$ac_useropt=\$ac_optarg ;;
1394 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1395 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1396 | --exec | --exe | --ex)
1397 ac_prev=exec_prefix ;;
1398 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1399 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1400 | --exec=* | --exe=* | --ex=*)
1401 exec_prefix=$ac_optarg ;;
1403 -gas | --gas | --ga | --g)
1404 # Obsolete; use --with-gas.
1405 with_gas=yes ;;
1407 -help | --help | --hel | --he | -h)
1408 ac_init_help=long ;;
1409 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1410 ac_init_help=recursive ;;
1411 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1412 ac_init_help=short ;;
1414 -host | --host | --hos | --ho)
1415 ac_prev=host_alias ;;
1416 -host=* | --host=* | --hos=* | --ho=*)
1417 host_alias=$ac_optarg ;;
1419 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1420 ac_prev=htmldir ;;
1421 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1422 | --ht=*)
1423 htmldir=$ac_optarg ;;
1425 -includedir | --includedir | --includedi | --included | --include \
1426 | --includ | --inclu | --incl | --inc)
1427 ac_prev=includedir ;;
1428 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1429 | --includ=* | --inclu=* | --incl=* | --inc=*)
1430 includedir=$ac_optarg ;;
1432 -infodir | --infodir | --infodi | --infod | --info | --inf)
1433 ac_prev=infodir ;;
1434 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1435 infodir=$ac_optarg ;;
1437 -libdir | --libdir | --libdi | --libd)
1438 ac_prev=libdir ;;
1439 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1440 libdir=$ac_optarg ;;
1442 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1443 | --libexe | --libex | --libe)
1444 ac_prev=libexecdir ;;
1445 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1446 | --libexe=* | --libex=* | --libe=*)
1447 libexecdir=$ac_optarg ;;
1449 -localedir | --localedir | --localedi | --localed | --locale)
1450 ac_prev=localedir ;;
1451 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1452 localedir=$ac_optarg ;;
1454 -localstatedir | --localstatedir | --localstatedi | --localstated \
1455 | --localstate | --localstat | --localsta | --localst | --locals)
1456 ac_prev=localstatedir ;;
1457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1458 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1459 localstatedir=$ac_optarg ;;
1461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1462 ac_prev=mandir ;;
1463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1464 mandir=$ac_optarg ;;
1466 -nfp | --nfp | --nf)
1467 # Obsolete; use --without-fp.
1468 with_fp=no ;;
1470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1471 | --no-cr | --no-c | -n)
1472 no_create=yes ;;
1474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1476 no_recursion=yes ;;
1478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1480 | --oldin | --oldi | --old | --ol | --o)
1481 ac_prev=oldincludedir ;;
1482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1485 oldincludedir=$ac_optarg ;;
1487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1488 ac_prev=prefix ;;
1489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1490 prefix=$ac_optarg ;;
1492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1493 | --program-pre | --program-pr | --program-p)
1494 ac_prev=program_prefix ;;
1495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1497 program_prefix=$ac_optarg ;;
1499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1500 | --program-suf | --program-su | --program-s)
1501 ac_prev=program_suffix ;;
1502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1504 program_suffix=$ac_optarg ;;
1506 -program-transform-name | --program-transform-name \
1507 | --program-transform-nam | --program-transform-na \
1508 | --program-transform-n | --program-transform- \
1509 | --program-transform | --program-transfor \
1510 | --program-transfo | --program-transf \
1511 | --program-trans | --program-tran \
1512 | --progr-tra | --program-tr | --program-t)
1513 ac_prev=program_transform_name ;;
1514 -program-transform-name=* | --program-transform-name=* \
1515 | --program-transform-nam=* | --program-transform-na=* \
1516 | --program-transform-n=* | --program-transform-=* \
1517 | --program-transform=* | --program-transfor=* \
1518 | --program-transfo=* | --program-transf=* \
1519 | --program-trans=* | --program-tran=* \
1520 | --progr-tra=* | --program-tr=* | --program-t=*)
1521 program_transform_name=$ac_optarg ;;
1523 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1524 ac_prev=pdfdir ;;
1525 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1526 pdfdir=$ac_optarg ;;
1528 -psdir | --psdir | --psdi | --psd | --ps)
1529 ac_prev=psdir ;;
1530 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1531 psdir=$ac_optarg ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1535 silent=yes ;;
1537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1538 ac_prev=sbindir ;;
1539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1540 | --sbi=* | --sb=*)
1541 sbindir=$ac_optarg ;;
1543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1545 | --sharedst | --shareds | --shared | --share | --shar \
1546 | --sha | --sh)
1547 ac_prev=sharedstatedir ;;
1548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1551 | --sha=* | --sh=*)
1552 sharedstatedir=$ac_optarg ;;
1554 -site | --site | --sit)
1555 ac_prev=site ;;
1556 -site=* | --site=* | --sit=*)
1557 site=$ac_optarg ;;
1559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1560 ac_prev=srcdir ;;
1561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1562 srcdir=$ac_optarg ;;
1564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1565 | --syscon | --sysco | --sysc | --sys | --sy)
1566 ac_prev=sysconfdir ;;
1567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1569 sysconfdir=$ac_optarg ;;
1571 -target | --target | --targe | --targ | --tar | --ta | --t)
1572 ac_prev=target_alias ;;
1573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1574 target_alias=$ac_optarg ;;
1576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1577 verbose=yes ;;
1579 -version | --version | --versio | --versi | --vers | -V)
1580 ac_init_version=: ;;
1582 -with-* | --with-*)
1583 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1584 # Reject names that are not valid shell variable names.
1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586 as_fn_error "invalid package name: $ac_useropt"
1587 ac_useropt_orig=$ac_useropt
1588 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589 case $ac_user_opts in
1591 "with_$ac_useropt"
1592 "*) ;;
1593 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1594 ac_unrecognized_sep=', ';;
1595 esac
1596 eval with_$ac_useropt=\$ac_optarg ;;
1598 -without-* | --without-*)
1599 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1600 # Reject names that are not valid shell variable names.
1601 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1602 as_fn_error "invalid package name: $ac_useropt"
1603 ac_useropt_orig=$ac_useropt
1604 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1605 case $ac_user_opts in
1607 "with_$ac_useropt"
1608 "*) ;;
1609 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1610 ac_unrecognized_sep=', ';;
1611 esac
1612 eval with_$ac_useropt=no ;;
1614 --x)
1615 # Obsolete; use --with-x.
1616 with_x=yes ;;
1618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1619 | --x-incl | --x-inc | --x-in | --x-i)
1620 ac_prev=x_includes ;;
1621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1623 x_includes=$ac_optarg ;;
1625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1627 ac_prev=x_libraries ;;
1628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1630 x_libraries=$ac_optarg ;;
1632 -*) as_fn_error "unrecognized option: \`$ac_option'
1633 Try \`$0 --help' for more information."
1636 *=*)
1637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1638 # Reject names that are not valid shell variable names.
1639 case $ac_envvar in #(
1640 '' | [0-9]* | *[!_$as_cr_alnum]* )
1641 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1642 esac
1643 eval $ac_envvar=\$ac_optarg
1644 export $ac_envvar ;;
1647 # FIXME: should be removed in autoconf 3.0.
1648 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1650 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1654 esac
1655 done
1657 if test -n "$ac_prev"; then
1658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1659 as_fn_error "missing argument to $ac_option"
1662 if test -n "$ac_unrecognized_opts"; then
1663 case $enable_option_checking in
1664 no) ;;
1665 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1666 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1667 esac
1670 # Check all directory arguments for consistency.
1671 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1672 datadir sysconfdir sharedstatedir localstatedir includedir \
1673 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1674 libdir localedir mandir
1676 eval ac_val=\$$ac_var
1677 # Remove trailing slashes.
1678 case $ac_val in
1679 */ )
1680 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1681 eval $ac_var=\$ac_val;;
1682 esac
1683 # Be sure to have absolute directory names.
1684 case $ac_val in
1685 [\\/$]* | ?:[\\/]* ) continue;;
1686 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1687 esac
1688 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1689 done
1691 # There might be people who depend on the old broken behavior: `$host'
1692 # used to hold the argument of --host etc.
1693 # FIXME: To remove some day.
1694 build=$build_alias
1695 host=$host_alias
1696 target=$target_alias
1698 # FIXME: To remove some day.
1699 if test "x$host_alias" != x; then
1700 if test "x$build_alias" = x; then
1701 cross_compiling=maybe
1702 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1703 If a cross compiler is detected then cross compile mode will be used." >&2
1704 elif test "x$build_alias" != "x$host_alias"; then
1705 cross_compiling=yes
1709 ac_tool_prefix=
1710 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712 test "$silent" = yes && exec 6>/dev/null
1715 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1716 ac_ls_di=`ls -di .` &&
1717 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1718 as_fn_error "working directory cannot be determined"
1719 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1720 as_fn_error "pwd does not report name of working directory"
1723 # Find the source files, if location was not specified.
1724 if test -z "$srcdir"; then
1725 ac_srcdir_defaulted=yes
1726 # Try the directory containing this script, then the parent directory.
1727 ac_confdir=`$as_dirname -- "$as_myself" ||
1728 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1729 X"$as_myself" : 'X\(//\)[^/]' \| \
1730 X"$as_myself" : 'X\(//\)$' \| \
1731 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1732 $as_echo X"$as_myself" |
1733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1734 s//\1/
1737 /^X\(\/\/\)[^/].*/{
1738 s//\1/
1741 /^X\(\/\/\)$/{
1742 s//\1/
1745 /^X\(\/\).*/{
1746 s//\1/
1749 s/.*/./; q'`
1750 srcdir=$ac_confdir
1751 if test ! -r "$srcdir/$ac_unique_file"; then
1752 srcdir=..
1754 else
1755 ac_srcdir_defaulted=no
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1759 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1761 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1762 ac_abs_confdir=`(
1763 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1764 pwd)`
1765 # When building in place, set srcdir=.
1766 if test "$ac_abs_confdir" = "$ac_pwd"; then
1767 srcdir=.
1769 # Remove unnecessary trailing slashes from srcdir.
1770 # Double slashes in file names in object file debugging info
1771 # mess up M-x gdb in Emacs.
1772 case $srcdir in
1773 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1774 esac
1775 for ac_var in $ac_precious_vars; do
1776 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1777 eval ac_env_${ac_var}_value=\$${ac_var}
1778 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1779 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1780 done
1783 # Report the --help message.
1785 if test "$ac_init_help" = "long"; then
1786 # Omit some internal or obsolete options to make the list less imposing.
1787 # This message is too long to be a string in the A/UX 3.1 sh.
1788 cat <<_ACEOF
1789 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1791 Usage: $0 [OPTION]... [VAR=VALUE]...
1793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1794 VAR=VALUE. See below for descriptions of some of the useful variables.
1796 Defaults for the options are specified in brackets.
1798 Configuration:
1799 -h, --help display this help and exit
1800 --help=short display options specific to this package
1801 --help=recursive display the short help of all the included packages
1802 -V, --version display version information and exit
1803 -q, --quiet, --silent do not print \`checking...' messages
1804 --cache-file=FILE cache test results in FILE [disabled]
1805 -C, --config-cache alias for \`--cache-file=config.cache'
1806 -n, --no-create do not create output files
1807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809 Installation directories:
1810 --prefix=PREFIX install architecture-independent files in PREFIX
1811 [$ac_default_prefix]
1812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1813 [PREFIX]
1815 By default, \`make install' will install all the files in
1816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1818 for instance \`--prefix=\$HOME'.
1820 For better control, use the options below.
1822 Fine tuning of the installation directories:
1823 --bindir=DIR user executables [EPREFIX/bin]
1824 --sbindir=DIR system admin executables [EPREFIX/sbin]
1825 --libexecdir=DIR program executables [EPREFIX/libexec]
1826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1829 --libdir=DIR object code libraries [EPREFIX/lib]
1830 --includedir=DIR C header files [PREFIX/include]
1831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1832 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1833 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1834 --infodir=DIR info documentation [DATAROOTDIR/info]
1835 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1836 --mandir=DIR man documentation [DATAROOTDIR/man]
1837 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1838 --htmldir=DIR html documentation [DOCDIR]
1839 --dvidir=DIR dvi documentation [DOCDIR]
1840 --pdfdir=DIR pdf documentation [DOCDIR]
1841 --psdir=DIR ps documentation [DOCDIR]
1842 _ACEOF
1844 cat <<\_ACEOF
1846 Program names:
1847 --program-prefix=PREFIX prepend PREFIX to installed program names
1848 --program-suffix=SUFFIX append SUFFIX to installed program names
1849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1851 X features:
1852 --x-includes=DIR X include files are in DIR
1853 --x-libraries=DIR X library files are in DIR
1855 System types:
1856 --build=BUILD configure for building on BUILD [guessed]
1857 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1858 _ACEOF
1861 if test -n "$ac_init_help"; then
1862 case $ac_init_help in
1863 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1864 esac
1865 cat <<\_ACEOF
1867 Optional Features:
1868 --disable-option-checking ignore unrecognized --enable/--with options
1869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1871 --disable-ns-self-contained
1872 disable self contained build under NeXTstep
1873 --enable-asserts compile code with asserts enabled
1874 --enable-maintainer-mode
1875 enable make rules and dependencies not useful (and
1876 sometimes confusing) to the casual installer
1877 --enable-locallisppath=PATH
1878 directories Emacs should search for lisp files
1879 specific to this site
1880 --enable-checking[=LIST]
1881 enable expensive run-time checks. With LIST, enable
1882 only specific categories of checks. Categories are:
1883 all,yes,no. Flags are: stringbytes, stringoverrun,
1884 stringfreelist, xmallocoverrun, conslist
1885 --enable-use-lisp-union-type
1886 use a union for the Lisp_Object data type. This is
1887 only useful for development for catching certain
1888 types of bugs.
1889 --enable-profiling build emacs with profiling support. This might not
1890 work on all platforms
1891 --enable-autodepend automatically generate dependencies to .h-files.
1892 Requires GNU Make and Gcc. Enabled if GNU Make and
1893 Gcc is found
1894 --disable-dependency-tracking speeds up one-time build
1895 --enable-dependency-tracking do not reject slow dependency extractors
1896 --disable-largefile omit support for large files
1898 Optional Packages:
1899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1901 --without-pop don't support POP mail retrieval with movemail
1902 --with-kerberos support Kerberos-authenticated POP
1903 --with-kerberos5 support Kerberos version 5 authenticated POP
1904 --with-hesiod support Hesiod to get the POP server host
1905 --with-mmdf support MMDF mailboxes
1906 --with-mail-unlink unlink, rather than empty, mail spool after reading
1907 --with-mailhost=HOSTNAME
1908 string giving default POP mail host
1909 --without-sound don't compile with sound support
1910 --without-sync-input process async input synchronously
1911 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1912 lucid or athena, motif, no)
1913 --without-xpm don't compile with XPM image support
1914 --without-jpeg don't compile with JPEG image support
1915 --without-tiff don't compile with TIFF image support
1916 --without-gif don't compile with GIF image support
1917 --without-png don't compile with PNG image support
1918 --without-rsvg don't compile with SVG image support
1919 --without-xml2 don't compile with XML parsing support
1920 --without-imagemagick don't compile with ImageMagick image support
1921 --without-xft don't use XFT for anti aliased fonts
1922 --without-libotf don't use libotf for OpenType font support
1923 --without-m17n-flt don't use m17n-flt for text shaping
1924 --without-toolkit-scroll-bars
1925 don't use Motif or Xaw3d scroll bars
1926 --without-xaw3d don't use Xaw3d
1927 --without-xim don't use X11 XIM
1928 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1929 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1930 console
1931 --without-dbus don't compile with D-Bus support
1932 --without-gconf don't compile with GConf support
1933 --without-selinux don't compile with SELinux support
1934 --without-gnutls don't use -lgnutls for SSL/TLS support
1935 --without-makeinfo don't require makeinfo for building manuals
1936 --without-compress-info don't compress the installed Info pages
1937 --with-pkg-config-prog=PATH
1938 path to pkg-config for finding GTK and librsvg
1939 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1940 /usr/lib, or /usr/lib64 on some platforms.
1941 --with-gameuser=USER user for shared game score files
1942 --with-gnustep-conf=PATH
1943 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1944 or /etc/GNUstep/GNUstep.conf
1945 --with-x use the X Window System
1947 Some influential environment variables:
1948 CC C compiler command
1949 CFLAGS C compiler flags
1950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1951 nonstandard directory <lib dir>
1952 LIBS libraries to pass to the linker, e.g. -l<library>
1953 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1954 you have headers in a nonstandard directory <include dir>
1955 CPP C preprocessor
1956 XMKMF Path to xmkmf, Makefile generator for X Window System
1958 Use these variables to override the choices made by `configure' or to help
1959 it to find libraries and programs with nonstandard names/locations.
1961 Report bugs to the package provider.
1962 _ACEOF
1963 ac_status=$?
1966 if test "$ac_init_help" = "recursive"; then
1967 # If there are subdirs, report their specific --help.
1968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1969 test -d "$ac_dir" ||
1970 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1971 continue
1972 ac_builddir=.
1974 case "$ac_dir" in
1975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1978 # A ".." for each directory in $ac_dir_suffix.
1979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1980 case $ac_top_builddir_sub in
1981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1983 esac ;;
1984 esac
1985 ac_abs_top_builddir=$ac_pwd
1986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1987 # for backward compatibility:
1988 ac_top_builddir=$ac_top_build_prefix
1990 case $srcdir in
1991 .) # We are building in place.
1992 ac_srcdir=.
1993 ac_top_srcdir=$ac_top_builddir_sub
1994 ac_abs_top_srcdir=$ac_pwd ;;
1995 [\\/]* | ?:[\\/]* ) # Absolute name.
1996 ac_srcdir=$srcdir$ac_dir_suffix;
1997 ac_top_srcdir=$srcdir
1998 ac_abs_top_srcdir=$srcdir ;;
1999 *) # Relative name.
2000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001 ac_top_srcdir=$ac_top_build_prefix$srcdir
2002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2003 esac
2004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2006 cd "$ac_dir" || { ac_status=$?; continue; }
2007 # Check for guested configure.
2008 if test -f "$ac_srcdir/configure.gnu"; then
2009 echo &&
2010 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011 elif test -f "$ac_srcdir/configure"; then
2012 echo &&
2013 $SHELL "$ac_srcdir/configure" --help=recursive
2014 else
2015 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2016 fi || ac_status=$?
2017 cd "$ac_pwd" || { ac_status=$?; break; }
2018 done
2021 test -n "$ac_init_help" && exit $ac_status
2022 if $ac_init_version; then
2023 cat <<\_ACEOF
2024 emacs configure 24.0.50
2025 generated by GNU Autoconf 2.65
2027 Copyright (C) 2009 Free Software Foundation, Inc.
2028 This configure script is free software; the Free Software Foundation
2029 gives unlimited permission to copy, distribute and modify it.
2030 _ACEOF
2031 exit
2034 ## ------------------------ ##
2035 ## Autoconf initialization. ##
2036 ## ------------------------ ##
2038 # ac_fn_c_try_compile LINENO
2039 # --------------------------
2040 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_compile ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 rm -f conftest.$ac_objext
2045 if { { ac_try="$ac_compile"
2046 case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_compile") 2>conftest.err
2053 ac_status=$?
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest.$ac_objext; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 ac_retval=1
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_compile
2076 # ac_fn_c_try_cpp LINENO
2077 # ----------------------
2078 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_c_try_cpp ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } >/dev/null && {
2098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 }; then :
2101 ac_retval=0
2102 else
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 ac_retval=1
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109 as_fn_set_status $ac_retval
2111 } # ac_fn_c_try_cpp
2113 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116 # the include files in INCLUDES and setting the cache variable VAR
2117 # accordingly.
2118 ac_fn_c_check_header_mongrel ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 else
2131 # Is the header compilable?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133 $as_echo_n "checking $2 usability... " >&6; }
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_header_compiler=yes
2141 else
2142 ac_header_compiler=no
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146 $as_echo "$ac_header_compiler" >&6; }
2148 # Is the header present?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150 $as_echo_n "checking $2 presence... " >&6; }
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_cpp "$LINENO"; then :
2156 ac_header_preproc=yes
2157 else
2158 ac_header_preproc=no
2160 rm -f conftest.err conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162 $as_echo "$ac_header_preproc" >&6; }
2164 # So? What about this header?
2165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2166 yes:no: )
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172 no:yes:* )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 esac
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 eval "$3=\$ac_header_compiler"
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 } # ac_fn_c_check_header_mongrel
2200 # ac_fn_c_try_run LINENO
2201 # ----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2203 # that executables *can* be run.
2204 ac_fn_c_try_run ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { { ac_try="$ac_link"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>&5
2215 ac_status=$?
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218 { { case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; }; }; then :
2228 ac_retval=0
2229 else
2230 $as_echo "$as_me: program exited with status $ac_status" >&5
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2234 ac_retval=$ac_status
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_try_run
2242 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2243 # -------------------------------------------------------
2244 # Tests whether HEADER exists and can be compiled using the include files in
2245 # INCLUDES, setting the cache variable VAR accordingly.
2246 ac_fn_c_check_header_compile ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2257 #include <$2>
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 eval "$3=yes"
2261 else
2262 eval "$3=no"
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_check_header_compile
2273 # ac_fn_c_try_link LINENO
2274 # -----------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_c_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2281 case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2288 ac_status=$?
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 $as_test_x conftest$ac_exeext
2301 }; then :
2302 ac_retval=0
2303 else
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_retval=1
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_try_link
2319 # ac_fn_c_check_decl LINENO SYMBOL VAR
2320 # ------------------------------------
2321 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2322 ac_fn_c_check_decl ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2326 $as_echo_n "checking whether $2 is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 #ifndef $2
2337 (void) $2;
2338 #endif
2341 return 0;
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 eval "$3=yes"
2346 else
2347 eval "$3=no"
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_check_decl
2358 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2359 # ----------------------------------------------
2360 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2361 ac_fn_c_check_header_preproc ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 #include <$2>
2372 _ACEOF
2373 if ac_fn_c_try_cpp "$LINENO"; then :
2374 eval "$3=yes"
2375 else
2376 eval "$3=no"
2378 rm -f conftest.err conftest.$ac_ext
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_check_header_preproc
2387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2388 # ----------------------------------------------------
2389 # Tries to find if the field MEMBER exists in type AGGR, after including
2390 # INCLUDES, setting cache variable VAR accordingly.
2391 ac_fn_c_check_member ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2395 $as_echo_n "checking for $2.$3... " >&6; }
2396 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2403 main ()
2405 static $2 ac_aggr;
2406 if (ac_aggr.$3)
2407 return 0;
2409 return 0;
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 eval "$4=yes"
2414 else
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2419 main ()
2421 static $2 ac_aggr;
2422 if (sizeof ac_aggr.$3)
2423 return 0;
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$4=yes"
2430 else
2431 eval "$4=no"
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval ac_res=\$$4
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_member
2444 # ac_fn_c_check_func LINENO FUNC VAR
2445 # ----------------------------------
2446 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2447 ac_fn_c_check_func ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2459 #define $2 innocuous_$2
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $2 (); below.
2463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 <limits.h> exists even on freestanding compilers. */
2466 #ifdef __STDC__
2467 # include <limits.h>
2468 #else
2469 # include <assert.h>
2470 #endif
2472 #undef $2
2474 /* Override any GCC internal prototype to avoid an error.
2475 Use char because int might match the return type of a GCC
2476 builtin and then its argument prototype would still apply. */
2477 #ifdef __cplusplus
2478 extern "C"
2479 #endif
2480 char $2 ();
2481 /* The GNU C library defines this for functions which it implements
2482 to always fail with ENOSYS. Some functions are actually named
2483 something starting with __ and the normal name is an alias. */
2484 #if defined __stub_$2 || defined __stub___$2
2485 choke me
2486 #endif
2489 main ()
2491 return $2 ();
2493 return 0;
2495 _ACEOF
2496 if ac_fn_c_try_link "$LINENO"; then :
2497 eval "$3=yes"
2498 else
2499 eval "$3=no"
2501 rm -f core conftest.err conftest.$ac_objext \
2502 conftest$ac_exeext conftest.$ac_ext
2504 eval ac_res=\$$3
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_func
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 eval "$3=no"
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 main ()
2530 if (sizeof ($2))
2531 return 0;
2533 return 0;
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2541 main ()
2543 if (sizeof (($2)))
2544 return 0;
2546 return 0;
2548 _ACEOF
2549 if ac_fn_c_try_compile "$LINENO"; then :
2551 else
2552 eval "$3=yes"
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 eval ac_res=\$$3
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_type
2565 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2566 # --------------------------------------------
2567 # Tries to find the compile-time value of EXPR in a program that includes
2568 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2569 # computed
2570 ac_fn_c_compute_int ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 if test "$cross_compiling" = yes; then
2574 # Depending upon the size, compute the lo and hi bounds.
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2579 main ()
2581 static int test_array [1 - 2 * !(($2) >= 0)];
2582 test_array [0] = 0
2585 return 0;
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_lo=0 ac_mid=0
2590 while :; do
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2595 main ()
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2598 test_array [0] = 0
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2606 else
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2609 ac_lo= ac_hi=
2610 break
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 done
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2621 main ()
2623 static int test_array [1 - 2 * !(($2) < 0)];
2624 test_array [0] = 0
2627 return 0;
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_hi=-1 ac_mid=-1
2632 while :; do
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2640 test_array [0] = 0
2643 return 0;
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=$ac_mid; break
2648 else
2649 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2650 if test $ac_mid -le $ac_hi; then
2651 ac_lo= ac_hi=
2652 break
2654 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 done
2658 else
2659 ac_lo= ac_hi=
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 # Binary search between lo and hi bounds.
2665 while test "x$ac_lo" != "x$ac_hi"; do
2666 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2671 main ()
2673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674 test_array [0] = 0
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid
2682 else
2683 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687 case $ac_lo in #((
2688 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2689 '') ac_retval=1 ;;
2690 esac
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2695 static long int longval () { return $2; }
2696 static unsigned long int ulongval () { return $2; }
2697 #include <stdio.h>
2698 #include <stdlib.h>
2700 main ()
2703 FILE *f = fopen ("conftest.val", "w");
2704 if (! f)
2705 return 1;
2706 if (($2) < 0)
2708 long int i = longval ();
2709 if (i != ($2))
2710 return 1;
2711 fprintf (f, "%ld", i);
2713 else
2715 unsigned long int i = ulongval ();
2716 if (i != ($2))
2717 return 1;
2718 fprintf (f, "%lu", i);
2720 /* Do not output a trailing newline, as this causes \r\n confusion
2721 on some platforms. */
2722 return ferror (f) || fclose (f) != 0;
2725 return 0;
2727 _ACEOF
2728 if ac_fn_c_try_run "$LINENO"; then :
2729 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2730 else
2731 ac_retval=1
2733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2734 conftest.$ac_objext conftest.beam conftest.$ac_ext
2735 rm -f conftest.val
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 as_fn_set_status $ac_retval
2741 } # ac_fn_c_compute_int
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by emacs $as_me 24.0.50, which was
2747 generated by GNU Autoconf 2.65. Invocation command line was
2749 $ $0 $@
2751 _ACEOF
2752 exec 5>>config.log
2754 cat <<_ASUNAME
2755 ## --------- ##
2756 ## Platform. ##
2757 ## --------- ##
2759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2776 _ASUNAME
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2784 done
2785 IFS=$as_save_IFS
2787 } >&5
2789 cat >&5 <<_ACEOF
2792 ## ----------- ##
2793 ## Core tests. ##
2794 ## ----------- ##
2796 _ACEOF
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2804 ac_configure_args=
2805 ac_configure_args0=
2806 ac_configure_args1=
2807 ac_must_keep_next=false
2808 for ac_pass in 1 2
2810 for ac_arg
2812 case $ac_arg in
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2816 continue ;;
2817 *\'*)
2818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 esac
2820 case $ac_pass in
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2826 else
2827 case $ac_arg in
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2834 esac
2836 -* ) ac_must_keep_next=true ;;
2837 esac
2839 as_fn_append ac_configure_args " '$ac_arg'"
2841 esac
2842 done
2843 done
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2855 echo
2857 cat <<\_ASBOX
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2861 _ASBOX
2862 echo
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2867 case $ac_val in #(
2868 *${as_nl}*)
2869 case $ac_var in #(
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872 esac
2873 case $ac_var in #(
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2877 esac ;;
2878 esac
2879 done
2880 (set) 2>&1 |
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2883 sed -n \
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886 ;; #(
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2890 esac |
2891 sort
2893 echo
2895 cat <<\_ASBOX
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2899 _ASBOX
2900 echo
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2904 case $ac_val in
2905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906 esac
2907 $as_echo "$ac_var='\''$ac_val'\''"
2908 done | sort
2909 echo
2911 if test -n "$ac_subst_files"; then
2912 cat <<\_ASBOX
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2916 _ASBOX
2917 echo
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2921 case $ac_val in
2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 esac
2924 $as_echo "$ac_var='\''$ac_val'\''"
2925 done | sort
2926 echo
2929 if test -s confdefs.h; then
2930 cat <<\_ASBOX
2931 ## ----------- ##
2932 ## confdefs.h. ##
2933 ## ----------- ##
2934 _ASBOX
2935 echo
2936 cat confdefs.h
2937 echo
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2942 } >&5
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2945 exit $exit_status
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2949 done
2950 ac_signal=0
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2965 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2969 _ACEOF
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2973 _ACEOF
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2977 _ACEOF
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2981 _ACEOF
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2986 ac_site_file1=NONE
2987 ac_site_file2=NONE
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2993 else
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3004 . "$ac_site_file"
3006 done
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special files
3010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3014 case $cache_file in
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3017 esac
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3022 >$cache_file
3025 as_fn_append ac_header_list " stdlib.h"
3026 as_fn_append ac_header_list " unistd.h"
3027 as_fn_append ac_header_list " sys/param.h"
3028 gl_getopt_required=GNU
3029 as_fn_append ac_header_list " getopt.h"
3030 as_fn_append ac_func_list " lstat"
3031 as_fn_append ac_func_list " alarm"
3032 as_fn_append ac_func_list " readlink"
3033 as_fn_append ac_header_list " sys/socket.h"
3034 as_fn_append ac_header_list " wchar.h"
3035 as_fn_append ac_header_list " stdint.h"
3036 as_fn_append ac_func_list " tzset"
3037 as_fn_append ac_func_list " symlink"
3038 as_fn_append ac_header_list " sys/stat.h"
3039 as_fn_append ac_header_list " sys/time.h"
3040 as_fn_append ac_func_list " localtime_r"
3041 # Check that the precious variables saved in the cache have kept the same
3042 # value.
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046 eval ac_new_set=\$ac_env_${ac_var}_set
3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048 eval ac_new_val=\$ac_env_${ac_var}_value
3049 case $ac_old_set,$ac_new_set in
3050 set,)
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3052 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053 ac_cache_corrupted=: ;;
3054 ,set)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3056 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3058 ,);;
3060 if test "x$ac_old_val" != "x$ac_new_val"; then
3061 # differences in whitespace do not lead to failure.
3062 ac_old_val_w=`echo x $ac_old_val`
3063 ac_new_val_w=`echo x $ac_new_val`
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3067 ac_cache_corrupted=:
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3074 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3077 fi;;
3078 esac
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3081 case $ac_new_val in
3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3084 esac
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3088 esac
3090 done
3091 if $ac_cache_corrupted; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3112 am__api_version='1.11'
3114 ac_aux_dir=
3115 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3116 for ac_t in install-sh install.sh shtool; do
3117 if test -f "$ac_dir/$ac_t"; then
3118 ac_aux_dir=$ac_dir
3119 ac_install_sh="$ac_aux_dir/$ac_t -c"
3120 break 2
3122 done
3123 done
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3143 # AIX /bin/install
3144 # AmigaOS /C/install, which installs bootblocks on floppy discs
3145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3148 # OS/2's system install, which has a completely different semantic
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 # Reject install programs that cannot install multiple files.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3152 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3153 if test -z "$INSTALL"; then
3154 if test "${ac_cv_path_install+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 # Account for people who put trailing slashes in PATH elements.
3163 case $as_dir/ in #((
3164 ./ | .// | /[cC]/* | \
3165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3166 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3167 /usr/ucb/* ) ;;
3169 # OSF1 and SCO ODT 3.0 have their own names for install.
3170 # Don't use installbsd from OSF since it installs stuff as root
3171 # by default.
3172 for ac_prog in ginstall scoinst install; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3175 if test $ac_prog = install &&
3176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # AIX install. It has an incompatible calling convention.
3179 elif test $ac_prog = install &&
3180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3181 # program-specific install script used by HP pwplus--don't use.
3183 else
3184 rm -rf conftest.one conftest.two conftest.dir
3185 echo one > conftest.one
3186 echo two > conftest.two
3187 mkdir conftest.dir
3188 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3189 test -s conftest.one && test -s conftest.two &&
3190 test -s conftest.dir/conftest.one &&
3191 test -s conftest.dir/conftest.two
3192 then
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3194 break 3
3198 done
3199 done
3201 esac
3203 done
3204 IFS=$as_save_IFS
3206 rm -rf conftest.one conftest.two conftest.dir
3209 if test "${ac_cv_path_install+set}" = set; then
3210 INSTALL=$ac_cv_path_install
3211 else
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for INSTALL within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 INSTALL=$ac_install_sh
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3220 $as_echo "$INSTALL" >&6; }
3222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3223 # It thinks the first close brace ends the variable substitution.
3224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3231 $as_echo_n "checking whether build environment is sane... " >&6; }
3232 # Just in case
3233 sleep 1
3234 echo timestamp > conftest.file
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3237 am_lf='
3239 case `pwd` in
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3242 esac
3243 case $srcdir in
3244 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3245 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3246 esac
3248 # Do `set' in a subshell so we don't clobber the current shell's
3249 # arguments. Must try -L first in case configure is actually a
3250 # symlink; some systems play weird games with the mod time of symlinks
3251 # (eg FreeBSD returns the mod time of the symlink's containing
3252 # directory).
3253 if (
3254 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3255 if test "$*" = "X"; then
3256 # -L didn't work.
3257 set X `ls -t "$srcdir/configure" conftest.file`
3259 rm -f conftest.file
3260 if test "$*" != "X $srcdir/configure conftest.file" \
3261 && test "$*" != "X conftest.file $srcdir/configure"; then
3263 # If neither matched, then we have a broken ls. This can happen
3264 # if, for instance, CONFIG_SHELL is bash and it inherits a
3265 # broken ls alias from the environment. This has actually
3266 # happened. Such a system could not be considered "sane".
3267 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3268 alias in your environment" "$LINENO" 5
3271 test "$2" = conftest.file
3273 then
3274 # Ok.
3276 else
3277 as_fn_error "newly created file is older than distributed files!
3278 Check your system clock" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 test "$program_prefix" != NONE &&
3283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE &&
3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3292 # expand $ac_aux_dir to an absolute path
3293 am_aux_dir=`cd $ac_aux_dir && pwd`
3295 if test x"${MISSING+set}" != xset; then
3296 case $am_aux_dir in
3297 *\ * | *\ *)
3298 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3300 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3301 esac
3303 # Use eval to expand $SHELL
3304 if eval "$MISSING --run true"; then
3305 am_missing_run="$MISSING --run "
3306 else
3307 am_missing_run=
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3309 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3312 if test x"${install_sh}" != xset; then
3313 case $am_aux_dir in
3314 *\ * | *\ *)
3315 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3317 install_sh="\${SHELL} $am_aux_dir/install-sh"
3318 esac
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'. However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}strip; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_STRIP+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$STRIP"; then
3335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_STRIP"; then
3366 ac_ct_STRIP=$STRIP
3367 # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_STRIP="strip"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_STRIP" = x; then
3404 STRIP=":"
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 STRIP=$ac_ct_STRIP
3414 else
3415 STRIP="$ac_cv_prog_STRIP"
3419 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3423 if test -z "$MKDIR_P"; then
3424 if test "${ac_cv_path_mkdir+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_prog in mkdir gmkdir; do
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3436 'mkdir (GNU coreutils) '* | \
3437 'mkdir (coreutils) '* | \
3438 'mkdir (fileutils) '4.1*)
3439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3440 break 3;;
3441 esac
3442 done
3443 done
3444 done
3445 IFS=$as_save_IFS
3449 test -d ./--version && rmdir ./--version
3450 if test "${ac_cv_path_mkdir+set}" = set; then
3451 MKDIR_P="$ac_cv_path_mkdir -p"
3452 else
3453 # As a last resort, use the slow shell script. Don't cache a
3454 # value for MKDIR_P within a source directory, because that will
3455 # break other packages using the cache if that directory is
3456 # removed, or if the value is a relative name.
3457 MKDIR_P="$ac_install_sh -d"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3461 $as_echo "$MKDIR_P" >&6; }
3464 mkdir_p="$MKDIR_P"
3465 case $mkdir_p in
3466 [\\/$]* | ?:[\\/]*) ;;
3467 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3468 esac
3470 for ac_prog in gawk mawk nawk awk
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_AWK+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$AWK"; then
3480 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_AWK="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3493 done
3494 done
3495 IFS=$as_save_IFS
3499 AWK=$ac_cv_prog_AWK
3500 if test -n "$AWK"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3502 $as_echo "$AWK" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$AWK" && break
3510 done
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3514 set x ${MAKE-make}
3515 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3516 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat >conftest.make <<\_ACEOF
3520 SHELL = /bin/sh
3521 all:
3522 @echo '@@@%%%=$(MAKE)=@@@%%%'
3523 _ACEOF
3524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3526 *@@@%%%=?*=@@@%%%*)
3527 eval ac_cv_prog_make_${ac_make}_set=yes;;
3529 eval ac_cv_prog_make_${ac_make}_set=no;;
3530 esac
3531 rm -f conftest.make
3533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3536 SET_MAKE=
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 SET_MAKE="MAKE=${MAKE-make}"
3543 rm -rf .tst 2>/dev/null
3544 mkdir .tst 2>/dev/null
3545 if test -d .tst; then
3546 am__leading_dot=.
3547 else
3548 am__leading_dot=_
3550 rmdir .tst 2>/dev/null
3552 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3553 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3554 # is not polluted with repeated "-I."
3555 am__isrc=' -I$(srcdir)'
3556 # test to see if srcdir already configured
3557 if test -f $srcdir/config.status; then
3558 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3562 # test whether we have cygpath
3563 if test -z "$CYGPATH_W"; then
3564 if (cygpath --version) >/dev/null 2>/dev/null; then
3565 CYGPATH_W='cygpath -w'
3566 else
3567 CYGPATH_W=echo
3572 # Define the identity of the package.
3573 PACKAGE='emacs'
3574 VERSION='24.0.50'
3577 cat >>confdefs.h <<_ACEOF
3578 #define PACKAGE "$PACKAGE"
3579 _ACEOF
3582 cat >>confdefs.h <<_ACEOF
3583 #define VERSION "$VERSION"
3584 _ACEOF
3586 # Some tools Automake needs.
3588 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3591 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3594 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3597 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3600 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3602 # We need awk for the "check" target. The system "awk" is bad on
3603 # some platforms.
3604 # Always define AMTAR for backward compatibility.
3606 AMTAR=${AMTAR-"${am_missing_run}tar"}
3608 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3617 lispdir='${datadir}/emacs/${version}/lisp'
3618 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3619 '${datadir}/emacs/site-lisp'
3620 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3621 etcdir='${datadir}/emacs/${version}/etc'
3622 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3623 docdir='${datadir}/emacs/${version}/etc'
3624 gamedir='${localstatedir}/games/emacs'
3629 # Check whether --with-pop was given.
3630 if test "${with_pop+set}" = set; then :
3631 withval=$with_pop;
3632 else
3633 with_pop=yes
3636 if test "$with_pop" = yes; then
3637 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3642 # Check whether --with-kerberos was given.
3643 if test "${with_kerberos+set}" = set; then :
3644 withval=$with_kerberos;
3645 else
3646 with_kerberos=no
3649 if test "$with_kerberos" != no; then
3650 $as_echo "#define KERBEROS 1" >>confdefs.h
3655 # Check whether --with-kerberos5 was given.
3656 if test "${with_kerberos5+set}" = set; then :
3657 withval=$with_kerberos5;
3658 else
3659 with_kerberos5=no
3662 if test "${with_kerberos5}" != no; then
3663 if test "${with_kerberos}" = no; then
3664 with_kerberos=yes
3665 $as_echo "#define KERBEROS 1" >>confdefs.h
3669 $as_echo "#define KERBEROS5 1" >>confdefs.h
3674 # Check whether --with-hesiod was given.
3675 if test "${with_hesiod+set}" = set; then :
3676 withval=$with_hesiod;
3677 else
3678 with_hesiod=no
3681 if test "$with_hesiod" != no; then
3683 $as_echo "#define HESIOD 1" >>confdefs.h
3688 # Check whether --with-mmdf was given.
3689 if test "${with_mmdf+set}" = set; then :
3690 withval=$with_mmdf;
3691 else
3692 with_mmdf=no
3695 if test "$with_mmdf" != no; then
3697 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3702 # Check whether --with-mail-unlink was given.
3703 if test "${with_mail_unlink+set}" = set; then :
3704 withval=$with_mail_unlink;
3705 else
3706 with_mail_unlink=no
3709 if test "$with_mail_unlink" != no; then
3711 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3716 # Check whether --with-mailhost was given.
3717 if test "${with_mailhost+set}" = set; then :
3718 withval=$with_mailhost;
3719 cat >>confdefs.h <<_ACEOF
3720 #define MAILHOST "$withval"
3721 _ACEOF
3727 # Check whether --with-sound was given.
3728 if test "${with_sound+set}" = set; then :
3729 withval=$with_sound;
3730 else
3731 with_sound=yes
3736 # Check whether --with-sync-input was given.
3737 if test "${with_sync_input+set}" = set; then :
3738 withval=$with_sync_input;
3739 else
3740 with_sync_input=yes
3743 if test "$with_sync_input" = yes; then
3745 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3750 # Check whether --with-x-toolkit was given.
3751 if test "${with_x_toolkit+set}" = set; then :
3752 withval=$with_x_toolkit; case "${withval}" in
3753 y | ye | yes ) val=gtk ;;
3754 n | no ) val=no ;;
3755 l | lu | luc | luci | lucid ) val=lucid ;;
3756 a | at | ath | athe | athen | athena ) val=athena ;;
3757 m | mo | mot | moti | motif ) val=motif ;;
3758 g | gt | gtk ) val=gtk ;;
3759 gtk3 ) val=gtk3 ;;
3761 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3762 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3763 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3765 esac
3766 with_x_toolkit=$val
3772 # Check whether --with-xpm was given.
3773 if test "${with_xpm+set}" = set; then :
3774 withval=$with_xpm;
3775 else
3776 with_xpm=yes
3780 # Check whether --with-jpeg was given.
3781 if test "${with_jpeg+set}" = set; then :
3782 withval=$with_jpeg;
3783 else
3784 with_jpeg=yes
3788 # Check whether --with-tiff was given.
3789 if test "${with_tiff+set}" = set; then :
3790 withval=$with_tiff;
3791 else
3792 with_tiff=yes
3796 # Check whether --with-gif was given.
3797 if test "${with_gif+set}" = set; then :
3798 withval=$with_gif;
3799 else
3800 with_gif=yes
3804 # Check whether --with-png was given.
3805 if test "${with_png+set}" = set; then :
3806 withval=$with_png;
3807 else
3808 with_png=yes
3812 # Check whether --with-rsvg was given.
3813 if test "${with_rsvg+set}" = set; then :
3814 withval=$with_rsvg;
3815 else
3816 with_rsvg=yes
3820 # Check whether --with-xml2 was given.
3821 if test "${with_xml2+set}" = set; then :
3822 withval=$with_xml2;
3823 else
3824 with_xml2=yes
3828 # Check whether --with-imagemagick was given.
3829 if test "${with_imagemagick+set}" = set; then :
3830 withval=$with_imagemagick;
3831 else
3832 with_imagemagick=yes
3837 # Check whether --with-xft was given.
3838 if test "${with_xft+set}" = set; then :
3839 withval=$with_xft;
3840 else
3841 with_xft=yes
3845 # Check whether --with-libotf was given.
3846 if test "${with_libotf+set}" = set; then :
3847 withval=$with_libotf;
3848 else
3849 with_libotf=yes
3853 # Check whether --with-m17n-flt was given.
3854 if test "${with_m17n_flt+set}" = set; then :
3855 withval=$with_m17n_flt;
3856 else
3857 with_m17n_flt=yes
3862 # Check whether --with-toolkit-scroll-bars was given.
3863 if test "${with_toolkit_scroll_bars+set}" = set; then :
3864 withval=$with_toolkit_scroll_bars;
3865 else
3866 with_toolkit_scroll_bars=yes
3870 # Check whether --with-xaw3d was given.
3871 if test "${with_xaw3d+set}" = set; then :
3872 withval=$with_xaw3d;
3873 else
3874 with_xaw3d=yes
3878 # Check whether --with-xim was given.
3879 if test "${with_xim+set}" = set; then :
3880 withval=$with_xim;
3881 else
3882 with_xim=yes
3886 # Check whether --with-ns was given.
3887 if test "${with_ns+set}" = set; then :
3888 withval=$with_ns;
3889 else
3890 with_ns=no
3895 # Check whether --with-gpm was given.
3896 if test "${with_gpm+set}" = set; then :
3897 withval=$with_gpm;
3898 else
3899 with_gpm=yes
3903 # Check whether --with-dbus was given.
3904 if test "${with_dbus+set}" = set; then :
3905 withval=$with_dbus;
3906 else
3907 with_dbus=yes
3911 # Check whether --with-gconf was given.
3912 if test "${with_gconf+set}" = set; then :
3913 withval=$with_gconf;
3914 else
3915 with_gconf=yes
3919 # Check whether --with-selinux was given.
3920 if test "${with_selinux+set}" = set; then :
3921 withval=$with_selinux;
3922 else
3923 with_selinux=yes
3927 # Check whether --with-gnutls was given.
3928 if test "${with_gnutls+set}" = set; then :
3929 withval=$with_gnutls;
3930 else
3931 with_gnutls=yes
3935 ## For the times when you want to build Emacs but don't have
3936 ## a suitable makeinfo, and can live without the manuals.
3938 # Check whether --with-makeinfo was given.
3939 if test "${with_makeinfo+set}" = set; then :
3940 withval=$with_makeinfo;
3941 else
3942 with_makeinfo=yes
3946 ## This is an option because I do not know if all info/man support
3947 ## compressed files, nor how to test if they do so.
3949 # Check whether --with-compress-info was given.
3950 if test "${with_compress_info+set}" = set; then :
3951 withval=$with_compress_info;
3952 else
3953 with_compress_info=yes
3956 if test $with_compress_info = yes; then
3957 GZIP_INFO=yes
3958 else
3959 GZIP_INFO=
3964 # Check whether --with-pkg-config-prog was given.
3965 if test "${with_pkg_config_prog+set}" = set; then :
3966 withval=$with_pkg_config_prog;
3969 if test "X${with_pkg_config_prog}" != X; then
3970 if test "${with_pkg_config_prog}" != yes; then
3971 PKG_CONFIG="${with_pkg_config_prog}"
3975 CRT_DIR=
3977 # Check whether --with-crt-dir was given.
3978 if test "${with_crt_dir+set}" = set; then :
3979 withval=$with_crt_dir;
3982 CRT_DIR="${with_crt_dir}"
3985 # Check whether --with-gameuser was given.
3986 if test "${with_gameuser+set}" = set; then :
3987 withval=$with_gameuser;
3990 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3991 && gameuser="${with_gameuser}"
3992 test "X$gameuser" = X && gameuser=games
3995 # Check whether --with-gnustep-conf was given.
3996 if test "${with_gnustep_conf+set}" = set; then :
3997 withval=$with_gnustep_conf;
4000 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4001 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4002 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4003 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4005 # Check whether --enable-ns-self-contained was given.
4006 if test "${enable_ns_self_contained+set}" = set; then :
4007 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4008 else
4009 EN_NS_SELF_CONTAINED=yes
4013 # Check whether --enable-asserts was given.
4014 if test "${enable_asserts+set}" = set; then :
4015 enableval=$enable_asserts; USE_XASSERTS=$enableval
4016 else
4017 USE_XASSERTS=no
4021 # Check whether --enable-maintainer-mode was given.
4022 if test "${enable_maintainer_mode+set}" = set; then :
4023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4024 else
4025 USE_MAINTAINER_MODE=yes
4028 if test $USE_MAINTAINER_MODE = yes; then
4029 MAINT=
4030 else
4031 MAINT=#
4035 # Check whether --enable-locallisppath was given.
4036 if test "${enable_locallisppath+set}" = set; then :
4037 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4038 locallisppath=
4039 elif test "${enableval}" != "yes"; then
4040 locallisppath=${enableval}
4045 # Check whether --enable-checking was given.
4046 if test "${enable_checking+set}" = set; then :
4047 enableval=$enable_checking; ac_checking_flags="${enableval}"
4050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4051 for check in $ac_checking_flags
4053 case $check in
4054 # these set all the flags to specific states
4055 yes) ac_enable_checking=1 ;;
4056 no) ac_enable_checking= ;
4057 ac_gc_check_stringbytes= ;
4058 ac_gc_check_string_overrun= ;
4059 ac_gc_check_string_free_list= ;
4060 ac_xmalloc_overrun= ;
4061 ac_gc_check_cons_list= ;;
4062 all) ac_enable_checking=1 ;
4063 ac_gc_check_stringbytes=1 ;
4064 ac_gc_check_string_overrun=1 ;
4065 ac_gc_check_string_free_list=1 ;
4066 ac_xmalloc_overrun=1 ;
4067 ac_gc_check_cons_list=1 ;;
4068 # these enable particular checks
4069 stringbytes) ac_gc_check_stringbytes=1 ;;
4070 stringoverrun) ac_gc_check_string_overrun=1 ;;
4071 stringfreelist) ac_gc_check_string_free_list=1 ;;
4072 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4073 conslist) ac_gc_check_cons_list=1 ;;
4074 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4075 esac
4076 done
4077 IFS="$ac_save_IFS"
4079 if test x$ac_enable_checking != x ; then
4081 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4084 if test x$ac_gc_check_stringbytes != x ; then
4086 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4089 if test x$ac_gc_check_stringoverrun != x ; then
4091 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4094 if test x$ac_gc_check_string_free_list != x ; then
4096 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4099 if test x$ac_xmalloc_overrun != x ; then
4101 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4104 if test x$ac_gc_check_cons_list != x ; then
4106 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4110 # Check whether --enable-use-lisp-union-type was given.
4111 if test "${enable_use_lisp_union_type+set}" = set; then :
4112 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4114 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4121 # Check whether --enable-profiling was given.
4122 if test "${enable_profiling+set}" = set; then :
4123 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4126 if test x$ac_enable_profiling != x ; then
4127 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4128 else
4129 PROFILING_CFLAGS=
4133 # Check whether --enable-autodepend was given.
4134 if test "${enable_autodepend+set}" = set; then :
4135 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4136 else
4137 ac_enable_autodepend=yes
4141 #### Make srcdir absolute, if it isn't already. It's important to
4142 #### avoid running the path through pwd unnecessarily, since pwd can
4143 #### give you automounter prefixes, which can go away. We do all this
4144 #### so Emacs can find its files when run uninstalled.
4145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4146 unset CDPATH
4147 case "${srcdir}" in
4148 /* ) ;;
4150 ## We may be able to use the $PWD environment variable to make this
4151 ## absolute. But sometimes PWD is inaccurate.
4152 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4153 ## but that tested only for a well-formed and valid PWD,
4154 ## it did not object when PWD was well-formed and valid but just wrong.
4155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4156 then
4157 srcdir="$PWD"
4158 else
4159 srcdir="`(cd ${srcdir}; pwd)`"
4162 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4163 esac
4165 #### Check if the source directory already has a configured system in it.
4166 if test `pwd` != `(cd ${srcdir} && pwd)` \
4167 && test -f "${srcdir}/src/config.h" ; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4169 as a build directory right now; it has been configured in its own
4170 right. To configure in another directory as well, you MUST
4171 use GNU make. If you do not have GNU make, then you must
4172 now do \`make distclean' in ${srcdir},
4173 and then run $0 again." >&5
4174 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4175 as a build directory right now; it has been configured in its own
4176 right. To configure in another directory as well, you MUST
4177 use GNU make. If you do not have GNU make, then you must
4178 now do \`make distclean' in ${srcdir},
4179 and then run $0 again." >&2;}
4182 #### Given the configuration name, set machfile and opsysfile to the
4183 #### names of the m/*.h and s/*.h files we should use.
4185 ### Canonicalize the configuration name.
4187 # Make sure we can run config.sub.
4188 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4189 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4192 $as_echo_n "checking build system type... " >&6; }
4193 if test "${ac_cv_build+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 ac_build_alias=$build_alias
4197 test "x$ac_build_alias" = x &&
4198 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4199 test "x$ac_build_alias" = x &&
4200 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4201 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4202 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4206 $as_echo "$ac_cv_build" >&6; }
4207 case $ac_cv_build in
4208 *-*-*) ;;
4209 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4210 esac
4211 build=$ac_cv_build
4212 ac_save_IFS=$IFS; IFS='-'
4213 set x $ac_cv_build
4214 shift
4215 build_cpu=$1
4216 build_vendor=$2
4217 shift; shift
4218 # Remember, the first character of IFS is used to create $*,
4219 # except with old shells:
4220 build_os=$*
4221 IFS=$ac_save_IFS
4222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4226 $as_echo_n "checking host system type... " >&6; }
4227 if test "${ac_cv_host+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test "x$host_alias" = x; then
4231 ac_cv_host=$ac_cv_build
4232 else
4233 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4234 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4239 $as_echo "$ac_cv_host" >&6; }
4240 case $ac_cv_host in
4241 *-*-*) ;;
4242 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4243 esac
4244 host=$ac_cv_host
4245 ac_save_IFS=$IFS; IFS='-'
4246 set x $ac_cv_host
4247 shift
4248 host_cpu=$1
4249 host_vendor=$2
4250 shift; shift
4251 # Remember, the first character of IFS is used to create $*,
4252 # except with old shells:
4253 host_os=$*
4254 IFS=$ac_save_IFS
4255 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4258 canonical=$host
4259 configuration=${host_alias-${build_alias-$host}}
4263 ### If you add support for a new configuration, add code to this
4264 ### switch statement to recognize your configuration name and select
4265 ### the appropriate operating system and machine description files.
4267 ### You would hope that you could choose an m/*.h file pretty much
4268 ### based on the machine portion of the configuration name, and an s/*.h
4269 ### file based on the operating system portion. However, it turns out
4270 ### that each m/*.h file is pretty manufacturer-specific - for
4271 ### example mips.h is MIPS
4272 ### So we basically have to have a special case for each
4273 ### configuration name.
4275 ### As far as handling version numbers on operating systems is
4276 ### concerned, make sure things will fail in a fixable way. If
4277 ### /etc/MACHINES doesn't say anything about version numbers, be
4278 ### prepared to handle anything reasonably. If version numbers
4279 ### matter, be sure /etc/MACHINES says something about it.
4281 machine='' opsys='' unported=no
4282 case "${canonical}" in
4284 ## GNU/Linux ports
4285 *-*-linux-gnu*)
4286 opsys=gnu-linux
4287 case ${canonical} in
4288 alpha*) machine=alpha ;;
4289 s390-*) machine=ibms390 ;;
4290 s390x-*) machine=ibms390x ;;
4291 powerpc*) machine=macppc ;;
4292 sparc*) machine=sparc ;;
4293 ia64*) machine=ia64 ;;
4294 m68k*) machine=m68k ;;
4295 x86_64*) machine=amdx86-64 ;;
4296 esac
4299 ## FreeBSD ports
4300 *-*-freebsd* )
4301 opsys=freebsd
4302 case "${canonical}" in
4303 alpha*) machine=alpha ;;
4304 amd64-*|x86_64-*) machine=amdx86-64 ;;
4305 ia64-*) machine=ia64 ;;
4306 i[3456]86-*) machine=intel386 ;;
4307 powerpc-*) machine=macppc ;;
4308 sparc-*) machine=sparc ;;
4309 sparc64-*) machine=sparc ;;
4310 esac
4313 ## FreeBSD kernel + glibc based userland
4314 *-*-kfreebsd*gnu* )
4315 opsys=gnu-kfreebsd
4316 case "${canonical}" in
4317 alpha*) machine=alpha ;;
4318 amd64-*|x86_64-*) machine=amdx86-64 ;;
4319 ia64-*) machine=ia64 ;;
4320 i[3456]86-*) machine=intel386 ;;
4321 powerpc-*) machine=macppc ;;
4322 sparc-*) machine=sparc ;;
4323 sparc64-*) machine=sparc ;;
4324 esac
4327 ## NetBSD ports
4328 *-*-netbsd* )
4329 opsys=netbsd
4330 case "${canonical}" in
4331 alpha*) machine=alpha ;;
4332 x86_64-*) machine=amdx86-64 ;;
4333 i[3456]86-*) machine=intel386 ;;
4334 m68k-*) machine=m68k ;;
4335 powerpc-*) machine=macppc ;;
4336 sparc*-) machine=sparc ;;
4337 vax-*) machine=vax ;;
4338 esac
4341 ## OpenBSD ports
4342 *-*-openbsd* )
4343 opsys=openbsd
4344 case "${canonical}" in
4345 alpha*) machine=alpha ;;
4346 x86_64-*) machine=amdx86-64 ;;
4347 i386-*) machine=intel386 ;;
4348 powerpc-*) machine=macppc ;;
4349 sparc*) machine=sparc ;;
4350 vax-*) machine=vax ;;
4351 esac
4354 ## Apple Darwin / Mac OS X
4355 *-apple-darwin* )
4356 case "${canonical}" in
4357 i[3456]86-* ) machine=intel386 ;;
4358 powerpc-* ) machine=macppc ;;
4359 x86_64-* ) machine=amdx86-64 ;;
4360 * ) unported=yes ;;
4361 esac
4362 opsys=darwin
4363 # Define CPP as follows to make autoconf work correctly.
4364 CPP="${CC-cc} -E -no-cpp-precomp"
4365 # Use fink packages if available.
4366 if test -d /sw/include && test -d /sw/lib; then
4367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4373 ## HP 9000 series 700 and 800, running HP/UX
4374 hppa*-hp-hpux10.2* )
4375 opsys=hpux10-20
4377 hppa*-hp-hpux1[1-9]* )
4378 opsys=hpux11
4379 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4382 ia64*-hp-hpux1[1-9]* )
4383 machine=hp800 opsys=hpux11
4384 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4385 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4386 CANNOT_DUMP=yes
4389 hppa*-*-linux-gnu* )
4390 machine=hp800 opsys=gnu-linux
4393 ## IBM machines
4394 rs6000-ibm-aix4.[23]* )
4395 machine=ibmrs6000 opsys=aix4-2
4397 powerpc-ibm-aix4.[23]* )
4398 machine=ibmrs6000 opsys=aix4-2
4400 rs6000-ibm-aix[56]* )
4401 machine=ibmrs6000 opsys=aix4-2
4403 powerpc-ibm-aix[56]* )
4404 machine=ibmrs6000 opsys=aix4-2
4407 ## Silicon Graphics machines
4408 ## Iris 4D
4409 mips-sgi-irix6.5 )
4410 machine=iris4d opsys=irix6-5
4411 # Without defining _LANGUAGE_C, things get masked out in the headers
4412 # so that, for instance, grepping for `free' in stdlib.h fails and
4413 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4414 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4415 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4418 ## Suns
4419 *-sun-solaris* \
4420 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4421 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4422 case "${canonical}" in
4423 i[3456]86-*-* ) machine=intel386 ;;
4424 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4425 sparc* ) machine=sparc ;;
4426 * ) unported=yes ;;
4427 esac
4428 case "${canonical}" in
4429 *-sunos5.6* | *-solaris2.6* )
4430 opsys=sol2-6
4431 NON_GNU_CPP=/usr/ccs/lib/cpp
4432 RANLIB="ar -ts"
4434 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4435 opsys=sol2-6
4436 emacs_check_sunpro_c=yes
4437 NON_GNU_CPP=/usr/ccs/lib/cpp
4439 *-sunos5* | *-solaris* )
4440 opsys=sol2-10
4441 emacs_check_sunpro_c=yes
4442 NON_GNU_CPP=/usr/ccs/lib/cpp
4444 esac
4445 ## Watch out for a compiler that we know will not work.
4446 case "${canonical}" in
4447 *-solaris* | *-sunos5* )
4448 if [ "x$CC" = x/usr/ucb/cc ]; then
4449 ## /usr/ucb/cc doesn't work;
4450 ## we should find some other compiler that does work.
4451 unset CC
4454 *) ;;
4455 esac
4458 ## Intel 386 machines where we don't care about the manufacturer.
4459 i[3456]86-*-* )
4460 machine=intel386
4461 case "${canonical}" in
4462 *-cygwin ) opsys=cygwin ;;
4463 *-darwin* ) opsys=darwin
4464 CPP="${CC-cc} -E -no-cpp-precomp"
4466 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4467 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4468 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4469 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4470 esac
4474 unported=yes
4476 esac
4478 ### If the code above didn't choose an operating system, just choose
4479 ### an operating system based on the configuration name. You really
4480 ### only want to use this when you have no idea what the right
4481 ### operating system is; if you know what operating systems a machine
4482 ### runs, it's cleaner to make it explicit in the case statement
4483 ### above.
4484 if test x"${opsys}" = x; then
4485 case "${canonical}" in
4486 *-gnu* ) opsys=gnu ;;
4488 unported=yes
4490 esac
4495 if test $unported = yes; then
4496 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4497 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4500 if test -n "$machine"; then
4501 machfile="m/${machine}.h"
4502 else
4503 machfile=
4505 opsysfile="s/${opsys}.h"
4508 #### Choose a compiler.
4509 test -n "$CC" && cc_specified=yes
4511 # Save the value of CFLAGS that the user specified.
4512 SPECIFIED_CFLAGS="$CFLAGS"
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 CC=$ac_cv_prog_CC
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_CC"; then
4559 ac_ct_CC=$CC
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_CC="gcc"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4588 if test -n "$ac_ct_CC"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4590 $as_echo "$ac_ct_CC" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_CC" = x; then
4597 CC=""
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600 yes:)
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605 CC=$ac_ct_CC
4607 else
4608 CC="$ac_cv_prog_CC"
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}cc; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_CC="${ac_tool_prefix}cc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 CC=$ac_cv_prog_CC
4641 if test -n "$CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643 $as_echo "$CC" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4652 if test -z "$CC"; then
4653 # Extract the first word of "cc", so it can be a program name with args.
4654 set dummy cc; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 else
4663 ac_prog_rejected=no
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4672 ac_prog_rejected=yes
4673 continue
4675 ac_cv_prog_CC="cc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4683 if test $ac_prog_rejected = yes; then
4684 # We found a bogon in the path, so make sure we never use it.
4685 set dummy $ac_cv_prog_CC
4686 shift
4687 if test $# != 0; then
4688 # We chose a different compiler from the bogus one.
4689 # However, it has the same basename, so the bogon will be chosen
4690 # first if we set CC to just the basename; use the full file name.
4691 shift
4692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4697 CC=$ac_cv_prog_CC
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$CC"; then
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog in cl.exe
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4735 IFS=$as_save_IFS
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$CC" && break
4750 done
4752 if test -z "$CC"; then
4753 ac_ct_CC=$CC
4754 for ac_prog in cl.exe
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_CC"; then
4764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_CC="$ac_prog"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4784 if test -n "$ac_ct_CC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4786 $as_echo "$ac_ct_CC" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_CC" && break
4794 done
4796 if test "x$ac_ct_CC" = x; then
4797 CC=""
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 CC=$ac_ct_CC
4812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error "no acceptable C compiler found in \$PATH
4815 See \`config.log' for more details." "$LINENO" 5; }
4817 # Provide some information about the compiler.
4818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4819 set X $ac_compile
4820 ac_compiler=$2
4821 for ac_option in --version -v -V -qversion; do
4822 { { ac_try="$ac_compiler $ac_option >&5"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4828 $as_echo "$ac_try_echo"; } >&5
4829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4830 ac_status=$?
4831 if test -s conftest.err; then
4832 sed '10a\
4833 ... rest of stderr output deleted ...
4834 10q' conftest.err >conftest.er1
4835 cat conftest.er1 >&5
4837 rm -f conftest.er1 conftest.err
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4840 done
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4846 main ()
4850 return 0;
4852 _ACEOF
4853 ac_clean_files_save=$ac_clean_files
4854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4855 # Try to create an executable without -o first, disregard a.out.
4856 # It will help us diagnose broken compilers, and finding out an intuition
4857 # of exeext.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4859 $as_echo_n "checking whether the C compiler works... " >&6; }
4860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4862 # The possible output files:
4863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4865 ac_rmfiles=
4866 for ac_file in $ac_files
4868 case $ac_file in
4869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4871 esac
4872 done
4873 rm -f $ac_rmfiles
4875 if { { ac_try="$ac_link_default"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 $as_echo "$ac_try_echo"; } >&5
4882 (eval "$ac_link_default") 2>&5
4883 ac_status=$?
4884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }; then :
4886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4889 # so that the user can short-circuit this test for compilers unknown to
4890 # Autoconf.
4891 for ac_file in $ac_files ''
4893 test -f "$ac_file" || continue
4894 case $ac_file in
4895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4897 [ab].out )
4898 # We found the default executable, but exeext='' is most
4899 # certainly right.
4900 break;;
4901 *.* )
4902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4903 then :; else
4904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4906 # We set ac_cv_exeext here because the later test for it is not
4907 # safe: cross compilers may not add the suffix if given an `-o'
4908 # argument, so we may need to know it at that point already.
4909 # Even if this section looks crufty: it has the advantage of
4910 # actually working.
4911 break;;
4913 break;;
4914 esac
4915 done
4916 test "$ac_cv_exeext" = no && ac_cv_exeext=
4918 else
4919 ac_file=''
4921 if test -z "$ac_file"; then :
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 { as_fn_set_status 77
4930 as_fn_error "C compiler cannot create executables
4931 See \`config.log' for more details." "$LINENO" 5; }; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934 $as_echo "yes" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4937 $as_echo_n "checking for C compiler default output file name... " >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4939 $as_echo "$ac_file" >&6; }
4940 ac_exeext=$ac_cv_exeext
4942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4943 ac_clean_files=$ac_clean_files_save
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4945 $as_echo_n "checking for suffix of executables... " >&6; }
4946 if { { ac_try="$ac_link"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 $as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_link") 2>&5
4954 ac_status=$?
4955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956 test $ac_status = 0; }; then :
4957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4959 # work properly (i.e., refer to `conftest.exe'), while it won't with
4960 # `rm'.
4961 for ac_file in conftest.exe conftest conftest.*; do
4962 test -f "$ac_file" || continue
4963 case $ac_file in
4964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4966 break;;
4967 * ) break;;
4968 esac
4969 done
4970 else
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error "cannot compute suffix of executables: cannot compile and link
4974 See \`config.log' for more details." "$LINENO" 5; }
4976 rm -f conftest conftest$ac_cv_exeext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4978 $as_echo "$ac_cv_exeext" >&6; }
4980 rm -f conftest.$ac_ext
4981 EXEEXT=$ac_cv_exeext
4982 ac_exeext=$EXEEXT
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #include <stdio.h>
4987 main ()
4989 FILE *f = fopen ("conftest.out", "w");
4990 return ferror (f) || fclose (f) != 0;
4993 return 0;
4995 _ACEOF
4996 ac_clean_files="$ac_clean_files conftest.out"
4997 # Check that the compiler produces executables we can run. If not, either
4998 # the compiler is broken, or we cross compile.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5000 $as_echo_n "checking whether we are cross compiling... " >&6; }
5001 if test "$cross_compiling" != yes; then
5002 { { ac_try="$ac_link"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_link") 2>&5
5010 ac_status=$?
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }
5013 if { ac_try='./conftest$ac_cv_exeext'
5014 { { case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017 esac
5018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5019 $as_echo "$ac_try_echo"; } >&5
5020 (eval "$ac_try") 2>&5
5021 ac_status=$?
5022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5023 test $ac_status = 0; }; }; then
5024 cross_compiling=no
5025 else
5026 if test "$cross_compiling" = maybe; then
5027 cross_compiling=yes
5028 else
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error "cannot run C compiled programs.
5032 If you meant to cross compile, use \`--host'.
5033 See \`config.log' for more details." "$LINENO" 5; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5038 $as_echo "$cross_compiling" >&6; }
5040 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5043 $as_echo_n "checking for suffix of object files... " >&6; }
5044 if test "${ac_cv_objext+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5051 main ()
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.o conftest.obj
5059 if { { ac_try="$ac_compile"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_compile") 2>&5
5067 ac_status=$?
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }; then :
5070 for ac_file in conftest.o conftest.obj conftest.*; do
5071 test -f "$ac_file" || continue;
5072 case $ac_file in
5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5075 break;;
5076 esac
5077 done
5078 else
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "cannot compute suffix of object files: cannot compile
5085 See \`config.log' for more details." "$LINENO" 5; }
5087 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5090 $as_echo "$ac_cv_objext" >&6; }
5091 OBJEXT=$ac_cv_objext
5092 ac_objext=$OBJEXT
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5094 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5095 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5102 main ()
5104 #ifndef __GNUC__
5105 choke me
5106 #endif
5109 return 0;
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_compiler_gnu=yes
5114 else
5115 ac_compiler_gnu=no
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5122 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5123 if test $ac_compiler_gnu = yes; then
5124 GCC=yes
5125 else
5126 GCC=
5128 ac_test_CFLAGS=${CFLAGS+set}
5129 ac_save_CFLAGS=$CFLAGS
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5131 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5132 if test "${ac_cv_prog_cc_g+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 ac_save_c_werror_flag=$ac_c_werror_flag
5136 ac_c_werror_flag=yes
5137 ac_cv_prog_cc_g=no
5138 CFLAGS="-g"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_prog_cc_g=yes
5152 else
5153 CFLAGS=""
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5158 main ()
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5167 else
5168 ac_c_werror_flag=$ac_save_c_werror_flag
5169 CFLAGS="-g"
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5174 main ()
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_prog_cc_g=yes
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 ac_c_werror_flag=$ac_save_c_werror_flag
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5192 $as_echo "$ac_cv_prog_cc_g" >&6; }
5193 if test "$ac_test_CFLAGS" = set; then
5194 CFLAGS=$ac_save_CFLAGS
5195 elif test $ac_cv_prog_cc_g = yes; then
5196 if test "$GCC" = yes; then
5197 CFLAGS="-g -O2"
5198 else
5199 CFLAGS="-g"
5201 else
5202 if test "$GCC" = yes; then
5203 CFLAGS="-O2"
5204 else
5205 CFLAGS=
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5209 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5210 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 ac_cv_prog_cc_c89=no
5214 ac_save_CC=$CC
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <stdarg.h>
5218 #include <stdio.h>
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5222 struct buf { int x; };
5223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5224 static char *e (p, i)
5225 char **p;
5226 int i;
5228 return p[i];
5230 static char *f (char * (*g) (char **, int), char **p, ...)
5232 char *s;
5233 va_list v;
5234 va_start (v,p);
5235 s = g (p, va_arg (v,int));
5236 va_end (v);
5237 return s;
5240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5241 function prototypes and stuff, but not '\xHH' hex character constants.
5242 These don't provoke an error unfortunately, instead are silently treated
5243 as 'x'. The following induces an error, until -std is added to get
5244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5245 array size at least. It's necessary to write '\x00'==0 to get something
5246 that's true only with -std. */
5247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5250 inside strings and character constants. */
5251 #define FOO(x) 'x'
5252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254 int test (int i, double x);
5255 struct s1 {int (*f) (int a);};
5256 struct s2 {int (*f) (double a);};
5257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5258 int argc;
5259 char **argv;
5261 main ()
5263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5265 return 0;
5267 _ACEOF
5268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 CC="$ac_save_CC $ac_arg"
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_prog_cc_c89=$ac_arg
5275 rm -f core conftest.err conftest.$ac_objext
5276 test "x$ac_cv_prog_cc_c89" != "xno" && break
5277 done
5278 rm -f conftest.$ac_ext
5279 CC=$ac_save_CC
5282 # AC_CACHE_VAL
5283 case "x$ac_cv_prog_cc_c89" in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 $as_echo "none needed" >&6; } ;;
5287 xno)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5289 $as_echo "unsupported" >&6; } ;;
5291 CC="$CC $ac_cv_prog_cc_c89"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5294 esac
5295 if test "x$ac_cv_prog_cc_c89" != xno; then :
5299 ac_ext=c
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 DEPDIR="${am__leading_dot}deps"
5306 ac_config_commands="$ac_config_commands depfiles"
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5311 am__doit:
5312 @echo this is the am__doit target
5313 .PHONY: am__doit
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5318 am__include="#"
5319 am__quote=
5320 _am_result=none
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from `make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5326 am__include=include
5327 am__quote=
5328 _am_result=GNU
5330 esac
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333 echo '.include "confinc"' > confmf
5334 case `$am_make -s -f confmf 2> /dev/null` in #(
5335 *the\ am__doit\ target*)
5336 am__include=.include
5337 am__quote="\""
5338 _am_result=BSD
5340 esac
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350 enableval=$enable_dependency_tracking;
5353 if test "x$enable_dependency_tracking" != xno; then
5354 am_depcomp="$ac_aux_dir/depcomp"
5355 AMDEPBACKSLASH='\'
5357 if test "x$enable_dependency_tracking" != xno; then
5358 AMDEP_TRUE=
5359 AMDEP_FALSE='#'
5360 else
5361 AMDEP_TRUE='#'
5362 AMDEP_FALSE=
5367 depcc="$CC" am_compiler_list=
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5370 $as_echo_n "checking dependency style of $depcc... " >&6; }
5371 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375 # We make a subdir and do the tests there. Otherwise we can end up
5376 # making bogus files that we don't know about and never remove. For
5377 # instance it was reported that on HP-UX the gcc test will end up
5378 # making a dummy file named `D' -- because `-MD' means `put the output
5379 # in D'.
5380 mkdir conftest.dir
5381 # Copy depcomp to subdir because otherwise we won't find it if we're
5382 # using a relative directory.
5383 cp "$am_depcomp" conftest.dir
5384 cd conftest.dir
5385 # We will build objects and dependencies in a subdirectory because
5386 # it helps to detect inapplicable dependency modes. For instance
5387 # both Tru64's cc and ICC support -MD to output dependencies as a
5388 # side effect of compilation, but ICC will put the dependencies in
5389 # the current directory while Tru64 will put them in the object
5390 # directory.
5391 mkdir sub
5393 am_cv_CC_dependencies_compiler_type=none
5394 if test "$am_compiler_list" = ""; then
5395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5397 am__universal=false
5398 case " $depcc " in #(
5399 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5400 esac
5402 for depmode in $am_compiler_list; do
5403 # Setup a source with many dependencies, because some compilers
5404 # like to wrap large dependency lists on column 80 (with \), and
5405 # we should not choose a depcomp mode which is confused by this.
5407 # We need to recreate these files for each test, as the compiler may
5408 # overwrite some of them when testing with obscure command lines.
5409 # This happens at least with the AIX C compiler.
5410 : > sub/conftest.c
5411 for i in 1 2 3 4 5 6; do
5412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5414 # Solaris 8's {/usr,}/bin/sh.
5415 touch sub/conftst$i.h
5416 done
5417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this. Also, some Intel
5422 # versions had trouble with output in subdirs
5423 am__obj=sub/conftest.${OBJEXT-o}
5424 am__minus_obj="-o $am__obj"
5425 case $depmode in
5426 gcc)
5427 # This depmode causes a compiler race in universal mode.
5428 test "$am__universal" = false || continue
5430 nosideeffect)
5431 # after this tag, mechanisms are not by side-effect, so they'll
5432 # only be used when explicitly requested
5433 if test "x$enable_dependency_tracking" = xyes; then
5434 continue
5435 else
5436 break
5439 msvisualcpp | msvcmsys)
5440 # This compiler won't grok `-c -o', but also, the minuso test has
5441 # not run yet. These depmodes are late enough in the game, and
5442 # so weak that their functioning should not be impacted.
5443 am__obj=conftest.${OBJEXT-o}
5444 am__minus_obj=
5446 none) break ;;
5447 esac
5448 if depmode=$depmode \
5449 source=sub/conftest.c object=$am__obj \
5450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5451 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5452 >/dev/null 2>conftest.err &&
5453 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type=$depmode
5467 break
5470 done
5472 cd ..
5473 rm -rf conftest.dir
5474 else
5475 am_cv_CC_dependencies_compiler_type=none
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5484 test "x$enable_dependency_tracking" != xno \
5485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5486 am__fastdepCC_TRUE=
5487 am__fastdepCC_FALSE='#'
5488 else
5489 am__fastdepCC_TRUE='#'
5490 am__fastdepCC_FALSE=
5494 if test "x$CC" != xcc; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5496 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5499 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5501 set dummy $CC; ac_cc=`$as_echo "$2" |
5502 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5503 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 # Make sure it works both with $CC and with simple cc.
5518 # We do the test twice because some compilers refuse to overwrite an
5519 # existing .o file with -o, though they will create one.
5520 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5521 rm -f conftest2.*
5522 if { { case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527 $as_echo "$ac_try_echo"; } >&5
5528 (eval "$ac_try") 2>&5
5529 ac_status=$?
5530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; } &&
5532 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5537 $as_echo "$ac_try_echo"; } >&5
5538 (eval "$ac_try") 2>&5
5539 ac_status=$?
5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541 test $ac_status = 0; };
5542 then
5543 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5544 if test "x$CC" != xcc; then
5545 # Test first that cc exists at all.
5546 if { ac_try='cc -c conftest.$ac_ext >&5'
5547 { { case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5552 $as_echo "$ac_try_echo"; } >&5
5553 (eval "$ac_try") 2>&5
5554 ac_status=$?
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }; }; then
5557 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5558 rm -f conftest2.*
5559 if { { case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; } &&
5569 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; };
5579 then
5580 # cc works too.
5582 else
5583 # cc exists but doesn't like -o.
5584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5588 else
5589 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5591 rm -f core conftest*
5594 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596 $as_echo "yes" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5601 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5605 # FIXME: we rely on the cache variable name because
5606 # there is no other way.
5607 set dummy $CC
5608 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5609 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5610 if test "$am_t" != yes; then
5611 # Losing compiler, so override with the script.
5612 # FIXME: It is wrong to rewrite CC.
5613 # But if we don't then we get into trouble of one sort or another.
5614 # A longer-term fix would be to have automake use am__CC in this case,
5615 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5616 CC="$am_aux_dir/compile $CC"
5621 # Initialize gnulib right after verifying that the C compiler works.
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$RANLIB"; then
5631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653 $as_echo "$RANLIB" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_RANLIB"; then
5662 ac_ct_RANLIB=$RANLIB
5663 # Extract the first word of "ranlib", so it can be a program name with args.
5664 set dummy ranlib; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_RANLIB"; then
5671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_RANLIB="ranlib"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691 if test -n "$ac_ct_RANLIB"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693 $as_echo "$ac_ct_RANLIB" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_RANLIB" = x; then
5700 RANLIB=":"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 RANLIB=$ac_ct_RANLIB
5710 else
5711 RANLIB="$ac_cv_prog_RANLIB"
5715 ac_ext=c
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5722 # On Suns, sometimes $CPP names a directory.
5723 if test -n "$CPP" && test -d "$CPP"; then
5724 CPP=
5726 if test -z "$CPP"; then
5727 if test "${ac_cv_prog_CPP+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 # Double quotes because CPP needs to be expanded
5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5733 ac_preproc_ok=false
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #ifdef __STDC__
5745 # include <limits.h>
5746 #else
5747 # include <assert.h>
5748 #endif
5749 Syntax error
5750 _ACEOF
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5753 else
5754 # Broken: fails on valid input.
5755 continue
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5764 _ACEOF
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5767 continue
5768 else
5769 # Passes both tests.
5770 ac_preproc_ok=:
5771 break
5773 rm -f conftest.err conftest.$ac_ext
5775 done
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.err conftest.$ac_ext
5778 if $ac_preproc_ok; then :
5779 break
5782 done
5783 ac_cv_prog_CPP=$CPP
5786 CPP=$ac_cv_prog_CPP
5787 else
5788 ac_cv_prog_CPP=$CPP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5791 $as_echo "$CPP" >&6; }
5792 ac_preproc_ok=false
5793 for ac_c_preproc_warn_flag in '' yes
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #ifdef __STDC__
5804 # include <limits.h>
5805 #else
5806 # include <assert.h>
5807 #endif
5808 Syntax error
5809 _ACEOF
5810 if ac_fn_c_try_cpp "$LINENO"; then :
5812 else
5813 # Broken: fails on valid input.
5814 continue
5816 rm -f conftest.err conftest.$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5823 _ACEOF
5824 if ac_fn_c_try_cpp "$LINENO"; then :
5825 # Broken: success on invalid input.
5826 continue
5827 else
5828 # Passes both tests.
5829 ac_preproc_ok=:
5830 break
5832 rm -f conftest.err conftest.$ac_ext
5834 done
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.$ac_ext
5837 if $ac_preproc_ok; then :
5839 else
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." "$LINENO" 5; }
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5855 if test "${ac_cv_path_GREP+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -z "$GREP"; then
5859 ac_path_GREP_found=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_prog in grep ggrep; do
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5870 # Check for GNU ac_path_GREP and select it if it is found.
5871 # Check for GNU $ac_path_GREP
5872 case `"$ac_path_GREP" --version 2>&1` in
5873 *GNU*)
5874 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5876 ac_count=0
5877 $as_echo_n 0123456789 >"conftest.in"
5878 while :
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'GREP' >> "conftest.nl"
5884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5886 as_fn_arith $ac_count + 1 && ac_count=$as_val
5887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_GREP="$ac_path_GREP"
5890 ac_path_GREP_max=$ac_count
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5894 done
5895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5896 esac
5898 $ac_path_GREP_found && break 3
5899 done
5900 done
5901 done
5902 IFS=$as_save_IFS
5903 if test -z "$ac_cv_path_GREP"; then
5904 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5906 else
5907 ac_cv_path_GREP=$GREP
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5912 $as_echo "$ac_cv_path_GREP" >&6; }
5913 GREP="$ac_cv_path_GREP"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5917 $as_echo_n "checking for egrep... " >&6; }
5918 if test "${ac_cv_path_EGREP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5922 then ac_cv_path_EGREP="$GREP -E"
5923 else
5924 if test -z "$EGREP"; then
5925 ac_path_EGREP_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_prog in egrep; do
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5936 # Check for GNU ac_path_EGREP and select it if it is found.
5937 # Check for GNU $ac_path_EGREP
5938 case `"$ac_path_EGREP" --version 2>&1` in
5939 *GNU*)
5940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5942 ac_count=0
5943 $as_echo_n 0123456789 >"conftest.in"
5944 while :
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 $as_echo 'EGREP' >> "conftest.nl"
5950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5952 as_fn_arith $ac_count + 1 && ac_count=$as_val
5953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_EGREP="$ac_path_EGREP"
5956 ac_path_EGREP_max=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5960 done
5961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5962 esac
5964 $ac_path_EGREP_found && break 3
5965 done
5966 done
5967 done
5968 IFS=$as_save_IFS
5969 if test -z "$ac_cv_path_EGREP"; then
5970 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5972 else
5973 ac_cv_path_EGREP=$EGREP
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5979 $as_echo "$ac_cv_path_EGREP" >&6; }
5980 EGREP="$ac_cv_path_EGREP"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5984 $as_echo_n "checking for ANSI C header files... " >&6; }
5985 if test "${ac_cv_header_stdc+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #include <stdlib.h>
5991 #include <stdarg.h>
5992 #include <string.h>
5993 #include <float.h>
5996 main ()
6000 return 0;
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004 ac_cv_header_stdc=yes
6005 else
6006 ac_cv_header_stdc=no
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test $ac_cv_header_stdc = yes; then
6011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <string.h>
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "memchr" >/dev/null 2>&1; then :
6020 else
6021 ac_cv_header_stdc=no
6023 rm -f conftest*
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <stdlib.h>
6033 _ACEOF
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "free" >/dev/null 2>&1; then :
6037 else
6038 ac_cv_header_stdc=no
6040 rm -f conftest*
6044 if test $ac_cv_header_stdc = yes; then
6045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6046 if test "$cross_compiling" = yes; then :
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <ctype.h>
6052 #include <stdlib.h>
6053 #if ((' ' & 0x0FF) == 0x020)
6054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6056 #else
6057 # define ISLOWER(c) \
6058 (('a' <= (c) && (c) <= 'i') \
6059 || ('j' <= (c) && (c) <= 'r') \
6060 || ('s' <= (c) && (c) <= 'z'))
6061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6062 #endif
6064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066 main ()
6068 int i;
6069 for (i = 0; i < 256; i++)
6070 if (XOR (islower (i), ISLOWER (i))
6071 || toupper (i) != TOUPPER (i))
6072 return 2;
6073 return 0;
6075 _ACEOF
6076 if ac_fn_c_try_run "$LINENO"; then :
6078 else
6079 ac_cv_header_stdc=no
6081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6082 conftest.$ac_objext conftest.beam conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6088 $as_echo "$ac_cv_header_stdc" >&6; }
6089 if test $ac_cv_header_stdc = yes; then
6091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6097 inttypes.h stdint.h unistd.h
6098 do :
6099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6102 eval as_val=\$$as_ac_Header
6103 if test "x$as_val" = x""yes; then :
6104 cat >>confdefs.h <<_ACEOF
6105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106 _ACEOF
6110 done
6116 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6117 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6118 MINIX=yes
6119 else
6120 MINIX=
6124 if test "$MINIX" = yes; then
6126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6132 $as_echo "#define _MINIX 1" >>confdefs.h
6136 case "$host_os" in
6137 hpux*)
6139 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6142 esac
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6146 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6147 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 # define __EXTENSIONS__ 1
6154 $ac_includes_default
6156 main ()
6160 return 0;
6162 _ACEOF
6163 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_safe_to_define___extensions__=yes
6165 else
6166 ac_cv_safe_to_define___extensions__=no
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6171 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6172 test $ac_cv_safe_to_define___extensions__ = yes &&
6173 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6175 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6177 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6179 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6181 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6192 # Code from module arg-nonnull:
6193 # Code from module c++defs:
6194 # Code from module crypto/md5:
6195 # Code from module dosname:
6196 # Code from module dtoastr:
6197 # Code from module extensions:
6199 # Code from module filemode:
6200 # Code from module getloadavg:
6201 # Code from module getopt-gnu:
6202 # Code from module getopt-posix:
6203 # Code from module gettext-h:
6204 # Code from module ignore-value:
6205 # Code from module include_next:
6206 # Code from module intprops:
6207 # Code from module lstat:
6208 # Code from module mktime:
6209 # Code from module multiarch:
6210 # Code from module readlink:
6211 # Code from module socklen:
6212 # Code from module stat:
6213 # Code from module stdbool:
6214 # Code from module stddef:
6215 # Code from module stdint:
6216 # Code from module stdio:
6217 # Code from module stdlib:
6218 # Code from module strftime:
6219 # Code from module symlink:
6220 # Code from module sys_stat:
6221 # Code from module time:
6222 # Code from module time_r:
6223 # Code from module unistd:
6224 # Code from module warn-on-use:
6227 # On Suns, sometimes $CPP names a directory.
6228 if test -n "$CPP" && test -d "$CPP"; then
6229 CPP=
6232 ## If not using gcc, and on Solaris, and no CPP specified, see if
6233 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6234 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6235 test x"$CPP" = x; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6237 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6238 if test "${emacs_cv_sunpro_c+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6245 main ()
6247 #ifndef __SUNPRO_C
6248 fail;
6249 #endif
6252 return 0;
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 emacs_cv_sunpro_c=yes
6257 else
6258 emacs_cv_sunpro_c=no
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6265 $as_echo "$emacs_cv_sunpro_c" >&6; }
6267 if test x"$emacs_cv_sunpro_c" = xyes; then
6268 NON_GNU_CPP="$CC -E -Xs"
6272 #### Some systems specify a CPP to use unless we are using GCC.
6273 #### Now that we know whether we are using GCC, we can decide whether
6274 #### to use that one.
6275 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6276 then
6277 CPP="$NON_GNU_CPP"
6280 #### Some systems specify a CC to use unless we are using GCC.
6281 #### Now that we know whether we are using GCC, we can decide whether
6282 #### to use that one.
6283 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6284 test x$cc_specified != xyes
6285 then
6286 CC="$NON_GNU_CC"
6289 if test x$GCC = xyes; then
6290 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6291 else
6292 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6295 ### Use -Wdeclaration-after-statement if the compiler supports it
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6297 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6298 SAVE_CFLAGS="$CFLAGS"
6299 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6304 main ()
6308 return 0;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 has_option=yes
6313 else
6314 has_option=no
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 if test $has_option = yes; then
6318 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6321 $as_echo "$has_option" >&6; }
6322 CFLAGS="$SAVE_CFLAGS"
6323 unset has_option
6324 unset SAVE_CFLAGS
6326 ### Use -Wold-style-definition if the compiler supports it
6327 # This can be removed when conversion to standard C is finished.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6329 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6330 SAVE_CFLAGS="$CFLAGS"
6331 CFLAGS="$CFLAGS -Wold-style-definition"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6336 main ()
6340 return 0;
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 has_option=yes
6345 else
6346 has_option=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 if test $has_option = yes; then
6350 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6353 $as_echo "$has_option" >&6; }
6354 CFLAGS="$SAVE_CFLAGS"
6355 unset has_option
6356 unset SAVE_CFLAGS
6358 ### Use -Wimplicit-function-declaration if the compiler supports it
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6360 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6361 SAVE_CFLAGS="$CFLAGS"
6362 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6367 main ()
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 has_option=yes
6376 else
6377 has_option=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 if test $has_option = yes; then
6381 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6384 $as_echo "$has_option" >&6; }
6385 CFLAGS="$SAVE_CFLAGS"
6386 unset has_option
6387 unset SAVE_CFLAGS
6392 #### Some other nice autoconf tests.
6394 ac_ext=c
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6400 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6401 # On Suns, sometimes $CPP names a directory.
6402 if test -n "$CPP" && test -d "$CPP"; then
6403 CPP=
6405 if test -z "$CPP"; then
6406 if test "${ac_cv_prog_CPP+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 # Double quotes because CPP needs to be expanded
6410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6412 ac_preproc_ok=false
6413 for ac_c_preproc_warn_flag in '' yes
6415 # Use a header file that comes with gcc, so configuring glibc
6416 # with a fresh cross-compiler works.
6417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 # <limits.h> exists even on freestanding compilers.
6419 # On the NeXT, cc -E runs the code through the compiler's parser,
6420 # not just through cpp. "Syntax error" is here to catch this case.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #ifdef __STDC__
6424 # include <limits.h>
6425 #else
6426 # include <assert.h>
6427 #endif
6428 Syntax error
6429 _ACEOF
6430 if ac_fn_c_try_cpp "$LINENO"; then :
6432 else
6433 # Broken: fails on valid input.
6434 continue
6436 rm -f conftest.err conftest.$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6443 _ACEOF
6444 if ac_fn_c_try_cpp "$LINENO"; then :
6445 # Broken: success on invalid input.
6446 continue
6447 else
6448 # Passes both tests.
6449 ac_preproc_ok=:
6450 break
6452 rm -f conftest.err conftest.$ac_ext
6454 done
6455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456 rm -f conftest.err conftest.$ac_ext
6457 if $ac_preproc_ok; then :
6458 break
6461 done
6462 ac_cv_prog_CPP=$CPP
6465 CPP=$ac_cv_prog_CPP
6466 else
6467 ac_cv_prog_CPP=$CPP
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6470 $as_echo "$CPP" >&6; }
6471 ac_preproc_ok=false
6472 for ac_c_preproc_warn_flag in '' yes
6474 # Use a header file that comes with gcc, so configuring glibc
6475 # with a fresh cross-compiler works.
6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477 # <limits.h> exists even on freestanding compilers.
6478 # On the NeXT, cc -E runs the code through the compiler's parser,
6479 # not just through cpp. "Syntax error" is here to catch this case.
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 #ifdef __STDC__
6483 # include <limits.h>
6484 #else
6485 # include <assert.h>
6486 #endif
6487 Syntax error
6488 _ACEOF
6489 if ac_fn_c_try_cpp "$LINENO"; then :
6491 else
6492 # Broken: fails on valid input.
6493 continue
6495 rm -f conftest.err conftest.$ac_ext
6497 # OK, works on sane cases. Now check whether nonexistent headers
6498 # can be detected and how.
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6502 _ACEOF
6503 if ac_fn_c_try_cpp "$LINENO"; then :
6504 # Broken: success on invalid input.
6505 continue
6506 else
6507 # Passes both tests.
6508 ac_preproc_ok=:
6509 break
6511 rm -f conftest.err conftest.$ac_ext
6513 done
6514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515 rm -f conftest.err conftest.$ac_ext
6516 if $ac_preproc_ok; then :
6518 else
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6521 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6522 See \`config.log' for more details." "$LINENO" 5; }
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532 if test "x$RANLIB" = x; then
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$RANLIB"; then
6542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 RANLIB=$ac_cv_prog_RANLIB
6562 if test -n "$RANLIB"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6564 $as_echo "$RANLIB" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_RANLIB"; then
6573 ac_ct_RANLIB=$RANLIB
6574 # Extract the first word of "ranlib", so it can be a program name with args.
6575 set dummy ranlib; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_RANLIB"; then
6582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_RANLIB="ranlib"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6602 if test -n "$ac_ct_RANLIB"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6604 $as_echo "$ac_ct_RANLIB" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_RANLIB" = x; then
6611 RANLIB=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 RANLIB=$ac_ct_RANLIB
6621 else
6622 RANLIB="$ac_cv_prog_RANLIB"
6627 ## Although we're running on an amd64 kernel, we're actually compiling for
6628 ## the x86 architecture. The user should probably have provided an
6629 ## explicit --build to `configure', but if everything else than the kernel
6630 ## is running in i386 mode, we can help them out.
6631 if test "$machine" = "amdx86-64"; then
6632 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6633 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6637 if test "$ac_cv_have_decl_i386" = "yes"; then
6638 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6639 machine=intel386
6640 machfile="m/${machine}.h"
6644 # Extract the first word of "install-info", so it can be a program name with args.
6645 set dummy install-info; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 case $INSTALL_INFO in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6667 done
6668 done
6669 IFS=$as_save_IFS
6672 esac
6674 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6675 if test -n "$INSTALL_INFO"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6677 $as_echo "$INSTALL_INFO" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6684 # Extract the first word of "install-info", so it can be a program name with args.
6685 set dummy install-info; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 case $INSTALL_INFO in
6692 [\\/]* | ?:[\\/]*)
6693 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in /usr/sbin
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6709 IFS=$as_save_IFS
6712 esac
6714 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6715 if test -n "$INSTALL_INFO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6717 $as_echo "$INSTALL_INFO" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6724 # Extract the first word of "install-info", so it can be a program name with args.
6725 set dummy install-info; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 case $INSTALL_INFO in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in /sbin
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6751 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6753 esac
6755 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6756 if test -n "$INSTALL_INFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6758 $as_echo "$INSTALL_INFO" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 # Extract the first word of "gzip", so it can be a program name with args.
6766 set dummy gzip; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 case $GZIP_PROG in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6793 esac
6795 GZIP_PROG=$ac_cv_path_GZIP_PROG
6796 if test -n "$GZIP_PROG"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6798 $as_echo "$GZIP_PROG" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6807 ## Need makeinfo >= 4.6 (?) to build the manuals.
6808 # Extract the first word of "makeinfo", so it can be a program name with args.
6809 set dummy makeinfo; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 case $MAKEINFO in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6831 done
6832 done
6833 IFS=$as_save_IFS
6835 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6837 esac
6839 MAKEINFO=$ac_cv_path_MAKEINFO
6840 if test -n "$MAKEINFO"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6842 $as_echo "$MAKEINFO" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6849 if test "$MAKEINFO" != "no" && \
6850 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
6851 MAKEINFO=no
6854 ## Makeinfo is unusual. For a released Emacs, the manuals are
6855 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6856 ## therefore in the category of "special tools" not normally required, which
6857 ## configure does not have to check for (eg autoconf itself).
6858 ## In a Bazaar checkout on the other hand, the manuals are not included.
6859 ## So makeinfo is a requirement to build from Bazaar, and configure
6860 ## should test for it as it does for any other build requirement.
6861 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6862 ## with pre-built manuals, from a Bazaar checkout.
6863 HAVE_MAKEINFO=yes
6865 if test "$MAKEINFO" = "no"; then
6866 MAKEINFO=makeinfo
6867 if test "x${with_makeinfo}" = "xno"; then
6868 HAVE_MAKEINFO=no
6869 elif test ! -e $srcdir/info/emacs; then
6870 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
6871 source tree does not seem to have pre-built manuals in the \`info' directory.
6872 Either install a suitable version of makeinfo, or re-run configure
6873 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6879 if test x$GCC = xyes; then
6880 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6881 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6882 else
6883 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6884 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6888 late_LDFLAGS=$LDFLAGS
6889 if test x$GCC = xyes; then
6890 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6891 else
6892 LDFLAGS="$LDFLAGS -znocombreloc"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6896 $as_echo_n "checking for -znocombreloc... " >&6; }
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 $as_echo "yes" >&6; }
6911 else
6912 LDFLAGS=$late_LDFLAGS
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6920 # The value of CPP is a quoted variable reference, so we need to do this
6921 # to get its actual value...
6922 CPP=`eval "echo $CPP"`
6925 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6926 case "$opsys" in
6927 your-opsys-here) CANNOT_DUMP=yes ;;
6928 esac
6930 test "$CANNOT_DUMP" = "yes" && \
6932 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6938 UNEXEC_OBJ=unexelf.o
6939 case "$opsys" in
6940 # MSDOS uses unexcoff.o
6941 # MSWindows uses unexw32.o
6942 aix4-2)
6943 UNEXEC_OBJ=unexaix.o
6945 cygwin)
6946 UNEXEC_OBJ=unexcw.o
6948 darwin)
6949 UNEXEC_OBJ=unexmacosx.o
6951 hpux10-20 | hpux11)
6952 UNEXEC_OBJ=unexhp9k800.o
6954 sol2-10)
6955 # Use the Solaris dldump() function, called from unexsol.c, to dump
6956 # emacs, instead of the generic ELF dump code found in unexelf.c.
6957 # The resulting binary has a complete symbol table, and is better
6958 # for debugging and other observability tools (debuggers, pstack, etc).
6960 # If you encounter a problem using dldump(), please consider sending
6961 # a message to the OpenSolaris tools-linking mailing list:
6962 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6964 # It is likely that dldump() works with older Solaris too, but this has
6965 # not been tested, so for now this change is for Solaris 10 or newer.
6966 UNEXEC_OBJ=unexsol.o
6968 esac
6970 LD_SWITCH_SYSTEM=
6971 case "$opsys" in
6972 freebsd)
6973 ## Let `ld' find image libs and similar things in /usr/local/lib.
6974 ## The system compiler, GCC, has apparently been modified to not
6975 ## look there, contrary to what a stock GCC would do.
6976 LD_SWITCH_SYSTEM=-L/usr/local/lib
6979 gnu-linux)
6980 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6981 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6984 netbsd)
6985 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6988 openbsd)
6989 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6990 ## otherwise Emacs dumps core on elf systems.
6991 LD_SWITCH_SYSTEM="-Z"
6993 esac
6996 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6998 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6999 ## which has not been defined yet. When this was handled with cpp,
7000 ## it was expanded to null when configure sourced the s/*.h file.
7001 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7002 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7003 ## (or somesuch), but because it is supposed to go at the _front_
7004 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7005 ## Compare with the gnu-linux case below, which added to the end
7006 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7007 ## LD_SWITCH_SYSTEM_TEMACS.
7008 case "$opsys" in
7009 netbsd|openbsd)
7010 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7011 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7012 esac
7015 C_SWITCH_MACHINE=
7016 if test "$machine" = "alpha"; then
7017 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7018 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7022 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7023 ## With ELF, make sure that all common symbols get allocated to in the
7024 ## data section. Otherwise, the dump of temacs may miss variables in
7025 ## the shared library that have been initialized. For example, with
7026 ## GNU libc, __malloc_initialized would normally be resolved to the
7027 ## shared library's .bss section, which is fatal.
7028 if test "x$GCC" = "xyes"; then
7029 C_SWITCH_MACHINE="-fno-common"
7030 else
7031 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7033 else
7034 UNEXEC_OBJ=unexalpha.o
7041 C_SWITCH_SYSTEM=
7042 ## Some programs in src produce warnings saying certain subprograms
7043 ## are too complex and need a MAXMEM value greater than 2000 for
7044 ## additional optimization. --nils@exp-math.uni-essen.de
7045 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7046 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7047 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7048 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7052 LIBS_SYSTEM=
7053 case "$opsys" in
7054 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7055 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7057 freebsd) LIBS_SYSTEM="-lutil" ;;
7059 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7061 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7063 ## Motif needs -lgen.
7064 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7065 esac
7069 ### Make sure subsequent tests use flags consistent with the build flags.
7071 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7072 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7073 else
7074 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7077 # Check whether --enable-largefile was given.
7078 if test "${enable_largefile+set}" = set; then :
7079 enableval=$enable_largefile;
7082 if test "$enable_largefile" != no; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7085 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7086 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 ac_cv_sys_largefile_CC=no
7090 if test "$GCC" != yes; then
7091 ac_save_CC=$CC
7092 while :; do
7093 # IRIX 6.2 and later do not support large files by default,
7094 # so use the C compiler's -n32 option if that helps.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7105 ? 1 : -1];
7107 main ()
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 break
7117 rm -f core conftest.err conftest.$ac_objext
7118 CC="$CC -n32"
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 ac_cv_sys_largefile_CC=' -n32'; break
7122 rm -f core conftest.err conftest.$ac_objext
7123 break
7124 done
7125 CC=$ac_save_CC
7126 rm -f conftest.$ac_ext
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7130 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7131 if test "$ac_cv_sys_largefile_CC" != no; then
7132 CC=$CC$ac_cv_sys_largefile_CC
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7136 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 while :; do
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7151 ? 1 : -1];
7153 main ()
7157 return 0;
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_cv_sys_file_offset_bits=no; break
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #define _FILE_OFFSET_BITS 64
7167 #include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7175 ? 1 : -1];
7177 main ()
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 ac_cv_sys_file_offset_bits=64; break
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 ac_cv_sys_file_offset_bits=unknown
7189 break
7190 done
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7193 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7194 case $ac_cv_sys_file_offset_bits in #(
7195 no | unknown) ;;
7197 cat >>confdefs.h <<_ACEOF
7198 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7199 _ACEOF
7201 esac
7202 rm -rf conftest*
7203 if test $ac_cv_sys_file_offset_bits = unknown; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7205 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7206 if test "${ac_cv_sys_large_files+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 while :; do
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 /* Check that off_t can represent 2**63 - 1 correctly.
7214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7215 since some C++ compilers masquerading as C compilers
7216 incorrectly reject 9223372036854775807. */
7217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7219 && LARGE_OFF_T % 2147483647 == 1)
7220 ? 1 : -1];
7222 main ()
7226 return 0;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 ac_cv_sys_large_files=no; break
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #define _LARGE_FILES 1
7236 #include <sys/types.h>
7237 /* Check that off_t can represent 2**63 - 1 correctly.
7238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7239 since some C++ compilers masquerading as C compilers
7240 incorrectly reject 9223372036854775807. */
7241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7243 && LARGE_OFF_T % 2147483647 == 1)
7244 ? 1 : -1];
7246 main ()
7250 return 0;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 ac_cv_sys_large_files=1; break
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 ac_cv_sys_large_files=unknown
7258 break
7259 done
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7262 $as_echo "$ac_cv_sys_large_files" >&6; }
7263 case $ac_cv_sys_large_files in #(
7264 no | unknown) ;;
7266 cat >>confdefs.h <<_ACEOF
7267 #define _LARGE_FILES $ac_cv_sys_large_files
7268 _ACEOF
7270 esac
7271 rm -rf conftest*
7277 ## If user specified a crt-dir, use that unconditionally.
7278 if test "X$CRT_DIR" = "X"; then
7280 case "$canonical" in
7281 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7282 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7283 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7284 ## For anything else (eg /usr/lib32), it is up the user to specify
7285 ## the location (bug#5655).
7286 ## Test for crtn.o, not just the directory, because sometimes the
7287 ## directory exists but does not have the relevant files (bug#1287).
7288 ## FIXME better to test for binary compatibility somehow.
7289 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7292 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7293 esac
7295 case "$opsys" in
7296 hpux10-20) CRT_DIR=/lib ;;
7297 esac
7299 ## Default is /usr/lib.
7300 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7302 else
7304 ## Some platforms don't use any of these files, so it is not
7305 ## appropriate to put this test outside the if block.
7306 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7307 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7313 LIB_MATH=-lm
7314 LIB_STANDARD=
7315 START_FILES=
7317 case $opsys in
7318 cygwin )
7319 LIB_MATH=
7320 START_FILES='pre-crt0.o'
7322 darwin )
7323 ## Adding -lm confuses the dynamic linker, so omit it.
7324 LIB_MATH=
7325 START_FILES='pre-crt0.o'
7327 freebsd )
7328 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7329 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7331 gnu-linux | gnu-kfreebsd )
7332 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7333 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7335 hpux10-20 | hpux11 )
7336 LIB_STANDARD=-lc
7337 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7339 netbsd | openbsd )
7340 if test -f $CRT_DIR/crti.o; then
7341 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7342 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7343 else
7344 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7345 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7348 esac
7356 if test "${with_sound}" != "no"; then
7357 # Sound support for GNU/Linux and the free BSDs.
7358 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7359 do :
7360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7362 eval as_val=\$$as_ac_Header
7363 if test "x$as_val" = x""yes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7366 _ACEOF
7367 have_sound_header=yes
7370 done
7372 # Emulation library used on NetBSD.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7374 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7375 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 ac_check_lib_save_LIBS=$LIBS
7379 LIBS="-lossaudio $LIBS"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 char _oss_ioctl ();
7391 main ()
7393 return _oss_ioctl ();
7395 return 0;
7397 _ACEOF
7398 if ac_fn_c_try_link "$LINENO"; then :
7399 ac_cv_lib_ossaudio__oss_ioctl=yes
7400 else
7401 ac_cv_lib_ossaudio__oss_ioctl=no
7403 rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7408 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7409 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7410 LIBSOUND=-lossaudio
7411 else
7412 LIBSOUND=
7417 ALSA_REQUIRED=1.0.0
7418 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7420 succeeded=no
7422 # Extract the first word of "pkg-config", so it can be a program name with args.
7423 set dummy pkg-config; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 case $PKG_CONFIG in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7451 esac
7453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7454 if test -n "$PKG_CONFIG"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7456 $as_echo "$PKG_CONFIG" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test "$PKG_CONFIG" = "no" ; then
7465 HAVE_ALSA=no
7466 else
7467 PKG_CONFIG_MIN_VERSION=0.9.0
7468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7470 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7472 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7475 succeeded=yes
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7478 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7479 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7481 $as_echo "$ALSA_CFLAGS" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7484 $as_echo_n "checking ALSA_LIBS... " >&6; }
7485 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7487 $as_echo "$ALSA_LIBS" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 ALSA_CFLAGS=""
7492 ALSA_LIBS=""
7493 ## If we have a custom action on failure, don't print errors, but
7494 ## do set a variable so people can do so.
7495 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7501 else
7502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7507 if test $succeeded = yes; then
7508 HAVE_ALSA=yes
7509 else
7510 HAVE_ALSA=no
7513 if test $HAVE_ALSA = yes; then
7514 SAVE_CFLAGS="$CFLAGS"
7515 SAVE_LDFLAGS="$LDFLAGS"
7516 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7517 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <asoundlib.h>
7522 main ()
7524 snd_lib_error_set_handler (0);
7526 return 0;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 emacs_alsa_normal=yes
7531 else
7532 emacs_alsa_normal=no
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 if test "$emacs_alsa_normal" != yes; then
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <alsa/asoundlib.h>
7540 main ()
7542 snd_lib_error_set_handler (0);
7544 return 0;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 emacs_alsa_subdir=yes
7549 else
7550 emacs_alsa_subdir=no
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 if test "$emacs_alsa_subdir" != yes; then
7554 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7556 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7559 CFLAGS="$SAVE_CFLAGS"
7560 LDFLAGS="$SAVE_LDFLAGS"
7561 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7562 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7564 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7568 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7569 case "$opsys" in
7570 gnu-linux|freebsd|netbsd)
7572 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7575 esac
7581 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7582 linux/version.h sys/systeminfo.h limits.h \
7583 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7584 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7585 sys/utsname.h pwd.h utmp.h dirent.h util.h
7586 do :
7587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7589 eval as_val=\$$as_ac_Header
7590 if test "x$as_val" = x""yes; then :
7591 cat >>confdefs.h <<_ACEOF
7592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7597 done
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7601 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <sys/personality.h>
7606 main ()
7608 personality (PER_LINUX32)
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 emacs_cv_personality_linux32=yes
7615 else
7616 emacs_cv_personality_linux32=no
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7620 $as_echo "$emacs_cv_personality_linux32" >&6; }
7622 if test $emacs_cv_personality_linux32 = yes; then
7624 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7628 for ac_header in term.h
7629 do :
7630 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7631 if test "x$ac_cv_header_term_h" = x""yes; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define HAVE_TERM_H 1
7634 _ACEOF
7638 done
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7641 $as_echo_n "checking for ANSI C header files... " >&6; }
7642 if test "${ac_cv_header_stdc+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <stdlib.h>
7648 #include <stdarg.h>
7649 #include <string.h>
7650 #include <float.h>
7653 main ()
7657 return 0;
7659 _ACEOF
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 ac_cv_header_stdc=yes
7662 else
7663 ac_cv_header_stdc=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 if test $ac_cv_header_stdc = yes; then
7668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #include <string.h>
7673 _ACEOF
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675 $EGREP "memchr" >/dev/null 2>&1; then :
7677 else
7678 ac_cv_header_stdc=no
7680 rm -f conftest*
7684 if test $ac_cv_header_stdc = yes; then
7685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <stdlib.h>
7690 _ACEOF
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "free" >/dev/null 2>&1; then :
7694 else
7695 ac_cv_header_stdc=no
7697 rm -f conftest*
7701 if test $ac_cv_header_stdc = yes; then
7702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7703 if test "$cross_compiling" = yes; then :
7705 else
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708 #include <ctype.h>
7709 #include <stdlib.h>
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7713 #else
7714 # define ISLOWER(c) \
7715 (('a' <= (c) && (c) <= 'i') \
7716 || ('j' <= (c) && (c) <= 'r') \
7717 || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7719 #endif
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7723 main ()
7725 int i;
7726 for (i = 0; i < 256; i++)
7727 if (XOR (islower (i), ISLOWER (i))
7728 || toupper (i) != TOUPPER (i))
7729 return 2;
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_run "$LINENO"; then :
7735 else
7736 ac_cv_header_stdc=no
7738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7739 conftest.$ac_objext conftest.beam conftest.$ac_ext
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7745 $as_echo "$ac_cv_header_stdc" >&6; }
7746 if test $ac_cv_header_stdc = yes; then
7748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7754 if test "${ac_cv_header_time+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7761 #include <time.h>
7764 main ()
7766 if ((struct tm *) 0)
7767 return 0;
7769 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_time=yes
7774 else
7775 ac_cv_header_time=no
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7780 $as_echo "$ac_cv_header_time" >&6; }
7781 if test $ac_cv_header_time = yes; then
7783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7787 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7788 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7789 ac_have_decl=1
7790 else
7791 ac_have_decl=0
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7796 _ACEOF
7798 if test $ac_cv_have_decl_sys_siglist != yes; then
7799 # For Tru64, at least:
7800 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7801 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7802 ac_have_decl=1
7803 else
7804 ac_have_decl=0
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7809 _ACEOF
7811 if test $ac_cv_have_decl___sys_siglist = yes; then
7813 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7818 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7819 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <sys/types.h>
7825 #include <sys/wait.h>
7826 #ifndef WEXITSTATUS
7827 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7828 #endif
7829 #ifndef WIFEXITED
7830 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7831 #endif
7834 main ()
7836 int s;
7837 wait (&s);
7838 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7840 return 0;
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 ac_cv_header_sys_wait_h=yes
7845 else
7846 ac_cv_header_sys_wait_h=no
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7851 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7852 if test $ac_cv_header_sys_wait_h = yes; then
7854 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7860 $as_echo_n "checking for struct utimbuf... " >&6; }
7861 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7868 #include <time.h>
7869 #else
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7872 #else
7873 #include <time.h>
7874 #endif
7875 #endif
7876 #ifdef HAVE_UTIME_H
7877 #include <utime.h>
7878 #endif
7880 main ()
7882 static struct utimbuf x; x.actime = x.modtime;
7884 return 0;
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 emacs_cv_struct_utimbuf=yes
7889 else
7890 emacs_cv_struct_utimbuf=no
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7895 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7896 if test $emacs_cv_struct_utimbuf = yes; then
7898 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7903 $as_echo_n "checking for speed_t... " >&6; }
7904 if test "${emacs_cv_speed_t+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <termios.h>
7911 main ()
7913 speed_t x = 1;
7915 return 0;
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 emacs_cv_speed_t=yes
7920 else
7921 emacs_cv_speed_t=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7926 $as_echo "$emacs_cv_speed_t" >&6; }
7927 if test $emacs_cv_speed_t = yes; then
7929 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7934 $as_echo_n "checking for struct timeval... " >&6; }
7935 if test "${emacs_cv_struct_timeval+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #ifdef TIME_WITH_SYS_TIME
7941 #include <sys/time.h>
7942 #include <time.h>
7943 #else
7944 #ifdef HAVE_SYS_TIME_H
7945 #include <sys/time.h>
7946 #else
7947 #include <time.h>
7948 #endif
7949 #endif
7951 main ()
7953 static struct timeval x; x.tv_sec = x.tv_usec;
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 emacs_cv_struct_timeval=yes
7960 else
7961 emacs_cv_struct_timeval=no
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7966 $as_echo "$emacs_cv_struct_timeval" >&6; }
7967 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7968 if test $emacs_cv_struct_timeval = yes; then
7970 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7975 $as_echo_n "checking for struct exception... " >&6; }
7976 if test "${emacs_cv_struct_exception+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <math.h>
7983 main ()
7985 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7987 return 0;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 emacs_cv_struct_exception=yes
7992 else
7993 emacs_cv_struct_exception=no
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7998 $as_echo "$emacs_cv_struct_exception" >&6; }
7999 HAVE_EXCEPTION=$emacs_cv_struct_exception
8000 if test $emacs_cv_struct_exception != yes; then
8002 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8006 for ac_header in net/if.h
8007 do :
8008 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8009 #if HAVE_SYS_SOCKET_H
8010 #include <sys/socket.h>
8011 #endif
8013 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8014 cat >>confdefs.h <<_ACEOF
8015 #define HAVE_NET_IF_H 1
8016 _ACEOF
8020 done
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8024 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8025 if test "${ac_cv_struct_tm+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <sys/types.h>
8031 #include <time.h>
8034 main ()
8036 struct tm tm;
8037 int *p = &tm.tm_sec;
8038 return !p;
8040 return 0;
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 ac_cv_struct_tm=time.h
8045 else
8046 ac_cv_struct_tm=sys/time.h
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8051 $as_echo "$ac_cv_struct_tm" >&6; }
8052 if test $ac_cv_struct_tm = sys/time.h; then
8054 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8058 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8059 #include <$ac_cv_struct_tm>
8062 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8064 cat >>confdefs.h <<_ACEOF
8065 #define HAVE_STRUCT_TM_TM_ZONE 1
8066 _ACEOF
8071 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8073 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8075 else
8076 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8078 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8079 ac_have_decl=1
8080 else
8081 ac_have_decl=0
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_DECL_TZNAME $ac_have_decl
8086 _ACEOF
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8089 $as_echo_n "checking for tzname... " >&6; }
8090 if test "${ac_cv_var_tzname+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <time.h>
8096 #if !HAVE_DECL_TZNAME
8097 extern char *tzname[];
8098 #endif
8101 main ()
8103 return tzname[0][0];
8105 return 0;
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 ac_cv_var_tzname=yes
8110 else
8111 ac_cv_var_tzname=no
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8117 $as_echo "$ac_cv_var_tzname" >&6; }
8118 if test $ac_cv_var_tzname = yes; then
8120 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8125 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8127 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8129 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8133 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8134 #if HAVE_SYS_SOCKET_H
8135 #include <sys/socket.h>
8136 #endif
8137 #if HAVE_NET_IF_H
8138 #include <net/if.h>
8139 #endif
8141 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8145 _ACEOF
8149 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8150 #if HAVE_SYS_SOCKET_H
8151 #include <sys/socket.h>
8152 #endif
8153 #if HAVE_NET_IF_H
8154 #include <net/if.h>
8155 #endif
8157 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8159 cat >>confdefs.h <<_ACEOF
8160 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8161 _ACEOF
8165 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8166 #if HAVE_SYS_SOCKET_H
8167 #include <sys/socket.h>
8168 #endif
8169 #if HAVE_NET_IF_H
8170 #include <net/if.h>
8171 #endif
8173 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8175 cat >>confdefs.h <<_ACEOF
8176 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8177 _ACEOF
8181 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8184 #endif
8185 #if HAVE_NET_IF_H
8186 #include <net/if.h>
8187 #endif
8189 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8193 _ACEOF
8197 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8198 #if HAVE_SYS_SOCKET_H
8199 #include <sys/socket.h>
8200 #endif
8201 #if HAVE_NET_IF_H
8202 #include <net/if.h>
8203 #endif
8205 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8209 _ACEOF
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8217 $as_echo_n "checking for function prototypes... " >&6; }
8218 if test "$ac_cv_prog_cc_c89" != no; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8222 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8225 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8233 $as_echo_n "checking for working volatile... " >&6; }
8234 if test "${ac_cv_c_volatile+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8241 main ()
8244 volatile int x;
8245 int * volatile y = (int *) 0;
8246 return !x && !y;
8248 return 0;
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 ac_cv_c_volatile=yes
8253 else
8254 ac_cv_c_volatile=no
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8259 $as_echo "$ac_cv_c_volatile" >&6; }
8260 if test $ac_cv_c_volatile = no; then
8262 $as_echo "#define volatile /**/" >>confdefs.h
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8267 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8268 if test "${ac_cv_c_const+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8275 main ()
8277 /* FIXME: Include the comments suggested by Paul. */
8278 #ifndef __cplusplus
8279 /* Ultrix mips cc rejects this. */
8280 typedef int charset[2];
8281 const charset cs;
8282 /* SunOS 4.1.1 cc rejects this. */
8283 char const *const *pcpcc;
8284 char **ppc;
8285 /* NEC SVR4.0.2 mips cc rejects this. */
8286 struct point {int x, y;};
8287 static struct point const zero = {0,0};
8288 /* AIX XL C 1.02.0.0 rejects this.
8289 It does not let you subtract one const X* pointer from another in
8290 an arm of an if-expression whose if-part is not a constant
8291 expression */
8292 const char *g = "string";
8293 pcpcc = &g + (g ? g-g : 0);
8294 /* HPUX 7.0 cc rejects these. */
8295 ++pcpcc;
8296 ppc = (char**) pcpcc;
8297 pcpcc = (char const *const *) ppc;
8298 { /* SCO 3.2v4 cc rejects this. */
8299 char *t;
8300 char const *s = 0 ? (char *) 0 : (char const *) 0;
8302 *t++ = 0;
8303 if (s) return 0;
8305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8306 int x[] = {25, 17};
8307 const int *foo = &x[0];
8308 ++foo;
8310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8311 typedef const int *iptr;
8312 iptr p = 0;
8313 ++p;
8315 { /* AIX XL C 1.02.0.0 rejects this saying
8316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8317 struct s { int j; const int *ap[3]; };
8318 struct s *b; b->j = 5;
8320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8321 const int foo = 10;
8322 if (!foo) return 0;
8324 return !cs[0] && !zero.x;
8325 #endif
8328 return 0;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 ac_cv_c_const=yes
8333 else
8334 ac_cv_c_const=no
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8339 $as_echo "$ac_cv_c_const" >&6; }
8340 if test $ac_cv_c_const = no; then
8342 $as_echo "#define const /**/" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8347 $as_echo_n "checking for void * support... " >&6; }
8348 if test "${emacs_cv_void_star+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8355 main ()
8357 void * foo;
8359 return 0;
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363 emacs_cv_void_star=yes
8364 else
8365 emacs_cv_void_star=no
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8370 $as_echo "$emacs_cv_void_star" >&6; }
8371 if test $emacs_cv_void_star = yes; then
8372 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8374 else
8375 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8380 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8381 if test "${ac_cv_c_bigendian+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 ac_cv_c_bigendian=unknown
8385 # See if we're dealing with a universal compiler.
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #ifndef __APPLE_CC__
8389 not a universal capable compiler
8390 #endif
8391 typedef int dummy;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8396 # Check for potential -arch flags. It is not universal unless
8397 # there are at least two -arch flags with different values.
8398 ac_arch=
8399 ac_prev=
8400 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8401 if test -n "$ac_prev"; then
8402 case $ac_word in
8403 i?86 | x86_64 | ppc | ppc64)
8404 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8405 ac_arch=$ac_word
8406 else
8407 ac_cv_c_bigendian=universal
8408 break
8411 esac
8412 ac_prev=
8413 elif test "x$ac_word" = "x-arch"; then
8414 ac_prev=arch
8416 done
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 if test $ac_cv_c_bigendian = unknown; then
8420 # See if sys/param.h defines the BYTE_ORDER macro.
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 #include <sys/types.h>
8424 #include <sys/param.h>
8427 main ()
8429 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8430 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8431 && LITTLE_ENDIAN)
8432 bogus endian macros
8433 #endif
8436 return 0;
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 # It does; now see whether it defined to BIG_ENDIAN or not.
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <sys/types.h>
8444 #include <sys/param.h>
8447 main ()
8449 #if BYTE_ORDER != BIG_ENDIAN
8450 not big endian
8451 #endif
8454 return 0;
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 ac_cv_c_bigendian=yes
8459 else
8460 ac_cv_c_bigendian=no
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 if test $ac_cv_c_bigendian = unknown; then
8467 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #include <limits.h>
8473 main ()
8475 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8476 bogus endian macros
8477 #endif
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 # It does; now see whether it defined to _BIG_ENDIAN or not.
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <limits.h>
8490 main ()
8492 #ifndef _BIG_ENDIAN
8493 not big endian
8494 #endif
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 ac_cv_c_bigendian=yes
8502 else
8503 ac_cv_c_bigendian=no
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 if test $ac_cv_c_bigendian = unknown; then
8510 # Compile a test program.
8511 if test "$cross_compiling" = yes; then :
8512 # Try to guess by grepping values from an object file.
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 short int ascii_mm[] =
8516 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8517 short int ascii_ii[] =
8518 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8519 int use_ascii (int i) {
8520 return ascii_mm[i] + ascii_ii[i];
8522 short int ebcdic_ii[] =
8523 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8524 short int ebcdic_mm[] =
8525 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8526 int use_ebcdic (int i) {
8527 return ebcdic_mm[i] + ebcdic_ii[i];
8529 extern int foo;
8532 main ()
8534 return use_ascii (foo) == use_ebcdic (foo);
8536 return 0;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8541 ac_cv_c_bigendian=yes
8543 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8544 if test "$ac_cv_c_bigendian" = unknown; then
8545 ac_cv_c_bigendian=no
8546 else
8547 # finding both strings is unlikely to happen, but who knows?
8548 ac_cv_c_bigendian=unknown
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 else
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8556 $ac_includes_default
8558 main ()
8561 /* Are we little or big endian? From Harbison&Steele. */
8562 union
8564 long int l;
8565 char c[sizeof (long int)];
8566 } u;
8567 u.l = 1;
8568 return u.c[sizeof (long int) - 1] == 1;
8571 return 0;
8573 _ACEOF
8574 if ac_fn_c_try_run "$LINENO"; then :
8575 ac_cv_c_bigendian=no
8576 else
8577 ac_cv_c_bigendian=yes
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8580 conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8586 $as_echo "$ac_cv_c_bigendian" >&6; }
8587 case $ac_cv_c_bigendian in #(
8588 yes)
8589 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8590 ;; #(
8592 ;; #(
8593 universal)
8595 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8597 ;; #(
8599 as_fn_error "unknown endianness
8600 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8601 esac
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8605 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8606 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 char __attribute__ ((__aligned__ (1 << 3))) c;
8613 main ()
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 emacs_cv_attribute_aligned=yes
8622 else
8623 emacs_cv_attribute_aligned=no
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8628 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8629 if test $emacs_cv_attribute_aligned = yes; then
8631 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8637 set x ${MAKE-make}
8638 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat >conftest.make <<\_ACEOF
8643 SHELL = /bin/sh
8644 all:
8645 @echo '@@@%%%=$(MAKE)=@@@%%%'
8646 _ACEOF
8647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8649 *@@@%%%=?*=@@@%%%*)
8650 eval ac_cv_prog_make_${ac_make}_set=yes;;
8652 eval ac_cv_prog_make_${ac_make}_set=no;;
8653 esac
8654 rm -f conftest.make
8656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8658 $as_echo "yes" >&6; }
8659 SET_MAKE=
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 SET_MAKE="MAKE=${MAKE-make}"
8667 DEPFLAGS=
8668 MKDEPDIR=":"
8669 deps_frag=deps.mk
8670 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8672 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8673 HAVE_GNU_MAKE=no
8674 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8675 if test "x$testval" != x; then
8676 HAVE_GNU_MAKE=yes
8677 else
8678 ac_enable_autodepend=no
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8681 $as_echo "$HAVE_GNU_MAKE" >&6; }
8682 if test $HAVE_GNU_MAKE = yes; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8684 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8685 SAVE_CFLAGS="$CFLAGS"
8686 CFLAGS="$CFLAGS -MMD -MF deps.d"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8691 main ()
8695 return 0;
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"; then :
8700 else
8701 ac_enable_autodepend=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 CFLAGS="$SAVE_CFLAGS"
8705 test -f deps.d || ac_enable_autodepend=no
8706 rm -rf deps.d
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8708 $as_echo "$ac_enable_autodepend" >&6; }
8710 if test $ac_enable_autodepend = yes; then
8711 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8712 ## In parallel builds, another make might create depdir between
8713 ## the first test and mkdir, so stick another test on the end.
8714 ## Or use install-sh -d? mkdir -p is not portable.
8715 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8716 deps_frag=autodeps.mk
8719 deps_frag=$srcdir/src/$deps_frag
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8726 $as_echo_n "checking for long file names... " >&6; }
8727 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 ac_cv_sys_long_file_names=yes
8731 # Test for long file names in all the places we know might matter:
8732 # . the current directory, where building will happen
8733 # $prefix/lib where we will be installing things
8734 # $exec_prefix/lib likewise
8735 # $TMPDIR if set, where it might want to write temporary files
8736 # /tmp where it might want to write temporary files
8737 # /var/tmp likewise
8738 # /usr/tmp likewise
8739 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8740 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8741 # in the usual case where exec_prefix is '${prefix}'.
8742 case $ac_dir in #(
8743 . | /* | ?:[\\/]*) ;; #(
8744 *) continue;;
8745 esac
8746 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8747 ac_xdir=$ac_dir/cf$$
8748 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8749 ac_tf1=$ac_xdir/conftest9012345
8750 ac_tf2=$ac_xdir/conftest9012346
8751 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8752 ac_cv_sys_long_file_names=no
8753 rm -f -r "$ac_xdir" 2>/dev/null
8754 test $ac_cv_sys_long_file_names = no && break
8755 done
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8758 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8759 if test $ac_cv_sys_long_file_names = yes; then
8761 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8766 #### Choose a window system.
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8769 $as_echo_n "checking for X... " >&6; }
8772 # Check whether --with-x was given.
8773 if test "${with_x+set}" = set; then :
8774 withval=$with_x;
8777 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8778 if test "x$with_x" = xno; then
8779 # The user explicitly disabled X.
8780 have_x=disabled
8781 else
8782 case $x_includes,$x_libraries in #(
8783 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
8784 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 # One or both of the vars are not set, and there is no cached value.
8788 ac_x_includes=no ac_x_libraries=no
8789 rm -f -r conftest.dir
8790 if mkdir conftest.dir; then
8791 cd conftest.dir
8792 cat >Imakefile <<'_ACEOF'
8793 incroot:
8794 @echo incroot='${INCROOT}'
8795 usrlibdir:
8796 @echo usrlibdir='${USRLIBDIR}'
8797 libdir:
8798 @echo libdir='${LIBDIR}'
8799 _ACEOF
8800 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8802 for ac_var in incroot usrlibdir libdir; do
8803 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8804 done
8805 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8806 for ac_extension in a so sl dylib la dll; do
8807 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8808 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8809 ac_im_usrlibdir=$ac_im_libdir; break
8811 done
8812 # Screen out bogus values from the imake configuration. They are
8813 # bogus both because they are the default anyway, and because
8814 # using them would break gcc on systems where it needs fixed includes.
8815 case $ac_im_incroot in
8816 /usr/include) ac_x_includes= ;;
8817 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8818 esac
8819 case $ac_im_usrlibdir in
8820 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8821 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8822 esac
8824 cd ..
8825 rm -f -r conftest.dir
8828 # Standard set of common directories for X headers.
8829 # Check X11 before X11Rn because it is often a symlink to the current release.
8830 ac_x_header_dirs='
8831 /usr/X11/include
8832 /usr/X11R7/include
8833 /usr/X11R6/include
8834 /usr/X11R5/include
8835 /usr/X11R4/include
8837 /usr/include/X11
8838 /usr/include/X11R7
8839 /usr/include/X11R6
8840 /usr/include/X11R5
8841 /usr/include/X11R4
8843 /usr/local/X11/include
8844 /usr/local/X11R7/include
8845 /usr/local/X11R6/include
8846 /usr/local/X11R5/include
8847 /usr/local/X11R4/include
8849 /usr/local/include/X11
8850 /usr/local/include/X11R7
8851 /usr/local/include/X11R6
8852 /usr/local/include/X11R5
8853 /usr/local/include/X11R4
8855 /usr/X386/include
8856 /usr/x386/include
8857 /usr/XFree86/include/X11
8859 /usr/include
8860 /usr/local/include
8861 /usr/unsupported/include
8862 /usr/athena/include
8863 /usr/local/x11r5/include
8864 /usr/lpp/Xamples/include
8866 /usr/openwin/include
8867 /usr/openwin/share/include'
8869 if test "$ac_x_includes" = no; then
8870 # Guess where to find include files, by looking for Xlib.h.
8871 # First, try using that file with no special directory specified.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #include <X11/Xlib.h>
8875 _ACEOF
8876 if ac_fn_c_try_cpp "$LINENO"; then :
8877 # We can compile using X headers with no special include directory.
8878 ac_x_includes=
8879 else
8880 for ac_dir in $ac_x_header_dirs; do
8881 if test -r "$ac_dir/X11/Xlib.h"; then
8882 ac_x_includes=$ac_dir
8883 break
8885 done
8887 rm -f conftest.err conftest.$ac_ext
8888 fi # $ac_x_includes = no
8890 if test "$ac_x_libraries" = no; then
8891 # Check for the libraries.
8892 # See if we find them without any special options.
8893 # Don't add to $LIBS permanently.
8894 ac_save_LIBS=$LIBS
8895 LIBS="-lX11 $LIBS"
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8898 #include <X11/Xlib.h>
8900 main ()
8902 XrmInitialize ()
8904 return 0;
8906 _ACEOF
8907 if ac_fn_c_try_link "$LINENO"; then :
8908 LIBS=$ac_save_LIBS
8909 # We can link X programs with no special library path.
8910 ac_x_libraries=
8911 else
8912 LIBS=$ac_save_LIBS
8913 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8915 # Don't even attempt the hair of trying to link an X program!
8916 for ac_extension in a so sl dylib la dll; do
8917 if test -r "$ac_dir/libX11.$ac_extension"; then
8918 ac_x_libraries=$ac_dir
8919 break 2
8921 done
8922 done
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 fi # $ac_x_libraries = no
8928 case $ac_x_includes,$ac_x_libraries in #(
8929 no,* | *,no | *\'*)
8930 # Didn't find X, or a directory has "'" in its name.
8931 ac_cv_have_x="have_x=no";; #(
8933 # Record where we found X for the cache.
8934 ac_cv_have_x="have_x=yes\
8935 ac_x_includes='$ac_x_includes'\
8936 ac_x_libraries='$ac_x_libraries'"
8937 esac
8939 ;; #(
8940 *) have_x=yes;;
8941 esac
8942 eval "$ac_cv_have_x"
8943 fi # $with_x != no
8945 if test "$have_x" != yes; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8947 $as_echo "$have_x" >&6; }
8948 no_x=yes
8949 else
8950 # If each of the values was on the command line, it overrides each guess.
8951 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8952 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8953 # Update the cache value to reflect the command line values.
8954 ac_cv_have_x="have_x=yes\
8955 ac_x_includes='$x_includes'\
8956 ac_x_libraries='$x_libraries'"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8958 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8961 if test "$no_x" = yes; then
8962 window_system=none
8963 else
8964 window_system=x11
8967 ## Workaround for bug in autoconf <= 2.62.
8968 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8969 ## No need to do anything special for these standard directories.
8970 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8972 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8976 LD_SWITCH_X_SITE_AUX=
8977 LD_SWITCH_X_SITE_AUX_RPATH=
8978 if test "${x_libraries}" != NONE; then
8979 if test -n "${x_libraries}"; then
8980 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8981 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8982 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8984 x_default_search_path=""
8985 x_search_path=${x_libraries}
8986 if test -z "${x_search_path}"; then
8987 x_search_path=/usr/lib
8989 for x_library in `echo ${x_search_path}: | \
8990 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8991 x_search_path="\
8992 ${x_library}/X11/%L/%T/%N%C%S:\
8993 ${x_library}/X11/%l/%T/%N%C%S:\
8994 ${x_library}/X11/%T/%N%C%S:\
8995 ${x_library}/X11/%L/%T/%N%S:\
8996 ${x_library}/X11/%l/%T/%N%S:\
8997 ${x_library}/X11/%T/%N%S"
8998 if test x"${x_default_search_path}" = x; then
8999 x_default_search_path=${x_search_path}
9000 else
9001 x_default_search_path="${x_search_path}:${x_default_search_path}"
9003 done
9008 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9009 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9012 if test x"${x_includes}" = x; then
9013 bitmapdir=/usr/include/X11/bitmaps
9014 else
9015 # accumulate include directories that have X11 bitmap subdirectories
9016 bmd_acc="dummyval"
9017 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9018 if test -d "${bmd}/X11/bitmaps"; then
9019 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9021 if test -d "${bmd}/bitmaps"; then
9022 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9024 done
9025 if test ${bmd_acc} != "dummyval"; then
9026 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9030 HAVE_NS=no
9031 NS_IMPL_COCOA=no
9032 NS_IMPL_GNUSTEP=no
9033 tmp_CPPFLAGS="$CPPFLAGS"
9034 tmp_CFLAGS="$CFLAGS"
9035 CPPFLAGS="$CPPFLAGS -x objective-c"
9036 CFLAGS="$CFLAGS -x objective-c"
9037 TEMACS_LDFLAGS2="\${LDFLAGS}"
9038 if test "${with_ns}" != no; then
9039 if test "${opsys}" = darwin; then
9040 NS_IMPL_COCOA=yes
9041 ns_appdir=`pwd`/nextstep/Emacs.app
9042 ns_appbindir=${ns_appdir}/Contents/MacOS/
9043 ns_appresdir=${ns_appdir}/Contents/Resources
9044 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9045 elif test -f $GNUSTEP_CONFIG_FILE; then
9046 NS_IMPL_GNUSTEP=yes
9047 ns_appdir=`pwd`/nextstep/Emacs.app
9048 ns_appbindir=${ns_appdir}/
9049 ns_appresdir=${ns_appdir}/Resources
9050 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9051 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9052 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9053 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9054 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9055 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9056 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9057 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9058 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9059 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9060 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9061 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9062 LIB_STANDARD=
9063 START_FILES=
9064 TEMACS_LDFLAGS2=
9066 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9067 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9068 HAVE_NS=yes
9069 else
9070 as_fn_error "\`--with-ns' was specified, but the include
9071 files are missing or cannot be compiled." "$LINENO" 5
9075 NS_HAVE_NSINTEGER=yes
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #include <Foundation/NSObjCRuntime.h>
9080 main ()
9082 NSInteger i;
9084 return 0;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"; then :
9088 ns_have_nsinteger=yes
9089 else
9090 ns_have_nsinteger=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 if test $ns_have_nsinteger = no; then
9094 NS_HAVE_NSINTEGER=no
9099 ns_frag=/dev/null
9100 NS_OBJ=
9101 NS_OBJC_OBJ=
9102 NS_SUPPORT=
9103 if test "${HAVE_NS}" = yes; then
9104 window_system=nextstep
9105 with_xft=no
9106 # set up packaging dirs
9107 exec_prefix=${ns_appbindir}
9108 libexecdir=${ns_appbindir}/libexec
9109 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9110 prefix=${ns_appresdir}
9112 ns_frag=$srcdir/src/ns.mk
9113 NS_OBJ="fontset.o fringe.o image.o"
9114 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9115 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9117 CFLAGS="$tmp_CFLAGS"
9118 CPPFLAGS="$tmp_CPPFLAGS"
9125 case "${window_system}" in
9126 x11 )
9127 HAVE_X_WINDOWS=yes
9128 HAVE_X11=yes
9129 case "${with_x_toolkit}" in
9130 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9131 motif ) USE_X_TOOLKIT=MOTIF ;;
9132 gtk ) with_gtk=yes
9133 USE_X_TOOLKIT=none ;;
9134 gtk3 ) with_gtk3=yes
9135 USE_X_TOOLKIT=none ;;
9136 no ) USE_X_TOOLKIT=none ;;
9137 * ) USE_X_TOOLKIT=maybe ;;
9138 esac
9140 nextstep | none )
9141 HAVE_X_WINDOWS=no
9142 HAVE_X11=no
9143 USE_X_TOOLKIT=none
9145 esac
9147 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9148 # Extract the first word of "X", so it can be a program name with args.
9149 set dummy X; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$HAVE_XSERVER"; then
9156 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_HAVE_XSERVER="true"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9173 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9176 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9177 if test -n "$HAVE_XSERVER"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9179 $as_echo "$HAVE_XSERVER" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9186 if test "$HAVE_XSERVER" = true ||
9187 test -n "$DISPLAY" ||
9188 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9189 as_fn_error "You seem to be running X, but no X development libraries
9190 were found. You should install the relevant development files for X
9191 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9192 sure you have development files for image handling, i.e.
9193 tiff, gif, jpeg, png and xpm.
9194 If you are sure you want Emacs compiled without X window support, pass
9195 --without-x
9196 to configure." "$LINENO" 5
9200 ### If we're using X11, we should use the X menu package.
9201 HAVE_MENUS=no
9202 case ${HAVE_X11} in
9203 yes ) HAVE_MENUS=yes ;;
9204 esac
9206 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9207 # Assume not, until told otherwise.
9208 GNU_MALLOC=yes
9209 doug_lea_malloc=yes
9210 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9211 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9213 else
9214 doug_lea_malloc=no
9217 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9218 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9220 else
9221 doug_lea_malloc=no
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9225 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9226 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 extern void (* __after_morecore_hook)();
9233 main ()
9235 __after_morecore_hook = 0
9237 return 0;
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 emacs_cv_var___after_morecore_hook=yes
9242 else
9243 emacs_cv_var___after_morecore_hook=no
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9249 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9250 if test $emacs_cv_var___after_morecore_hook = no; then
9251 doug_lea_malloc=no
9255 system_malloc=no
9256 case "$opsys" in
9257 ## darwin ld insists on the use of malloc routines in the System framework.
9258 darwin|sol2-10) system_malloc=yes ;;
9259 esac
9261 if test "${system_malloc}" = "yes"; then
9263 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9265 GNU_MALLOC=no
9266 GNU_MALLOC_reason="
9267 (The GNU allocators don't work with this system configuration.)"
9268 GMALLOC_OBJ=
9269 VMLIMIT_OBJ=
9270 else
9271 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9272 VMLIMIT_OBJ=vm-limit.o
9277 if test "$doug_lea_malloc" = "yes" ; then
9278 if test "$GNU_MALLOC" = yes ; then
9279 GNU_MALLOC_reason="
9280 (Using Doug Lea's new malloc from the GNU C Library.)"
9283 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9286 ## Use mmap directly for allocating larger buffers.
9287 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9288 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9289 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9290 case "$opsys" in
9291 gnu*) REL_ALLOC=no ;;
9292 esac
9295 if test x"${REL_ALLOC}" = x; then
9296 REL_ALLOC=${GNU_MALLOC}
9299 use_mmap_for_buffers=no
9300 case "$opsys" in
9301 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9302 esac
9307 for ac_header in $ac_header_list
9308 do :
9309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9310 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9312 eval as_val=\$$as_ac_Header
9313 if test "x$as_val" = x""yes; then :
9314 cat >>confdefs.h <<_ACEOF
9315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 _ACEOF
9320 done
9329 for ac_func in getpagesize
9330 do :
9331 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9332 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9333 cat >>confdefs.h <<_ACEOF
9334 #define HAVE_GETPAGESIZE 1
9335 _ACEOF
9338 done
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9341 $as_echo_n "checking for working mmap... " >&6; }
9342 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 if test "$cross_compiling" = yes; then :
9346 ac_cv_func_mmap_fixed_mapped=no
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 /* malloc might have been renamed as rpl_malloc. */
9352 #undef malloc
9354 /* Thanks to Mike Haertel and Jim Avera for this test.
9355 Here is a matrix of mmap possibilities:
9356 mmap private not fixed
9357 mmap private fixed at somewhere currently unmapped
9358 mmap private fixed at somewhere already mapped
9359 mmap shared not fixed
9360 mmap shared fixed at somewhere currently unmapped
9361 mmap shared fixed at somewhere already mapped
9362 For private mappings, we should verify that changes cannot be read()
9363 back from the file, nor mmap's back from the file at a different
9364 address. (There have been systems where private was not correctly
9365 implemented like the infamous i386 svr4.0, and systems where the
9366 VM page cache was not coherent with the file system buffer cache
9367 like early versions of FreeBSD and possibly contemporary NetBSD.)
9368 For shared mappings, we should conversely verify that changes get
9369 propagated back to all the places they're supposed to be.
9371 Grep wants private fixed already mapped.
9372 The main things grep needs to know about mmap are:
9373 * does it exist and is it safe to write into the mmap'd area
9374 * how to use it (BSD variants) */
9376 #include <fcntl.h>
9377 #include <sys/mman.h>
9379 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9380 char *malloc ();
9381 #endif
9383 /* This mess was copied from the GNU getpagesize.h. */
9384 #ifndef HAVE_GETPAGESIZE
9385 # ifdef _SC_PAGESIZE
9386 # define getpagesize() sysconf(_SC_PAGESIZE)
9387 # else /* no _SC_PAGESIZE */
9388 # ifdef HAVE_SYS_PARAM_H
9389 # include <sys/param.h>
9390 # ifdef EXEC_PAGESIZE
9391 # define getpagesize() EXEC_PAGESIZE
9392 # else /* no EXEC_PAGESIZE */
9393 # ifdef NBPG
9394 # define getpagesize() NBPG * CLSIZE
9395 # ifndef CLSIZE
9396 # define CLSIZE 1
9397 # endif /* no CLSIZE */
9398 # else /* no NBPG */
9399 # ifdef NBPC
9400 # define getpagesize() NBPC
9401 # else /* no NBPC */
9402 # ifdef PAGESIZE
9403 # define getpagesize() PAGESIZE
9404 # endif /* PAGESIZE */
9405 # endif /* no NBPC */
9406 # endif /* no NBPG */
9407 # endif /* no EXEC_PAGESIZE */
9408 # else /* no HAVE_SYS_PARAM_H */
9409 # define getpagesize() 8192 /* punt totally */
9410 # endif /* no HAVE_SYS_PARAM_H */
9411 # endif /* no _SC_PAGESIZE */
9413 #endif /* no HAVE_GETPAGESIZE */
9416 main ()
9418 char *data, *data2, *data3;
9419 const char *cdata2;
9420 int i, pagesize;
9421 int fd, fd2;
9423 pagesize = getpagesize ();
9425 /* First, make a file with some known garbage in it. */
9426 data = (char *) malloc (pagesize);
9427 if (!data)
9428 return 1;
9429 for (i = 0; i < pagesize; ++i)
9430 *(data + i) = rand ();
9431 umask (0);
9432 fd = creat ("conftest.mmap", 0600);
9433 if (fd < 0)
9434 return 2;
9435 if (write (fd, data, pagesize) != pagesize)
9436 return 3;
9437 close (fd);
9439 /* Next, check that the tail of a page is zero-filled. File must have
9440 non-zero length, otherwise we risk SIGBUS for entire page. */
9441 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9442 if (fd2 < 0)
9443 return 4;
9444 cdata2 = "";
9445 if (write (fd2, cdata2, 1) != 1)
9446 return 5;
9447 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9448 if (data2 == MAP_FAILED)
9449 return 6;
9450 for (i = 0; i < pagesize; ++i)
9451 if (*(data2 + i))
9452 return 7;
9453 close (fd2);
9454 if (munmap (data2, pagesize))
9455 return 8;
9457 /* Next, try to mmap the file at a fixed address which already has
9458 something else allocated at it. If we can, also make sure that
9459 we see the same garbage. */
9460 fd = open ("conftest.mmap", O_RDWR);
9461 if (fd < 0)
9462 return 9;
9463 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9464 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9465 return 10;
9466 for (i = 0; i < pagesize; ++i)
9467 if (*(data + i) != *(data2 + i))
9468 return 11;
9470 /* Finally, make sure that changes to the mapped area do not
9471 percolate back to the file as seen by read(). (This is a bug on
9472 some variants of i386 svr4.0.) */
9473 for (i = 0; i < pagesize; ++i)
9474 *(data2 + i) = *(data2 + i) + 1;
9475 data3 = (char *) malloc (pagesize);
9476 if (!data3)
9477 return 12;
9478 if (read (fd, data3, pagesize) != pagesize)
9479 return 13;
9480 for (i = 0; i < pagesize; ++i)
9481 if (*(data + i) != *(data3 + i))
9482 return 14;
9483 close (fd);
9484 return 0;
9486 _ACEOF
9487 if ac_fn_c_try_run "$LINENO"; then :
9488 ac_cv_func_mmap_fixed_mapped=yes
9489 else
9490 ac_cv_func_mmap_fixed_mapped=no
9492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9493 conftest.$ac_objext conftest.beam conftest.$ac_ext
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9498 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9501 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9504 rm -f conftest.mmap conftest.txt
9506 if test $use_mmap_for_buffers = yes; then
9508 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9510 REL_ALLOC=no
9513 LIBS="$LIBS_SYSTEM $LIBS"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9516 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-ldnet $LIBS"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9528 #ifdef __cplusplus
9529 extern "C"
9530 #endif
9531 char dnet_ntoa ();
9533 main ()
9535 return dnet_ntoa ();
9537 return 0;
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541 ac_cv_lib_dnet_dnet_ntoa=yes
9542 else
9543 ac_cv_lib_dnet_dnet_ntoa=no
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9550 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9551 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9552 cat >>confdefs.h <<_ACEOF
9553 #define HAVE_LIBDNET 1
9554 _ACEOF
9556 LIBS="-ldnet $LIBS"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9562 $as_echo_n "checking for main in -lXbsd... " >&6; }
9563 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lXbsd $LIBS"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9573 main ()
9575 return main ();
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 ac_cv_lib_Xbsd_main=yes
9582 else
9583 ac_cv_lib_Xbsd_main=no
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_lib_save_LIBS
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9590 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9591 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9592 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9597 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9598 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-lpthreads $LIBS"
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char cma_open ();
9614 main ()
9616 return cma_open ();
9618 return 0;
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 ac_cv_lib_pthreads_cma_open=yes
9623 else
9624 ac_cv_lib_pthreads_cma_open=no
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9631 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9632 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9633 cat >>confdefs.h <<_ACEOF
9634 #define HAVE_LIBPTHREADS 1
9635 _ACEOF
9637 LIBS="-lpthreads $LIBS"
9642 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9643 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9644 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9645 ## added to LIBS in configure would never contain the pthreads part,
9646 ## but the value used in Makefiles might. FIXME?
9648 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9649 ## be harmless on older versions of X where it happens to exist.
9650 test "$opsys" = "aix4-2" && \
9651 test $ac_cv_lib_pthreads_cma_open = yes && \
9652 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9655 case ${host_os} in
9656 aix*)
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9658 $as_echo_n "checking for -bbigtoc option... " >&6; }
9659 if test "${gdb_cv_bigtoc+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9663 case $GCC in
9664 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9665 *) gdb_cv_bigtoc=-bbigtoc ;;
9666 esac
9668 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9673 main ()
9675 int i;
9677 return 0;
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9682 else
9683 gdb_cv_bigtoc=
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9690 $as_echo "$gdb_cv_bigtoc" >&6; }
9692 esac
9694 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9695 # used for the tests that follow. We set them back to REAL_CFLAGS and
9696 # REAL_CPPFLAGS later on.
9698 REAL_CFLAGS="$CFLAGS"
9699 REAL_CPPFLAGS="$CPPFLAGS"
9701 if test "${HAVE_X11}" = "yes"; then
9702 DEFS="$C_SWITCH_X_SITE $DEFS"
9703 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9704 LIBS="-lX11 $LIBS"
9705 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9706 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9708 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9709 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9710 # but it's more convenient here to set LD_RUN_PATH
9711 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9712 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9713 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9714 export LD_RUN_PATH
9717 if test "${opsys}" = "gnu-linux"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9719 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9724 main ()
9726 XOpenDisplay ("foo");
9728 return 0;
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 xlinux_first_failure=no
9733 else
9734 xlinux_first_failure=yes
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 if test "${xlinux_first_failure}" = "yes"; then
9739 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9740 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9741 OLD_CPPFLAGS="$CPPFLAGS"
9742 OLD_LIBS="$LIBS"
9743 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9744 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9745 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9746 LIBS="$LIBS -b i486-linuxaout"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9751 main ()
9753 XOpenDisplay ("foo");
9755 return 0;
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"; then :
9759 xlinux_second_failure=no
9760 else
9761 xlinux_second_failure=yes
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 if test "${xlinux_second_failure}" = "yes"; then
9766 # If we get the same failure with -b, there is no use adding -b.
9767 # So take it out. This plays safe.
9768 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9770 CPPFLAGS="$OLD_CPPFLAGS"
9771 LIBS="$OLD_LIBS"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9776 $as_echo "yes" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9785 # header files included from there.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9787 $as_echo_n "checking for Xkb... " >&6; }
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 #include <X11/Xlib.h>
9791 #include <X11/XKBlib.h>
9793 main ()
9795 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9797 return 0;
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 emacs_xkb=yes
9802 else
9803 emacs_xkb=no
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9808 $as_echo "$emacs_xkb" >&6; }
9809 if test $emacs_xkb = yes; then
9811 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9815 for ac_func in XrmSetDatabase XScreenResourceString \
9816 XScreenNumberOfScreen XSetWMProtocols
9817 do :
9818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9820 eval as_val=\$$as_ac_var
9821 if test "x$as_val" = x""yes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9824 _ACEOF
9827 done
9831 if test "${window_system}" = "x11"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9833 $as_echo_n "checking X11 version 6... " >&6; }
9834 if test "${emacs_cv_x11_version_6+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9841 main ()
9843 #if XlibSpecificationRelease < 6
9844 fail;
9845 #endif
9848 return 0;
9850 _ACEOF
9851 if ac_fn_c_try_link "$LINENO"; then :
9852 emacs_cv_x11_version_6=yes
9853 else
9854 emacs_cv_x11_version_6=no
9856 rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext conftest.$ac_ext
9860 if test $emacs_cv_x11_version_6 = yes; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9862 $as_echo "6 or newer" >&6; }
9864 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9867 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9869 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9870 ## XIM support.
9871 case "$opsys" in
9872 sol2-*) : ;;
9874 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9877 esac
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9880 $as_echo "before 6" >&6; }
9885 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9886 HAVE_RSVG=no
9887 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9888 if test "${with_rsvg}" != "no"; then
9889 RSVG_REQUIRED=2.11.0
9890 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9893 succeeded=no
9895 # Extract the first word of "pkg-config", so it can be a program name with args.
9896 set dummy pkg-config; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 case $PKG_CONFIG in
9903 [\\/]* | ?:[\\/]*)
9904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9918 done
9919 done
9920 IFS=$as_save_IFS
9922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9924 esac
9926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9927 if test -n "$PKG_CONFIG"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9929 $as_echo "$PKG_CONFIG" >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9937 if test "$PKG_CONFIG" = "no" ; then
9939 else
9940 PKG_CONFIG_MIN_VERSION=0.9.0
9941 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9943 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9945 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9948 succeeded=yes
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9951 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9952 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9954 $as_echo "$RSVG_CFLAGS" >&6; }
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9957 $as_echo_n "checking RSVG_LIBS... " >&6; }
9958 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9960 $as_echo "$RSVG_LIBS" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 RSVG_CFLAGS=""
9965 RSVG_LIBS=""
9966 ## If we have a custom action on failure, don't print errors, but
9967 ## do set a variable so people can do so.
9968 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9974 else
9975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9980 if test $succeeded = yes; then
9981 HAVE_RSVG=yes
9982 else
9989 if test $HAVE_RSVG = yes; then
9991 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9993 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9994 LIBS="$RSVG_LIBS $LIBS"
9999 HAVE_IMAGEMAGICK=no
10000 if test "${HAVE_X11}" = "yes"; then
10001 if test "${with_imagemagick}" != "no"; then
10002 IMAGEMAGICK_MODULE="Wand"
10004 succeeded=no
10006 # Extract the first word of "pkg-config", so it can be a program name with args.
10007 set dummy pkg-config; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 case $PKG_CONFIG in
10014 [\\/]* | ?:[\\/]*)
10015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10035 esac
10037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10038 if test -n "$PKG_CONFIG"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10040 $as_echo "$PKG_CONFIG" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10048 if test "$PKG_CONFIG" = "no" ; then
10050 else
10051 PKG_CONFIG_MIN_VERSION=0.9.0
10052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10054 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10056 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10058 $as_echo "yes" >&6; }
10059 succeeded=yes
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10062 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10063 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10065 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10068 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10069 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10071 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 IMAGEMAGICK_CFLAGS=""
10076 IMAGEMAGICK_LIBS=""
10077 ## If we have a custom action on failure, don't print errors, but
10078 ## do set a variable so people can do so.
10079 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10085 else
10086 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10087 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10091 if test $succeeded = yes; then
10092 HAVE_IMAGEMAGICK=yes
10093 else
10100 if test $HAVE_IMAGEMAGICK = yes; then
10102 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10104 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10105 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10106 for ac_func in MagickExportImagePixels
10107 do :
10108 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10109 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10112 _ACEOF
10115 done
10122 HAVE_GTK=no
10123 if test "${with_gtk3}" = "yes"; then
10124 GLIB_REQUIRED=2.28
10125 GTK_REQUIRED=3.0
10126 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10129 succeeded=no
10131 # Extract the first word of "pkg-config", so it can be a program name with args.
10132 set dummy pkg-config; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 case $PKG_CONFIG in
10139 [\\/]* | ?:[\\/]*)
10140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144 for as_dir in $PATH
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10154 done
10155 done
10156 IFS=$as_save_IFS
10158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10160 esac
10162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10163 if test -n "$PKG_CONFIG"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10165 $as_echo "$PKG_CONFIG" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test "$PKG_CONFIG" = "no" ; then
10174 pkg_check_gtk=no
10175 else
10176 PKG_CONFIG_MIN_VERSION=0.9.0
10177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10179 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10181 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183 $as_echo "yes" >&6; }
10184 succeeded=yes
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10187 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10188 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10190 $as_echo "$GTK_CFLAGS" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10193 $as_echo_n "checking GTK_LIBS... " >&6; }
10194 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10196 $as_echo "$GTK_LIBS" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10200 GTK_CFLAGS=""
10201 GTK_LIBS=""
10202 ## If we have a custom action on failure, don't print errors, but
10203 ## do set a variable so people can do so.
10204 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10210 else
10211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10216 if test $succeeded = yes; then
10217 pkg_check_gtk=yes
10218 else
10219 pkg_check_gtk=no
10222 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10223 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10226 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10230 if test "$pkg_check_gtk" != "yes"; then
10231 HAVE_GTK=no
10232 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10233 GLIB_REQUIRED=2.6
10234 GTK_REQUIRED=2.6
10235 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10238 succeeded=no
10240 # Extract the first word of "pkg-config", so it can be a program name with args.
10241 set dummy pkg-config; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 case $PKG_CONFIG in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10263 done
10264 done
10265 IFS=$as_save_IFS
10267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10269 esac
10271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10272 if test -n "$PKG_CONFIG"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10274 $as_echo "$PKG_CONFIG" >&6; }
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10282 if test "$PKG_CONFIG" = "no" ; then
10283 pkg_check_gtk=no
10284 else
10285 PKG_CONFIG_MIN_VERSION=0.9.0
10286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10288 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10290 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292 $as_echo "yes" >&6; }
10293 succeeded=yes
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10296 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10297 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10299 $as_echo "$GTK_CFLAGS" >&6; }
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10302 $as_echo_n "checking GTK_LIBS... " >&6; }
10303 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10305 $as_echo "$GTK_LIBS" >&6; }
10306 else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10309 GTK_CFLAGS=""
10310 GTK_LIBS=""
10311 ## If we have a custom action on failure, don't print errors, but
10312 ## do set a variable so people can do so.
10313 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10319 else
10320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10325 if test $succeeded = yes; then
10326 pkg_check_gtk=yes
10327 else
10328 pkg_check_gtk=no
10331 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10332 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10337 GTK_OBJ=
10338 if test x"$pkg_check_gtk" = xyes; then
10342 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10343 CFLAGS="$CFLAGS $GTK_CFLAGS"
10344 LIBS="$GTK_LIBS $LIBS"
10345 GTK_COMPILES=no
10346 for ac_func in gtk_main
10347 do :
10348 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10349 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10350 cat >>confdefs.h <<_ACEOF
10351 #define HAVE_GTK_MAIN 1
10352 _ACEOF
10353 GTK_COMPILES=yes
10355 done
10357 if test "${GTK_COMPILES}" != "yes"; then
10358 if test "$USE_X_TOOLKIT" != "maybe"; then
10359 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10361 else
10362 HAVE_GTK=yes
10364 $as_echo "#define USE_GTK 1" >>confdefs.h
10366 GTK_OBJ=gtkutil.o
10367 USE_X_TOOLKIT=none
10368 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10372 closing open displays. This is no problem if you just use
10373 one display, but if you use more than one and close one of them
10374 Emacs may crash." >&5
10375 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10376 closing open displays. This is no problem if you just use
10377 one display, but if you use more than one and close one of them
10378 Emacs may crash." >&2;}
10379 sleep 3
10387 if test "${HAVE_GTK}" = "yes"; then
10389 if test "$with_toolkit_scroll_bars" != no; then
10390 with_toolkit_scroll_bars=yes
10393 HAVE_GTK_FILE_SELECTION=no
10394 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10395 #include <gtk/gtk.h>
10397 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10398 HAVE_GTK_FILE_SELECTION=yes
10399 else
10400 HAVE_GTK_FILE_SELECTION=no
10403 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10404 for ac_func in gtk_file_selection_new
10405 do :
10406 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10407 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10408 cat >>confdefs.h <<_ACEOF
10409 #define HAVE_GTK_FILE_SELECTION_NEW 1
10410 _ACEOF
10413 done
10417 HAVE_GTK_AND_PTHREAD=no
10418 for ac_header in pthread.h
10419 do :
10420 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10422 cat >>confdefs.h <<_ACEOF
10423 #define HAVE_PTHREAD_H 1
10424 _ACEOF
10428 done
10430 if test "$ac_cv_header_pthread_h"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10432 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10433 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lpthread $LIBS"
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char pthread_self ();
10449 main ()
10451 return pthread_self ();
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 ac_cv_lib_pthread_pthread_self=yes
10458 else
10459 ac_cv_lib_pthread_pthread_self=no
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10466 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10467 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10468 HAVE_GTK_AND_PTHREAD=yes
10472 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10473 case "${canonical}" in
10474 *-hpux*) ;;
10475 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10476 esac
10478 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10482 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10483 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10484 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10485 gtk_orientable_set_orientation
10486 do :
10487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10489 eval as_val=\$$as_ac_var
10490 if test "x$as_val" = x""yes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10493 _ACEOF
10496 done
10501 HAVE_DBUS=no
10502 DBUS_OBJ=
10503 if test "${with_dbus}" = "yes"; then
10505 succeeded=no
10507 # Extract the first word of "pkg-config", so it can be a program name with args.
10508 set dummy pkg-config; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 case $PKG_CONFIG in
10515 [\\/]* | ?:[\\/]*)
10516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10534 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10536 esac
10538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10539 if test -n "$PKG_CONFIG"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10541 $as_echo "$PKG_CONFIG" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10549 if test "$PKG_CONFIG" = "no" ; then
10550 HAVE_DBUS=no
10551 else
10552 PKG_CONFIG_MIN_VERSION=0.9.0
10553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10555 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10557 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10560 succeeded=yes
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10563 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10564 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10566 $as_echo "$DBUS_CFLAGS" >&6; }
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10569 $as_echo_n "checking DBUS_LIBS... " >&6; }
10570 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10572 $as_echo "$DBUS_LIBS" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 DBUS_CFLAGS=""
10577 DBUS_LIBS=""
10578 ## If we have a custom action on failure, don't print errors, but
10579 ## do set a variable so people can do so.
10580 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10586 else
10587 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10588 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10592 if test $succeeded = yes; then
10593 HAVE_DBUS=yes
10594 else
10595 HAVE_DBUS=no
10598 if test "$HAVE_DBUS" = yes; then
10599 LIBS="$LIBS $DBUS_LIBS"
10601 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10603 for ac_func in dbus_watch_get_unix_fd
10604 do :
10605 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10606 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10609 _ACEOF
10612 done
10614 DBUS_OBJ=dbusbind.o
10619 HAVE_GCONF=no
10620 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10622 succeeded=no
10624 # Extract the first word of "pkg-config", so it can be a program name with args.
10625 set dummy pkg-config; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 case $PKG_CONFIG in
10632 [\\/]* | ?:[\\/]*)
10633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10643 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10647 done
10648 done
10649 IFS=$as_save_IFS
10651 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10653 esac
10655 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10656 if test -n "$PKG_CONFIG"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10658 $as_echo "$PKG_CONFIG" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 if test "$PKG_CONFIG" = "no" ; then
10667 HAVE_GCONF=no
10668 else
10669 PKG_CONFIG_MIN_VERSION=0.9.0
10670 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10672 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10674 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677 succeeded=yes
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10680 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10681 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10683 $as_echo "$GCONF_CFLAGS" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10686 $as_echo_n "checking GCONF_LIBS... " >&6; }
10687 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10689 $as_echo "$GCONF_LIBS" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693 GCONF_CFLAGS=""
10694 GCONF_LIBS=""
10695 ## If we have a custom action on failure, don't print errors, but
10696 ## do set a variable so people can do so.
10697 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10703 else
10704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10709 if test $succeeded = yes; then
10710 HAVE_GCONF=yes
10711 else
10712 HAVE_GCONF=no
10715 if test "$HAVE_GCONF" = yes; then
10717 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10719 for ac_func in g_type_init
10720 do :
10721 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10722 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10723 cat >>confdefs.h <<_ACEOF
10724 #define HAVE_G_TYPE_INIT 1
10725 _ACEOF
10728 done
10733 HAVE_LIBSELINUX=no
10734 LIBSELINUX_LIBS=
10735 if test "${with_selinux}" = "yes"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10737 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10738 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-lselinux $LIBS"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char lgetfilecon ();
10754 main ()
10756 return lgetfilecon ();
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_lib_selinux_lgetfilecon=yes
10763 else
10764 ac_cv_lib_selinux_lgetfilecon=no
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 LIBS=$ac_check_lib_save_LIBS
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10771 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10772 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10773 HAVE_LIBSELINUX=yes
10774 else
10775 HAVE_LIBSELINUX=no
10778 if test "$HAVE_LIBSELINUX" = yes; then
10780 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10782 LIBSELINUX_LIBS=-lselinux
10787 HAVE_GNUTLS=no
10788 if test "${with_gnutls}" = "yes" ; then
10790 succeeded=no
10792 # Extract the first word of "pkg-config", so it can be a program name with args.
10793 set dummy pkg-config; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 case $PKG_CONFIG in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10815 done
10816 done
10817 IFS=$as_save_IFS
10819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10821 esac
10823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10824 if test -n "$PKG_CONFIG"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10826 $as_echo "$PKG_CONFIG" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10834 if test "$PKG_CONFIG" = "no" ; then
10835 HAVE_GNUTLS=no
10836 else
10837 PKG_CONFIG_MIN_VERSION=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10840 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10842 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10844 $as_echo "yes" >&6; }
10845 succeeded=yes
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10848 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10849 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10851 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10854 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10855 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10857 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 LIBGNUTLS_CFLAGS=""
10862 LIBGNUTLS_LIBS=""
10863 ## If we have a custom action on failure, don't print errors, but
10864 ## do set a variable so people can do so.
10865 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10871 else
10872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10877 if test $succeeded = yes; then
10878 HAVE_GNUTLS=yes
10879 else
10880 HAVE_GNUTLS=no
10883 if test "${HAVE_GNUTLS}" = "yes"; then
10885 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10892 HAVE_XAW3D=no
10893 LUCID_LIBW=
10894 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10895 if test "$with_xaw3d" != no; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10897 $as_echo_n "checking for xaw3d... " >&6; }
10898 if test "${emacs_cv_xaw3d+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 #include <X11/Intrinsic.h>
10905 #include <X11/Xaw3d/Simple.h>
10907 main ()
10911 return 0;
10913 _ACEOF
10914 if ac_fn_c_try_link "$LINENO"; then :
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10916 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10917 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-lXaw3d $LIBS"
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 char XawScrollbarSetThumb ();
10933 main ()
10935 return XawScrollbarSetThumb ();
10937 return 0;
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10942 else
10943 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10950 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10951 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10952 emacs_cv_xaw3d=yes
10953 else
10954 emacs_cv_xaw3d=no
10957 else
10958 emacs_cv_xaw3d=no
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10964 else
10965 emacs_cv_xaw3d=no
10967 if test $emacs_cv_xaw3d = 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 HAVE_XAW3D=yes
10972 LUCID_LIBW=-lXaw3d
10974 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10980 $as_echo_n "checking for libXaw... " >&6; }
10981 if test "${emacs_cv_xaw+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 #include <X11/Intrinsic.h>
10988 #include <X11/Xaw/Simple.h>
10990 main ()
10994 return 0;
10996 _ACEOF
10997 if ac_fn_c_try_link "$LINENO"; then :
10998 emacs_cv_xaw=yes
10999 else
11000 emacs_cv_xaw=no
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11006 if test $emacs_cv_xaw = yes; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11008 $as_echo "yes; using Lucid toolkit" >&6; }
11009 USE_X_TOOLKIT=LUCID
11010 LUCID_LIBW=-lXaw
11011 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11012 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11015 $as_echo "no; do not use toolkit by default" >&6; }
11016 USE_X_TOOLKIT=none
11021 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11023 LIBXTR6=
11024 if test "${USE_X_TOOLKIT}" != "none"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11026 $as_echo_n "checking X11 toolkit version... " >&6; }
11027 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032 #include <X11/Intrinsic.h>
11034 main ()
11036 #if XtSpecificationRelease < 6
11037 fail;
11038 #endif
11041 return 0;
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 emacs_cv_x11_toolkit_version_6=yes
11046 else
11047 emacs_cv_x11_toolkit_version_6=no
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11053 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11054 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11056 $as_echo "6 or newer" >&6; }
11058 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11060 LIBXTR6="-lSM -lICE"
11061 case "$opsys" in
11062 ## Use libw.a along with X11R6 Xt.
11063 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11064 esac
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11067 $as_echo "before 6" >&6; }
11070 OLDLIBS="$LIBS"
11071 if test x$HAVE_X11XTR6 = xyes; then
11072 LIBS="-lXt -lSM -lICE $LIBS"
11073 else
11074 LIBS="-lXt $LIBS"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11077 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11078 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-lXmu $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char XmuConvertStandardSelection ();
11094 main ()
11096 return XmuConvertStandardSelection ();
11098 return 0;
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11103 else
11104 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11111 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11112 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11113 cat >>confdefs.h <<_ACEOF
11114 #define HAVE_LIBXMU 1
11115 _ACEOF
11117 LIBS="-lXmu $LIBS"
11121 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11125 LIBXMU=-lXmu
11126 case $opsys in
11127 ## These systems don't supply Xmu.
11128 hpux* | aix4-2 )
11129 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11131 esac
11134 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11135 if test "${HAVE_X11}" = "yes"; then
11136 if test "${USE_X_TOOLKIT}" != "none"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11138 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11139 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_lib_save_LIBS=$LIBS
11143 LIBS="-lXext $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char XShapeQueryExtension ();
11155 main ()
11157 return XShapeQueryExtension ();
11159 return 0;
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_Xext_XShapeQueryExtension=yes
11164 else
11165 ac_cv_lib_Xext_XShapeQueryExtension=no
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 LIBS=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11172 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11173 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_LIBXEXT 1
11176 _ACEOF
11178 LIBS="-lXext $LIBS"
11185 LIBXP=
11186 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11188 $as_echo_n "checking for Motif version 2.1... " >&6; }
11189 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 #include <Xm/Xm.h>
11196 main ()
11198 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11199 int x = 5;
11200 #else
11201 Motif version prior to 2.1.
11202 #endif
11204 return 0;
11206 _ACEOF
11207 if ac_fn_c_try_compile "$LINENO"; then :
11208 emacs_cv_motif_version_2_1=yes
11209 else
11210 emacs_cv_motif_version_2_1=no
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11215 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11216 if test $emacs_cv_motif_version_2_1 = yes; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11218 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11219 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lXp $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char XpCreateContext ();
11235 main ()
11237 return XpCreateContext ();
11239 return 0;
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_lib_Xp_XpCreateContext=yes
11244 else
11245 ac_cv_lib_Xp_XpCreateContext=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11252 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11253 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11254 LIBXP=-lXp
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11259 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11260 if test "${emacs_cv_lesstif+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 # We put this in CFLAGS temporarily to precede other -I options
11264 # that might be in CFLAGS temporarily.
11265 # We put this in CPPFLAGS where it precedes the other -I options.
11266 OLD_CPPFLAGS=$CPPFLAGS
11267 OLD_CFLAGS=$CFLAGS
11268 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11269 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11274 main ()
11276 int x = 5;
11278 return 0;
11280 _ACEOF
11281 if ac_fn_c_try_compile "$LINENO"; then :
11282 emacs_cv_lesstif=yes
11283 else
11284 emacs_cv_lesstif=no
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11289 $as_echo "$emacs_cv_lesstif" >&6; }
11290 if test $emacs_cv_lesstif = yes; then
11291 # Make sure this -I option remains in CPPFLAGS after it is set
11292 # back to REAL_CPPFLAGS.
11293 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11294 # have those other -I options anyway. Ultimately, having this
11295 # directory ultimately in CPPFLAGS will be enough.
11296 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11297 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11298 else
11299 CFLAGS=$OLD_CFLAGS
11300 CPPFLAGS=$OLD_CPPFLAGS
11306 USE_TOOLKIT_SCROLL_BARS=no
11307 if test "${with_toolkit_scroll_bars}" != "no"; then
11308 if test "${USE_X_TOOLKIT}" != "none"; then
11309 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11310 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11312 HAVE_XAW3D=no
11313 USE_TOOLKIT_SCROLL_BARS=yes
11314 elif test "${HAVE_XAW3D}" = "yes"; then
11315 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11317 USE_TOOLKIT_SCROLL_BARS=yes
11319 elif test "${HAVE_GTK}" = "yes"; then
11320 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11322 USE_TOOLKIT_SCROLL_BARS=yes
11323 elif test "${HAVE_NS}" = "yes"; then
11324 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11326 USE_TOOLKIT_SCROLL_BARS=yes
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 #include <X11/Xlib.h>
11334 #include <X11/Xresource.h>
11336 main ()
11338 XIMProc callback;
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_compile "$LINENO"; then :
11344 HAVE_XIM=yes
11346 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11348 else
11349 HAVE_XIM=no
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 if test "${with_xim}" != "no"; then
11356 $as_echo "#define USE_XIM 1" >>confdefs.h
11361 if test "${HAVE_XIM}" != "no"; then
11362 late_CFLAGS=$CFLAGS
11363 if test "$GCC" = yes; then
11364 CFLAGS="$CFLAGS --pedantic-errors"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 #include <X11/Xlib.h>
11370 #include <X11/Xresource.h>
11372 main ()
11374 Display *display;
11375 XrmDatabase db;
11376 char *res_name;
11377 char *res_class;
11378 XIMProc callback;
11379 XPointer *client_data;
11380 #ifndef __GNUC__
11381 /* If we're not using GCC, it's probably not XFree86, and this is
11382 probably right, but we can't use something like --pedantic-errors. */
11383 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11384 char*, XIMProc, XPointer*);
11385 #endif
11386 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11387 client_data);
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_compile "$LINENO"; then :
11393 emacs_cv_arg6_star=yes
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 if test "$emacs_cv_arg6_star" = yes; then
11397 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11399 else
11400 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11403 CFLAGS=$late_CFLAGS
11406 ### Start of font-backend (under any platform) section.
11407 # (nothing here yet -- this is a placeholder)
11408 ### End of font-backend (under any platform) section.
11410 ### Start of font-backend (under X11) section.
11411 if test "${HAVE_X11}" = "yes"; then
11413 succeeded=no
11415 # Extract the first word of "pkg-config", so it can be a program name with args.
11416 set dummy pkg-config; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 case $PKG_CONFIG in
11423 [\\/]* | ?:[\\/]*)
11424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11438 done
11439 done
11440 IFS=$as_save_IFS
11442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11444 esac
11446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11447 if test -n "$PKG_CONFIG"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11449 $as_echo "$PKG_CONFIG" >&6; }
11450 else
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11457 if test "$PKG_CONFIG" = "no" ; then
11458 HAVE_FC=no
11459 else
11460 PKG_CONFIG_MIN_VERSION=0.9.0
11461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11463 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11465 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467 $as_echo "yes" >&6; }
11468 succeeded=yes
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11471 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11472 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11474 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11477 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11478 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11480 $as_echo "$FONTCONFIG_LIBS" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11484 FONTCONFIG_CFLAGS=""
11485 FONTCONFIG_LIBS=""
11486 ## If we have a custom action on failure, don't print errors, but
11487 ## do set a variable so people can do so.
11488 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11494 else
11495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11500 if test $succeeded = yes; then
11501 HAVE_FC=yes
11502 else
11503 HAVE_FC=no
11507 ## Use -lXft if available, unless `--with-xft=no'.
11508 HAVE_XFT=maybe
11509 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11510 with_xft="no";
11512 if test "x${with_xft}" != "xno"; then
11515 succeeded=no
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 case $PKG_CONFIG in
11525 [\\/]* | ?:[\\/]*)
11526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11546 esac
11548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11551 $as_echo "$PKG_CONFIG" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11559 if test "$PKG_CONFIG" = "no" ; then
11560 HAVE_XFT=no
11561 else
11562 PKG_CONFIG_MIN_VERSION=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11565 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11567 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11569 $as_echo "yes" >&6; }
11570 succeeded=yes
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11573 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11574 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11576 $as_echo "$XFT_CFLAGS" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11579 $as_echo_n "checking XFT_LIBS... " >&6; }
11580 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11582 $as_echo "$XFT_LIBS" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 XFT_CFLAGS=""
11587 XFT_LIBS=""
11588 ## If we have a custom action on failure, don't print errors, but
11589 ## do set a variable so people can do so.
11590 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11596 else
11597 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11598 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11602 if test $succeeded = yes; then
11604 else
11605 HAVE_XFT=no
11608 ## Because xftfont.c uses XRenderQueryExtension, we also
11609 ## need to link to -lXrender.
11610 HAVE_XRENDER=no
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11612 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11613 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-lXrender $LIBS"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char XRenderQueryExtension ();
11629 main ()
11631 return XRenderQueryExtension ();
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11638 else
11639 ac_cv_lib_Xrender_XRenderQueryExtension=no
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11646 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11647 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11648 HAVE_XRENDER=yes
11651 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11652 OLD_CPPFLAGS="$CPPFLAGS"
11653 OLD_CFLAGS="$CFLAGS"
11654 OLD_LIBS="$LIBS"
11655 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11656 CFLAGS="$CFLAGS $XFT_CFLAGS"
11657 XFT_LIBS="-lXrender $XFT_LIBS"
11658 LIBS="$XFT_LIBS $LIBS"
11659 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11660 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11662 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11663 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lXft $XFT_LIBS $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char XftFontOpen ();
11679 main ()
11681 return XftFontOpen ();
11683 return 0;
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_Xft_XftFontOpen=yes
11688 else
11689 ac_cv_lib_Xft_XftFontOpen=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11696 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11697 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11698 HAVE_XFT=yes
11705 if test "${HAVE_XFT}" = "yes"; then
11707 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11710 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11711 else
11712 CPPFLAGS="$OLD_CPPFLAGS"
11713 CFLAGS="$OLD_CFLAGS"
11714 LIBS="$OLD_LIBS"
11715 fi # "${HAVE_XFT}" = "yes"
11716 fi # "$HAVE_XFT" != no
11717 fi # "x${with_xft}" != "xno"
11719 ## We used to allow building with FreeType and without Xft.
11720 ## However, the ftx font backend driver is not in good shape.
11721 if test "$HAVE_XFT" != "yes"; then
11722 HAVE_XFT=no
11723 HAVE_FREETYPE=no
11724 else
11726 succeeded=no
11728 # Extract the first word of "pkg-config", so it can be a program name with args.
11729 set dummy pkg-config; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $PKG_CONFIG in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11757 esac
11759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11760 if test -n "$PKG_CONFIG"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11762 $as_echo "$PKG_CONFIG" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11770 if test "$PKG_CONFIG" = "no" ; then
11771 HAVE_FREETYPE=no
11772 else
11773 PKG_CONFIG_MIN_VERSION=0.9.0
11774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11776 $as_echo_n "checking for freetype2... " >&6; }
11778 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11780 $as_echo "yes" >&6; }
11781 succeeded=yes
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11784 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11785 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11787 $as_echo "$FREETYPE_CFLAGS" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11790 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11791 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11793 $as_echo "$FREETYPE_LIBS" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 FREETYPE_CFLAGS=""
11798 FREETYPE_LIBS=""
11799 ## If we have a custom action on failure, don't print errors, but
11800 ## do set a variable so people can do so.
11801 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11807 else
11808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11813 if test $succeeded = yes; then
11814 HAVE_FREETYPE=yes
11815 else
11816 HAVE_FREETYPE=no
11820 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11823 HAVE_LIBOTF=no
11824 if test "${HAVE_FREETYPE}" = "yes"; then
11826 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11828 if test "${with_libotf}" != "no"; then
11830 succeeded=no
11832 # Extract the first word of "pkg-config", so it can be a program name with args.
11833 set dummy pkg-config; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 case $PKG_CONFIG in
11840 [\\/]* | ?:[\\/]*)
11841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11855 done
11856 done
11857 IFS=$as_save_IFS
11859 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11861 esac
11863 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11864 if test -n "$PKG_CONFIG"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11866 $as_echo "$PKG_CONFIG" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11874 if test "$PKG_CONFIG" = "no" ; then
11875 HAVE_LIBOTF=no
11876 else
11877 PKG_CONFIG_MIN_VERSION=0.9.0
11878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11880 $as_echo_n "checking for libotf... " >&6; }
11882 if $PKG_CONFIG --exists "libotf" 2>&5; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885 succeeded=yes
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11888 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11889 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11891 $as_echo "$LIBOTF_CFLAGS" >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11894 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11895 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11897 $as_echo "$LIBOTF_LIBS" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 LIBOTF_CFLAGS=""
11902 LIBOTF_LIBS=""
11903 ## If we have a custom action on failure, don't print errors, but
11904 ## do set a variable so people can do so.
11905 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11911 else
11912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11917 if test $succeeded = yes; then
11918 HAVE_LIBOTF=yes
11919 else
11920 HAVE_LIBOTF=no
11923 if test "$HAVE_LIBOTF" = "yes"; then
11925 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11928 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11929 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lotf $LIBS"
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char OTF_get_variation_glyphs ();
11945 main ()
11947 return OTF_get_variation_glyphs ();
11949 return 0;
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11954 else
11955 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11957 rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11962 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11963 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11964 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11965 else
11966 HAVE_OTF_GET_VARIATION_GLYPHS=no
11969 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11971 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11978 HAVE_M17N_FLT=no
11979 if test "${HAVE_LIBOTF}" = yes; then
11980 if test "${with_m17n_flt}" != "no"; then
11982 succeeded=no
11984 # Extract the first word of "pkg-config", so it can be a program name with args.
11985 set dummy pkg-config; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 case $PKG_CONFIG in
11992 [\\/]* | ?:[\\/]*)
11993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12013 esac
12015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12016 if test -n "$PKG_CONFIG"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12018 $as_echo "$PKG_CONFIG" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test "$PKG_CONFIG" = "no" ; then
12027 HAVE_M17N_FLT=no
12028 else
12029 PKG_CONFIG_MIN_VERSION=0.9.0
12030 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12032 $as_echo_n "checking for m17n-flt... " >&6; }
12034 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037 succeeded=yes
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12040 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12041 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12043 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12046 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12047 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12049 $as_echo "$M17N_FLT_LIBS" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 M17N_FLT_CFLAGS=""
12054 M17N_FLT_LIBS=""
12055 ## If we have a custom action on failure, don't print errors, but
12056 ## do set a variable so people can do so.
12057 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12063 else
12064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12069 if test $succeeded = yes; then
12070 HAVE_M17N_FLT=yes
12071 else
12072 HAVE_M17N_FLT=no
12075 if test "$HAVE_M17N_FLT" = "yes"; then
12077 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12082 else
12083 HAVE_XFT=no
12084 HAVE_FREETYPE=no
12085 HAVE_LIBOTF=no
12086 HAVE_M17N_FLT=no
12089 ### End of font-backend (under X11) section.
12100 ### Use -lXpm if available, unless `--with-xpm=no'.
12101 HAVE_XPM=no
12102 LIBXPM=
12103 if test "${HAVE_X11}" = "yes"; then
12104 if test "${with_xpm}" != "no"; then
12105 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12106 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12108 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12109 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lXpm -lX11 $LIBS"
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 char XpmReadFileToPixmap ();
12125 main ()
12127 return XpmReadFileToPixmap ();
12129 return 0;
12131 _ACEOF
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12134 else
12135 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12142 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12143 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12144 HAVE_XPM=yes
12150 if test "${HAVE_XPM}" = "yes"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12152 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include "X11/xpm.h"
12156 #ifndef XpmReturnAllocPixels
12157 no_return_alloc_pixels
12158 #endif
12160 _ACEOF
12161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12162 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12163 HAVE_XPM=no
12164 else
12165 HAVE_XPM=yes
12167 rm -f conftest*
12170 if test "${HAVE_XPM}" = "yes"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12172 $as_echo "yes" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12180 if test "${HAVE_XPM}" = "yes"; then
12182 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12184 LIBXPM=-lXpm
12189 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12190 HAVE_JPEG=no
12191 LIBJPEG=
12192 if test "${HAVE_X11}" = "yes"; then
12193 if test "${with_jpeg}" != "no"; then
12194 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12195 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12197 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12198 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 ac_check_lib_save_LIBS=$LIBS
12202 LIBS="-ljpeg $LIBS"
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12206 /* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply. */
12209 #ifdef __cplusplus
12210 extern "C"
12211 #endif
12212 char jpeg_destroy_compress ();
12214 main ()
12216 return jpeg_destroy_compress ();
12218 return 0;
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"; then :
12222 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12223 else
12224 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12226 rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12231 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12232 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12233 HAVE_JPEG=yes
12241 if test "${HAVE_JPEG}" = "yes"; then
12242 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <jpeglib.h>
12247 version=JPEG_LIB_VERSION
12249 _ACEOF
12250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12251 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12252 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12256 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12257 HAVE_JPEG=no
12259 rm -f conftest*
12262 if test "${HAVE_JPEG}" = "yes"; then
12263 LIBJPEG=-ljpeg
12268 ### Use -lpng if available, unless `--with-png=no'.
12269 HAVE_PNG=no
12270 LIBPNG=
12271 if test "${HAVE_X11}" = "yes"; then
12272 if test "${with_png}" != "no"; then
12273 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12274 # in /usr/include/libpng.
12275 for ac_header in png.h libpng/png.h
12276 do :
12277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12278 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12279 eval as_val=\$$as_ac_Header
12280 if test "x$as_val" = x""yes; then :
12281 cat >>confdefs.h <<_ACEOF
12282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 _ACEOF
12287 done
12289 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12291 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12292 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-lpng -lz -lm $LIBS"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char png_get_channels ();
12308 main ()
12310 return png_get_channels ();
12312 return 0;
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 ac_cv_lib_png_png_get_channels=yes
12317 else
12318 ac_cv_lib_png_png_get_channels=no
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12325 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12326 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12327 HAVE_PNG=yes
12333 if test "${HAVE_PNG}" = "yes"; then
12335 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12337 LIBPNG="-lpng -lz -lm"
12342 ### Use -ltiff if available, unless `--with-tiff=no'.
12343 HAVE_TIFF=no
12344 LIBTIFF=
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_tiff}" != "no"; then
12347 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12348 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12349 tifflibs="-lz -lm"
12350 # At least one tiff package requires the jpeg library.
12351 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12353 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12354 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-ltiff $tifflibs $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char TIFFGetVersion ();
12370 main ()
12372 return TIFFGetVersion ();
12374 return 0;
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_tiff_TIFFGetVersion=yes
12379 else
12380 ac_cv_lib_tiff_TIFFGetVersion=no
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12387 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12388 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12389 HAVE_TIFF=yes
12397 if test "${HAVE_TIFF}" = "yes"; then
12399 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12401 LIBTIFF=-ltiff
12406 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12407 HAVE_GIF=no
12408 LIBGIF=
12409 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12410 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12411 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12412 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12413 # Earlier versions can crash Emacs.
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12415 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12416 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lgif $LIBS"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char EGifPutExtensionLast ();
12432 main ()
12434 return EGifPutExtensionLast ();
12436 return 0;
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_lib_gif_EGifPutExtensionLast=yes
12441 else
12442 ac_cv_lib_gif_EGifPutExtensionLast=no
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12449 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12450 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12451 HAVE_GIF=yes
12452 else
12453 HAVE_GIF=maybe
12460 if test "$HAVE_GIF" = yes; then
12461 LIBGIF=-lgif
12462 elif test "$HAVE_GIF" = maybe; then
12463 # If gif_lib.h but no libgif, try libungif.
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12465 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12466 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lungif $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char EGifPutExtensionLast ();
12482 main ()
12484 return EGifPutExtensionLast ();
12486 return 0;
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12491 else
12492 ac_cv_lib_ungif_EGifPutExtensionLast=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12499 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12500 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12501 HAVE_GIF=yes
12502 else
12503 HAVE_GIF=no
12506 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12509 if test "${HAVE_GIF}" = "yes"; then
12511 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12517 if test "${HAVE_X11}" = "yes"; then
12518 MISSING=""
12519 WITH_NO=""
12520 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12521 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12522 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12523 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12524 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12525 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12526 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12527 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12528 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12529 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12531 if test "X${MISSING}" != X; then
12532 as_fn_error "The following required libraries were not found:
12533 $MISSING
12534 Maybe some development libraries/packages are missing?
12535 If you don't want to link with them give
12536 $WITH_NO
12537 as options to configure" "$LINENO" 5
12541 ### Use -lgpm if available, unless `--with-gpm=no'.
12542 HAVE_GPM=no
12543 LIBGPM=
12544 MOUSE_SUPPORT=
12545 if test "${with_gpm}" != "no"; then
12546 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12547 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12549 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12550 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_check_lib_save_LIBS=$LIBS
12554 LIBS="-lgpm $LIBS"
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 char Gpm_Open ();
12566 main ()
12568 return Gpm_Open ();
12570 return 0;
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_lib_gpm_Gpm_Open=yes
12575 else
12576 ac_cv_lib_gpm_Gpm_Open=no
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12583 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12584 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12585 HAVE_GPM=yes
12592 if test "${HAVE_GPM}" = "yes"; then
12594 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12596 LIBGPM=-lgpm
12597 ## May be reset below.
12598 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12603 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12604 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12606 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12612 C_SWITCH_X_SYSTEM=
12613 ### Use NeXTstep API to implement GUI.
12614 if test "${HAVE_NS}" = "yes"; then
12616 $as_echo "#define HAVE_NS 1" >>confdefs.h
12618 if test "${NS_IMPL_COCOA}" = "yes"; then
12620 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12622 GNU_OBJC_CFLAGS=
12624 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12626 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12628 # See also .m.o rule in Makefile.in */
12629 # FIXME: are all these flags really needed? Document here why. */
12630 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12631 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12633 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12635 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12638 # We also have mouse menus.
12639 HAVE_MENUS=yes
12640 OTHER_FILES=ns-app
12644 ### Use session management (-lSM -lICE) if available
12645 HAVE_X_SM=no
12646 LIBXSM=
12647 if test "${HAVE_X11}" = "yes"; then
12648 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12649 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12651 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12652 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-lSM -lICE $LIBS"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 char SmcOpenConnection ();
12668 main ()
12670 return SmcOpenConnection ();
12672 return 0;
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_lib_SM_SmcOpenConnection=yes
12677 else
12678 ac_cv_lib_SM_SmcOpenConnection=no
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12685 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12686 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12687 HAVE_X_SM=yes
12694 if test "${HAVE_X_SM}" = "yes"; then
12696 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12698 LIBXSM="-lSM -lICE"
12699 case "$LIBS" in
12700 *-lSM*) ;;
12701 *) LIBS="$LIBXSM $LIBS" ;;
12702 esac
12707 ### Use libxml (-lxml2) if available
12708 if test "${with_xml2}" != "no"; then
12709 ### I'm not sure what the version number should be, so I just guessed.
12711 succeeded=no
12713 # Extract the first word of "pkg-config", so it can be a program name with args.
12714 set dummy pkg-config; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 case $PKG_CONFIG in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12736 done
12737 done
12738 IFS=$as_save_IFS
12740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12742 esac
12744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12745 if test -n "$PKG_CONFIG"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12747 $as_echo "$PKG_CONFIG" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12755 if test "$PKG_CONFIG" = "no" ; then
12756 HAVE_LIBXML2=no
12757 else
12758 PKG_CONFIG_MIN_VERSION=0.9.0
12759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12761 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12763 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 $as_echo "yes" >&6; }
12766 succeeded=yes
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12769 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12770 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12772 $as_echo "$LIBXML2_CFLAGS" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12775 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12776 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12778 $as_echo "$LIBXML2_LIBS" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 LIBXML2_CFLAGS=""
12783 LIBXML2_LIBS=""
12784 ## If we have a custom action on failure, don't print errors, but
12785 ## do set a variable so people can do so.
12786 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12792 else
12793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12798 if test $succeeded = yes; then
12799 HAVE_LIBXML2=yes
12800 else
12801 HAVE_LIBXML2=no
12804 if test "${HAVE_LIBXML2}" = "yes"; then
12805 LIBS="$LIBXML2_LIBS $LIBS"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12807 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12808 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 ac_check_lib_save_LIBS=$LIBS
12812 LIBS="-lxml2 $LIBS"
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char htmlReadMemory ();
12824 main ()
12826 return htmlReadMemory ();
12828 return 0;
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 ac_cv_lib_xml2_htmlReadMemory=yes
12833 else
12834 ac_cv_lib_xml2_htmlReadMemory=no
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LIBS=$ac_check_lib_save_LIBS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12841 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12842 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12843 HAVE_LIBXML2=yes
12844 else
12845 HAVE_LIBXML2=no
12848 if test "${HAVE_LIBXML2}" = "yes"; then
12850 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12852 else
12853 LIBXML2_LIBS=""
12854 LIBXML2_CFLAGS=""
12861 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12863 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12864 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <netdb.h>
12871 main ()
12873 return h_errno;
12875 return 0;
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 emacs_cv_netdb_declares_h_errno=yes
12880 else
12881 emacs_cv_netdb_declares_h_errno=no
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12887 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12888 if test $emacs_cv_netdb_declares_h_errno = yes; then
12890 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12894 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12895 # for constant arguments. Useless!
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12897 $as_echo_n "checking for working alloca.h... " >&6; }
12898 if test "${ac_cv_working_alloca_h+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 #include <alloca.h>
12905 main ()
12907 char *p = (char *) alloca (2 * sizeof (int));
12908 if (p) return 0;
12910 return 0;
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 ac_cv_working_alloca_h=yes
12915 else
12916 ac_cv_working_alloca_h=no
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12922 $as_echo "$ac_cv_working_alloca_h" >&6; }
12923 if test $ac_cv_working_alloca_h = yes; then
12925 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12930 $as_echo_n "checking for alloca... " >&6; }
12931 if test "${ac_cv_func_alloca_works+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 #ifdef __GNUC__
12937 # define alloca __builtin_alloca
12938 #else
12939 # ifdef _MSC_VER
12940 # include <malloc.h>
12941 # define alloca _alloca
12942 # else
12943 # ifdef HAVE_ALLOCA_H
12944 # include <alloca.h>
12945 # else
12946 # ifdef _AIX
12947 #pragma alloca
12948 # else
12949 # ifndef alloca /* predefined by HP cc +Olibcalls */
12950 char *alloca ();
12951 # endif
12952 # endif
12953 # endif
12954 # endif
12955 #endif
12958 main ()
12960 char *p = (char *) alloca (1);
12961 if (p) return 0;
12963 return 0;
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_func_alloca_works=yes
12968 else
12969 ac_cv_func_alloca_works=no
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12975 $as_echo "$ac_cv_func_alloca_works" >&6; }
12977 if test $ac_cv_func_alloca_works = yes; then
12979 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12981 else
12982 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12983 # that cause trouble. Some versions do not even contain alloca or
12984 # contain a buggy version. If you still want to use their alloca,
12985 # use ar to extract alloca.o from them instead of compiling alloca.c.
12987 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12989 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12993 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12994 if test "${ac_cv_os_cray+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999 #if defined CRAY && ! defined CRAY2
13000 webecray
13001 #else
13002 wenotbecray
13003 #endif
13005 _ACEOF
13006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13007 $EGREP "webecray" >/dev/null 2>&1; then :
13008 ac_cv_os_cray=yes
13009 else
13010 ac_cv_os_cray=no
13012 rm -f conftest*
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13016 $as_echo "$ac_cv_os_cray" >&6; }
13017 if test $ac_cv_os_cray = yes; then
13018 for ac_func in _getb67 GETB67 getb67; do
13019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13021 eval as_val=\$$as_ac_var
13022 if test "x$as_val" = x""yes; then :
13024 cat >>confdefs.h <<_ACEOF
13025 #define CRAY_STACKSEG_END $ac_func
13026 _ACEOF
13028 break
13031 done
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13035 $as_echo_n "checking stack direction for C alloca... " >&6; }
13036 if test "${ac_cv_c_stack_direction+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 if test "$cross_compiling" = yes; then :
13040 ac_cv_c_stack_direction=0
13041 else
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 $ac_includes_default
13046 find_stack_direction ()
13048 static char *addr = 0;
13049 auto char dummy;
13050 if (addr == 0)
13052 addr = &dummy;
13053 return find_stack_direction ();
13055 else
13056 return (&dummy > addr) ? 1 : -1;
13060 main ()
13062 return find_stack_direction () < 0;
13064 _ACEOF
13065 if ac_fn_c_try_run "$LINENO"; then :
13066 ac_cv_c_stack_direction=1
13067 else
13068 ac_cv_c_stack_direction=-1
13070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13071 conftest.$ac_objext conftest.beam conftest.$ac_ext
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13076 $as_echo "$ac_cv_c_stack_direction" >&6; }
13077 cat >>confdefs.h <<_ACEOF
13078 #define STACK_DIRECTION $ac_cv_c_stack_direction
13079 _ACEOF
13085 if test x"$ac_cv_func_alloca_works" != xyes; then
13086 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13089 # fmod, logb, and frexp are found in -lm on most systems.
13090 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13092 $as_echo_n "checking for sqrt in -lm... " >&6; }
13093 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-lm $LIBS"
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char sqrt ();
13109 main ()
13111 return sqrt ();
13113 return 0;
13115 _ACEOF
13116 if ac_fn_c_try_link "$LINENO"; then :
13117 ac_cv_lib_m_sqrt=yes
13118 else
13119 ac_cv_lib_m_sqrt=no
13121 rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 LIBS=$ac_check_lib_save_LIBS
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13126 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13127 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13128 cat >>confdefs.h <<_ACEOF
13129 #define HAVE_LIBM 1
13130 _ACEOF
13132 LIBS="-lm $LIBS"
13137 # Check for mail-locking functions in a "mail" library. Probably this should
13138 # have the same check as for liblockfile below.
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13140 $as_echo_n "checking for maillock in -lmail... " >&6; }
13141 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 ac_check_lib_save_LIBS=$LIBS
13145 LIBS="-lmail $LIBS"
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char maillock ();
13157 main ()
13159 return maillock ();
13161 return 0;
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 ac_cv_lib_mail_maillock=yes
13166 else
13167 ac_cv_lib_mail_maillock=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13174 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13175 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13176 have_mail=yes
13177 else
13178 have_mail=no
13181 if test $have_mail = yes; then
13182 LIBS_MAIL=-lmail
13183 LIBS="$LIBS_MAIL $LIBS"
13185 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13187 else
13188 LIBS_MAIL=
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13191 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13192 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-llockfile $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char maillock ();
13208 main ()
13210 return maillock ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_lockfile_maillock=yes
13217 else
13218 ac_cv_lib_lockfile_maillock=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13225 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13226 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13227 have_lockfile=yes
13228 else
13229 have_lockfile=no
13232 if test $have_lockfile = yes; then
13233 LIBS_MAIL=-llockfile
13234 LIBS="$LIBS_MAIL $LIBS"
13236 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13238 else
13239 # If we have the shared liblockfile, assume we must use it for mail
13240 # locking (e.g. Debian). If we couldn't link against liblockfile
13241 # (no liblockfile.a installed), ensure that we don't need to.
13242 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13243 set dummy liblockfile.so; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 if test -n "$liblockfile"; then
13250 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13254 for as_dir in $as_dummy
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_prog_liblockfile="yes"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13264 done
13265 done
13266 IFS=$as_save_IFS
13268 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13271 liblockfile=$ac_cv_prog_liblockfile
13272 if test -n "$liblockfile"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13274 $as_echo "$liblockfile" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13281 if test $ac_cv_prog_liblockfile = yes; then
13282 as_fn_error "Shared liblockfile found but can't link against it.
13283 This probably means that movemail could lose mail.
13284 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13287 for ac_func in touchlock
13288 do :
13289 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13290 if test "x$ac_cv_func_touchlock" = x""yes; then :
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_TOUCHLOCK 1
13293 _ACEOF
13296 done
13298 for ac_header in maillock.h
13299 do :
13300 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_MAILLOCK_H 1
13304 _ACEOF
13308 done
13312 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13313 ## interlock access to the mail spool. The alternative is a lock file named
13314 ## /usr/spool/mail/$USER.lock.
13315 mail_lock=no
13316 case "$opsys" in
13317 aix4-2) mail_lock="lockf" ;;
13319 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13321 ## On GNU/Linux systems, both methods are used by various mail programs.
13322 ## I assume most people are using newer mailers that have heard of flock.
13323 ## Change this if you need to.
13324 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13325 ## configure gets the right answers, and that means *NOT* using flock.
13326 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13327 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13328 ## Debian maintainer hasn't provided a clean fix for Emacs.
13329 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13330 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13331 ## correct logic. -- fx
13332 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13333 ## liblockfile is a Free Software replacement for libmail, used on
13334 ## Debian systems and elsewhere. -rfr.
13335 gnu-*)
13336 mail_lock="flock"
13337 if test $have_mail = yes || test $have_lockfile = yes; then
13338 test $ac_cv_header_maillock_h = yes && mail_lock=no
13341 esac
13343 BLESSMAIL_TARGET=
13344 case "$mail_lock" in
13345 flock)
13346 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13349 lockf)
13350 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13353 *) BLESSMAIL_TARGET="need-blessmail" ;;
13354 esac
13358 for ac_func in gethostname getdomainname dup2 \
13359 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13360 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13361 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13362 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13363 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13364 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13365 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13366 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13367 cfmakeraw cfsetspeed isnan copysign __executable_start
13368 do :
13369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13371 eval as_val=\$$as_ac_var
13372 if test "x$as_val" = x""yes; then :
13373 cat >>confdefs.h <<_ACEOF
13374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13375 _ACEOF
13378 done
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13382 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13383 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13390 main ()
13392 __builtin_unwind_init ();
13394 return 0;
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398 emacs_cv_func___builtin_unwind_init=yes
13399 else
13400 emacs_cv_func___builtin_unwind_init=no
13402 rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13406 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13407 if test $emacs_cv_func___builtin_unwind_init = yes; then
13409 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13413 for ac_header in sys/un.h
13414 do :
13415 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13416 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_SYS_UN_H 1
13419 _ACEOF
13423 done
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13427 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13428 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 while :; do
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <sys/types.h> /* for off_t */
13435 #include <stdio.h>
13437 main ()
13439 int (*fp) (FILE *, off_t, int) = fseeko;
13440 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_sys_largefile_source=no; break
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #define _LARGEFILE_SOURCE 1
13453 #include <sys/types.h> /* for off_t */
13454 #include <stdio.h>
13456 main ()
13458 int (*fp) (FILE *, off_t, int) = fseeko;
13459 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13461 return 0;
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_sys_largefile_source=1; break
13467 rm -f core conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 ac_cv_sys_largefile_source=unknown
13470 break
13471 done
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13474 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13475 case $ac_cv_sys_largefile_source in #(
13476 no | unknown) ;;
13478 cat >>confdefs.h <<_ACEOF
13479 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13480 _ACEOF
13482 esac
13483 rm -rf conftest*
13485 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13486 # in glibc 2.1.3, but that breaks too many other things.
13487 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13488 if test $ac_cv_sys_largefile_source != unknown; then
13490 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13496 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13497 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 # Use it with a single arg.
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503 $ac_includes_default
13505 main ()
13507 getpgrp (0);
13509 return 0;
13511 _ACEOF
13512 if ac_fn_c_try_compile "$LINENO"; then :
13513 ac_cv_func_getpgrp_void=no
13514 else
13515 ac_cv_func_getpgrp_void=yes
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13521 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13522 if test $ac_cv_func_getpgrp_void = yes; then
13524 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13529 # Configure gnulib.
13540 LIBC_FATAL_STDERR_=1
13541 export LIBC_FATAL_STDERR_
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13545 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13546 if test "${ac_cv_c_bigendian+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 ac_cv_c_bigendian=unknown
13550 # See if we're dealing with a universal compiler.
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #ifndef __APPLE_CC__
13554 not a universal capable compiler
13555 #endif
13556 typedef int dummy;
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"; then :
13561 # Check for potential -arch flags. It is not universal unless
13562 # there are at least two -arch flags with different values.
13563 ac_arch=
13564 ac_prev=
13565 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13566 if test -n "$ac_prev"; then
13567 case $ac_word in
13568 i?86 | x86_64 | ppc | ppc64)
13569 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13570 ac_arch=$ac_word
13571 else
13572 ac_cv_c_bigendian=universal
13573 break
13576 esac
13577 ac_prev=
13578 elif test "x$ac_word" = "x-arch"; then
13579 ac_prev=arch
13581 done
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 if test $ac_cv_c_bigendian = unknown; then
13585 # See if sys/param.h defines the BYTE_ORDER macro.
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include <sys/types.h>
13589 #include <sys/param.h>
13592 main ()
13594 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13595 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13596 && LITTLE_ENDIAN)
13597 bogus endian macros
13598 #endif
13601 return 0;
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"; then :
13605 # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include <sys/types.h>
13609 #include <sys/param.h>
13612 main ()
13614 #if BYTE_ORDER != BIG_ENDIAN
13615 not big endian
13616 #endif
13619 return 0;
13621 _ACEOF
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623 ac_cv_c_bigendian=yes
13624 else
13625 ac_cv_c_bigendian=no
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 if test $ac_cv_c_bigendian = unknown; then
13632 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <limits.h>
13638 main ()
13640 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13641 bogus endian macros
13642 #endif
13645 return 0;
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 # It does; now see whether it defined to _BIG_ENDIAN or not.
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 #include <limits.h>
13655 main ()
13657 #ifndef _BIG_ENDIAN
13658 not big endian
13659 #endif
13662 return 0;
13664 _ACEOF
13665 if ac_fn_c_try_compile "$LINENO"; then :
13666 ac_cv_c_bigendian=yes
13667 else
13668 ac_cv_c_bigendian=no
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 if test $ac_cv_c_bigendian = unknown; then
13675 # Compile a test program.
13676 if test "$cross_compiling" = yes; then :
13677 # Try to guess by grepping values from an object file.
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 short int ascii_mm[] =
13681 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13682 short int ascii_ii[] =
13683 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13684 int use_ascii (int i) {
13685 return ascii_mm[i] + ascii_ii[i];
13687 short int ebcdic_ii[] =
13688 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13689 short int ebcdic_mm[] =
13690 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13691 int use_ebcdic (int i) {
13692 return ebcdic_mm[i] + ebcdic_ii[i];
13694 extern int foo;
13697 main ()
13699 return use_ascii (foo) == use_ebcdic (foo);
13701 return 0;
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13706 ac_cv_c_bigendian=yes
13708 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13709 if test "$ac_cv_c_bigendian" = unknown; then
13710 ac_cv_c_bigendian=no
13711 else
13712 # finding both strings is unlikely to happen, but who knows?
13713 ac_cv_c_bigendian=unknown
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 else
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 $ac_includes_default
13723 main ()
13726 /* Are we little or big endian? From Harbison&Steele. */
13727 union
13729 long int l;
13730 char c[sizeof (long int)];
13731 } u;
13732 u.l = 1;
13733 return u.c[sizeof (long int) - 1] == 1;
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_run "$LINENO"; then :
13740 ac_cv_c_bigendian=no
13741 else
13742 ac_cv_c_bigendian=yes
13744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13745 conftest.$ac_objext conftest.beam conftest.$ac_ext
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13751 $as_echo "$ac_cv_c_bigendian" >&6; }
13752 case $ac_cv_c_bigendian in #(
13753 yes)
13754 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13755 ;; #(
13757 ;; #(
13758 universal)
13760 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13762 ;; #(
13764 as_fn_error "unknown endianness
13765 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13766 esac
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13770 $as_echo_n "checking for inline... " >&6; }
13771 if test "${ac_cv_c_inline+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 ac_cv_c_inline=no
13775 for ac_kw in inline __inline__ __inline; do
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778 #ifndef __cplusplus
13779 typedef int foo_t;
13780 static $ac_kw foo_t static_foo () {return 0; }
13781 $ac_kw foo_t foo () {return 0; }
13782 #endif
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"; then :
13786 ac_cv_c_inline=$ac_kw
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 test "$ac_cv_c_inline" != no && break
13790 done
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13794 $as_echo "$ac_cv_c_inline" >&6; }
13796 case $ac_cv_c_inline in
13797 inline | yes) ;;
13799 case $ac_cv_c_inline in
13800 no) ac_val=;;
13801 *) ac_val=$ac_cv_c_inline;;
13802 esac
13803 cat >>confdefs.h <<_ACEOF
13804 #ifndef __cplusplus
13805 #define inline $ac_val
13806 #endif
13807 _ACEOF
13809 esac
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13813 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13814 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 /* On HP-UX before 11.23, strtold returns a struct instead of
13820 long double. Reject implementations like that, by requiring
13821 compatibility with the C99 prototype. */
13822 #include <stdlib.h>
13823 static long double (*p) (char const *, char **) = strtold;
13824 static long double
13825 test (char const *nptr, char **endptr)
13827 long double r;
13828 r = strtold (nptr, endptr);
13829 return r;
13832 main ()
13834 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13836 return 0;
13838 _ACEOF
13839 if ac_fn_c_try_link "$LINENO"; then :
13840 gl_cv_func_c99_strtold=yes
13841 else
13842 gl_cv_func_c99_strtold=no
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13848 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13849 if test $gl_cv_func_c99_strtold = yes; then
13851 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13856 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13857 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <sys/types.h>
13864 #include <sys/stat.h>
13866 main ()
13868 struct stat s; s.st_dm_mode;
13870 return 0;
13872 _ACEOF
13873 if ac_fn_c_try_compile "$LINENO"; then :
13874 ac_cv_struct_st_dm_mode=yes
13875 else
13876 ac_cv_struct_st_dm_mode=no
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13881 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13883 if test $ac_cv_struct_st_dm_mode = yes; then
13885 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13890 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13891 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13892 ac_have_decl=1
13893 else
13894 ac_have_decl=0
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_DECL_STRMODE $ac_have_decl
13899 _ACEOF
13902 GNULIB__EXIT=0;
13903 GNULIB_ATOLL=0;
13904 GNULIB_CALLOC_POSIX=0;
13905 GNULIB_CANONICALIZE_FILE_NAME=0;
13906 GNULIB_GETLOADAVG=0;
13907 GNULIB_GETSUBOPT=0;
13908 GNULIB_GRANTPT=0;
13909 GNULIB_MALLOC_POSIX=0;
13910 GNULIB_MBTOWC=0;
13911 GNULIB_MKDTEMP=0;
13912 GNULIB_MKOSTEMP=0;
13913 GNULIB_MKOSTEMPS=0;
13914 GNULIB_MKSTEMP=0;
13915 GNULIB_MKSTEMPS=0;
13916 GNULIB_PTSNAME=0;
13917 GNULIB_PUTENV=0;
13918 GNULIB_RANDOM_R=0;
13919 GNULIB_REALLOC_POSIX=0;
13920 GNULIB_REALPATH=0;
13921 GNULIB_RPMATCH=0;
13922 GNULIB_SETENV=0;
13923 GNULIB_STRTOD=0;
13924 GNULIB_STRTOLL=0;
13925 GNULIB_STRTOULL=0;
13926 GNULIB_SYSTEM_POSIX=0;
13927 GNULIB_UNLOCKPT=0;
13928 GNULIB_UNSETENV=0;
13929 GNULIB_WCTOMB=0;
13930 HAVE__EXIT=1;
13931 HAVE_ATOLL=1;
13932 HAVE_CANONICALIZE_FILE_NAME=1;
13933 HAVE_DECL_GETLOADAVG=1;
13934 HAVE_GETSUBOPT=1;
13935 HAVE_GRANTPT=1;
13936 HAVE_MKDTEMP=1;
13937 HAVE_MKOSTEMP=1;
13938 HAVE_MKOSTEMPS=1;
13939 HAVE_MKSTEMP=1;
13940 HAVE_MKSTEMPS=1;
13941 HAVE_PTSNAME=1;
13942 HAVE_RANDOM_H=1;
13943 HAVE_RANDOM_R=1;
13944 HAVE_REALPATH=1;
13945 HAVE_RPMATCH=1;
13946 HAVE_SETENV=1;
13947 HAVE_DECL_SETENV=1;
13948 HAVE_STRTOD=1;
13949 HAVE_STRTOLL=1;
13950 HAVE_STRTOULL=1;
13951 HAVE_STRUCT_RANDOM_DATA=1;
13952 HAVE_SYS_LOADAVG_H=0;
13953 HAVE_UNLOCKPT=1;
13954 HAVE_DECL_UNSETENV=1;
13955 REPLACE_CALLOC=0;
13956 REPLACE_CANONICALIZE_FILE_NAME=0;
13957 REPLACE_MALLOC=0;
13958 REPLACE_MBTOWC=0;
13959 REPLACE_MKSTEMP=0;
13960 REPLACE_PUTENV=0;
13961 REPLACE_REALLOC=0;
13962 REPLACE_REALPATH=0;
13963 REPLACE_SETENV=0;
13964 REPLACE_STRTOD=0;
13965 REPLACE_UNSETENV=0;
13966 REPLACE_WCTOMB=0;
13969 GNULIB_CHOWN=0;
13970 GNULIB_CLOSE=0;
13971 GNULIB_DUP2=0;
13972 GNULIB_DUP3=0;
13973 GNULIB_ENVIRON=0;
13974 GNULIB_EUIDACCESS=0;
13975 GNULIB_FACCESSAT=0;
13976 GNULIB_FCHDIR=0;
13977 GNULIB_FCHOWNAT=0;
13978 GNULIB_FSYNC=0;
13979 GNULIB_FTRUNCATE=0;
13980 GNULIB_GETCWD=0;
13981 GNULIB_GETDOMAINNAME=0;
13982 GNULIB_GETDTABLESIZE=0;
13983 GNULIB_GETGROUPS=0;
13984 GNULIB_GETHOSTNAME=0;
13985 GNULIB_GETLOGIN=0;
13986 GNULIB_GETLOGIN_R=0;
13987 GNULIB_GETPAGESIZE=0;
13988 GNULIB_GETUSERSHELL=0;
13989 GNULIB_LCHOWN=0;
13990 GNULIB_LINK=0;
13991 GNULIB_LINKAT=0;
13992 GNULIB_LSEEK=0;
13993 GNULIB_PIPE=0;
13994 GNULIB_PIPE2=0;
13995 GNULIB_PREAD=0;
13996 GNULIB_PWRITE=0;
13997 GNULIB_READLINK=0;
13998 GNULIB_READLINKAT=0;
13999 GNULIB_RMDIR=0;
14000 GNULIB_SLEEP=0;
14001 GNULIB_SYMLINK=0;
14002 GNULIB_SYMLINKAT=0;
14003 GNULIB_TTYNAME_R=0;
14004 GNULIB_UNISTD_H_GETOPT=0;
14005 GNULIB_UNISTD_H_SIGPIPE=0;
14006 GNULIB_UNLINK=0;
14007 GNULIB_UNLINKAT=0;
14008 GNULIB_USLEEP=0;
14009 GNULIB_WRITE=0;
14010 HAVE_CHOWN=1;
14011 HAVE_DUP2=1;
14012 HAVE_DUP3=1;
14013 HAVE_EUIDACCESS=1;
14014 HAVE_FACCESSAT=1;
14015 HAVE_FCHDIR=1;
14016 HAVE_FCHOWNAT=1;
14017 HAVE_FSYNC=1;
14018 HAVE_FTRUNCATE=1;
14019 HAVE_GETDTABLESIZE=1;
14020 HAVE_GETGROUPS=1;
14021 HAVE_GETHOSTNAME=1;
14022 HAVE_GETLOGIN=1;
14023 HAVE_GETPAGESIZE=1;
14024 HAVE_LCHOWN=1;
14025 HAVE_LINK=1;
14026 HAVE_LINKAT=1;
14027 HAVE_PIPE=1;
14028 HAVE_PIPE2=1;
14029 HAVE_PREAD=1;
14030 HAVE_PWRITE=1;
14031 HAVE_READLINK=1;
14032 HAVE_READLINKAT=1;
14033 HAVE_SLEEP=1;
14034 HAVE_SYMLINK=1;
14035 HAVE_SYMLINKAT=1;
14036 HAVE_UNLINKAT=1;
14037 HAVE_USLEEP=1;
14038 HAVE_DECL_ENVIRON=1;
14039 HAVE_DECL_FCHDIR=1;
14040 HAVE_DECL_GETDOMAINNAME=1;
14041 HAVE_DECL_GETLOGIN_R=1;
14042 HAVE_DECL_GETPAGESIZE=1;
14043 HAVE_DECL_GETUSERSHELL=1;
14044 HAVE_DECL_TTYNAME_R=1;
14045 HAVE_OS_H=0;
14046 HAVE_SYS_PARAM_H=0;
14047 REPLACE_CHOWN=0;
14048 REPLACE_CLOSE=0;
14049 REPLACE_DUP=0;
14050 REPLACE_DUP2=0;
14051 REPLACE_FCHOWNAT=0;
14052 REPLACE_GETCWD=0;
14053 REPLACE_GETDOMAINNAME=0;
14054 REPLACE_GETLOGIN_R=0;
14055 REPLACE_GETGROUPS=0;
14056 REPLACE_GETPAGESIZE=0;
14057 REPLACE_LCHOWN=0;
14058 REPLACE_LINK=0;
14059 REPLACE_LINKAT=0;
14060 REPLACE_LSEEK=0;
14061 REPLACE_PREAD=0;
14062 REPLACE_PWRITE=0;
14063 REPLACE_READLINK=0;
14064 REPLACE_RMDIR=0;
14065 REPLACE_SLEEP=0;
14066 REPLACE_SYMLINK=0;
14067 REPLACE_TTYNAME_R=0;
14068 REPLACE_UNLINK=0;
14069 REPLACE_UNLINKAT=0;
14070 REPLACE_USLEEP=0;
14071 REPLACE_WRITE=0;
14072 UNISTD_H_HAVE_WINSOCK2_H=0;
14073 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14079 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14080 if test "${gl_cv_have_include_next+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 rm -rf conftestd1a conftestd1b conftestd2
14084 mkdir conftestd1a conftestd1b conftestd2
14085 cat <<EOF > conftestd1a/conftest.h
14086 #define DEFINED_IN_CONFTESTD1
14087 #include_next <conftest.h>
14088 #ifdef DEFINED_IN_CONFTESTD2
14089 int foo;
14090 #else
14091 #error "include_next doesn't work"
14092 #endif
14094 cat <<EOF > conftestd1b/conftest.h
14095 #define DEFINED_IN_CONFTESTD1
14096 #include <stdio.h>
14097 #include_next <conftest.h>
14098 #ifdef DEFINED_IN_CONFTESTD2
14099 int foo;
14100 #else
14101 #error "include_next doesn't work"
14102 #endif
14104 cat <<EOF > conftestd2/conftest.h
14105 #ifndef DEFINED_IN_CONFTESTD1
14106 #error "include_next test doesn't work"
14107 #endif
14108 #define DEFINED_IN_CONFTESTD2
14110 gl_save_CPPFLAGS="$CPPFLAGS"
14111 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <conftest.h>
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14117 gl_cv_have_include_next=yes
14118 else
14119 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 #include <conftest.h>
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 gl_cv_have_include_next=buggy
14126 else
14127 gl_cv_have_include_next=no
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 CPPFLAGS="$gl_save_CPPFLAGS"
14134 rm -rf conftestd1a conftestd1b conftestd2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14138 $as_echo "$gl_cv_have_include_next" >&6; }
14139 PRAGMA_SYSTEM_HEADER=
14140 if test $gl_cv_have_include_next = yes; then
14141 INCLUDE_NEXT=include_next
14142 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14143 if test -n "$GCC"; then
14144 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14146 else
14147 if test $gl_cv_have_include_next = buggy; then
14148 INCLUDE_NEXT=include
14149 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14150 else
14151 INCLUDE_NEXT=include
14152 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14159 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14160 if test "${gl_cv_pragma_columns+set}" = set; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14166 #ifdef __TANDEM
14167 choke me
14168 #endif
14170 _ACEOF
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 $EGREP "choke me" >/dev/null 2>&1; then :
14173 gl_cv_pragma_columns=yes
14174 else
14175 gl_cv_pragma_columns=no
14177 rm -f conftest*
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14182 $as_echo "$gl_cv_pragma_columns" >&6; }
14183 if test $gl_cv_pragma_columns = yes; then
14184 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14185 else
14186 PRAGMA_COLUMNS=
14205 if test $gl_cv_have_include_next = yes; then
14206 gl_cv_next_getopt_h='<'getopt.h'>'
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14209 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14210 if test "${gl_cv_next_getopt_h+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14214 if test $ac_cv_header_getopt_h = yes; then
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219 #include <getopt.h>
14221 _ACEOF
14222 case "$host_os" in
14223 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14224 *) gl_absname_cpp="$ac_cpp" ;;
14225 esac
14226 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14227 sed -n '\#/getopt.h#{
14228 s#.*"\(.*/getopt.h\)".*#\1#
14229 s#^/[^/]#//&#
14232 }'`'"'
14233 else
14234 gl_cv_next_getopt_h='<'getopt.h'>'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14240 $as_echo "$gl_cv_next_getopt_h" >&6; }
14242 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14246 gl_next_as_first_directive='<'getopt.h'>'
14247 else
14248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14249 gl_next_as_first_directive=$gl_cv_next_getopt_h
14251 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14256 if test $ac_cv_header_getopt_h = yes; then
14257 HAVE_GETOPT_H=1
14258 else
14259 HAVE_GETOPT_H=0
14263 gl_replace_getopt=
14265 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14266 for ac_header in getopt.h
14267 do :
14268 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_GETOPT_H 1
14272 _ACEOF
14274 else
14275 gl_replace_getopt=yes
14278 done
14282 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14283 for ac_func in getopt_long_only
14284 do :
14285 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14286 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14287 cat >>confdefs.h <<_ACEOF
14288 #define HAVE_GETOPT_LONG_ONLY 1
14289 _ACEOF
14291 else
14292 gl_replace_getopt=yes
14294 done
14298 if test -z "$gl_replace_getopt"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14300 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14301 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #include <unistd.h>
14309 main ()
14311 int *p = &optreset; return optreset;
14313 return 0;
14315 _ACEOF
14316 if ac_fn_c_try_compile "$LINENO"; then :
14317 gl_optind_min=1
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <getopt.h>
14323 main ()
14325 return !getopt_clip;
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_compile "$LINENO"; then :
14331 gl_optind_min=1
14332 else
14333 gl_optind_min=0
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 gl_save_CPPFLAGS=$CPPFLAGS
14340 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14341 if test "$cross_compiling" = yes; then :
14342 case "$host_os" in
14343 mingw*) gl_cv_func_getopt_posix="guessing no";;
14344 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14345 *) gl_cv_func_getopt_posix="guessing yes";;
14346 esac
14348 else
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 #include <unistd.h>
14353 #include <stdlib.h>
14354 #include <string.h>
14357 main ()
14360 int argc = 0;
14361 char *argv[10];
14362 int c;
14364 argv[argc++] = "program";
14365 argv[argc++] = "-a";
14366 argv[argc++] = "foo";
14367 argv[argc++] = "bar";
14368 argv[argc] = NULL;
14369 optind = OPTIND_MIN;
14370 opterr = 0;
14372 c = getopt (argc, argv, "ab");
14373 if (!(c == 'a'))
14374 return 1;
14375 c = getopt (argc, argv, "ab");
14376 if (!(c == -1))
14377 return 2;
14378 if (!(optind == 2))
14379 return 3;
14381 /* Some internal state exists at this point. */
14383 int argc = 0;
14384 char *argv[10];
14385 int c;
14387 argv[argc++] = "program";
14388 argv[argc++] = "donald";
14389 argv[argc++] = "-p";
14390 argv[argc++] = "billy";
14391 argv[argc++] = "duck";
14392 argv[argc++] = "-a";
14393 argv[argc++] = "bar";
14394 argv[argc] = NULL;
14395 optind = OPTIND_MIN;
14396 opterr = 0;
14398 c = getopt (argc, argv, "+abp:q:");
14399 if (!(c == -1))
14400 return 4;
14401 if (!(strcmp (argv[0], "program") == 0))
14402 return 5;
14403 if (!(strcmp (argv[1], "donald") == 0))
14404 return 6;
14405 if (!(strcmp (argv[2], "-p") == 0))
14406 return 7;
14407 if (!(strcmp (argv[3], "billy") == 0))
14408 return 8;
14409 if (!(strcmp (argv[4], "duck") == 0))
14410 return 9;
14411 if (!(strcmp (argv[5], "-a") == 0))
14412 return 10;
14413 if (!(strcmp (argv[6], "bar") == 0))
14414 return 11;
14415 if (!(optind == 1))
14416 return 12;
14418 /* Detect MacOS 10.5, AIX 7.1 bug. */
14420 char *argv[3] = { "program", "-ab", NULL };
14421 optind = OPTIND_MIN;
14422 opterr = 0;
14423 if (getopt (2, argv, "ab:") != 'a')
14424 return 13;
14425 if (getopt (2, argv, "ab:") != '?')
14426 return 14;
14427 if (optopt != 'b')
14428 return 15;
14429 if (optind != 2)
14430 return 16;
14433 return 0;
14436 _ACEOF
14437 if ac_fn_c_try_run "$LINENO"; then :
14438 gl_cv_func_getopt_posix=yes
14439 else
14440 gl_cv_func_getopt_posix=no
14442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14443 conftest.$ac_objext conftest.beam conftest.$ac_ext
14446 CPPFLAGS=$gl_save_CPPFLAGS
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14450 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14451 case "$gl_cv_func_getopt_posix" in
14452 *no) gl_replace_getopt=yes ;;
14453 esac
14456 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14458 $as_echo_n "checking for working GNU getopt function... " >&6; }
14459 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14463 # optstring is necessary for programs like m4 that have POSIX-mandated
14464 # semantics for supporting options interspersed with files.
14465 # Also, since getopt_long is a GNU extension, we require optind=0.
14466 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14467 # so take care to revert to the correct (non-)export state.
14468 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14469 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14470 xx) gl_had_POSIXLY_CORRECT=exported ;;
14471 x) gl_had_POSIXLY_CORRECT=yes ;;
14472 *) gl_had_POSIXLY_CORRECT= ;;
14473 esac
14474 POSIXLY_CORRECT=1
14475 export POSIXLY_CORRECT
14476 if test "$cross_compiling" = yes; then :
14477 case $host_os:$ac_cv_have_decl_optreset in
14478 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14479 *:yes) gl_cv_func_getopt_gnu=no;;
14480 *) gl_cv_func_getopt_gnu=yes;;
14481 esac
14483 else
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 #include <getopt.h>
14487 #include <stddef.h>
14488 #include <string.h>
14491 main ()
14494 int result = 0;
14495 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14496 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14497 OSF/1 5.1, Solaris 10. */
14499 char *myargv[3];
14500 myargv[0] = "conftest";
14501 myargv[1] = "-+";
14502 myargv[2] = 0;
14503 opterr = 0;
14504 if (getopt (2, myargv, "+a") != '?')
14505 result |= 1;
14507 /* This code succeeds on glibc 2.8, mingw,
14508 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14509 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14511 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14513 optind = 1;
14514 if (getopt (4, argv, "p::") != 'p')
14515 result |= 2;
14516 else if (optarg != NULL)
14517 result |= 4;
14518 else if (getopt (4, argv, "p::") != -1)
14519 result |= 6;
14520 else if (optind != 2)
14521 result |= 8;
14523 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14525 char *argv[] = { "program", "foo", "-p", NULL };
14526 optind = 0;
14527 if (getopt (3, argv, "-p") != 1)
14528 result |= 16;
14529 else if (getopt (3, argv, "-p") != 'p')
14530 result |= 32;
14532 /* This code fails on glibc 2.11. */
14534 char *argv[] = { "program", "-b", "-a", NULL };
14535 optind = opterr = 0;
14536 if (getopt (3, argv, "+:a:b") != 'b')
14537 result |= 64;
14538 else if (getopt (3, argv, "+:a:b") != ':')
14539 result |= 64;
14541 return result;
14544 return 0;
14546 _ACEOF
14547 if ac_fn_c_try_run "$LINENO"; then :
14548 gl_cv_func_getopt_gnu=yes
14549 else
14550 gl_cv_func_getopt_gnu=no
14552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14553 conftest.$ac_objext conftest.beam conftest.$ac_ext
14556 case $gl_had_POSIXLY_CORRECT in
14557 exported) ;;
14558 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14559 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14560 esac
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14564 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14565 if test "$gl_cv_func_getopt_gnu" = "no"; then
14566 gl_replace_getopt=yes
14570 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14571 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14572 ac_have_decl=1
14573 else
14574 ac_have_decl=0
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_DECL_GETENV $ac_have_decl
14579 _ACEOF
14586 if test -n "$gl_replace_getopt"; then :
14590 GETOPT_H=getopt.h
14592 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14596 GNULIB_UNISTD_H_GETOPT=1
14605 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14615 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14626 GNULIB_FCHMODAT=0;
14627 GNULIB_FSTATAT=0;
14628 GNULIB_FUTIMENS=0;
14629 GNULIB_LCHMOD=0;
14630 GNULIB_LSTAT=0;
14631 GNULIB_MKDIRAT=0;
14632 GNULIB_MKFIFO=0;
14633 GNULIB_MKFIFOAT=0;
14634 GNULIB_MKNOD=0;
14635 GNULIB_MKNODAT=0;
14636 GNULIB_STAT=0;
14637 GNULIB_UTIMENSAT=0;
14638 HAVE_FCHMODAT=1;
14639 HAVE_FSTATAT=1;
14640 HAVE_FUTIMENS=1;
14641 HAVE_LCHMOD=1;
14642 HAVE_LSTAT=1;
14643 HAVE_MKDIRAT=1;
14644 HAVE_MKFIFO=1;
14645 HAVE_MKFIFOAT=1;
14646 HAVE_MKNOD=1;
14647 HAVE_MKNODAT=1;
14648 HAVE_UTIMENSAT=1;
14649 REPLACE_FSTAT=0;
14650 REPLACE_FSTATAT=0;
14651 REPLACE_FUTIMENS=0;
14652 REPLACE_LSTAT=0;
14653 REPLACE_MKDIR=0;
14654 REPLACE_MKFIFO=0;
14655 REPLACE_MKNOD=0;
14656 REPLACE_STAT=0;
14657 REPLACE_UTIMENSAT=0;
14662 for ac_func in $ac_func_list
14663 do :
14664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14666 eval as_val=\$$as_ac_var
14667 if test "x$as_val" = x""yes; then :
14668 cat >>confdefs.h <<_ACEOF
14669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670 _ACEOF
14673 done
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14679 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14680 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14682 else
14683 rm -f conftest.sym conftest.file
14684 echo >conftest.file
14685 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14686 if test "$cross_compiling" = yes; then :
14687 # When cross-compiling, be pessimistic so we will end up using the
14688 # replacement version of lstat that checks for trailing slashes and
14689 # calls lstat a second time when necessary.
14690 ac_cv_func_lstat_dereferences_slashed_symlink=no
14692 else
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695 $ac_includes_default
14697 main ()
14699 struct stat sbuf;
14700 /* Linux will dereference the symlink and fail, as required by
14701 POSIX. That is better in the sense that it means we will not
14702 have to compile and use the lstat wrapper. */
14703 return lstat ("conftest.sym/", &sbuf) == 0;
14706 return 0;
14708 _ACEOF
14709 if ac_fn_c_try_run "$LINENO"; then :
14710 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14711 else
14712 ac_cv_func_lstat_dereferences_slashed_symlink=no
14714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14715 conftest.$ac_objext conftest.beam conftest.$ac_ext
14718 else
14719 # If the 'ln -s' command failed, then we probably don't even
14720 # have an lstat function.
14721 ac_cv_func_lstat_dereferences_slashed_symlink=no
14723 rm -f conftest.sym conftest.file
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14727 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14728 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14730 cat >>confdefs.h <<_ACEOF
14731 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14732 _ACEOF
14734 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14743 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14748 GNULIB_MKTIME=0;
14749 GNULIB_NANOSLEEP=0;
14750 GNULIB_STRPTIME=0;
14751 GNULIB_TIMEGM=0;
14752 GNULIB_TIME_R=0;
14753 HAVE_DECL_LOCALTIME_R=1;
14754 HAVE_NANOSLEEP=1;
14755 HAVE_STRPTIME=1;
14756 HAVE_TIMEGM=1;
14757 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14758 REPLACE_MKTIME=GNULIB_PORTCHECK;
14759 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14760 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14765 gl_cv_c_multiarch=no
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #ifndef __APPLE_CC__
14769 not a universal capable compiler
14770 #endif
14771 typedef int dummy;
14773 _ACEOF
14774 if ac_fn_c_try_compile "$LINENO"; then :
14776 arch=
14777 prev=
14778 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14779 if test -n "$prev"; then
14780 case $word in
14781 i?86 | x86_64 | ppc | ppc64)
14782 if test -z "$arch" || test "$arch" = "$word"; then
14783 arch="$word"
14784 else
14785 gl_cv_c_multiarch=yes
14788 esac
14789 prev=
14790 else
14791 if test "x$word" = "x-arch"; then
14792 prev=arch
14795 done
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 if test $gl_cv_c_multiarch = yes; then
14800 APPLE_UNIVERSAL_BUILD=1
14801 else
14802 APPLE_UNIVERSAL_BUILD=0
14811 if test $ac_cv_header_sys_socket_h = no; then
14812 for ac_header in ws2tcpip.h
14813 do :
14814 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14815 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_WS2TCPIP_H 1
14818 _ACEOF
14822 done
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14827 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14828 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 #include <stdbool.h>
14835 #ifndef bool
14836 "error: bool is not defined"
14837 #endif
14838 #ifndef false
14839 "error: false is not defined"
14840 #endif
14841 #if false
14842 "error: false is not 0"
14843 #endif
14844 #ifndef true
14845 "error: true is not defined"
14846 #endif
14847 #if true != 1
14848 "error: true is not 1"
14849 #endif
14850 #ifndef __bool_true_false_are_defined
14851 "error: __bool_true_false_are_defined is not defined"
14852 #endif
14854 struct s { _Bool s: 1; _Bool t; } s;
14856 char a[true == 1 ? 1 : -1];
14857 char b[false == 0 ? 1 : -1];
14858 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14859 char d[(bool) 0.5 == true ? 1 : -1];
14860 /* See body of main program for 'e'. */
14861 char f[(_Bool) 0.0 == false ? 1 : -1];
14862 char g[true];
14863 char h[sizeof (_Bool)];
14864 char i[sizeof s.t];
14865 enum { j = false, k = true, l = false * true, m = true * 256 };
14866 /* The following fails for
14867 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14868 _Bool n[m];
14869 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14870 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14871 /* Catch a bug in an HP-UX C compiler. See
14872 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14873 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14875 _Bool q = true;
14876 _Bool *pq = &q;
14879 main ()
14882 bool e = &s;
14883 *pq |= q;
14884 *pq |= ! q;
14885 /* Refer to every declared value, to avoid compiler optimizations. */
14886 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14887 + !m + !n + !o + !p + !q + !pq);
14890 return 0;
14892 _ACEOF
14893 if ac_fn_c_try_compile "$LINENO"; then :
14894 ac_cv_header_stdbool_h=yes
14895 else
14896 ac_cv_header_stdbool_h=no
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14901 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14902 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14903 if test "x$ac_cv_type__Bool" = x""yes; then :
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE__BOOL 1
14907 _ACEOF
14914 REPLACE_NULL=0;
14915 HAVE_WCHAR_T=1;
14916 STDDEF_H='';
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14920 $as_echo_n "checking for wchar_t... " >&6; }
14921 if test "${gt_cv_c_wchar_t+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <stddef.h>
14927 wchar_t foo = (wchar_t)'\0';
14929 main ()
14933 return 0;
14935 _ACEOF
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937 gt_cv_c_wchar_t=yes
14938 else
14939 gt_cv_c_wchar_t=no
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14944 $as_echo "$gt_cv_c_wchar_t" >&6; }
14945 if test $gt_cv_c_wchar_t = yes; then
14947 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14953 $as_echo_n "checking for unsigned long long int... " >&6; }
14954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 ac_cv_type_unsigned_long_long_int=yes
14958 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* For now, do not test the preprocessor; as of 2007 there are too many
14963 implementations with broken preprocessors. Perhaps this can
14964 be revisited in 2012. In the meantime, code should not expect
14965 #if to work with literals wider than 32 bits. */
14966 /* Test literals. */
14967 long long int ll = 9223372036854775807ll;
14968 long long int nll = -9223372036854775807LL;
14969 unsigned long long int ull = 18446744073709551615ULL;
14970 /* Test constant expressions. */
14971 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14972 ? 1 : -1)];
14973 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14974 ? 1 : -1)];
14975 int i = 63;
14977 main ()
14979 /* Test availability of runtime routines for shift and division. */
14980 long long int llmax = 9223372036854775807ll;
14981 unsigned long long int ullmax = 18446744073709551615ull;
14982 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14983 | (llmax / ll) | (llmax % ll)
14984 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14985 | (ullmax / ull) | (ullmax % ull));
14987 return 0;
14990 _ACEOF
14991 if ac_fn_c_try_link "$LINENO"; then :
14993 else
14994 ac_cv_type_unsigned_long_long_int=no
14996 rm -f core conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15001 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15002 if test $ac_cv_type_unsigned_long_long_int = yes; then
15004 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15011 $as_echo_n "checking for long long int... " >&6; }
15012 if test "${ac_cv_type_long_long_int+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 ac_cv_type_long_long_int=yes
15016 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15017 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15018 if test $ac_cv_type_long_long_int = yes; then
15019 if test "$cross_compiling" = yes; then :
15021 else
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 #include <limits.h>
15025 #ifndef LLONG_MAX
15026 # define HALF \
15027 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15028 # define LLONG_MAX (HALF - 1 + HALF)
15029 #endif
15031 main ()
15033 long long int n = 1;
15034 int i;
15035 for (i = 0; ; i++)
15037 long long int m = n << i;
15038 if (m >> i != n)
15039 return 1;
15040 if (LLONG_MAX / 2 < m)
15041 break;
15043 return 0;
15045 return 0;
15047 _ACEOF
15048 if ac_fn_c_try_run "$LINENO"; then :
15050 else
15051 ac_cv_type_long_long_int=no
15053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15054 conftest.$ac_objext conftest.beam conftest.$ac_ext
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15061 $as_echo "$ac_cv_type_long_long_int" >&6; }
15062 if test $ac_cv_type_long_long_int = yes; then
15064 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15073 GNULIB_DPRINTF=0;
15074 GNULIB_FCLOSE=0;
15075 GNULIB_FFLUSH=0;
15076 GNULIB_FOPEN=0;
15077 GNULIB_FPRINTF=0;
15078 GNULIB_FPRINTF_POSIX=0;
15079 GNULIB_FPURGE=0;
15080 GNULIB_FPUTC=0;
15081 GNULIB_FPUTS=0;
15082 GNULIB_FREOPEN=0;
15083 GNULIB_FSEEK=0;
15084 GNULIB_FSEEKO=0;
15085 GNULIB_FTELL=0;
15086 GNULIB_FTELLO=0;
15087 GNULIB_FWRITE=0;
15088 GNULIB_GETDELIM=0;
15089 GNULIB_GETLINE=0;
15090 GNULIB_OBSTACK_PRINTF=0;
15091 GNULIB_OBSTACK_PRINTF_POSIX=0;
15092 GNULIB_PERROR=0;
15093 GNULIB_POPEN=0;
15094 GNULIB_PRINTF=0;
15095 GNULIB_PRINTF_POSIX=0;
15096 GNULIB_PUTC=0;
15097 GNULIB_PUTCHAR=0;
15098 GNULIB_PUTS=0;
15099 GNULIB_REMOVE=0;
15100 GNULIB_RENAME=0;
15101 GNULIB_RENAMEAT=0;
15102 GNULIB_SNPRINTF=0;
15103 GNULIB_SPRINTF_POSIX=0;
15104 GNULIB_STDIO_H_SIGPIPE=0;
15105 GNULIB_TMPFILE=0;
15106 GNULIB_VASPRINTF=0;
15107 GNULIB_VDPRINTF=0;
15108 GNULIB_VFPRINTF=0;
15109 GNULIB_VFPRINTF_POSIX=0;
15110 GNULIB_VPRINTF=0;
15111 GNULIB_VPRINTF_POSIX=0;
15112 GNULIB_VSNPRINTF=0;
15113 GNULIB_VSPRINTF_POSIX=0;
15114 HAVE_DECL_FPURGE=1;
15115 HAVE_DECL_FSEEKO=1;
15116 HAVE_DECL_FTELLO=1;
15117 HAVE_DECL_GETDELIM=1;
15118 HAVE_DECL_GETLINE=1;
15119 HAVE_DECL_OBSTACK_PRINTF=1;
15120 HAVE_DECL_SNPRINTF=1;
15121 HAVE_DECL_VSNPRINTF=1;
15122 HAVE_DPRINTF=1;
15123 HAVE_FSEEKO=1;
15124 HAVE_FTELLO=1;
15125 HAVE_RENAMEAT=1;
15126 HAVE_VASPRINTF=1;
15127 HAVE_VDPRINTF=1;
15128 REPLACE_DPRINTF=0;
15129 REPLACE_FCLOSE=0;
15130 REPLACE_FFLUSH=0;
15131 REPLACE_FOPEN=0;
15132 REPLACE_FPRINTF=0;
15133 REPLACE_FPURGE=0;
15134 REPLACE_FREOPEN=0;
15135 REPLACE_FSEEK=0;
15136 REPLACE_FSEEKO=0;
15137 REPLACE_FTELL=0;
15138 REPLACE_FTELLO=0;
15139 REPLACE_GETDELIM=0;
15140 REPLACE_GETLINE=0;
15141 REPLACE_OBSTACK_PRINTF=0;
15142 REPLACE_PERROR=0;
15143 REPLACE_POPEN=0;
15144 REPLACE_PRINTF=0;
15145 REPLACE_REMOVE=0;
15146 REPLACE_RENAME=0;
15147 REPLACE_RENAMEAT=0;
15148 REPLACE_SNPRINTF=0;
15149 REPLACE_SPRINTF=0;
15150 REPLACE_STDIO_WRITE_FUNCS=0;
15151 REPLACE_TMPFILE=0;
15152 REPLACE_VASPRINTF=0;
15153 REPLACE_VDPRINTF=0;
15154 REPLACE_VFPRINTF=0;
15155 REPLACE_VPRINTF=0;
15156 REPLACE_VSNPRINTF=0;
15157 REPLACE_VSPRINTF=0;
15160 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15162 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15164 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15174 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15175 if test "${ac_cv_header_stat_broken+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <sys/types.h>
15181 #include <sys/stat.h>
15183 #if defined S_ISBLK && defined S_IFDIR
15184 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15185 #endif
15187 #if defined S_ISBLK && defined S_IFCHR
15188 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15189 #endif
15191 #if defined S_ISLNK && defined S_IFREG
15192 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15193 #endif
15195 #if defined S_ISSOCK && defined S_IFREG
15196 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15197 #endif
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201 ac_cv_header_stat_broken=no
15202 else
15203 ac_cv_header_stat_broken=yes
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15208 $as_echo "$ac_cv_header_stat_broken" >&6; }
15209 if test $ac_cv_header_stat_broken = yes; then
15211 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15218 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15219 if test "${ac_cv_c_restrict+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 ac_cv_c_restrict=no
15223 # The order here caters to the fact that C++ does not require restrict.
15224 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 typedef int * int_ptr;
15228 int foo (int_ptr $ac_kw ip) {
15229 return ip[0];
15232 main ()
15234 int s[1];
15235 int * $ac_kw t = s;
15236 t[0] = 0;
15237 return foo(t)
15239 return 0;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 ac_cv_c_restrict=$ac_kw
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 test "$ac_cv_c_restrict" != no && break
15247 done
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15251 $as_echo "$ac_cv_c_restrict" >&6; }
15253 case $ac_cv_c_restrict in
15254 restrict) ;;
15255 no) $as_echo "#define restrict /**/" >>confdefs.h
15257 *) cat >>confdefs.h <<_ACEOF
15258 #define restrict $ac_cv_c_restrict
15259 _ACEOF
15261 esac
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15268 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15269 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15270 $as_echo_n "(cached) " >&6
15271 else
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 #include <time.h>
15277 main ()
15279 static struct timespec x; x.tv_sec = x.tv_nsec;
15281 return 0;
15283 _ACEOF
15284 if ac_fn_c_try_compile "$LINENO"; then :
15285 gl_cv_sys_struct_timespec_in_time_h=yes
15286 else
15287 gl_cv_sys_struct_timespec_in_time_h=no
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15292 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15294 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15295 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15296 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15297 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15298 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15299 else
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15301 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15302 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <sys/time.h>
15310 main ()
15312 static struct timespec x; x.tv_sec = x.tv_nsec;
15314 return 0;
15316 _ACEOF
15317 if ac_fn_c_try_compile "$LINENO"; then :
15318 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15319 else
15320 gl_cv_sys_struct_timespec_in_sys_time_h=no
15322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15325 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15326 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15327 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15328 else
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15330 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15331 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336 #include <pthread.h>
15339 main ()
15341 static struct timespec x; x.tv_sec = x.tv_nsec;
15343 return 0;
15345 _ACEOF
15346 if ac_fn_c_try_compile "$LINENO"; then :
15347 gl_cv_sys_struct_timespec_in_pthread_h=yes
15348 else
15349 gl_cv_sys_struct_timespec_in_pthread_h=no
15351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15354 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15355 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15356 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15375 if test $gl_cv_have_include_next = yes; then
15376 gl_cv_next_time_h='<'time.h'>'
15377 else
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15379 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15380 if test "${gl_cv_next_time_h+set}" = set; then :
15381 $as_echo_n "(cached) " >&6
15382 else
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 #include <time.h>
15388 _ACEOF
15389 case "$host_os" in
15390 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15391 *) gl_absname_cpp="$ac_cpp" ;;
15392 esac
15393 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15394 sed -n '\#/time.h#{
15395 s#.*"\(.*/time.h\)".*#\1#
15396 s#^/[^/]#//&#
15399 }'`'"'
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15404 $as_echo "$gl_cv_next_time_h" >&6; }
15406 NEXT_TIME_H=$gl_cv_next_time_h
15408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15410 gl_next_as_first_directive='<'time.h'>'
15411 else
15412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15413 gl_next_as_first_directive=$gl_cv_next_time_h
15415 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15422 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15423 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15424 ac_have_decl=1
15425 else
15426 ac_have_decl=0
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15431 _ACEOF
15436 if false; then
15437 GL_COND_LIBTOOL_TRUE=
15438 GL_COND_LIBTOOL_FALSE='#'
15439 else
15440 GL_COND_LIBTOOL_TRUE='#'
15441 GL_COND_LIBTOOL_FALSE=
15444 gl_cond_libtool=false
15445 gl_libdeps=
15446 gl_ltlibdeps=
15447 gl_m4_base='m4'
15457 gl_source_base='lib'
15458 # Code from module arg-nonnull:
15459 # Code from module c++defs:
15460 # Code from module crypto/md5:
15470 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15477 # Code from module dosname:
15478 # Code from module dtoastr:
15480 # Code from module extensions:
15481 # Code from module filemode:
15492 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15496 # Code from module getloadavg:
15499 # Persuade glibc <stdlib.h> to declare getloadavg().
15502 # Make sure getloadavg.c is where it belongs, at configure-time.
15503 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15504 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15506 gl_save_LIBS=$LIBS
15508 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15509 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15510 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15511 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15513 else
15514 gl_have_func=no
15516 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15517 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15518 # to get the right answer into the cache.
15519 # For kstat on solaris, we need to test for libelf and libkvm to force the
15520 # definition of SVR4 below.
15521 if test $gl_have_func = no; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15523 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15524 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lelf $LIBS"
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15535 #ifdef __cplusplus
15536 extern "C"
15537 #endif
15538 char elf_begin ();
15540 main ()
15542 return elf_begin ();
15544 return 0;
15546 _ACEOF
15547 if ac_fn_c_try_link "$LINENO"; then :
15548 ac_cv_lib_elf_elf_begin=yes
15549 else
15550 ac_cv_lib_elf_elf_begin=no
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15557 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15558 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15559 LIBS="-lelf $LIBS"
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15563 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15564 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 ac_check_lib_save_LIBS=$LIBS
15568 LIBS="-lkvm $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 kvm_open ();
15580 main ()
15582 return kvm_open ();
15584 return 0;
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"; then :
15588 ac_cv_lib_kvm_kvm_open=yes
15589 else
15590 ac_cv_lib_kvm_kvm_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_kvm_kvm_open" >&5
15597 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15598 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15599 LIBS="-lkvm $LIBS"
15602 # Check for the 4.4BSD definition of getloadavg.
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15604 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15605 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lutil $LIBS"
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 char getloadavg ();
15621 main ()
15623 return getloadavg ();
15625 return 0;
15627 _ACEOF
15628 if ac_fn_c_try_link "$LINENO"; then :
15629 ac_cv_lib_util_getloadavg=yes
15630 else
15631 ac_cv_lib_util_getloadavg=no
15633 rm -f core conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15635 LIBS=$ac_check_lib_save_LIBS
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15638 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15639 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15640 LIBS="-lutil $LIBS" gl_have_func=yes
15645 if test $gl_have_func = no; then
15646 # There is a commonly available library for RS/6000 AIX.
15647 # Since it is not a standard part of AIX, it might be installed locally.
15648 gl_getloadavg_LIBS=$LIBS
15649 LIBS="-L/usr/local/lib $LIBS"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15651 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15652 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 ac_check_lib_save_LIBS=$LIBS
15656 LIBS="-lgetloadavg $LIBS"
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15660 /* Override any GCC internal prototype to avoid an error.
15661 Use char because int might match the return type of a GCC
15662 builtin and then its argument prototype would still apply. */
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 char getloadavg ();
15668 main ()
15670 return getloadavg ();
15672 return 0;
15674 _ACEOF
15675 if ac_fn_c_try_link "$LINENO"; then :
15676 ac_cv_lib_getloadavg_getloadavg=yes
15677 else
15678 ac_cv_lib_getloadavg_getloadavg=no
15680 rm -f core conftest.err conftest.$ac_objext \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15685 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15686 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15687 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15688 else
15689 LIBS=$gl_getloadavg_LIBS
15694 # Set up the replacement function if necessary.
15695 if test $gl_have_func = no; then
15704 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15707 # Figure out what our getloadavg.c needs.
15709 # Solaris has libkstat which does not require root.
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15711 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15712 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lkstat $LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char kstat_open ();
15728 main ()
15730 return kstat_open ();
15732 return 0;
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 ac_cv_lib_kstat_kstat_open=yes
15737 else
15738 ac_cv_lib_kstat_kstat_open=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15745 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15746 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_LIBKSTAT 1
15749 _ACEOF
15751 LIBS="-lkstat $LIBS"
15755 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15757 # On HPUX9, an unprivileged user can get load averages this way.
15758 if test $gl_have_func = no; then
15759 for ac_func in pstat_getdynamic
15760 do :
15761 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15762 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_PSTAT_GETDYNAMIC 1
15765 _ACEOF
15766 gl_have_func=yes
15768 done
15772 # AIX has libperfstat which does not require root
15773 if test $gl_have_func = no; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15775 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15776 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 ac_check_lib_save_LIBS=$LIBS
15780 LIBS="-lperfstat $LIBS"
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 char perfstat_cpu_total ();
15792 main ()
15794 return perfstat_cpu_total ();
15796 return 0;
15798 _ACEOF
15799 if ac_fn_c_try_link "$LINENO"; then :
15800 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15801 else
15802 ac_cv_lib_perfstat_perfstat_cpu_total=no
15804 rm -f core conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS=$ac_check_lib_save_LIBS
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15809 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15810 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_LIBPERFSTAT 1
15813 _ACEOF
15815 LIBS="-lperfstat $LIBS"
15819 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15822 if test $gl_have_func = no; then
15823 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15824 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15825 gl_have_func=yes
15827 $as_echo "#define DGUX 1" >>confdefs.h
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15830 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15831 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 ac_check_lib_save_LIBS=$LIBS
15835 LIBS="-ldgc $LIBS"
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15839 /* Override any GCC internal prototype to avoid an error.
15840 Use char because int might match the return type of a GCC
15841 builtin and then its argument prototype would still apply. */
15842 #ifdef __cplusplus
15843 extern "C"
15844 #endif
15845 char dg_sys_info ();
15847 main ()
15849 return dg_sys_info ();
15851 return 0;
15853 _ACEOF
15854 if ac_fn_c_try_link "$LINENO"; then :
15855 ac_cv_lib_dgc_dg_sys_info=yes
15856 else
15857 ac_cv_lib_dgc_dg_sys_info=no
15859 rm -f core conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15861 LIBS=$ac_check_lib_save_LIBS
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15864 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15865 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15866 cat >>confdefs.h <<_ACEOF
15867 #define HAVE_LIBDGC 1
15868 _ACEOF
15870 LIBS="-ldgc $LIBS"
15879 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15880 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15881 # Irix 4.0.5F has the header but not the library.
15882 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15883 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15884 gl_have_func=yes
15886 $as_echo "#define SVR4 1" >>confdefs.h
15890 if test $gl_have_func = no; then
15891 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15892 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15893 gl_have_func=yes
15895 $as_echo "#define UMAX 1" >>confdefs.h
15898 $as_echo "#define UMAX4_3 1" >>confdefs.h
15905 if test $gl_have_func = no; then
15906 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15907 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15908 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15915 if test $gl_have_func = no; then
15916 for ac_header in mach/mach.h
15917 do :
15918 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15920 cat >>confdefs.h <<_ACEOF
15921 #define HAVE_MACH_MACH_H 1
15922 _ACEOF
15926 done
15930 for ac_header in nlist.h
15931 do :
15932 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15933 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15934 cat >>confdefs.h <<_ACEOF
15935 #define HAVE_NLIST_H 1
15936 _ACEOF
15937 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15939 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15943 _ACEOF
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15950 #include <nlist.h>
15952 main ()
15954 struct nlist x;
15955 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15956 x.n_un.n_name = "";
15957 #else
15958 x.n_name = "";
15959 #endif
15961 return 0;
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15966 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15974 done
15980 if test "x$gl_save_LIBS" = x; then
15981 GETLOADAVG_LIBS=$LIBS
15982 else
15983 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15985 LIBS=$gl_save_LIBS
15988 # Test whether the system declares getloadavg. Solaris has the function
15989 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15990 for ac_header in sys/loadavg.h
15991 do :
15992 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15993 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_SYS_LOADAVG_H 1
15996 _ACEOF
16000 done
16002 if test $ac_cv_header_sys_loadavg_h = yes; then
16003 HAVE_SYS_LOADAVG_H=1
16004 else
16005 HAVE_SYS_LOADAVG_H=0
16007 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16008 # include <sys/loadavg.h>
16009 #endif
16010 #include <stdlib.h>
16012 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16014 else
16015 HAVE_DECL_GETLOADAVG=0
16022 GNULIB_GETLOADAVG=1
16026 # Code from module getopt-gnu:
16033 # Code from module getopt-posix:
16039 if test -n "$gl_replace_getopt"; then :
16043 GETOPT_H=getopt.h
16045 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16049 GNULIB_UNISTD_H_GETOPT=1
16058 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16068 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16078 # Code from module gettext-h:
16081 # Code from module ignore-value:
16083 # Code from module include_next:
16084 # Code from module intprops:
16085 # Code from module lstat:
16089 if test $ac_cv_func_lstat = yes; then
16091 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16092 REPLACE_LSTAT=1
16094 # Prerequisites of lib/lstat.c.
16096 else
16097 HAVE_LSTAT=0
16103 GNULIB_LSTAT=1
16107 # Code from module mktime:
16113 if test $APPLE_UNIVERSAL_BUILD = 1; then
16114 # A universal build on Apple MacOS X platforms.
16115 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16116 # But we need a configuration result that is valid in both modes.
16117 ac_cv_func_working_mktime=no
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16120 $as_echo_n "checking for working mktime... " >&6; }
16121 if test "${ac_cv_func_working_mktime+set}" = set; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16124 if test "$cross_compiling" = yes; then :
16125 ac_cv_func_working_mktime=no
16126 else
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 /* Test program from Paul Eggert and Tony Leneis. */
16130 #include <limits.h>
16131 #include <stdlib.h>
16132 #include <time.h>
16134 #ifdef HAVE_UNISTD_H
16135 # include <unistd.h>
16136 #endif
16138 #ifndef HAVE_ALARM
16139 # define alarm(X) /* empty */
16140 #endif
16142 /* Work around redefinition to rpl_putenv by other config tests. */
16143 #undef putenv
16145 static time_t time_t_max;
16146 static time_t time_t_min;
16148 /* Values we'll use to set the TZ environment variable. */
16149 static char *tz_strings[] = {
16150 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16151 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16153 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16155 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16156 Based on a problem report from Andreas Jaeger. */
16157 static int
16158 spring_forward_gap ()
16160 /* glibc (up to about 1998-10-07) failed this test. */
16161 struct tm tm;
16163 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16164 instead of "TZ=America/Vancouver" in order to detect the bug even
16165 on systems that don't support the Olson extension, or don't have the
16166 full zoneinfo tables installed. */
16167 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16169 tm.tm_year = 98;
16170 tm.tm_mon = 3;
16171 tm.tm_mday = 5;
16172 tm.tm_hour = 2;
16173 tm.tm_min = 0;
16174 tm.tm_sec = 0;
16175 tm.tm_isdst = -1;
16176 return mktime (&tm) != (time_t) -1;
16179 static int
16180 mktime_test1 (time_t now)
16182 struct tm *lt;
16183 return ! (lt = localtime (&now)) || mktime (lt) == now;
16186 static int
16187 mktime_test (time_t now)
16189 return (mktime_test1 (now)
16190 && mktime_test1 ((time_t) (time_t_max - now))
16191 && mktime_test1 ((time_t) (time_t_min + now)));
16194 static int
16195 irix_6_4_bug ()
16197 /* Based on code from Ariel Faigon. */
16198 struct tm tm;
16199 tm.tm_year = 96;
16200 tm.tm_mon = 3;
16201 tm.tm_mday = 0;
16202 tm.tm_hour = 0;
16203 tm.tm_min = 0;
16204 tm.tm_sec = 0;
16205 tm.tm_isdst = -1;
16206 mktime (&tm);
16207 return tm.tm_mon == 2 && tm.tm_mday == 31;
16210 static int
16211 bigtime_test (int j)
16213 struct tm tm;
16214 time_t now;
16215 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16216 now = mktime (&tm);
16217 if (now != (time_t) -1)
16219 struct tm *lt = localtime (&now);
16220 if (! (lt
16221 && lt->tm_year == tm.tm_year
16222 && lt->tm_mon == tm.tm_mon
16223 && lt->tm_mday == tm.tm_mday
16224 && lt->tm_hour == tm.tm_hour
16225 && lt->tm_min == tm.tm_min
16226 && lt->tm_sec == tm.tm_sec
16227 && lt->tm_yday == tm.tm_yday
16228 && lt->tm_wday == tm.tm_wday
16229 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16230 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16231 return 0;
16233 return 1;
16236 static int
16237 year_2050_test ()
16239 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16240 ignoring leap seconds. */
16241 unsigned long int answer = 2527315200UL;
16243 struct tm tm;
16244 time_t t;
16245 tm.tm_year = 2050 - 1900;
16246 tm.tm_mon = 2 - 1;
16247 tm.tm_mday = 1;
16248 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16249 tm.tm_isdst = -1;
16251 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16252 instead of "TZ=America/Vancouver" in order to detect the bug even
16253 on systems that don't support the Olson extension, or don't have the
16254 full zoneinfo tables installed. */
16255 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16257 t = mktime (&tm);
16259 /* Check that the result is either a failure, or close enough
16260 to the correct answer that we can assume the discrepancy is
16261 due to leap seconds. */
16262 return (t == (time_t) -1
16263 || (0 < t && answer - 120 <= t && t <= answer + 120));
16267 main ()
16269 int result = 0;
16270 time_t t, delta;
16271 int i, j;
16272 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16273 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16275 /* This test makes some buggy mktime implementations loop.
16276 Give up after 60 seconds; a mktime slower than that
16277 isn't worth using anyway. */
16278 alarm (60);
16280 time_t_max = (! time_t_signed
16281 ? (time_t) -1
16282 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16283 * 2 + 1));
16284 time_t_min = (! time_t_signed
16285 ? (time_t) 0
16286 : time_t_signed_magnitude
16287 ? ~ (time_t) 0
16288 : ~ time_t_max);
16290 delta = time_t_max / 997; /* a suitable prime number */
16291 for (i = 0; i < N_STRINGS; i++)
16293 if (tz_strings[i])
16294 putenv (tz_strings[i]);
16296 for (t = 0; t <= time_t_max - delta; t += delta)
16297 if (! mktime_test (t))
16298 result |= 1;
16299 if (! (mktime_test ((time_t) 1)
16300 && mktime_test ((time_t) (60 * 60))
16301 && mktime_test ((time_t) (60 * 60 * 24))))
16302 result |= 2;
16304 for (j = 1; ; j <<= 1)
16305 if (! bigtime_test (j))
16306 result |= 4;
16307 else if (INT_MAX / 2 < j)
16308 break;
16309 if (! bigtime_test (INT_MAX))
16310 result |= 8;
16312 if (! irix_6_4_bug ())
16313 result |= 16;
16314 if (! spring_forward_gap ())
16315 result |= 32;
16316 if (! year_2050_test ())
16317 result |= 64;
16318 return result;
16320 _ACEOF
16321 if ac_fn_c_try_run "$LINENO"; then :
16322 ac_cv_func_working_mktime=yes
16323 else
16324 ac_cv_func_working_mktime=no
16326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16327 conftest.$ac_objext conftest.beam conftest.$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16332 $as_echo "$ac_cv_func_working_mktime" >&6; }
16333 if test $ac_cv_func_working_mktime = no; then
16342 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16346 if test $ac_cv_func_working_mktime = no; then
16347 REPLACE_MKTIME=1
16351 else
16352 REPLACE_MKTIME=0
16358 GNULIB_MKTIME=1
16362 # Code from module multiarch:
16364 # Code from module readlink:
16368 if test $ac_cv_func_readlink = no; then
16369 HAVE_READLINK=0
16378 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16383 else
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16385 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16386 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <unistd.h>
16392 /* Cause compilation failure if original declaration has wrong type. */
16393 ssize_t readlink (const char *, char *, size_t);
16395 main ()
16399 return 0;
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 gl_cv_decl_readlink_works=yes
16404 else
16405 gl_cv_decl_readlink_works=no
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16410 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16412 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16413 if test "${gl_cv_func_readlink_works+set}" = set; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 # We have readlink, so assume ln -s works.
16417 ln -s conftest.no-such conftest.link
16418 ln -s conftest.link conftest.lnk2
16419 if test "$cross_compiling" = yes; then :
16420 gl_cv_func_readlink_works="guessing no"
16421 else
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424 #include <unistd.h>
16427 main ()
16429 char buf[20];
16430 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16432 return 0;
16434 _ACEOF
16435 if ac_fn_c_try_run "$LINENO"; then :
16436 gl_cv_func_readlink_works=yes
16437 else
16438 gl_cv_func_readlink_works=no
16440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16441 conftest.$ac_objext conftest.beam conftest.$ac_ext
16444 rm -f conftest.link conftest.lnk2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16447 $as_echo "$gl_cv_func_readlink_works" >&6; }
16448 if test "$gl_cv_func_readlink_works" != yes; then
16450 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16452 REPLACE_READLINK=1
16461 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16463 elif test "$gl_cv_decl_readlink_works" != yes; then
16464 REPLACE_READLINK=1
16473 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16481 GNULIB_READLINK=1
16485 # Code from module socklen:
16486 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16487 /* <sys/types.h> is not needed according to POSIX, but the
16488 <sys/socket.h> in i386-unknown-freebsd4.10 and
16489 powerpc-apple-darwin5.5 required it. */
16490 #include <sys/types.h>
16491 #if HAVE_SYS_SOCKET_H
16492 # include <sys/socket.h>
16493 #elif HAVE_WS2TCPIP_H
16494 # include <ws2tcpip.h>
16495 #endif
16498 if test "x$ac_cv_type_socklen_t" = x""yes; then :
16500 else
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16502 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16503 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 # Systems have either "struct sockaddr *" or
16507 # "void *" as the second argument to getpeername
16508 gl_cv_socklen_t_equiv=
16509 for arg2 in "struct sockaddr" void; do
16510 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <sys/types.h>
16514 #include <sys/socket.h>
16516 int getpeername (int, $arg2 *, $t *);
16518 main ()
16520 $t len;
16521 getpeername (0, 0, &len);
16523 return 0;
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527 gl_cv_socklen_t_equiv="$t"
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 test "$gl_cv_socklen_t_equiv" != "" && break
16531 done
16532 test "$gl_cv_socklen_t_equiv" != "" && break
16533 done
16537 if test "$gl_cv_socklen_t_equiv" = ""; then
16538 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16541 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16543 cat >>confdefs.h <<_ACEOF
16544 #define socklen_t $gl_cv_socklen_t_equiv
16545 _ACEOF
16549 # Code from module stat:
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16554 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16555 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 if test "$cross_compiling" = yes; then :
16559 case $host_os in
16560 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16561 *) gl_cv_func_stat_dir_slash="guessing yes";;
16562 esac
16563 else
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #include <sys/stat.h>
16569 main ()
16571 struct stat st; return stat (".", &st) != stat ("./", &st);
16573 return 0;
16575 _ACEOF
16576 if ac_fn_c_try_run "$LINENO"; then :
16577 gl_cv_func_stat_dir_slash=yes
16578 else
16579 gl_cv_func_stat_dir_slash=no
16581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16582 conftest.$ac_objext conftest.beam conftest.$ac_ext
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16587 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16589 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16590 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 touch conftest.tmp
16594 # Assume that if we have lstat, we can also check symlinks.
16595 if test $ac_cv_func_lstat = yes; then
16596 ln -s conftest.tmp conftest.lnk
16598 if test "$cross_compiling" = yes; then :
16599 gl_cv_func_stat_file_slash="guessing no"
16600 else
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 #include <sys/stat.h>
16606 main ()
16608 int result = 0;
16609 struct stat st;
16610 if (!stat ("conftest.tmp/", &st))
16611 result |= 1;
16612 #if HAVE_LSTAT
16613 if (!stat ("conftest.lnk/", &st))
16614 result |= 2;
16615 #endif
16616 return result;
16619 return 0;
16621 _ACEOF
16622 if ac_fn_c_try_run "$LINENO"; then :
16623 gl_cv_func_stat_file_slash=yes
16624 else
16625 gl_cv_func_stat_file_slash=no
16627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16628 conftest.$ac_objext conftest.beam conftest.$ac_ext
16631 rm -f conftest.tmp conftest.lnk
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16634 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16635 case $gl_cv_func_stat_dir_slash in
16636 *no) REPLACE_STAT=1
16638 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16640 esac
16641 case $gl_cv_func_stat_file_slash in
16642 *no) REPLACE_STAT=1
16644 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16646 esac
16647 if test $REPLACE_STAT = 1; then
16656 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16664 GNULIB_STAT=1
16668 # Code from module stdbool:
16672 # Define two additional variables used in the Makefile substitution.
16674 if test "$ac_cv_header_stdbool_h" = yes; then
16675 STDBOOL_H=''
16676 else
16677 STDBOOL_H='stdbool.h'
16681 if test "$ac_cv_type__Bool" = yes; then
16682 HAVE__BOOL=1
16683 else
16684 HAVE__BOOL=0
16688 # Code from module stddef:
16692 if test $gt_cv_c_wchar_t = no; then
16693 HAVE_WCHAR_T=0
16694 STDDEF_H=stddef.h
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16697 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16698 if test "${gl_cv_decl_null_works+set}" = set; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 #include <stddef.h>
16704 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16707 main ()
16711 return 0;
16713 _ACEOF
16714 if ac_fn_c_try_compile "$LINENO"; then :
16715 gl_cv_decl_null_works=yes
16716 else
16717 gl_cv_decl_null_works=no
16719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16722 $as_echo "$gl_cv_decl_null_works" >&6; }
16723 if test $gl_cv_decl_null_works = no; then
16724 REPLACE_NULL=1
16725 STDDEF_H=stddef.h
16727 if test -n "$STDDEF_H"; then
16736 if test $gl_cv_have_include_next = yes; then
16737 gl_cv_next_stddef_h='<'stddef.h'>'
16738 else
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16740 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16741 if test "${gl_cv_next_stddef_h+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16743 else
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 #include <stddef.h>
16749 _ACEOF
16750 case "$host_os" in
16751 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16752 *) gl_absname_cpp="$ac_cpp" ;;
16753 esac
16754 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16755 sed -n '\#/stddef.h#{
16756 s#.*"\(.*/stddef.h\)".*#\1#
16757 s#^/[^/]#//&#
16760 }'`'"'
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16765 $as_echo "$gl_cv_next_stddef_h" >&6; }
16767 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16769 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16771 gl_next_as_first_directive='<'stddef.h'>'
16772 else
16773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16774 gl_next_as_first_directive=$gl_cv_next_stddef_h
16776 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16783 # Code from module stdint:
16787 if test $ac_cv_type_long_long_int = yes; then
16788 HAVE_LONG_LONG_INT=1
16789 else
16790 HAVE_LONG_LONG_INT=0
16794 if test $ac_cv_type_unsigned_long_long_int = yes; then
16795 HAVE_UNSIGNED_LONG_LONG_INT=1
16796 else
16797 HAVE_UNSIGNED_LONG_LONG_INT=0
16802 if test $ac_cv_header_wchar_h = yes; then
16803 HAVE_WCHAR_H=1
16804 else
16805 HAVE_WCHAR_H=0
16809 if test $ac_cv_header_inttypes_h = yes; then
16810 HAVE_INTTYPES_H=1
16811 else
16812 HAVE_INTTYPES_H=0
16816 if test $ac_cv_header_sys_types_h = yes; then
16817 HAVE_SYS_TYPES_H=1
16818 else
16819 HAVE_SYS_TYPES_H=0
16832 if test $gl_cv_have_include_next = yes; then
16833 gl_cv_next_stdint_h='<'stdint.h'>'
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16836 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16837 if test "${gl_cv_next_stdint_h+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16841 if test $ac_cv_header_stdint_h = yes; then
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <stdint.h>
16848 _ACEOF
16849 case "$host_os" in
16850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16851 *) gl_absname_cpp="$ac_cpp" ;;
16852 esac
16853 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16854 sed -n '\#/stdint.h#{
16855 s#.*"\(.*/stdint.h\)".*#\1#
16856 s#^/[^/]#//&#
16859 }'`'"'
16860 else
16861 gl_cv_next_stdint_h='<'stdint.h'>'
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16867 $as_echo "$gl_cv_next_stdint_h" >&6; }
16869 NEXT_STDINT_H=$gl_cv_next_stdint_h
16871 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16873 gl_next_as_first_directive='<'stdint.h'>'
16874 else
16875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16876 gl_next_as_first_directive=$gl_cv_next_stdint_h
16878 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16883 if test $ac_cv_header_stdint_h = yes; then
16884 HAVE_STDINT_H=1
16885 else
16886 HAVE_STDINT_H=0
16890 if test $ac_cv_header_stdint_h = yes; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16892 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16893 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 gl_cv_header_working_stdint_h=no
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16901 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16902 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16903 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16904 #include <stdint.h>
16905 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16906 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16907 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16908 #endif
16911 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16912 included before <wchar.h>. */
16913 #include <stddef.h>
16914 #include <signal.h>
16915 #if HAVE_WCHAR_H
16916 # include <stdio.h>
16917 # include <time.h>
16918 # include <wchar.h>
16919 #endif
16922 #ifdef INT8_MAX
16923 int8_t a1 = INT8_MAX;
16924 int8_t a1min = INT8_MIN;
16925 #endif
16926 #ifdef INT16_MAX
16927 int16_t a2 = INT16_MAX;
16928 int16_t a2min = INT16_MIN;
16929 #endif
16930 #ifdef INT32_MAX
16931 int32_t a3 = INT32_MAX;
16932 int32_t a3min = INT32_MIN;
16933 #endif
16934 #ifdef INT64_MAX
16935 int64_t a4 = INT64_MAX;
16936 int64_t a4min = INT64_MIN;
16937 #endif
16938 #ifdef UINT8_MAX
16939 uint8_t b1 = UINT8_MAX;
16940 #else
16941 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16942 #endif
16943 #ifdef UINT16_MAX
16944 uint16_t b2 = UINT16_MAX;
16945 #endif
16946 #ifdef UINT32_MAX
16947 uint32_t b3 = UINT32_MAX;
16948 #endif
16949 #ifdef UINT64_MAX
16950 uint64_t b4 = UINT64_MAX;
16951 #endif
16952 int_least8_t c1 = INT8_C (0x7f);
16953 int_least8_t c1max = INT_LEAST8_MAX;
16954 int_least8_t c1min = INT_LEAST8_MIN;
16955 int_least16_t c2 = INT16_C (0x7fff);
16956 int_least16_t c2max = INT_LEAST16_MAX;
16957 int_least16_t c2min = INT_LEAST16_MIN;
16958 int_least32_t c3 = INT32_C (0x7fffffff);
16959 int_least32_t c3max = INT_LEAST32_MAX;
16960 int_least32_t c3min = INT_LEAST32_MIN;
16961 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16962 int_least64_t c4max = INT_LEAST64_MAX;
16963 int_least64_t c4min = INT_LEAST64_MIN;
16964 uint_least8_t d1 = UINT8_C (0xff);
16965 uint_least8_t d1max = UINT_LEAST8_MAX;
16966 uint_least16_t d2 = UINT16_C (0xffff);
16967 uint_least16_t d2max = UINT_LEAST16_MAX;
16968 uint_least32_t d3 = UINT32_C (0xffffffff);
16969 uint_least32_t d3max = UINT_LEAST32_MAX;
16970 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16971 uint_least64_t d4max = UINT_LEAST64_MAX;
16972 int_fast8_t e1 = INT_FAST8_MAX;
16973 int_fast8_t e1min = INT_FAST8_MIN;
16974 int_fast16_t e2 = INT_FAST16_MAX;
16975 int_fast16_t e2min = INT_FAST16_MIN;
16976 int_fast32_t e3 = INT_FAST32_MAX;
16977 int_fast32_t e3min = INT_FAST32_MIN;
16978 int_fast64_t e4 = INT_FAST64_MAX;
16979 int_fast64_t e4min = INT_FAST64_MIN;
16980 uint_fast8_t f1 = UINT_FAST8_MAX;
16981 uint_fast16_t f2 = UINT_FAST16_MAX;
16982 uint_fast32_t f3 = UINT_FAST32_MAX;
16983 uint_fast64_t f4 = UINT_FAST64_MAX;
16984 #ifdef INTPTR_MAX
16985 intptr_t g = INTPTR_MAX;
16986 intptr_t gmin = INTPTR_MIN;
16987 #endif
16988 #ifdef UINTPTR_MAX
16989 uintptr_t h = UINTPTR_MAX;
16990 #endif
16991 intmax_t i = INTMAX_MAX;
16992 uintmax_t j = UINTMAX_MAX;
16994 #include <limits.h> /* for CHAR_BIT */
16995 #define TYPE_MINIMUM(t) \
16996 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16997 #define TYPE_MAXIMUM(t) \
16998 ((t) ((t) 0 < (t) -1 \
16999 ? (t) -1 \
17000 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17001 struct s {
17002 int check_PTRDIFF:
17003 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17004 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17005 ? 1 : -1;
17006 /* Detect bug in FreeBSD 6.0 / ia64. */
17007 int check_SIG_ATOMIC:
17008 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17009 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17010 ? 1 : -1;
17011 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17012 int check_WCHAR:
17013 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17014 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17015 ? 1 : -1;
17016 /* Detect bug in mingw. */
17017 int check_WINT:
17018 WINT_MIN == TYPE_MINIMUM (wint_t)
17019 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17020 ? 1 : -1;
17022 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17023 int check_UINT8_C:
17024 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17025 int check_UINT16_C:
17026 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17028 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17029 #ifdef UINT8_MAX
17030 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17031 #endif
17032 #ifdef UINT16_MAX
17033 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17034 #endif
17035 #ifdef UINT32_MAX
17036 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17037 #endif
17038 #ifdef UINT64_MAX
17039 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17040 #endif
17041 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17042 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17043 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17044 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17045 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17046 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17047 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17048 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17049 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17050 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17051 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17055 main ()
17059 return 0;
17061 _ACEOF
17062 if ac_fn_c_try_compile "$LINENO"; then :
17063 if test "$cross_compiling" = yes; then :
17064 gl_cv_header_working_stdint_h=yes
17066 else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17071 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17072 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17073 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17074 #include <stdint.h>
17077 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17078 included before <wchar.h>. */
17079 #include <stddef.h>
17080 #include <signal.h>
17081 #if HAVE_WCHAR_H
17082 # include <stdio.h>
17083 # include <time.h>
17084 # include <wchar.h>
17085 #endif
17088 #include <stdio.h>
17089 #include <string.h>
17090 #define MVAL(macro) MVAL1(macro)
17091 #define MVAL1(expression) #expression
17092 static const char *macro_values[] =
17094 #ifdef INT8_MAX
17095 MVAL (INT8_MAX),
17096 #endif
17097 #ifdef INT16_MAX
17098 MVAL (INT16_MAX),
17099 #endif
17100 #ifdef INT32_MAX
17101 MVAL (INT32_MAX),
17102 #endif
17103 #ifdef INT64_MAX
17104 MVAL (INT64_MAX),
17105 #endif
17106 #ifdef UINT8_MAX
17107 MVAL (UINT8_MAX),
17108 #endif
17109 #ifdef UINT16_MAX
17110 MVAL (UINT16_MAX),
17111 #endif
17112 #ifdef UINT32_MAX
17113 MVAL (UINT32_MAX),
17114 #endif
17115 #ifdef UINT64_MAX
17116 MVAL (UINT64_MAX),
17117 #endif
17118 NULL
17122 main ()
17125 const char **mv;
17126 for (mv = macro_values; *mv != NULL; mv++)
17128 const char *value = *mv;
17129 /* Test whether it looks like a cast expression. */
17130 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17131 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17132 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17133 || strncmp (value, "((int)"/*)*/, 6) == 0
17134 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17135 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17136 return mv - macro_values + 1;
17138 return 0;
17141 return 0;
17143 _ACEOF
17144 if ac_fn_c_try_run "$LINENO"; then :
17145 gl_cv_header_working_stdint_h=yes
17147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17148 conftest.$ac_objext conftest.beam conftest.$ac_ext
17153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17157 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17159 if test "$gl_cv_header_working_stdint_h" = yes; then
17160 STDINT_H=
17161 else
17162 for ac_header in sys/inttypes.h sys/bitypes.h
17163 do :
17164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17165 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17166 eval as_val=\$$as_ac_Header
17167 if test "x$as_val" = x""yes; then :
17168 cat >>confdefs.h <<_ACEOF
17169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17170 _ACEOF
17174 done
17176 if test $ac_cv_header_sys_inttypes_h = yes; then
17177 HAVE_SYS_INTTYPES_H=1
17178 else
17179 HAVE_SYS_INTTYPES_H=0
17182 if test $ac_cv_header_sys_bitypes_h = yes; then
17183 HAVE_SYS_BITYPES_H=1
17184 else
17185 HAVE_SYS_BITYPES_H=0
17191 if test $APPLE_UNIVERSAL_BUILD = 0; then
17194 for gltype in ptrdiff_t size_t ; do
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17196 $as_echo_n "checking for bit size of $gltype... " >&6; }
17197 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17202 included before <wchar.h>. */
17203 #include <stddef.h>
17204 #include <signal.h>
17205 #if HAVE_WCHAR_H
17206 # include <stdio.h>
17207 # include <time.h>
17208 # include <wchar.h>
17209 #endif
17211 #include <limits.h>"; then :
17213 else
17214 result=unknown
17217 eval gl_cv_bitsizeof_${gltype}=\$result
17220 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17222 $as_echo "$ac_res" >&6; }
17223 eval result=\$gl_cv_bitsizeof_${gltype}
17224 if test $result = unknown; then
17225 result=0
17227 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17228 cat >>confdefs.h <<_ACEOF
17229 #define BITSIZEOF_${GLTYPE} $result
17230 _ACEOF
17232 eval BITSIZEOF_${GLTYPE}=\$result
17233 done
17239 for gltype in sig_atomic_t wchar_t wint_t ; do
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17241 $as_echo_n "checking for bit size of $gltype... " >&6; }
17242 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17246 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17247 included before <wchar.h>. */
17248 #include <stddef.h>
17249 #include <signal.h>
17250 #if HAVE_WCHAR_H
17251 # include <stdio.h>
17252 # include <time.h>
17253 # include <wchar.h>
17254 #endif
17256 #include <limits.h>"; then :
17258 else
17259 result=unknown
17262 eval gl_cv_bitsizeof_${gltype}=\$result
17265 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17267 $as_echo "$ac_res" >&6; }
17268 eval result=\$gl_cv_bitsizeof_${gltype}
17269 if test $result = unknown; then
17270 result=0
17272 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17273 cat >>confdefs.h <<_ACEOF
17274 #define BITSIZEOF_${GLTYPE} $result
17275 _ACEOF
17277 eval BITSIZEOF_${GLTYPE}=\$result
17278 done
17283 for gltype in sig_atomic_t wchar_t wint_t ; do
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17285 $as_echo_n "checking whether $gltype is signed... " >&6; }
17286 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17287 $as_echo_n "(cached) " >&6
17288 else
17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h. */
17292 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17293 included before <wchar.h>. */
17294 #include <stddef.h>
17295 #include <signal.h>
17296 #if HAVE_WCHAR_H
17297 # include <stdio.h>
17298 # include <time.h>
17299 # include <wchar.h>
17300 #endif
17302 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17304 main ()
17308 return 0;
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312 result=yes
17313 else
17314 result=no
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 eval gl_cv_type_${gltype}_signed=\$result
17320 eval ac_res=\$gl_cv_type_${gltype}_signed
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17322 $as_echo "$ac_res" >&6; }
17323 eval result=\$gl_cv_type_${gltype}_signed
17324 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17325 if test "$result" = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_SIGNED_${GLTYPE} 1
17328 _ACEOF
17330 eval HAVE_SIGNED_${GLTYPE}=1
17331 else
17332 eval HAVE_SIGNED_${GLTYPE}=0
17334 done
17337 gl_cv_type_ptrdiff_t_signed=yes
17338 gl_cv_type_size_t_signed=no
17339 if test $APPLE_UNIVERSAL_BUILD = 0; then
17342 for gltype in ptrdiff_t size_t ; do
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17344 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17345 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 eval gl_cv_type_${gltype}_suffix=no
17349 eval result=\$gl_cv_type_${gltype}_signed
17350 if test "$result" = yes; then
17351 glsufu=
17352 else
17353 glsufu=u
17355 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17356 case $glsuf in
17357 '') gltype1='int';;
17358 l) gltype1='long int';;
17359 ll) gltype1='long long int';;
17360 i64) gltype1='__int64';;
17361 u) gltype1='unsigned int';;
17362 ul) gltype1='unsigned long int';;
17363 ull) gltype1='unsigned long long int';;
17364 ui64)gltype1='unsigned __int64';;
17365 esac
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17369 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17370 included before <wchar.h>. */
17371 #include <stddef.h>
17372 #include <signal.h>
17373 #if HAVE_WCHAR_H
17374 # include <stdio.h>
17375 # include <time.h>
17376 # include <wchar.h>
17377 #endif
17379 extern $gltype foo;
17380 extern $gltype1 foo;
17382 main ()
17386 return 0;
17388 _ACEOF
17389 if ac_fn_c_try_compile "$LINENO"; then :
17390 eval gl_cv_type_${gltype}_suffix=\$glsuf
17392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17393 eval result=\$gl_cv_type_${gltype}_suffix
17394 test "$result" != no && break
17395 done
17397 eval ac_res=\$gl_cv_type_${gltype}_suffix
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17399 $as_echo "$ac_res" >&6; }
17400 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17401 eval result=\$gl_cv_type_${gltype}_suffix
17402 test "$result" = no && result=
17403 eval ${GLTYPE}_SUFFIX=\$result
17404 cat >>confdefs.h <<_ACEOF
17405 #define ${GLTYPE}_SUFFIX $result
17406 _ACEOF
17408 done
17414 for gltype in sig_atomic_t wchar_t wint_t ; do
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17416 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17417 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17418 $as_echo_n "(cached) " >&6
17419 else
17420 eval gl_cv_type_${gltype}_suffix=no
17421 eval result=\$gl_cv_type_${gltype}_signed
17422 if test "$result" = yes; then
17423 glsufu=
17424 else
17425 glsufu=u
17427 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17428 case $glsuf in
17429 '') gltype1='int';;
17430 l) gltype1='long int';;
17431 ll) gltype1='long long int';;
17432 i64) gltype1='__int64';;
17433 u) gltype1='unsigned int';;
17434 ul) gltype1='unsigned long int';;
17435 ull) gltype1='unsigned long long int';;
17436 ui64)gltype1='unsigned __int64';;
17437 esac
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17441 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17442 included before <wchar.h>. */
17443 #include <stddef.h>
17444 #include <signal.h>
17445 #if HAVE_WCHAR_H
17446 # include <stdio.h>
17447 # include <time.h>
17448 # include <wchar.h>
17449 #endif
17451 extern $gltype foo;
17452 extern $gltype1 foo;
17454 main ()
17458 return 0;
17460 _ACEOF
17461 if ac_fn_c_try_compile "$LINENO"; then :
17462 eval gl_cv_type_${gltype}_suffix=\$glsuf
17464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 eval result=\$gl_cv_type_${gltype}_suffix
17466 test "$result" != no && break
17467 done
17469 eval ac_res=\$gl_cv_type_${gltype}_suffix
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17471 $as_echo "$ac_res" >&6; }
17472 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17473 eval result=\$gl_cv_type_${gltype}_suffix
17474 test "$result" = no && result=
17475 eval ${GLTYPE}_SUFFIX=\$result
17476 cat >>confdefs.h <<_ACEOF
17477 #define ${GLTYPE}_SUFFIX $result
17478 _ACEOF
17480 done
17484 STDINT_H=stdint.h
17488 # Code from module stdio:
17500 if test $gl_cv_have_include_next = yes; then
17501 gl_cv_next_stdio_h='<'stdio.h'>'
17502 else
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17504 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17505 if test "${gl_cv_next_stdio_h+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 #include <stdio.h>
17513 _ACEOF
17514 case "$host_os" in
17515 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17516 *) gl_absname_cpp="$ac_cpp" ;;
17517 esac
17518 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17519 sed -n '\#/stdio.h#{
17520 s#.*"\(.*/stdio.h\)".*#\1#
17521 s#^/[^/]#//&#
17524 }'`'"'
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17529 $as_echo "$gl_cv_next_stdio_h" >&6; }
17531 NEXT_STDIO_H=$gl_cv_next_stdio_h
17533 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17535 gl_next_as_first_directive='<'stdio.h'>'
17536 else
17537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17538 gl_next_as_first_directive=$gl_cv_next_stdio_h
17540 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17545 GNULIB_FPRINTF=1
17546 GNULIB_PRINTF=1
17547 GNULIB_VFPRINTF=1
17548 GNULIB_VPRINTF=1
17549 GNULIB_FPUTC=1
17550 GNULIB_PUTC=1
17551 GNULIB_PUTCHAR=1
17552 GNULIB_FPUTS=1
17553 GNULIB_PUTS=1
17554 GNULIB_FWRITE=1
17559 # Code from module stdlib:
17570 if test $gl_cv_have_include_next = yes; then
17571 gl_cv_next_stdlib_h='<'stdlib.h'>'
17572 else
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17574 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17575 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #include <stdlib.h>
17583 _ACEOF
17584 case "$host_os" in
17585 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17586 *) gl_absname_cpp="$ac_cpp" ;;
17587 esac
17588 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17589 sed -n '\#/stdlib.h#{
17590 s#.*"\(.*/stdlib.h\)".*#\1#
17591 s#^/[^/]#//&#
17594 }'`'"'
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17599 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17601 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17603 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17605 gl_next_as_first_directive='<'stdlib.h'>'
17606 else
17607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17608 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17610 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17618 # Code from module strftime:
17629 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17632 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17640 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17644 # Code from module symlink:
17648 if test $ac_cv_func_symlink = no; then
17649 HAVE_SYMLINK=0
17658 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17660 else
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17662 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17663 if test "${gl_cv_func_symlink_works+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 if test "$cross_compiling" = yes; then :
17667 gl_cv_func_symlink_works="guessing no"
17668 else
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 #include <unistd.h>
17674 main ()
17676 int result = 0;
17677 if (!symlink ("a", "conftest.link/"))
17678 result |= 1;
17679 if (symlink ("conftest.f", "conftest.lnk2"))
17680 result |= 2;
17681 else if (!symlink ("a", "conftest.lnk2/"))
17682 result |= 4;
17683 return result;
17686 return 0;
17688 _ACEOF
17689 if ac_fn_c_try_run "$LINENO"; then :
17690 gl_cv_func_symlink_works=yes
17691 else
17692 gl_cv_func_symlink_works=no
17694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17695 conftest.$ac_objext conftest.beam conftest.$ac_ext
17698 rm -f conftest.f conftest.link conftest.lnk2
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17701 $as_echo "$gl_cv_func_symlink_works" >&6; }
17702 if test "$gl_cv_func_symlink_works" != yes; then
17703 REPLACE_SYMLINK=1
17712 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17720 GNULIB_SYMLINK=1
17724 # Code from module sys_stat:
17741 if test $gl_cv_have_include_next = yes; then
17742 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17743 else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17745 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17746 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17750 if test $ac_cv_header_sys_stat_h = yes; then
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 #include <sys/stat.h>
17757 _ACEOF
17758 case "$host_os" in
17759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17760 *) gl_absname_cpp="$ac_cpp" ;;
17761 esac
17762 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17763 sed -n '\#/sys/stat.h#{
17764 s#.*"\(.*/sys/stat.h\)".*#\1#
17765 s#^/[^/]#//&#
17768 }'`'"'
17769 else
17770 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17776 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17778 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17782 gl_next_as_first_directive='<'sys/stat.h'>'
17783 else
17784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17785 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17793 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17794 #include <sys/stat.h>
17796 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17798 else
17800 $as_echo "#define nlink_t int" >>confdefs.h
17808 # Code from module time:
17812 # Code from module time_r:
17820 if test $ac_cv_have_decl_localtime_r = no; then
17821 HAVE_DECL_LOCALTIME_R=0
17825 if test $ac_cv_func_localtime_r = yes; then
17826 HAVE_LOCALTIME_R=1
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17828 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17829 if test "${gl_cv_time_r_posix+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17831 else
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834 #include <time.h>
17836 main ()
17838 /* We don't need to append 'restrict's to the argument types,
17839 even though the POSIX signature has the 'restrict's,
17840 since C99 says they can't affect type compatibility. */
17841 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17842 if (ptr) return 0;
17843 /* Check the return type is a pointer.
17844 On HP-UX 10 it is 'int'. */
17845 *localtime_r (0, 0);
17847 return 0;
17850 _ACEOF
17851 if ac_fn_c_try_compile "$LINENO"; then :
17852 gl_cv_time_r_posix=yes
17853 else
17854 gl_cv_time_r_posix=no
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17860 $as_echo "$gl_cv_time_r_posix" >&6; }
17861 if test $gl_cv_time_r_posix = yes; then
17862 REPLACE_LOCALTIME_R=0
17863 else
17864 REPLACE_LOCALTIME_R=1
17866 else
17867 HAVE_LOCALTIME_R=0
17869 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17878 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17888 GNULIB_TIME_R=1
17892 # Code from module unistd:
17906 if test $gl_cv_have_include_next = yes; then
17907 gl_cv_next_unistd_h='<'unistd.h'>'
17908 else
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17910 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17911 if test "${gl_cv_next_unistd_h+set}" = set; then :
17912 $as_echo_n "(cached) " >&6
17913 else
17915 if test $ac_cv_header_unistd_h = yes; then
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 #include <unistd.h>
17922 _ACEOF
17923 case "$host_os" in
17924 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17925 *) gl_absname_cpp="$ac_cpp" ;;
17926 esac
17927 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17928 sed -n '\#/unistd.h#{
17929 s#.*"\(.*/unistd.h\)".*#\1#
17930 s#^/[^/]#//&#
17933 }'`'"'
17934 else
17935 gl_cv_next_unistd_h='<'unistd.h'>'
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17941 $as_echo "$gl_cv_next_unistd_h" >&6; }
17943 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17945 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17947 gl_next_as_first_directive='<'unistd.h'>'
17948 else
17949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17950 gl_next_as_first_directive=$gl_cv_next_unistd_h
17952 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17957 if test $ac_cv_header_unistd_h = yes; then
17958 HAVE_UNISTD_H=1
17959 else
17960 HAVE_UNISTD_H=0
17966 # Code from module warn-on-use:
17967 # End of code from modules
17977 gltests_libdeps=
17978 gltests_ltlibdeps=
17988 gl_source_base='tests'
17989 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
17991 gl_module_indicator_condition=$gltests_WITNESS
18001 LIBGNU_LIBDEPS="$gl_libdeps"
18003 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18007 # UNIX98 PTYs.
18008 for ac_func in grantpt
18009 do :
18010 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18011 if test "x$ac_cv_func_grantpt" = x""yes; then :
18012 cat >>confdefs.h <<_ACEOF
18013 #define HAVE_GRANTPT 1
18014 _ACEOF
18017 done
18020 # PTY-related GNU extensions.
18021 for ac_func in getpt
18022 do :
18023 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18024 if test "x$ac_cv_func_getpt" = x""yes; then :
18025 cat >>confdefs.h <<_ACEOF
18026 #define HAVE_GETPT 1
18027 _ACEOF
18030 done
18033 # Check this now, so that we will NOT find the above functions in ncurses.
18034 # That is because we have not set up to link ncurses in lib-src.
18035 # It's better to believe a function is not available
18036 # than to expect to find it in ncurses.
18037 # Also we need tputs and friends to be able to build at all.
18038 have_tputs_et_al=true
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18040 $as_echo_n "checking for library containing tputs... " >&6; }
18041 if test "${ac_cv_search_tputs+set}" = set; then :
18042 $as_echo_n "(cached) " >&6
18043 else
18044 ac_func_search_save_LIBS=$LIBS
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18048 /* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
18051 #ifdef __cplusplus
18052 extern "C"
18053 #endif
18054 char tputs ();
18056 main ()
18058 return tputs ();
18060 return 0;
18062 _ACEOF
18063 for ac_lib in '' ncurses terminfo termcap; do
18064 if test -z "$ac_lib"; then
18065 ac_res="none required"
18066 else
18067 ac_res=-l$ac_lib
18068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 ac_cv_search_tputs=$ac_res
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext
18075 if test "${ac_cv_search_tputs+set}" = set; then :
18076 break
18078 done
18079 if test "${ac_cv_search_tputs+set}" = set; then :
18081 else
18082 ac_cv_search_tputs=no
18084 rm conftest.$ac_ext
18085 LIBS=$ac_func_search_save_LIBS
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18088 $as_echo "$ac_cv_search_tputs" >&6; }
18089 ac_res=$ac_cv_search_tputs
18090 if test "$ac_res" != no; then :
18091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18093 else
18094 have_tputs_et_al=false
18097 if test "$have_tputs_et_al" != true; then
18098 as_fn_error "I couldn't find termcap functions (tputs and friends).
18099 Maybe some development libraries/packages are missing? Try installing
18100 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18102 # Must define this when any termcap library is found.
18104 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18106 ## FIXME This was the cpp logic, but I am not sure it is right.
18107 ## The above test has not necessarily found libncurses.
18108 HAVE_LIBNCURSES=yes
18110 ## Use terminfo instead of termcap?
18111 ## Note only system files NOT using terminfo are:
18112 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18113 ## darwin|gnu without ncurses.
18114 TERMINFO=no
18115 LIBS_TERMCAP=
18116 case "$opsys" in
18117 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18118 ## hpux10-20: Use the system provided termcap(3) library.
18119 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18120 ## is necessary. Otherwise Emacs dumps core when run -nw.
18121 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
18123 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18124 ## The ncurses library has been moved out of the System framework in
18125 ## Mac OS X 10.2. So if configure detects it, set the command-line
18126 ## option to use it.
18127 darwin|gnu*)
18128 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18129 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18130 TERMINFO=yes
18131 LIBS_TERMCAP="-lncurses"
18135 freebsd)
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18137 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18138 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18143 #include <osreldate.h>
18145 main ()
18147 #if __FreeBSD_version < 400000
18148 fail;
18149 #endif
18152 return 0;
18154 _ACEOF
18155 if ac_fn_c_try_link "$LINENO"; then :
18156 emacs_cv_freebsd_terminfo=yes
18157 else
18158 emacs_cv_freebsd_terminfo=no
18160 rm -f core conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18166 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18168 if test $emacs_cv_freebsd_terminfo = yes; then
18169 TERMINFO=yes
18170 LIBS_TERMCAP="-lncurses"
18171 else
18172 LIBS_TERMCAP="-ltermcap"
18176 netbsd)
18177 if test $ac_cv_search_tputs = -lterminfo; then
18178 TERMINFO=yes
18179 LIBS_TERMCAP="-lterminfo"
18180 else
18181 LIBS_TERMCAP="-ltermcap"
18185 esac
18187 case "$opsys" in
18188 ## hpux: Make sure we get select from libc rather than from libcurses
18189 ## because libcurses on HPUX 10.10 has a broken version of select.
18190 ## We used to use -lc -lcurses, but this may be cleaner.
18191 hpux*) LIBS_TERMCAP="-ltermcap" ;;
18193 openbsd) LIBS_TERMCAP="-lncurses" ;;
18195 ## Must use system termcap, if we use any termcap. It does special things.
18196 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
18197 esac
18199 TERMCAP_OBJ=tparam.o
18200 if test $TERMINFO = yes; then
18202 $as_echo "#define TERMINFO 1" >>confdefs.h
18205 ## Default used to be -ltermcap. Add a case above if need something else.
18206 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
18208 TERMCAP_OBJ=terminfo.o
18214 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18215 resolv=no
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 #include <netinet/in.h>
18219 #include <arpa/nameser.h>
18220 #include <resolv.h>
18222 main ()
18224 return res_init();
18226 return 0;
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 have_res_init=yes
18231 else
18232 have_res_init=no
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236 if test "$have_res_init" = no; then
18237 OLIBS="$LIBS"
18238 LIBS="$LIBS -lresolv"
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18240 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 #include <netinet/in.h>
18244 #include <arpa/nameser.h>
18245 #include <resolv.h>
18247 main ()
18249 return res_init();
18251 return 0;
18253 _ACEOF
18254 if ac_fn_c_try_link "$LINENO"; then :
18255 have_res_init=yes
18256 else
18257 have_res_init=no
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18262 $as_echo "$have_res_init" >&6; }
18263 if test "$have_res_init" = yes ; then
18264 resolv=yes
18266 LIBS="$OLIBS"
18269 if test "$have_res_init" = yes; then
18271 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18275 # Do we need the Hesiod library to provide the support routines?
18276 LIBHESIOD=
18277 if test "$with_hesiod" != no ; then
18278 # Don't set $LIBS here -- see comments above. FIXME which comments?
18279 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18280 if test "x$ac_cv_func_res_send" = x""yes; then :
18282 else
18283 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18284 if test "x$ac_cv_func___res_send" = x""yes; then :
18286 else
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18288 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18289 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lresolv $LIBS"
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 char res_send ();
18305 main ()
18307 return res_send ();
18309 return 0;
18311 _ACEOF
18312 if ac_fn_c_try_link "$LINENO"; then :
18313 ac_cv_lib_resolv_res_send=yes
18314 else
18315 ac_cv_lib_resolv_res_send=no
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18322 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18323 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
18324 resolv=yes
18325 else
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18327 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18328 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18329 $as_echo_n "(cached) " >&6
18330 else
18331 ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-lresolv $LIBS"
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18339 #ifdef __cplusplus
18340 extern "C"
18341 #endif
18342 char __res_send ();
18344 main ()
18346 return __res_send ();
18348 return 0;
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 ac_cv_lib_resolv___res_send=yes
18353 else
18354 ac_cv_lib_resolv___res_send=no
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18361 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18362 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
18363 resolv=yes
18372 if test "$resolv" = yes ; then
18373 RESOLVLIB=-lresolv
18374 else
18375 RESOLVLIB=
18377 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18378 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
18380 else
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18382 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18383 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18384 $as_echo_n "(cached) " >&6
18385 else
18386 ac_check_lib_save_LIBS=$LIBS
18387 LIBS="-lhesiod $RESOLVLIB $LIBS"
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18394 #ifdef __cplusplus
18395 extern "C"
18396 #endif
18397 char hes_getmailhost ();
18399 main ()
18401 return hes_getmailhost ();
18403 return 0;
18405 _ACEOF
18406 if ac_fn_c_try_link "$LINENO"; then :
18407 ac_cv_lib_hesiod_hes_getmailhost=yes
18408 else
18409 ac_cv_lib_hesiod_hes_getmailhost=no
18411 rm -f core conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18416 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18417 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
18418 hesiod=yes
18419 else
18426 if test x"$hesiod" = xyes; then
18428 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18430 LIBHESIOD=-lhesiod
18435 # Do we need libresolv (due to res_init or Hesiod)?
18436 if test "$resolv" = yes ; then
18438 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18440 LIBRESOLV=-lresolv
18441 else
18442 LIBRESOLV=
18446 # These tell us which Kerberos-related libraries to use.
18447 COM_ERRLIB=
18448 CRYPTOLIB=
18449 KRB5LIB=
18450 DESLIB=
18451 KRB4LIB=
18453 if test "${with_kerberos}" != no; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18455 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18456 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18457 $as_echo_n "(cached) " >&6
18458 else
18459 ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lcom_err $LIBS"
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18464 /* Override any GCC internal prototype to avoid an error.
18465 Use char because int might match the return type of a GCC
18466 builtin and then its argument prototype would still apply. */
18467 #ifdef __cplusplus
18468 extern "C"
18469 #endif
18470 char com_err ();
18472 main ()
18474 return com_err ();
18476 return 0;
18478 _ACEOF
18479 if ac_fn_c_try_link "$LINENO"; then :
18480 ac_cv_lib_com_err_com_err=yes
18481 else
18482 ac_cv_lib_com_err_com_err=no
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18489 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18490 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
18491 have_com_err=yes
18492 else
18493 have_com_err=no
18496 if test $have_com_err = yes; then
18497 COM_ERRLIB=-lcom_err
18498 LIBS="$COM_ERRLIB $LIBS"
18500 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18504 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508 ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-lcrypto $LIBS"
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char mit_des_cbc_encrypt ();
18521 main ()
18523 return mit_des_cbc_encrypt ();
18525 return 0;
18527 _ACEOF
18528 if ac_fn_c_try_link "$LINENO"; then :
18529 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18530 else
18531 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18533 rm -f core conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18538 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18539 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
18540 have_crypto=yes
18541 else
18542 have_crypto=no
18545 if test $have_crypto = yes; then
18546 CRYPTOLIB=-lcrypto
18547 LIBS="$CRYPTOLIB $LIBS"
18549 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18553 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18556 else
18557 ac_check_lib_save_LIBS=$LIBS
18558 LIBS="-lk5crypto $LIBS"
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 char mit_des_cbc_encrypt ();
18570 main ()
18572 return mit_des_cbc_encrypt ();
18574 return 0;
18576 _ACEOF
18577 if ac_fn_c_try_link "$LINENO"; then :
18578 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18579 else
18580 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18582 rm -f core conftest.err conftest.$ac_objext \
18583 conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18587 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18588 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
18589 have_k5crypto=yes
18590 else
18591 have_k5crypto=no
18594 if test $have_k5crypto = yes; then
18595 CRYPTOLIB=-lk5crypto
18596 LIBS="$CRYPTOLIB $LIBS"
18598 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18602 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18603 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606 ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lkrb5 $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char krb5_init_context ();
18619 main ()
18621 return krb5_init_context ();
18623 return 0;
18625 _ACEOF
18626 if ac_fn_c_try_link "$LINENO"; then :
18627 ac_cv_lib_krb5_krb5_init_context=yes
18628 else
18629 ac_cv_lib_krb5_krb5_init_context=no
18631 rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18636 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18637 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
18638 have_krb5=yes
18639 else
18640 have_krb5=no
18643 if test $have_krb5=yes; then
18644 KRB5LIB=-lkrb5
18645 LIBS="$KRB5LIB $LIBS"
18647 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18650 if test "${with_kerberos5}" = no; then
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18652 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18653 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 ac_check_lib_save_LIBS=$LIBS
18657 LIBS="-ldes425 $LIBS"
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18664 #ifdef __cplusplus
18665 extern "C"
18666 #endif
18667 char des_cbc_encrypt ();
18669 main ()
18671 return des_cbc_encrypt ();
18673 return 0;
18675 _ACEOF
18676 if ac_fn_c_try_link "$LINENO"; then :
18677 ac_cv_lib_des425_des_cbc_encrypt=yes
18678 else
18679 ac_cv_lib_des425_des_cbc_encrypt=no
18681 rm -f core conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683 LIBS=$ac_check_lib_save_LIBS
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18686 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18687 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
18688 have_des425=yes
18689 else
18690 have_des425=no
18693 if test $have_des425 = yes; then
18694 DESLIB=-ldes425
18695 LIBS="$DESLIB $LIBS"
18697 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18699 else
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18701 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18702 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-ldes $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 des_cbc_encrypt ();
18718 main ()
18720 return des_cbc_encrypt ();
18722 return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 ac_cv_lib_des_des_cbc_encrypt=yes
18727 else
18728 ac_cv_lib_des_des_cbc_encrypt=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_des_des_cbc_encrypt" >&5
18735 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18736 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
18737 have_des=yes
18738 else
18739 have_des=no
18742 if test $have_des = yes; then
18743 DESLIB=-ldes
18744 LIBS="$DESLIB $LIBS"
18746 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18751 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18752 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18753 $as_echo_n "(cached) " >&6
18754 else
18755 ac_check_lib_save_LIBS=$LIBS
18756 LIBS="-lkrb4 $LIBS"
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char krb_get_cred ();
18768 main ()
18770 return krb_get_cred ();
18772 return 0;
18774 _ACEOF
18775 if ac_fn_c_try_link "$LINENO"; then :
18776 ac_cv_lib_krb4_krb_get_cred=yes
18777 else
18778 ac_cv_lib_krb4_krb_get_cred=no
18780 rm -f core conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18785 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18786 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
18787 have_krb4=yes
18788 else
18789 have_krb4=no
18792 if test $have_krb4 = yes; then
18793 KRB4LIB=-lkrb4
18794 LIBS="$KRB4LIB $LIBS"
18796 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18798 else
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18800 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18801 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18802 $as_echo_n "(cached) " >&6
18803 else
18804 ac_check_lib_save_LIBS=$LIBS
18805 LIBS="-lkrb $LIBS"
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 /* Override any GCC internal prototype to avoid an error.
18810 Use char because int might match the return type of a GCC
18811 builtin and then its argument prototype would still apply. */
18812 #ifdef __cplusplus
18813 extern "C"
18814 #endif
18815 char krb_get_cred ();
18817 main ()
18819 return krb_get_cred ();
18821 return 0;
18823 _ACEOF
18824 if ac_fn_c_try_link "$LINENO"; then :
18825 ac_cv_lib_krb_krb_get_cred=yes
18826 else
18827 ac_cv_lib_krb_krb_get_cred=no
18829 rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
18831 LIBS=$ac_check_lib_save_LIBS
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18834 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18835 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18836 have_krb=yes
18837 else
18838 have_krb=no
18841 if test $have_krb = yes; then
18842 KRB4LIB=-lkrb
18843 LIBS="$KRB4LIB $LIBS"
18845 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18851 if test "${with_kerberos5}" != no; then
18852 for ac_header in krb5.h
18853 do :
18854 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18855 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18856 cat >>confdefs.h <<_ACEOF
18857 #define HAVE_KRB5_H 1
18858 _ACEOF
18859 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18861 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18863 cat >>confdefs.h <<_ACEOF
18864 #define HAVE_KRB5_ERROR_TEXT 1
18865 _ACEOF
18869 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18871 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18873 cat >>confdefs.h <<_ACEOF
18874 #define HAVE_KRB5_ERROR_E_TEXT 1
18875 _ACEOF
18882 done
18884 else
18885 for ac_header in des.h
18886 do :
18887 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18888 if test "x$ac_cv_header_des_h" = x""yes; then :
18889 cat >>confdefs.h <<_ACEOF
18890 #define HAVE_DES_H 1
18891 _ACEOF
18893 else
18894 for ac_header in kerberosIV/des.h
18895 do :
18896 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18897 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18898 cat >>confdefs.h <<_ACEOF
18899 #define HAVE_KERBEROSIV_DES_H 1
18900 _ACEOF
18902 else
18903 for ac_header in kerberos/des.h
18904 do :
18905 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18906 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18907 cat >>confdefs.h <<_ACEOF
18908 #define HAVE_KERBEROS_DES_H 1
18909 _ACEOF
18913 done
18917 done
18921 done
18923 for ac_header in krb.h
18924 do :
18925 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18926 if test "x$ac_cv_header_krb_h" = x""yes; then :
18927 cat >>confdefs.h <<_ACEOF
18928 #define HAVE_KRB_H 1
18929 _ACEOF
18931 else
18932 for ac_header in kerberosIV/krb.h
18933 do :
18934 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18935 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
18936 cat >>confdefs.h <<_ACEOF
18937 #define HAVE_KERBEROSIV_KRB_H 1
18938 _ACEOF
18940 else
18941 for ac_header in kerberos/krb.h
18942 do :
18943 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18944 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
18945 cat >>confdefs.h <<_ACEOF
18946 #define HAVE_KERBEROS_KRB_H 1
18947 _ACEOF
18951 done
18955 done
18959 done
18962 for ac_header in com_err.h
18963 do :
18964 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18965 if test "x$ac_cv_header_com_err_h" = x""yes; then :
18966 cat >>confdefs.h <<_ACEOF
18967 #define HAVE_COM_ERR_H 1
18968 _ACEOF
18972 done
18982 # Solaris requires -lintl if you want strerror (which calls dgettext)
18983 # to return localized messages.
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18985 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18986 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
18988 else
18989 ac_check_lib_save_LIBS=$LIBS
18990 LIBS="-lintl $LIBS"
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char dgettext ();
19002 main ()
19004 return dgettext ();
19006 return 0;
19008 _ACEOF
19009 if ac_fn_c_try_link "$LINENO"; then :
19010 ac_cv_lib_intl_dgettext=yes
19011 else
19012 ac_cv_lib_intl_dgettext=no
19014 rm -f core conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19019 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19020 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19021 cat >>confdefs.h <<_ACEOF
19022 #define HAVE_LIBINTL 1
19023 _ACEOF
19025 LIBS="-lintl $LIBS"
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19031 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19032 if test "${emacs_cv_localtime_cache+set}" = set; then :
19033 $as_echo_n "(cached) " >&6
19034 else
19035 if test x$ac_cv_func_tzset = xyes; then
19036 if test "$cross_compiling" = yes; then :
19037 # If we have tzset, assume the worst when cross-compiling.
19038 emacs_cv_localtime_cache=yes
19039 else
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19042 #include <time.h>
19043 char TZ_GMT0[] = "TZ=GMT0";
19044 char TZ_PST8[] = "TZ=PST8";
19045 main()
19047 time_t now = time ((time_t *) 0);
19048 int hour_GMT0, hour_unset;
19049 if (putenv (TZ_GMT0) != 0)
19050 exit (1);
19051 hour_GMT0 = localtime (&now)->tm_hour;
19052 unsetenv("TZ");
19053 hour_unset = localtime (&now)->tm_hour;
19054 if (putenv (TZ_PST8) != 0)
19055 exit (1);
19056 if (localtime (&now)->tm_hour == hour_GMT0)
19057 exit (1);
19058 unsetenv("TZ");
19059 if (localtime (&now)->tm_hour != hour_unset)
19060 exit (1);
19061 exit (0);
19063 _ACEOF
19064 if ac_fn_c_try_run "$LINENO"; then :
19065 emacs_cv_localtime_cache=no
19066 else
19067 emacs_cv_localtime_cache=yes
19069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19070 conftest.$ac_objext conftest.beam conftest.$ac_ext
19073 else
19074 # If we lack tzset, report that localtime does not cache TZ,
19075 # since we can't invalidate the cache if we don't have tzset.
19076 emacs_cv_localtime_cache=no
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19080 $as_echo "$emacs_cv_localtime_cache" >&6; }
19081 if test $emacs_cv_localtime_cache = yes; then
19083 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19087 if test "x$HAVE_TIMEVAL" = xyes; then
19088 for ac_func in gettimeofday
19089 do :
19090 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19091 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_GETTIMEOFDAY 1
19094 _ACEOF
19097 done
19099 if test $ac_cv_func_gettimeofday = yes; then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19101 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19102 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19108 #ifdef TIME_WITH_SYS_TIME
19109 #include <sys/time.h>
19110 #include <time.h>
19111 #else
19112 #ifdef HAVE_SYS_TIME_H
19113 #include <sys/time.h>
19114 #else
19115 #include <time.h>
19116 #endif
19117 #endif
19119 main ()
19121 struct timeval time;
19122 gettimeofday (&time, 0);
19124 return 0;
19126 _ACEOF
19127 if ac_fn_c_try_compile "$LINENO"; then :
19128 emacs_cv_gettimeofday_two_arguments=yes
19129 else
19130 emacs_cv_gettimeofday_two_arguments=no
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19135 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19136 if test $emacs_cv_gettimeofday_two_arguments = no; then
19138 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19144 ok_so_far=yes
19145 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19146 if test "x$ac_cv_func_socket" = x""yes; then :
19148 else
19149 ok_so_far=no
19152 if test $ok_so_far = yes; then
19153 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19154 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
19156 else
19157 ok_so_far=no
19162 if test $ok_so_far = yes; then
19163 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19164 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
19166 else
19167 ok_so_far=no
19172 if test $ok_so_far = yes; then
19174 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19178 if test -f /usr/lpp/X11/bin/smt.exp; then
19180 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19185 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19186 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188 $as_echo "yes" >&6; }
19190 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19192 else
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19194 $as_echo "no" >&6; }
19197 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19198 if test "x$ac_cv_type_pid_t" = x""yes; then :
19200 else
19202 cat >>confdefs.h <<_ACEOF
19203 #define pid_t int
19204 _ACEOF
19208 for ac_header in vfork.h
19209 do :
19210 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19211 if test "x$ac_cv_header_vfork_h" = x""yes; then :
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_VFORK_H 1
19214 _ACEOF
19218 done
19220 for ac_func in fork vfork
19221 do :
19222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19224 eval as_val=\$$as_ac_var
19225 if test "x$as_val" = x""yes; then :
19226 cat >>confdefs.h <<_ACEOF
19227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19228 _ACEOF
19231 done
19233 if test "x$ac_cv_func_fork" = xyes; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19235 $as_echo_n "checking for working fork... " >&6; }
19236 if test "${ac_cv_func_fork_works+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19238 else
19239 if test "$cross_compiling" = yes; then :
19240 ac_cv_func_fork_works=cross
19241 else
19242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h. */
19244 $ac_includes_default
19246 main ()
19249 /* By Ruediger Kuhlmann. */
19250 return fork () < 0;
19253 return 0;
19255 _ACEOF
19256 if ac_fn_c_try_run "$LINENO"; then :
19257 ac_cv_func_fork_works=yes
19258 else
19259 ac_cv_func_fork_works=no
19261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19262 conftest.$ac_objext conftest.beam conftest.$ac_ext
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19267 $as_echo "$ac_cv_func_fork_works" >&6; }
19269 else
19270 ac_cv_func_fork_works=$ac_cv_func_fork
19272 if test "x$ac_cv_func_fork_works" = xcross; then
19273 case $host in
19274 *-*-amigaos* | *-*-msdosdjgpp*)
19275 # Override, as these systems have only a dummy fork() stub
19276 ac_cv_func_fork_works=no
19279 ac_cv_func_fork_works=yes
19281 esac
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19283 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19285 ac_cv_func_vfork_works=$ac_cv_func_vfork
19286 if test "x$ac_cv_func_vfork" = xyes; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19288 $as_echo_n "checking for working vfork... " >&6; }
19289 if test "${ac_cv_func_vfork_works+set}" = set; then :
19290 $as_echo_n "(cached) " >&6
19291 else
19292 if test "$cross_compiling" = yes; then :
19293 ac_cv_func_vfork_works=cross
19294 else
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297 /* Thanks to Paul Eggert for this test. */
19298 $ac_includes_default
19299 #include <sys/wait.h>
19300 #ifdef HAVE_VFORK_H
19301 # include <vfork.h>
19302 #endif
19303 /* On some sparc systems, changes by the child to local and incoming
19304 argument registers are propagated back to the parent. The compiler
19305 is told about this with #include <vfork.h>, but some compilers
19306 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19307 static variable whose address is put into a register that is
19308 clobbered by the vfork. */
19309 static void
19310 #ifdef __cplusplus
19311 sparc_address_test (int arg)
19312 # else
19313 sparc_address_test (arg) int arg;
19314 #endif
19316 static pid_t child;
19317 if (!child) {
19318 child = vfork ();
19319 if (child < 0) {
19320 perror ("vfork");
19321 _exit(2);
19323 if (!child) {
19324 arg = getpid();
19325 write(-1, "", 0);
19326 _exit (arg);
19332 main ()
19334 pid_t parent = getpid ();
19335 pid_t child;
19337 sparc_address_test (0);
19339 child = vfork ();
19341 if (child == 0) {
19342 /* Here is another test for sparc vfork register problems. This
19343 test uses lots of local variables, at least as many local
19344 variables as main has allocated so far including compiler
19345 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19346 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19347 reuse the register of parent for one of the local variables,
19348 since it will think that parent can't possibly be used any more
19349 in this routine. Assigning to the local variable will thus
19350 munge parent in the parent process. */
19351 pid_t
19352 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19353 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19354 /* Convince the compiler that p..p7 are live; otherwise, it might
19355 use the same hardware register for all 8 local variables. */
19356 if (p != p1 || p != p2 || p != p3 || p != p4
19357 || p != p5 || p != p6 || p != p7)
19358 _exit(1);
19360 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19361 from child file descriptors. If the child closes a descriptor
19362 before it execs or exits, this munges the parent's descriptor
19363 as well. Test for this by closing stdout in the child. */
19364 _exit(close(fileno(stdout)) != 0);
19365 } else {
19366 int status;
19367 struct stat st;
19369 while (wait(&status) != child)
19371 return (
19372 /* Was there some problem with vforking? */
19373 child < 0
19375 /* Did the child fail? (This shouldn't happen.) */
19376 || status
19378 /* Did the vfork/compiler bug occur? */
19379 || parent != getpid()
19381 /* Did the file descriptor bug occur? */
19382 || fstat(fileno(stdout), &st) != 0
19386 _ACEOF
19387 if ac_fn_c_try_run "$LINENO"; then :
19388 ac_cv_func_vfork_works=yes
19389 else
19390 ac_cv_func_vfork_works=no
19392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19393 conftest.$ac_objext conftest.beam conftest.$ac_ext
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19398 $as_echo "$ac_cv_func_vfork_works" >&6; }
19401 if test "x$ac_cv_func_fork_works" = xcross; then
19402 ac_cv_func_vfork_works=$ac_cv_func_vfork
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19404 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19407 if test "x$ac_cv_func_vfork_works" = xyes; then
19409 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19411 else
19413 $as_echo "#define vfork fork" >>confdefs.h
19416 if test "x$ac_cv_func_fork_works" = xyes; then
19418 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19424 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19425 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19426 $as_echo_n "(cached) " >&6
19427 else
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <langinfo.h>
19432 main ()
19434 char* cs = nl_langinfo(CODESET);
19436 return 0;
19438 _ACEOF
19439 if ac_fn_c_try_link "$LINENO"; then :
19440 emacs_cv_langinfo_codeset=yes
19441 else
19442 emacs_cv_langinfo_codeset=no
19444 rm -f core conftest.err conftest.$ac_objext \
19445 conftest$ac_exeext conftest.$ac_ext
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19449 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19450 if test $emacs_cv_langinfo_codeset = yes; then
19452 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19456 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19457 if test "x$ac_cv_type_size_t" = x""yes; then :
19459 cat >>confdefs.h <<_ACEOF
19460 #define HAVE_SIZE_T 1
19461 _ACEOF
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19468 $as_echo_n "checking for mbstate_t... " >&6; }
19469 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19470 $as_echo_n "(cached) " >&6
19471 else
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19474 $ac_includes_default
19475 # include <wchar.h>
19477 main ()
19479 mbstate_t x; return sizeof x;
19481 return 0;
19483 _ACEOF
19484 if ac_fn_c_try_compile "$LINENO"; then :
19485 ac_cv_type_mbstate_t=yes
19486 else
19487 ac_cv_type_mbstate_t=no
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19492 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19493 if test $ac_cv_type_mbstate_t = yes; then
19495 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19497 else
19499 $as_echo "#define mbstate_t int" >>confdefs.h
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19504 $as_echo_n "checking for C restricted array declarations... " >&6; }
19505 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 void fred (int x[__restrict]);
19512 main ()
19516 return 0;
19518 _ACEOF
19519 if ac_fn_c_try_compile "$LINENO"; then :
19520 emacs_cv_c_restrict_arr=yes
19521 else
19522 emacs_cv_c_restrict_arr=no
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19527 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19528 if test "$emacs_cv_c_restrict_arr" = yes; then
19530 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19536 # Set up the CFLAGS for real compilation, so we can substitute it.
19537 CFLAGS="$REAL_CFLAGS"
19538 CPPFLAGS="$REAL_CPPFLAGS"
19540 ## Hack to detect a buggy GCC version.
19541 if test "x$GCC" = xyes \
19542 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19543 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19544 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19545 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19548 version=$PACKAGE_VERSION
19550 ### Specify what sort of things we'll be editing into Makefile and config.h.
19551 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19554 ## Unused?
19575 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19576 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19577 ## end of LIBX_BASE, but nothing ever set it.
19582 ## Used in lwlib/Makefile.in.
19584 if test -n "${machfile}"; then
19585 M_FILE="\$(srcdir)/${machfile}"
19586 else
19587 M_FILE=
19589 S_FILE="\$(srcdir)/${opsysfile}"
19600 cat >>confdefs.h <<_ACEOF
19601 #define EMACS_CONFIGURATION "${canonical}"
19602 _ACEOF
19605 cat >>confdefs.h <<_ACEOF
19606 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19607 _ACEOF
19609 if test -n "$machfile"; then
19611 cat >>confdefs.h <<_ACEOF
19612 #define config_machfile "${machfile}"
19613 _ACEOF
19617 cat >>confdefs.h <<_ACEOF
19618 #define config_opsysfile "${opsysfile}"
19619 _ACEOF
19622 XMENU_OBJ=
19623 XOBJ=
19624 FONT_OBJ=
19625 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19627 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19629 XMENU_OBJ=xmenu.o
19630 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19631 FONT_OBJ=xfont.o
19632 if test "$HAVE_XFT" = "yes"; then
19633 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19634 elif test "$HAVE_FREETYPE" = "yes"; then
19635 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19643 WIDGET_OBJ=
19644 MOTIF_LIBW=
19645 if test "${USE_X_TOOLKIT}" != "none" ; then
19646 WIDGET_OBJ=widget.o
19648 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19650 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19652 $as_echo "#define USE_LUCID 1" >>confdefs.h
19654 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19656 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19658 MOTIF_LIBW=-lXm
19659 case "$opsys" in
19660 gnu-linux)
19661 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19662 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19665 unixware)
19666 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19667 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19668 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19671 aix4-2)
19672 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19673 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19675 esac
19676 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19681 TOOLKIT_LIBW=
19682 case "$USE_X_TOOLKIT" in
19683 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19684 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19685 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19686 esac
19689 if test "$USE_X_TOOLKIT" = "none"; then
19690 LIBXT_OTHER="\$(LIBXSM)"
19691 OLDXMENU_TARGET="really-oldXMenu"
19692 else
19693 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19694 OLDXMENU_TARGET="really-lwlib"
19698 ## The X Menu stuff is present in the X10 distribution, but missing
19699 ## from X11. If we have X10, just use the installed library;
19700 ## otherwise, use our own copy.
19701 if test "${HAVE_X11}" = "yes" ; then
19703 $as_echo "#define HAVE_X11 1" >>confdefs.h
19706 if test "$USE_X_TOOLKIT" = "none"; then
19707 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19708 else
19709 OLDXMENU="\${lwlibdir}/liblw.a"
19711 LIBXMENU="\$(OLDXMENU)"
19712 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19713 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19714 else
19715 ## For a syntactically valid Makefile; not actually used for anything.
19716 ## See comments in src/Makefile.in.
19717 OLDXMENU=nothing
19718 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19719 if test "${HAVE_X_WINDOWS}" = "yes"; then
19720 LIBXMENU="-lXMenu"
19721 else
19722 LIBXMENU=
19724 LIBX_OTHER=
19725 OLDXMENU_DEPS=
19728 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19729 OLDXMENU_TARGET=
19730 OLDXMENU=nothing
19731 LIBXMENU=
19732 OLDXMENU_DEPS=
19741 if test "${HAVE_MENUS}" = "yes" ; then
19743 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19747 if test "${GNU_MALLOC}" = "yes" ; then
19749 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19753 RALLOC_OBJ=
19754 if test "${REL_ALLOC}" = "yes" ; then
19756 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19759 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19763 if test "$opsys" = "cygwin"; then
19764 CYGWIN_OBJ="sheap.o"
19765 ## Cygwin differs because of its unexec().
19766 PRE_ALLOC_OBJ=
19767 POST_ALLOC_OBJ=lastfile.o
19768 else
19769 CYGWIN_OBJ=
19770 PRE_ALLOC_OBJ=lastfile.o
19771 POST_ALLOC_OBJ=
19778 case "$opsys" in
19779 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19781 darwin)
19782 ## The -headerpad option tells ld (see man page) to leave room at the
19783 ## end of the header for adding load commands. Needed for dumping.
19784 ## 0x690 is the total size of 30 segment load commands (at 56
19785 ## each); under Cocoa 31 commands are required.
19786 if test "$HAVE_NS" = "yes"; then
19787 libs_nsgui="-framework AppKit"
19788 headerpad_extra=6C8
19789 else
19790 libs_nsgui=
19791 headerpad_extra=690
19793 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19795 ## This is here because src/Makefile.in did some extra fiddling around
19796 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19797 ## #ifndef LD_SWITCH_SYSTEM
19798 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19799 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19800 ## not using gcc, darwin system not on an alpha (ie darwin, since
19801 ## darwin + alpha does not occur).
19802 ## Because this was done in src/Makefile.in, the resulting part of
19803 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19804 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19805 ## rather than LD_SWITCH_SYSTEM.
19806 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19807 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19810 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19811 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19812 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19813 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19814 ## had different values in configure (in ac_link) and src/Makefile.in.
19815 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19816 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19818 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19819 esac
19821 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19822 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19828 LD_FIRSTFLAG=
19829 ORDINARY_LINK=
19830 case "$opsys" in
19831 ## gnu: GNU needs its own crt0.
19832 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19834 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19835 ## library search parth, i.e. it won't search /usr/lib for libc and
19836 ## friends. Using -nostartfiles instead avoids this problem, and
19837 ## will also work on earlier NetBSD releases.
19838 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19840 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19841 ## MkLinux/LinuxPPC needs this.
19842 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19843 gnu-*)
19844 case "$machine" in
19845 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19846 esac
19848 esac
19851 if test "x$ORDINARY_LINK" = "xyes"; then
19853 LD_FIRSTFLAG=""
19855 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19858 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19859 ## freebsd, gnu-* not on macppc|ibms390x.
19860 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19862 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19863 ## places that are difficult to figure out at make time. Fortunately,
19864 ## these same versions allow you to pass arbitrary flags on to the
19865 ## linker, so there is no reason not to use it as a linker.
19867 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19868 ## searching for libraries in its internal directories, so we have to
19869 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19870 LD_FIRSTFLAG="-nostdlib"
19873 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19874 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19879 ## FIXME? The logic here is not precisely the same as that above.
19880 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19881 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19882 LIB_GCC=
19883 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19885 case "$opsys" in
19886 freebsd|netbsd|openbsd) LIB_GCC= ;;
19888 gnu-*)
19889 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19890 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19891 case $host_cpu in
19892 arm*)
19893 LIB_GCC="-lgcc_s"
19896 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19897 ## immediately undefine it again and redefine it to empty.
19898 ## Was the C_SWITCH_X_SITE part really necessary?
19899 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19900 LIB_GCC=
19902 esac
19905 ## Ask GCC where to find libgcc.a.
19906 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19907 esac
19911 TOOLTIP_SUPPORT=
19912 WINDOW_SUPPORT=
19913 ## If we're using X11/GNUstep, define some consequences.
19914 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19916 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19919 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19921 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19922 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19924 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19925 test "$HAVE_X_WINDOWS" = "yes" && \
19926 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19936 #### Report on what we decided to do.
19937 #### Report GTK as a toolkit, even if it doesn't use Xt.
19938 #### It makes printing result more understandable as using GTK sets
19939 #### toolkit_scroll_bars to yes by default.
19940 if test "${HAVE_GTK}" = "yes"; then
19941 USE_X_TOOLKIT=GTK
19944 and_machfile=
19945 if test -n "$machfile"; then
19946 and_machfile=" and \`${machfile}'"
19949 echo "
19950 Configured for \`${canonical}'.
19952 Where should the build process find the source code? ${srcdir}
19953 What operating system and machine description files should Emacs use?
19954 \`${opsysfile}'${and_machfile}
19955 What compiler should emacs be built with? ${CC} ${CFLAGS}
19956 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19957 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19958 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19959 What window system should Emacs use? ${window_system}
19960 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19962 if test -n "${x_includes}"; then
19963 echo " Where do we find X Windows header files? ${x_includes}"
19964 else
19965 echo " Where do we find X Windows header files? Standard dirs"
19967 if test -n "${x_libraries}"; then
19968 echo " Where do we find X Windows libraries? ${x_libraries}"
19969 else
19970 echo " Where do we find X Windows libraries? Standard dirs"
19973 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19974 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19975 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19976 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19977 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19978 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19979 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19980 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19982 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19983 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19984 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19985 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19986 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19987 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19989 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19990 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19991 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19992 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19994 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19995 echo
19997 if test $USE_XASSERTS = yes; then
19998 echo " Compiling with asserts turned on."
19999 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20002 echo
20004 if test "$HAVE_NS" = "yes"; then
20005 echo
20006 echo "You must run \"make install\" in order to test the built application.
20007 The installed application will go to nextstep/Emacs.app and can be
20008 run or moved from there."
20009 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20010 echo "The application will be fully self-contained."
20011 else
20012 echo "The lisp resources for the application will be installed under ${prefix}.
20013 You may need to run \"make install\" with sudo. The application will fail
20014 to run if these resources are not installed."
20016 echo
20020 # Remove any trailing slashes in these variables.
20021 test "${prefix}" != NONE &&
20022 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20023 test "${exec_prefix}" != NONE &&
20024 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20026 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"
20029 ac_config_commands="$ac_config_commands mkdirs"
20032 ac_config_commands="$ac_config_commands epaths"
20035 ac_config_commands="$ac_config_commands gdbinit"
20038 cat >confcache <<\_ACEOF
20039 # This file is a shell script that caches the results of configure
20040 # tests run on this system so they can be shared between configure
20041 # scripts and configure runs, see configure's option --config-cache.
20042 # It is not useful on other systems. If it contains results you don't
20043 # want to keep, you may remove or edit it.
20045 # config.status only pays attention to the cache file if you give it
20046 # the --recheck option to rerun configure.
20048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20050 # following values.
20052 _ACEOF
20054 # The following way of writing the cache mishandles newlines in values,
20055 # but we know of no workaround that is simple, portable, and efficient.
20056 # So, we kill variables containing newlines.
20057 # Ultrix sh set writes to stderr and can't be redirected directly,
20058 # and sets the high bit in the cache file unless we assign to the vars.
20060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20061 eval ac_val=\$$ac_var
20062 case $ac_val in #(
20063 *${as_nl}*)
20064 case $ac_var in #(
20065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20067 esac
20068 case $ac_var in #(
20069 _ | IFS | as_nl) ;; #(
20070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20071 *) { eval $ac_var=; unset $ac_var;} ;;
20072 esac ;;
20073 esac
20074 done
20076 (set) 2>&1 |
20077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20078 *${as_nl}ac_space=\ *)
20079 # `set' does not quote correctly, so add quotes: double-quote
20080 # substitution turns \\\\ into \\, and sed turns \\ into \.
20081 sed -n \
20082 "s/'/'\\\\''/g;
20083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20084 ;; #(
20086 # `set' quotes correctly as required by POSIX, so do not add quotes.
20087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20089 esac |
20090 sort
20092 sed '
20093 /^ac_cv_env_/b end
20094 t clear
20095 :clear
20096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20097 t end
20098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20099 :end' >>confcache
20100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20101 if test -w "$cache_file"; then
20102 test "x$cache_file" != "x/dev/null" &&
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20104 $as_echo "$as_me: updating cache $cache_file" >&6;}
20105 cat confcache >$cache_file
20106 else
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20111 rm -f confcache
20113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20114 # Let make expand exec_prefix.
20115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20117 DEFS=-DHAVE_CONFIG_H
20119 ac_libobjs=
20120 ac_ltlibobjs=
20121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20122 # 1. Remove the extension, and $U if already installed.
20123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20126 # will be set to the directory where LIBOBJS objects are built.
20127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20129 done
20130 LIBOBJS=$ac_libobjs
20132 LTLIBOBJS=$ac_ltlibobjs
20135 if test -n "$EXEEXT"; then
20136 am__EXEEXT_TRUE=
20137 am__EXEEXT_FALSE='#'
20138 else
20139 am__EXEEXT_TRUE='#'
20140 am__EXEEXT_FALSE=
20143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20144 as_fn_error "conditional \"AMDEP\" was never defined.
20145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20148 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20152 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20153 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20158 gl_libobjs=
20159 gl_ltlibobjs=
20160 if test -n "$gl_LIBOBJS"; then
20161 # Remove the extension.
20162 sed_drop_objext='s/\.o$//;s/\.obj$//'
20163 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20164 gl_libobjs="$gl_libobjs $i.$ac_objext"
20165 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20166 done
20168 gl_LIBOBJS=$gl_libobjs
20170 gl_LTLIBOBJS=$gl_ltlibobjs
20174 gltests_libobjs=
20175 gltests_ltlibobjs=
20176 if test -n "$gltests_LIBOBJS"; then
20177 # Remove the extension.
20178 sed_drop_objext='s/\.o$//;s/\.obj$//'
20179 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20180 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20181 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20182 done
20184 gltests_LIBOBJS=$gltests_libobjs
20186 gltests_LTLIBOBJS=$gltests_ltlibobjs
20190 : ${CONFIG_STATUS=./config.status}
20191 ac_write_fail=0
20192 ac_clean_files_save=$ac_clean_files
20193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20196 as_write_fail=0
20197 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20198 #! $SHELL
20199 # Generated by $as_me.
20200 # Run this file to recreate the current configuration.
20201 # Compiler output produced by configure, useful for debugging
20202 # configure, is in config.log if it exists.
20204 debug=false
20205 ac_cs_recheck=false
20206 ac_cs_silent=false
20208 SHELL=\${CONFIG_SHELL-$SHELL}
20209 export SHELL
20210 _ASEOF
20211 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20212 ## -------------------- ##
20213 ## M4sh Initialization. ##
20214 ## -------------------- ##
20216 # Be more Bourne compatible
20217 DUALCASE=1; export DUALCASE # for MKS sh
20218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20219 emulate sh
20220 NULLCMD=:
20221 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20222 # is contrary to our usage. Disable this feature.
20223 alias -g '${1+"$@"}'='"$@"'
20224 setopt NO_GLOB_SUBST
20225 else
20226 case `(set -o) 2>/dev/null` in #(
20227 *posix*) :
20228 set -o posix ;; #(
20229 *) :
20231 esac
20235 as_nl='
20237 export as_nl
20238 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20239 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20242 # Prefer a ksh shell builtin over an external printf program on Solaris,
20243 # but without wasting forks for bash or zsh.
20244 if test -z "$BASH_VERSION$ZSH_VERSION" \
20245 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20246 as_echo='print -r --'
20247 as_echo_n='print -rn --'
20248 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20249 as_echo='printf %s\n'
20250 as_echo_n='printf %s'
20251 else
20252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20254 as_echo_n='/usr/ucb/echo -n'
20255 else
20256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20257 as_echo_n_body='eval
20258 arg=$1;
20259 case $arg in #(
20260 *"$as_nl"*)
20261 expr "X$arg" : "X\\(.*\\)$as_nl";
20262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20263 esac;
20264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20266 export as_echo_n_body
20267 as_echo_n='sh -c $as_echo_n_body as_echo'
20269 export as_echo_body
20270 as_echo='sh -c $as_echo_body as_echo'
20273 # The user is always right.
20274 if test "${PATH_SEPARATOR+set}" != set; then
20275 PATH_SEPARATOR=:
20276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20278 PATH_SEPARATOR=';'
20283 # IFS
20284 # We need space, tab and new line, in precisely that order. Quoting is
20285 # there to prevent editors from complaining about space-tab.
20286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20287 # splitting by setting IFS to empty value.)
20288 IFS=" "" $as_nl"
20290 # Find who we are. Look in the path if we contain no directory separator.
20291 case $0 in #((
20292 *[\\/]* ) as_myself=$0 ;;
20293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20294 for as_dir in $PATH
20296 IFS=$as_save_IFS
20297 test -z "$as_dir" && as_dir=.
20298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20299 done
20300 IFS=$as_save_IFS
20303 esac
20304 # We did not find ourselves, most probably we were run as `sh COMMAND'
20305 # in which case we are not to be found in the path.
20306 if test "x$as_myself" = x; then
20307 as_myself=$0
20309 if test ! -f "$as_myself"; then
20310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20311 exit 1
20314 # Unset variables that we do not need and which cause bugs (e.g. in
20315 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20316 # suppresses any "Segmentation fault" message there. '((' could
20317 # trigger a bug in pdksh 5.2.14.
20318 for as_var in BASH_ENV ENV MAIL MAILPATH
20319 do eval test x\${$as_var+set} = xset \
20320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20321 done
20322 PS1='$ '
20323 PS2='> '
20324 PS4='+ '
20326 # NLS nuisances.
20327 LC_ALL=C
20328 export LC_ALL
20329 LANGUAGE=C
20330 export LANGUAGE
20332 # CDPATH.
20333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20336 # as_fn_error ERROR [LINENO LOG_FD]
20337 # ---------------------------------
20338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20340 # script with status $?, using 1 if that was 0.
20341 as_fn_error ()
20343 as_status=$?; test $as_status -eq 0 && as_status=1
20344 if test "$3"; then
20345 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20348 $as_echo "$as_me: error: $1" >&2
20349 as_fn_exit $as_status
20350 } # as_fn_error
20353 # as_fn_set_status STATUS
20354 # -----------------------
20355 # Set $? to STATUS, without forking.
20356 as_fn_set_status ()
20358 return $1
20359 } # as_fn_set_status
20361 # as_fn_exit STATUS
20362 # -----------------
20363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20364 as_fn_exit ()
20366 set +e
20367 as_fn_set_status $1
20368 exit $1
20369 } # as_fn_exit
20371 # as_fn_unset VAR
20372 # ---------------
20373 # Portably unset VAR.
20374 as_fn_unset ()
20376 { eval $1=; unset $1;}
20378 as_unset=as_fn_unset
20379 # as_fn_append VAR VALUE
20380 # ----------------------
20381 # Append the text in VALUE to the end of the definition contained in VAR. Take
20382 # advantage of any shell optimizations that allow amortized linear growth over
20383 # repeated appends, instead of the typical quadratic growth present in naive
20384 # implementations.
20385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20386 eval 'as_fn_append ()
20388 eval $1+=\$2
20390 else
20391 as_fn_append ()
20393 eval $1=\$$1\$2
20395 fi # as_fn_append
20397 # as_fn_arith ARG...
20398 # ------------------
20399 # Perform arithmetic evaluation on the ARGs, and store the result in the
20400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20401 # must be portable across $(()) and expr.
20402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20403 eval 'as_fn_arith ()
20405 as_val=$(( $* ))
20407 else
20408 as_fn_arith ()
20410 as_val=`expr "$@" || test $? -eq 1`
20412 fi # as_fn_arith
20415 if expr a : '\(a\)' >/dev/null 2>&1 &&
20416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20417 as_expr=expr
20418 else
20419 as_expr=false
20422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20423 as_basename=basename
20424 else
20425 as_basename=false
20428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20429 as_dirname=dirname
20430 else
20431 as_dirname=false
20434 as_me=`$as_basename -- "$0" ||
20435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20436 X"$0" : 'X\(//\)$' \| \
20437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20438 $as_echo X/"$0" |
20439 sed '/^.*\/\([^/][^/]*\)\/*$/{
20440 s//\1/
20443 /^X\/\(\/\/\)$/{
20444 s//\1/
20447 /^X\/\(\/\).*/{
20448 s//\1/
20451 s/.*/./; q'`
20453 # Avoid depending upon Character Ranges.
20454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20457 as_cr_digits='0123456789'
20458 as_cr_alnum=$as_cr_Letters$as_cr_digits
20460 ECHO_C= ECHO_N= ECHO_T=
20461 case `echo -n x` in #(((((
20462 -n*)
20463 case `echo 'xy\c'` in
20464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20465 xy) ECHO_C='\c';;
20466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20467 ECHO_T=' ';;
20468 esac;;
20470 ECHO_N='-n';;
20471 esac
20473 rm -f conf$$ conf$$.exe conf$$.file
20474 if test -d conf$$.dir; then
20475 rm -f conf$$.dir/conf$$.file
20476 else
20477 rm -f conf$$.dir
20478 mkdir conf$$.dir 2>/dev/null
20480 if (echo >conf$$.file) 2>/dev/null; then
20481 if ln -s conf$$.file conf$$ 2>/dev/null; then
20482 as_ln_s='ln -s'
20483 # ... but there are two gotchas:
20484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20486 # In both cases, we have to default to `cp -p'.
20487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20488 as_ln_s='cp -p'
20489 elif ln conf$$.file conf$$ 2>/dev/null; then
20490 as_ln_s=ln
20491 else
20492 as_ln_s='cp -p'
20494 else
20495 as_ln_s='cp -p'
20497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20498 rmdir conf$$.dir 2>/dev/null
20501 # as_fn_mkdir_p
20502 # -------------
20503 # Create "$as_dir" as a directory, including parents if necessary.
20504 as_fn_mkdir_p ()
20507 case $as_dir in #(
20508 -*) as_dir=./$as_dir;;
20509 esac
20510 test -d "$as_dir" || eval $as_mkdir_p || {
20511 as_dirs=
20512 while :; do
20513 case $as_dir in #(
20514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20515 *) as_qdir=$as_dir;;
20516 esac
20517 as_dirs="'$as_qdir' $as_dirs"
20518 as_dir=`$as_dirname -- "$as_dir" ||
20519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20520 X"$as_dir" : 'X\(//\)[^/]' \| \
20521 X"$as_dir" : 'X\(//\)$' \| \
20522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20523 $as_echo X"$as_dir" |
20524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20525 s//\1/
20528 /^X\(\/\/\)[^/].*/{
20529 s//\1/
20532 /^X\(\/\/\)$/{
20533 s//\1/
20536 /^X\(\/\).*/{
20537 s//\1/
20540 s/.*/./; q'`
20541 test -d "$as_dir" && break
20542 done
20543 test -z "$as_dirs" || eval "mkdir $as_dirs"
20544 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20547 } # as_fn_mkdir_p
20548 if mkdir -p . 2>/dev/null; then
20549 as_mkdir_p='mkdir -p "$as_dir"'
20550 else
20551 test -d ./-p && rmdir ./-p
20552 as_mkdir_p=false
20555 if test -x / >/dev/null 2>&1; then
20556 as_test_x='test -x'
20557 else
20558 if ls -dL / >/dev/null 2>&1; then
20559 as_ls_L_option=L
20560 else
20561 as_ls_L_option=
20563 as_test_x='
20564 eval sh -c '\''
20565 if test -d "$1"; then
20566 test -d "$1/.";
20567 else
20568 case $1 in #(
20569 -*)set "./$1";;
20570 esac;
20571 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20572 ???[sx]*):;;*)false;;esac;fi
20573 '\'' sh
20576 as_executable_p=$as_test_x
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20585 exec 6>&1
20586 ## ----------------------------------- ##
20587 ## Main body of $CONFIG_STATUS script. ##
20588 ## ----------------------------------- ##
20589 _ASEOF
20590 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593 # Save the log message, to keep $0 and so on meaningful, and to
20594 # report actual input values of CONFIG_FILES etc. instead of their
20595 # values after options handling.
20596 ac_log="
20597 This file was extended by emacs $as_me 24.0.50, which was
20598 generated by GNU Autoconf 2.65. Invocation command line was
20600 CONFIG_FILES = $CONFIG_FILES
20601 CONFIG_HEADERS = $CONFIG_HEADERS
20602 CONFIG_LINKS = $CONFIG_LINKS
20603 CONFIG_COMMANDS = $CONFIG_COMMANDS
20604 $ $0 $@
20606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20609 _ACEOF
20611 case $ac_config_files in *"
20612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20613 esac
20615 case $ac_config_headers in *"
20616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20617 esac
20620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20621 # Files that config.status was made for.
20622 config_files="$ac_config_files"
20623 config_headers="$ac_config_headers"
20624 config_commands="$ac_config_commands"
20626 _ACEOF
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20629 ac_cs_usage="\
20630 \`$as_me' instantiates files and other configuration actions
20631 from templates according to the current configuration. Unless the files
20632 and actions are specified as TAGs, all are instantiated by default.
20634 Usage: $0 [OPTION]... [TAG]...
20636 -h, --help print this help, then exit
20637 -V, --version print version number and configuration settings, then exit
20638 --config print configuration, then exit
20639 -q, --quiet, --silent
20640 do not print progress messages
20641 -d, --debug don't remove temporary files
20642 --recheck update $as_me by reconfiguring in the same conditions
20643 --file=FILE[:TEMPLATE]
20644 instantiate the configuration file FILE
20645 --header=FILE[:TEMPLATE]
20646 instantiate the configuration header FILE
20648 Configuration files:
20649 $config_files
20651 Configuration headers:
20652 $config_headers
20654 Configuration commands:
20655 $config_commands
20657 Report bugs to the package provider."
20659 _ACEOF
20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20662 ac_cs_version="\\
20663 emacs config.status 24.0.50
20664 configured by $0, generated by GNU Autoconf 2.65,
20665 with options \\"\$ac_cs_config\\"
20667 Copyright (C) 2009 Free Software Foundation, Inc.
20668 This config.status script is free software; the Free Software Foundation
20669 gives unlimited permission to copy, distribute and modify it."
20671 ac_pwd='$ac_pwd'
20672 srcdir='$srcdir'
20673 INSTALL='$INSTALL'
20674 MKDIR_P='$MKDIR_P'
20675 AWK='$AWK'
20676 test -n "\$AWK" || AWK=awk
20677 _ACEOF
20679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20680 # The default lists apply if the user does not specify any file.
20681 ac_need_defaults=:
20682 while test $# != 0
20684 case $1 in
20685 --*=*)
20686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20688 ac_shift=:
20691 ac_option=$1
20692 ac_optarg=$2
20693 ac_shift=shift
20695 esac
20697 case $ac_option in
20698 # Handling of the options.
20699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20700 ac_cs_recheck=: ;;
20701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20702 $as_echo "$ac_cs_version"; exit ;;
20703 --config | --confi | --conf | --con | --co | --c )
20704 $as_echo "$ac_cs_config"; exit ;;
20705 --debug | --debu | --deb | --de | --d | -d )
20706 debug=: ;;
20707 --file | --fil | --fi | --f )
20708 $ac_shift
20709 case $ac_optarg in
20710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20711 esac
20712 as_fn_append CONFIG_FILES " '$ac_optarg'"
20713 ac_need_defaults=false;;
20714 --header | --heade | --head | --hea )
20715 $ac_shift
20716 case $ac_optarg in
20717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20718 esac
20719 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20720 ac_need_defaults=false;;
20721 --he | --h)
20722 # Conflict between --help and --header
20723 as_fn_error "ambiguous option: \`$1'
20724 Try \`$0 --help' for more information.";;
20725 --help | --hel | -h )
20726 $as_echo "$ac_cs_usage"; exit ;;
20727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20729 ac_cs_silent=: ;;
20731 # This is an error.
20732 -*) as_fn_error "unrecognized option: \`$1'
20733 Try \`$0 --help' for more information." ;;
20735 *) as_fn_append ac_config_targets " $1"
20736 ac_need_defaults=false ;;
20738 esac
20739 shift
20740 done
20742 ac_configure_extra_args=
20744 if $ac_cs_silent; then
20745 exec 6>/dev/null
20746 ac_configure_extra_args="$ac_configure_extra_args --silent"
20749 _ACEOF
20750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751 if \$ac_cs_recheck; then
20752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20753 shift
20754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20755 CONFIG_SHELL='$SHELL'
20756 export CONFIG_SHELL
20757 exec "\$@"
20760 _ACEOF
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762 exec 5>>config.log
20764 echo
20765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20766 ## Running $as_me. ##
20767 _ASBOX
20768 $as_echo "$ac_log"
20769 } >&5
20771 _ACEOF
20772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20774 # INIT-COMMANDS
20776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20777 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20779 _ACEOF
20781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783 # Handling of arguments.
20784 for ac_config_target in $ac_config_targets
20786 case $ac_config_target in
20787 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20788 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20790 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20791 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20792 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20793 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20794 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20795 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20796 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20797 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20798 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20799 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20800 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20801 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20802 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20803 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20804 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20806 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20807 esac
20808 done
20811 # If the user did not use the arguments to specify the items to instantiate,
20812 # then the envvar interface is used. Set only those that are not.
20813 # We use the long form for the default assignment because of an extremely
20814 # bizarre bug on SunOS 4.1.3.
20815 if $ac_need_defaults; then
20816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20821 # Have a temporary directory for convenience. Make it in the build tree
20822 # simply because there is no reason against having it here, and in addition,
20823 # creating and moving files from /tmp can sometimes cause problems.
20824 # Hook for its removal unless debugging.
20825 # Note that there is a small window in which the directory will not be cleaned:
20826 # after its creation but before its name has been assigned to `$tmp'.
20827 $debug ||
20829 tmp=
20830 trap 'exit_status=$?
20831 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20833 trap 'as_fn_exit 1' 1 2 13 15
20835 # Create a (secure) tmp directory for tmp files.
20838 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20839 test -n "$tmp" && test -d "$tmp"
20840 } ||
20842 tmp=./conf$$-$RANDOM
20843 (umask 077 && mkdir "$tmp")
20844 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20846 # Set up the scripts for CONFIG_FILES section.
20847 # No need to generate them if there are no CONFIG_FILES.
20848 # This happens for instance with `./config.status config.h'.
20849 if test -n "$CONFIG_FILES"; then
20851 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20852 ac_cs_awk_getline=:
20853 ac_cs_awk_pipe_init=
20854 ac_cs_awk_read_file='
20855 while ((getline aline < (F[key])) > 0)
20856 print(aline)
20857 close(F[key])'
20858 ac_cs_awk_pipe_fini=
20859 else
20860 ac_cs_awk_getline=false
20861 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20862 ac_cs_awk_read_file='
20863 print "|#_!!_#|"
20864 print "cat " F[key] " &&"
20865 '$ac_cs_awk_pipe_init
20866 # The final `:' finishes the AND list.
20867 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20869 ac_cr=`echo X | tr X '\015'`
20870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20871 # But we know of no other shell where ac_cr would be empty at this
20872 # point, so we can use a bashism as a fallback.
20873 if test "x$ac_cr" = x; then
20874 eval ac_cr=\$\'\\r\'
20876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20878 ac_cs_awk_cr='\r'
20879 else
20880 ac_cs_awk_cr=$ac_cr
20883 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20884 _ACEOF
20886 # Create commands to substitute file output variables.
20888 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20889 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20890 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20891 echo "_ACAWK" &&
20892 echo "_ACEOF"
20893 } >conf$$files.sh &&
20894 . ./conf$$files.sh ||
20895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20896 rm -f conf$$files.sh
20899 echo "cat >conf$$subs.awk <<_ACEOF" &&
20900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20901 echo "_ACEOF"
20902 } >conf$$subs.sh ||
20903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20905 ac_delim='%!_!# '
20906 for ac_last_try in false false false false false :; do
20907 . ./conf$$subs.sh ||
20908 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20911 if test $ac_delim_n = $ac_delim_num; then
20912 break
20913 elif $ac_last_try; then
20914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20915 else
20916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20918 done
20919 rm -f conf$$subs.sh
20921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20922 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20923 _ACEOF
20924 sed -n '
20926 s/^/S["/; s/!.*/"]=/
20929 s/^[^!]*!//
20930 :repl
20931 t repl
20932 s/'"$ac_delim"'$//
20933 t delim
20936 s/\(.\{148\}\)..*/\1/
20937 t more1
20938 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20941 b repl
20942 :more1
20943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20946 s/.\{148\}//
20947 t nl
20948 :delim
20950 s/\(.\{148\}\)..*/\1/
20951 t more2
20952 s/["\\]/\\&/g; s/^/"/; s/$/"/
20955 :more2
20956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20959 s/.\{148\}//
20960 t delim
20961 ' <conf$$subs.awk | sed '
20962 /^[^""]/{
20964 s/\n//
20966 ' >>$CONFIG_STATUS || ac_write_fail=1
20967 rm -f conf$$subs.awk
20968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20969 _ACAWK
20970 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20971 for (key in S) S_is_set[key] = 1
20972 FS = "\a"
20973 \$ac_cs_awk_pipe_init
20976 line = $ 0
20977 nfields = split(line, field, "@")
20978 substed = 0
20979 len = length(field[1])
20980 for (i = 2; i < nfields; i++) {
20981 key = field[i]
20982 keylen = length(key)
20983 if (S_is_set[key]) {
20984 value = S[key]
20985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20986 len += length(value) + length(field[++i])
20987 substed = 1
20988 } else
20989 len += 1 + keylen
20991 if (nfields == 3 && !substed) {
20992 key = field[2]
20993 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20994 \$ac_cs_awk_read_file
20995 next
20998 print line
21000 \$ac_cs_awk_pipe_fini
21001 _ACAWK
21002 _ACEOF
21003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21006 else
21008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21009 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21010 _ACEOF
21012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21014 # trailing colons and then remove the whole line if VPATH becomes empty
21015 # (actually we leave an empty line to preserve line numbers).
21016 if test "x$srcdir" = x.; then
21017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21018 s/:*\$(srcdir):*/:/
21019 s/:*\${srcdir}:*/:/
21020 s/:*@srcdir@:*/:/
21021 s/^\([^=]*=[ ]*\):*/\1/
21022 s/:*$//
21023 s/^[^=]*=[ ]*$//
21027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21028 fi # test -n "$CONFIG_FILES"
21030 # Set up the scripts for CONFIG_HEADERS section.
21031 # No need to generate them if there are no CONFIG_HEADERS.
21032 # This happens for instance with `./config.status Makefile'.
21033 if test -n "$CONFIG_HEADERS"; then
21034 cat >"$tmp/defines.awk" <<\_ACAWK ||
21035 BEGIN {
21036 _ACEOF
21038 # Transform confdefs.h into an awk script `defines.awk', embedded as
21039 # here-document in config.status, that substitutes the proper values into
21040 # config.h.in to produce config.h.
21042 # Create a delimiter string that does not exist in confdefs.h, to ease
21043 # handling of long lines.
21044 ac_delim='%!_!# '
21045 for ac_last_try in false false :; do
21046 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21047 if test -z "$ac_t"; then
21048 break
21049 elif $ac_last_try; then
21050 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21051 else
21052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21054 done
21056 # For the awk script, D is an array of macro values keyed by name,
21057 # likewise P contains macro parameters if any. Preserve backslash
21058 # newline sequences.
21060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21061 sed -n '
21062 s/.\{148\}/&'"$ac_delim"'/g
21063 t rset
21064 :rset
21065 s/^[ ]*#[ ]*define[ ][ ]*/ /
21066 t def
21068 :def
21069 s/\\$//
21070 t bsnl
21071 s/["\\]/\\&/g
21072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21073 D["\1"]=" \3"/p
21074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21076 :bsnl
21077 s/["\\]/\\&/g
21078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21079 D["\1"]=" \3\\\\\\n"\\/p
21080 t cont
21081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21082 t cont
21084 :cont
21086 s/.\{148\}/&'"$ac_delim"'/g
21087 t clear
21088 :clear
21089 s/\\$//
21090 t bsnlc
21091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21093 :bsnlc
21094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21095 b cont
21096 ' <confdefs.h | sed '
21097 s/'"$ac_delim"'/"\\\
21098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21101 for (key in D) D_is_set[key] = 1
21102 FS = "\a"
21104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21105 line = \$ 0
21106 split(line, arg, " ")
21107 if (arg[1] == "#") {
21108 defundef = arg[2]
21109 mac1 = arg[3]
21110 } else {
21111 defundef = substr(arg[1], 2)
21112 mac1 = arg[2]
21114 split(mac1, mac2, "(") #)
21115 macro = mac2[1]
21116 prefix = substr(line, 1, index(line, defundef) - 1)
21117 if (D_is_set[macro]) {
21118 # Preserve the white space surrounding the "#".
21119 print prefix "define", macro P[macro] D[macro]
21120 next
21121 } else {
21122 # Replace #undef with comments. This is necessary, for example,
21123 # in the case of _POSIX_SOURCE, which is predefined and required
21124 # on some systems where configure will not decide to define it.
21125 if (defundef == "undef") {
21126 print "/*", prefix defundef, macro, "*/"
21127 next
21131 { print }
21132 _ACAWK
21133 _ACEOF
21134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21135 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21136 fi # test -n "$CONFIG_HEADERS"
21139 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21140 shift
21141 for ac_tag
21143 case $ac_tag in
21144 :[FHLC]) ac_mode=$ac_tag; continue;;
21145 esac
21146 case $ac_mode$ac_tag in
21147 :[FHL]*:*);;
21148 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21149 :[FH]-) ac_tag=-:-;;
21150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21151 esac
21152 ac_save_IFS=$IFS
21153 IFS=:
21154 set x $ac_tag
21155 IFS=$ac_save_IFS
21156 shift
21157 ac_file=$1
21158 shift
21160 case $ac_mode in
21161 :L) ac_source=$1;;
21162 :[FH])
21163 ac_file_inputs=
21164 for ac_f
21166 case $ac_f in
21167 -) ac_f="$tmp/stdin";;
21168 *) # Look for the file first in the build tree, then in the source tree
21169 # (if the path is not absolute). The absolute path cannot be DOS-style,
21170 # because $ac_f cannot contain `:'.
21171 test -f "$ac_f" ||
21172 case $ac_f in
21173 [\\/$]*) false;;
21174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21175 esac ||
21176 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21177 esac
21178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21179 as_fn_append ac_file_inputs " '$ac_f'"
21180 done
21182 # Let's still pretend it is `configure' which instantiates (i.e., don't
21183 # use $as_me), people would be surprised to read:
21184 # /* config.h. Generated by config.status. */
21185 configure_input='Generated from '`
21186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21187 `' by configure.'
21188 if test x"$ac_file" != x-; then
21189 configure_input="$ac_file. $configure_input"
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21191 $as_echo "$as_me: creating $ac_file" >&6;}
21193 # Neutralize special characters interpreted by sed in replacement strings.
21194 case $configure_input in #(
21195 *\&* | *\|* | *\\* )
21196 ac_sed_conf_input=`$as_echo "$configure_input" |
21197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21198 *) ac_sed_conf_input=$configure_input;;
21199 esac
21201 case $ac_tag in
21202 *:-:* | *:-) cat >"$tmp/stdin" \
21203 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21204 esac
21206 esac
21208 ac_dir=`$as_dirname -- "$ac_file" ||
21209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210 X"$ac_file" : 'X\(//\)[^/]' \| \
21211 X"$ac_file" : 'X\(//\)$' \| \
21212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21213 $as_echo X"$ac_file" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21215 s//\1/
21218 /^X\(\/\/\)[^/].*/{
21219 s//\1/
21222 /^X\(\/\/\)$/{
21223 s//\1/
21226 /^X\(\/\).*/{
21227 s//\1/
21230 s/.*/./; q'`
21231 as_dir="$ac_dir"; as_fn_mkdir_p
21232 ac_builddir=.
21234 case "$ac_dir" in
21235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21238 # A ".." for each directory in $ac_dir_suffix.
21239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21240 case $ac_top_builddir_sub in
21241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21243 esac ;;
21244 esac
21245 ac_abs_top_builddir=$ac_pwd
21246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21247 # for backward compatibility:
21248 ac_top_builddir=$ac_top_build_prefix
21250 case $srcdir in
21251 .) # We are building in place.
21252 ac_srcdir=.
21253 ac_top_srcdir=$ac_top_builddir_sub
21254 ac_abs_top_srcdir=$ac_pwd ;;
21255 [\\/]* | ?:[\\/]* ) # Absolute name.
21256 ac_srcdir=$srcdir$ac_dir_suffix;
21257 ac_top_srcdir=$srcdir
21258 ac_abs_top_srcdir=$srcdir ;;
21259 *) # Relative name.
21260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21261 ac_top_srcdir=$ac_top_build_prefix$srcdir
21262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21263 esac
21264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21267 case $ac_mode in
21270 # CONFIG_FILE
21273 case $INSTALL in
21274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21276 esac
21277 ac_MKDIR_P=$MKDIR_P
21278 case $MKDIR_P in
21279 [\\/$]* | ?:[\\/]* ) ;;
21280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21281 esac
21282 _ACEOF
21284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21285 # If the template does not know about datarootdir, expand it.
21286 # FIXME: This hack should be removed a few years after 2.60.
21287 ac_datarootdir_hack=; ac_datarootdir_seen=
21288 ac_sed_dataroot='
21289 /datarootdir/ {
21293 /@datadir@/p
21294 /@docdir@/p
21295 /@infodir@/p
21296 /@localedir@/p
21297 /@mandir@/p'
21298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21299 *datarootdir*) ac_datarootdir_seen=yes;;
21300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21303 _ACEOF
21304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21305 ac_datarootdir_hack='
21306 s&@datadir@&$datadir&g
21307 s&@docdir@&$docdir&g
21308 s&@infodir@&$infodir&g
21309 s&@localedir@&$localedir&g
21310 s&@mandir@&$mandir&g
21311 s&\\\${datarootdir}&$datarootdir&g' ;;
21312 esac
21313 _ACEOF
21315 # Neutralize VPATH when `$srcdir' = `.'.
21316 # Shell code in configure.ac might set extrasub.
21317 # FIXME: do we really want to maintain this feature?
21318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319 ac_sed_extra="$ac_vpsub
21320 $extrasub
21321 _ACEOF
21322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21325 s|@configure_input@|$ac_sed_conf_input|;t t
21326 s&@top_builddir@&$ac_top_builddir_sub&;t t
21327 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21328 s&@srcdir@&$ac_srcdir&;t t
21329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21330 s&@top_srcdir@&$ac_top_srcdir&;t t
21331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21332 s&@builddir@&$ac_builddir&;t t
21333 s&@abs_builddir@&$ac_abs_builddir&;t t
21334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21335 s&@INSTALL@&$ac_INSTALL&;t t
21336 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21337 $ac_datarootdir_hack
21339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21340 if $ac_cs_awk_getline; then
21341 $AWK -f "$tmp/subs.awk"
21342 else
21343 $AWK -f "$tmp/subs.awk" | $SHELL
21344 fi >$tmp/out \
21345 || as_fn_error "could not create $ac_file" "$LINENO" 5
21347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21351 which seems to be undefined. Please make sure it is defined." >&5
21352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21353 which seems to be undefined. Please make sure it is defined." >&2;}
21355 rm -f "$tmp/stdin"
21356 case $ac_file in
21357 -) cat "$tmp/out" && rm -f "$tmp/out";;
21358 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21359 esac \
21360 || as_fn_error "could not create $ac_file" "$LINENO" 5
21364 # CONFIG_HEADER
21366 if test x"$ac_file" != x-; then
21368 $as_echo "/* $configure_input */" \
21369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21370 } >"$tmp/config.h" \
21371 || as_fn_error "could not create $ac_file" "$LINENO" 5
21372 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21375 else
21376 rm -f "$ac_file"
21377 mv "$tmp/config.h" "$ac_file" \
21378 || as_fn_error "could not create $ac_file" "$LINENO" 5
21380 else
21381 $as_echo "/* $configure_input */" \
21382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21383 || as_fn_error "could not create -" "$LINENO" 5
21385 # Compute "$ac_file"'s index in $config_headers.
21386 _am_arg="$ac_file"
21387 _am_stamp_count=1
21388 for _am_header in $config_headers :; do
21389 case $_am_header in
21390 $_am_arg | $_am_arg:* )
21391 break ;;
21393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21394 esac
21395 done
21396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21398 X"$_am_arg" : 'X\(//\)[^/]' \| \
21399 X"$_am_arg" : 'X\(//\)$' \| \
21400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21401 $as_echo X"$_am_arg" |
21402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21403 s//\1/
21406 /^X\(\/\/\)[^/].*/{
21407 s//\1/
21410 /^X\(\/\/\)$/{
21411 s//\1/
21414 /^X\(\/\).*/{
21415 s//\1/
21418 s/.*/./; q'`/stamp-h$_am_stamp_count
21421 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21422 $as_echo "$as_me: executing $ac_file commands" >&6;}
21424 esac
21427 case $ac_file$ac_mode in
21428 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21429 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21430 # are listed without --file. Let's play safe and only enable the eval
21431 # if we detect the quoting.
21432 case $CONFIG_FILES in
21433 *\'*) eval set x "$CONFIG_FILES" ;;
21434 *) set x $CONFIG_FILES ;;
21435 esac
21436 shift
21437 for mf
21439 # Strip MF so we end up with the name of the file.
21440 mf=`echo "$mf" | sed -e 's/:.*$//'`
21441 # Check whether this is an Automake generated Makefile or not.
21442 # We used to match only the files named `Makefile.in', but
21443 # some people rename them; so instead we look at the file content.
21444 # Grep'ing the first line is not enough: some people post-process
21445 # each Makefile.in and add a new line on top of each file to say so.
21446 # Grep'ing the whole file is not good either: AIX grep has a line
21447 # limit of 2048, but all sed's we know have understand at least 4000.
21448 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21449 dirpart=`$as_dirname -- "$mf" ||
21450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21451 X"$mf" : 'X\(//\)[^/]' \| \
21452 X"$mf" : 'X\(//\)$' \| \
21453 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21454 $as_echo X"$mf" |
21455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21456 s//\1/
21459 /^X\(\/\/\)[^/].*/{
21460 s//\1/
21463 /^X\(\/\/\)$/{
21464 s//\1/
21467 /^X\(\/\).*/{
21468 s//\1/
21471 s/.*/./; q'`
21472 else
21473 continue
21475 # Extract the definition of DEPDIR, am__include, and am__quote
21476 # from the Makefile without running `make'.
21477 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21478 test -z "$DEPDIR" && continue
21479 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21480 test -z "am__include" && continue
21481 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21482 # When using ansi2knr, U may be empty or an underscore; expand it
21483 U=`sed -n 's/^U = //p' < "$mf"`
21484 # Find all dependency output files, they are included files with
21485 # $(DEPDIR) in their names. We invoke sed twice because it is the
21486 # simplest approach to changing $(DEPDIR) to its actual value in the
21487 # expansion.
21488 for file in `sed -n "
21489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21491 # Make sure the directory exists.
21492 test -f "$dirpart/$file" && continue
21493 fdir=`$as_dirname -- "$file" ||
21494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495 X"$file" : 'X\(//\)[^/]' \| \
21496 X"$file" : 'X\(//\)$' \| \
21497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21498 $as_echo X"$file" |
21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21500 s//\1/
21503 /^X\(\/\/\)[^/].*/{
21504 s//\1/
21507 /^X\(\/\/\)$/{
21508 s//\1/
21511 /^X\(\/\).*/{
21512 s//\1/
21515 s/.*/./; q'`
21516 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21517 # echo "creating $dirpart/$file"
21518 echo '# dummy' > "$dirpart/$file"
21519 done
21520 done
21523 "mkdirs":C)
21524 for dir in etc lisp ; do
21525 test -d ${dir} || mkdir ${dir}
21526 done
21528 "epaths":C)
21529 echo creating src/epaths.h
21530 ${MAKE-make} epaths-force
21532 "gdbinit":C)
21533 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21534 echo creating src/.gdbinit
21535 echo source $srcdir/src/.gdbinit > src/.gdbinit
21539 esac
21540 done # for ac_tag
21543 as_fn_exit 0
21544 _ACEOF
21545 ac_clean_files=$ac_clean_files_save
21547 test $ac_write_fail = 0 ||
21548 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21551 # configure is writing to config.log, and then calls config.status.
21552 # config.status does its own redirection, appending to config.log.
21553 # Unfortunately, on DOS this fails, as config.log is still kept open
21554 # by configure, so config.status won't be able to write to it; its
21555 # output is simply discarded. So we exec the FD to /dev/null,
21556 # effectively closing config.log, so it can be properly (re)opened and
21557 # appended to by config.status. When coming back to configure, we
21558 # need to make the FD available again.
21559 if test "$no_create" != yes; then
21560 ac_cs_success=:
21561 ac_config_status_args=
21562 test "$silent" = yes &&
21563 ac_config_status_args="$ac_config_status_args --quiet"
21564 exec 5>/dev/null
21565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21566 exec 5>>config.log
21567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21568 # would make configure fail if this is the last instruction.
21569 $ac_cs_success || as_fn_exit $?
21571 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21573 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}