* doc/misc/Makefile.in: Use $< in rules.
[emacs.git] / configure
blob144d6dff5c308c3d56e9be27f3b992e0b3990f5d
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_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_LDFLAGS
753 PROFILING_CFLAGS
754 MAINT
755 GZIP_INFO
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='deps_frag
795 ns_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_pop
799 with_kerberos
800 with_kerberos5
801 with_hesiod
802 with_mmdf
803 with_mail_unlink
804 with_mailhost
805 with_sound
806 with_sync_input
807 with_x_toolkit
808 with_xpm
809 with_jpeg
810 with_tiff
811 with_gif
812 with_png
813 with_rsvg
814 with_xml2
815 with_imagemagick
816 with_xft
817 with_libotf
818 with_m17n_flt
819 with_toolkit_scroll_bars
820 with_xaw3d
821 with_xim
822 with_ns
823 with_gpm
824 with_dbus
825 with_gconf
826 with_selinux
827 with_gnutls
828 with_makeinfo
829 with_compress_info
830 with_pkg_config_prog
831 with_crt_dir
832 with_gnustep_conf
833 enable_ns_self_contained
834 enable_asserts
835 enable_maintainer_mode
836 enable_locallisppath
837 enable_checking
838 enable_use_lisp_union_type
839 enable_profiling
840 enable_autodepend
841 enable_largefile
842 with_x
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 X features:
1458 --x-includes=DIR X include files are in DIR
1459 --x-libraries=DIR X library files are in DIR
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1470 esac
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search for lisp files
1485 specific to this site
1486 --enable-checking[=LIST]
1487 enable expensive run-time checks. With LIST, enable
1488 only specific categories of checks. Categories are:
1489 all,yes,no. Flags are: stringbytes, stringoverrun,
1490 stringfreelist, xmallocoverrun, conslist
1491 --enable-use-lisp-union-type
1492 use a union for the Lisp_Object data type. This is
1493 only useful for development for catching certain
1494 types of bugs.
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled if GNU Make and
1499 Gcc is found
1500 --disable-largefile omit support for large files
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --without-pop don't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1516 lucid or athena, motif, no)
1517 --without-xpm don't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf for OpenType font support
1527 --without-m17n-flt don't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1533 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1534 console
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo for building manuals
1540 --without-compress-info don't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to the package provider.
1565 _ACEOF
1566 ac_status=$?
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 emacs configure 24.0.50
1628 generated by GNU Autoconf 2.65
1630 Copyright (C) 2009 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634 exit
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_cpp
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790 else
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806 else
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_run
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR
1923 # ------------------------------------
1924 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1925 ac_fn_c_check_decl ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1929 $as_echo_n "checking whether $2 is declared... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 #ifndef $2
1940 (void) $2;
1941 #endif
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$3=yes"
1949 else
1950 eval "$3=no"
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_decl
1961 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1962 # ----------------------------------------------
1963 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1964 ac_fn_c_check_header_preproc ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_cpp "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f conftest.err conftest.$ac_ext
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_preproc
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 main ()
2008 static $2 ac_aggr;
2009 if (ac_aggr.$3)
2010 return 0;
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static $2 ac_aggr;
2025 if (sizeof ac_aggr.$3)
2026 return 0;
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033 else
2034 eval "$4=no"
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_member
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2062 #define $2 innocuous_$2
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $2 (); below.
2066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067 <limits.h> exists even on freestanding compilers. */
2069 #ifdef __STDC__
2070 # include <limits.h>
2071 #else
2072 # include <assert.h>
2073 #endif
2075 #undef $2
2077 /* Override any GCC internal prototype to avoid an error.
2078 Use char because int might match the return type of a GCC
2079 builtin and then its argument prototype would still apply. */
2080 #ifdef __cplusplus
2081 extern "C"
2082 #endif
2083 char $2 ();
2084 /* The GNU C library defines this for functions which it implements
2085 to always fail with ENOSYS. Some functions are actually named
2086 something starting with __ and the normal name is an alias. */
2087 #if defined __stub_$2 || defined __stub___$2
2088 choke me
2089 #endif
2092 main ()
2094 return $2 ();
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_link "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext \
2105 conftest$ac_exeext conftest.$ac_ext
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_func
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 if (sizeof ($2))
2134 return 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 if (sizeof (($2)))
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2154 else
2155 eval "$3=yes"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_type
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by emacs $as_me 24.0.50, which was
2172 generated by GNU Autoconf 2.65. Invocation command line was
2174 $ $0 $@
2176 _ACEOF
2177 exec 5>>config.log
2179 cat <<_ASUNAME
2180 ## --------- ##
2181 ## Platform. ##
2182 ## --------- ##
2184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201 _ASUNAME
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2209 done
2210 IFS=$as_save_IFS
2212 } >&5
2214 cat >&5 <<_ACEOF
2217 ## ----------- ##
2218 ## Core tests. ##
2219 ## ----------- ##
2221 _ACEOF
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2229 ac_configure_args=
2230 ac_configure_args0=
2231 ac_configure_args1=
2232 ac_must_keep_next=false
2233 for ac_pass in 1 2
2235 for ac_arg
2237 case $ac_arg in
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2241 continue ;;
2242 *\'*)
2243 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 esac
2245 case $ac_pass in
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2251 else
2252 case $ac_arg in
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259 esac
2261 -* ) ac_must_keep_next=true ;;
2262 esac
2264 as_fn_append ac_configure_args " '$ac_arg'"
2266 esac
2267 done
2268 done
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2280 echo
2282 cat <<\_ASBOX
2283 ## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##
2286 _ASBOX
2287 echo
2288 # The following way of writing the cache mishandles newlines in values,
2290 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in #(
2293 *${as_nl}*)
2294 case $ac_var in #(
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 esac
2298 case $ac_var in #(
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2302 esac ;;
2303 esac
2304 done
2305 (set) 2>&1 |
2306 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2308 sed -n \
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 ;; #(
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 esac |
2316 sort
2318 echo
2320 cat <<\_ASBOX
2321 ## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##
2324 _ASBOX
2325 echo
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2336 if test -n "$ac_subst_files"; then
2337 cat <<\_ASBOX
2338 ## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##
2341 _ASBOX
2342 echo
2343 for ac_var in $ac_subst_files
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2354 if test -s confdefs.h; then
2355 cat <<\_ASBOX
2356 ## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##
2359 _ASBOX
2360 echo
2361 cat confdefs.h
2362 echo
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414 ac_site_file1=$CONFIG_SITE
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2418 else
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file"
2431 done
2433 if test -r "$cache_file"; then
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2439 case $cache_file in
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2442 esac
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2447 >$cache_file
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 as_fn_append ac_header_list " sys/time.h"
2454 as_fn_append ac_func_list " alarm"
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2504 done
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 lispdir='${datadir}/emacs/${version}/lisp'
2539 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2540 '${datadir}/emacs/site-lisp'
2541 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2542 etcdir='${datadir}/emacs/${version}/etc'
2543 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2544 docdir='${datadir}/emacs/${version}/etc'
2545 gamedir='${localstatedir}/games/emacs'
2547 gameuser=games
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2554 withval=$with_pop;
2555 else
2556 with_pop=yes
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2568 else
2569 with_kerberos=no
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2581 else
2582 with_kerberos5=no
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2587 with_kerberos=yes
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2600 else
2601 with_hesiod=no
2604 if test "$with_hesiod" != no; then
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2613 withval=$with_mmdf;
2614 else
2615 with_mmdf=no
2618 if test "$with_mmdf" != no; then
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2628 else
2629 with_mail_unlink=no
2632 if test "$with_mail_unlink" != no; then
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2644 _ACEOF
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2653 else
2654 with_sound=yes
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2662 else
2663 with_sync_input=yes
2666 if test "$with_sync_input" = yes; then
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2677 n | no ) val=no ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2682 gtk3 ) val=gtk3 ;;
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2685 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2686 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2688 esac
2689 with_x_toolkit=$val
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2697 withval=$with_xpm;
2698 else
2699 with_xpm=yes
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2705 withval=$with_jpeg;
2706 else
2707 with_jpeg=yes
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2713 withval=$with_tiff;
2714 else
2715 with_tiff=yes
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2721 withval=$with_gif;
2722 else
2723 with_gif=yes
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2729 withval=$with_png;
2730 else
2731 with_png=yes
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2737 withval=$with_rsvg;
2738 else
2739 with_rsvg=yes
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2745 withval=$with_xml2;
2746 else
2747 with_xml2=yes
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2754 else
2755 with_imagemagick=yes
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2762 withval=$with_xft;
2763 else
2764 with_xft=yes
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2771 else
2772 with_libotf=yes
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2779 else
2780 with_m17n_flt=yes
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2788 else
2789 with_toolkit_scroll_bars=yes
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2796 else
2797 with_xaw3d=yes
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2803 withval=$with_xim;
2804 else
2805 with_xim=yes
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2811 withval=$with_ns;
2812 else
2813 with_ns=no
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2820 withval=$with_gpm;
2821 else
2822 with_gpm=yes
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2828 withval=$with_dbus;
2829 else
2830 with_dbus=yes
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2837 else
2838 with_gconf=yes
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2845 else
2846 with_selinux=yes
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2853 else
2854 with_gnutls=yes
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2864 else
2865 with_makeinfo=yes
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2875 else
2876 with_compress_info=yes
2879 if test $with_compress_info = yes; then
2880 GZIP_INFO=yes
2881 else
2882 GZIP_INFO=
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2898 CRT_DIR=
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2905 CRT_DIR="${with_crt_dir}"
2908 # Check whether --with-gnustep-conf was given.
2909 if test "${with_gnustep_conf+set}" = set; then :
2910 withval=$with_gnustep_conf;
2913 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2914 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2915 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2916 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2918 # Check whether --enable-ns-self-contained was given.
2919 if test "${enable_ns_self_contained+set}" = set; then :
2920 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2921 else
2922 EN_NS_SELF_CONTAINED=yes
2926 # Check whether --enable-asserts was given.
2927 if test "${enable_asserts+set}" = set; then :
2928 enableval=$enable_asserts; USE_XASSERTS=$enableval
2929 else
2930 USE_XASSERTS=no
2934 # Check whether --enable-maintainer-mode was given.
2935 if test "${enable_maintainer_mode+set}" = set; then :
2936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2937 else
2938 USE_MAINTAINER_MODE=no
2941 if test $USE_MAINTAINER_MODE = yes; then
2942 MAINT=
2943 else
2944 MAINT=#
2948 # Check whether --enable-locallisppath was given.
2949 if test "${enable_locallisppath+set}" = set; then :
2950 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2951 locallisppath=
2952 elif test "${enableval}" != "yes"; then
2953 locallisppath=${enableval}
2958 # Check whether --enable-checking was given.
2959 if test "${enable_checking+set}" = set; then :
2960 enableval=$enable_checking; ac_checking_flags="${enableval}"
2963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2964 for check in $ac_checking_flags
2966 case $check in
2967 # these set all the flags to specific states
2968 yes) ac_enable_checking=1 ;;
2969 no) ac_enable_checking= ;
2970 ac_gc_check_stringbytes= ;
2971 ac_gc_check_string_overrun= ;
2972 ac_gc_check_string_free_list= ;
2973 ac_xmalloc_overrun= ;
2974 ac_gc_check_cons_list= ;;
2975 all) ac_enable_checking=1 ;
2976 ac_gc_check_stringbytes=1 ;
2977 ac_gc_check_string_overrun=1 ;
2978 ac_gc_check_string_free_list=1 ;
2979 ac_xmalloc_overrun=1 ;
2980 ac_gc_check_cons_list=1 ;;
2981 # these enable particular checks
2982 stringbytes) ac_gc_check_stringbytes=1 ;;
2983 stringoverrun) ac_gc_check_string_overrun=1 ;;
2984 stringfreelist) ac_gc_check_string_free_list=1 ;;
2985 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2986 conslist) ac_gc_check_cons_list=1 ;;
2987 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2988 esac
2989 done
2990 IFS="$ac_save_IFS"
2992 if test x$ac_enable_checking != x ; then
2994 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2997 if test x$ac_gc_check_stringbytes != x ; then
2999 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3002 if test x$ac_gc_check_stringoverrun != x ; then
3004 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3007 if test x$ac_gc_check_string_free_list != x ; then
3009 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3012 if test x$ac_xmalloc_overrun != x ; then
3014 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3017 if test x$ac_gc_check_cons_list != x ; then
3019 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3023 # Check whether --enable-use-lisp-union-type was given.
3024 if test "${enable_use_lisp_union_type+set}" = set; then :
3025 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3027 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3034 # Check whether --enable-profiling was given.
3035 if test "${enable_profiling+set}" = set; then :
3036 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3039 if test x$ac_enable_profiling != x ; then
3040 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3041 PROFILING_LDFLAGS="-pg"
3042 else
3043 PROFILING_CFLAGS=
3044 PROFILING_LDFLAGS=
3049 # Check whether --enable-autodepend was given.
3050 if test "${enable_autodepend+set}" = set; then :
3051 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3052 else
3053 ac_enable_autodepend=yes
3057 #### Make srcdir absolute, if it isn't already. It's important to
3058 #### avoid running the path through pwd unnecessarily, since pwd can
3059 #### give you automounter prefixes, which can go away. We do all this
3060 #### so Emacs can find its files when run uninstalled.
3061 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3062 unset CDPATH
3063 case "${srcdir}" in
3064 /* ) ;;
3066 ## We may be able to use the $PWD environment variable to make this
3067 ## absolute. But sometimes PWD is inaccurate.
3068 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3069 ## but that tested only for a well-formed and valid PWD,
3070 ## it did not object when PWD was well-formed and valid but just wrong.
3071 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3072 then
3073 srcdir="$PWD"
3074 else
3075 srcdir="`(cd ${srcdir}; pwd)`"
3078 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3079 esac
3081 #### Check if the source directory already has a configured system in it.
3082 if test `pwd` != `(cd ${srcdir} && pwd)` \
3083 && test -f "${srcdir}/src/config.h" ; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3085 as a build directory right now; it has been configured in its own
3086 right. To configure in another directory as well, you MUST
3087 use GNU make. If you do not have GNU make, then you must
3088 now do \`make distclean' in ${srcdir},
3089 and then run $0 again." >&5
3090 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3091 as a build directory right now; it has been configured in its own
3092 right. To configure in another directory as well, you MUST
3093 use GNU make. If you do not have GNU make, then you must
3094 now do \`make distclean' in ${srcdir},
3095 and then run $0 again." >&2;}
3098 #### Given the configuration name, set machfile and opsysfile to the
3099 #### names of the m/*.h and s/*.h files we should use.
3101 ### Canonicalize the configuration name.
3103 ac_aux_dir=
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3107 ac_aux_dir=$ac_dir
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3109 break 2
3111 done
3112 done
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3128 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 ac_build_alias=$build_alias
3136 test "x$ac_build_alias" = x &&
3137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x &&
3139 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3147 *-*-*) ;;
3148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3149 esac
3150 build=$ac_cv_build
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_build
3153 shift
3154 build_cpu=$1
3155 build_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 build_os=$*
3160 IFS=$ac_save_IFS
3161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test "x$host_alias" = x; then
3170 ac_cv_host=$ac_cv_build
3171 else
3172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3179 case $ac_cv_host in
3180 *-*-*) ;;
3181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3182 esac
3183 host=$ac_cv_host
3184 ac_save_IFS=$IFS; IFS='-'
3185 set x $ac_cv_host
3186 shift
3187 host_cpu=$1
3188 host_vendor=$2
3189 shift; shift
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3192 host_os=$*
3193 IFS=$ac_save_IFS
3194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3197 canonical=$host
3198 configuration=${host_alias-${build_alias-$host}}
3202 ### If you add support for a new configuration, add code to this
3203 ### switch statement to recognize your configuration name and select
3204 ### the appropriate operating system and machine description files.
3206 ### You would hope that you could choose an m/*.h file pretty much
3207 ### based on the machine portion of the configuration name, and an s/*.h
3208 ### file based on the operating system portion. However, it turns out
3209 ### that each m/*.h file is pretty manufacturer-specific - for
3210 ### example mips.h is MIPS
3211 ### So we basically have to have a special case for each
3212 ### configuration name.
3214 ### As far as handling version numbers on operating systems is
3215 ### concerned, make sure things will fail in a fixable way. If
3216 ### /etc/MACHINES doesn't say anything about version numbers, be
3217 ### prepared to handle anything reasonably. If version numbers
3218 ### matter, be sure /etc/MACHINES says something about it.
3220 machine='' opsys='' unported=no
3221 case "${canonical}" in
3223 ## FreeBSD ports
3224 *-*-freebsd* )
3225 opsys=freebsd
3226 case "${canonical}" in
3227 alpha*) machine=alpha ;;
3228 amd64-*|x86_64-*) machine=amdx86-64 ;;
3229 arm*) machine=arm ;;
3230 ia64-*) machine=ia64 ;;
3231 i[3456]86-*) machine=intel386 ;;
3232 powerpc-*) machine=macppc ;;
3233 sparc-*) machine=sparc ;;
3234 sparc64-*) machine=sparc ;;
3235 esac
3238 ## FreeBSD kernel + glibc based userland
3239 *-*-kfreebsd*gnu* )
3240 opsys=gnu-kfreebsd
3241 case "${canonical}" in
3242 alpha*) machine=alpha ;;
3243 amd64-*|x86_64-*) machine=amdx86-64 ;;
3244 ia64-*) machine=ia64 ;;
3245 i[3456]86-*) machine=intel386 ;;
3246 powerpc-*) machine=macppc ;;
3247 sparc-*) machine=sparc ;;
3248 sparc64-*) machine=sparc ;;
3249 esac
3252 ## NetBSD ports
3253 *-*-netbsd* )
3254 opsys=netbsd
3255 case "${canonical}" in
3256 alpha*) machine=alpha ;;
3257 x86_64-*) machine=amdx86-64 ;;
3258 arm-*) machine=arm ;;
3259 hppa-*) machine=hp800 ;;
3260 i[3456]86-*) machine=intel386 ;;
3261 m68k-*) machine=m68k ;;
3262 powerpc-*) machine=macppc ;;
3263 mips-*) machine=mips ;;
3264 mipse[bl]-*) machine=mips ;;
3265 sparc*-) machine=sparc ;;
3266 vax-*) machine=vax ;;
3267 esac
3270 ## OpenBSD ports
3271 *-*-openbsd* )
3272 opsys=openbsd
3273 case "${canonical}" in
3274 alpha*) machine=alpha ;;
3275 x86_64-*) machine=amdx86-64 ;;
3276 arm-*) machine=arm ;;
3277 hppa-*) machine=hp800 ;;
3278 i386-*) machine=intel386 ;;
3279 powerpc-*) machine=macppc ;;
3280 sparc*) machine=sparc ;;
3281 vax-*) machine=vax ;;
3282 esac
3285 alpha*-*-linux-gnu* )
3286 machine=alpha opsys=gnu-linux
3289 arm*-*-linux-gnu* )
3290 machine=arm opsys=gnu-linux
3293 ## Apple Darwin / Mac OS X
3294 *-apple-darwin* )
3295 case "${canonical}" in
3296 i[3456]86-* ) machine=intel386 ;;
3297 powerpc-* ) machine=macppc ;;
3298 x86_64-* ) machine=amdx86-64 ;;
3299 * ) unported=yes ;;
3300 esac
3301 opsys=darwin
3302 # Define CPP as follows to make autoconf work correctly.
3303 CPP="${CC-cc} -E -no-cpp-precomp"
3304 # Use fink packages if available.
3305 if test -d /sw/include && test -d /sw/lib; then
3306 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3307 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3308 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3312 ## HP 9000 series 700 and 800, running HP/UX
3313 hppa*-hp-hpux10.2* )
3314 machine=hp800 opsys=hpux10-20
3316 hppa*-hp-hpux1[1-9]* )
3317 machine=hp800 opsys=hpux11
3318 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3321 hppa*-*-linux-gnu* )
3322 machine=hp800 opsys=gnu-linux
3325 ## IBM machines
3326 s390-*-linux-gnu* )
3327 machine=ibms390 opsys=gnu-linux
3329 s390x-*-linux-gnu* )
3330 machine=ibms390x opsys=gnu-linux
3332 rs6000-ibm-aix4.[23]* )
3333 machine=ibmrs6000 opsys=aix4-2
3335 powerpc-ibm-aix4.[23]* )
3336 machine=ibmrs6000 opsys=aix4-2
3338 rs6000-ibm-aix[56]* )
3339 machine=ibmrs6000 opsys=aix4-2
3341 powerpc-ibm-aix[56]* )
3342 machine=ibmrs6000 opsys=aix4-2
3345 ## Macintosh PowerPC
3346 powerpc*-*-linux-gnu* )
3347 machine=macppc opsys=gnu-linux
3350 ## Silicon Graphics machines
3351 ## Iris 4D
3352 mips-sgi-irix6.5 )
3353 machine=iris4d opsys=irix6-5
3354 # Without defining _LANGUAGE_C, things get masked out in the headers
3355 # so that, for instance, grepping for `free' in stdlib.h fails and
3356 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3357 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3358 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3361 ## Suns
3362 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3363 machine=sparc opsys=gnu-linux
3366 *-sun-solaris* \
3367 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3368 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3369 case "${canonical}" in
3370 i[3456]86-*-* ) machine=intel386 ;;
3371 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3372 sparc* ) machine=sparc ;;
3373 * ) unported=yes ;;
3374 esac
3375 case "${canonical}" in
3376 *-sunos5.6* | *-solaris2.6* )
3377 opsys=sol2-6
3378 NON_GNU_CPP=/usr/ccs/lib/cpp
3379 RANLIB="ar -ts"
3381 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3382 opsys=sol2-6
3383 emacs_check_sunpro_c=yes
3384 NON_GNU_CPP=/usr/ccs/lib/cpp
3386 *-sunos5* | *-solaris* )
3387 opsys=sol2-10
3388 emacs_check_sunpro_c=yes
3389 NON_GNU_CPP=/usr/ccs/lib/cpp
3391 esac
3392 ## Watch out for a compiler that we know will not work.
3393 case "${canonical}" in
3394 *-solaris* | *-sunos5* )
3395 if [ "x$CC" = x/usr/ucb/cc ]; then
3396 ## /usr/ucb/cc doesn't work;
3397 ## we should find some other compiler that does work.
3398 unset CC
3401 *) ;;
3402 esac
3405 ## IA-64
3406 ia64*-*-linux* )
3407 machine=ia64 opsys=gnu-linux
3410 ## Intel 386 machines where we don't care about the manufacturer.
3411 i[3456]86-*-* )
3412 machine=intel386
3413 case "${canonical}" in
3414 *-cygwin ) opsys=cygwin ;;
3415 *-darwin* ) opsys=darwin
3416 CPP="${CC-cc} -E -no-cpp-precomp"
3418 *-linux-gnu* ) opsys=gnu-linux ;;
3419 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3420 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3421 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3422 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3423 esac
3426 ## m68k Linux-based GNU system
3427 m68k-*-linux-gnu* )
3428 machine=m68k opsys=gnu-linux
3431 ## Mips Linux-based GNU system
3432 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3433 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3434 machine=mips opsys=gnu-linux
3437 ## AMD x86-64 Linux-based GNU system
3438 x86_64-*-linux-gnu* )
3439 machine=amdx86-64 opsys=gnu-linux
3442 ## Tensilica Xtensa Linux-based GNU system
3443 xtensa*-*-linux-gnu* )
3444 machine=xtensa opsys=gnu-linux
3447 ## SuperH Linux-based GNU system
3448 sh[34]*-*-linux-gnu* )
3449 machine=sh3 opsys=gnu-linux
3453 unported=yes
3455 esac
3457 ### If the code above didn't choose an operating system, just choose
3458 ### an operating system based on the configuration name. You really
3459 ### only want to use this when you have no idea what the right
3460 ### operating system is; if you know what operating systems a machine
3461 ### runs, it's cleaner to make it explicit in the case statement
3462 ### above.
3463 if test x"${opsys}" = x; then
3464 case "${canonical}" in
3465 *-gnu* ) opsys=gnu ;;
3467 unported=yes
3469 esac
3474 if test $unported = yes; then
3475 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3476 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3479 machfile="m/${machine}.h"
3480 opsysfile="s/${opsys}.h"
3483 #### Choose a compiler.
3484 test -n "$CC" && cc_specified=yes
3486 # Save the value of CFLAGS that the user specified.
3487 SPECIFIED_CFLAGS="$CFLAGS"
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3582 else
3583 CC="$ac_cv_prog_CC"
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3725 done
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3769 done
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 main ()
3825 return 0;
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 $as_echo_n "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893 else
3894 ac_file=''
3896 if test -z "$ac_file"; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 $as_echo "yes" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912 $as_echo_n "checking for C compiler default output file name... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914 $as_echo "$ac_file" >&6; }
3915 ac_exeext=$ac_cv_exeext
3917 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3918 ac_clean_files=$ac_clean_files_save
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920 $as_echo_n "checking for suffix of executables... " >&6; }
3921 if { { ac_try="$ac_link"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_link") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3933 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3934 # work properly (i.e., refer to `conftest.exe'), while it won't with
3935 # `rm'.
3936 for ac_file in conftest.exe conftest conftest.*; do
3937 test -f "$ac_file" || continue
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3941 break;;
3942 * ) break;;
3943 esac
3944 done
3945 else
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot compute suffix of executables: cannot compile and link
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 rm -f conftest conftest$ac_cv_exeext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3953 $as_echo "$ac_cv_exeext" >&6; }
3955 rm -f conftest.$ac_ext
3956 EXEEXT=$ac_cv_exeext
3957 ac_exeext=$EXEEXT
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <stdio.h>
3962 main ()
3964 FILE *f = fopen ("conftest.out", "w");
3965 return ferror (f) || fclose (f) != 0;
3968 return 0;
3970 _ACEOF
3971 ac_clean_files="$ac_clean_files conftest.out"
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 if test "$cross_compiling" != yes; then
3977 { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 if { ac_try='./conftest$ac_cv_exeext'
3989 { { case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_try") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; }; then
3999 cross_compiling=no
4000 else
4001 if test "$cross_compiling" = maybe; then
4002 cross_compiling=yes
4003 else
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error "cannot run C compiled programs.
4007 If you meant to cross compile, use \`--host'.
4008 See \`config.log' for more details." "$LINENO" 5; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4013 $as_echo "$cross_compiling" >&6; }
4015 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4016 ac_clean_files=$ac_clean_files_save
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4018 $as_echo_n "checking for suffix of object files... " >&6; }
4019 if test "${ac_cv_objext+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; then :
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4050 break;;
4051 esac
4052 done
4053 else
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error "cannot compute suffix of object files: cannot compile
4060 See \`config.log' for more details." "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 $as_echo "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4067 ac_objext=$OBJEXT
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4070 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4079 #ifndef __GNUC__
4080 choke me
4081 #endif
4084 return 0;
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_compiler_gnu=yes
4089 else
4090 ac_compiler_gnu=no
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098 if test $ac_compiler_gnu = yes; then
4099 GCC=yes
4100 else
4101 GCC=
4103 ac_test_CFLAGS=${CFLAGS+set}
4104 ac_save_CFLAGS=$CFLAGS
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4107 if test "${ac_cv_prog_cc_g+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 ac_save_c_werror_flag=$ac_c_werror_flag
4111 ac_c_werror_flag=yes
4112 ac_cv_prog_cc_g=no
4113 CFLAGS="-g"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_g=yes
4127 else
4128 CFLAGS=""
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4142 else
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4144 CFLAGS="-g"
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_prog_cc_g=yes
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_c_werror_flag=$ac_save_c_werror_flag
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167 $as_echo "$ac_cv_prog_cc_g" >&6; }
4168 if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4172 CFLAGS="-g -O2"
4173 else
4174 CFLAGS="-g"
4176 else
4177 if test "$GCC" = yes; then
4178 CFLAGS="-O2"
4179 else
4180 CFLAGS=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4185 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_cv_prog_cc_c89=no
4189 ac_save_CC=$CC
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <stdarg.h>
4193 #include <stdio.h>
4194 #include <sys/types.h>
4195 #include <sys/stat.h>
4196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4197 struct buf { int x; };
4198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199 static char *e (p, i)
4200 char **p;
4201 int i;
4203 return p[i];
4205 static char *f (char * (*g) (char **, int), char **p, ...)
4207 char *s;
4208 va_list v;
4209 va_start (v,p);
4210 s = g (p, va_arg (v,int));
4211 va_end (v);
4212 return s;
4215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4216 function prototypes and stuff, but not '\xHH' hex character constants.
4217 These don't provoke an error unfortunately, instead are silently treated
4218 as 'x'. The following induces an error, until -std is added to get
4219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4220 array size at least. It's necessary to write '\x00'==0 to get something
4221 that's true only with -std. */
4222 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225 inside strings and character constants. */
4226 #define FOO(x) 'x'
4227 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229 int test (int i, double x);
4230 struct s1 {int (*f) (int a);};
4231 struct s2 {int (*f) (double a);};
4232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4233 int argc;
4234 char **argv;
4236 main ()
4238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 return 0;
4242 _ACEOF
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 CC="$ac_save_CC $ac_arg"
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4252 done
4253 rm -f conftest.$ac_ext
4254 CC=$ac_save_CC
4257 # AC_CACHE_VAL
4258 case "x$ac_cv_prog_cc_c89" in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 $as_echo "none needed" >&6; } ;;
4262 xno)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 $as_echo "unsupported" >&6; } ;;
4266 CC="$CC $ac_cv_prog_cc_c89"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4269 esac
4270 if test "x$ac_cv_prog_cc_c89" != xno; then :
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 # On Suns, sometimes $CPP names a directory.
4282 if test -n "$CPP" && test -d "$CPP"; then
4283 CPP=
4286 ## If not using gcc, and on Solaris, and no CPP specified, see if
4287 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4288 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4289 test x"$CPP" = x; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4291 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4293 if test "${emacs_cv_sunpro_c+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4300 main ()
4302 #ifndef __SUNPRO_C
4303 fail;
4304 #endif
4307 return 0;
4309 _ACEOF
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 emacs_cv_sunpro_c=yes
4312 else
4313 emacs_cv_sunpro_c=no
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4320 $as_echo "$emacs_cv_sunpro_c" >&6; }
4322 if test x"$emacs_cv_sunpro_c" = xyes; then
4323 NON_GNU_CPP="$CC -E -Xs"
4327 #### Some systems specify a CPP to use unless we are using GCC.
4328 #### Now that we know whether we are using GCC, we can decide whether
4329 #### to use that one.
4330 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4331 then
4332 CPP="$NON_GNU_CPP"
4335 #### Some systems specify a CC to use unless we are using GCC.
4336 #### Now that we know whether we are using GCC, we can decide whether
4337 #### to use that one.
4338 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4339 test x$cc_specified != xyes
4340 then
4341 CC="$NON_GNU_CC"
4344 if test x$GCC = xyes; then
4345 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4346 else
4347 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4359 CPP=
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368 ac_preproc_ok=false
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 #ifdef __STDC__
4380 # include <limits.h>
4381 #else
4382 # include <assert.h>
4383 #endif
4384 Syntax error
4385 _ACEOF
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4388 else
4389 # Broken: fails on valid input.
4390 continue
4392 rm -f conftest.err conftest.$ac_ext
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4402 continue
4403 else
4404 # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4408 rm -f conftest.err conftest.$ac_ext
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then :
4414 break
4417 done
4418 ac_cv_prog_CPP=$CPP
4421 CPP=$ac_cv_prog_CPP
4422 else
4423 ac_cv_prog_CPP=$CPP
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #ifdef __STDC__
4439 # include <limits.h>
4440 #else
4441 # include <assert.h>
4442 #endif
4443 Syntax error
4444 _ACEOF
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4447 else
4448 # Broken: fails on valid input.
4449 continue
4451 rm -f conftest.err conftest.$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: success on invalid input.
4461 continue
4462 else
4463 # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4467 rm -f conftest.err conftest.$ac_ext
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4474 else
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details." "$LINENO" 5; }
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if test "${ac_cv_path_GREP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 ac_count=0
4512 $as_echo_n 0123456789 >"conftest.in"
4513 while :
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4529 done
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4533 $ac_path_GREP_found && break 3
4534 done
4535 done
4536 done
4537 IFS=$as_save_IFS
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541 else
4542 ac_cv_path_GREP=$GREP
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4599 $ac_path_EGREP_found && break 3
4600 done
4601 done
4602 done
4603 IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607 else
4608 ac_cv_path_EGREP=$EGREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if test "${ac_cv_header_stdc+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <stdlib.h>
4626 #include <stdarg.h>
4627 #include <string.h>
4628 #include <float.h>
4631 main ()
4635 return 0;
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_header_stdc=yes
4640 else
4641 ac_cv_header_stdc=no
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <string.h>
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev/null 2>&1; then :
4655 else
4656 ac_cv_header_stdc=no
4658 rm -f conftest*
4662 if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <stdlib.h>
4668 _ACEOF
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev/null 2>&1; then :
4672 else
4673 ac_cv_header_stdc=no
4675 rm -f conftest*
4679 if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <ctype.h>
4687 #include <stdlib.h>
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 #else
4692 # define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697 #endif
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 main ()
4703 int i;
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4707 return 2;
4708 return 0;
4710 _ACEOF
4711 if ac_fn_c_try_run "$LINENO"; then :
4713 else
4714 ac_cv_header_stdc=no
4716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4717 conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4733 do :
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 eval as_val=\$$as_ac_Header
4738 if test "x$as_val" = x""yes; then :
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 _ACEOF
4745 done
4749 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4751 MINIX=yes
4752 else
4753 MINIX=
4757 if test "$MINIX" = yes; then
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__=yes
4790 else
4791 ac_cv_safe_to_define___extensions__=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4810 ### Use -Wno-pointer-sign if the compiler supports it
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4812 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4813 SAVE_CFLAGS="$CFLAGS"
4814 CFLAGS="$CFLAGS -Wno-pointer-sign"
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 main ()
4823 return 0;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 has_option=yes
4828 else
4829 has_option=no
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 if test $has_option = yes; then
4833 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4836 $as_echo "$has_option" >&6; }
4837 CFLAGS="$SAVE_CFLAGS"
4838 unset has_option
4839 unset SAVE_CFLAGS
4841 ### Use -Wdeclaration-after-statement if the compiler supports it
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4843 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4844 SAVE_CFLAGS="$CFLAGS"
4845 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 has_option=yes
4859 else
4860 has_option=no
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 if test $has_option = yes; then
4864 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4867 $as_echo "$has_option" >&6; }
4868 CFLAGS="$SAVE_CFLAGS"
4869 unset has_option
4870 unset SAVE_CFLAGS
4872 ### Use -Wold-style-definition if the compiler supports it
4873 # This can be removed when conversion to standard C is finished.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4875 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -Wold-style-definition"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 has_option=yes
4891 else
4892 has_option=no
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $has_option = yes; then
4896 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4899 $as_echo "$has_option" >&6; }
4900 CFLAGS="$SAVE_CFLAGS"
4901 unset has_option
4902 unset SAVE_CFLAGS
4904 ### Use -Wimplicit-function-declaration if the compiler supports it
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4906 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4907 SAVE_CFLAGS="$CFLAGS"
4908 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4913 main ()
4917 return 0;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 has_option=yes
4922 else
4923 has_option=no
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $has_option = yes; then
4927 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4930 $as_echo "$has_option" >&6; }
4931 CFLAGS="$SAVE_CFLAGS"
4932 unset has_option
4933 unset SAVE_CFLAGS
4938 #### Some other nice autoconf tests.
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4947 # On Suns, sometimes $CPP names a directory.
4948 if test -n "$CPP" && test -d "$CPP"; then
4949 CPP=
4951 if test -z "$CPP"; then
4952 if test "${ac_cv_prog_CPP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 # Double quotes because CPP needs to be expanded
4956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974 Syntax error
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4978 else
4979 # Broken: fails on valid input.
4980 continue
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: success on invalid input.
4992 continue
4993 else
4994 # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4998 rm -f conftest.err conftest.$ac_ext
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then :
5004 break
5007 done
5008 ac_cv_prog_CPP=$CPP
5011 CPP=$ac_cv_prog_CPP
5012 else
5013 ac_cv_prog_CPP=$CPP
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5016 $as_echo "$CPP" >&6; }
5017 ac_preproc_ok=false
5018 for ac_c_preproc_warn_flag in '' yes
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if ac_fn_c_try_cpp "$LINENO"; then :
5037 else
5038 # Broken: fails on valid input.
5039 continue
5041 rm -f conftest.err conftest.$ac_ext
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: success on invalid input.
5051 continue
5052 else
5053 # Passes both tests.
5054 ac_preproc_ok=:
5055 break
5057 rm -f conftest.err conftest.$ac_ext
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then :
5064 else
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details." "$LINENO" 5; }
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5083 # AIX /bin/install
5084 # AmigaOS /C/install, which installs bootblocks on floppy discs
5085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5088 # OS/2's system install, which has a completely different semantic
5089 # ./install, which can be erroneously created by make from ./install.sh.
5090 # Reject install programs that cannot install multiple files.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5093 if test -z "$INSTALL"; then
5094 if test "${ac_cv_path_install+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 # Account for people who put trailing slashes in PATH elements.
5103 case $as_dir/ in #((
5104 ./ | .// | /[cC]/* | \
5105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5106 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5107 /usr/ucb/* ) ;;
5109 # OSF1 and SCO ODT 3.0 have their own names for install.
5110 # Don't use installbsd from OSF since it installs stuff as root
5111 # by default.
5112 for ac_prog in ginstall scoinst install; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5115 if test $ac_prog = install &&
5116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5119 elif test $ac_prog = install &&
5120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5121 # program-specific install script used by HP pwplus--don't use.
5123 else
5124 rm -rf conftest.one conftest.two conftest.dir
5125 echo one > conftest.one
5126 echo two > conftest.two
5127 mkdir conftest.dir
5128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5129 test -s conftest.one && test -s conftest.two &&
5130 test -s conftest.dir/conftest.one &&
5131 test -s conftest.dir/conftest.two
5132 then
5133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5134 break 3
5138 done
5139 done
5141 esac
5143 done
5144 IFS=$as_save_IFS
5146 rm -rf conftest.one conftest.two conftest.dir
5149 if test "${ac_cv_path_install+set}" = set; then
5150 INSTALL=$ac_cv_path_install
5151 else
5152 # As a last resort, use the slow shell script. Don't cache a
5153 # value for INSTALL within a source directory, because that will
5154 # break other packages using the cache if that directory is
5155 # removed, or if the value is a relative name.
5156 INSTALL=$ac_install_sh
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5160 $as_echo "$INSTALL" >&6; }
5162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5163 # It thinks the first close brace ends the variable substitution.
5164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5170 if test "x$RANLIB" = x; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$RANLIB"; then
5180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 RANLIB=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5202 $as_echo "$RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_RANLIB"; then
5211 ac_ct_RANLIB=$RANLIB
5212 # Extract the first word of "ranlib", so it can be a program name with args.
5213 set dummy ranlib; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_RANLIB"; then
5220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_RANLIB="ranlib"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5240 if test -n "$ac_ct_RANLIB"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5242 $as_echo "$ac_ct_RANLIB" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_RANLIB" = x; then
5249 RANLIB=":"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 RANLIB=$ac_ct_RANLIB
5259 else
5260 RANLIB="$ac_cv_prog_RANLIB"
5265 ## Although we're running on an amd64 kernel, we're actually compiling for
5266 ## the x86 architecture. The user should probably have provided an
5267 ## explicit --build to `configure', but if everything else than the kernel
5268 ## is running in i386 mode, we can help them out.
5269 if test "$machine" = "amdx86-64"; then
5270 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5271 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5275 if test "$ac_cv_have_decl_i386" = "yes"; then
5276 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5277 machine=intel386
5278 machfile="m/${machine}.h"
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 case $INSTALL_INFO in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5310 esac
5312 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 case $INSTALL_INFO in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in /usr/sbin
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5350 esac
5352 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5353 if test -n "$INSTALL_INFO"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5355 $as_echo "$INSTALL_INFO" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 # Extract the first word of "install-info", so it can be a program name with args.
5363 set dummy install-info; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 case $INSTALL_INFO in
5370 [\\/]* | ?:[\\/]*)
5371 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in /sbin
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5389 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5391 esac
5393 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5394 if test -n "$INSTALL_INFO"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5396 $as_echo "$INSTALL_INFO" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "gzip", so it can be a program name with args.
5404 set dummy gzip; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 case $GZIP_PROG in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5431 esac
5433 GZIP_PROG=$ac_cv_path_GZIP_PROG
5434 if test -n "$GZIP_PROG"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5436 $as_echo "$GZIP_PROG" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5445 ## Need makeinfo >= 4.6 (?) to build the manuals.
5446 # Extract the first word of "makeinfo", so it can be a program name with args.
5447 set dummy makeinfo; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $MAKEINFO in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5473 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5475 esac
5477 MAKEINFO=$ac_cv_path_MAKEINFO
5478 if test -n "$MAKEINFO"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5480 $as_echo "$MAKEINFO" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$MAKEINFO" != "no" && \
5488 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
5489 MAKEINFO=no
5492 ## Makeinfo is unusual. For a released Emacs, the manuals are
5493 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5494 ## therefore in the category of "special tools" not normally required, which
5495 ## configure does not have to check for (eg autoconf itself).
5496 ## In a Bazaar checkout on the other hand, the manuals are not included.
5497 ## So makeinfo is a requirement to build from Bazaar, and configure
5498 ## should test for it as it does for any other build requirement.
5499 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5500 ## with pre-built manuals, from a Bazaar checkout.
5501 if test "$MAKEINFO" = "no"; then
5502 if test "x${with_makeinfo}" = "xno"; then
5503 MAKEINFO=off
5504 elif test ! -e $srcdir/info/emacs; then
5505 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5506 source tree does not seem to have pre-built manuals in the \`info' directory.
5507 Either install a suitable version of makeinfo, or re-run configure
5508 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5513 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5514 then
5515 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5518 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5519 then
5520 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5524 late_LDFLAGS=$LDFLAGS
5525 if test "$GCC" = yes; then
5526 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5527 else
5528 LDFLAGS="$LDFLAGS -znocombreloc"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5532 $as_echo_n "checking for -znocombreloc... " >&6; }
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 main(){return 0;}
5536 _ACEOF
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 else
5541 LDFLAGS=$late_LDFLAGS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5549 # The value of CPP is a quoted variable reference, so we need to do this
5550 # to get its actual value...
5551 CPP=`eval "echo $CPP"`
5554 CANNOT_DUMP=no
5555 case "$opsys" in
5556 your-opsys-here)
5557 CANNOT_DUMP=yes
5559 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5562 esac
5566 UNEXEC_OBJ=unexelf.o
5567 case "$opsys" in
5568 # MSDOS uses unexcoff.o
5569 # MSWindows uses unexw32.o
5570 aix4-2)
5571 UNEXEC_OBJ=unexaix.o
5573 cygwin)
5574 UNEXEC_OBJ=unexcw.o
5576 darwin)
5577 UNEXEC_OBJ=unexmacosx.o
5579 hpux10-20 | hpux11)
5580 UNEXEC_OBJ=unexhp9k800.o
5582 sol2-10)
5583 # Use the Solaris dldump() function, called from unexsol.c, to dump
5584 # emacs, instead of the generic ELF dump code found in unexelf.c.
5585 # The resulting binary has a complete symbol table, and is better
5586 # for debugging and other observability tools (debuggers, pstack, etc).
5588 # If you encounter a problem using dldump(), please consider sending
5589 # a message to the OpenSolaris tools-linking mailing list:
5590 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5592 # It is likely that dldump() works with older Solaris too, but this has
5593 # not been tested, so for now this change is for Solaris 10 or newer.
5594 UNEXEC_OBJ=unexsol.o
5596 esac
5598 LD_SWITCH_SYSTEM=
5599 case "$opsys" in
5600 freebsd)
5601 ## Let `ld' find image libs and similar things in /usr/local/lib.
5602 ## The system compiler, GCC, has apparently been modified to not
5603 ## look there, contrary to what a stock GCC would do.
5604 LD_SWITCH_SYSTEM=-L/usr/local/lib
5607 gnu-linux)
5608 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5609 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5612 netbsd)
5613 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5616 openbsd)
5617 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5618 ## otherwise Emacs dumps core on elf systems.
5619 LD_SWITCH_SYSTEM="-Z"
5621 esac
5624 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5626 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5627 ## which has not been defined yet. When this was handled with cpp,
5628 ## it was expanded to null when configure sourced the s/*.h file.
5629 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5630 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5631 ## (or somesuch), but because it is supposed to go at the _front_
5632 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5633 ## Compare with the gnu-linux case below, which added to the end
5634 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5635 ## LD_SWITCH_SYSTEM_TEMACS.
5636 case "$opsys" in
5637 netbsd|openbsd)
5638 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5639 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5640 esac
5643 C_SWITCH_MACHINE=
5644 if test "$machine" = "alpha"; then
5645 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5646 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5650 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5651 ## With ELF, make sure that all common symbols get allocated to in the
5652 ## data section. Otherwise, the dump of temacs may miss variables in
5653 ## the shared library that have been initialized. For example, with
5654 ## GNU libc, __malloc_initialized would normally be resolved to the
5655 ## shared library's .bss section, which is fatal.
5656 if test "x$GCC" = "xyes"; then
5657 C_SWITCH_MACHINE="-fno-common"
5658 else
5659 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5661 else
5662 UNEXEC_OBJ=unexalpha.o
5669 C_SWITCH_SYSTEM=
5670 ## Some programs in src produce warnings saying certain subprograms
5671 ## are too complex and need a MAXMEM value greater than 2000 for
5672 ## additional optimization. --nils@exp-math.uni-essen.de
5673 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5674 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5675 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5676 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5680 LIBS_SYSTEM=
5681 case "$opsys" in
5682 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5683 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5685 freebsd) LIBS_SYSTEM="-lutil" ;;
5687 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5689 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5691 ## Motif needs -lgen.
5692 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5693 esac
5697 ### Make sure subsequent tests use flags consistent with the build flags.
5699 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5700 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5701 else
5702 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5707 # Check whether --enable-largefile was given.
5708 if test "${enable_largefile+set}" = set; then :
5709 enableval=$enable_largefile;
5712 if test "$enable_largefile" != no; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5716 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 ac_cv_sys_largefile_CC=no
5720 if test "$GCC" != yes; then
5721 ac_save_CC=$CC
5722 while :; do
5723 # IRIX 6.2 and later do not support large files by default,
5724 # so use the C compiler's -n32 option if that helps.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5735 ? 1 : -1];
5737 main ()
5741 return 0;
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 break
5747 rm -f core conftest.err conftest.$ac_objext
5748 CC="$CC -n32"
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_sys_largefile_CC=' -n32'; break
5752 rm -f core conftest.err conftest.$ac_objext
5753 break
5754 done
5755 CC=$ac_save_CC
5756 rm -f conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5761 if test "$ac_cv_sys_largefile_CC" != no; then
5762 CC=$CC$ac_cv_sys_largefile_CC
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5767 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 while :; do
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5781 ? 1 : -1];
5783 main ()
5787 return 0;
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_cv_sys_file_offset_bits=no; break
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #define _FILE_OFFSET_BITS 64
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5805 ? 1 : -1];
5807 main ()
5811 return 0;
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"; then :
5815 ac_cv_sys_file_offset_bits=64; break
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_cv_sys_file_offset_bits=unknown
5819 break
5820 done
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5824 case $ac_cv_sys_file_offset_bits in #(
5825 no | unknown) ;;
5827 cat >>confdefs.h <<_ACEOF
5828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5829 _ACEOF
5831 esac
5832 rm -rf conftest*
5833 if test $ac_cv_sys_file_offset_bits = unknown; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5836 if test "${ac_cv_sys_large_files+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 while :; do
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5850 ? 1 : -1];
5852 main ()
5856 return 0;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 ac_cv_sys_large_files=no; break
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #define _LARGE_FILES 1
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5874 ? 1 : -1];
5876 main ()
5880 return 0;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_sys_large_files=1; break
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 ac_cv_sys_large_files=unknown
5888 break
5889 done
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5892 $as_echo "$ac_cv_sys_large_files" >&6; }
5893 case $ac_cv_sys_large_files in #(
5894 no | unknown) ;;
5896 cat >>confdefs.h <<_ACEOF
5897 #define _LARGE_FILES $ac_cv_sys_large_files
5898 _ACEOF
5900 esac
5901 rm -rf conftest*
5907 ## If user specified a crt-dir, use that unconditionally.
5908 if test "X$CRT_DIR" = "X"; then
5910 case "$canonical" in
5911 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5912 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5913 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5914 ## For anything else (eg /usr/lib32), it is up the user to specify
5915 ## the location (bug#5655).
5916 ## Test for crtn.o, not just the directory, because sometimes the
5917 ## directory exists but does not have the relevant files (bug#1287).
5918 ## FIXME better to test for binary compatibility somehow.
5919 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5922 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5923 esac
5925 case "$opsys" in
5926 hpux10-20) CRT_DIR=/lib ;;
5927 esac
5929 ## Default is /usr/lib.
5930 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5932 else
5934 ## Some platforms don't use any of these files, so it is not
5935 ## appropriate to put this test outside the if block.
5936 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5937 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5943 LIB_MATH=-lm
5944 LIB_STANDARD=
5945 START_FILES=
5947 case $opsys in
5948 cygwin )
5949 LIB_MATH=
5950 START_FILES='pre-crt0.o'
5952 darwin )
5953 ## Adding -lm confuses the dynamic linker, so omit it.
5954 LIB_MATH=
5955 START_FILES='pre-crt0.o'
5957 freebsd )
5958 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5959 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 gnu-linux | gnu-kfreebsd )
5962 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5963 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5965 hpux10-20 | hpux11 )
5966 LIB_STANDARD=-lc
5967 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5969 netbsd | openbsd )
5970 if test -f $CRT_DIR/crti.o; then
5971 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5972 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5973 else
5974 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5975 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5978 esac
5986 if test "${with_sound}" != "no"; then
5987 # Sound support for GNU/Linux and the free BSDs.
5988 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5989 do :
5990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 eval as_val=\$$as_ac_Header
5993 if test "x$as_val" = x""yes; then :
5994 cat >>confdefs.h <<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
5997 have_sound_header=yes
6000 done
6002 # Emulation library used on NetBSD.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6004 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6005 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 ac_check_lib_save_LIBS=$LIBS
6009 LIBS="-lossaudio $LIBS"
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6013 /* Override any GCC internal prototype to avoid an error.
6014 Use char because int might match the return type of a GCC
6015 builtin and then its argument prototype would still apply. */
6016 #ifdef __cplusplus
6017 extern "C"
6018 #endif
6019 char _oss_ioctl ();
6021 main ()
6023 return _oss_ioctl ();
6025 return 0;
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 ac_cv_lib_ossaudio__oss_ioctl=yes
6030 else
6031 ac_cv_lib_ossaudio__oss_ioctl=no
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6038 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6039 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6040 LIBSOUND=-lossaudio
6041 else
6042 LIBSOUND=
6047 ALSA_REQUIRED=1.0.0
6048 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6050 succeeded=no
6052 # Extract the first word of "pkg-config", so it can be a program name with args.
6053 set dummy pkg-config; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 case $PKG_CONFIG in
6060 [\\/]* | ?:[\\/]*)
6061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6075 done
6076 done
6077 IFS=$as_save_IFS
6079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6081 esac
6083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6084 if test -n "$PKG_CONFIG"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6086 $as_echo "$PKG_CONFIG" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test "$PKG_CONFIG" = "no" ; then
6095 HAVE_ALSA=no
6096 else
6097 PKG_CONFIG_MIN_VERSION=0.9.0
6098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6100 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6102 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104 $as_echo "yes" >&6; }
6105 succeeded=yes
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6108 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6109 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6111 $as_echo "$ALSA_CFLAGS" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6114 $as_echo_n "checking ALSA_LIBS... " >&6; }
6115 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6117 $as_echo "$ALSA_LIBS" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 ALSA_CFLAGS=""
6122 ALSA_LIBS=""
6123 ## If we have a custom action on failure, don't print errors, but
6124 ## do set a variable so people can do so.
6125 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6131 else
6132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6137 if test $succeeded = yes; then
6138 HAVE_ALSA=yes
6139 else
6140 HAVE_ALSA=no
6143 if test $HAVE_ALSA = yes; then
6144 SAVE_CFLAGS="$CFLAGS"
6145 SAVE_LDFLAGS="$LDFLAGS"
6146 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6147 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <asoundlib.h>
6152 main ()
6154 snd_lib_error_set_handler (0);
6156 return 0;
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160 emacs_alsa_normal=yes
6161 else
6162 emacs_alsa_normal=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <alsa/asoundlib.h>
6170 main ()
6172 snd_lib_error_set_handler (0);
6174 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 emacs_alsa_subdir=yes
6179 else
6180 emacs_alsa_subdir=no
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 if test "$emacs_alsa_subdir" != yes; then
6184 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6186 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6189 CFLAGS="$SAVE_CFLAGS"
6190 LDFLAGS="$SAVE_LDFLAGS"
6191 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6192 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6198 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6199 case "$opsys" in
6200 gnu-linux|freebsd|netbsd)
6202 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6205 esac
6211 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6212 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6213 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6214 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6215 sys/utsname.h pwd.h utmp.h dirent.h util.h
6216 do :
6217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6219 eval as_val=\$$as_ac_Header
6220 if test "x$as_val" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 _ACEOF
6227 done
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6231 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <sys/personality.h>
6236 main ()
6238 personality (PER_LINUX32)
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 emacs_cv_personality_linux32=yes
6245 else
6246 emacs_cv_personality_linux32=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6250 $as_echo "$emacs_cv_personality_linux32" >&6; }
6252 if test $emacs_cv_personality_linux32 = yes; then
6254 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6258 for ac_header in term.h
6259 do :
6260 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6261 if test "x$ac_cv_header_term_h" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_TERM_H 1
6264 _ACEOF
6268 done
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6271 $as_echo_n "checking for ANSI C header files... " >&6; }
6272 if test "${ac_cv_header_stdc+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <stdlib.h>
6278 #include <stdarg.h>
6279 #include <string.h>
6280 #include <float.h>
6283 main ()
6287 return 0;
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_header_stdc=yes
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 if test $ac_cv_header_stdc = yes; then
6298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <string.h>
6303 _ACEOF
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "memchr" >/dev/null 2>&1; then :
6307 else
6308 ac_cv_header_stdc=no
6310 rm -f conftest*
6314 if test $ac_cv_header_stdc = yes; then
6315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #include <stdlib.h>
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "free" >/dev/null 2>&1; then :
6324 else
6325 ac_cv_header_stdc=no
6327 rm -f conftest*
6331 if test $ac_cv_header_stdc = yes; then
6332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333 if test "$cross_compiling" = yes; then :
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #include <ctype.h>
6339 #include <stdlib.h>
6340 #if ((' ' & 0x0FF) == 0x020)
6341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6343 #else
6344 # define ISLOWER(c) \
6345 (('a' <= (c) && (c) <= 'i') \
6346 || ('j' <= (c) && (c) <= 'r') \
6347 || ('s' <= (c) && (c) <= 'z'))
6348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6349 #endif
6351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6353 main ()
6355 int i;
6356 for (i = 0; i < 256; i++)
6357 if (XOR (islower (i), ISLOWER (i))
6358 || toupper (i) != TOUPPER (i))
6359 return 2;
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_run "$LINENO"; then :
6365 else
6366 ac_cv_header_stdc=no
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6369 conftest.$ac_objext conftest.beam conftest.$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6384 if test "${ac_cv_header_time+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <sys/time.h>
6391 #include <time.h>
6394 main ()
6396 if ((struct tm *) 0)
6397 return 0;
6399 return 0;
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 ac_cv_header_time=yes
6404 else
6405 ac_cv_header_time=no
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6410 $as_echo "$ac_cv_header_time" >&6; }
6411 if test $ac_cv_header_time = yes; then
6413 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6417 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6418 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6419 ac_have_decl=1
6420 else
6421 ac_have_decl=0
6424 cat >>confdefs.h <<_ACEOF
6425 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6426 _ACEOF
6428 if test $ac_cv_have_decl_sys_siglist != yes; then
6429 # For Tru64, at least:
6430 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6431 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6432 ac_have_decl=1
6433 else
6434 ac_have_decl=0
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6439 _ACEOF
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6443 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6449 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6456 #ifndef WEXITSTATUS
6457 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6458 #endif
6459 #ifndef WIFEXITED
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6461 #endif
6464 main ()
6466 int s;
6467 wait (&s);
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 ac_cv_header_sys_wait_h=yes
6475 else
6476 ac_cv_header_sys_wait_h=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6484 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6490 $as_echo_n "checking for struct utimbuf... " >&6; }
6491 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #ifdef TIME_WITH_SYS_TIME
6497 #include <sys/time.h>
6498 #include <time.h>
6499 #else
6500 #ifdef HAVE_SYS_TIME_H
6501 #include <sys/time.h>
6502 #else
6503 #include <time.h>
6504 #endif
6505 #endif
6506 #ifdef HAVE_UTIME_H
6507 #include <utime.h>
6508 #endif
6510 main ()
6512 static struct utimbuf x; x.actime = x.modtime;
6514 return 0;
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 emacs_cv_struct_utimbuf=yes
6519 else
6520 emacs_cv_struct_utimbuf=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6525 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6526 if test $emacs_cv_struct_utimbuf = yes; then
6528 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6533 $as_echo_n "checking return type of signal handlers... " >&6; }
6534 if test "${ac_cv_type_signal+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <sys/types.h>
6540 #include <signal.h>
6543 main ()
6545 return *(signal (0, 0)) (0) == 1;
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_type_signal=int
6552 else
6553 ac_cv_type_signal=void
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6558 $as_echo "$ac_cv_type_signal" >&6; }
6560 cat >>confdefs.h <<_ACEOF
6561 #define RETSIGTYPE $ac_cv_type_signal
6562 _ACEOF
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6567 $as_echo_n "checking for speed_t... " >&6; }
6568 if test "${emacs_cv_speed_t+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <termios.h>
6575 main ()
6577 speed_t x = 1;
6579 return 0;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 emacs_cv_speed_t=yes
6584 else
6585 emacs_cv_speed_t=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6590 $as_echo "$emacs_cv_speed_t" >&6; }
6591 if test $emacs_cv_speed_t = yes; then
6593 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6598 $as_echo_n "checking for struct timeval... " >&6; }
6599 if test "${emacs_cv_struct_timeval+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #ifdef TIME_WITH_SYS_TIME
6605 #include <sys/time.h>
6606 #include <time.h>
6607 #else
6608 #ifdef HAVE_SYS_TIME_H
6609 #include <sys/time.h>
6610 #else
6611 #include <time.h>
6612 #endif
6613 #endif
6615 main ()
6617 static struct timeval x; x.tv_sec = x.tv_usec;
6619 return 0;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 emacs_cv_struct_timeval=yes
6624 else
6625 emacs_cv_struct_timeval=no
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6630 $as_echo "$emacs_cv_struct_timeval" >&6; }
6631 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6632 if test $emacs_cv_struct_timeval = yes; then
6634 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6639 $as_echo_n "checking for struct exception... " >&6; }
6640 if test "${emacs_cv_struct_exception+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <math.h>
6647 main ()
6649 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 emacs_cv_struct_exception=yes
6656 else
6657 emacs_cv_struct_exception=no
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6662 $as_echo "$emacs_cv_struct_exception" >&6; }
6663 HAVE_EXCEPTION=$emacs_cv_struct_exception
6664 if test $emacs_cv_struct_exception != yes; then
6666 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6670 for ac_header in sys/socket.h
6671 do :
6672 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6673 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6674 cat >>confdefs.h <<_ACEOF
6675 #define HAVE_SYS_SOCKET_H 1
6676 _ACEOF
6680 done
6682 for ac_header in net/if.h
6683 do :
6684 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6685 #if HAVE_SYS_SOCKET_H
6686 #include <sys/socket.h>
6687 #endif
6689 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_NET_IF_H 1
6692 _ACEOF
6696 done
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6700 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6701 if test "${ac_cv_struct_tm+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6707 #include <time.h>
6710 main ()
6712 struct tm tm;
6713 int *p = &tm.tm_sec;
6714 return !p;
6716 return 0;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_struct_tm=time.h
6721 else
6722 ac_cv_struct_tm=sys/time.h
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6727 $as_echo "$ac_cv_struct_tm" >&6; }
6728 if test $ac_cv_struct_tm = sys/time.h; then
6730 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6734 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6735 #include <$ac_cv_struct_tm>
6738 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_STRUCT_TM_TM_ZONE 1
6742 _ACEOF
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6751 else
6752 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6754 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6755 ac_have_decl=1
6756 else
6757 ac_have_decl=0
6760 cat >>confdefs.h <<_ACEOF
6761 #define HAVE_DECL_TZNAME $ac_have_decl
6762 _ACEOF
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6765 $as_echo_n "checking for tzname... " >&6; }
6766 if test "${ac_cv_var_tzname+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <time.h>
6772 #if !HAVE_DECL_TZNAME
6773 extern char *tzname[];
6774 #endif
6777 main ()
6779 return tzname[0][0];
6781 return 0;
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6785 ac_cv_var_tzname=yes
6786 else
6787 ac_cv_var_tzname=no
6789 rm -f core conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6793 $as_echo "$ac_cv_var_tzname" >&6; }
6794 if test $ac_cv_var_tzname = yes; then
6796 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6801 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6803 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6805 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6809 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6810 #if HAVE_SYS_SOCKET_H
6811 #include <sys/socket.h>
6812 #endif
6813 #if HAVE_NET_IF_H
6814 #include <net/if.h>
6815 #endif
6817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6821 _ACEOF
6825 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6826 #if HAVE_SYS_SOCKET_H
6827 #include <sys/socket.h>
6828 #endif
6829 #if HAVE_NET_IF_H
6830 #include <net/if.h>
6831 #endif
6833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6835 cat >>confdefs.h <<_ACEOF
6836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6837 _ACEOF
6841 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6844 #endif
6845 #if HAVE_NET_IF_H
6846 #include <net/if.h>
6847 #endif
6849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6853 _ACEOF
6857 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6858 #if HAVE_SYS_SOCKET_H
6859 #include <sys/socket.h>
6860 #endif
6861 #if HAVE_NET_IF_H
6862 #include <net/if.h>
6863 #endif
6865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6869 _ACEOF
6873 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6874 #if HAVE_SYS_SOCKET_H
6875 #include <sys/socket.h>
6876 #endif
6877 #if HAVE_NET_IF_H
6878 #include <net/if.h>
6879 #endif
6881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6885 _ACEOF
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6893 $as_echo_n "checking for function prototypes... " >&6; }
6894 if test "$ac_cv_prog_cc_c89" != no; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6901 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6909 $as_echo_n "checking for working volatile... " >&6; }
6910 if test "${ac_cv_c_volatile+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6917 main ()
6920 volatile int x;
6921 int * volatile y = (int *) 0;
6922 return !x && !y;
6924 return 0;
6926 _ACEOF
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 ac_cv_c_volatile=yes
6929 else
6930 ac_cv_c_volatile=no
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6935 $as_echo "$ac_cv_c_volatile" >&6; }
6936 if test $ac_cv_c_volatile = no; then
6938 $as_echo "#define volatile /**/" >>confdefs.h
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6943 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6944 if test "${ac_cv_c_const+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6951 main ()
6953 /* FIXME: Include the comments suggested by Paul. */
6954 #ifndef __cplusplus
6955 /* Ultrix mips cc rejects this. */
6956 typedef int charset[2];
6957 const charset cs;
6958 /* SunOS 4.1.1 cc rejects this. */
6959 char const *const *pcpcc;
6960 char **ppc;
6961 /* NEC SVR4.0.2 mips cc rejects this. */
6962 struct point {int x, y;};
6963 static struct point const zero = {0,0};
6964 /* AIX XL C 1.02.0.0 rejects this.
6965 It does not let you subtract one const X* pointer from another in
6966 an arm of an if-expression whose if-part is not a constant
6967 expression */
6968 const char *g = "string";
6969 pcpcc = &g + (g ? g-g : 0);
6970 /* HPUX 7.0 cc rejects these. */
6971 ++pcpcc;
6972 ppc = (char**) pcpcc;
6973 pcpcc = (char const *const *) ppc;
6974 { /* SCO 3.2v4 cc rejects this. */
6975 char *t;
6976 char const *s = 0 ? (char *) 0 : (char const *) 0;
6978 *t++ = 0;
6979 if (s) return 0;
6981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6982 int x[] = {25, 17};
6983 const int *foo = &x[0];
6984 ++foo;
6986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6987 typedef const int *iptr;
6988 iptr p = 0;
6989 ++p;
6991 { /* AIX XL C 1.02.0.0 rejects this saying
6992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6993 struct s { int j; const int *ap[3]; };
6994 struct s *b; b->j = 5;
6996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6997 const int foo = 10;
6998 if (!foo) return 0;
7000 return !cs[0] && !zero.x;
7001 #endif
7004 return 0;
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 ac_cv_c_const=yes
7009 else
7010 ac_cv_c_const=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7015 $as_echo "$ac_cv_c_const" >&6; }
7016 if test $ac_cv_c_const = no; then
7018 $as_echo "#define const /**/" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7023 $as_echo_n "checking for void * support... " >&6; }
7024 if test "${emacs_cv_void_star+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7031 main ()
7033 void * foo;
7035 return 0;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 emacs_cv_void_star=yes
7040 else
7041 emacs_cv_void_star=no
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7046 $as_echo "$emacs_cv_void_star" >&6; }
7047 if test $emacs_cv_void_star = yes; then
7048 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7050 else
7051 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7057 if test "${ac_cv_c_bigendian+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 ac_cv_c_bigendian=unknown
7061 # See if we're dealing with a universal compiler.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifndef __APPLE_CC__
7065 not a universal capable compiler
7066 #endif
7067 typedef int dummy;
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"; then :
7072 # Check for potential -arch flags. It is not universal unless
7073 # there are at least two -arch flags with different values.
7074 ac_arch=
7075 ac_prev=
7076 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7077 if test -n "$ac_prev"; then
7078 case $ac_word in
7079 i?86 | x86_64 | ppc | ppc64)
7080 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7081 ac_arch=$ac_word
7082 else
7083 ac_cv_c_bigendian=universal
7084 break
7087 esac
7088 ac_prev=
7089 elif test "x$ac_word" = "x-arch"; then
7090 ac_prev=arch
7092 done
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 if test $ac_cv_c_bigendian = unknown; then
7096 # See if sys/param.h defines the BYTE_ORDER macro.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7100 #include <sys/param.h>
7103 main ()
7105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7107 && LITTLE_ENDIAN)
7108 bogus endian macros
7109 #endif
7112 return 0;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 # It does; now see whether it defined to BIG_ENDIAN or not.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/param.h>
7123 main ()
7125 #if BYTE_ORDER != BIG_ENDIAN
7126 not big endian
7127 #endif
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 ac_cv_c_bigendian=yes
7135 else
7136 ac_cv_c_bigendian=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 if test $ac_cv_c_bigendian = unknown; then
7143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <limits.h>
7149 main ()
7151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7152 bogus endian macros
7153 #endif
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 # It does; now see whether it defined to _BIG_ENDIAN or not.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <limits.h>
7166 main ()
7168 #ifndef _BIG_ENDIAN
7169 not big endian
7170 #endif
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 ac_cv_c_bigendian=yes
7178 else
7179 ac_cv_c_bigendian=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 if test $ac_cv_c_bigendian = unknown; then
7186 # Compile a test program.
7187 if test "$cross_compiling" = yes; then :
7188 # Try to guess by grepping values from an object file.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 short int ascii_mm[] =
7192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7193 short int ascii_ii[] =
7194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7195 int use_ascii (int i) {
7196 return ascii_mm[i] + ascii_ii[i];
7198 short int ebcdic_ii[] =
7199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7200 short int ebcdic_mm[] =
7201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7202 int use_ebcdic (int i) {
7203 return ebcdic_mm[i] + ebcdic_ii[i];
7205 extern int foo;
7208 main ()
7210 return use_ascii (foo) == use_ebcdic (foo);
7212 return 0;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7217 ac_cv_c_bigendian=yes
7219 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7220 if test "$ac_cv_c_bigendian" = unknown; then
7221 ac_cv_c_bigendian=no
7222 else
7223 # finding both strings is unlikely to happen, but who knows?
7224 ac_cv_c_bigendian=unknown
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 $ac_includes_default
7234 main ()
7237 /* Are we little or big endian? From Harbison&Steele. */
7238 union
7240 long int l;
7241 char c[sizeof (long int)];
7242 } u;
7243 u.l = 1;
7244 return u.c[sizeof (long int) - 1] == 1;
7247 return 0;
7249 _ACEOF
7250 if ac_fn_c_try_run "$LINENO"; then :
7251 ac_cv_c_bigendian=no
7252 else
7253 ac_cv_c_bigendian=yes
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7256 conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7262 $as_echo "$ac_cv_c_bigendian" >&6; }
7263 case $ac_cv_c_bigendian in #(
7264 yes)
7265 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7266 ;; #(
7268 ;; #(
7269 universal)
7271 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7273 ;; #(
7275 as_fn_error "unknown endianness
7276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7277 esac
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7281 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7282 set x ${MAKE-make}
7283 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7284 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 cat >conftest.make <<\_ACEOF
7288 SHELL = /bin/sh
7289 all:
7290 @echo '@@@%%%=$(MAKE)=@@@%%%'
7291 _ACEOF
7292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7293 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7294 *@@@%%%=?*=@@@%%%*)
7295 eval ac_cv_prog_make_${ac_make}_set=yes;;
7297 eval ac_cv_prog_make_${ac_make}_set=no;;
7298 esac
7299 rm -f conftest.make
7301 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303 $as_echo "yes" >&6; }
7304 SET_MAKE=
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 SET_MAKE="MAKE=${MAKE-make}"
7312 DEPFLAGS=
7313 MKDEPDIR=":"
7314 deps_frag=deps.mk
7315 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7317 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7318 HAVE_GNU_MAKE=no
7319 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7320 if test "x$testval" != x; then
7321 HAVE_GNU_MAKE=yes
7322 else
7323 ac_enable_autodepend=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7326 $as_echo "$HAVE_GNU_MAKE" >&6; }
7327 if test $HAVE_GNU_MAKE = yes; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7329 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7330 SAVE_CFLAGS="$CFLAGS"
7331 CFLAGS="$CFLAGS -MMD -MF deps.d"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7336 main ()
7340 return 0;
7342 _ACEOF
7343 if ac_fn_c_try_compile "$LINENO"; then :
7345 else
7346 ac_enable_autodepend=no
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 CFLAGS="$SAVE_CFLAGS"
7350 test -f deps.d || ac_enable_autodepend=no
7351 rm -rf deps.d
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7353 $as_echo "$ac_enable_autodepend" >&6; }
7355 if test $ac_enable_autodepend = yes; then
7356 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7357 ## In parallel builds, another make might create depdir between
7358 ## the first test and mkdir, so stick another test on the end.
7359 ## Or use mkinstalldirs? mkdir -p is not portable.
7360 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7361 deps_frag=autodeps.mk
7364 deps_frag=$srcdir/src/$deps_frag
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7371 $as_echo_n "checking for long file names... " >&6; }
7372 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 ac_cv_sys_long_file_names=yes
7376 # Test for long file names in all the places we know might matter:
7377 # . the current directory, where building will happen
7378 # $prefix/lib where we will be installing things
7379 # $exec_prefix/lib likewise
7380 # $TMPDIR if set, where it might want to write temporary files
7381 # /tmp where it might want to write temporary files
7382 # /var/tmp likewise
7383 # /usr/tmp likewise
7384 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7385 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7386 # in the usual case where exec_prefix is '${prefix}'.
7387 case $ac_dir in #(
7388 . | /* | ?:[\\/]*) ;; #(
7389 *) continue;;
7390 esac
7391 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7392 ac_xdir=$ac_dir/cf$$
7393 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7394 ac_tf1=$ac_xdir/conftest9012345
7395 ac_tf2=$ac_xdir/conftest9012346
7396 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7397 ac_cv_sys_long_file_names=no
7398 rm -f -r "$ac_xdir" 2>/dev/null
7399 test $ac_cv_sys_long_file_names = no && break
7400 done
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7403 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7404 if test $ac_cv_sys_long_file_names = yes; then
7406 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7411 #### Choose a window system.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7414 $as_echo_n "checking for X... " >&6; }
7417 # Check whether --with-x was given.
7418 if test "${with_x+set}" = set; then :
7419 withval=$with_x;
7422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7423 if test "x$with_x" = xno; then
7424 # The user explicitly disabled X.
7425 have_x=disabled
7426 else
7427 case $x_includes,$x_libraries in #(
7428 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7429 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 # One or both of the vars are not set, and there is no cached value.
7433 ac_x_includes=no ac_x_libraries=no
7434 rm -f -r conftest.dir
7435 if mkdir conftest.dir; then
7436 cd conftest.dir
7437 cat >Imakefile <<'_ACEOF'
7438 incroot:
7439 @echo incroot='${INCROOT}'
7440 usrlibdir:
7441 @echo usrlibdir='${USRLIBDIR}'
7442 libdir:
7443 @echo libdir='${LIBDIR}'
7444 _ACEOF
7445 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7447 for ac_var in incroot usrlibdir libdir; do
7448 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7449 done
7450 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7451 for ac_extension in a so sl dylib la dll; do
7452 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7453 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7454 ac_im_usrlibdir=$ac_im_libdir; break
7456 done
7457 # Screen out bogus values from the imake configuration. They are
7458 # bogus both because they are the default anyway, and because
7459 # using them would break gcc on systems where it needs fixed includes.
7460 case $ac_im_incroot in
7461 /usr/include) ac_x_includes= ;;
7462 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7463 esac
7464 case $ac_im_usrlibdir in
7465 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7466 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7467 esac
7469 cd ..
7470 rm -f -r conftest.dir
7473 # Standard set of common directories for X headers.
7474 # Check X11 before X11Rn because it is often a symlink to the current release.
7475 ac_x_header_dirs='
7476 /usr/X11/include
7477 /usr/X11R7/include
7478 /usr/X11R6/include
7479 /usr/X11R5/include
7480 /usr/X11R4/include
7482 /usr/include/X11
7483 /usr/include/X11R7
7484 /usr/include/X11R6
7485 /usr/include/X11R5
7486 /usr/include/X11R4
7488 /usr/local/X11/include
7489 /usr/local/X11R7/include
7490 /usr/local/X11R6/include
7491 /usr/local/X11R5/include
7492 /usr/local/X11R4/include
7494 /usr/local/include/X11
7495 /usr/local/include/X11R7
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7500 /usr/X386/include
7501 /usr/x386/include
7502 /usr/XFree86/include/X11
7504 /usr/include
7505 /usr/local/include
7506 /usr/unsupported/include
7507 /usr/athena/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7514 if test "$ac_x_includes" = no; then
7515 # Guess where to find include files, by looking for Xlib.h.
7516 # First, try using that file with no special directory specified.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <X11/Xlib.h>
7520 _ACEOF
7521 if ac_fn_c_try_cpp "$LINENO"; then :
7522 # We can compile using X headers with no special include directory.
7523 ac_x_includes=
7524 else
7525 for ac_dir in $ac_x_header_dirs; do
7526 if test -r "$ac_dir/X11/Xlib.h"; then
7527 ac_x_includes=$ac_dir
7528 break
7530 done
7532 rm -f conftest.err conftest.$ac_ext
7533 fi # $ac_x_includes = no
7535 if test "$ac_x_libraries" = no; then
7536 # Check for the libraries.
7537 # See if we find them without any special options.
7538 # Don't add to $LIBS permanently.
7539 ac_save_LIBS=$LIBS
7540 LIBS="-lX11 $LIBS"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <X11/Xlib.h>
7545 main ()
7547 XrmInitialize ()
7549 return 0;
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553 LIBS=$ac_save_LIBS
7554 # We can link X programs with no special library path.
7555 ac_x_libraries=
7556 else
7557 LIBS=$ac_save_LIBS
7558 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7560 # Don't even attempt the hair of trying to link an X program!
7561 for ac_extension in a so sl dylib la dll; do
7562 if test -r "$ac_dir/libX11.$ac_extension"; then
7563 ac_x_libraries=$ac_dir
7564 break 2
7566 done
7567 done
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 fi # $ac_x_libraries = no
7573 case $ac_x_includes,$ac_x_libraries in #(
7574 no,* | *,no | *\'*)
7575 # Didn't find X, or a directory has "'" in its name.
7576 ac_cv_have_x="have_x=no";; #(
7578 # Record where we found X for the cache.
7579 ac_cv_have_x="have_x=yes\
7580 ac_x_includes='$ac_x_includes'\
7581 ac_x_libraries='$ac_x_libraries'"
7582 esac
7584 ;; #(
7585 *) have_x=yes;;
7586 esac
7587 eval "$ac_cv_have_x"
7588 fi # $with_x != no
7590 if test "$have_x" != yes; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7592 $as_echo "$have_x" >&6; }
7593 no_x=yes
7594 else
7595 # If each of the values was on the command line, it overrides each guess.
7596 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7597 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7598 # Update the cache value to reflect the command line values.
7599 ac_cv_have_x="have_x=yes\
7600 ac_x_includes='$x_includes'\
7601 ac_x_libraries='$x_libraries'"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7603 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7606 if test "$no_x" = yes; then
7607 window_system=none
7608 else
7609 window_system=x11
7612 ## Workaround for bug in autoconf <= 2.62.
7613 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7614 ## No need to do anything special for these standard directories.
7615 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7617 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7621 LD_SWITCH_X_SITE_AUX=
7622 LD_SWITCH_X_SITE_AUX_RPATH=
7623 if test "${x_libraries}" != NONE; then
7624 if test -n "${x_libraries}"; then
7625 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7626 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7627 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7629 x_default_search_path=""
7630 x_search_path=${x_libraries}
7631 if test -z "${x_search_path}"; then
7632 x_search_path=/usr/lib
7634 for x_library in `echo ${x_search_path}: | \
7635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7636 x_search_path="\
7637 ${x_library}/X11/%L/%T/%N%C%S:\
7638 ${x_library}/X11/%l/%T/%N%C%S:\
7639 ${x_library}/X11/%T/%N%C%S:\
7640 ${x_library}/X11/%L/%T/%N%S:\
7641 ${x_library}/X11/%l/%T/%N%S:\
7642 ${x_library}/X11/%T/%N%S"
7643 if test x"${x_default_search_path}" = x; then
7644 x_default_search_path=${x_search_path}
7645 else
7646 x_default_search_path="${x_search_path}:${x_default_search_path}"
7648 done
7653 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7654 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7657 if test x"${x_includes}" = x; then
7658 bitmapdir=/usr/include/X11/bitmaps
7659 else
7660 # accumulate include directories that have X11 bitmap subdirectories
7661 bmd_acc="dummyval"
7662 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7663 if test -d "${bmd}/X11/bitmaps"; then
7664 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7666 if test -d "${bmd}/bitmaps"; then
7667 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7669 done
7670 if test ${bmd_acc} != "dummyval"; then
7671 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7675 HAVE_NS=no
7676 NS_IMPL_COCOA=no
7677 NS_IMPL_GNUSTEP=no
7678 tmp_CPPFLAGS="$CPPFLAGS"
7679 tmp_CFLAGS="$CFLAGS"
7680 CPPFLAGS="$CPPFLAGS -x objective-c"
7681 CFLAGS="$CFLAGS -x objective-c"
7682 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7683 if test "${with_ns}" != no; then
7684 if test "${opsys}" = darwin; then
7685 NS_IMPL_COCOA=yes
7686 ns_appdir=`pwd`/nextstep/Emacs.app/
7687 ns_appbindir=${ns_appdir}Contents/MacOS/
7688 ns_appresdir=${ns_appdir}Contents/Resources
7689 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7690 elif test -f $GNUSTEP_CONFIG_FILE; then
7691 NS_IMPL_GNUSTEP=yes
7692 ns_appdir=`pwd`/nextstep/Emacs.app/
7693 ns_appbindir=${ns_appdir}
7694 ns_appresdir=${ns_appdir}Resources
7695 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7696 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7697 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7698 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7699 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7700 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7701 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7702 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7703 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7704 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7705 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7706 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7707 LIB_STANDARD=
7708 START_FILES=
7709 TEMACS_LDFLAGS2=
7711 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7712 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7713 HAVE_NS=yes
7714 else
7715 as_fn_error "\`--with-ns' was specified, but the include
7716 files are missing or cannot be compiled." "$LINENO" 5
7720 NS_HAVE_NSINTEGER=yes
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <Foundation/NSObjCRuntime.h>
7725 main ()
7727 NSInteger i;
7729 return 0;
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 ns_have_nsinteger=yes
7734 else
7735 ns_have_nsinteger=no
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 if test $ns_have_nsinteger = no; then
7739 NS_HAVE_NSINTEGER=no
7744 ns_frag=/dev/null
7745 NS_OBJ=
7746 NS_SUPPORT=
7747 if test "${HAVE_NS}" = yes; then
7748 window_system=nextstep
7749 with_xft=no
7750 # set up packaging dirs
7751 exec_prefix=${ns_appbindir}
7752 libexecdir=${ns_appbindir}/libexec
7753 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7754 prefix=${ns_appresdir}
7756 ns_frag=$srcdir/src/ns.mk
7757 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7758 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7760 CFLAGS="$tmp_CFLAGS"
7761 CPPFLAGS="$tmp_CPPFLAGS"
7767 case "${window_system}" in
7768 x11 )
7769 HAVE_X_WINDOWS=yes
7770 HAVE_X11=yes
7771 case "${with_x_toolkit}" in
7772 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7773 motif ) USE_X_TOOLKIT=MOTIF ;;
7774 gtk ) with_gtk=yes
7775 USE_X_TOOLKIT=none ;;
7776 gtk3 ) with_gtk3=yes
7777 USE_X_TOOLKIT=none ;;
7778 no ) USE_X_TOOLKIT=none ;;
7779 * ) USE_X_TOOLKIT=maybe ;;
7780 esac
7782 nextstep | none )
7783 HAVE_X_WINDOWS=no
7784 HAVE_X11=no
7785 USE_X_TOOLKIT=none
7787 esac
7789 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7790 # Extract the first word of "X", so it can be a program name with args.
7791 set dummy X; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$HAVE_XSERVER"; then
7798 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_HAVE_XSERVER="true"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7815 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7818 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7819 if test -n "$HAVE_XSERVER"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7821 $as_echo "$HAVE_XSERVER" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test "$HAVE_XSERVER" = true ||
7829 test -n "$DISPLAY" ||
7830 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7831 as_fn_error "You seem to be running X, but no X development libraries
7832 were found. You should install the relevant development files for X
7833 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7834 sure you have development files for image handling, i.e.
7835 tiff, gif, jpeg, png and xpm.
7836 If you are sure you want Emacs compiled without X window support, pass
7837 --without-x
7838 to configure." "$LINENO" 5
7842 ### If we're using X11, we should use the X menu package.
7843 HAVE_MENUS=no
7844 case ${HAVE_X11} in
7845 yes ) HAVE_MENUS=yes ;;
7846 esac
7848 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7849 # Assume not, until told otherwise.
7850 GNU_MALLOC=yes
7851 doug_lea_malloc=yes
7852 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7853 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7855 else
7856 doug_lea_malloc=no
7859 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7860 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7862 else
7863 doug_lea_malloc=no
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7867 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7868 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 extern void (* __after_morecore_hook)();
7875 main ()
7877 __after_morecore_hook = 0
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 emacs_cv_var___after_morecore_hook=yes
7884 else
7885 emacs_cv_var___after_morecore_hook=no
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7891 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7892 if test $emacs_cv_var___after_morecore_hook = no; then
7893 doug_lea_malloc=no
7897 system_malloc=no
7898 case "$opsys" in
7899 ## darwin ld insists on the use of malloc routines in the System framework.
7900 darwin|sol2-10) system_malloc=yes ;;
7901 esac
7903 if test "${system_malloc}" = "yes"; then
7905 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7907 GNU_MALLOC=no
7908 GNU_MALLOC_reason="
7909 (The GNU allocators don't work with this system configuration.)"
7910 GMALLOC_OBJ=
7911 VMLIMIT_OBJ=
7912 else
7913 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7914 VMLIMIT_OBJ=vm-limit.o
7919 if test "$doug_lea_malloc" = "yes" ; then
7920 if test "$GNU_MALLOC" = yes ; then
7921 GNU_MALLOC_reason="
7922 (Using Doug Lea's new malloc from the GNU C Library.)"
7925 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7928 ## Use mmap directly for allocating larger buffers.
7929 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7930 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7931 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7932 case "$opsys" in
7933 gnu*) REL_ALLOC=no ;;
7934 esac
7937 if test x"${REL_ALLOC}" = x; then
7938 REL_ALLOC=${GNU_MALLOC}
7941 use_mmap_for_buffers=no
7942 case "$opsys" in
7943 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7944 esac
7949 for ac_header in $ac_header_list
7950 do :
7951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954 eval as_val=\$$as_ac_Header
7955 if test "x$as_val" = x""yes; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7958 _ACEOF
7962 done
7971 for ac_func in getpagesize
7972 do :
7973 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7974 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_GETPAGESIZE 1
7977 _ACEOF
7980 done
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7983 $as_echo_n "checking for working mmap... " >&6; }
7984 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test "$cross_compiling" = yes; then :
7988 ac_cv_func_mmap_fixed_mapped=no
7989 else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 /* malloc might have been renamed as rpl_malloc. */
7994 #undef malloc
7996 /* Thanks to Mike Haertel and Jim Avera for this test.
7997 Here is a matrix of mmap possibilities:
7998 mmap private not fixed
7999 mmap private fixed at somewhere currently unmapped
8000 mmap private fixed at somewhere already mapped
8001 mmap shared not fixed
8002 mmap shared fixed at somewhere currently unmapped
8003 mmap shared fixed at somewhere already mapped
8004 For private mappings, we should verify that changes cannot be read()
8005 back from the file, nor mmap's back from the file at a different
8006 address. (There have been systems where private was not correctly
8007 implemented like the infamous i386 svr4.0, and systems where the
8008 VM page cache was not coherent with the file system buffer cache
8009 like early versions of FreeBSD and possibly contemporary NetBSD.)
8010 For shared mappings, we should conversely verify that changes get
8011 propagated back to all the places they're supposed to be.
8013 Grep wants private fixed already mapped.
8014 The main things grep needs to know about mmap are:
8015 * does it exist and is it safe to write into the mmap'd area
8016 * how to use it (BSD variants) */
8018 #include <fcntl.h>
8019 #include <sys/mman.h>
8021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8022 char *malloc ();
8023 #endif
8025 /* This mess was copied from the GNU getpagesize.h. */
8026 #ifndef HAVE_GETPAGESIZE
8027 # ifdef _SC_PAGESIZE
8028 # define getpagesize() sysconf(_SC_PAGESIZE)
8029 # else /* no _SC_PAGESIZE */
8030 # ifdef HAVE_SYS_PARAM_H
8031 # include <sys/param.h>
8032 # ifdef EXEC_PAGESIZE
8033 # define getpagesize() EXEC_PAGESIZE
8034 # else /* no EXEC_PAGESIZE */
8035 # ifdef NBPG
8036 # define getpagesize() NBPG * CLSIZE
8037 # ifndef CLSIZE
8038 # define CLSIZE 1
8039 # endif /* no CLSIZE */
8040 # else /* no NBPG */
8041 # ifdef NBPC
8042 # define getpagesize() NBPC
8043 # else /* no NBPC */
8044 # ifdef PAGESIZE
8045 # define getpagesize() PAGESIZE
8046 # endif /* PAGESIZE */
8047 # endif /* no NBPC */
8048 # endif /* no NBPG */
8049 # endif /* no EXEC_PAGESIZE */
8050 # else /* no HAVE_SYS_PARAM_H */
8051 # define getpagesize() 8192 /* punt totally */
8052 # endif /* no HAVE_SYS_PARAM_H */
8053 # endif /* no _SC_PAGESIZE */
8055 #endif /* no HAVE_GETPAGESIZE */
8058 main ()
8060 char *data, *data2, *data3;
8061 int i, pagesize;
8062 int fd, fd2;
8064 pagesize = getpagesize ();
8066 /* First, make a file with some known garbage in it. */
8067 data = (char *) malloc (pagesize);
8068 if (!data)
8069 return 1;
8070 for (i = 0; i < pagesize; ++i)
8071 *(data + i) = rand ();
8072 umask (0);
8073 fd = creat ("conftest.mmap", 0600);
8074 if (fd < 0)
8075 return 2;
8076 if (write (fd, data, pagesize) != pagesize)
8077 return 3;
8078 close (fd);
8080 /* Next, check that the tail of a page is zero-filled. File must have
8081 non-zero length, otherwise we risk SIGBUS for entire page. */
8082 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8083 if (fd2 < 0)
8084 return 4;
8085 data2 = "";
8086 if (write (fd2, data2, 1) != 1)
8087 return 5;
8088 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8089 if (data2 == MAP_FAILED)
8090 return 6;
8091 for (i = 0; i < pagesize; ++i)
8092 if (*(data2 + i))
8093 return 7;
8094 close (fd2);
8095 if (munmap (data2, pagesize))
8096 return 8;
8098 /* Next, try to mmap the file at a fixed address which already has
8099 something else allocated at it. If we can, also make sure that
8100 we see the same garbage. */
8101 fd = open ("conftest.mmap", O_RDWR);
8102 if (fd < 0)
8103 return 9;
8104 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8105 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8106 return 10;
8107 for (i = 0; i < pagesize; ++i)
8108 if (*(data + i) != *(data2 + i))
8109 return 11;
8111 /* Finally, make sure that changes to the mapped area do not
8112 percolate back to the file as seen by read(). (This is a bug on
8113 some variants of i386 svr4.0.) */
8114 for (i = 0; i < pagesize; ++i)
8115 *(data2 + i) = *(data2 + i) + 1;
8116 data3 = (char *) malloc (pagesize);
8117 if (!data3)
8118 return 12;
8119 if (read (fd, data3, pagesize) != pagesize)
8120 return 13;
8121 for (i = 0; i < pagesize; ++i)
8122 if (*(data + i) != *(data3 + i))
8123 return 14;
8124 close (fd);
8125 return 0;
8127 _ACEOF
8128 if ac_fn_c_try_run "$LINENO"; then :
8129 ac_cv_func_mmap_fixed_mapped=yes
8130 else
8131 ac_cv_func_mmap_fixed_mapped=no
8133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8134 conftest.$ac_objext conftest.beam conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8139 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8140 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8142 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8145 rm -f conftest.mmap conftest.txt
8147 if test $use_mmap_for_buffers = yes; then
8149 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8151 REL_ALLOC=no
8154 LIBS="$LIBS_SYSTEM $LIBS"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8157 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8158 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 ac_check_lib_save_LIBS=$LIBS
8162 LIBS="-ldnet $LIBS"
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8169 #ifdef __cplusplus
8170 extern "C"
8171 #endif
8172 char dnet_ntoa ();
8174 main ()
8176 return dnet_ntoa ();
8178 return 0;
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 ac_cv_lib_dnet_dnet_ntoa=yes
8183 else
8184 ac_cv_lib_dnet_dnet_ntoa=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 LIBS=$ac_check_lib_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8191 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8192 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_LIBDNET 1
8195 _ACEOF
8197 LIBS="-ldnet $LIBS"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8203 $as_echo_n "checking for main in -lXbsd... " >&6; }
8204 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-lXbsd $LIBS"
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8214 main ()
8216 return main ();
8218 return 0;
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 ac_cv_lib_Xbsd_main=yes
8223 else
8224 ac_cv_lib_Xbsd_main=no
8226 rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8231 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8232 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8233 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8238 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8239 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-lpthreads $LIBS"
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8247 /* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 char cma_open ();
8255 main ()
8257 return cma_open ();
8259 return 0;
8261 _ACEOF
8262 if ac_fn_c_try_link "$LINENO"; then :
8263 ac_cv_lib_pthreads_cma_open=yes
8264 else
8265 ac_cv_lib_pthreads_cma_open=no
8267 rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
8269 LIBS=$ac_check_lib_save_LIBS
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8272 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8273 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_LIBPTHREADS 1
8276 _ACEOF
8278 LIBS="-lpthreads $LIBS"
8283 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8284 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8285 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8286 ## added to LIBS in configure would never contain the pthreads part,
8287 ## but the value used in Makefiles might. FIXME?
8289 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8290 ## be harmless on older versions of X where it happens to exist.
8291 test "$opsys" = "aix4-2" && \
8292 test $ac_cv_lib_pthreads_cma_open = yes && \
8293 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8296 case ${host_os} in
8297 aix*)
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8299 $as_echo_n "checking for -bbigtoc option... " >&6; }
8300 if test "${gdb_cv_bigtoc+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8304 case $GCC in
8305 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8306 *) gdb_cv_bigtoc=-bbigtoc ;;
8307 esac
8309 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8314 main ()
8316 int i;
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8323 else
8324 gdb_cv_bigtoc=
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8331 $as_echo "$gdb_cv_bigtoc" >&6; }
8333 esac
8335 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8336 # used for the tests that follow. We set them back to REAL_CFLAGS and
8337 # REAL_CPPFLAGS later on.
8339 REAL_CFLAGS="$CFLAGS"
8340 REAL_CPPFLAGS="$CPPFLAGS"
8342 if test "${HAVE_X11}" = "yes"; then
8343 DEFS="$C_SWITCH_X_SITE $DEFS"
8344 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8345 LIBS="-lX11 $LIBS"
8346 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8347 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8349 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8350 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8351 # but it's more convenient here to set LD_RUN_PATH
8352 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8353 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8354 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8355 export LD_RUN_PATH
8358 if test "${opsys}" = "gnu-linux"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8360 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8365 main ()
8367 XOpenDisplay ("foo");
8369 return 0;
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 xlinux_first_failure=no
8374 else
8375 xlinux_first_failure=yes
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 if test "${xlinux_first_failure}" = "yes"; then
8380 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8381 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8382 OLD_CPPFLAGS="$CPPFLAGS"
8383 OLD_LIBS="$LIBS"
8384 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8385 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8386 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8387 LIBS="$LIBS -b i486-linuxaout"
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8392 main ()
8394 XOpenDisplay ("foo");
8396 return 0;
8398 _ACEOF
8399 if ac_fn_c_try_link "$LINENO"; then :
8400 xlinux_second_failure=no
8401 else
8402 xlinux_second_failure=yes
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 if test "${xlinux_second_failure}" = "yes"; then
8407 # If we get the same failure with -b, there is no use adding -b.
8408 # So take it out. This plays safe.
8409 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8410 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8411 CPPFLAGS="$OLD_CPPFLAGS"
8412 LIBS="$OLD_LIBS"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8417 $as_echo "yes" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8425 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8426 # header files included from there.
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8428 $as_echo_n "checking for Xkb... " >&6; }
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #include <X11/Xlib.h>
8432 #include <X11/XKBlib.h>
8434 main ()
8436 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8438 return 0;
8440 _ACEOF
8441 if ac_fn_c_try_link "$LINENO"; then :
8442 emacs_xkb=yes
8443 else
8444 emacs_xkb=no
8446 rm -f core conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8449 $as_echo "$emacs_xkb" >&6; }
8450 if test $emacs_xkb = yes; then
8452 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8456 for ac_func in XrmSetDatabase XScreenResourceString \
8457 XScreenNumberOfScreen XSetWMProtocols
8458 do :
8459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8461 eval as_val=\$$as_ac_var
8462 if test "x$as_val" = x""yes; then :
8463 cat >>confdefs.h <<_ACEOF
8464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8465 _ACEOF
8468 done
8472 if test "${window_system}" = "x11"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8474 $as_echo_n "checking X11 version 6... " >&6; }
8475 if test "${emacs_cv_x11_version_6+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <X11/Xlib.h>
8482 main ()
8484 #if XlibSpecificationRelease < 6
8485 fail;
8486 #endif
8489 return 0;
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"; then :
8493 emacs_cv_x11_version_6=yes
8494 else
8495 emacs_cv_x11_version_6=no
8497 rm -f core conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8501 if test $emacs_cv_x11_version_6 = yes; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8503 $as_echo "6 or newer" >&6; }
8505 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8508 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8510 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8511 ## XIM support.
8512 case "$opsys" in
8513 sol2-*) : ;;
8515 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8518 esac
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8521 $as_echo "before 6" >&6; }
8526 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8527 HAVE_RSVG=no
8528 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8529 if test "${with_rsvg}" != "no"; then
8530 RSVG_REQUIRED=2.11.0
8531 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8534 succeeded=no
8536 # Extract the first word of "pkg-config", so it can be a program name with args.
8537 set dummy pkg-config; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 case $PKG_CONFIG in
8544 [\\/]* | ?:[\\/]*)
8545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8563 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8565 esac
8567 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8568 if test -n "$PKG_CONFIG"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8570 $as_echo "$PKG_CONFIG" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8578 if test "$PKG_CONFIG" = "no" ; then
8580 else
8581 PKG_CONFIG_MIN_VERSION=0.9.0
8582 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8584 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8586 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588 $as_echo "yes" >&6; }
8589 succeeded=yes
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8592 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8593 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8595 $as_echo "$RSVG_CFLAGS" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8598 $as_echo_n "checking RSVG_LIBS... " >&6; }
8599 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8601 $as_echo "$RSVG_LIBS" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 RSVG_CFLAGS=""
8606 RSVG_LIBS=""
8607 ## If we have a custom action on failure, don't print errors, but
8608 ## do set a variable so people can do so.
8609 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8615 else
8616 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8617 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8621 if test $succeeded = yes; then
8622 HAVE_RSVG=yes
8623 else
8630 if test $HAVE_RSVG = yes; then
8632 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8634 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8635 LIBS="$RSVG_LIBS $LIBS"
8640 HAVE_IMAGEMAGICK=no
8641 if test "${HAVE_X11}" = "yes"; then
8642 if test "${with_imagemagick}" != "no"; then
8643 IMAGEMAGICK_MODULE="Wand"
8645 succeeded=no
8647 # Extract the first word of "pkg-config", so it can be a program name with args.
8648 set dummy pkg-config; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $PKG_CONFIG in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8676 esac
8678 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8679 if test -n "$PKG_CONFIG"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8681 $as_echo "$PKG_CONFIG" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8689 if test "$PKG_CONFIG" = "no" ; then
8691 else
8692 PKG_CONFIG_MIN_VERSION=0.9.0
8693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8695 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8697 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8699 $as_echo "yes" >&6; }
8700 succeeded=yes
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8703 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8704 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8706 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8709 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8710 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8712 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 IMAGEMAGICK_CFLAGS=""
8717 IMAGEMAGICK_LIBS=""
8718 ## If we have a custom action on failure, don't print errors, but
8719 ## do set a variable so people can do so.
8720 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8726 else
8727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8732 if test $succeeded = yes; then
8733 HAVE_IMAGEMAGICK=yes
8734 else
8741 if test $HAVE_IMAGEMAGICK = yes; then
8743 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8745 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8746 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8747 for ac_func in MagickExportImagePixels
8748 do :
8749 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8750 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8751 cat >>confdefs.h <<_ACEOF
8752 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8753 _ACEOF
8756 done
8763 HAVE_GTK=no
8764 if test "${with_gtk3}" = "yes"; then
8765 GLIB_REQUIRED=2.6
8766 GTK_REQUIRED=2.90
8767 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8770 succeeded=no
8772 # Extract the first word of "pkg-config", so it can be a program name with args.
8773 set dummy pkg-config; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 case $PKG_CONFIG in
8780 [\\/]* | ?:[\\/]*)
8781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8795 done
8796 done
8797 IFS=$as_save_IFS
8799 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8801 esac
8803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8804 if test -n "$PKG_CONFIG"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8806 $as_echo "$PKG_CONFIG" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8814 if test "$PKG_CONFIG" = "no" ; then
8815 pkg_check_gtk=no
8816 else
8817 PKG_CONFIG_MIN_VERSION=0.9.0
8818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8820 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8822 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 $as_echo "yes" >&6; }
8825 succeeded=yes
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8828 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8829 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8831 $as_echo "$GTK_CFLAGS" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8834 $as_echo_n "checking GTK_LIBS... " >&6; }
8835 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8837 $as_echo "$GTK_LIBS" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 GTK_CFLAGS=""
8842 GTK_LIBS=""
8843 ## If we have a custom action on failure, don't print errors, but
8844 ## do set a variable so people can do so.
8845 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8851 else
8852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8857 if test $succeeded = yes; then
8858 pkg_check_gtk=yes
8859 else
8860 pkg_check_gtk=no
8863 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8864 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8868 if test "$pkg_check_gtk" != "yes"; then
8869 HAVE_GTK=no
8870 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8871 GLIB_REQUIRED=2.6
8872 GTK_REQUIRED=2.6
8873 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8876 succeeded=no
8878 # Extract the first word of "pkg-config", so it can be a program name with args.
8879 set dummy pkg-config; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 case $PKG_CONFIG in
8886 [\\/]* | ?:[\\/]*)
8887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8901 done
8902 done
8903 IFS=$as_save_IFS
8905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8907 esac
8909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8910 if test -n "$PKG_CONFIG"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8912 $as_echo "$PKG_CONFIG" >&6; }
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8920 if test "$PKG_CONFIG" = "no" ; then
8921 pkg_check_gtk=no
8922 else
8923 PKG_CONFIG_MIN_VERSION=0.9.0
8924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8926 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8928 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8930 $as_echo "yes" >&6; }
8931 succeeded=yes
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8934 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8935 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8937 $as_echo "$GTK_CFLAGS" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8940 $as_echo_n "checking GTK_LIBS... " >&6; }
8941 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8943 $as_echo "$GTK_LIBS" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8947 GTK_CFLAGS=""
8948 GTK_LIBS=""
8949 ## If we have a custom action on failure, don't print errors, but
8950 ## do set a variable so people can do so.
8951 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8957 else
8958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8963 if test $succeeded = yes; then
8964 pkg_check_gtk=yes
8965 else
8966 pkg_check_gtk=no
8969 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8970 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8975 GTK_OBJ=
8976 if test x"$pkg_check_gtk" = xyes; then
8980 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8981 CFLAGS="$CFLAGS $GTK_CFLAGS"
8982 LIBS="$GTK_LIBS $LIBS"
8983 GTK_COMPILES=no
8984 for ac_func in gtk_main
8985 do :
8986 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8987 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8988 cat >>confdefs.h <<_ACEOF
8989 #define HAVE_GTK_MAIN 1
8990 _ACEOF
8991 GTK_COMPILES=yes
8993 done
8995 if test "${GTK_COMPILES}" != "yes"; then
8996 if test "$USE_X_TOOLKIT" != "maybe"; then
8997 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8999 else
9000 HAVE_GTK=yes
9002 $as_echo "#define USE_GTK 1" >>confdefs.h
9004 GTK_OBJ=gtkutil.o
9005 USE_X_TOOLKIT=none
9006 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9010 closing open displays. This is no problem if you just use
9011 one display, but if you use more than one and close one of them
9012 Emacs may crash." >&5
9013 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9014 closing open displays. This is no problem if you just use
9015 one display, but if you use more than one and close one of them
9016 Emacs may crash." >&2;}
9017 sleep 3
9025 if test "${HAVE_GTK}" = "yes"; then
9027 if test "$with_toolkit_scroll_bars" != no; then
9028 with_toolkit_scroll_bars=yes
9031 HAVE_GTK_FILE_SELECTION=no
9032 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9033 #include <gtk/gtk.h>
9035 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9036 HAVE_GTK_FILE_SELECTION=yes
9037 else
9038 HAVE_GTK_FILE_SELECTION=no
9041 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9042 for ac_func in gtk_file_selection_new
9043 do :
9044 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9045 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9046 cat >>confdefs.h <<_ACEOF
9047 #define HAVE_GTK_FILE_SELECTION_NEW 1
9048 _ACEOF
9051 done
9055 HAVE_GTK_AND_PTHREAD=no
9056 for ac_header in pthread.h
9057 do :
9058 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9059 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_PTHREAD_H 1
9062 _ACEOF
9066 done
9068 if test "$ac_cv_header_pthread_h"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9070 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9071 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lpthread $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char pthread_self ();
9087 main ()
9089 return pthread_self ();
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ac_cv_lib_pthread_pthread_self=yes
9096 else
9097 ac_cv_lib_pthread_pthread_self=no
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 LIBS=$ac_check_lib_save_LIBS
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9104 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9105 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9106 HAVE_GTK_AND_PTHREAD=yes
9110 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9111 case "${canonical}" in
9112 *-hpux*) ;;
9113 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9114 esac
9116 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9120 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9121 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9122 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9123 gtk_orientable_set_orientation
9124 do :
9125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9127 eval as_val=\$$as_ac_var
9128 if test "x$as_val" = x""yes; then :
9129 cat >>confdefs.h <<_ACEOF
9130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9131 _ACEOF
9134 done
9139 HAVE_DBUS=no
9140 DBUS_OBJ=
9141 if test "${with_dbus}" = "yes"; then
9143 succeeded=no
9145 # Extract the first word of "pkg-config", so it can be a program name with args.
9146 set dummy pkg-config; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 case $PKG_CONFIG in
9153 [\\/]* | ?:[\\/]*)
9154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9168 done
9169 done
9170 IFS=$as_save_IFS
9172 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9174 esac
9176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9177 if test -n "$PKG_CONFIG"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9179 $as_echo "$PKG_CONFIG" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test "$PKG_CONFIG" = "no" ; then
9188 HAVE_DBUS=no
9189 else
9190 PKG_CONFIG_MIN_VERSION=0.9.0
9191 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9193 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9195 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9197 $as_echo "yes" >&6; }
9198 succeeded=yes
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9201 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9202 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9204 $as_echo "$DBUS_CFLAGS" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9207 $as_echo_n "checking DBUS_LIBS... " >&6; }
9208 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9210 $as_echo "$DBUS_LIBS" >&6; }
9211 else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 DBUS_CFLAGS=""
9215 DBUS_LIBS=""
9216 ## If we have a custom action on failure, don't print errors, but
9217 ## do set a variable so people can do so.
9218 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9224 else
9225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9230 if test $succeeded = yes; then
9231 HAVE_DBUS=yes
9232 else
9233 HAVE_DBUS=no
9236 if test "$HAVE_DBUS" = yes; then
9237 LIBS="$LIBS $DBUS_LIBS"
9239 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9241 for ac_func in dbus_watch_get_unix_fd
9242 do :
9243 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9244 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9245 cat >>confdefs.h <<_ACEOF
9246 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9247 _ACEOF
9250 done
9252 DBUS_OBJ=dbusbind.o
9257 HAVE_GCONF=no
9258 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9260 succeeded=no
9262 # Extract the first word of "pkg-config", so it can be a program name with args.
9263 set dummy pkg-config; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 case $PKG_CONFIG in
9270 [\\/]* | ?:[\\/]*)
9271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 for as_dir in $PATH
9277 IFS=$as_save_IFS
9278 test -z "$as_dir" && as_dir=.
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9283 break 2
9285 done
9286 done
9287 IFS=$as_save_IFS
9289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9291 esac
9293 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9294 if test -n "$PKG_CONFIG"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9296 $as_echo "$PKG_CONFIG" >&6; }
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9304 if test "$PKG_CONFIG" = "no" ; then
9305 HAVE_GCONF=no
9306 else
9307 PKG_CONFIG_MIN_VERSION=0.9.0
9308 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9310 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9312 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9314 $as_echo "yes" >&6; }
9315 succeeded=yes
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9318 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9319 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9321 $as_echo "$GCONF_CFLAGS" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9324 $as_echo_n "checking GCONF_LIBS... " >&6; }
9325 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9327 $as_echo "$GCONF_LIBS" >&6; }
9328 else
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 $as_echo "no" >&6; }
9331 GCONF_CFLAGS=""
9332 GCONF_LIBS=""
9333 ## If we have a custom action on failure, don't print errors, but
9334 ## do set a variable so people can do so.
9335 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9341 else
9342 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9343 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9347 if test $succeeded = yes; then
9348 HAVE_GCONF=yes
9349 else
9350 HAVE_GCONF=no
9353 if test "$HAVE_GCONF" = yes; then
9355 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9360 HAVE_LIBSELINUX=no
9361 LIBSELINUX_LIBS=
9362 if test "${with_selinux}" = "yes"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9364 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9365 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lselinux $LIBS"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char lgetfilecon ();
9381 main ()
9383 return lgetfilecon ();
9385 return 0;
9387 _ACEOF
9388 if ac_fn_c_try_link "$LINENO"; then :
9389 ac_cv_lib_selinux_lgetfilecon=yes
9390 else
9391 ac_cv_lib_selinux_lgetfilecon=no
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LIBS=$ac_check_lib_save_LIBS
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9398 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9399 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9400 HAVE_LIBSELINUX=yes
9401 else
9402 HAVE_LIBSELINUX=no
9405 if test "$HAVE_LIBSELINUX" = yes; then
9407 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9409 LIBSELINUX_LIBS=-lselinux
9414 HAVE_GNUTLS=no
9415 if test "${with_gnutls}" = "yes" ; then
9417 succeeded=no
9419 # Extract the first word of "pkg-config", so it can be a program name with args.
9420 set dummy pkg-config; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $PKG_CONFIG in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9446 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9448 esac
9450 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9451 if test -n "$PKG_CONFIG"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9453 $as_echo "$PKG_CONFIG" >&6; }
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9461 if test "$PKG_CONFIG" = "no" ; then
9462 HAVE_GNUTLS=no
9463 else
9464 PKG_CONFIG_MIN_VERSION=0.9.0
9465 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9467 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9469 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9471 $as_echo "yes" >&6; }
9472 succeeded=yes
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9475 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9476 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9478 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9481 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9482 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9484 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9485 else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488 LIBGNUTLS_CFLAGS=""
9489 LIBGNUTLS_LIBS=""
9490 ## If we have a custom action on failure, don't print errors, but
9491 ## do set a variable so people can do so.
9492 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9498 else
9499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9504 if test $succeeded = yes; then
9505 HAVE_GNUTLS=yes
9506 else
9507 HAVE_GNUTLS=no
9510 if test "${HAVE_GNUTLS}" = "yes"; then
9512 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9519 HAVE_XAW3D=no
9520 LUCID_LIBW=
9521 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9522 if test "$with_xaw3d" != no; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9524 $as_echo_n "checking for xaw3d... " >&6; }
9525 if test "${emacs_cv_xaw3d+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 #include <X11/Intrinsic.h>
9532 #include <X11/Xaw3d/Simple.h>
9534 main ()
9538 return 0;
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542 emacs_cv_xaw3d=yes
9543 else
9544 emacs_cv_xaw3d=no
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9550 else
9551 emacs_cv_xaw3d=no
9553 if test $emacs_cv_xaw3d = yes; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9555 $as_echo "yes; using Lucid toolkit" >&6; }
9556 USE_X_TOOLKIT=LUCID
9557 HAVE_XAW3D=yes
9558 LUCID_LIBW=-lXaw3d
9560 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9566 $as_echo_n "checking for libXaw... " >&6; }
9567 if test "${emacs_cv_xaw+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9573 #include <X11/Intrinsic.h>
9574 #include <X11/Xaw/Simple.h>
9576 main ()
9580 return 0;
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"; then :
9584 emacs_cv_xaw=yes
9585 else
9586 emacs_cv_xaw=no
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9592 if test $emacs_cv_xaw = yes; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9594 $as_echo "yes; using Lucid toolkit" >&6; }
9595 USE_X_TOOLKIT=LUCID
9596 LUCID_LIBW=-lXaw
9597 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9598 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9601 $as_echo "no; do not use toolkit by default" >&6; }
9602 USE_X_TOOLKIT=none
9607 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9609 LIBXTR6=
9610 if test "${USE_X_TOOLKIT}" != "none"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9612 $as_echo_n "checking X11 toolkit version... " >&6; }
9613 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 #include <X11/Intrinsic.h>
9620 main ()
9622 #if XtSpecificationRelease < 6
9623 fail;
9624 #endif
9627 return 0;
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631 emacs_cv_x11_toolkit_version_6=yes
9632 else
9633 emacs_cv_x11_toolkit_version_6=no
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9639 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9640 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9642 $as_echo "6 or newer" >&6; }
9644 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9646 LIBXTR6="-lSM -lICE"
9647 case "$opsys" in
9648 ## Use libw.a along with X11R6 Xt.
9649 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9650 esac
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9653 $as_echo "before 6" >&6; }
9656 OLDLIBS="$LIBS"
9657 if test x$HAVE_X11XTR6 = xyes; then
9658 LIBS="-lXt -lSM -lICE $LIBS"
9659 else
9660 LIBS="-lXt $LIBS"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9663 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9664 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 ac_check_lib_save_LIBS=$LIBS
9668 LIBS="-lXmu $LIBS"
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char XmuConvertStandardSelection ();
9680 main ()
9682 return XmuConvertStandardSelection ();
9684 return 0;
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"; then :
9688 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9689 else
9690 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9692 rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9697 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9698 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_LIBXMU 1
9701 _ACEOF
9703 LIBS="-lXmu $LIBS"
9707 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9711 LIBXMU=-lXmu
9712 case "$machine" in
9713 ## These machines don't supply Xmu.
9714 hpux* | aix4-2 )
9715 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9717 esac
9720 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9721 if test "${HAVE_X11}" = "yes"; then
9722 if test "${USE_X_TOOLKIT}" != "none"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9724 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9725 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lXext $LIBS"
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9733 /* Override any GCC internal prototype to avoid an error.
9734 Use char because int might match the return type of a GCC
9735 builtin and then its argument prototype would still apply. */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 char XShapeQueryExtension ();
9741 main ()
9743 return XShapeQueryExtension ();
9745 return 0;
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749 ac_cv_lib_Xext_XShapeQueryExtension=yes
9750 else
9751 ac_cv_lib_Xext_XShapeQueryExtension=no
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9758 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9759 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9760 cat >>confdefs.h <<_ACEOF
9761 #define HAVE_LIBXEXT 1
9762 _ACEOF
9764 LIBS="-lXext $LIBS"
9771 LIBXP=
9772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9774 $as_echo_n "checking for Motif version 2.1... " >&6; }
9775 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 #include <Xm/Xm.h>
9782 main ()
9784 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9785 int x = 5;
9786 #else
9787 Motif version prior to 2.1.
9788 #endif
9790 return 0;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 emacs_cv_motif_version_2_1=yes
9795 else
9796 emacs_cv_motif_version_2_1=no
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9801 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9802 if test $emacs_cv_motif_version_2_1 = yes; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9804 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9805 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 ac_check_lib_save_LIBS=$LIBS
9809 LIBS="-lXp $LIBS"
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816 #ifdef __cplusplus
9817 extern "C"
9818 #endif
9819 char XpCreateContext ();
9821 main ()
9823 return XpCreateContext ();
9825 return 0;
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829 ac_cv_lib_Xp_XpCreateContext=yes
9830 else
9831 ac_cv_lib_Xp_XpCreateContext=no
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_check_lib_save_LIBS
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9838 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9839 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9840 LIBXP=-lXp
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9845 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9846 if test "${emacs_cv_lesstif+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 # We put this in CFLAGS temporarily to precede other -I options
9850 # that might be in CFLAGS temporarily.
9851 # We put this in CPPFLAGS where it precedes the other -I options.
9852 OLD_CPPFLAGS=$CPPFLAGS
9853 OLD_CFLAGS=$CFLAGS
9854 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9855 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9860 main ()
9862 int x = 5;
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 emacs_cv_lesstif=yes
9869 else
9870 emacs_cv_lesstif=no
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9875 $as_echo "$emacs_cv_lesstif" >&6; }
9876 if test $emacs_cv_lesstif = yes; then
9877 # Make sure this -I option remains in CPPFLAGS after it is set
9878 # back to REAL_CPPFLAGS.
9879 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9880 # have those other -I options anyway. Ultimately, having this
9881 # directory ultimately in CPPFLAGS will be enough.
9882 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9883 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9884 else
9885 CFLAGS=$OLD_CFLAGS
9886 CPPFLAGS=$OLD_CPPFLAGS
9892 USE_TOOLKIT_SCROLL_BARS=no
9893 if test "${with_toolkit_scroll_bars}" != "no"; then
9894 if test "${USE_X_TOOLKIT}" != "none"; then
9895 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9896 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9898 HAVE_XAW3D=no
9899 USE_TOOLKIT_SCROLL_BARS=yes
9900 elif test "${HAVE_XAW3D}" = "yes"; then
9901 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9903 USE_TOOLKIT_SCROLL_BARS=yes
9905 elif test "${HAVE_GTK}" = "yes"; then
9906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9908 USE_TOOLKIT_SCROLL_BARS=yes
9909 elif test "${HAVE_NS}" = "yes"; then
9910 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9912 USE_TOOLKIT_SCROLL_BARS=yes
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9919 #include <X11/Xlib.h>
9920 #include <X11/Xresource.h>
9922 main ()
9924 XIMProc callback;
9926 return 0;
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 HAVE_XIM=yes
9932 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9934 else
9935 HAVE_XIM=no
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 if test "${with_xim}" != "no"; then
9942 $as_echo "#define USE_XIM 1" >>confdefs.h
9947 if test "${HAVE_XIM}" != "no"; then
9948 late_CFLAGS=$CFLAGS
9949 if test "$GCC" = yes; then
9950 CFLAGS="$CFLAGS --pedantic-errors"
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 #include <X11/Xlib.h>
9956 #include <X11/Xresource.h>
9958 main ()
9960 Display *display;
9961 XrmDatabase db;
9962 char *res_name;
9963 char *res_class;
9964 XIMProc callback;
9965 XPointer *client_data;
9966 #ifndef __GNUC__
9967 /* If we're not using GCC, it's probably not XFree86, and this is
9968 probably right, but we can't use something like --pedantic-errors. */
9969 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9970 char*, XIMProc, XPointer*);
9971 #endif
9972 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9973 client_data);
9975 return 0;
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"; then :
9979 emacs_cv_arg6_star=yes
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 if test "$emacs_cv_arg6_star" = yes; then
9983 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9985 else
9986 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9989 CFLAGS=$late_CFLAGS
9992 ### Start of font-backend (under any platform) section.
9993 # (nothing here yet -- this is a placeholder)
9994 ### End of font-backend (under any platform) section.
9996 ### Start of font-backend (under X11) section.
9997 if test "${HAVE_X11}" = "yes"; then
9999 succeeded=no
10001 # Extract the first word of "pkg-config", so it can be a program name with args.
10002 set dummy pkg-config; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 case $PKG_CONFIG in
10009 [\\/]* | ?:[\\/]*)
10010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10024 done
10025 done
10026 IFS=$as_save_IFS
10028 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10030 esac
10032 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10033 if test -n "$PKG_CONFIG"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10035 $as_echo "$PKG_CONFIG" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10043 if test "$PKG_CONFIG" = "no" ; then
10044 HAVE_FC=no
10045 else
10046 PKG_CONFIG_MIN_VERSION=0.9.0
10047 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10049 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10051 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10053 $as_echo "yes" >&6; }
10054 succeeded=yes
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10057 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10058 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10060 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10063 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10064 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10066 $as_echo "$FONTCONFIG_LIBS" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 FONTCONFIG_CFLAGS=""
10071 FONTCONFIG_LIBS=""
10072 ## If we have a custom action on failure, don't print errors, but
10073 ## do set a variable so people can do so.
10074 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10080 else
10081 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10082 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10086 if test $succeeded = yes; then
10087 HAVE_FC=yes
10088 else
10089 HAVE_FC=no
10093 ## Use -lXft if available, unless `--with-xft=no'.
10094 HAVE_XFT=maybe
10095 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10096 with_xft="no";
10098 if test "x${with_xft}" != "xno"; then
10101 succeeded=no
10103 # Extract the first word of "pkg-config", so it can be a program name with args.
10104 set dummy pkg-config; ac_word=$2
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 case $PKG_CONFIG in
10111 [\\/]* | ?:[\\/]*)
10112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10128 IFS=$as_save_IFS
10130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10132 esac
10134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10135 if test -n "$PKG_CONFIG"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10137 $as_echo "$PKG_CONFIG" >&6; }
10138 else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10145 if test "$PKG_CONFIG" = "no" ; then
10146 HAVE_XFT=no
10147 else
10148 PKG_CONFIG_MIN_VERSION=0.9.0
10149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10151 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10153 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10155 $as_echo "yes" >&6; }
10156 succeeded=yes
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10159 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10160 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10162 $as_echo "$XFT_CFLAGS" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10165 $as_echo_n "checking XFT_LIBS... " >&6; }
10166 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10168 $as_echo "$XFT_LIBS" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10172 XFT_CFLAGS=""
10173 XFT_LIBS=""
10174 ## If we have a custom action on failure, don't print errors, but
10175 ## do set a variable so people can do so.
10176 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10182 else
10183 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10184 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10188 if test $succeeded = yes; then
10190 else
10191 HAVE_XFT=no
10194 ## Because xftfont.c uses XRenderQueryExtension, we also
10195 ## need to link to -lXrender.
10196 HAVE_XRENDER=no
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10198 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10199 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-lXrender $LIBS"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char XRenderQueryExtension ();
10215 main ()
10217 return XRenderQueryExtension ();
10219 return 0;
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10224 else
10225 ac_cv_lib_Xrender_XRenderQueryExtension=no
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10232 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10233 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10234 HAVE_XRENDER=yes
10237 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10238 OLD_CPPFLAGS="$CPPFLAGS"
10239 OLD_CFLAGS="$CFLAGS"
10240 OLD_LIBS="$LIBS"
10241 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10242 CFLAGS="$CFLAGS $XFT_CFLAGS"
10243 XFT_LIBS="-lXrender $XFT_LIBS"
10244 LIBS="$XFT_LIBS $LIBS"
10245 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10246 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10248 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10249 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lXft $XFT_LIBS $LIBS"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char XftFontOpen ();
10265 main ()
10267 return XftFontOpen ();
10269 return 0;
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273 ac_cv_lib_Xft_XftFontOpen=yes
10274 else
10275 ac_cv_lib_Xft_XftFontOpen=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10282 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10283 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10284 HAVE_XFT=yes
10291 if test "${HAVE_XFT}" = "yes"; then
10293 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10296 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10297 else
10298 CPPFLAGS="$OLD_CPPFLAGS"
10299 CFLAGS="$OLD_CFLAGS"
10300 LIBS="$OLD_LIBS"
10301 fi # "${HAVE_XFT}" = "yes"
10302 fi # "$HAVE_XFT" != no
10303 fi # "x${with_xft}" != "xno"
10305 if test "$HAVE_XFT" != "yes"; then
10306 HAVE_XFT=no
10310 HAVE_FREETYPE=no
10311 ## We used to allow building with FreeType and without Xft.
10312 ## However, the ftx font backend driver is not in good shape.
10313 if test "${HAVE_XFT}" = "yes"; then
10314 HAVE_FREETYPE=yes
10315 FONTCONFIG_CFLAGS=
10316 FONTCONFIG_LIBS=
10319 HAVE_LIBOTF=no
10320 if test "${HAVE_FREETYPE}" = "yes"; then
10322 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10324 if test "${with_libotf}" != "no"; then
10326 succeeded=no
10328 # Extract the first word of "pkg-config", so it can be a program name with args.
10329 set dummy pkg-config; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 case $PKG_CONFIG in
10336 [\\/]* | ?:[\\/]*)
10337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10357 esac
10359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10360 if test -n "$PKG_CONFIG"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10362 $as_echo "$PKG_CONFIG" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10370 if test "$PKG_CONFIG" = "no" ; then
10371 HAVE_LIBOTF=no
10372 else
10373 PKG_CONFIG_MIN_VERSION=0.9.0
10374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10376 $as_echo_n "checking for libotf... " >&6; }
10378 if $PKG_CONFIG --exists "libotf" 2>&5; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10380 $as_echo "yes" >&6; }
10381 succeeded=yes
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10384 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10385 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10387 $as_echo "$LIBOTF_CFLAGS" >&6; }
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10390 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10391 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10393 $as_echo "$LIBOTF_LIBS" >&6; }
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10397 LIBOTF_CFLAGS=""
10398 LIBOTF_LIBS=""
10399 ## If we have a custom action on failure, don't print errors, but
10400 ## do set a variable so people can do so.
10401 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10407 else
10408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10413 if test $succeeded = yes; then
10414 HAVE_LIBOTF=yes
10415 else
10416 HAVE_LIBOTF=no
10419 if test "$HAVE_LIBOTF" = "yes"; then
10421 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10424 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10425 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 ac_check_lib_save_LIBS=$LIBS
10429 LIBS="-lotf $LIBS"
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10433 /* Override any GCC internal prototype to avoid an error.
10434 Use char because int might match the return type of a GCC
10435 builtin and then its argument prototype would still apply. */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 char OTF_get_variation_glyphs ();
10441 main ()
10443 return OTF_get_variation_glyphs ();
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10450 else
10451 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10458 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10459 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10460 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10461 else
10462 HAVE_OTF_GET_VARIATION_GLYPHS=no
10465 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10467 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10474 HAVE_M17N_FLT=no
10475 if test "${HAVE_LIBOTF}" = yes; then
10476 if test "${with_m17n_flt}" != "no"; then
10478 succeeded=no
10480 # Extract the first word of "pkg-config", so it can be a program name with args.
10481 set dummy pkg-config; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 case $PKG_CONFIG in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10507 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10509 esac
10511 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10512 if test -n "$PKG_CONFIG"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10514 $as_echo "$PKG_CONFIG" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$PKG_CONFIG" = "no" ; then
10523 HAVE_M17N_FLT=no
10524 else
10525 PKG_CONFIG_MIN_VERSION=0.9.0
10526 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10528 $as_echo_n "checking for m17n-flt... " >&6; }
10530 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10532 $as_echo "yes" >&6; }
10533 succeeded=yes
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10536 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10537 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10539 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10542 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10543 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10545 $as_echo "$M17N_FLT_LIBS" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 M17N_FLT_CFLAGS=""
10550 M17N_FLT_LIBS=""
10551 ## If we have a custom action on failure, don't print errors, but
10552 ## do set a variable so people can do so.
10553 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10559 else
10560 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10561 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10565 if test $succeeded = yes; then
10566 HAVE_M17N_FLT=yes
10567 else
10568 HAVE_M17N_FLT=no
10571 if test "$HAVE_M17N_FLT" = "yes"; then
10573 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10578 else
10579 HAVE_XFT=no
10580 HAVE_FREETYPE=no
10581 HAVE_LIBOTF=no
10582 HAVE_M17N_FLT=no
10585 ### End of font-backend (under X11) section.
10596 ### Use -lXpm if available, unless `--with-xpm=no'.
10597 HAVE_XPM=no
10598 LIBXPM=
10599 if test "${HAVE_X11}" = "yes"; then
10600 if test "${with_xpm}" != "no"; then
10601 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10602 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10604 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10605 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lXpm -lX11 $LIBS"
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char XpmReadFileToPixmap ();
10621 main ()
10623 return XpmReadFileToPixmap ();
10625 return 0;
10627 _ACEOF
10628 if ac_fn_c_try_link "$LINENO"; then :
10629 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10630 else
10631 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10633 rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10638 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10639 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10640 HAVE_XPM=yes
10646 if test "${HAVE_XPM}" = "yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10648 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include "X11/xpm.h"
10652 #ifndef XpmReturnAllocPixels
10653 no_return_alloc_pixels
10654 #endif
10656 _ACEOF
10657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10658 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10659 HAVE_XPM=no
10660 else
10661 HAVE_XPM=yes
10663 rm -f conftest*
10666 if test "${HAVE_XPM}" = "yes"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10668 $as_echo "yes" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10676 if test "${HAVE_XPM}" = "yes"; then
10678 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10680 LIBXPM=-lXpm
10685 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10686 HAVE_JPEG=no
10687 LIBJPEG=
10688 if test "${HAVE_X11}" = "yes"; then
10689 if test "${with_jpeg}" != "no"; then
10690 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10691 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10693 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10694 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-ljpeg $LIBS"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char jpeg_destroy_compress ();
10710 main ()
10712 return jpeg_destroy_compress ();
10714 return 0;
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10719 else
10720 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10727 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10728 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10729 HAVE_JPEG=yes
10737 if test "${HAVE_JPEG}" = "yes"; then
10738 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <jpeglib.h>
10743 version=JPEG_LIB_VERSION
10745 _ACEOF
10746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10748 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10752 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10753 HAVE_JPEG=no
10755 rm -f conftest*
10758 if test "${HAVE_JPEG}" = "yes"; then
10759 LIBJPEG=-ljpeg
10764 ### Use -lpng if available, unless `--with-png=no'.
10765 HAVE_PNG=no
10766 LIBPNG=
10767 if test "${HAVE_X11}" = "yes"; then
10768 if test "${with_png}" != "no"; then
10769 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10770 # in /usr/include/libpng.
10771 for ac_header in png.h libpng/png.h
10772 do :
10773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10775 eval as_val=\$$as_ac_Header
10776 if test "x$as_val" = x""yes; then :
10777 cat >>confdefs.h <<_ACEOF
10778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779 _ACEOF
10783 done
10785 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10787 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10788 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-lpng -lz -lm $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char png_get_channels ();
10804 main ()
10806 return png_get_channels ();
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_png_png_get_channels=yes
10813 else
10814 ac_cv_lib_png_png_get_channels=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10821 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10822 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10823 HAVE_PNG=yes
10829 if test "${HAVE_PNG}" = "yes"; then
10831 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10833 LIBPNG="-lpng -lz -lm"
10838 ### Use -ltiff if available, unless `--with-tiff=no'.
10839 HAVE_TIFF=no
10840 LIBTIFF=
10841 if test "${HAVE_X11}" = "yes"; then
10842 if test "${with_tiff}" != "no"; then
10843 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10844 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10845 tifflibs="-lz -lm"
10846 # At least one tiff package requires the jpeg library.
10847 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10849 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10850 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-ltiff $tifflibs $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char TIFFGetVersion ();
10866 main ()
10868 return TIFFGetVersion ();
10870 return 0;
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_tiff_TIFFGetVersion=yes
10875 else
10876 ac_cv_lib_tiff_TIFFGetVersion=no
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10883 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10884 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10885 HAVE_TIFF=yes
10893 if test "${HAVE_TIFF}" = "yes"; then
10895 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10897 LIBTIFF=-ltiff
10902 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10903 HAVE_GIF=no
10904 LIBGIF=
10905 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10906 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10908 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10909 # Earlier versions can crash Emacs.
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10911 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10912 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-lgif $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char EGifPutExtensionLast ();
10928 main ()
10930 return EGifPutExtensionLast ();
10932 return 0;
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_gif_EGifPutExtensionLast=yes
10937 else
10938 ac_cv_lib_gif_EGifPutExtensionLast=no
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10945 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10946 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10947 HAVE_GIF=yes
10948 else
10949 HAVE_GIF=maybe
10956 if test "$HAVE_GIF" = yes; then
10957 LIBGIF=-lgif
10958 elif test "$HAVE_GIF" = maybe; then
10959 # If gif_lib.h but no libgif, try libungif.
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10961 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10962 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lungif $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char EGifPutExtensionLast ();
10978 main ()
10980 return EGifPutExtensionLast ();
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10987 else
10988 ac_cv_lib_ungif_EGifPutExtensionLast=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10995 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10996 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10997 HAVE_GIF=yes
10998 else
10999 HAVE_GIF=no
11002 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11005 if test "${HAVE_GIF}" = "yes"; then
11007 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11013 if test "${HAVE_X11}" = "yes"; then
11014 MISSING=""
11015 WITH_NO=""
11016 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11017 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11018 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11019 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11020 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11021 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11022 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11023 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11024 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11025 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11027 if test "X${MISSING}" != X; then
11028 as_fn_error "The following required libraries were not found:
11029 $MISSING
11030 Maybe some development libraries/packages are missing?
11031 If you don't want to link with them give
11032 $WITH_NO
11033 as options to configure" "$LINENO" 5
11037 ### Use -lgpm if available, unless `--with-gpm=no'.
11038 HAVE_GPM=no
11039 LIBGPM=
11040 MOUSE_SUPPORT=
11041 if test "${with_gpm}" != "no"; then
11042 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11043 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11045 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11046 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lgpm $LIBS"
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char Gpm_Open ();
11062 main ()
11064 return Gpm_Open ();
11066 return 0;
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 ac_cv_lib_gpm_Gpm_Open=yes
11071 else
11072 ac_cv_lib_gpm_Gpm_Open=no
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11079 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11080 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11081 HAVE_GPM=yes
11088 if test "${HAVE_GPM}" = "yes"; then
11090 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11092 LIBGPM=-lgpm
11093 ## May be reset below.
11094 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11099 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11100 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11102 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11108 C_SWITCH_X_SYSTEM=
11109 ### Use NeXTstep API to implement GUI.
11110 if test "${HAVE_NS}" = "yes"; then
11112 $as_echo "#define HAVE_NS 1" >>confdefs.h
11114 if test "${NS_IMPL_COCOA}" = "yes"; then
11116 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11118 GNU_OBJC_CFLAGS=
11120 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11122 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11124 # See also .m.o rule in Makefile.in */
11125 # FIXME: are all these flags really needed? Document here why. */
11126 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11127 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11129 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11131 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11134 # We also have mouse menus.
11135 HAVE_MENUS=yes
11136 OTHER_FILES=ns-app
11140 ### Use session management (-lSM -lICE) if available
11141 HAVE_X_SM=no
11142 LIBXSM=
11143 if test "${HAVE_X11}" = "yes"; then
11144 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11145 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11147 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11148 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-lSM -lICE $LIBS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char SmcOpenConnection ();
11164 main ()
11166 return SmcOpenConnection ();
11168 return 0;
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_SM_SmcOpenConnection=yes
11173 else
11174 ac_cv_lib_SM_SmcOpenConnection=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11181 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11182 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11183 HAVE_X_SM=yes
11190 if test "${HAVE_X_SM}" = "yes"; then
11192 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11194 LIBXSM="-lSM -lICE"
11195 case "$LIBS" in
11196 *-lSM*) ;;
11197 *) LIBS="$LIBXSM $LIBS" ;;
11198 esac
11203 ### Use libxml (-lxml2) if available
11204 if test "${with_xml2}" != "no"; then
11205 ### I'm not sure what the version number should be, so I just guessed.
11207 succeeded=no
11209 # Extract the first word of "pkg-config", so it can be a program name with args.
11210 set dummy pkg-config; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 case $PKG_CONFIG in
11217 [\\/]* | ?:[\\/]*)
11218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11232 done
11233 done
11234 IFS=$as_save_IFS
11236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11238 esac
11240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11241 if test -n "$PKG_CONFIG"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11243 $as_echo "$PKG_CONFIG" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11251 if test "$PKG_CONFIG" = "no" ; then
11252 HAVE_LIBXML2=no
11253 else
11254 PKG_CONFIG_MIN_VERSION=0.9.0
11255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11257 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11259 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; }
11262 succeeded=yes
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11265 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11266 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11268 $as_echo "$LIBXML2_CFLAGS" >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11271 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11272 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11274 $as_echo "$LIBXML2_LIBS" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278 LIBXML2_CFLAGS=""
11279 LIBXML2_LIBS=""
11280 ## If we have a custom action on failure, don't print errors, but
11281 ## do set a variable so people can do so.
11282 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11288 else
11289 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11290 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11294 if test $succeeded = yes; then
11295 HAVE_LIBXML2=yes
11296 else
11297 HAVE_LIBXML2=no
11300 if test "${HAVE_LIBXML2}" = "yes"; then
11301 LIBS="$LIBXML2_LIBS $LIBS"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11303 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11304 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 ac_check_lib_save_LIBS=$LIBS
11308 LIBS="-lxml2 $LIBS"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char htmlReadMemory ();
11320 main ()
11322 return htmlReadMemory ();
11324 return 0;
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_lib_xml2_htmlReadMemory=yes
11329 else
11330 ac_cv_lib_xml2_htmlReadMemory=no
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11337 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11338 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11339 HAVE_LIBXML2=yes
11340 else
11341 HAVE_LIBXML2=no
11344 if test "${HAVE_LIBXML2}" = "yes"; then
11346 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11348 else
11349 LIBXML2_LIBS=""
11350 LIBXML2_CFLAGS=""
11357 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11359 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11360 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365 #include <netdb.h>
11367 main ()
11369 return h_errno;
11371 return 0;
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 emacs_cv_netdb_declares_h_errno=yes
11376 else
11377 emacs_cv_netdb_declares_h_errno=no
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11383 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11384 if test $emacs_cv_netdb_declares_h_errno = yes; then
11386 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11390 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11391 # for constant arguments. Useless!
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11393 $as_echo_n "checking for working alloca.h... " >&6; }
11394 if test "${ac_cv_working_alloca_h+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <alloca.h>
11401 main ()
11403 char *p = (char *) alloca (2 * sizeof (int));
11404 if (p) return 0;
11406 return 0;
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_working_alloca_h=yes
11411 else
11412 ac_cv_working_alloca_h=no
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11418 $as_echo "$ac_cv_working_alloca_h" >&6; }
11419 if test $ac_cv_working_alloca_h = yes; then
11421 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11426 $as_echo_n "checking for alloca... " >&6; }
11427 if test "${ac_cv_func_alloca_works+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #ifdef __GNUC__
11433 # define alloca __builtin_alloca
11434 #else
11435 # ifdef _MSC_VER
11436 # include <malloc.h>
11437 # define alloca _alloca
11438 # else
11439 # ifdef HAVE_ALLOCA_H
11440 # include <alloca.h>
11441 # else
11442 # ifdef _AIX
11443 #pragma alloca
11444 # else
11445 # ifndef alloca /* predefined by HP cc +Olibcalls */
11446 char *alloca ();
11447 # endif
11448 # endif
11449 # endif
11450 # endif
11451 #endif
11454 main ()
11456 char *p = (char *) alloca (1);
11457 if (p) return 0;
11459 return 0;
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 ac_cv_func_alloca_works=yes
11464 else
11465 ac_cv_func_alloca_works=no
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11471 $as_echo "$ac_cv_func_alloca_works" >&6; }
11473 if test $ac_cv_func_alloca_works = yes; then
11475 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11477 else
11478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11479 # that cause trouble. Some versions do not even contain alloca or
11480 # contain a buggy version. If you still want to use their alloca,
11481 # use ar to extract alloca.o from them instead of compiling alloca.c.
11483 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11485 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11489 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11490 if test "${ac_cv_os_cray+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #if defined CRAY && ! defined CRAY2
11496 webecray
11497 #else
11498 wenotbecray
11499 #endif
11501 _ACEOF
11502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11503 $EGREP "webecray" >/dev/null 2>&1; then :
11504 ac_cv_os_cray=yes
11505 else
11506 ac_cv_os_cray=no
11508 rm -f conftest*
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11512 $as_echo "$ac_cv_os_cray" >&6; }
11513 if test $ac_cv_os_cray = yes; then
11514 for ac_func in _getb67 GETB67 getb67; do
11515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11517 eval as_val=\$$as_ac_var
11518 if test "x$as_val" = x""yes; then :
11520 cat >>confdefs.h <<_ACEOF
11521 #define CRAY_STACKSEG_END $ac_func
11522 _ACEOF
11524 break
11527 done
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11531 $as_echo_n "checking stack direction for C alloca... " >&6; }
11532 if test "${ac_cv_c_stack_direction+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 if test "$cross_compiling" = yes; then :
11536 ac_cv_c_stack_direction=0
11537 else
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 $ac_includes_default
11542 find_stack_direction ()
11544 static char *addr = 0;
11545 auto char dummy;
11546 if (addr == 0)
11548 addr = &dummy;
11549 return find_stack_direction ();
11551 else
11552 return (&dummy > addr) ? 1 : -1;
11556 main ()
11558 return find_stack_direction () < 0;
11560 _ACEOF
11561 if ac_fn_c_try_run "$LINENO"; then :
11562 ac_cv_c_stack_direction=1
11563 else
11564 ac_cv_c_stack_direction=-1
11566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11567 conftest.$ac_objext conftest.beam conftest.$ac_ext
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11572 $as_echo "$ac_cv_c_stack_direction" >&6; }
11573 cat >>confdefs.h <<_ACEOF
11574 #define STACK_DIRECTION $ac_cv_c_stack_direction
11575 _ACEOF
11581 if test x"$ac_cv_func_alloca_works" != xyes; then
11582 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11585 # fmod, logb, and frexp are found in -lm on most systems.
11586 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11588 $as_echo_n "checking for sqrt in -lm... " >&6; }
11589 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lm $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char sqrt ();
11605 main ()
11607 return sqrt ();
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_lib_m_sqrt=yes
11614 else
11615 ac_cv_lib_m_sqrt=no
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11622 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11623 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11624 cat >>confdefs.h <<_ACEOF
11625 #define HAVE_LIBM 1
11626 _ACEOF
11628 LIBS="-lm $LIBS"
11633 # Check for mail-locking functions in a "mail" library. Probably this should
11634 # have the same check as for liblockfile below.
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11636 $as_echo_n "checking for maillock in -lmail... " >&6; }
11637 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lmail $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char maillock ();
11653 main ()
11655 return maillock ();
11657 return 0;
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_mail_maillock=yes
11662 else
11663 ac_cv_lib_mail_maillock=no
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11670 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11671 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11672 have_mail=yes
11673 else
11674 have_mail=no
11677 if test $have_mail = yes; then
11678 LIBS_MAIL=-lmail
11679 LIBS="$LIBS_MAIL $LIBS"
11681 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11683 else
11684 LIBS_MAIL=
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11687 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11688 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-llockfile $LIBS"
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 /* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699 #ifdef __cplusplus
11700 extern "C"
11701 #endif
11702 char maillock ();
11704 main ()
11706 return maillock ();
11708 return 0;
11710 _ACEOF
11711 if ac_fn_c_try_link "$LINENO"; then :
11712 ac_cv_lib_lockfile_maillock=yes
11713 else
11714 ac_cv_lib_lockfile_maillock=no
11716 rm -f core conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11718 LIBS=$ac_check_lib_save_LIBS
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11721 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11722 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11723 have_lockfile=yes
11724 else
11725 have_lockfile=no
11728 if test $have_lockfile = yes; then
11729 LIBS_MAIL=-llockfile
11730 LIBS="$LIBS_MAIL $LIBS"
11732 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11734 else
11735 # If we have the shared liblockfile, assume we must use it for mail
11736 # locking (e.g. Debian). If we couldn't link against liblockfile
11737 # (no liblockfile.a installed), ensure that we don't need to.
11738 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11739 set dummy liblockfile.so; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -n "$liblockfile"; then
11746 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11750 for as_dir in $as_dummy
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_liblockfile="yes"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11764 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11767 liblockfile=$ac_cv_prog_liblockfile
11768 if test -n "$liblockfile"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11770 $as_echo "$liblockfile" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 if test $ac_cv_prog_liblockfile = yes; then
11778 as_fn_error "Shared liblockfile found but can't link against it.
11779 This probably means that movemail could lose mail.
11780 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11783 for ac_func in touchlock
11784 do :
11785 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11786 if test "x$ac_cv_func_touchlock" = x""yes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_TOUCHLOCK 1
11789 _ACEOF
11792 done
11794 for ac_header in maillock.h
11795 do :
11796 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11797 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11798 cat >>confdefs.h <<_ACEOF
11799 #define HAVE_MAILLOCK_H 1
11800 _ACEOF
11804 done
11808 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11809 ## interlock access to the mail spool. The alternative is a lock file named
11810 ## /usr/spool/mail/$USER.lock.
11811 mail_lock=no
11812 case "$opsys" in
11813 aix4-2) mail_lock="lockf" ;;
11815 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11817 ## On GNU/Linux systems, both methods are used by various mail programs.
11818 ## I assume most people are using newer mailers that have heard of flock.
11819 ## Change this if you need to.
11820 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11821 ## configure gets the right answers, and that means *NOT* using flock.
11822 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11823 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11824 ## Debian maintainer hasn't provided a clean fix for Emacs.
11825 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11826 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11827 ## correct logic. -- fx
11828 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11829 ## liblockfile is a Free Software replacement for libmail, used on
11830 ## Debian systems and elsewhere. -rfr.
11831 gnu-*)
11832 mail_lock="flock"
11833 if test $have_mail = yes || test $have_lockfile = yes; then
11834 test $ac_cv_header_maillock_h = yes && mail_lock=no
11837 esac
11839 BLESSMAIL_TARGET=
11840 case "$mail_lock" in
11841 flock)
11842 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11845 lockf)
11846 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11849 *) BLESSMAIL_TARGET="need-blessmail" ;;
11850 esac
11854 for ac_func in gethostname getdomainname dup2 \
11855 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11856 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11857 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11858 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11859 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11860 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11861 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11862 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11863 cfmakeraw cfsetspeed isnan copysign __executable_start
11864 do :
11865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11866 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11867 eval as_val=\$$as_ac_var
11868 if test "x$as_val" = x""yes; then :
11869 cat >>confdefs.h <<_ACEOF
11870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11871 _ACEOF
11874 done
11877 for ac_header in sys/un.h
11878 do :
11879 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11881 cat >>confdefs.h <<_ACEOF
11882 #define HAVE_SYS_UN_H 1
11883 _ACEOF
11887 done
11895 for ac_func in $ac_func_list
11896 do :
11897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11899 eval as_val=\$$as_ac_var
11900 if test "x$as_val" = x""yes; then :
11901 cat >>confdefs.h <<_ACEOF
11902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 _ACEOF
11906 done
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11913 $as_echo_n "checking for working mktime... " >&6; }
11914 if test "${ac_cv_func_working_mktime+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test "$cross_compiling" = yes; then :
11918 ac_cv_func_working_mktime=no
11919 else
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 /* Test program from Paul Eggert and Tony Leneis. */
11923 #ifdef TIME_WITH_SYS_TIME
11924 # include <sys/time.h>
11925 # include <time.h>
11926 #else
11927 # ifdef HAVE_SYS_TIME_H
11928 # include <sys/time.h>
11929 # else
11930 # include <time.h>
11931 # endif
11932 #endif
11934 #include <limits.h>
11935 #include <stdlib.h>
11937 #ifdef HAVE_UNISTD_H
11938 # include <unistd.h>
11939 #endif
11941 #ifndef HAVE_ALARM
11942 # define alarm(X) /* empty */
11943 #endif
11945 /* Work around redefinition to rpl_putenv by other config tests. */
11946 #undef putenv
11948 static time_t time_t_max;
11949 static time_t time_t_min;
11951 /* Values we'll use to set the TZ environment variable. */
11952 static char *tz_strings[] = {
11953 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11954 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11956 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11958 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11959 Based on a problem report from Andreas Jaeger. */
11960 static int
11961 spring_forward_gap ()
11963 /* glibc (up to about 1998-10-07) failed this test. */
11964 struct tm tm;
11966 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11967 instead of "TZ=America/Vancouver" in order to detect the bug even
11968 on systems that don't support the Olson extension, or don't have the
11969 full zoneinfo tables installed. */
11970 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11972 tm.tm_year = 98;
11973 tm.tm_mon = 3;
11974 tm.tm_mday = 5;
11975 tm.tm_hour = 2;
11976 tm.tm_min = 0;
11977 tm.tm_sec = 0;
11978 tm.tm_isdst = -1;
11979 return mktime (&tm) != (time_t) -1;
11982 static int
11983 mktime_test1 (now)
11984 time_t now;
11986 struct tm *lt;
11987 return ! (lt = localtime (&now)) || mktime (lt) == now;
11990 static int
11991 mktime_test (now)
11992 time_t now;
11994 return (mktime_test1 (now)
11995 && mktime_test1 ((time_t) (time_t_max - now))
11996 && mktime_test1 ((time_t) (time_t_min + now)));
11999 static int
12000 irix_6_4_bug ()
12002 /* Based on code from Ariel Faigon. */
12003 struct tm tm;
12004 tm.tm_year = 96;
12005 tm.tm_mon = 3;
12006 tm.tm_mday = 0;
12007 tm.tm_hour = 0;
12008 tm.tm_min = 0;
12009 tm.tm_sec = 0;
12010 tm.tm_isdst = -1;
12011 mktime (&tm);
12012 return tm.tm_mon == 2 && tm.tm_mday == 31;
12015 static int
12016 bigtime_test (j)
12017 int j;
12019 struct tm tm;
12020 time_t now;
12021 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12022 now = mktime (&tm);
12023 if (now != (time_t) -1)
12025 struct tm *lt = localtime (&now);
12026 if (! (lt
12027 && lt->tm_year == tm.tm_year
12028 && lt->tm_mon == tm.tm_mon
12029 && lt->tm_mday == tm.tm_mday
12030 && lt->tm_hour == tm.tm_hour
12031 && lt->tm_min == tm.tm_min
12032 && lt->tm_sec == tm.tm_sec
12033 && lt->tm_yday == tm.tm_yday
12034 && lt->tm_wday == tm.tm_wday
12035 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12036 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12037 return 0;
12039 return 1;
12042 static int
12043 year_2050_test ()
12045 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12046 ignoring leap seconds. */
12047 unsigned long int answer = 2527315200UL;
12049 struct tm tm;
12050 time_t t;
12051 tm.tm_year = 2050 - 1900;
12052 tm.tm_mon = 2 - 1;
12053 tm.tm_mday = 1;
12054 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12055 tm.tm_isdst = -1;
12057 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12058 instead of "TZ=America/Vancouver" in order to detect the bug even
12059 on systems that don't support the Olson extension, or don't have the
12060 full zoneinfo tables installed. */
12061 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12063 t = mktime (&tm);
12065 /* Check that the result is either a failure, or close enough
12066 to the correct answer that we can assume the discrepancy is
12067 due to leap seconds. */
12068 return (t == (time_t) -1
12069 || (0 < t && answer - 120 <= t && t <= answer + 120));
12073 main ()
12075 time_t t, delta;
12076 int i, j;
12078 /* This test makes some buggy mktime implementations loop.
12079 Give up after 60 seconds; a mktime slower than that
12080 isn't worth using anyway. */
12081 alarm (60);
12083 for (;;)
12085 t = (time_t_max << 1) + 1;
12086 if (t <= time_t_max)
12087 break;
12088 time_t_max = t;
12090 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12092 delta = time_t_max / 997; /* a suitable prime number */
12093 for (i = 0; i < N_STRINGS; i++)
12095 if (tz_strings[i])
12096 putenv (tz_strings[i]);
12098 for (t = 0; t <= time_t_max - delta; t += delta)
12099 if (! mktime_test (t))
12100 return 1;
12101 if (! (mktime_test ((time_t) 1)
12102 && mktime_test ((time_t) (60 * 60))
12103 && mktime_test ((time_t) (60 * 60 * 24))))
12104 return 1;
12106 for (j = 1; ; j <<= 1)
12107 if (! bigtime_test (j))
12108 return 1;
12109 else if (INT_MAX / 2 < j)
12110 break;
12111 if (! bigtime_test (INT_MAX))
12112 return 1;
12114 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12116 _ACEOF
12117 if ac_fn_c_try_run "$LINENO"; then :
12118 ac_cv_func_working_mktime=yes
12119 else
12120 ac_cv_func_working_mktime=no
12122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12123 conftest.$ac_objext conftest.beam conftest.$ac_ext
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12128 $as_echo "$ac_cv_func_working_mktime" >&6; }
12129 if test $ac_cv_func_working_mktime = no; then
12130 case " $LIBOBJS " in
12131 *" mktime.$ac_objext "* ) ;;
12132 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12134 esac
12138 if test "$ac_cv_func_working_mktime" = no; then
12140 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12144 ac_have_func=no # yes means we've found a way to get the load average.
12146 # Make sure getloadavg.c is where it belongs, at configure-time.
12147 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12148 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12150 ac_save_LIBS=$LIBS
12152 # Check for getloadavg, but be sure not to touch the cache variable.
12153 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12154 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12155 exit 0
12156 else
12157 exit 1
12159 ) && ac_have_func=yes
12161 # On HPUX9, an unprivileged user can get load averages through this function.
12162 for ac_func in pstat_getdynamic
12163 do :
12164 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12165 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_PSTAT_GETDYNAMIC 1
12168 _ACEOF
12171 done
12174 # Solaris has libkstat which does not require root.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12176 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12177 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lkstat $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char kstat_open ();
12193 main ()
12195 return kstat_open ();
12197 return 0;
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"; then :
12201 ac_cv_lib_kstat_kstat_open=yes
12202 else
12203 ac_cv_lib_kstat_kstat_open=no
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12210 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12211 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_LIBKSTAT 1
12214 _ACEOF
12216 LIBS="-lkstat $LIBS"
12220 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12222 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12223 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12224 # to get the right answer into the cache.
12225 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12226 if test $ac_have_func = no; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12228 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12229 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lelf $LIBS"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char elf_begin ();
12245 main ()
12247 return elf_begin ();
12249 return 0;
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_lib_elf_elf_begin=yes
12254 else
12255 ac_cv_lib_elf_elf_begin=no
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 LIBS=$ac_check_lib_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12262 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12263 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12264 LIBS="-lelf $LIBS"
12268 if test $ac_have_func = no; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12270 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12271 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lkvm $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char kvm_open ();
12287 main ()
12289 return kvm_open ();
12291 return 0;
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 ac_cv_lib_kvm_kvm_open=yes
12296 else
12297 ac_cv_lib_kvm_kvm_open=no
12299 rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12304 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12305 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12306 LIBS="-lkvm $LIBS"
12309 # Check for the 4.4BSD definition of getloadavg.
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12311 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12312 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-lutil $LIBS"
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char getloadavg ();
12328 main ()
12330 return getloadavg ();
12332 return 0;
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336 ac_cv_lib_util_getloadavg=yes
12337 else
12338 ac_cv_lib_util_getloadavg=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12345 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12346 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12347 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12352 if test $ac_have_func = no; then
12353 # There is a commonly available library for RS/6000 AIX.
12354 # Since it is not a standard part of AIX, it might be installed locally.
12355 ac_getloadavg_LIBS=$LIBS
12356 LIBS="-L/usr/local/lib $LIBS"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12358 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12359 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lgetloadavg $LIBS"
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12367 /* Override any GCC internal prototype to avoid an error.
12368 Use char because int might match the return type of a GCC
12369 builtin and then its argument prototype would still apply. */
12370 #ifdef __cplusplus
12371 extern "C"
12372 #endif
12373 char getloadavg ();
12375 main ()
12377 return getloadavg ();
12379 return 0;
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383 ac_cv_lib_getloadavg_getloadavg=yes
12384 else
12385 ac_cv_lib_getloadavg_getloadavg=no
12387 rm -f core conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12392 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12393 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12394 LIBS="-lgetloadavg $LIBS"
12395 else
12396 LIBS=$ac_getloadavg_LIBS
12401 # Make sure it is really in the library, if we think we found it,
12402 # otherwise set up the replacement function.
12403 for ac_func in getloadavg
12404 do :
12405 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12406 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_GETLOADAVG 1
12409 _ACEOF
12411 else
12412 case " $LIBOBJS " in
12413 *" getloadavg.$ac_objext "* ) ;;
12414 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12416 esac
12419 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12421 # Figure out what our getloadavg.c needs.
12422 ac_have_func=no
12423 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12424 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12425 ac_have_func=yes
12427 $as_echo "#define DGUX 1" >>confdefs.h
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12430 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12431 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-ldgc $LIBS"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char dg_sys_info ();
12447 main ()
12449 return dg_sys_info ();
12451 return 0;
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_dgc_dg_sys_info=yes
12456 else
12457 ac_cv_lib_dgc_dg_sys_info=no
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12464 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12465 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_LIBDGC 1
12468 _ACEOF
12470 LIBS="-ldgc $LIBS"
12478 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12479 if test "x$ac_cv_header_locale_h" = x""yes; then :
12484 for ac_func in setlocale
12485 do :
12486 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12487 if test "x$ac_cv_func_setlocale" = x""yes; then :
12488 cat >>confdefs.h <<_ACEOF
12489 #define HAVE_SETLOCALE 1
12490 _ACEOF
12493 done
12496 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12497 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12498 # Irix 4.0.5F has the header but not the library.
12499 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12500 ac_have_func=yes
12502 $as_echo "#define SVR4 1" >>confdefs.h
12506 if test $ac_have_func = no; then
12507 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12508 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12509 ac_have_func=yes
12511 $as_echo "#define UMAX 1" >>confdefs.h
12514 $as_echo "#define UMAX4_3 1" >>confdefs.h
12521 if test $ac_have_func = no; then
12522 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12523 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12524 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12531 if test $ac_have_func = no; then
12532 for ac_header in mach/mach.h
12533 do :
12534 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_MACH_MACH_H 1
12538 _ACEOF
12542 done
12546 for ac_header in nlist.h
12547 do :
12548 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12549 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12550 cat >>confdefs.h <<_ACEOF
12551 #define HAVE_NLIST_H 1
12552 _ACEOF
12553 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12555 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12557 cat >>confdefs.h <<_ACEOF
12558 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12559 _ACEOF
12562 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12569 done
12572 done
12575 # Some definitions of getloadavg require that the program be installed setgid.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12577 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12578 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12584 #ifdef LDAV_PRIVILEGED
12585 Yowza Am I SETGID yet
12586 #endif
12587 _ACEOF
12588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12589 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12590 ac_cv_func_getloadavg_setgid=yes
12591 else
12592 ac_cv_func_getloadavg_setgid=no
12594 rm -f conftest*
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12598 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12599 if test $ac_cv_func_getloadavg_setgid = yes; then
12600 NEED_SETGID=true
12602 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12604 else
12605 NEED_SETGID=false
12608 if test $ac_cv_func_getloadavg_setgid = yes; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12610 $as_echo_n "checking group of /dev/kmem... " >&6; }
12611 if test "${ac_cv_group_kmem+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12615 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12616 # If we got an error (system does not support symlinks), try without -L.
12617 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12618 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12619 | sed -ne 's/[ ][ ]*/ /g;
12620 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12621 / /s/.* //;p;'`
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12625 $as_echo "$ac_cv_group_kmem" >&6; }
12626 KMEM_GROUP=$ac_cv_group_kmem
12628 if test "x$ac_save_LIBS" = x; then
12629 GETLOADAVG_LIBS=$LIBS
12630 else
12631 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12633 LIBS=$ac_save_LIBS
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12638 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12639 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 while :; do
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <sys/types.h> /* for off_t */
12646 #include <stdio.h>
12648 main ()
12650 int (*fp) (FILE *, off_t, int) = fseeko;
12651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12653 return 0;
12655 _ACEOF
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 ac_cv_sys_largefile_source=no; break
12659 rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663 #define _LARGEFILE_SOURCE 1
12664 #include <sys/types.h> /* for off_t */
12665 #include <stdio.h>
12667 main ()
12669 int (*fp) (FILE *, off_t, int) = fseeko;
12670 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12672 return 0;
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_sys_largefile_source=1; break
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 ac_cv_sys_largefile_source=unknown
12681 break
12682 done
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12685 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12686 case $ac_cv_sys_largefile_source in #(
12687 no | unknown) ;;
12689 cat >>confdefs.h <<_ACEOF
12690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12691 _ACEOF
12693 esac
12694 rm -rf conftest*
12696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12697 # in glibc 2.1.3, but that breaks too many other things.
12698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12699 if test $ac_cv_sys_largefile_source != unknown; then
12701 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12706 # Configure getopt.
12707 # getopt.m4 serial 10
12709 # The getopt module assume you want GNU getopt, with getopt_long etc,
12710 # rather than vanilla POSIX getopt. This means your your code should
12711 # always include <getopt.h> for the getopt prototypes.
12723 # Prerequisites of lib/getopt*.
12728 GETOPT_H=
12729 for ac_header in getopt.h
12730 do :
12731 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12733 cat >>confdefs.h <<_ACEOF
12734 #define HAVE_GETOPT_H 1
12735 _ACEOF
12737 else
12738 GETOPT_H=getopt.h
12741 done
12743 if test -z "$GETOPT_H"; then
12744 for ac_func in getopt_long_only
12745 do :
12746 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12747 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12748 cat >>confdefs.h <<_ACEOF
12749 #define HAVE_GETOPT_LONG_ONLY 1
12750 _ACEOF
12752 else
12753 GETOPT_H=getopt.h
12755 done
12759 if test -z "$GETOPT_H"; then
12760 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12762 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12763 GETOPT_H=getopt.h
12768 if test -z "$GETOPT_H"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12770 $as_echo_n "checking for working GNU getopt function... " >&6; }
12771 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 if test "$cross_compiling" = yes; then :
12775 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12777 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12778 gl_cv_func_gnu_getopt=no
12779 else
12780 gl_cv_func_gnu_getopt=yes
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <getopt.h>
12788 main ()
12791 char *myargv[3];
12792 myargv[0] = "conftest";
12793 myargv[1] = "-+";
12794 myargv[2] = 0;
12795 return getopt (2, myargv, "+a") != '?';
12798 return 0;
12800 _ACEOF
12801 if ac_fn_c_try_run "$LINENO"; then :
12802 gl_cv_func_gnu_getopt=yes
12803 else
12804 gl_cv_func_gnu_getopt=no
12806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807 conftest.$ac_objext conftest.beam conftest.$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12812 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12813 if test "$gl_cv_func_gnu_getopt" = "no"; then
12814 GETOPT_H=getopt.h
12820 if test -n "$GETOPT_H"; then :
12823 GETOPT_H=getopt.h
12825 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12830 GETOPTOBJS='getopt.o getopt1.o'
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12837 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12838 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 # Use it with a single arg.
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12844 $ac_includes_default
12846 main ()
12848 getpgrp (0);
12850 return 0;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_func_getpgrp_void=no
12855 else
12856 ac_cv_func_getpgrp_void=yes
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12862 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12863 if test $ac_cv_func_getpgrp_void = yes; then
12865 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12870 for ac_func in strftime
12871 do :
12872 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12873 if test "x$ac_cv_func_strftime" = x""yes; then :
12874 cat >>confdefs.h <<_ACEOF
12875 #define HAVE_STRFTIME 1
12876 _ACEOF
12878 else
12879 # strftime is in -lintl on SCO UNIX.
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12881 $as_echo_n "checking for strftime in -lintl... " >&6; }
12882 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 ac_check_lib_save_LIBS=$LIBS
12886 LIBS="-lintl $LIBS"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 /* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12893 #ifdef __cplusplus
12894 extern "C"
12895 #endif
12896 char strftime ();
12898 main ()
12900 return strftime ();
12902 return 0;
12904 _ACEOF
12905 if ac_fn_c_try_link "$LINENO"; then :
12906 ac_cv_lib_intl_strftime=yes
12907 else
12908 ac_cv_lib_intl_strftime=no
12910 rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 LIBS=$ac_check_lib_save_LIBS
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12915 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12916 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12917 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12919 LIBS="-lintl $LIBS"
12923 done
12926 # UNIX98 PTYs.
12927 for ac_func in grantpt
12928 do :
12929 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12930 if test "x$ac_cv_func_grantpt" = x""yes; then :
12931 cat >>confdefs.h <<_ACEOF
12932 #define HAVE_GRANTPT 1
12933 _ACEOF
12936 done
12939 # PTY-related GNU extensions.
12940 for ac_func in getpt
12941 do :
12942 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12943 if test "x$ac_cv_func_getpt" = x""yes; then :
12944 cat >>confdefs.h <<_ACEOF
12945 #define HAVE_GETPT 1
12946 _ACEOF
12949 done
12952 # Check this now, so that we will NOT find the above functions in ncurses.
12953 # That is because we have not set up to link ncurses in lib-src.
12954 # It's better to believe a function is not available
12955 # than to expect to find it in ncurses.
12956 # Also we need tputs and friends to be able to build at all.
12957 have_tputs_et_al=true
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12959 $as_echo_n "checking for library containing tputs... " >&6; }
12960 if test "${ac_cv_search_tputs+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 ac_func_search_save_LIBS=$LIBS
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 char tputs ();
12975 main ()
12977 return tputs ();
12979 return 0;
12981 _ACEOF
12982 for ac_lib in '' ncurses terminfo termcap; do
12983 if test -z "$ac_lib"; then
12984 ac_res="none required"
12985 else
12986 ac_res=-l$ac_lib
12987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12989 if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_search_tputs=$ac_res
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext
12994 if test "${ac_cv_search_tputs+set}" = set; then :
12995 break
12997 done
12998 if test "${ac_cv_search_tputs+set}" = set; then :
13000 else
13001 ac_cv_search_tputs=no
13003 rm conftest.$ac_ext
13004 LIBS=$ac_func_search_save_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13007 $as_echo "$ac_cv_search_tputs" >&6; }
13008 ac_res=$ac_cv_search_tputs
13009 if test "$ac_res" != no; then :
13010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13012 else
13013 have_tputs_et_al=false
13016 if test "$have_tputs_et_al" != true; then
13017 as_fn_error "I couldn't find termcap functions (tputs and friends).
13018 Maybe some development libraries/packages are missing? Try installing
13019 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13021 # Must define this when any termcap library is found.
13023 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13025 ## FIXME This was the cpp logic, but I am not sure it is right.
13026 ## The above test has not necessarily found libncurses.
13027 HAVE_LIBNCURSES=yes
13029 ## Use terminfo instead of termcap?
13030 ## Note only system files NOT using terminfo are:
13031 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13032 ## darwin|gnu without ncurses.
13033 TERMINFO=no
13034 LIBS_TERMCAP=
13035 case "$opsys" in
13036 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13037 ## hpux10-20: Use the system provided termcap(3) library.
13038 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13039 ## is necessary. Otherwise Emacs dumps core when run -nw.
13040 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13042 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13043 ## The ncurses library has been moved out of the System framework in
13044 ## Mac OS X 10.2. So if configure detects it, set the command-line
13045 ## option to use it.
13046 darwin|gnu*)
13047 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13048 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13049 TERMINFO=yes
13050 LIBS_TERMCAP="-lncurses"
13054 freebsd)
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13056 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13057 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #include <osreldate.h>
13064 main ()
13066 #if __FreeBSD_version < 400000
13067 fail;
13068 #endif
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 emacs_cv_freebsd_terminfo=yes
13076 else
13077 emacs_cv_freebsd_terminfo=no
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13085 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13087 if test $emacs_cv_freebsd_terminfo = yes; then
13088 TERMINFO=yes
13089 LIBS_TERMCAP="-lncurses"
13090 else
13091 LIBS_TERMCAP="-ltermcap"
13095 netbsd)
13096 if test $ac_cv_search_tputs = -lterminfo; then
13097 TERMINFO=yes
13098 LIBS_TERMCAP="-lterminfo"
13099 else
13100 LIBS_TERMCAP="-ltermcap"
13104 esac
13106 case "$opsys" in
13107 ## hpux: Make sure we get select from libc rather than from libcurses
13108 ## because libcurses on HPUX 10.10 has a broken version of select.
13109 ## We used to use -lc -lcurses, but this may be cleaner.
13110 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13112 openbsd) LIBS_TERMCAP="-lncurses" ;;
13114 ## Must use system termcap, if we use any termcap. It does special things.
13115 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13116 esac
13118 TERMCAP_OBJ=tparam.o
13119 if test $TERMINFO = yes; then
13121 $as_echo "#define TERMINFO 1" >>confdefs.h
13124 ## Default used to be -ltermcap. Add a case above if need something else.
13125 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13127 TERMCAP_OBJ=terminfo.o
13133 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13134 resolv=no
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <netinet/in.h>
13138 #include <arpa/nameser.h>
13139 #include <resolv.h>
13141 main ()
13143 return res_init();
13145 return 0;
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 have_res_init=yes
13150 else
13151 have_res_init=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 if test "$have_res_init" = no; then
13156 OLIBS="$LIBS"
13157 LIBS="$LIBS -lresolv"
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13159 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 #include <netinet/in.h>
13163 #include <arpa/nameser.h>
13164 #include <resolv.h>
13166 main ()
13168 return res_init();
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 have_res_init=yes
13175 else
13176 have_res_init=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13181 $as_echo "$have_res_init" >&6; }
13182 if test "$have_res_init" = yes ; then
13183 resolv=yes
13185 LIBS="$OLIBS"
13188 if test "$have_res_init" = yes; then
13190 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13194 # Do we need the Hesiod library to provide the support routines?
13195 LIBHESIOD=
13196 if test "$with_hesiod" != no ; then
13197 # Don't set $LIBS here -- see comments above. FIXME which comments?
13198 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13199 if test "x$ac_cv_func_res_send" = x""yes; then :
13201 else
13202 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13203 if test "x$ac_cv_func___res_send" = x""yes; then :
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13207 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13208 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 ac_check_lib_save_LIBS=$LIBS
13212 LIBS="-lresolv $LIBS"
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13216 /* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219 #ifdef __cplusplus
13220 extern "C"
13221 #endif
13222 char res_send ();
13224 main ()
13226 return res_send ();
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_link "$LINENO"; then :
13232 ac_cv_lib_resolv_res_send=yes
13233 else
13234 ac_cv_lib_resolv_res_send=no
13236 rm -f core conftest.err conftest.$ac_objext \
13237 conftest$ac_exeext conftest.$ac_ext
13238 LIBS=$ac_check_lib_save_LIBS
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13241 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13242 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13243 resolv=yes
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13246 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13247 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-lresolv $LIBS"
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 /* Override any GCC internal prototype to avoid an error.
13256 Use char because int might match the return type of a GCC
13257 builtin and then its argument prototype would still apply. */
13258 #ifdef __cplusplus
13259 extern "C"
13260 #endif
13261 char __res_send ();
13263 main ()
13265 return __res_send ();
13267 return 0;
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"; then :
13271 ac_cv_lib_resolv___res_send=yes
13272 else
13273 ac_cv_lib_resolv___res_send=no
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13280 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13281 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13282 resolv=yes
13291 if test "$resolv" = yes ; then
13292 RESOLVLIB=-lresolv
13293 else
13294 RESOLVLIB=
13296 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13297 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13301 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13302 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-lhesiod $RESOLVLIB $LIBS"
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char hes_getmailhost ();
13318 main ()
13320 return hes_getmailhost ();
13322 return 0;
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 ac_cv_lib_hesiod_hes_getmailhost=yes
13327 else
13328 ac_cv_lib_hesiod_hes_getmailhost=no
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13335 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13336 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13337 hesiod=yes
13338 else
13345 if test x"$hesiod" = xyes; then
13347 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13349 LIBHESIOD=-lhesiod
13354 # Do we need libresolv (due to res_init or Hesiod)?
13355 if test "$resolv" = yes ; then
13357 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13359 LIBRESOLV=-lresolv
13360 else
13361 LIBRESOLV=
13365 # These tell us which Kerberos-related libraries to use.
13366 COM_ERRLIB=
13367 CRYPTOLIB=
13368 KRB5LIB=
13369 DESLIB=
13370 KRB4LIB=
13372 if test "${with_kerberos}" != no; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13374 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13375 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-lcom_err $LIBS"
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char com_err ();
13391 main ()
13393 return com_err ();
13395 return 0;
13397 _ACEOF
13398 if ac_fn_c_try_link "$LINENO"; then :
13399 ac_cv_lib_com_err_com_err=yes
13400 else
13401 ac_cv_lib_com_err_com_err=no
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13408 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13409 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13410 have_com_err=yes
13411 else
13412 have_com_err=no
13415 if test $have_com_err = yes; then
13416 COM_ERRLIB=-lcom_err
13417 LIBS="$COM_ERRLIB $LIBS"
13419 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13423 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13424 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-lcrypto $LIBS"
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13432 /* Override any GCC internal prototype to avoid an error.
13433 Use char because int might match the return type of a GCC
13434 builtin and then its argument prototype would still apply. */
13435 #ifdef __cplusplus
13436 extern "C"
13437 #endif
13438 char mit_des_cbc_encrypt ();
13440 main ()
13442 return mit_des_cbc_encrypt ();
13444 return 0;
13446 _ACEOF
13447 if ac_fn_c_try_link "$LINENO"; then :
13448 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13449 else
13450 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13452 rm -f core conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LIBS=$ac_check_lib_save_LIBS
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13457 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13458 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13459 have_crypto=yes
13460 else
13461 have_crypto=no
13464 if test $have_crypto = yes; then
13465 CRYPTOLIB=-lcrypto
13466 LIBS="$CRYPTOLIB $LIBS"
13468 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13472 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13473 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lk5crypto $LIBS"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13484 #ifdef __cplusplus
13485 extern "C"
13486 #endif
13487 char mit_des_cbc_encrypt ();
13489 main ()
13491 return mit_des_cbc_encrypt ();
13493 return 0;
13495 _ACEOF
13496 if ac_fn_c_try_link "$LINENO"; then :
13497 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13498 else
13499 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13506 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13507 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13508 have_k5crypto=yes
13509 else
13510 have_k5crypto=no
13513 if test $have_k5crypto = yes; then
13514 CRYPTOLIB=-lk5crypto
13515 LIBS="$CRYPTOLIB $LIBS"
13517 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13521 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13522 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 ac_check_lib_save_LIBS=$LIBS
13526 LIBS="-lkrb5 $LIBS"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char krb5_init_context ();
13538 main ()
13540 return krb5_init_context ();
13542 return 0;
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"; then :
13546 ac_cv_lib_krb5_krb5_init_context=yes
13547 else
13548 ac_cv_lib_krb5_krb5_init_context=no
13550 rm -f core conftest.err conftest.$ac_objext \
13551 conftest$ac_exeext conftest.$ac_ext
13552 LIBS=$ac_check_lib_save_LIBS
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13555 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13556 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13557 have_krb5=yes
13558 else
13559 have_krb5=no
13562 if test $have_krb5=yes; then
13563 KRB5LIB=-lkrb5
13564 LIBS="$KRB5LIB $LIBS"
13566 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13569 if test "${with_kerberos5}" = no; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13571 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13572 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-ldes425 $LIBS"
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char des_cbc_encrypt ();
13588 main ()
13590 return des_cbc_encrypt ();
13592 return 0;
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596 ac_cv_lib_des425_des_cbc_encrypt=yes
13597 else
13598 ac_cv_lib_des425_des_cbc_encrypt=no
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13605 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13606 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13607 have_des425=yes
13608 else
13609 have_des425=no
13612 if test $have_des425 = yes; then
13613 DESLIB=-ldes425
13614 LIBS="$DESLIB $LIBS"
13616 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13620 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13621 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 ac_check_lib_save_LIBS=$LIBS
13625 LIBS="-ldes $LIBS"
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char des_cbc_encrypt ();
13637 main ()
13639 return des_cbc_encrypt ();
13641 return 0;
13643 _ACEOF
13644 if ac_fn_c_try_link "$LINENO"; then :
13645 ac_cv_lib_des_des_cbc_encrypt=yes
13646 else
13647 ac_cv_lib_des_des_cbc_encrypt=no
13649 rm -f core conftest.err conftest.$ac_objext \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13654 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13655 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13656 have_des=yes
13657 else
13658 have_des=no
13661 if test $have_des = yes; then
13662 DESLIB=-ldes
13663 LIBS="$DESLIB $LIBS"
13665 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13670 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13671 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 ac_check_lib_save_LIBS=$LIBS
13675 LIBS="-lkrb4 $LIBS"
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char krb_get_cred ();
13687 main ()
13689 return krb_get_cred ();
13691 return 0;
13693 _ACEOF
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 ac_cv_lib_krb4_krb_get_cred=yes
13696 else
13697 ac_cv_lib_krb4_krb_get_cred=no
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701 LIBS=$ac_check_lib_save_LIBS
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13704 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13705 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13706 have_krb4=yes
13707 else
13708 have_krb4=no
13711 if test $have_krb4 = yes; then
13712 KRB4LIB=-lkrb4
13713 LIBS="$KRB4LIB $LIBS"
13715 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13719 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13720 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 ac_check_lib_save_LIBS=$LIBS
13724 LIBS="-lkrb $LIBS"
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13728 /* Override any GCC internal prototype to avoid an error.
13729 Use char because int might match the return type of a GCC
13730 builtin and then its argument prototype would still apply. */
13731 #ifdef __cplusplus
13732 extern "C"
13733 #endif
13734 char krb_get_cred ();
13736 main ()
13738 return krb_get_cred ();
13740 return 0;
13742 _ACEOF
13743 if ac_fn_c_try_link "$LINENO"; then :
13744 ac_cv_lib_krb_krb_get_cred=yes
13745 else
13746 ac_cv_lib_krb_krb_get_cred=no
13748 rm -f core conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
13750 LIBS=$ac_check_lib_save_LIBS
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13753 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13754 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13755 have_krb=yes
13756 else
13757 have_krb=no
13760 if test $have_krb = yes; then
13761 KRB4LIB=-lkrb
13762 LIBS="$KRB4LIB $LIBS"
13764 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13770 if test "${with_kerberos5}" != no; then
13771 for ac_header in krb5.h
13772 do :
13773 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13774 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_KRB5_H 1
13777 _ACEOF
13778 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13780 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_KRB5_ERROR_TEXT 1
13784 _ACEOF
13788 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13790 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_KRB5_ERROR_E_TEXT 1
13794 _ACEOF
13801 done
13803 else
13804 for ac_header in des.h
13805 do :
13806 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13807 if test "x$ac_cv_header_des_h" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_DES_H 1
13810 _ACEOF
13812 else
13813 for ac_header in kerberosIV/des.h
13814 do :
13815 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13816 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_KERBEROSIV_DES_H 1
13819 _ACEOF
13821 else
13822 for ac_header in kerberos/des.h
13823 do :
13824 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13825 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_KERBEROS_DES_H 1
13828 _ACEOF
13832 done
13836 done
13840 done
13842 for ac_header in krb.h
13843 do :
13844 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13845 if test "x$ac_cv_header_krb_h" = x""yes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 #define HAVE_KRB_H 1
13848 _ACEOF
13850 else
13851 for ac_header in kerberosIV/krb.h
13852 do :
13853 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13854 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_KERBEROSIV_KRB_H 1
13857 _ACEOF
13859 else
13860 for ac_header in kerberos/krb.h
13861 do :
13862 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13863 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define HAVE_KERBEROS_KRB_H 1
13866 _ACEOF
13870 done
13874 done
13878 done
13881 for ac_header in com_err.h
13882 do :
13883 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13884 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_COM_ERR_H 1
13887 _ACEOF
13891 done
13901 # Solaris requires -lintl if you want strerror (which calls dgettext)
13902 # to return localized messages.
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13904 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13905 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-lintl $LIBS"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char dgettext ();
13921 main ()
13923 return dgettext ();
13925 return 0;
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 ac_cv_lib_intl_dgettext=yes
13930 else
13931 ac_cv_lib_intl_dgettext=no
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13938 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13939 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_LIBINTL 1
13942 _ACEOF
13944 LIBS="-lintl $LIBS"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13950 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13951 if test "${emacs_cv_localtime_cache+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 if test x$ac_cv_func_tzset = xyes; then
13955 if test "$cross_compiling" = yes; then :
13956 # If we have tzset, assume the worst when cross-compiling.
13957 emacs_cv_localtime_cache=yes
13958 else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 #include <time.h>
13962 extern char **environ;
13963 unset_TZ ()
13965 char **from, **to;
13966 for (to = from = environ; (*to = *from); from++)
13967 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13968 to++;
13970 char TZ_GMT0[] = "TZ=GMT0";
13971 char TZ_PST8[] = "TZ=PST8";
13972 main()
13974 time_t now = time ((time_t *) 0);
13975 int hour_GMT0, hour_unset;
13976 if (putenv (TZ_GMT0) != 0)
13977 exit (1);
13978 hour_GMT0 = localtime (&now)->tm_hour;
13979 unset_TZ ();
13980 hour_unset = localtime (&now)->tm_hour;
13981 if (putenv (TZ_PST8) != 0)
13982 exit (1);
13983 if (localtime (&now)->tm_hour == hour_GMT0)
13984 exit (1);
13985 unset_TZ ();
13986 if (localtime (&now)->tm_hour != hour_unset)
13987 exit (1);
13988 exit (0);
13990 _ACEOF
13991 if ac_fn_c_try_run "$LINENO"; then :
13992 emacs_cv_localtime_cache=no
13993 else
13994 emacs_cv_localtime_cache=yes
13996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13997 conftest.$ac_objext conftest.beam conftest.$ac_ext
14000 else
14001 # If we lack tzset, report that localtime does not cache TZ,
14002 # since we can't invalidate the cache if we don't have tzset.
14003 emacs_cv_localtime_cache=no
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14007 $as_echo "$emacs_cv_localtime_cache" >&6; }
14008 if test $emacs_cv_localtime_cache = yes; then
14010 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14014 if test "x$HAVE_TIMEVAL" = xyes; then
14015 for ac_func in gettimeofday
14016 do :
14017 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14018 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_GETTIMEOFDAY 1
14021 _ACEOF
14024 done
14026 if test $ac_cv_func_gettimeofday = yes; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14028 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14029 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 #ifdef TIME_WITH_SYS_TIME
14036 #include <sys/time.h>
14037 #include <time.h>
14038 #else
14039 #ifdef HAVE_SYS_TIME_H
14040 #include <sys/time.h>
14041 #else
14042 #include <time.h>
14043 #endif
14044 #endif
14046 main ()
14048 struct timeval time;
14049 gettimeofday (&time, 0);
14051 return 0;
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055 emacs_cv_gettimeofday_two_arguments=yes
14056 else
14057 emacs_cv_gettimeofday_two_arguments=no
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14062 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14063 if test $emacs_cv_gettimeofday_two_arguments = no; then
14065 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14071 ok_so_far=yes
14072 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14073 if test "x$ac_cv_func_socket" = x""yes; then :
14075 else
14076 ok_so_far=no
14079 if test $ok_so_far = yes; then
14080 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14081 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14083 else
14084 ok_so_far=no
14089 if test $ok_so_far = yes; then
14090 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14091 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14093 else
14094 ok_so_far=no
14099 if test $ok_so_far = yes; then
14101 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14105 for ac_header in sys/ioctl.h
14106 do :
14107 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_SYS_IOCTL_H 1
14111 _ACEOF
14115 done
14118 if test -f /usr/lpp/X11/bin/smt.exp; then
14120 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14125 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14126 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14128 $as_echo "yes" >&6; }
14130 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14137 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14138 if test "x$ac_cv_type_pid_t" = x""yes; then :
14140 else
14142 cat >>confdefs.h <<_ACEOF
14143 #define pid_t int
14144 _ACEOF
14148 for ac_header in vfork.h
14149 do :
14150 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14151 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14152 cat >>confdefs.h <<_ACEOF
14153 #define HAVE_VFORK_H 1
14154 _ACEOF
14158 done
14160 for ac_func in fork vfork
14161 do :
14162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14164 eval as_val=\$$as_ac_var
14165 if test "x$as_val" = x""yes; then :
14166 cat >>confdefs.h <<_ACEOF
14167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14168 _ACEOF
14171 done
14173 if test "x$ac_cv_func_fork" = xyes; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14175 $as_echo_n "checking for working fork... " >&6; }
14176 if test "${ac_cv_func_fork_works+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 if test "$cross_compiling" = yes; then :
14180 ac_cv_func_fork_works=cross
14181 else
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 $ac_includes_default
14186 main ()
14189 /* By Ruediger Kuhlmann. */
14190 return fork () < 0;
14193 return 0;
14195 _ACEOF
14196 if ac_fn_c_try_run "$LINENO"; then :
14197 ac_cv_func_fork_works=yes
14198 else
14199 ac_cv_func_fork_works=no
14201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14202 conftest.$ac_objext conftest.beam conftest.$ac_ext
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14207 $as_echo "$ac_cv_func_fork_works" >&6; }
14209 else
14210 ac_cv_func_fork_works=$ac_cv_func_fork
14212 if test "x$ac_cv_func_fork_works" = xcross; then
14213 case $host in
14214 *-*-amigaos* | *-*-msdosdjgpp*)
14215 # Override, as these systems have only a dummy fork() stub
14216 ac_cv_func_fork_works=no
14219 ac_cv_func_fork_works=yes
14221 esac
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14225 ac_cv_func_vfork_works=$ac_cv_func_vfork
14226 if test "x$ac_cv_func_vfork" = xyes; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14228 $as_echo_n "checking for working vfork... " >&6; }
14229 if test "${ac_cv_func_vfork_works+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test "$cross_compiling" = yes; then :
14233 ac_cv_func_vfork_works=cross
14234 else
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 /* Thanks to Paul Eggert for this test. */
14238 $ac_includes_default
14239 #include <sys/wait.h>
14240 #ifdef HAVE_VFORK_H
14241 # include <vfork.h>
14242 #endif
14243 /* On some sparc systems, changes by the child to local and incoming
14244 argument registers are propagated back to the parent. The compiler
14245 is told about this with #include <vfork.h>, but some compilers
14246 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14247 static variable whose address is put into a register that is
14248 clobbered by the vfork. */
14249 static void
14250 #ifdef __cplusplus
14251 sparc_address_test (int arg)
14252 # else
14253 sparc_address_test (arg) int arg;
14254 #endif
14256 static pid_t child;
14257 if (!child) {
14258 child = vfork ();
14259 if (child < 0) {
14260 perror ("vfork");
14261 _exit(2);
14263 if (!child) {
14264 arg = getpid();
14265 write(-1, "", 0);
14266 _exit (arg);
14272 main ()
14274 pid_t parent = getpid ();
14275 pid_t child;
14277 sparc_address_test (0);
14279 child = vfork ();
14281 if (child == 0) {
14282 /* Here is another test for sparc vfork register problems. This
14283 test uses lots of local variables, at least as many local
14284 variables as main has allocated so far including compiler
14285 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14286 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14287 reuse the register of parent for one of the local variables,
14288 since it will think that parent can't possibly be used any more
14289 in this routine. Assigning to the local variable will thus
14290 munge parent in the parent process. */
14291 pid_t
14292 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14293 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14294 /* Convince the compiler that p..p7 are live; otherwise, it might
14295 use the same hardware register for all 8 local variables. */
14296 if (p != p1 || p != p2 || p != p3 || p != p4
14297 || p != p5 || p != p6 || p != p7)
14298 _exit(1);
14300 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14301 from child file descriptors. If the child closes a descriptor
14302 before it execs or exits, this munges the parent's descriptor
14303 as well. Test for this by closing stdout in the child. */
14304 _exit(close(fileno(stdout)) != 0);
14305 } else {
14306 int status;
14307 struct stat st;
14309 while (wait(&status) != child)
14311 return (
14312 /* Was there some problem with vforking? */
14313 child < 0
14315 /* Did the child fail? (This shouldn't happen.) */
14316 || status
14318 /* Did the vfork/compiler bug occur? */
14319 || parent != getpid()
14321 /* Did the file descriptor bug occur? */
14322 || fstat(fileno(stdout), &st) != 0
14326 _ACEOF
14327 if ac_fn_c_try_run "$LINENO"; then :
14328 ac_cv_func_vfork_works=yes
14329 else
14330 ac_cv_func_vfork_works=no
14332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14333 conftest.$ac_objext conftest.beam conftest.$ac_ext
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14338 $as_echo "$ac_cv_func_vfork_works" >&6; }
14341 if test "x$ac_cv_func_fork_works" = xcross; then
14342 ac_cv_func_vfork_works=$ac_cv_func_vfork
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14347 if test "x$ac_cv_func_vfork_works" = xyes; then
14349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14351 else
14353 $as_echo "#define vfork fork" >>confdefs.h
14356 if test "x$ac_cv_func_fork_works" = xyes; then
14358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14364 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14365 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 #include <langinfo.h>
14372 main ()
14374 char* cs = nl_langinfo(CODESET);
14376 return 0;
14378 _ACEOF
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 emacs_cv_langinfo_codeset=yes
14381 else
14382 emacs_cv_langinfo_codeset=no
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14389 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14390 if test $emacs_cv_langinfo_codeset = yes; then
14392 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14397 if test "x$ac_cv_type_size_t" = x""yes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_SIZE_T 1
14401 _ACEOF
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14408 $as_echo_n "checking for mbstate_t... " >&6; }
14409 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 # include <wchar.h>
14417 main ()
14419 mbstate_t x; return sizeof x;
14421 return 0;
14423 _ACEOF
14424 if ac_fn_c_try_compile "$LINENO"; then :
14425 ac_cv_type_mbstate_t=yes
14426 else
14427 ac_cv_type_mbstate_t=no
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14432 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14433 if test $ac_cv_type_mbstate_t = yes; then
14435 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14437 else
14439 $as_echo "#define mbstate_t int" >>confdefs.h
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14444 $as_echo_n "checking for C restrict keyword... " >&6; }
14445 if test "${emacs_cv_c_restrict+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 void fred (int *restrict x);
14452 main ()
14456 return 0;
14458 _ACEOF
14459 if ac_fn_c_try_compile "$LINENO"; then :
14460 emacs_cv_c_restrict=yes
14461 else
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 void fred (int *__restrict x);
14466 main ()
14470 return 0;
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 emacs_cv_c_restrict=__restrict
14475 else
14476 emacs_cv_c_restrict=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14483 $as_echo "$emacs_cv_c_restrict" >&6; }
14484 case "$emacs_cv_c_restrict" in
14485 yes) emacs_restrict=restrict;;
14486 no) emacs_restrict="";;
14487 *) emacs_restrict="$emacs_cv_c_restrict";;
14488 esac
14489 if test "$emacs_restrict" != __restrict; then
14491 cat >>confdefs.h <<_ACEOF
14492 #define __restrict $emacs_restrict
14493 _ACEOF
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14498 $as_echo_n "checking for C restricted array declarations... " >&6; }
14499 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 void fred (int x[__restrict]);
14506 main ()
14510 return 0;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514 emacs_cv_c_restrict_arr=yes
14515 else
14516 emacs_cv_c_restrict_arr=no
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14521 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14522 if test "$emacs_cv_c_restrict_arr" = yes; then
14524 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14530 # Set up the CFLAGS for real compilation, so we can substitute it.
14531 CFLAGS="$REAL_CFLAGS"
14532 CPPFLAGS="$REAL_CPPFLAGS"
14534 ## Hack to detect a buggy GCC version.
14535 if test "x$GCC" = xyes \
14536 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14537 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14538 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14539 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14542 #### Find out which version of Emacs this is.
14543 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14544 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14545 if test x"${version}" = x; then
14546 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14548 if test x"${version}" != x"$PACKAGE_VERSION"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14550 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14553 ### Specify what sort of things we'll be editing into Makefile and config.h.
14554 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14557 ## Unused?
14578 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14579 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14580 ## end of LIBX_BASE, but nothing ever set it.
14585 ## Used in lwlib/Makefile.in.
14598 cat >>confdefs.h <<_ACEOF
14599 #define EMACS_CONFIGURATION "${canonical}"
14600 _ACEOF
14603 cat >>confdefs.h <<_ACEOF
14604 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14605 _ACEOF
14608 cat >>confdefs.h <<_ACEOF
14609 #define config_machfile "${machfile}"
14610 _ACEOF
14613 cat >>confdefs.h <<_ACEOF
14614 #define config_opsysfile "${opsysfile}"
14615 _ACEOF
14618 XMENU_OBJ=
14619 XOBJ=
14620 FONT_OBJ=
14621 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14623 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14625 XMENU_OBJ=xmenu.o
14626 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14627 FONT_OBJ=xfont.o
14628 if test "$HAVE_XFT" = "yes"; then
14629 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14630 elif test "$HAVE_FREETYPE" = "yes"; then
14631 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14639 WIDGET_OBJ=
14640 MOTIF_LIBW=
14641 if test "${USE_X_TOOLKIT}" != "none" ; then
14642 WIDGET_OBJ=widget.o
14644 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14646 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14648 $as_echo "#define USE_LUCID 1" >>confdefs.h
14650 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14652 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14654 MOTIF_LIBW=-lXm
14655 case "$opsys" in
14656 gnu-linux)
14657 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14658 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14661 unixware)
14662 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14663 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14664 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14667 aix4-2)
14668 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14669 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14671 esac
14672 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14677 TOOLKIT_LIBW=
14678 case "$USE_X_TOOLKIT" in
14679 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14680 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14681 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14682 esac
14685 if test "$USE_X_TOOLKIT" = "none"; then
14686 LIBXT_OTHER="\$(LIBXSM)"
14687 OLDXMENU_TARGET="really-oldXMenu"
14688 else
14689 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14690 OLDXMENU_TARGET="really-lwlib"
14694 ## The X Menu stuff is present in the X10 distribution, but missing
14695 ## from X11. If we have X10, just use the installed library;
14696 ## otherwise, use our own copy.
14697 if test "${HAVE_X11}" = "yes" ; then
14699 $as_echo "#define HAVE_X11 1" >>confdefs.h
14702 if test "$USE_X_TOOLKIT" = "none"; then
14703 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14704 else
14705 OLDXMENU="\${lwlibdir}liblw.a"
14707 LIBXMENU="\$(OLDXMENU)"
14708 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14709 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14710 else
14711 ## For a syntactically valid Makefile; not actually used for anything.
14712 ## See comments in src/Makefile.in.
14713 OLDXMENU=nothing
14714 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14715 if test "${HAVE_X_WINDOWS}" = "yes"; then
14716 LIBXMENU="-lXMenu"
14717 else
14718 LIBXMENU=
14720 LIBX_OTHER=
14721 OLDXMENU_DEPS=
14724 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14725 OLDXMENU_TARGET=
14726 OLDXMENU=nothing
14727 LIBXMENU=
14728 OLDXMENU_DEPS=
14737 if test "${HAVE_MENUS}" = "yes" ; then
14739 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14743 if test "${GNU_MALLOC}" = "yes" ; then
14745 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14749 RALLOC_OBJ=
14750 if test "${REL_ALLOC}" = "yes" ; then
14752 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14755 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14759 if test "$opsys" = "cygwin"; then
14760 CYGWIN_OBJ="sheap.o"
14761 ## Cygwin differs because of its unexec().
14762 PRE_ALLOC_OBJ=
14763 POST_ALLOC_OBJ=lastfile.o
14764 else
14765 CYGWIN_OBJ=
14766 PRE_ALLOC_OBJ=lastfile.o
14767 POST_ALLOC_OBJ=
14774 case "$opsys" in
14775 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14777 darwin)
14778 ## The -headerpad option tells ld (see man page) to leave room at the
14779 ## end of the header for adding load commands. Needed for dumping.
14780 ## 0x690 is the total size of 30 segment load commands (at 56
14781 ## each); under Cocoa 31 commands are required.
14782 if test "$HAVE_NS" = "yes"; then
14783 libs_nsgui="-framework AppKit"
14784 headerpad_extra=6C8
14785 else
14786 libs_nsgui=
14787 headerpad_extra=690
14789 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14791 ## This is here because src/Makefile.in did some extra fiddling around
14792 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14793 ## #ifndef LD_SWITCH_SYSTEM
14794 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14795 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14796 ## not using gcc, darwin system not on an alpha (ie darwin, since
14797 ## darwin + alpha does not occur).
14798 ## Because this was done in src/Makefile.in, the resulting part of
14799 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14800 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14801 ## rather than LD_SWITCH_SYSTEM.
14802 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14803 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14806 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14807 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14808 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14809 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14810 ## had different values in configure (in ac_link) and src/Makefile.in.
14811 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14812 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14814 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14815 esac
14817 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14818 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14824 LD_FIRSTFLAG=
14825 ORDINARY_LINK=
14826 case "$opsys" in
14827 ## gnu: GNU needs its own crt0.
14828 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14830 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14831 ## library search parth, i.e. it won't search /usr/lib for libc and
14832 ## friends. Using -nostartfiles instead avoids this problem, and
14833 ## will also work on earlier NetBSD releases.
14834 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14836 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14837 ## MkLinux/LinuxPPC needs this.
14838 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14839 gnu-*)
14840 case "$machine" in
14841 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14842 esac
14844 esac
14847 if test "x$ORDINARY_LINK" = "xyes"; then
14849 LD_FIRSTFLAG=""
14851 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14854 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14855 ## freebsd, gnu-* not on macppc|ibms390x.
14856 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14858 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14859 ## places that are difficult to figure out at make time. Fortunately,
14860 ## these same versions allow you to pass arbitrary flags on to the
14861 ## linker, so there is no reason not to use it as a linker.
14863 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14864 ## searching for libraries in its internal directories, so we have to
14865 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14866 LD_FIRSTFLAG="-nostdlib"
14869 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14870 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14875 ## FIXME? The logic here is not precisely the same as that above.
14876 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14877 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14878 LIB_GCC=
14879 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14881 case "$opsys" in
14882 freebsd|netbsd|openbsd) LIB_GCC= ;;
14884 gnu-*)
14885 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14886 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14887 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14888 if test "$machine" = "arm"; then
14889 LIB_GCC="-lgcc_s"
14890 else
14891 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14892 ## immediately undefine it again and redefine it to empty.
14893 ## Was the C_SWITCH_X_SITE part really necessary?
14894 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14895 LIB_GCC=
14899 ## Ask GCC where to find libgcc.a.
14900 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14901 esac
14905 TOOLTIP_SUPPORT=
14906 WINDOW_SUPPORT=
14907 ## If we're using X11/GNUstep, define some consequences.
14908 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14910 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14913 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14915 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14916 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14918 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14919 test "$HAVE_X_WINDOWS" = "yes" && \
14920 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14930 #### Report on what we decided to do.
14931 #### Report GTK as a toolkit, even if it doesn't use Xt.
14932 #### It makes printing result more understandable as using GTK sets
14933 #### toolkit_scroll_bars to yes by default.
14934 if test "${HAVE_GTK}" = "yes"; then
14935 USE_X_TOOLKIT=GTK
14938 echo "
14939 Configured for \`${canonical}'.
14941 Where should the build process find the source code? ${srcdir}
14942 What operating system and machine description files should Emacs use?
14943 \`${opsysfile}' and \`${machfile}'
14944 What compiler should emacs be built with? ${CC} ${CFLAGS}
14945 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14946 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14947 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14948 What window system should Emacs use? ${window_system}
14949 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14951 if test -n "${x_includes}"; then
14952 echo " Where do we find X Windows header files? ${x_includes}"
14953 else
14954 echo " Where do we find X Windows header files? Standard dirs"
14956 if test -n "${x_libraries}"; then
14957 echo " Where do we find X Windows libraries? ${x_libraries}"
14958 else
14959 echo " Where do we find X Windows libraries? Standard dirs"
14962 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14963 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14964 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14965 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14966 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14967 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14968 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14969 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14971 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14972 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14973 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14974 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14975 echo " Does Emacs use -lgnutls (BROKEN)? ${HAVE_GNUTLS}"
14976 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14978 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14979 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14980 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14981 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14983 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14984 echo
14986 if test $USE_XASSERTS = yes; then
14987 echo " Compiling with asserts turned on."
14988 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14991 echo
14993 if test "$HAVE_NS" = "yes"; then
14994 echo
14995 echo "You must run \"make install\" in order to test the built application.
14996 The installed application will go to nextstep/Emacs.app and can be
14997 run or moved from there."
14998 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14999 echo "The application will be fully self-contained."
15000 else
15001 echo "The lisp resources for the application will be installed under ${prefix}.
15002 You may need to run \"make install\" with sudo. The application will fail
15003 to run if these resources are not installed."
15005 echo
15008 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15009 echo "D-Bus integration has been tested for GNU/Linux only."
15010 echo
15014 # Remove any trailing slashes in these variables.
15015 test "${prefix}" != NONE &&
15016 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15017 test "${exec_prefix}" != NONE &&
15018 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15020 ac_config_files="$ac_config_files 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"
15022 ac_config_commands="$ac_config_commands default"
15024 cat >confcache <<\_ACEOF
15025 # This file is a shell script that caches the results of configure
15026 # tests run on this system so they can be shared between configure
15027 # scripts and configure runs, see configure's option --config-cache.
15028 # It is not useful on other systems. If it contains results you don't
15029 # want to keep, you may remove or edit it.
15031 # config.status only pays attention to the cache file if you give it
15032 # the --recheck option to rerun configure.
15034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15036 # following values.
15038 _ACEOF
15040 # The following way of writing the cache mishandles newlines in values,
15041 # but we know of no workaround that is simple, portable, and efficient.
15042 # So, we kill variables containing newlines.
15043 # Ultrix sh set writes to stderr and can't be redirected directly,
15044 # and sets the high bit in the cache file unless we assign to the vars.
15046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15047 eval ac_val=\$$ac_var
15048 case $ac_val in #(
15049 *${as_nl}*)
15050 case $ac_var in #(
15051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15053 esac
15054 case $ac_var in #(
15055 _ | IFS | as_nl) ;; #(
15056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15057 *) { eval $ac_var=; unset $ac_var;} ;;
15058 esac ;;
15059 esac
15060 done
15062 (set) 2>&1 |
15063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15064 *${as_nl}ac_space=\ *)
15065 # `set' does not quote correctly, so add quotes: double-quote
15066 # substitution turns \\\\ into \\, and sed turns \\ into \.
15067 sed -n \
15068 "s/'/'\\\\''/g;
15069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15070 ;; #(
15072 # `set' quotes correctly as required by POSIX, so do not add quotes.
15073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15075 esac |
15076 sort
15078 sed '
15079 /^ac_cv_env_/b end
15080 t clear
15081 :clear
15082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15083 t end
15084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15085 :end' >>confcache
15086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15087 if test -w "$cache_file"; then
15088 test "x$cache_file" != "x/dev/null" &&
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15090 $as_echo "$as_me: updating cache $cache_file" >&6;}
15091 cat confcache >$cache_file
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15094 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15097 rm -f confcache
15099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15100 # Let make expand exec_prefix.
15101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15103 DEFS=-DHAVE_CONFIG_H
15105 ac_libobjs=
15106 ac_ltlibobjs=
15107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15108 # 1. Remove the extension, and $U if already installed.
15109 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15110 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15112 # will be set to the directory where LIBOBJS objects are built.
15113 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15114 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15115 done
15116 LIBOBJS=$ac_libobjs
15118 LTLIBOBJS=$ac_ltlibobjs
15123 : ${CONFIG_STATUS=./config.status}
15124 ac_write_fail=0
15125 ac_clean_files_save=$ac_clean_files
15126 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15128 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15129 as_write_fail=0
15130 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15131 #! $SHELL
15132 # Generated by $as_me.
15133 # Run this file to recreate the current configuration.
15134 # Compiler output produced by configure, useful for debugging
15135 # configure, is in config.log if it exists.
15137 debug=false
15138 ac_cs_recheck=false
15139 ac_cs_silent=false
15141 SHELL=\${CONFIG_SHELL-$SHELL}
15142 export SHELL
15143 _ASEOF
15144 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15145 ## -------------------- ##
15146 ## M4sh Initialization. ##
15147 ## -------------------- ##
15149 # Be more Bourne compatible
15150 DUALCASE=1; export DUALCASE # for MKS sh
15151 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15152 emulate sh
15153 NULLCMD=:
15154 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15155 # is contrary to our usage. Disable this feature.
15156 alias -g '${1+"$@"}'='"$@"'
15157 setopt NO_GLOB_SUBST
15158 else
15159 case `(set -o) 2>/dev/null` in #(
15160 *posix*) :
15161 set -o posix ;; #(
15162 *) :
15164 esac
15168 as_nl='
15170 export as_nl
15171 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15172 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15175 # Prefer a ksh shell builtin over an external printf program on Solaris,
15176 # but without wasting forks for bash or zsh.
15177 if test -z "$BASH_VERSION$ZSH_VERSION" \
15178 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15179 as_echo='print -r --'
15180 as_echo_n='print -rn --'
15181 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15182 as_echo='printf %s\n'
15183 as_echo_n='printf %s'
15184 else
15185 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15186 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15187 as_echo_n='/usr/ucb/echo -n'
15188 else
15189 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15190 as_echo_n_body='eval
15191 arg=$1;
15192 case $arg in #(
15193 *"$as_nl"*)
15194 expr "X$arg" : "X\\(.*\\)$as_nl";
15195 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15196 esac;
15197 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15199 export as_echo_n_body
15200 as_echo_n='sh -c $as_echo_n_body as_echo'
15202 export as_echo_body
15203 as_echo='sh -c $as_echo_body as_echo'
15206 # The user is always right.
15207 if test "${PATH_SEPARATOR+set}" != set; then
15208 PATH_SEPARATOR=:
15209 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15210 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15211 PATH_SEPARATOR=';'
15216 # IFS
15217 # We need space, tab and new line, in precisely that order. Quoting is
15218 # there to prevent editors from complaining about space-tab.
15219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15220 # splitting by setting IFS to empty value.)
15221 IFS=" "" $as_nl"
15223 # Find who we are. Look in the path if we contain no directory separator.
15224 case $0 in #((
15225 *[\\/]* ) as_myself=$0 ;;
15226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15227 for as_dir in $PATH
15229 IFS=$as_save_IFS
15230 test -z "$as_dir" && as_dir=.
15231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15232 done
15233 IFS=$as_save_IFS
15236 esac
15237 # We did not find ourselves, most probably we were run as `sh COMMAND'
15238 # in which case we are not to be found in the path.
15239 if test "x$as_myself" = x; then
15240 as_myself=$0
15242 if test ! -f "$as_myself"; then
15243 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15244 exit 1
15247 # Unset variables that we do not need and which cause bugs (e.g. in
15248 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15249 # suppresses any "Segmentation fault" message there. '((' could
15250 # trigger a bug in pdksh 5.2.14.
15251 for as_var in BASH_ENV ENV MAIL MAILPATH
15252 do eval test x\${$as_var+set} = xset \
15253 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15254 done
15255 PS1='$ '
15256 PS2='> '
15257 PS4='+ '
15259 # NLS nuisances.
15260 LC_ALL=C
15261 export LC_ALL
15262 LANGUAGE=C
15263 export LANGUAGE
15265 # CDPATH.
15266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15269 # as_fn_error ERROR [LINENO LOG_FD]
15270 # ---------------------------------
15271 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15272 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15273 # script with status $?, using 1 if that was 0.
15274 as_fn_error ()
15276 as_status=$?; test $as_status -eq 0 && as_status=1
15277 if test "$3"; then
15278 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15279 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15281 $as_echo "$as_me: error: $1" >&2
15282 as_fn_exit $as_status
15283 } # as_fn_error
15286 # as_fn_set_status STATUS
15287 # -----------------------
15288 # Set $? to STATUS, without forking.
15289 as_fn_set_status ()
15291 return $1
15292 } # as_fn_set_status
15294 # as_fn_exit STATUS
15295 # -----------------
15296 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15297 as_fn_exit ()
15299 set +e
15300 as_fn_set_status $1
15301 exit $1
15302 } # as_fn_exit
15304 # as_fn_unset VAR
15305 # ---------------
15306 # Portably unset VAR.
15307 as_fn_unset ()
15309 { eval $1=; unset $1;}
15311 as_unset=as_fn_unset
15312 # as_fn_append VAR VALUE
15313 # ----------------------
15314 # Append the text in VALUE to the end of the definition contained in VAR. Take
15315 # advantage of any shell optimizations that allow amortized linear growth over
15316 # repeated appends, instead of the typical quadratic growth present in naive
15317 # implementations.
15318 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15319 eval 'as_fn_append ()
15321 eval $1+=\$2
15323 else
15324 as_fn_append ()
15326 eval $1=\$$1\$2
15328 fi # as_fn_append
15330 # as_fn_arith ARG...
15331 # ------------------
15332 # Perform arithmetic evaluation on the ARGs, and store the result in the
15333 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15334 # must be portable across $(()) and expr.
15335 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15336 eval 'as_fn_arith ()
15338 as_val=$(( $* ))
15340 else
15341 as_fn_arith ()
15343 as_val=`expr "$@" || test $? -eq 1`
15345 fi # as_fn_arith
15348 if expr a : '\(a\)' >/dev/null 2>&1 &&
15349 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15350 as_expr=expr
15351 else
15352 as_expr=false
15355 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15356 as_basename=basename
15357 else
15358 as_basename=false
15361 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15362 as_dirname=dirname
15363 else
15364 as_dirname=false
15367 as_me=`$as_basename -- "$0" ||
15368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15369 X"$0" : 'X\(//\)$' \| \
15370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15371 $as_echo X/"$0" |
15372 sed '/^.*\/\([^/][^/]*\)\/*$/{
15373 s//\1/
15376 /^X\/\(\/\/\)$/{
15377 s//\1/
15380 /^X\/\(\/\).*/{
15381 s//\1/
15384 s/.*/./; q'`
15386 # Avoid depending upon Character Ranges.
15387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15390 as_cr_digits='0123456789'
15391 as_cr_alnum=$as_cr_Letters$as_cr_digits
15393 ECHO_C= ECHO_N= ECHO_T=
15394 case `echo -n x` in #(((((
15395 -n*)
15396 case `echo 'xy\c'` in
15397 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15398 xy) ECHO_C='\c';;
15399 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15400 ECHO_T=' ';;
15401 esac;;
15403 ECHO_N='-n';;
15404 esac
15406 rm -f conf$$ conf$$.exe conf$$.file
15407 if test -d conf$$.dir; then
15408 rm -f conf$$.dir/conf$$.file
15409 else
15410 rm -f conf$$.dir
15411 mkdir conf$$.dir 2>/dev/null
15413 if (echo >conf$$.file) 2>/dev/null; then
15414 if ln -s conf$$.file conf$$ 2>/dev/null; then
15415 as_ln_s='ln -s'
15416 # ... but there are two gotchas:
15417 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15418 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15419 # In both cases, we have to default to `cp -p'.
15420 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15421 as_ln_s='cp -p'
15422 elif ln conf$$.file conf$$ 2>/dev/null; then
15423 as_ln_s=ln
15424 else
15425 as_ln_s='cp -p'
15427 else
15428 as_ln_s='cp -p'
15430 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15431 rmdir conf$$.dir 2>/dev/null
15434 # as_fn_mkdir_p
15435 # -------------
15436 # Create "$as_dir" as a directory, including parents if necessary.
15437 as_fn_mkdir_p ()
15440 case $as_dir in #(
15441 -*) as_dir=./$as_dir;;
15442 esac
15443 test -d "$as_dir" || eval $as_mkdir_p || {
15444 as_dirs=
15445 while :; do
15446 case $as_dir in #(
15447 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15448 *) as_qdir=$as_dir;;
15449 esac
15450 as_dirs="'$as_qdir' $as_dirs"
15451 as_dir=`$as_dirname -- "$as_dir" ||
15452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15453 X"$as_dir" : 'X\(//\)[^/]' \| \
15454 X"$as_dir" : 'X\(//\)$' \| \
15455 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15456 $as_echo X"$as_dir" |
15457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15458 s//\1/
15461 /^X\(\/\/\)[^/].*/{
15462 s//\1/
15465 /^X\(\/\/\)$/{
15466 s//\1/
15469 /^X\(\/\).*/{
15470 s//\1/
15473 s/.*/./; q'`
15474 test -d "$as_dir" && break
15475 done
15476 test -z "$as_dirs" || eval "mkdir $as_dirs"
15477 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15480 } # as_fn_mkdir_p
15481 if mkdir -p . 2>/dev/null; then
15482 as_mkdir_p='mkdir -p "$as_dir"'
15483 else
15484 test -d ./-p && rmdir ./-p
15485 as_mkdir_p=false
15488 if test -x / >/dev/null 2>&1; then
15489 as_test_x='test -x'
15490 else
15491 if ls -dL / >/dev/null 2>&1; then
15492 as_ls_L_option=L
15493 else
15494 as_ls_L_option=
15496 as_test_x='
15497 eval sh -c '\''
15498 if test -d "$1"; then
15499 test -d "$1/.";
15500 else
15501 case $1 in #(
15502 -*)set "./$1";;
15503 esac;
15504 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15505 ???[sx]*):;;*)false;;esac;fi
15506 '\'' sh
15509 as_executable_p=$as_test_x
15511 # Sed expression to map a string onto a valid CPP name.
15512 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15514 # Sed expression to map a string onto a valid variable name.
15515 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15518 exec 6>&1
15519 ## ----------------------------------- ##
15520 ## Main body of $CONFIG_STATUS script. ##
15521 ## ----------------------------------- ##
15522 _ASEOF
15523 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15526 # Save the log message, to keep $0 and so on meaningful, and to
15527 # report actual input values of CONFIG_FILES etc. instead of their
15528 # values after options handling.
15529 ac_log="
15530 This file was extended by emacs $as_me 24.0.50, which was
15531 generated by GNU Autoconf 2.65. Invocation command line was
15533 CONFIG_FILES = $CONFIG_FILES
15534 CONFIG_HEADERS = $CONFIG_HEADERS
15535 CONFIG_LINKS = $CONFIG_LINKS
15536 CONFIG_COMMANDS = $CONFIG_COMMANDS
15537 $ $0 $@
15539 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15542 _ACEOF
15544 case $ac_config_files in *"
15545 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15546 esac
15548 case $ac_config_headers in *"
15549 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15550 esac
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 # Files that config.status was made for.
15555 config_files="$ac_config_files"
15556 config_headers="$ac_config_headers"
15557 config_commands="$ac_config_commands"
15559 _ACEOF
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 ac_cs_usage="\
15563 \`$as_me' instantiates files and other configuration actions
15564 from templates according to the current configuration. Unless the files
15565 and actions are specified as TAGs, all are instantiated by default.
15567 Usage: $0 [OPTION]... [TAG]...
15569 -h, --help print this help, then exit
15570 -V, --version print version number and configuration settings, then exit
15571 --config print configuration, then exit
15572 -q, --quiet, --silent
15573 do not print progress messages
15574 -d, --debug don't remove temporary files
15575 --recheck update $as_me by reconfiguring in the same conditions
15576 --file=FILE[:TEMPLATE]
15577 instantiate the configuration file FILE
15578 --header=FILE[:TEMPLATE]
15579 instantiate the configuration header FILE
15581 Configuration files:
15582 $config_files
15584 Configuration headers:
15585 $config_headers
15587 Configuration commands:
15588 $config_commands
15590 Report bugs to the package provider."
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15595 ac_cs_version="\\
15596 emacs config.status 24.0.50
15597 configured by $0, generated by GNU Autoconf 2.65,
15598 with options \\"\$ac_cs_config\\"
15600 Copyright (C) 2009 Free Software Foundation, Inc.
15601 This config.status script is free software; the Free Software Foundation
15602 gives unlimited permission to copy, distribute and modify it."
15604 ac_pwd='$ac_pwd'
15605 srcdir='$srcdir'
15606 INSTALL='$INSTALL'
15607 test -n "\$AWK" || AWK=awk
15608 _ACEOF
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611 # The default lists apply if the user does not specify any file.
15612 ac_need_defaults=:
15613 while test $# != 0
15615 case $1 in
15616 --*=*)
15617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15619 ac_shift=:
15622 ac_option=$1
15623 ac_optarg=$2
15624 ac_shift=shift
15626 esac
15628 case $ac_option in
15629 # Handling of the options.
15630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15631 ac_cs_recheck=: ;;
15632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15633 $as_echo "$ac_cs_version"; exit ;;
15634 --config | --confi | --conf | --con | --co | --c )
15635 $as_echo "$ac_cs_config"; exit ;;
15636 --debug | --debu | --deb | --de | --d | -d )
15637 debug=: ;;
15638 --file | --fil | --fi | --f )
15639 $ac_shift
15640 case $ac_optarg in
15641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15642 esac
15643 as_fn_append CONFIG_FILES " '$ac_optarg'"
15644 ac_need_defaults=false;;
15645 --header | --heade | --head | --hea )
15646 $ac_shift
15647 case $ac_optarg in
15648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15649 esac
15650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15651 ac_need_defaults=false;;
15652 --he | --h)
15653 # Conflict between --help and --header
15654 as_fn_error "ambiguous option: \`$1'
15655 Try \`$0 --help' for more information.";;
15656 --help | --hel | -h )
15657 $as_echo "$ac_cs_usage"; exit ;;
15658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15660 ac_cs_silent=: ;;
15662 # This is an error.
15663 -*) as_fn_error "unrecognized option: \`$1'
15664 Try \`$0 --help' for more information." ;;
15666 *) as_fn_append ac_config_targets " $1"
15667 ac_need_defaults=false ;;
15669 esac
15670 shift
15671 done
15673 ac_configure_extra_args=
15675 if $ac_cs_silent; then
15676 exec 6>/dev/null
15677 ac_configure_extra_args="$ac_configure_extra_args --silent"
15680 _ACEOF
15681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682 if \$ac_cs_recheck; then
15683 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15684 shift
15685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15686 CONFIG_SHELL='$SHELL'
15687 export CONFIG_SHELL
15688 exec "\$@"
15691 _ACEOF
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693 exec 5>>config.log
15695 echo
15696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15697 ## Running $as_me. ##
15698 _ASBOX
15699 $as_echo "$ac_log"
15700 } >&5
15702 _ACEOF
15703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 # INIT-COMMANDS
15707 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15709 _ACEOF
15711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15713 # Handling of arguments.
15714 for ac_config_target in $ac_config_targets
15716 case $ac_config_target in
15717 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15719 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15720 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15721 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15722 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15723 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15724 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15725 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15726 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15727 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15728 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15729 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15731 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15732 esac
15733 done
15736 # If the user did not use the arguments to specify the items to instantiate,
15737 # then the envvar interface is used. Set only those that are not.
15738 # We use the long form for the default assignment because of an extremely
15739 # bizarre bug on SunOS 4.1.3.
15740 if $ac_need_defaults; then
15741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15746 # Have a temporary directory for convenience. Make it in the build tree
15747 # simply because there is no reason against having it here, and in addition,
15748 # creating and moving files from /tmp can sometimes cause problems.
15749 # Hook for its removal unless debugging.
15750 # Note that there is a small window in which the directory will not be cleaned:
15751 # after its creation but before its name has been assigned to `$tmp'.
15752 $debug ||
15754 tmp=
15755 trap 'exit_status=$?
15756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15758 trap 'as_fn_exit 1' 1 2 13 15
15760 # Create a (secure) tmp directory for tmp files.
15763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15764 test -n "$tmp" && test -d "$tmp"
15765 } ||
15767 tmp=./conf$$-$RANDOM
15768 (umask 077 && mkdir "$tmp")
15769 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15771 # Set up the scripts for CONFIG_FILES section.
15772 # No need to generate them if there are no CONFIG_FILES.
15773 # This happens for instance with `./config.status config.h'.
15774 if test -n "$CONFIG_FILES"; then
15776 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15777 ac_cs_awk_getline=:
15778 ac_cs_awk_pipe_init=
15779 ac_cs_awk_read_file='
15780 while ((getline aline < (F[key])) > 0)
15781 print(aline)
15782 close(F[key])'
15783 ac_cs_awk_pipe_fini=
15784 else
15785 ac_cs_awk_getline=false
15786 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15787 ac_cs_awk_read_file='
15788 print "|#_!!_#|"
15789 print "cat " F[key] " &&"
15790 '$ac_cs_awk_pipe_init
15791 # The final `:' finishes the AND list.
15792 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15794 ac_cr=`echo X | tr X '\015'`
15795 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15796 # But we know of no other shell where ac_cr would be empty at this
15797 # point, so we can use a bashism as a fallback.
15798 if test "x$ac_cr" = x; then
15799 eval ac_cr=\$\'\\r\'
15801 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15803 ac_cs_awk_cr='\r'
15804 else
15805 ac_cs_awk_cr=$ac_cr
15808 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15809 _ACEOF
15811 # Create commands to substitute file output variables.
15813 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15814 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15815 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15816 echo "_ACAWK" &&
15817 echo "_ACEOF"
15818 } >conf$$files.sh &&
15819 . ./conf$$files.sh ||
15820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15821 rm -f conf$$files.sh
15824 echo "cat >conf$$subs.awk <<_ACEOF" &&
15825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15826 echo "_ACEOF"
15827 } >conf$$subs.sh ||
15828 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15830 ac_delim='%!_!# '
15831 for ac_last_try in false false false false false :; do
15832 . ./conf$$subs.sh ||
15833 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15836 if test $ac_delim_n = $ac_delim_num; then
15837 break
15838 elif $ac_last_try; then
15839 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15840 else
15841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15843 done
15844 rm -f conf$$subs.sh
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15848 _ACEOF
15849 sed -n '
15851 s/^/S["/; s/!.*/"]=/
15854 s/^[^!]*!//
15855 :repl
15856 t repl
15857 s/'"$ac_delim"'$//
15858 t delim
15861 s/\(.\{148\}\)..*/\1/
15862 t more1
15863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15866 b repl
15867 :more1
15868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15871 s/.\{148\}//
15872 t nl
15873 :delim
15875 s/\(.\{148\}\)..*/\1/
15876 t more2
15877 s/["\\]/\\&/g; s/^/"/; s/$/"/
15880 :more2
15881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15884 s/.\{148\}//
15885 t delim
15886 ' <conf$$subs.awk | sed '
15887 /^[^""]/{
15889 s/\n//
15891 ' >>$CONFIG_STATUS || ac_write_fail=1
15892 rm -f conf$$subs.awk
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 _ACAWK
15895 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15896 for (key in S) S_is_set[key] = 1
15897 FS = "\a"
15898 \$ac_cs_awk_pipe_init
15901 line = $ 0
15902 nfields = split(line, field, "@")
15903 substed = 0
15904 len = length(field[1])
15905 for (i = 2; i < nfields; i++) {
15906 key = field[i]
15907 keylen = length(key)
15908 if (S_is_set[key]) {
15909 value = S[key]
15910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15911 len += length(value) + length(field[++i])
15912 substed = 1
15913 } else
15914 len += 1 + keylen
15916 if (nfields == 3 && !substed) {
15917 key = field[2]
15918 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15919 \$ac_cs_awk_read_file
15920 next
15923 print line
15925 \$ac_cs_awk_pipe_fini
15926 _ACAWK
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15929 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15930 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15931 else
15933 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15934 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15935 _ACEOF
15937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15939 # trailing colons and then remove the whole line if VPATH becomes empty
15940 # (actually we leave an empty line to preserve line numbers).
15941 if test "x$srcdir" = x.; then
15942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15943 s/:*\$(srcdir):*/:/
15944 s/:*\${srcdir}:*/:/
15945 s/:*@srcdir@:*/:/
15946 s/^\([^=]*=[ ]*\):*/\1/
15947 s/:*$//
15948 s/^[^=]*=[ ]*$//
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 fi # test -n "$CONFIG_FILES"
15955 # Set up the scripts for CONFIG_HEADERS section.
15956 # No need to generate them if there are no CONFIG_HEADERS.
15957 # This happens for instance with `./config.status Makefile'.
15958 if test -n "$CONFIG_HEADERS"; then
15959 cat >"$tmp/defines.awk" <<\_ACAWK ||
15960 BEGIN {
15961 _ACEOF
15963 # Transform confdefs.h into an awk script `defines.awk', embedded as
15964 # here-document in config.status, that substitutes the proper values into
15965 # config.h.in to produce config.h.
15967 # Create a delimiter string that does not exist in confdefs.h, to ease
15968 # handling of long lines.
15969 ac_delim='%!_!# '
15970 for ac_last_try in false false :; do
15971 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15972 if test -z "$ac_t"; then
15973 break
15974 elif $ac_last_try; then
15975 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15976 else
15977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15979 done
15981 # For the awk script, D is an array of macro values keyed by name,
15982 # likewise P contains macro parameters if any. Preserve backslash
15983 # newline sequences.
15985 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15986 sed -n '
15987 s/.\{148\}/&'"$ac_delim"'/g
15988 t rset
15989 :rset
15990 s/^[ ]*#[ ]*define[ ][ ]*/ /
15991 t def
15993 :def
15994 s/\\$//
15995 t bsnl
15996 s/["\\]/\\&/g
15997 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15998 D["\1"]=" \3"/p
15999 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16001 :bsnl
16002 s/["\\]/\\&/g
16003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16004 D["\1"]=" \3\\\\\\n"\\/p
16005 t cont
16006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16007 t cont
16009 :cont
16011 s/.\{148\}/&'"$ac_delim"'/g
16012 t clear
16013 :clear
16014 s/\\$//
16015 t bsnlc
16016 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16018 :bsnlc
16019 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16020 b cont
16021 ' <confdefs.h | sed '
16022 s/'"$ac_delim"'/"\\\
16023 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 for (key in D) D_is_set[key] = 1
16027 FS = "\a"
16029 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16030 line = \$ 0
16031 split(line, arg, " ")
16032 if (arg[1] == "#") {
16033 defundef = arg[2]
16034 mac1 = arg[3]
16035 } else {
16036 defundef = substr(arg[1], 2)
16037 mac1 = arg[2]
16039 split(mac1, mac2, "(") #)
16040 macro = mac2[1]
16041 prefix = substr(line, 1, index(line, defundef) - 1)
16042 if (D_is_set[macro]) {
16043 # Preserve the white space surrounding the "#".
16044 print prefix "define", macro P[macro] D[macro]
16045 next
16046 } else {
16047 # Replace #undef with comments. This is necessary, for example,
16048 # in the case of _POSIX_SOURCE, which is predefined and required
16049 # on some systems where configure will not decide to define it.
16050 if (defundef == "undef") {
16051 print "/*", prefix defundef, macro, "*/"
16052 next
16056 { print }
16057 _ACAWK
16058 _ACEOF
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16061 fi # test -n "$CONFIG_HEADERS"
16064 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16065 shift
16066 for ac_tag
16068 case $ac_tag in
16069 :[FHLC]) ac_mode=$ac_tag; continue;;
16070 esac
16071 case $ac_mode$ac_tag in
16072 :[FHL]*:*);;
16073 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16074 :[FH]-) ac_tag=-:-;;
16075 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16076 esac
16077 ac_save_IFS=$IFS
16078 IFS=:
16079 set x $ac_tag
16080 IFS=$ac_save_IFS
16081 shift
16082 ac_file=$1
16083 shift
16085 case $ac_mode in
16086 :L) ac_source=$1;;
16087 :[FH])
16088 ac_file_inputs=
16089 for ac_f
16091 case $ac_f in
16092 -) ac_f="$tmp/stdin";;
16093 *) # Look for the file first in the build tree, then in the source tree
16094 # (if the path is not absolute). The absolute path cannot be DOS-style,
16095 # because $ac_f cannot contain `:'.
16096 test -f "$ac_f" ||
16097 case $ac_f in
16098 [\\/$]*) false;;
16099 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16100 esac ||
16101 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16102 esac
16103 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16104 as_fn_append ac_file_inputs " '$ac_f'"
16105 done
16107 # Let's still pretend it is `configure' which instantiates (i.e., don't
16108 # use $as_me), people would be surprised to read:
16109 # /* config.h. Generated by config.status. */
16110 configure_input='Generated from '`
16111 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16112 `' by configure.'
16113 if test x"$ac_file" != x-; then
16114 configure_input="$ac_file. $configure_input"
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16116 $as_echo "$as_me: creating $ac_file" >&6;}
16118 # Neutralize special characters interpreted by sed in replacement strings.
16119 case $configure_input in #(
16120 *\&* | *\|* | *\\* )
16121 ac_sed_conf_input=`$as_echo "$configure_input" |
16122 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16123 *) ac_sed_conf_input=$configure_input;;
16124 esac
16126 case $ac_tag in
16127 *:-:* | *:-) cat >"$tmp/stdin" \
16128 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16129 esac
16131 esac
16133 ac_dir=`$as_dirname -- "$ac_file" ||
16134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16135 X"$ac_file" : 'X\(//\)[^/]' \| \
16136 X"$ac_file" : 'X\(//\)$' \| \
16137 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X"$ac_file" |
16139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16140 s//\1/
16143 /^X\(\/\/\)[^/].*/{
16144 s//\1/
16147 /^X\(\/\/\)$/{
16148 s//\1/
16151 /^X\(\/\).*/{
16152 s//\1/
16155 s/.*/./; q'`
16156 as_dir="$ac_dir"; as_fn_mkdir_p
16157 ac_builddir=.
16159 case "$ac_dir" in
16160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16162 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16163 # A ".." for each directory in $ac_dir_suffix.
16164 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16165 case $ac_top_builddir_sub in
16166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16168 esac ;;
16169 esac
16170 ac_abs_top_builddir=$ac_pwd
16171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16172 # for backward compatibility:
16173 ac_top_builddir=$ac_top_build_prefix
16175 case $srcdir in
16176 .) # We are building in place.
16177 ac_srcdir=.
16178 ac_top_srcdir=$ac_top_builddir_sub
16179 ac_abs_top_srcdir=$ac_pwd ;;
16180 [\\/]* | ?:[\\/]* ) # Absolute name.
16181 ac_srcdir=$srcdir$ac_dir_suffix;
16182 ac_top_srcdir=$srcdir
16183 ac_abs_top_srcdir=$srcdir ;;
16184 *) # Relative name.
16185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16186 ac_top_srcdir=$ac_top_build_prefix$srcdir
16187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16188 esac
16189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16192 case $ac_mode in
16195 # CONFIG_FILE
16198 case $INSTALL in
16199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16201 esac
16202 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 # If the template does not know about datarootdir, expand it.
16206 # FIXME: This hack should be removed a few years after 2.60.
16207 ac_datarootdir_hack=; ac_datarootdir_seen=
16208 ac_sed_dataroot='
16209 /datarootdir/ {
16213 /@datadir@/p
16214 /@docdir@/p
16215 /@infodir@/p
16216 /@localedir@/p
16217 /@mandir@/p'
16218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16219 *datarootdir*) ac_datarootdir_seen=yes;;
16220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 ac_datarootdir_hack='
16226 s&@datadir@&$datadir&g
16227 s&@docdir@&$docdir&g
16228 s&@infodir@&$infodir&g
16229 s&@localedir@&$localedir&g
16230 s&@mandir@&$mandir&g
16231 s&\\\${datarootdir}&$datarootdir&g' ;;
16232 esac
16233 _ACEOF
16235 # Neutralize VPATH when `$srcdir' = `.'.
16236 # Shell code in configure.ac might set extrasub.
16237 # FIXME: do we really want to maintain this feature?
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 ac_sed_extra="$ac_vpsub
16240 $extrasub
16241 _ACEOF
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16245 s|@configure_input@|$ac_sed_conf_input|;t t
16246 s&@top_builddir@&$ac_top_builddir_sub&;t t
16247 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16248 s&@srcdir@&$ac_srcdir&;t t
16249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16250 s&@top_srcdir@&$ac_top_srcdir&;t t
16251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16252 s&@builddir@&$ac_builddir&;t t
16253 s&@abs_builddir@&$ac_abs_builddir&;t t
16254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16255 s&@INSTALL@&$ac_INSTALL&;t t
16256 $ac_datarootdir_hack
16258 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16259 if $ac_cs_awk_getline; then
16260 $AWK -f "$tmp/subs.awk"
16261 else
16262 $AWK -f "$tmp/subs.awk" | $SHELL
16263 fi >$tmp/out \
16264 || as_fn_error "could not create $ac_file" "$LINENO" 5
16266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16267 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16270 which seems to be undefined. Please make sure it is defined." >&5
16271 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16272 which seems to be undefined. Please make sure it is defined." >&2;}
16274 rm -f "$tmp/stdin"
16275 case $ac_file in
16276 -) cat "$tmp/out" && rm -f "$tmp/out";;
16277 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16278 esac \
16279 || as_fn_error "could not create $ac_file" "$LINENO" 5
16283 # CONFIG_HEADER
16285 if test x"$ac_file" != x-; then
16287 $as_echo "/* $configure_input */" \
16288 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16289 } >"$tmp/config.h" \
16290 || as_fn_error "could not create $ac_file" "$LINENO" 5
16291 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16293 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16294 else
16295 rm -f "$ac_file"
16296 mv "$tmp/config.h" "$ac_file" \
16297 || as_fn_error "could not create $ac_file" "$LINENO" 5
16299 else
16300 $as_echo "/* $configure_input */" \
16301 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16302 || as_fn_error "could not create -" "$LINENO" 5
16306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16307 $as_echo "$as_me: executing $ac_file commands" >&6;}
16309 esac
16312 case $ac_file$ac_mode in
16313 "default":C)
16315 ### Make the necessary directories, if they don't exist.
16316 for dir in etc lisp ; do
16317 test -d ${dir} || mkdir ${dir}
16318 done
16320 echo creating src/epaths.h
16321 ${MAKE-make} epaths-force
16323 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16324 echo creating src/.gdbinit
16325 echo source $srcdir/src/.gdbinit > src/.gdbinit
16330 esac
16331 done # for ac_tag
16334 as_fn_exit 0
16335 _ACEOF
16336 ac_clean_files=$ac_clean_files_save
16338 test $ac_write_fail = 0 ||
16339 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16342 # configure is writing to config.log, and then calls config.status.
16343 # config.status does its own redirection, appending to config.log.
16344 # Unfortunately, on DOS this fails, as config.log is still kept open
16345 # by configure, so config.status won't be able to write to it; its
16346 # output is simply discarded. So we exec the FD to /dev/null,
16347 # effectively closing config.log, so it can be properly (re)opened and
16348 # appended to by config.status. When coming back to configure, we
16349 # need to make the FD available again.
16350 if test "$no_create" != yes; then
16351 ac_cs_success=:
16352 ac_config_status_args=
16353 test "$silent" = yes &&
16354 ac_config_status_args="$ac_config_status_args --quiet"
16355 exec 5>/dev/null
16356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16357 exec 5>>config.log
16358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16359 # would make configure fail if this is the last instruction.
16360 $ac_cs_success || as_fn_exit $?
16362 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16364 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}