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,
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
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 :
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
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.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
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."
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."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
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 :
354 as_val
=`expr "$@" || test $? -eq 1`
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.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
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
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 ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
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
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`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
702 LD_SWITCH_X_SITE_AUX_RPATH
779 program_transform_name
790 ac_subst_files
='deps_frag
793 enable_option_checking
814 with_toolkit_scroll_bars
827 enable_ns_self_contained
829 enable_maintainer_mode
832 enable_use_lisp_union_type
838 ac_precious_vars
='build_alias
850 # Initialize some variables set by options.
852 ac_init_version
=false
853 ac_unrecognized_opts
=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name
=s
,x
,x
,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir
='${exec_prefix}/bin'
879 sbindir
='${exec_prefix}/sbin'
880 libexecdir
='${exec_prefix}/libexec'
881 datarootdir
='${prefix}/share'
882 datadir
='${datarootdir}'
883 sysconfdir
='${prefix}/etc'
884 sharedstatedir
='${prefix}/com'
885 localstatedir
='${prefix}/var'
886 includedir
='${prefix}/include'
887 oldincludedir
='/usr/include'
888 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir
='${datarootdir}/info'
894 libdir
='${exec_prefix}/lib'
895 localedir
='${datarootdir}/locale'
896 mandir
='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\
$ac_option
910 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
922 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
925 -build |
--build |
--buil |
--bui |
--bu)
926 ac_prev
=build_alias
;;
927 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
928 build_alias
=$ac_optarg ;;
930 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
931 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
932 ac_prev
=cache_file
;;
933 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
934 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
935 cache_file
=$ac_optarg ;;
938 cache_file
=config.cache
;;
940 -datadir |
--datadir |
--datadi |
--datad)
942 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
943 datadir
=$ac_optarg ;;
945 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
946 |
--dataroo |
--dataro |
--datar)
947 ac_prev
=datarootdir
;;
948 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
949 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
950 datarootdir
=$ac_optarg ;;
952 -disable-* |
--disable-*)
953 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
956 as_fn_error
"invalid feature name: $ac_useropt"
957 ac_useropt_orig
=$ac_useropt
958 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep
=', ';;
966 eval enable_
$ac_useropt=no
;;
968 -docdir |
--docdir |
--docdi |
--doc |
--do)
970 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
973 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
975 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
978 -enable-* |
--enable-*)
979 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
982 as_fn_error
"invalid feature name: $ac_useropt"
983 ac_useropt_orig
=$ac_useropt
984 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep
=', ';;
992 eval enable_
$ac_useropt=\
$ac_optarg ;;
994 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
995 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
996 |
--exec |
--exe |
--ex)
997 ac_prev
=exec_prefix
;;
998 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
999 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1000 |
--exec=* |
--exe=* |
--ex=*)
1001 exec_prefix
=$ac_optarg ;;
1003 -gas |
--gas |
--ga |
--g)
1004 # Obsolete; use --with-gas.
1007 -help |
--help |
--hel |
--he |
-h)
1008 ac_init_help
=long
;;
1009 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1010 ac_init_help
=recursive
;;
1011 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1012 ac_init_help
=short
;;
1014 -host |
--host |
--hos |
--ho)
1015 ac_prev
=host_alias
;;
1016 -host=* |
--host=* |
--hos=* |
--ho=*)
1017 host_alias
=$ac_optarg ;;
1019 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1021 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1023 htmldir
=$ac_optarg ;;
1025 -includedir |
--includedir |
--includedi |
--included |
--include \
1026 |
--includ |
--inclu |
--incl |
--inc)
1027 ac_prev
=includedir
;;
1028 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1029 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1030 includedir
=$ac_optarg ;;
1032 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1034 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1035 infodir
=$ac_optarg ;;
1037 -libdir |
--libdir |
--libdi |
--libd)
1039 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1040 libdir
=$ac_optarg ;;
1042 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1043 |
--libexe |
--libex |
--libe)
1044 ac_prev
=libexecdir
;;
1045 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1046 |
--libexe=* |
--libex=* |
--libe=*)
1047 libexecdir
=$ac_optarg ;;
1049 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1050 ac_prev
=localedir
;;
1051 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1052 localedir
=$ac_optarg ;;
1054 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1055 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1056 ac_prev
=localstatedir
;;
1057 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1058 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1059 localstatedir
=$ac_optarg ;;
1061 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1063 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1064 mandir
=$ac_optarg ;;
1066 -nfp |
--nfp |
--nf)
1067 # Obsolete; use --without-fp.
1070 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1071 |
--no-cr |
--no-c |
-n)
1074 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1075 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1078 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1079 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1080 |
--oldin |
--oldi |
--old |
--ol |
--o)
1081 ac_prev
=oldincludedir
;;
1082 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1083 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1084 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1085 oldincludedir
=$ac_optarg ;;
1087 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1089 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1090 prefix
=$ac_optarg ;;
1092 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1093 |
--program-pre |
--program-pr |
--program-p)
1094 ac_prev
=program_prefix
;;
1095 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1096 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1097 program_prefix
=$ac_optarg ;;
1099 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1100 |
--program-suf |
--program-su |
--program-s)
1101 ac_prev
=program_suffix
;;
1102 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1103 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1104 program_suffix
=$ac_optarg ;;
1106 -program-transform-name |
--program-transform-name \
1107 |
--program-transform-nam |
--program-transform-na \
1108 |
--program-transform-n |
--program-transform- \
1109 |
--program-transform |
--program-transfor \
1110 |
--program-transfo |
--program-transf \
1111 |
--program-trans |
--program-tran \
1112 |
--progr-tra |
--program-tr |
--program-t)
1113 ac_prev
=program_transform_name
;;
1114 -program-transform-name=* |
--program-transform-name=* \
1115 |
--program-transform-nam=* |
--program-transform-na=* \
1116 |
--program-transform-n=* |
--program-transform-=* \
1117 |
--program-transform=* |
--program-transfor=* \
1118 |
--program-transfo=* |
--program-transf=* \
1119 |
--program-trans=* |
--program-tran=* \
1120 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1121 program_transform_name
=$ac_optarg ;;
1123 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1125 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1126 pdfdir
=$ac_optarg ;;
1128 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1130 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1133 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1134 |
-silent |
--silent |
--silen |
--sile |
--sil)
1137 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1139 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1141 sbindir
=$ac_optarg ;;
1143 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1144 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1145 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1147 ac_prev
=sharedstatedir
;;
1148 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1149 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1150 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1152 sharedstatedir
=$ac_optarg ;;
1154 -site |
--site |
--sit)
1156 -site=* |
--site=* |
--sit=*)
1159 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1161 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1162 srcdir
=$ac_optarg ;;
1164 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1165 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1166 ac_prev
=sysconfdir
;;
1167 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1168 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1169 sysconfdir
=$ac_optarg ;;
1171 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1172 ac_prev
=target_alias
;;
1173 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1174 target_alias
=$ac_optarg ;;
1176 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1179 -version |
--version |
--versio |
--versi |
--vers |
-V)
1180 ac_init_version
=: ;;
1183 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1186 as_fn_error
"invalid package name: $ac_useropt"
1187 ac_useropt_orig
=$ac_useropt
1188 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep
=', ';;
1196 eval with_
$ac_useropt=\
$ac_optarg ;;
1198 -without-* |
--without-*)
1199 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1202 as_fn_error
"invalid package name: $ac_useropt"
1203 ac_useropt_orig
=$ac_useropt
1204 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep
=', ';;
1212 eval with_
$ac_useropt=no
;;
1215 # Obsolete; use --with-x.
1218 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1219 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1220 ac_prev
=x_includes
;;
1221 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1222 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1223 x_includes
=$ac_optarg ;;
1225 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1226 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1227 ac_prev
=x_libraries
;;
1228 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1229 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1230 x_libraries
=$ac_optarg ;;
1232 -*) as_fn_error
"unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1237 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1241 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\
$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error
"missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val
=\$
$ac_var
1277 # Remove trailing slashes.
1280 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\
$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$
]* | ?
:[\\/]* ) continue;;
1286 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1288 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target
=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x
; then
1300 if test "x$build_alias" = x
; then
1301 cross_compiling
=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1312 test "$silent" = yes && exec 6>/dev
/null
1315 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di
=`ls -di .` &&
1317 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error
"working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error
"pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted
=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir
=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted
=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1359 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var
in $ac_precious_vars; do
1376 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1378 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1452 --x-includes=DIR X include files are
in DIR
1453 --x-libraries=DIR X library files are
in DIR
1456 --build=BUILD configure
for building on BUILD
[guessed
]
1457 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1468 --disable-option-checking ignore unrecognized
--enable/--with options
1469 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1470 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1471 --disable-ns-self-contained
1472 disable self contained build under NeXTstep
1473 --enable-asserts compile code with asserts enabled
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful
(and
1476 sometimes confusing
) to the casual installer
1477 --enable-locallisppath=PATH
1478 directories Emacs should search
for lisp files
1479 specific to this site
1480 --enable-checking[=LIST
]
1481 enable expensive run-time checks. With LIST
, enable
1482 only specific categories of checks. Categories are
:
1483 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1484 stringfreelist
, xmallocoverrun
, conslist
1485 --enable-use-lisp-union-type
1486 use a union
for the Lisp_Object data
type. This is
1487 only useful
for development
for catching certain
1489 --enable-profiling build emacs with profiling support. This might not
1490 work on all platforms
1491 --enable-autodepend automatically generate dependencies to .h-files.
1492 Requires GNU Make and Gcc. Enabled
if GNU Make and
1494 --disable-largefile omit support
for large files
1497 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1498 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1499 --without-pop don
't support POP mail retrieval with movemail
1500 --with-kerberos support Kerberos-authenticated POP
1501 --with-kerberos5 support Kerberos version 5 authenticated POP
1502 --with-hesiod support Hesiod to get the POP server host
1503 --with-mmdf support MMDF mailboxes
1504 --with-mail-unlink unlink, rather than empty, mail spool after reading
1505 --with-mailhost=HOSTNAME
1506 string giving default POP mail host
1507 --without-sound don't compile with sound support
1508 --without-sync-input process async input synchronously
1509 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1510 lucid or athena
, motif
, no
)
1511 --without-xpm don
't compile with XPM image support
1512 --without-jpeg don't compile with JPEG image support
1513 --without-tiff don
't compile with TIFF image support
1514 --without-gif don't compile with GIF image support
1515 --without-png don
't compile with PNG image support
1516 --without-rsvg don't compile with SVG image support
1517 --with-imagemagick compile with ImageMagick image support
1518 --without-xft don
't use XFT for anti aliased fonts
1519 --without-libotf don't use libotf
for OpenType font support
1520 --without-m17n-flt don
't use m17n-flt for text shaping
1521 --without-toolkit-scroll-bars
1522 don't use Motif or Xaw3d scroll bars
1523 --without-xaw3d don
't use Xaw3d
1524 --without-xim don't use X11 XIM
1525 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1526 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1528 --without-dbus don't compile with D-Bus support
1529 --without-gconf don
't compile with GConf support
1530 --without-selinux don't compile with SELinux support
1531 --without-makeinfo don
't require makeinfo for building manuals
1532 --without-compress-info don't
compress the installed Info pages
1533 --with-pkg-config-prog=PATH
1534 path to pkg-config
for finding GTK and librsvg
1535 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1536 /usr
/lib
, or
/usr
/lib64 on some platforms.
1537 --with-gnustep-conf=PATH
1538 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1539 or
/etc
/GNUstep
/GNUstep.conf
1540 --with-x use the X Window System
1542 Some influential environment variables
:
1543 CC C compiler
command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1546 nonstandard directory
<lib dir
>
1547 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1548 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1549 you have headers
in a nonstandard directory
<include dir
>
1551 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1553 Use these variables to override the choices made by
`configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1556 Report bugs to the package provider.
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1586 .) # We are building in place.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1619 emacs configure 24.0.50
1620 generated by GNU Autoconf 2.65
1622 Copyright (C) 2009 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1643 *) ac_try_echo
=$ac_try;;
1645 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1649 if test -s conftest.err
; then
1650 grep -v '^ *+' conftest.err
>conftest.er1
1651 cat conftest.er1
>&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.
$ac_objext; then :
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.
$ac_ext >&5
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1667 as_fn_set_status
$ac_retval
1669 } # ac_fn_c_try_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1677 rm -f conftest.
$ac_objext conftest
$ac_exeext
1678 if { { ac_try
="$ac_link"
1680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1726 *) ac_try_echo
=$ac_try;;
1728 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err
; then
1733 grep -v '^ *+' conftest.err
>conftest.er1
1734 cat conftest.er1
>&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } >/dev
/null
&& {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.
$ac_ext >&5
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1750 as_fn_set_status
$ac_retval
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1759 ac_fn_c_check_header_mongrel
()
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile
"$LINENO"; then :
1781 ac_header_compiler
=yes
1783 ac_header_compiler
=no
1785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 if ac_fn_c_try_cpp
"$LINENO"; then :
1797 ac_header_preproc
=yes
1799 ac_header_preproc
=no
1801 rm -f conftest.err conftest.
$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1831 eval "$3=\$ac_header_compiler"
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1839 } # ac_fn_c_check_header_mongrel
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1847 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1848 if { { ac_try
="$ac_link"
1850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.
$ac_ext >&5
1875 ac_retval
=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1879 as_fn_set_status
$ac_retval
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile
()
1889 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile
"$LINENO"; then :
1905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_check_decl LINENO SYMBOL VAR
1915 # ------------------------------------
1916 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1917 ac_fn_c_check_decl
()
1919 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1921 $as_echo_n "checking whether $2 is declared... " >&6; }
1922 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1939 if ac_fn_c_try_compile
"$LINENO"; then :
1944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1951 } # ac_fn_c_check_decl
1953 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1954 # ----------------------------------------------
1955 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1956 ac_fn_c_check_header_preproc
()
1958 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1968 if ac_fn_c_try_cpp
"$LINENO"; then :
1973 rm -f conftest.err conftest.
$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1980 } # ac_fn_c_check_header_preproc
1982 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1983 # ----------------------------------------------------
1984 # Tries to find if the field MEMBER exists in type AGGR, after including
1985 # INCLUDES, setting cache variable VAR accordingly.
1986 ac_fn_c_check_member
()
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1990 $as_echo_n "checking for $2.$3... " >&6; }
1991 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2007 if ac_fn_c_try_compile
"$LINENO"; then :
2010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2017 if (sizeof ac_aggr.$3)
2023 if ac_fn_c_try_compile
"$LINENO"; then :
2028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2037 } # ac_fn_c_check_member
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func
()
2044 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2062 # include <limits.h>
2064 # include <assert.h>
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2091 if ac_fn_c_try_link
"$LINENO"; then :
2096 rm -f core conftest.err conftest.
$ac_objext \
2097 conftest
$ac_exeext conftest.
$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2104 } # ac_fn_c_check_func
2106 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2107 # -------------------------------------------
2108 # Tests whether TYPE exists after having included INCLUDES, setting cache
2109 # variable VAR accordingly.
2110 ac_fn_c_check_type
()
2112 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2116 $as_echo_n "(cached) " >&6
2119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2131 if ac_fn_c_try_compile
"$LINENO"; then :
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2158 } # ac_fn_c_check_type
2159 cat >config.log
<<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2163 It was created by emacs $as_me 24.0.50, which was
2164 generated by GNU Autoconf 2.65. Invocation command line was
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir
=.
2200 $as_echo "PATH: $as_dir"
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_must_keep_next
=false
2230 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2232 |
-silent |
--silent |
--silen |
--sile |
--sil)
2235 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1
" '$ac_arg'"
2241 if test $ac_must_keep_next = true
; then
2242 ac_must_keep_next
=false
# Got value, back to normal.
2245 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2246 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2247 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2248 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 -* ) ac_must_keep_next
=true
;;
2256 as_fn_append ac_configure_args
" '$ac_arg'"
2261 { ac_configure_args0
=; unset ac_configure_args0
;}
2262 { ac_configure_args1
=; unset ac_configure_args1
;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2280 # The following way of writing the cache mishandles newlines in values,
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) { eval $ac_var=; unset $ac_var;} ;;
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##
2318 for ac_var in $ac_subst_vars
2320 eval ac_val=\$$ac_var
2322 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 $as_echo "$ac_var='\''$ac_val'\''"
2328 if test -n "$ac_subst_files"; then
2330 ## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##
2335 for ac_var
in $ac_subst_files
2337 eval ac_val
=\$
$ac_var
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 $as_echo "$ac_var='\''$ac_val'\''"
2346 if test -s confdefs.h; then
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 for ac_signal
in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest
* confdefs.h
2372 $as_echo "/* confdefs.h */" > confdefs.h
2374 # Predefined preprocessor variables.
2376 cat >>confdefs.h
<<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 cat >>confdefs.h
<<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 cat >>confdefs.h
<<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 cat >>confdefs.h
<<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 cat >>confdefs.h
<<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 cat >>confdefs.h
<<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2405 if test -n "$CONFIG_SITE"; then
2406 ac_site_file1
=$CONFIG_SITE
2407 elif test "x$prefix" != xNONE
; then
2408 ac_site_file1
=$prefix/share
/config.site
2409 ac_site_file2
=$prefix/etc
/config.site
2411 ac_site_file1
=$ac_default_prefix/share
/config.site
2412 ac_site_file2
=$ac_default_prefix/etc
/config.site
2414 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE
&& continue
2417 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2433 *) .
"./$cache_file";;
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2442 as_fn_append ac_header_list
" stdlib.h"
2443 as_fn_append ac_header_list
" unistd.h"
2444 as_fn_append ac_header_list
" sys/param.h"
2445 as_fn_append ac_func_list
" MagickExportImagePixels"
2446 as_fn_append ac_header_list
" sys/time.h"
2447 as_fn_append ac_func_list
" alarm"
2448 # Check that the precious variables saved in the cache have kept the same
2450 ac_cache_corrupted
=false
2451 for ac_var
in $ac_precious_vars; do
2452 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2453 eval ac_new_set
=\
$ac_env_${ac_var}_set
2454 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2455 eval ac_new_val
=\
$ac_env_${ac_var}_value
2456 case $ac_old_set,$ac_new_set in
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460 ac_cache_corrupted
=: ;;
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2464 ac_cache_corrupted
=: ;;
2467 if test "x$ac_old_val" != "x$ac_new_val"; then
2468 # differences in whitespace do not lead to failure.
2469 ac_old_val_w
=`echo x $ac_old_val`
2470 ac_new_val_w
=`echo x $ac_new_val`
2471 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2474 ac_cache_corrupted
=:
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478 eval $ac_var=\
$ac_old_val
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2481 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2486 # Pass precious variables to config.status.
2487 if test "$ac_new_set" = set; then
2489 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 *) ac_arg
=$ac_var=$ac_new_val ;;
2492 case " $ac_configure_args " in
2493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2494 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2498 if $ac_cache_corrupted; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2510 ac_cpp
='$CPP $CPPFLAGS'
2511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2516 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2520 test "$program_prefix" != NONE
&&
2521 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE
&&
2524 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 lispdir
='${datadir}/emacs/${version}/lisp'
2532 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2533 '${datadir}/emacs/site-lisp'
2534 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2535 etcdir
='${datadir}/emacs/${version}/etc'
2536 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2537 docdir
='${datadir}/emacs/${version}/etc'
2538 gamedir
='${localstatedir}/games/emacs'
2545 # Check whether --with-pop was given.
2546 if test "${with_pop+set}" = set; then :
2552 if test "$with_pop" = yes; then
2553 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2558 # Check whether --with-kerberos was given.
2559 if test "${with_kerberos+set}" = set; then :
2560 withval
=$with_kerberos;
2565 if test "$with_kerberos" != no
; then
2566 $as_echo "#define KERBEROS 1" >>confdefs.h
2571 # Check whether --with-kerberos5 was given.
2572 if test "${with_kerberos5+set}" = set; then :
2573 withval
=$with_kerberos5;
2578 if test "${with_kerberos5}" != no
; then
2579 if test "${with_kerberos}" = no
; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2585 $as_echo "#define KERBEROS5 1" >>confdefs.h
2590 # Check whether --with-hesiod was given.
2591 if test "${with_hesiod+set}" = set; then :
2592 withval
=$with_hesiod;
2597 if test "$with_hesiod" != no
; then
2599 $as_echo "#define HESIOD 1" >>confdefs.h
2604 # Check whether --with-mmdf was given.
2605 if test "${with_mmdf+set}" = set; then :
2611 if test "$with_mmdf" != no
; then
2613 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2618 # Check whether --with-mail-unlink was given.
2619 if test "${with_mail_unlink+set}" = set; then :
2620 withval
=$with_mail_unlink;
2625 if test "$with_mail_unlink" != no
; then
2627 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2632 # Check whether --with-mailhost was given.
2633 if test "${with_mailhost+set}" = set; then :
2634 withval
=$with_mailhost;
2635 cat >>confdefs.h
<<_ACEOF
2636 #define MAILHOST "$withval"
2643 # Check whether --with-sound was given.
2644 if test "${with_sound+set}" = set; then :
2645 withval
=$with_sound;
2652 # Check whether --with-sync-input was given.
2653 if test "${with_sync_input+set}" = set; then :
2654 withval
=$with_sync_input;
2659 if test "$with_sync_input" = yes; then
2661 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2666 # Check whether --with-x-toolkit was given.
2667 if test "${with_x_toolkit+set}" = set; then :
2668 withval
=$with_x_toolkit; case "${withval}" in
2669 y | ye |
yes ) val
=gtk
;;
2671 l | lu | luc | luci | lucid
) val
=lucid
;;
2672 a |
at | ath | athe | athen | athena
) val
=athena
;;
2673 m | mo | mot | moti | motif
) val
=motif
;;
2674 g | gt | gtk
) val
=gtk
;;
2677 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
2678 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2679 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2688 # Check whether --with-xpm was given.
2689 if test "${with_xpm+set}" = set; then :
2696 # Check whether --with-jpeg was given.
2697 if test "${with_jpeg+set}" = set; then :
2704 # Check whether --with-tiff was given.
2705 if test "${with_tiff+set}" = set; then :
2712 # Check whether --with-gif was given.
2713 if test "${with_gif+set}" = set; then :
2720 # Check whether --with-png was given.
2721 if test "${with_png+set}" = set; then :
2728 # Check whether --with-rsvg was given.
2729 if test "${with_rsvg+set}" = set; then :
2736 # Check whether --with-imagemagick was given.
2737 if test "${with_imagemagick+set}" = set; then :
2738 withval
=$with_imagemagick;
2745 # Check whether --with-xft was given.
2746 if test "${with_xft+set}" = set; then :
2753 # Check whether --with-libotf was given.
2754 if test "${with_libotf+set}" = set; then :
2755 withval
=$with_libotf;
2761 # Check whether --with-m17n-flt was given.
2762 if test "${with_m17n_flt+set}" = set; then :
2763 withval
=$with_m17n_flt;
2770 # Check whether --with-toolkit-scroll-bars was given.
2771 if test "${with_toolkit_scroll_bars+set}" = set; then :
2772 withval
=$with_toolkit_scroll_bars;
2774 with_toolkit_scroll_bars
=yes
2778 # Check whether --with-xaw3d was given.
2779 if test "${with_xaw3d+set}" = set; then :
2780 withval
=$with_xaw3d;
2786 # Check whether --with-xim was given.
2787 if test "${with_xim+set}" = set; then :
2794 # Check whether --with-ns was given.
2795 if test "${with_ns+set}" = set; then :
2803 # Check whether --with-gpm was given.
2804 if test "${with_gpm+set}" = set; then :
2811 # Check whether --with-dbus was given.
2812 if test "${with_dbus+set}" = set; then :
2819 # Check whether --with-gconf was given.
2820 if test "${with_gconf+set}" = set; then :
2821 withval
=$with_gconf;
2827 # Check whether --with-selinux was given.
2828 if test "${with_selinux+set}" = set; then :
2829 withval
=$with_selinux;
2835 ## For the times when you want to build Emacs but don't have
2836 ## a suitable makeinfo, and can live without the manuals.
2838 # Check whether --with-makeinfo was given.
2839 if test "${with_makeinfo+set}" = set; then :
2840 withval
=$with_makeinfo;
2846 ## This is an option because I do not know if all info/man support
2847 ## compressed files, nor how to test if they do so.
2849 # Check whether --with-compress-info was given.
2850 if test "${with_compress_info+set}" = set; then :
2851 withval
=$with_compress_info;
2853 with_compress_info
=yes
2856 if test $with_compress_info = yes; then
2864 # Check whether --with-pkg-config-prog was given.
2865 if test "${with_pkg_config_prog+set}" = set; then :
2866 withval
=$with_pkg_config_prog;
2869 if test "X${with_pkg_config_prog}" != X
; then
2870 if test "${with_pkg_config_prog}" != yes; then
2871 PKG_CONFIG
="${with_pkg_config_prog}"
2877 # Check whether --with-crt-dir was given.
2878 if test "${with_crt_dir+set}" = set; then :
2879 withval
=$with_crt_dir;
2882 CRT_DIR
="${with_crt_dir}"
2885 # Check whether --with-gnustep-conf was given.
2886 if test "${with_gnustep_conf+set}" = set; then :
2887 withval
=$with_gnustep_conf;
2890 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2891 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2892 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2893 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2895 # Check whether --enable-ns-self-contained was given.
2896 if test "${enable_ns_self_contained+set}" = set; then :
2897 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2899 EN_NS_SELF_CONTAINED
=yes
2903 # Check whether --enable-asserts was given.
2904 if test "${enable_asserts+set}" = set; then :
2905 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2911 # Check whether --enable-maintainer-mode was given.
2912 if test "${enable_maintainer_mode+set}" = set; then :
2913 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2915 USE_MAINTAINER_MODE
=no
2918 if test $USE_MAINTAINER_MODE = yes; then
2925 # Check whether --enable-locallisppath was given.
2926 if test "${enable_locallisppath+set}" = set; then :
2927 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2929 elif test "${enableval}" != "yes"; then
2930 locallisppath
=${enableval}
2935 # Check whether --enable-checking was given.
2936 if test "${enable_checking+set}" = set; then :
2937 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2940 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2941 for check
in $ac_checking_flags
2944 # these set all the flags to specific states
2945 yes) ac_enable_checking
=1 ;;
2946 no
) ac_enable_checking
= ;
2947 ac_gc_check_stringbytes
= ;
2948 ac_gc_check_string_overrun
= ;
2949 ac_gc_check_string_free_list
= ;
2950 ac_xmalloc_overrun
= ;
2951 ac_gc_check_cons_list
= ;;
2952 all
) ac_enable_checking
=1 ;
2953 ac_gc_check_stringbytes
=1 ;
2954 ac_gc_check_string_overrun
=1 ;
2955 ac_gc_check_string_free_list
=1 ;
2956 ac_xmalloc_overrun
=1 ;
2957 ac_gc_check_cons_list
=1 ;;
2958 # these enable particular checks
2959 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2960 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2961 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2962 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2963 conslist
) ac_gc_check_cons_list
=1 ;;
2964 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
2969 if test x
$ac_enable_checking != x
; then
2971 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2974 if test x
$ac_gc_check_stringbytes != x
; then
2976 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2979 if test x
$ac_gc_check_stringoverrun != x
; then
2981 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2984 if test x
$ac_gc_check_string_free_list != x
; then
2986 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2989 if test x
$ac_xmalloc_overrun != x
; then
2991 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2994 if test x
$ac_gc_check_cons_list != x
; then
2996 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3000 # Check whether --enable-use-lisp-union-type was given.
3001 if test "${enable_use_lisp_union_type+set}" = set; then :
3002 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3004 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3011 # Check whether --enable-profiling was given.
3012 if test "${enable_profiling+set}" = set; then :
3013 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3016 if test x
$ac_enable_profiling != x
; then
3017 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3018 PROFILING_LDFLAGS
="-pg"
3026 # Check whether --enable-autodepend was given.
3027 if test "${enable_autodepend+set}" = set; then :
3028 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3030 ac_enable_autodepend
=yes
3034 #### Make srcdir absolute, if it isn't already. It's important to
3035 #### avoid running the path through pwd unnecessarily, since pwd can
3036 #### give you automounter prefixes, which can go away. We do all this
3037 #### so Emacs can find its files when run uninstalled.
3038 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3043 ## We may be able to use the $PWD environment variable to make this
3044 ## absolute. But sometimes PWD is inaccurate.
3045 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3046 ## but that tested only for a well-formed and valid PWD,
3047 ## it did not object when PWD was well-formed and valid but just wrong.
3048 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3052 srcdir
="`(cd ${srcdir}; pwd)`"
3055 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3058 #### Check if the source directory already has a configured system in it.
3059 if test `pwd` != `(cd ${srcdir} && pwd)` \
3060 && test -f "${srcdir}/src/config.h" ; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3062 as a build directory right now; it has been configured in its own
3063 right. To configure in another directory as well, you MUST
3064 use GNU make. If you do not have GNU make, then you must
3065 now do \`make distclean' in ${srcdir},
3066 and then run $0 again." >&5
3067 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3068 as a build directory right now; it has been configured in its own
3069 right. To configure in another directory as well, you MUST
3070 use GNU make. If you do not have GNU make, then you must
3071 now do \`make distclean' in ${srcdir},
3072 and then run $0 again." >&2;}
3075 #### Given the configuration name, set machfile and opsysfile to the
3076 #### names of the m/*.h and s/*.h files we should use.
3078 ### Canonicalize the configuration name.
3081 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3082 for ac_t
in install-sh
install.sh shtool
; do
3083 if test -f "$ac_dir/$ac_t"; then
3085 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3090 if test -z "$ac_aux_dir"; then
3091 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3094 # These three variables are undocumented and unsupported,
3095 # and are intended to be withdrawn in a future Autoconf release.
3096 # They can cause serious problems if a builder's source tree is in a directory
3097 # whose full name contains unusual characters.
3098 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3099 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3100 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3103 # Make sure we can run config.sub.
3104 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3105 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3108 $as_echo_n "checking build system type... " >&6; }
3109 if test "${ac_cv_build+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3112 ac_build_alias
=$build_alias
3113 test "x$ac_build_alias" = x
&&
3114 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3115 test "x$ac_build_alias" = x
&&
3116 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3117 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3118 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3122 $as_echo "$ac_cv_build" >&6; }
3123 case $ac_cv_build in
3125 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3128 ac_save_IFS
=$IFS; IFS
='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3142 $as_echo_n "checking host system type... " >&6; }
3143 if test "${ac_cv_host+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3146 if test "x$host_alias" = x
; then
3147 ac_cv_host
=$ac_cv_build
3149 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3150 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3155 $as_echo "$ac_cv_host" >&6; }
3158 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3161 ac_save_IFS
=$IFS; IFS
='-'
3167 # Remember, the first character of IFS is used to create $*,
3168 # except with old shells:
3171 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3175 configuration
=${host_alias-${build_alias-$host}}
3179 ### If you add support for a new configuration, add code to this
3180 ### switch statement to recognize your configuration name and select
3181 ### the appropriate operating system and machine description files.
3183 ### You would hope that you could choose an m/*.h file pretty much
3184 ### based on the machine portion of the configuration name, and an s/*.h
3185 ### file based on the operating system portion. However, it turns out
3186 ### that each m/*.h file is pretty manufacturer-specific - for
3187 ### example mips.h is MIPS
3188 ### So we basically have to have a special case for each
3189 ### configuration name.
3191 ### As far as handling version numbers on operating systems is
3192 ### concerned, make sure things will fail in a fixable way. If
3193 ### /etc/MACHINES doesn't say anything about version numbers, be
3194 ### prepared to handle anything reasonably. If version numbers
3195 ### matter, be sure /etc/MACHINES says something about it.
3197 machine
='' opsys
='' unported
=no
3198 case "${canonical}" in
3203 case "${canonical}" in
3204 alpha
*) machine
=alpha
;;
3205 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3206 arm
*) machine
=arm
;;
3207 ia64-
*) machine
=ia64
;;
3208 i
[3456]86-*) machine
=intel386
;;
3209 powerpc-
*) machine
=macppc
;;
3210 sparc-
*) machine
=sparc
;;
3211 sparc64-
*) machine
=sparc
;;
3215 ## FreeBSD kernel + glibc based userland
3218 case "${canonical}" in
3219 alpha
*) machine
=alpha
;;
3220 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3221 ia64-
*) machine
=ia64
;;
3222 i
[3456]86-*) machine
=intel386
;;
3223 powerpc-
*) machine
=macppc
;;
3224 sparc-
*) machine
=sparc
;;
3225 sparc64-
*) machine
=sparc
;;
3232 case "${canonical}" in
3233 alpha
*) machine
=alpha
;;
3234 x86_64-
*) machine
=amdx86-64
;;
3235 arm-
*) machine
=arm
;;
3236 hppa-
*) machine
=hp800
;;
3237 i
[3456]86-*) machine
=intel386
;;
3238 m68k-
*) machine
=m68k
;;
3239 powerpc-
*) machine
=macppc
;;
3240 mips-
*) machine
=mips
;;
3241 mipse
[bl
]-*) machine
=mips
;;
3242 sparc
*-) machine
=sparc
;;
3243 vax-
*) machine
=vax
;;
3250 case "${canonical}" in
3251 alpha
*) machine
=alpha
;;
3252 x86_64-
*) machine
=amdx86-64
;;
3253 arm-
*) machine
=arm
;;
3254 hppa-
*) machine
=hp800
;;
3255 i386-
*) machine
=intel386
;;
3256 powerpc-
*) machine
=macppc
;;
3257 sparc
*) machine
=sparc
;;
3258 vax-
*) machine
=vax
;;
3262 alpha
*-*-linux-gnu* )
3263 machine
=alpha opsys
=gnu-linux
3267 machine
=arm opsys
=gnu-linux
3270 ## Apple Darwin / Mac OS X
3272 case "${canonical}" in
3273 i
[3456]86-* ) machine
=intel386
;;
3274 powerpc-
* ) machine
=macppc
;;
3275 x86_64-
* ) machine
=amdx86-64
;;
3279 # Define CPP as follows to make autoconf work correctly.
3280 CPP
="${CC-cc} -E -no-cpp-precomp"
3281 # Use fink packages if available.
3282 if test -d /sw
/include
&& test -d /sw
/lib
; then
3283 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3284 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3285 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3289 ## HP 9000 series 700 and 800, running HP/UX
3290 hppa
*-hp-hpux10.2
* )
3291 machine
=hp800 opsys
=hpux10-20
3293 hppa
*-hp-hpux1[1-9]* )
3294 machine
=hp800 opsys
=hpux11
3295 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3298 hppa
*-*-linux-gnu* )
3299 machine
=hp800 opsys
=gnu-linux
3304 machine
=ibms390 opsys
=gnu-linux
3306 s390x-
*-linux-gnu* )
3307 machine
=ibms390x opsys
=gnu-linux
3309 rs6000-ibm-aix4.
[23]* )
3310 machine
=ibmrs6000 opsys
=aix4-2
3312 powerpc-ibm-aix4.
[23]* )
3313 machine
=ibmrs6000 opsys
=aix4-2
3315 rs6000-ibm-aix
[56]* )
3316 machine
=ibmrs6000 opsys
=aix4-2
3318 powerpc-ibm-aix
[56]* )
3319 machine
=ibmrs6000 opsys
=aix4-2
3322 ## Macintosh PowerPC
3323 powerpc
*-*-linux-gnu* )
3324 machine
=macppc opsys
=gnu-linux
3327 ## Silicon Graphics machines
3330 machine
=iris4d opsys
=irix6-5
3331 # Without defining _LANGUAGE_C, things get masked out in the headers
3332 # so that, for instance, grepping for `free' in stdlib.h fails and
3333 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3334 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3335 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3339 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3340 machine
=sparc opsys
=gnu-linux
3344 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3345 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3346 case "${canonical}" in
3347 i
[3456]86-*-* ) machine
=intel386
;;
3348 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3349 sparc
* ) machine
=sparc
;;
3352 case "${canonical}" in
3353 *-sunos5.6
* |
*-solaris2.6
* )
3355 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3358 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3360 emacs_check_sunpro_c
=yes
3361 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3363 *-sunos5* |
*-solaris* )
3365 emacs_check_sunpro_c
=yes
3366 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3369 ## Watch out for a compiler that we know will not work.
3370 case "${canonical}" in
3371 *-solaris* |
*-sunos5* )
3372 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3373 ## /usr/ucb/cc doesn't work;
3374 ## we should find some other compiler that does work.
3384 machine
=ia64 opsys
=gnu-linux
3387 ## Intel 386 machines where we don't care about the manufacturer.
3390 case "${canonical}" in
3391 *-cygwin ) opsys
=cygwin
;;
3392 *-darwin* ) opsys
=darwin
3393 CPP
="${CC-cc} -E -no-cpp-precomp"
3395 *-linux-gnu* ) opsys
=gnu-linux
;;
3396 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3397 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3398 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3399 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3403 ## m68k Linux-based GNU system
3405 machine
=m68k opsys
=gnu-linux
3408 ## Mips Linux-based GNU system
3409 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3410 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3411 machine
=mips opsys
=gnu-linux
3414 ## AMD x86-64 Linux-based GNU system
3415 x86_64-
*-linux-gnu* )
3416 machine
=amdx86-64 opsys
=gnu-linux
3419 ## Tensilica Xtensa Linux-based GNU system
3420 xtensa
*-*-linux-gnu* )
3421 machine
=xtensa opsys
=gnu-linux
3424 ## SuperH Linux-based GNU system
3425 sh
[34]*-*-linux-gnu* )
3426 machine
=sh3 opsys
=gnu-linux
3434 ### If the code above didn't choose an operating system, just choose
3435 ### an operating system based on the configuration name. You really
3436 ### only want to use this when you have no idea what the right
3437 ### operating system is; if you know what operating systems a machine
3438 ### runs, it's cleaner to make it explicit in the case statement
3440 if test x
"${opsys}" = x
; then
3441 case "${canonical}" in
3442 *-gnu* ) opsys
=gnu
;;
3451 if test $unported = yes; then
3452 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3453 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3456 machfile
="m/${machine}.h"
3457 opsysfile
="s/${opsys}.h"
3460 #### Choose a compiler.
3461 test -n "$CC" && cc_specified
=yes
3463 # Save the value of CFLAGS that the user specified.
3464 SPECIFIED_CFLAGS
="$CFLAGS"
3467 ac_cpp
='$CPP $CPPFLAGS'
3468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_CC+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC
="$CC" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3510 if test -z "$ac_cv_prog_CC"; then
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc
; ac_word
=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_ac_ct_CC
="gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 $as_echo "$ac_ct_CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3548 if test "x$ac_ct_CC" = x
; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned
=yes ;;
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3566 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_CC+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CC"; then
3573 ac_cv_prog_CC
="$CC" # Let the user override the test.
3575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir
=.
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 if test -n "$CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3604 if test -z "$CC"; then
3605 # Extract the first word of "cc", so it can be a program name with args.
3606 set dummy cc
; ac_word
=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC
="$CC" # Let the user override the test.
3616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3620 test -z "$as_dir" && as_dir
=.
3621 for ac_exec_ext
in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3624 ac_prog_rejected
=yes
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test $ac_prog_rejected = yes; then
3636 # We found a bogon in the path, so make sure we never use it.
3637 set dummy
$ac_cv_prog_CC
3639 if test $# != 0; then
3640 # We chose a different compiler from the bogus one.
3641 # However, it has the same basename, so the bogon will be chosen
3642 # first if we set CC to just the basename; use the full file name.
3644 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3650 if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 if test -n "$ac_tool_prefix"; then
3662 for ac_prog
in cl.exe
3664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC
="$CC" # Let the user override the test.
3674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir
=.
3679 for ac_exec_ext
in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$CC" && break
3704 if test -z "$CC"; then
3706 for ac_prog
in cl.exe
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy
$ac_prog; ac_word
=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir
=.
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_CC
="$ac_prog"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3736 if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738 $as_echo "$ac_ct_CC" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3745 test -n "$ac_ct_CC" && break
3748 if test "x$ac_ct_CC" = x
; then
3751 case $cross_compiling:$ac_tool_warned in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned
=yes ;;
3764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error
"no acceptable C compiler found in \$PATH
3767 See \`config.log' for more details." "$LINENO" 5; }
3769 # Provide some information about the compiler.
3770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3773 for ac_option
in --version -v -V -qversion; do
3774 { { ac_try
="$ac_compiler $ac_option >&5"
3776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 if test -s conftest.err; then
3785 ... rest of stderr output deleted ...
3786 10q' conftest.err >conftest.er1
3787 cat conftest.er1 >&5
3789 rm -f conftest.er1 conftest.err
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 ac_clean_files_save=$ac_clean_files
3806 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3807 # Try to create an executable without -o first, disregard a.out.
3808 # It will help us diagnose broken compilers, and finding out an intuition
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3811 $as_echo_n "checking whether the C compiler works... " >&6; }
3812 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3814 # The possible output files:
3815 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3818 for ac_file in $ac_files
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 if { { ac_try="$ac_link_default"
3829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3830 *) ac_try_echo
=$ac_try;;
3832 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_link_default") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; then :
3838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3839 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3840 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3841 # so that the user can short-circuit this test for compilers unknown to
3843 for ac_file
in $ac_files ''
3845 test -f "$ac_file" ||
continue
3847 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3850 # We found the default executable, but exeext='' is most
3854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3856 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858 # We set ac_cv_exeext here because the later test for it is not
3859 # safe: cross compilers may not add the suffix if given an `-o'
3860 # argument, so we may need to know it at that point already.
3861 # Even if this section looks crufty: it has the advantage of
3868 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3873 if test -z "$ac_file"; then :
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 { as_fn_set_status
77
3882 as_fn_error
"C compiler cannot create executables
3883 See \`config.log' for more details." "$LINENO" 5; }; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext
=$ac_cv_exeext
3894 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3895 ac_clean_files
=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try
="$ac_link"
3900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3910 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3913 for ac_file
in conftest.exe conftest conftest.
*; do
3914 test -f "$ac_file" ||
continue
3916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3917 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details." "$LINENO" 5; }
3928 rm -f conftest conftest
$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3932 rm -f conftest.
$ac_ext
3933 EXEEXT
=$ac_cv_exeext
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3948 ac_clean_files
="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try
="$ac_link"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3968 *) ac_try_echo
=$ac_try;;
3970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3978 if test "$cross_compiling" = maybe
; then
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
"cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details." "$LINENO" 5; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3993 ac_clean_files
=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try
="$ac_compile"
4013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files
: cannot compile
4037 See \
`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4154 if test "$GCC" = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_cv_prog_cc_c89=no
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4187 s = g (p, va_arg (v,int));
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4230 rm -f conftest.$ac_ext
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 # On Suns, sometimes $CPP names a directory.
4259 if test -n "$CPP" && test -d "$CPP"; then
4263 ## If not using gcc, and on Solaris, and no CPP specified, see if
4264 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4265 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4266 test x"$CPP" = x; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4268 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4270 if test "${emacs_cv_sunpro_c+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 emacs_cv_sunpro_c=yes
4290 emacs_cv_sunpro_c=no
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4297 $as_echo "$emacs_cv_sunpro_c" >&6; }
4299 if test x"$emacs_cv_sunpro_c" = xyes; then
4300 NON_GNU_CPP="$CC -E -Xs"
4304 #### Some systems specify a CPP to use unless we are using GCC.
4305 #### Now that we know whether we are using GCC, we can decide whether
4306 #### to use that one.
4307 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4312 #### Some systems specify a CC to use unless we are using GCC.
4313 #### Now that we know whether we are using GCC, we can decide whether
4314 #### to use that one.
4315 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4316 test x$cc_specified != xyes
4321 if test x$GCC = xyes; then
4322 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4324 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4334 # On Suns, sometimes $CPP names a directory.
4335 if test -n "$CPP" && test -d "$CPP"; then
4338 if test -z "$CPP"; then
4339 if test "${ac_cv_prog_CPP+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4342 # Double quotes because CPP needs to be expanded
4343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4346 for ac_c_preproc_warn_flag in '' yes
4348 # Use a header file that comes with gcc, so configuring glibc
4349 # with a fresh cross-compiler works.
4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 # <limits.h> exists even on freestanding compilers.
4352 # On the NeXT, cc -E runs the code through the compiler's parser,
4353 # not just through cpp. "Syntax error" is here to catch this case.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4357 # include <limits.h>
4359 # include <assert.h>
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4366 # Broken: fails on valid input.
4369 rm -f conftest.err conftest.$ac_ext
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4377 if ac_fn_c_try_cpp "$LINENO"; then :
4378 # Broken: success on invalid input.
4381 # Passes both tests.
4385 rm -f conftest.err conftest.$ac_ext
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.
$ac_ext
4390 if $ac_preproc_ok; then :
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4403 $as_echo "$CPP" >&6; }
4405 for ac_c_preproc_warn_flag
in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4416 # include <limits.h>
4418 # include <assert.h>
4422 if ac_fn_c_try_cpp
"$LINENO"; then :
4425 # Broken: fails on valid input.
4428 rm -f conftest.err conftest.
$ac_ext
4430 # OK, works on sane cases. Now check whether nonexistent headers
4431 # can be detected and how.
4432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4436 if ac_fn_c_try_cpp
"$LINENO"; then :
4437 # Broken: success on invalid input.
4440 # Passes both tests.
4444 rm -f conftest.err conftest.
$ac_ext
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.err conftest.
$ac_ext
4449 if $ac_preproc_ok; then :
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4455 See \`config.log' for more details." "$LINENO" 5; }
4459 ac_cpp
='$CPP $CPPFLAGS'
4460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4467 if test "${ac_cv_path_GREP+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -z "$GREP"; then
4471 ac_path_GREP_found
=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4477 test -z "$as_dir" && as_dir
=.
4478 for ac_prog
in grep ggrep
; do
4479 for ac_exec_ext
in '' $ac_executable_extensions; do
4480 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4482 # Check for GNU ac_path_GREP and select it if it is found.
4483 # Check for GNU $ac_path_GREP
4484 case `"$ac_path_GREP" --version 2>&1` in
4486 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4489 $as_echo_n 0123456789 >"conftest.in"
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'GREP' >> "conftest.nl"
4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4497 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4498 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_GREP
="$ac_path_GREP"
4502 ac_path_GREP_max
=$ac_count
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4507 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4510 $ac_path_GREP_found && break 3
4515 if test -z "$ac_cv_path_GREP"; then
4516 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 ac_cv_path_GREP
=$GREP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524 $as_echo "$ac_cv_path_GREP" >&6; }
4525 GREP
="$ac_cv_path_GREP"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529 $as_echo_n "checking for egrep... " >&6; }
4530 if test "${ac_cv_path_EGREP+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4534 then ac_cv_path_EGREP
="$GREP -E"
4536 if test -z "$EGREP"; then
4537 ac_path_EGREP_found
=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_prog
in egrep; do
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4548 # Check for GNU ac_path_EGREP and select it if it is found.
4549 # Check for GNU $ac_path_EGREP
4550 case `"$ac_path_EGREP" --version 2>&1` in
4552 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4555 $as_echo_n 0123456789 >"conftest.in"
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'EGREP' >> "conftest.nl"
4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4563 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4564 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_EGREP
="$ac_path_EGREP"
4568 ac_path_EGREP_max
=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4573 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4576 $ac_path_EGREP_found && break 3
4581 if test -z "$ac_cv_path_EGREP"; then
4582 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585 ac_cv_path_EGREP
=$EGREP
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4591 $as_echo "$ac_cv_path_EGREP" >&6; }
4592 EGREP
="$ac_cv_path_EGREP"
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4596 $as_echo_n "checking for ANSI C header files... " >&6; }
4597 if test "${ac_cv_header_stdc+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4615 if ac_fn_c_try_compile
"$LINENO"; then :
4616 ac_cv_header_stdc
=yes
4618 ac_cv_header_stdc
=no
4620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4622 if test $ac_cv_header_stdc = yes; then
4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "memchr" >/dev
/null
2>&1; then :
4633 ac_cv_header_stdc
=no
4639 if test $ac_cv_header_stdc = yes; then
4640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "free" >/dev
/null
2>&1; then :
4650 ac_cv_header_stdc
=no
4656 if test $ac_cv_header_stdc = yes; then
4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658 if test "$cross_compiling" = yes; then :
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 #if ((' ' & 0x0FF) == 0x020)
4666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4669 # define ISLOWER(c) \
4670 (('a' <= (c) && (c) <= 'i') \
4671 || ('j' <= (c) && (c) <= 'r') \
4672 || ('s' <= (c) && (c) <= 'z'))
4673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4681 for (i = 0; i < 256; i++)
4682 if (XOR (islower (i), ISLOWER (i))
4683 || toupper (i) != TOUPPER (i))
4688 if ac_fn_c_try_run
"$LINENO"; then :
4691 ac_cv_header_stdc
=no
4693 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4694 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4700 $as_echo "$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4709 inttypes.h stdint.h unistd.h
4711 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4714 eval as_val
=\$
$as_ac_Header
4715 if test "x$as_val" = x
""yes; then :
4716 cat >>confdefs.h
<<_ACEOF
4717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4726 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4727 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4734 if test "$MINIX" = yes; then
4736 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4739 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4742 $as_echo "#define _MINIX 1" >>confdefs.h
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4748 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4749 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4765 if ac_fn_c_try_compile
"$LINENO"; then :
4766 ac_cv_safe_to_define___extensions__
=yes
4768 ac_cv_safe_to_define___extensions__
=no
4770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4773 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4774 test $ac_cv_safe_to_define___extensions__ = yes &&
4775 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4777 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4779 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4781 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4783 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4787 ### Use -Wno-pointer-sign if the compiler supports it
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4789 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4790 SAVE_CFLAGS
="$CFLAGS"
4791 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4803 if ac_fn_c_try_compile
"$LINENO"; then :
4808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 if test $has_option = yes; then
4810 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4813 $as_echo "$has_option" >&6; }
4814 CFLAGS
="$SAVE_CFLAGS"
4818 ### Use -Wdeclaration-after-statement if the compiler supports it
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4820 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4821 SAVE_CFLAGS
="$CFLAGS"
4822 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4834 if ac_fn_c_try_compile
"$LINENO"; then :
4839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4840 if test $has_option = yes; then
4841 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4844 $as_echo "$has_option" >&6; }
4845 CFLAGS
="$SAVE_CFLAGS"
4849 ### Use -Wold-style-definition if the compiler supports it
4850 # This can be removed when conversion to standard C is finished.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4852 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4853 SAVE_CFLAGS
="$CFLAGS"
4854 CFLAGS
="$CFLAGS -Wold-style-definition"
4855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4866 if ac_fn_c_try_compile
"$LINENO"; then :
4871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4872 if test $has_option = yes; then
4873 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4876 $as_echo "$has_option" >&6; }
4877 CFLAGS
="$SAVE_CFLAGS"
4881 ### Use -Wimplicit-function-declaration if the compiler supports it
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4883 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4884 SAVE_CFLAGS
="$CFLAGS"
4885 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4897 if ac_fn_c_try_compile
"$LINENO"; then :
4902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 if test $has_option = yes; then
4904 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4907 $as_echo "$has_option" >&6; }
4908 CFLAGS
="$SAVE_CFLAGS"
4915 #### Some other nice autoconf tests.
4918 ac_cpp
='$CPP $CPPFLAGS'
4919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4923 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4924 # On Suns, sometimes $CPP names a directory.
4925 if test -n "$CPP" && test -d "$CPP"; then
4928 if test -z "$CPP"; then
4929 if test "${ac_cv_prog_CPP+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 # Double quotes because CPP needs to be expanded
4933 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4936 for ac_c_preproc_warn_flag
in '' yes
4938 # Use a header file that comes with gcc, so configuring glibc
4939 # with a fresh cross-compiler works.
4940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4941 # <limits.h> exists even on freestanding compilers.
4942 # On the NeXT, cc -E runs the code through the compiler's parser,
4943 # not just through cpp. "Syntax error" is here to catch this case.
4944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4947 # include <limits.h>
4949 # include <assert.h>
4953 if ac_fn_c_try_cpp
"$LINENO"; then :
4956 # Broken: fails on valid input.
4959 rm -f conftest.err conftest.
$ac_ext
4961 # OK, works on sane cases. Now check whether nonexistent headers
4962 # can be detected and how.
4963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 #include <ac_nonexistent.h>
4967 if ac_fn_c_try_cpp
"$LINENO"; then :
4968 # Broken: success on invalid input.
4971 # Passes both tests.
4975 rm -f conftest.err conftest.
$ac_ext
4978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4979 rm -f conftest.err conftest.
$ac_ext
4980 if $ac_preproc_ok; then :
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4993 $as_echo "$CPP" >&6; }
4995 for ac_c_preproc_warn_flag
in '' yes
4997 # Use a header file that comes with gcc, so configuring glibc
4998 # with a fresh cross-compiler works.
4999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000 # <limits.h> exists even on freestanding compilers.
5001 # On the NeXT, cc -E runs the code through the compiler's parser,
5002 # not just through cpp. "Syntax error" is here to catch this case.
5003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5006 # include <limits.h>
5008 # include <assert.h>
5012 if ac_fn_c_try_cpp
"$LINENO"; then :
5015 # Broken: fails on valid input.
5018 rm -f conftest.err conftest.
$ac_ext
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <ac_nonexistent.h>
5026 if ac_fn_c_try_cpp
"$LINENO"; then :
5027 # Broken: success on invalid input.
5030 # Passes both tests.
5034 rm -f conftest.err conftest.
$ac_ext
5037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038 rm -f conftest.err conftest.
$ac_ext
5039 if $ac_preproc_ok; then :
5042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5044 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5045 See \`config.log' for more details." "$LINENO" 5; }
5049 ac_cpp
='$CPP $CPPFLAGS'
5050 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5054 # Find a good install program. We prefer a C program (faster),
5055 # so one script is as good as another. But avoid the broken or
5056 # incompatible versions:
5057 # SysV /etc/install, /usr/sbin/install
5058 # SunOS /usr/etc/install
5059 # IRIX /sbin/install
5061 # AmigaOS /C/install, which installs bootblocks on floppy discs
5062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5065 # OS/2's system install, which has a completely different semantic
5066 # ./install, which can be erroneously created by make from ./install.sh.
5067 # Reject install programs that cannot install multiple files.
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5069 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5070 if test -z "$INSTALL"; then
5071 if test "${ac_cv_path_install+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir
=.
5079 # Account for people who put trailing slashes in PATH elements.
5080 case $as_dir/ in #((
5081 .
/ | .
// |
/[cC
]/* | \
5082 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5083 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5086 # OSF1 and SCO ODT 3.0 have their own names for install.
5087 # Don't use installbsd from OSF since it installs stuff as root
5089 for ac_prog
in ginstall scoinst
install; do
5090 for ac_exec_ext
in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5092 if test $ac_prog = install &&
5093 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5094 # AIX install. It has an incompatible calling convention.
5096 elif test $ac_prog = install &&
5097 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5098 # program-specific install script used by HP pwplus--don't use.
5101 rm -rf conftest.one conftest.two conftest.dir
5102 echo one
> conftest.one
5103 echo two
> conftest.two
5105 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5106 test -s conftest.one
&& test -s conftest.two
&&
5107 test -s conftest.dir
/conftest.one
&&
5108 test -s conftest.dir
/conftest.two
5110 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5123 rm -rf conftest.one conftest.two conftest.dir
5126 if test "${ac_cv_path_install+set}" = set; then
5127 INSTALL
=$ac_cv_path_install
5129 # As a last resort, use the slow shell script. Don't cache a
5130 # value for INSTALL within a source directory, because that will
5131 # break other packages using the cache if that directory is
5132 # removed, or if the value is a relative name.
5133 INSTALL
=$ac_install_sh
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5137 $as_echo "$INSTALL" >&6; }
5139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5140 # It thinks the first close brace ends the variable substitution.
5141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5145 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5147 if test "x$RANLIB" = x
; then
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5150 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 if test -n "$RANLIB"; then
5157 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir
=.
5164 for ac_exec_ext
in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 RANLIB
=$ac_cv_prog_RANLIB
5177 if test -n "$RANLIB"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5179 $as_echo "$RANLIB" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5187 if test -z "$ac_cv_prog_RANLIB"; then
5188 ac_ct_RANLIB
=$RANLIB
5189 # Extract the first word of "ranlib", so it can be a program name with args.
5190 set dummy ranlib
; ac_word
=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 if test -n "$ac_ct_RANLIB"; then
5197 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5217 if test -n "$ac_ct_RANLIB"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5219 $as_echo "$ac_ct_RANLIB" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5225 if test "x$ac_ct_RANLIB" = x
; then
5228 case $cross_compiling:$ac_tool_warned in
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned
=yes ;;
5234 RANLIB
=$ac_ct_RANLIB
5237 RANLIB
="$ac_cv_prog_RANLIB"
5242 ## Although we're running on an amd64 kernel, we're actually compiling for
5243 ## the x86 architecture. The user should probably have provided an
5244 ## explicit --build to `configure', but if everything else than the kernel
5245 ## is running in i386 mode, we can help them out.
5246 if test "$machine" = "amdx86-64"; then
5247 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5248 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5252 if test "$ac_cv_have_decl_i386" = "yes"; then
5253 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5255 machfile
="m/${machine}.h"
5259 # Extract the first word of "install-info", so it can be a program name with args.
5260 set dummy install-info
; ac_word
=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5266 case $INSTALL_INFO in
5268 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir
=.
5276 for ac_exec_ext
in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5290 if test -n "$INSTALL_INFO"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5292 $as_echo "$INSTALL_INFO" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5299 # Extract the first word of "install-info", so it can be a program name with args.
5300 set dummy install-info
; ac_word
=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 case $INSTALL_INFO in
5308 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5312 for as_dir
in /usr
/sbin
5315 test -z "$as_dir" && as_dir
=.
5316 for ac_exec_ext
in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5330 if test -n "$INSTALL_INFO"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5332 $as_echo "$INSTALL_INFO" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5339 # Extract the first word of "install-info", so it can be a program name with args.
5340 set dummy install-info
; ac_word
=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 case $INSTALL_INFO in
5348 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5370 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5371 if test -n "$INSTALL_INFO"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5373 $as_echo "$INSTALL_INFO" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 # Extract the first word of "gzip", so it can be a program name with args.
5381 set dummy
gzip; ac_word
=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5389 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir
=.
5397 for ac_exec_ext
in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5411 if test -n "$GZIP_PROG"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5413 $as_echo "$GZIP_PROG" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5422 ## Need makeinfo >= 4.6 (?) to build the manuals.
5423 # Extract the first word of "makeinfo", so it can be a program name with args.
5424 set dummy makeinfo
; ac_word
=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5432 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir
=.
5440 for ac_exec_ext
in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5454 MAKEINFO
=$ac_cv_path_MAKEINFO
5455 if test -n "$MAKEINFO"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5457 $as_echo "$MAKEINFO" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5464 if test "$MAKEINFO" != "no" && \
5465 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
5469 ## Makeinfo is unusual. For a released Emacs, the manuals are
5470 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5471 ## therefore in the category of "special tools" not normally required, which
5472 ## configure does not have to check for (eg autoconf itself).
5473 ## In a Bazaar checkout on the other hand, the manuals are not included.
5474 ## So makeinfo is a requirement to build from Bazaar, and configure
5475 ## should test for it as it does for any other build requirement.
5476 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5477 ## with pre-built manuals, from a Bazaar checkout.
5478 if test "$MAKEINFO" = "no"; then
5479 if test "x${with_makeinfo}" = "xno"; then
5481 elif test ! -e $srcdir/info
/emacs
; then
5482 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5483 source tree does not seem to have pre-built manuals in the \`info' directory.
5484 Either install a suitable version of makeinfo, or re-run configure
5485 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5490 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5492 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5495 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5497 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5501 late_LDFLAGS
=$LDFLAGS
5502 if test "$GCC" = yes; then
5503 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5505 LDFLAGS
="$LDFLAGS -znocombreloc"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5509 $as_echo_n "checking for -znocombreloc... " >&6; }
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5514 if ac_fn_c_try_link
"$LINENO"; then :
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5518 LDFLAGS
=$late_LDFLAGS
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5522 rm -f core conftest.err conftest.
$ac_objext \
5523 conftest
$ac_exeext conftest.
$ac_ext
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP
=`eval "echo $CPP"`
5536 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5543 UNEXEC_OBJ
=unexelf.o
5545 # MSDOS uses unexcoff.o
5546 # MSWindows uses unexw32.o
5548 UNEXEC_OBJ
=unexaix.o
5554 UNEXEC_OBJ
=unexmacosx.o
5557 UNEXEC_OBJ
=unexhp9k800.o
5560 # Use the Solaris dldump() function, called from unexsol.c, to dump
5561 # emacs, instead of the generic ELF dump code found in unexelf.c.
5562 # The resulting binary has a complete symbol table, and is better
5563 # for debugging and other observability tools (debuggers, pstack, etc).
5565 # If you encounter a problem using dldump(), please consider sending
5566 # a message to the OpenSolaris tools-linking mailing list:
5567 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5569 # It is likely that dldump() works with older Solaris too, but this has
5570 # not been tested, so for now this change is for Solaris 10 or newer.
5571 UNEXEC_OBJ
=unexsol.o
5578 ## Let `ld' find image libs and similar things in /usr/local/lib.
5579 ## The system compiler, GCC, has apparently been modified to not
5580 ## look there, contrary to what a stock GCC would do.
5581 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5585 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5586 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5590 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5594 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5595 ## otherwise Emacs dumps core on elf systems.
5596 LD_SWITCH_SYSTEM
="-Z"
5601 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5603 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5604 ## which has not been defined yet. When this was handled with cpp,
5605 ## it was expanded to null when configure sourced the s/*.h file.
5606 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5607 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5608 ## (or somesuch), but because it is supposed to go at the _front_
5609 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5610 ## Compare with the gnu-linux case below, which added to the end
5611 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5612 ## LD_SWITCH_SYSTEM_TEMACS.
5615 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5616 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5621 if test "$machine" = "alpha"; then
5622 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5623 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5627 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5628 ## With ELF, make sure that all common symbols get allocated to in the
5629 ## data section. Otherwise, the dump of temacs may miss variables in
5630 ## the shared library that have been initialized. For example, with
5631 ## GNU libc, __malloc_initialized would normally be resolved to the
5632 ## shared library's .bss section, which is fatal.
5633 if test "x$GCC" = "xyes"; then
5634 C_SWITCH_MACHINE
="-fno-common"
5636 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5639 UNEXEC_OBJ
=unexalpha.o
5647 ## Some programs in src produce warnings saying certain subprograms
5648 ## are too complex and need a MAXMEM value greater than 2000 for
5649 ## additional optimization. --nils@exp-math.uni-essen.de
5650 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5651 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5652 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5653 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5659 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5660 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5662 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5664 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5666 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5668 ## Motif needs -lgen.
5669 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5674 ### Make sure subsequent tests use flags consistent with the build flags.
5676 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5677 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5679 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5684 # Check whether --enable-largefile was given.
5685 if test "${enable_largefile+set}" = set; then :
5686 enableval
=$enable_largefile;
5689 if test "$enable_largefile" != no
; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5693 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_cv_sys_largefile_CC
=no
5697 if test "$GCC" != yes; then
5700 # IRIX 6.2 and later do not support large files by default,
5701 # so use the C compiler's -n32 option if that helps.
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5721 if ac_fn_c_try_compile
"$LINENO"; then :
5724 rm -f core conftest.err conftest.
$ac_objext
5726 if ac_fn_c_try_compile
"$LINENO"; then :
5727 ac_cv_sys_largefile_CC
=' -n32'; break
5729 rm -f core conftest.err conftest.
$ac_objext
5733 rm -f conftest.
$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5738 if test "$ac_cv_sys_largefile_CC" != no
; then
5739 CC
=$CC$ac_cv_sys_largefile_CC
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5744 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5767 if ac_fn_c_try_compile
"$LINENO"; then :
5768 ac_cv_sys_file_offset_bits
=no
; break
5770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #define _FILE_OFFSET_BITS 64
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5791 if ac_fn_c_try_compile
"$LINENO"; then :
5792 ac_cv_sys_file_offset_bits
=64; break
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 ac_cv_sys_file_offset_bits
=unknown
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5801 case $ac_cv_sys_file_offset_bits in #(
5804 cat >>confdefs.h
<<_ACEOF
5805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5810 if test $ac_cv_sys_file_offset_bits = unknown
; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5813 if test "${ac_cv_sys_large_files+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5836 if ac_fn_c_try_compile
"$LINENO"; then :
5837 ac_cv_sys_large_files
=no
; break
5839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #define _LARGE_FILES 1
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5860 if ac_fn_c_try_compile
"$LINENO"; then :
5861 ac_cv_sys_large_files
=1; break
5863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5864 ac_cv_sys_large_files
=unknown
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5869 $as_echo "$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h
<<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5884 ## If user specified a crt-dir, use that unconditionally.
5885 if test "X$CRT_DIR" = "X"; then
5887 case "$canonical" in
5888 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5889 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5890 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5891 ## For anything else (eg /usr/lib32), it is up the user to specify
5892 ## the location (bug#5655).
5893 ## Test for crtn.o, not just the directory, because sometimes the
5894 ## directory exists but does not have the relevant files (bug#1287).
5895 ## FIXME better to test for binary compatibility somehow.
5896 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5899 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5903 hpux10-20
) CRT_DIR
=/lib
;;
5906 ## Default is /usr/lib.
5907 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5911 ## Some platforms don't use any of these files, so it is not
5912 ## appropriate to put this test outside the if block.
5913 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5914 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5927 START_FILES
='pre-crt0.o'
5930 ## Adding -lm confuses the dynamic linker, so omit it.
5932 START_FILES
='pre-crt0.o'
5935 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5936 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5938 gnu-linux | gnu-kfreebsd
)
5939 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5940 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5942 hpux10-20 | hpux11
)
5944 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5947 if test -f $CRT_DIR/crti.o
; then
5948 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5951 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5952 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5963 if test "${with_sound}" != "no"; then
5964 # Sound support for GNU/Linux and the free BSDs.
5965 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5969 eval as_val
=\$
$as_ac_Header
5970 if test "x$as_val" = x
""yes; then :
5971 cat >>confdefs.h
<<_ACEOF
5972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5974 have_sound_header
=yes
5979 # Emulation library used on NetBSD.
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5981 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5982 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 ac_check_lib_save_LIBS
=$LIBS
5986 LIBS
="-lossaudio $LIBS"
5987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
6000 return _oss_ioctl ();
6005 if ac_fn_c_try_link
"$LINENO"; then :
6006 ac_cv_lib_ossaudio__oss_ioctl
=yes
6008 ac_cv_lib_ossaudio__oss_ioctl
=no
6010 rm -f core conftest.err conftest.
$ac_objext \
6011 conftest
$ac_exeext conftest.
$ac_ext
6012 LIBS
=$ac_check_lib_save_LIBS
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6015 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6016 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6025 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6029 # Extract the first word of "pkg-config", so it can be a program name with args.
6030 set dummy pkg-config
; ac_word
=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6038 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir
=.
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6060 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6061 if test -n "$PKG_CONFIG"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6063 $as_echo "$PKG_CONFIG" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6071 if test "$PKG_CONFIG" = "no" ; then
6074 PKG_CONFIG_MIN_VERSION
=0.9.0
6075 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6077 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6079 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6085 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6086 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6088 $as_echo "$ALSA_CFLAGS" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6091 $as_echo_n "checking ALSA_LIBS... " >&6; }
6092 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6094 $as_echo "$ALSA_LIBS" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6100 ## If we have a custom action on failure, don't print errors, but
6101 ## do set a variable so people can do so.
6102 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6114 if test $succeeded = yes; then
6120 if test $HAVE_ALSA = yes; then
6121 SAVE_CFLAGS
="$CFLAGS"
6122 SAVE_LDFLAGS
="$LDFLAGS"
6123 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6124 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 #include <asoundlib.h>
6131 snd_lib_error_set_handler (0);
6136 if ac_fn_c_try_compile
"$LINENO"; then :
6137 emacs_alsa_normal
=yes
6139 emacs_alsa_normal
=no
6141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6142 if test "$emacs_alsa_normal" != yes; then
6143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <alsa/asoundlib.h>
6149 snd_lib_error_set_handler (0);
6154 if ac_fn_c_try_compile
"$LINENO"; then :
6155 emacs_alsa_subdir
=yes
6157 emacs_alsa_subdir
=no
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6160 if test "$emacs_alsa_subdir" != yes; then
6161 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6163 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6166 CFLAGS
="$SAVE_CFLAGS"
6167 LDFLAGS
="$SAVE_LDFLAGS"
6168 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6169 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6171 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6175 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6177 gnu-linux|freebsd|netbsd
)
6179 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6188 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6189 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6190 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6191 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6192 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6194 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6196 eval as_val
=\$
$as_ac_Header
6197 if test "x$as_val" = x
""yes; then :
6198 cat >>confdefs.h
<<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6208 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #include <sys/personality.h>
6215 personality (PER_LINUX32)
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6221 emacs_cv_personality_linux32
=yes
6223 emacs_cv_personality_linux32
=no
6225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6227 $as_echo "$emacs_cv_personality_linux32" >&6; }
6229 if test $emacs_cv_personality_linux32 = yes; then
6231 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6235 for ac_header
in term.h
6237 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6238 if test "x$ac_cv_header_term_h" = x
""yes; then :
6239 cat >>confdefs.h
<<_ACEOF
6240 #define HAVE_TERM_H 1
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6248 $as_echo_n "checking for ANSI C header files... " >&6; }
6249 if test "${ac_cv_header_stdc+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6267 if ac_fn_c_try_compile
"$LINENO"; then :
6268 ac_cv_header_stdc
=yes
6270 ac_cv_header_stdc
=no
6272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6274 if test $ac_cv_header_stdc = yes; then
6275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "memchr" >/dev
/null
2>&1; then :
6285 ac_cv_header_stdc
=no
6291 if test $ac_cv_header_stdc = yes; then
6292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "free" >/dev
/null
2>&1; then :
6302 ac_cv_header_stdc
=no
6308 if test $ac_cv_header_stdc = yes; then
6309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6310 if test "$cross_compiling" = yes; then :
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6317 #if ((' ' & 0x0FF) == 0x020)
6318 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6319 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6321 # define ISLOWER(c) \
6322 (('a' <= (c) && (c) <= 'i') \
6323 || ('j' <= (c) && (c) <= 'r') \
6324 || ('s' <= (c) && (c) <= 'z'))
6325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6333 for (i = 0; i < 256; i++)
6334 if (XOR (islower (i), ISLOWER (i))
6335 || toupper (i) != TOUPPER (i))
6340 if ac_fn_c_try_run
"$LINENO"; then :
6343 ac_cv_header_stdc
=no
6345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6352 $as_echo "$ac_cv_header_stdc" >&6; }
6353 if test $ac_cv_header_stdc = yes; then
6355 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6360 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6361 if test "${ac_cv_header_time+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <sys/time.h>
6373 if ((struct tm *) 0)
6379 if ac_fn_c_try_compile
"$LINENO"; then :
6380 ac_cv_header_time
=yes
6382 ac_cv_header_time
=no
6384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6387 $as_echo "$ac_cv_header_time" >&6; }
6388 if test $ac_cv_header_time = yes; then
6390 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6394 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6395 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6401 cat >>confdefs.h
<<_ACEOF
6402 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6405 if test $ac_cv_have_decl_sys_siglist != yes; then
6406 # For Tru64, at least:
6407 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6408 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6414 cat >>confdefs.h
<<_ACEOF
6415 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6420 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6425 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6426 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6427 $as_echo_n "(cached) " >&6
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 #include <sys/types.h>
6432 #include <sys/wait.h>
6434 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6437 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6450 if ac_fn_c_try_compile
"$LINENO"; then :
6451 ac_cv_header_sys_wait_h
=yes
6453 ac_cv_header_sys_wait_h
=no
6455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6458 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6459 if test $ac_cv_header_sys_wait_h = yes; then
6461 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6467 $as_echo_n "checking for struct utimbuf... " >&6; }
6468 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 #ifdef TIME_WITH_SYS_TIME
6474 #include <sys/time.h>
6477 #ifdef HAVE_SYS_TIME_H
6478 #include <sys/time.h>
6489 static struct utimbuf x; x.actime = x.modtime;
6494 if ac_fn_c_try_compile
"$LINENO"; then :
6495 emacs_cv_struct_utimbuf
=yes
6497 emacs_cv_struct_utimbuf
=no
6499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6502 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6503 if test $emacs_cv_struct_utimbuf = yes; then
6505 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6510 $as_echo_n "checking return type of signal handlers... " >&6; }
6511 if test "${ac_cv_type_signal+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 #include <sys/types.h>
6522 return *(signal (0, 0)) (0) == 1;
6527 if ac_fn_c_try_compile
"$LINENO"; then :
6528 ac_cv_type_signal
=int
6530 ac_cv_type_signal
=void
6532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6535 $as_echo "$ac_cv_type_signal" >&6; }
6537 cat >>confdefs.h
<<_ACEOF
6538 #define RETSIGTYPE $ac_cv_type_signal
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6544 $as_echo_n "checking for speed_t... " >&6; }
6545 if test "${emacs_cv_speed_t+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 #include <termios.h>
6559 if ac_fn_c_try_compile
"$LINENO"; then :
6560 emacs_cv_speed_t
=yes
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6567 $as_echo "$emacs_cv_speed_t" >&6; }
6568 if test $emacs_cv_speed_t = yes; then
6570 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6575 $as_echo_n "checking for struct timeval... " >&6; }
6576 if test "${emacs_cv_struct_timeval+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #ifdef TIME_WITH_SYS_TIME
6582 #include <sys/time.h>
6585 #ifdef HAVE_SYS_TIME_H
6586 #include <sys/time.h>
6594 static struct timeval x; x.tv_sec = x.tv_usec;
6599 if ac_fn_c_try_compile
"$LINENO"; then :
6600 emacs_cv_struct_timeval
=yes
6602 emacs_cv_struct_timeval
=no
6604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6607 $as_echo "$emacs_cv_struct_timeval" >&6; }
6608 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6609 if test $emacs_cv_struct_timeval = yes; then
6611 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6616 $as_echo_n "checking for struct exception... " >&6; }
6617 if test "${emacs_cv_struct_exception+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6626 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6631 if ac_fn_c_try_compile
"$LINENO"; then :
6632 emacs_cv_struct_exception
=yes
6634 emacs_cv_struct_exception
=no
6636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6639 $as_echo "$emacs_cv_struct_exception" >&6; }
6640 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6641 if test $emacs_cv_struct_exception != yes; then
6643 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6647 for ac_header
in sys
/socket.h
6649 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6650 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6651 cat >>confdefs.h
<<_ACEOF
6652 #define HAVE_SYS_SOCKET_H 1
6659 for ac_header
in net
/if.h
6661 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6662 #if HAVE_SYS_SOCKET_H
6663 #include <sys/socket.h>
6666 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6667 cat >>confdefs.h
<<_ACEOF
6668 #define HAVE_NET_IF_H 1
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6677 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6678 if test "${ac_cv_struct_tm+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 #include <sys/types.h>
6690 int *p = &tm.tm_sec;
6696 if ac_fn_c_try_compile
"$LINENO"; then :
6697 ac_cv_struct_tm
=time.h
6699 ac_cv_struct_tm
=sys
/time.h
6701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6704 $as_echo "$ac_cv_struct_tm" >&6; }
6705 if test $ac_cv_struct_tm = sys
/time.h
; then
6707 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6711 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6712 #include <$ac_cv_struct_tm>
6715 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6717 cat >>confdefs.h
<<_ACEOF
6718 #define HAVE_STRUCT_TM_TM_ZONE 1
6724 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6726 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6729 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6731 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6737 cat >>confdefs.h
<<_ACEOF
6738 #define HAVE_DECL_TZNAME $ac_have_decl
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6742 $as_echo_n "checking for tzname... " >&6; }
6743 if test "${ac_cv_var_tzname+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6749 #if !HAVE_DECL_TZNAME
6750 extern char *tzname[];
6756 return tzname[0][0];
6761 if ac_fn_c_try_link
"$LINENO"; then :
6762 ac_cv_var_tzname
=yes
6766 rm -f core conftest.err conftest.
$ac_objext \
6767 conftest
$ac_exeext conftest.
$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6770 $as_echo "$ac_cv_var_tzname" >&6; }
6771 if test $ac_cv_var_tzname = yes; then
6773 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6778 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6780 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6782 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6786 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6787 #if HAVE_SYS_SOCKET_H
6788 #include <sys/socket.h>
6794 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6796 cat >>confdefs.h
<<_ACEOF
6797 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6802 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6803 #if HAVE_SYS_SOCKET_H
6804 #include <sys/socket.h>
6810 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6812 cat >>confdefs.h
<<_ACEOF
6813 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6818 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6819 #if HAVE_SYS_SOCKET_H
6820 #include <sys/socket.h>
6826 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6828 cat >>confdefs.h
<<_ACEOF
6829 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6834 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6835 #if HAVE_SYS_SOCKET_H
6836 #include <sys/socket.h>
6842 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6844 cat >>confdefs.h
<<_ACEOF
6845 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6850 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6851 #if HAVE_SYS_SOCKET_H
6852 #include <sys/socket.h>
6858 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6860 cat >>confdefs.h
<<_ACEOF
6861 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6870 $as_echo_n "checking for function prototypes... " >&6; }
6871 if test "$ac_cv_prog_cc_c89" != no
; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873 $as_echo "yes" >&6; }
6875 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6878 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6886 $as_echo_n "checking for working volatile... " >&6; }
6887 if test "${ac_cv_c_volatile+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6898 int * volatile y = (int *) 0;
6904 if ac_fn_c_try_compile
"$LINENO"; then :
6905 ac_cv_c_volatile
=yes
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6912 $as_echo "$ac_cv_c_volatile" >&6; }
6913 if test $ac_cv_c_volatile = no
; then
6915 $as_echo "#define volatile /**/" >>confdefs.h
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6920 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6921 if test "${ac_cv_c_const+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6930 /* FIXME: Include the comments suggested by Paul. */
6932 /* Ultrix mips cc rejects this. */
6933 typedef int charset[2];
6935 /* SunOS 4.1.1 cc rejects this. */
6936 char const *const *pcpcc;
6938 /* NEC SVR4.0.2 mips cc rejects this. */
6939 struct point {int x, y;};
6940 static struct point const zero = {0,0};
6941 /* AIX XL C 1.02.0.0 rejects this.
6942 It does not let you subtract one const X* pointer from another in
6943 an arm of an if-expression whose if-part is not a constant
6945 const char *g = "string";
6946 pcpcc = &g + (g ? g-g : 0);
6947 /* HPUX 7.0 cc rejects these. */
6949 ppc = (char**) pcpcc;
6950 pcpcc = (char const *const *) ppc;
6951 { /* SCO 3.2v4 cc rejects this. */
6953 char const *s = 0 ? (char *) 0 : (char const *) 0;
6958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6960 const int *foo = &x[0];
6963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6964 typedef const int *iptr;
6968 { /* AIX XL C 1.02.0.0 rejects this saying
6969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6970 struct s { int j; const int *ap[3]; };
6971 struct s *b; b->j = 5;
6973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6977 return !cs[0] && !zero.x;
6984 if ac_fn_c_try_compile
"$LINENO"; then :
6989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6992 $as_echo "$ac_cv_c_const" >&6; }
6993 if test $ac_cv_c_const = no
; then
6995 $as_echo "#define const /**/" >>confdefs.h
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7000 $as_echo_n "checking for void * support... " >&6; }
7001 if test "${emacs_cv_void_star+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7015 if ac_fn_c_try_compile
"$LINENO"; then :
7016 emacs_cv_void_star
=yes
7018 emacs_cv_void_star
=no
7020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7023 $as_echo "$emacs_cv_void_star" >&6; }
7024 if test $emacs_cv_void_star = yes; then
7025 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7028 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7033 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7034 if test "${ac_cv_c_bigendian+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 ac_cv_c_bigendian
=unknown
7038 # See if we're dealing with a universal compiler.
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 #ifndef __APPLE_CC__
7042 not a universal capable compiler
7047 if ac_fn_c_try_compile
"$LINENO"; then :
7049 # Check for potential -arch flags. It is not universal unless
7050 # there are at least two -arch flags with different values.
7053 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7054 if test -n "$ac_prev"; then
7056 i?
86 | x86_64 | ppc | ppc64
)
7057 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7060 ac_cv_c_bigendian
=universal
7066 elif test "x$ac_word" = "x-arch"; then
7071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7072 if test $ac_cv_c_bigendian = unknown
; then
7073 # See if sys/param.h defines the BYTE_ORDER macro.
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <sys/types.h>
7077 #include <sys/param.h>
7082 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7083 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7092 if ac_fn_c_try_compile
"$LINENO"; then :
7093 # It does; now see whether it defined to BIG_ENDIAN or not.
7094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 #include <sys/types.h>
7097 #include <sys/param.h>
7102 #if BYTE_ORDER != BIG_ENDIAN
7110 if ac_fn_c_try_compile
"$LINENO"; then :
7111 ac_cv_c_bigendian
=yes
7113 ac_cv_c_bigendian
=no
7115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 if test $ac_cv_c_bigendian = unknown
; then
7120 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7128 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7136 if ac_fn_c_try_compile
"$LINENO"; then :
7137 # It does; now see whether it defined to _BIG_ENDIAN or not.
7138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7153 if ac_fn_c_try_compile
"$LINENO"; then :
7154 ac_cv_c_bigendian
=yes
7156 ac_cv_c_bigendian
=no
7158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7162 if test $ac_cv_c_bigendian = unknown
; then
7163 # Compile a test program.
7164 if test "$cross_compiling" = yes; then :
7165 # Try to guess by grepping values from an object file.
7166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 short int ascii_mm[] =
7169 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7170 short int ascii_ii[] =
7171 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7172 int use_ascii (int i) {
7173 return ascii_mm[i] + ascii_ii[i];
7175 short int ebcdic_ii[] =
7176 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7177 short int ebcdic_mm[] =
7178 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7179 int use_ebcdic (int i) {
7180 return ebcdic_mm[i] + ebcdic_ii[i];
7187 return use_ascii (foo) == use_ebcdic (foo);
7192 if ac_fn_c_try_compile
"$LINENO"; then :
7193 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7194 ac_cv_c_bigendian
=yes
7196 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7197 if test "$ac_cv_c_bigendian" = unknown
; then
7198 ac_cv_c_bigendian
=no
7200 # finding both strings is unlikely to happen, but who knows?
7201 ac_cv_c_bigendian
=unknown
7205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 $ac_includes_default
7214 /* Are we little or big endian? From Harbison&Steele. */
7218 char c[sizeof (long int)];
7221 return u.c[sizeof (long int) - 1] == 1;
7227 if ac_fn_c_try_run
"$LINENO"; then :
7228 ac_cv_c_bigendian
=no
7230 ac_cv_c_bigendian
=yes
7232 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7233 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7239 $as_echo "$ac_cv_c_bigendian" >&6; }
7240 case $ac_cv_c_bigendian in #(
7242 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7248 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7252 as_fn_error
"unknown endianness
7253 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7258 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7260 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7261 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7262 $as_echo_n "(cached) " >&6
7264 cat >conftest.
make <<\_ACEOF
7267 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7270 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7272 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7274 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7278 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 SET_MAKE
="MAKE=${MAKE-make}"
7292 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7294 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7296 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7297 if test "x$testval" != x
; then
7300 ac_enable_autodepend
=no
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7303 $as_echo "$HAVE_GNU_MAKE" >&6; }
7304 if test $HAVE_GNU_MAKE = yes; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7306 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7307 SAVE_CFLAGS
="$CFLAGS"
7308 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7320 if ac_fn_c_try_compile
"$LINENO"; then :
7323 ac_enable_autodepend
=no
7325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 CFLAGS
="$SAVE_CFLAGS"
7327 test -f deps.d || ac_enable_autodepend
=no
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7330 $as_echo "$ac_enable_autodepend" >&6; }
7332 if test $ac_enable_autodepend = yes; then
7333 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7334 ## In parallel builds, another make might create depdir between
7335 ## the first test and mkdir, so stick another test on the end.
7336 ## Or use mkinstalldirs? mkdir -p is not portable.
7337 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7338 deps_frag
=autodeps.mk
7341 deps_frag
=$srcdir/src
/$deps_frag
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7348 $as_echo_n "checking for long file names... " >&6; }
7349 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7352 ac_cv_sys_long_file_names
=yes
7353 # Test for long file names in all the places we know might matter:
7354 # . the current directory, where building will happen
7355 # $prefix/lib where we will be installing things
7356 # $exec_prefix/lib likewise
7357 # $TMPDIR if set, where it might want to write temporary files
7358 # /tmp where it might want to write temporary files
7361 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7362 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7363 # in the usual case where exec_prefix is '${prefix}'.
7365 . |
/* | ?
:[\\/]*) ;; #(
7368 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7369 ac_xdir
=$ac_dir/cf$$
7370 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7371 ac_tf1
=$ac_xdir/conftest9012345
7372 ac_tf2
=$ac_xdir/conftest9012346
7373 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7374 ac_cv_sys_long_file_names
=no
7375 rm -f -r "$ac_xdir" 2>/dev
/null
7376 test $ac_cv_sys_long_file_names = no
&& break
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7380 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7381 if test $ac_cv_sys_long_file_names = yes; then
7383 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7388 #### Choose a window system.
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7391 $as_echo_n "checking for X... " >&6; }
7394 # Check whether --with-x was given.
7395 if test "${with_x+set}" = set; then :
7399 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7400 if test "x$with_x" = xno
; then
7401 # The user explicitly disabled X.
7404 case $x_includes,$x_libraries in #(
7405 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7406 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7409 # One or both of the vars are not set, and there is no cached value.
7410 ac_x_includes
=no ac_x_libraries
=no
7411 rm -f -r conftest.dir
7412 if mkdir conftest.dir
; then
7414 cat >Imakefile
<<'_ACEOF'
7416 @echo incroot='${INCROOT}'
7418 @echo usrlibdir='${USRLIBDIR}'
7420 @echo libdir='${LIBDIR}'
7422 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7424 for ac_var
in incroot usrlibdir libdir
; do
7425 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7427 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7428 for ac_extension
in a so sl dylib la dll
; do
7429 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7430 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7431 ac_im_usrlibdir
=$ac_im_libdir; break
7434 # Screen out bogus values from the imake configuration. They are
7435 # bogus both because they are the default anyway, and because
7436 # using them would break gcc on systems where it needs fixed includes.
7437 case $ac_im_incroot in
7438 /usr
/include
) ac_x_includes
= ;;
7439 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7441 case $ac_im_usrlibdir in
7442 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7443 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7447 rm -f -r conftest.dir
7450 # Standard set of common directories for X headers.
7451 # Check X11 before X11Rn because it is often a symlink to the current release.
7465 /usr/local/X11/include
7466 /usr/local/X11R7/include
7467 /usr/local/X11R6/include
7468 /usr/local/X11R5/include
7469 /usr/local/X11R4/include
7471 /usr/local/include/X11
7472 /usr/local/include/X11R7
7473 /usr/local/include/X11R6
7474 /usr/local/include/X11R5
7475 /usr/local/include/X11R4
7479 /usr/XFree86/include/X11
7483 /usr/unsupported/include
7485 /usr/local/x11r5/include
7486 /usr/lpp/Xamples/include
7488 /usr/openwin/include
7489 /usr/openwin/share/include'
7491 if test "$ac_x_includes" = no
; then
7492 # Guess where to find include files, by looking for Xlib.h.
7493 # First, try using that file with no special directory specified.
7494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 #include <X11/Xlib.h>
7498 if ac_fn_c_try_cpp
"$LINENO"; then :
7499 # We can compile using X headers with no special include directory.
7502 for ac_dir
in $ac_x_header_dirs; do
7503 if test -r "$ac_dir/X11/Xlib.h"; then
7504 ac_x_includes
=$ac_dir
7509 rm -f conftest.err conftest.
$ac_ext
7510 fi # $ac_x_includes = no
7512 if test "$ac_x_libraries" = no
; then
7513 # Check for the libraries.
7514 # See if we find them without any special options.
7515 # Don't add to $LIBS permanently.
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <X11/Xlib.h>
7529 if ac_fn_c_try_link
"$LINENO"; then :
7531 # We can link X programs with no special library path.
7535 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7537 # Don't even attempt the hair of trying to link an X program!
7538 for ac_extension
in a so sl dylib la dll
; do
7539 if test -r "$ac_dir/libX11.$ac_extension"; then
7540 ac_x_libraries
=$ac_dir
7546 rm -f core conftest.err conftest.
$ac_objext \
7547 conftest
$ac_exeext conftest.
$ac_ext
7548 fi # $ac_x_libraries = no
7550 case $ac_x_includes,$ac_x_libraries in #(
7552 # Didn't find X, or a directory has "'" in its name.
7553 ac_cv_have_x
="have_x=no";; #(
7555 # Record where we found X for the cache.
7556 ac_cv_have_x
="have_x=yes\
7557 ac_x_includes='$ac_x_includes'\
7558 ac_x_libraries='$ac_x_libraries'"
7564 eval "$ac_cv_have_x"
7567 if test "$have_x" != yes; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7569 $as_echo "$have_x" >&6; }
7572 # If each of the values was on the command line, it overrides each guess.
7573 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7574 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7575 # Update the cache value to reflect the command line values.
7576 ac_cv_have_x
="have_x=yes\
7577 ac_x_includes='$x_includes'\
7578 ac_x_libraries='$x_libraries'"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7580 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7583 if test "$no_x" = yes; then
7589 ## Workaround for bug in autoconf <= 2.62.
7590 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7591 ## No need to do anything special for these standard directories.
7592 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7594 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7598 LD_SWITCH_X_SITE_AUX
=
7599 LD_SWITCH_X_SITE_AUX_RPATH
=
7600 if test "${x_libraries}" != NONE
; then
7601 if test -n "${x_libraries}"; then
7602 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7603 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7604 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7606 x_default_search_path
=""
7607 x_search_path
=${x_libraries}
7608 if test -z "${x_search_path}"; then
7609 x_search_path
=/usr
/lib
7611 for x_library
in `echo ${x_search_path}: | \
7612 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7614 ${x_library}/X11/%L/%T/%N%C%S:\
7615 ${x_library}/X11/%l/%T/%N%C%S:\
7616 ${x_library}/X11/%T/%N%C%S:\
7617 ${x_library}/X11/%L/%T/%N%S:\
7618 ${x_library}/X11/%l/%T/%N%S:\
7619 ${x_library}/X11/%T/%N%S"
7620 if test x
"${x_default_search_path}" = x
; then
7621 x_default_search_path
=${x_search_path}
7623 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7630 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7631 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7634 if test x
"${x_includes}" = x
; then
7635 bitmapdir
=/usr
/include
/X11
/bitmaps
7637 # accumulate include directories that have X11 bitmap subdirectories
7639 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7640 if test -d "${bmd}/X11/bitmaps"; then
7641 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7643 if test -d "${bmd}/bitmaps"; then
7644 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7647 if test ${bmd_acc} != "dummyval"; then
7648 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7655 tmp_CPPFLAGS
="$CPPFLAGS"
7656 tmp_CFLAGS
="$CFLAGS"
7657 CPPFLAGS
="$CPPFLAGS -x objective-c"
7658 CFLAGS
="$CFLAGS -x objective-c"
7659 TEMACS_LDFLAGS2
="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7660 if test "${with_ns}" != no
; then
7661 if test "${opsys}" = darwin
; then
7663 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7664 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7665 ns_appresdir
=${ns_appdir}Contents
/Resources
7666 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7667 elif test -f $GNUSTEP_CONFIG_FILE; then
7669 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7670 ns_appbindir
=${ns_appdir}
7671 ns_appresdir
=${ns_appdir}Resources
7672 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7673 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7674 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7675 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7676 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7677 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7678 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7679 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7680 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7681 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7682 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7683 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7688 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7689 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7692 as_fn_error
"\`--with-ns' was specified, but the include
7693 files are missing or cannot be compiled." "$LINENO" 5
7697 NS_HAVE_NSINTEGER
=yes
7698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 #include <Foundation/NSObjCRuntime.h>
7709 if ac_fn_c_try_compile
"$LINENO"; then :
7710 ns_have_nsinteger
=yes
7712 ns_have_nsinteger
=no
7714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 if test $ns_have_nsinteger = no
; then
7716 NS_HAVE_NSINTEGER
=no
7724 if test "${HAVE_NS}" = yes; then
7725 window_system
=nextstep
7727 # set up packaging dirs
7728 exec_prefix
=${ns_appbindir}
7729 libexecdir
=${ns_appbindir}/libexec
7730 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7731 prefix
=${ns_appresdir}
7733 ns_frag
=$srcdir/src
/ns.mk
7734 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7735 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7737 CFLAGS
="$tmp_CFLAGS"
7738 CPPFLAGS
="$tmp_CPPFLAGS"
7744 case "${window_system}" in
7748 case "${with_x_toolkit}" in
7749 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7750 motif
) USE_X_TOOLKIT
=MOTIF
;;
7752 USE_X_TOOLKIT
=none
;;
7753 gtk3
) with_gtk3
=yes
7754 USE_X_TOOLKIT
=none
;;
7755 no
) USE_X_TOOLKIT
=none
;;
7756 * ) USE_X_TOOLKIT
=maybe
;;
7766 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7767 # Extract the first word of "X", so it can be a program name with args.
7768 set dummy X
; ac_word
=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$HAVE_XSERVER"; then
7775 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir
=.
7782 for ac_exec_ext
in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_HAVE_XSERVER
="true"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7795 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7796 if test -n "$HAVE_XSERVER"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7798 $as_echo "$HAVE_XSERVER" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 if test "$HAVE_XSERVER" = true ||
7806 test -n "$DISPLAY" ||
7807 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7808 as_fn_error
"You seem to be running X, but no X development libraries
7809 were found. You should install the relevant development files for X
7810 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7811 sure you have development files for image handling, i.e.
7812 tiff, gif, jpeg, png and xpm.
7813 If you are sure you want Emacs compiled without X window support, pass
7815 to configure." "$LINENO" 5
7819 ### If we're using X11, we should use the X menu package.
7822 yes ) HAVE_MENUS
=yes ;;
7825 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7826 # Assume not, until told otherwise.
7829 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7830 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7836 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7837 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7844 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7845 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 extern void (* __after_morecore_hook)();
7854 __after_morecore_hook = 0
7859 if ac_fn_c_try_link
"$LINENO"; then :
7860 emacs_cv_var___after_morecore_hook
=yes
7862 emacs_cv_var___after_morecore_hook
=no
7864 rm -f core conftest.err conftest.
$ac_objext \
7865 conftest
$ac_exeext conftest.
$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7868 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7869 if test $emacs_cv_var___after_morecore_hook = no
; then
7876 ## darwin ld insists on the use of malloc routines in the System framework.
7877 darwin|sol2-10
) system_malloc
=yes ;;
7880 if test "${system_malloc}" = "yes"; then
7882 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7886 (The GNU allocators don't work with this system configuration.)"
7890 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7891 VMLIMIT_OBJ
=vm-limit.o
7896 if test "$doug_lea_malloc" = "yes" ; then
7897 if test "$GNU_MALLOC" = yes ; then
7899 (Using Doug Lea's new malloc from the GNU C Library.)"
7902 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7905 ## Use mmap directly for allocating larger buffers.
7906 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7907 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7908 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7910 gnu
*) REL_ALLOC
=no
;;
7914 if test x
"${REL_ALLOC}" = x
; then
7915 REL_ALLOC
=${GNU_MALLOC}
7918 use_mmap_for_buffers
=no
7920 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7926 for ac_header
in $ac_header_list
7928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7929 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7931 eval as_val
=\$
$as_ac_Header
7932 if test "x$as_val" = x
""yes; then :
7933 cat >>confdefs.h
<<_ACEOF
7934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 for ac_func
in getpagesize
7950 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7951 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7952 cat >>confdefs.h
<<_ACEOF
7953 #define HAVE_GETPAGESIZE 1
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7960 $as_echo_n "checking for working mmap... " >&6; }
7961 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7964 if test "$cross_compiling" = yes; then :
7965 ac_cv_func_mmap_fixed_mapped
=no
7967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 $ac_includes_default
7970 /* malloc might have been renamed as rpl_malloc. */
7973 /* Thanks to Mike Haertel and Jim Avera for this test.
7974 Here is a matrix of mmap possibilities:
7975 mmap private not fixed
7976 mmap private fixed at somewhere currently unmapped
7977 mmap private fixed at somewhere already mapped
7978 mmap shared not fixed
7979 mmap shared fixed at somewhere currently unmapped
7980 mmap shared fixed at somewhere already mapped
7981 For private mappings, we should verify that changes cannot be read()
7982 back from the file, nor mmap's back from the file at a different
7983 address. (There have been systems where private was not correctly
7984 implemented like the infamous i386 svr4.0, and systems where the
7985 VM page cache was not coherent with the file system buffer cache
7986 like early versions of FreeBSD and possibly contemporary NetBSD.)
7987 For shared mappings, we should conversely verify that changes get
7988 propagated back to all the places they're supposed to be.
7990 Grep wants private fixed already mapped.
7991 The main things grep needs to know about mmap are:
7992 * does it exist and is it safe to write into the mmap'd area
7993 * how to use it (BSD variants) */
7996 #include <sys/mman.h>
7998 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8002 /* This mess was copied from the GNU getpagesize.h. */
8003 #ifndef HAVE_GETPAGESIZE
8004 # ifdef _SC_PAGESIZE
8005 # define getpagesize() sysconf(_SC_PAGESIZE)
8006 # else /* no _SC_PAGESIZE */
8007 # ifdef HAVE_SYS_PARAM_H
8008 # include <sys/param.h>
8009 # ifdef EXEC_PAGESIZE
8010 # define getpagesize() EXEC_PAGESIZE
8011 # else /* no EXEC_PAGESIZE */
8013 # define getpagesize() NBPG * CLSIZE
8016 # endif /* no CLSIZE */
8017 # else /* no NBPG */
8019 # define getpagesize() NBPC
8020 # else /* no NBPC */
8022 # define getpagesize() PAGESIZE
8023 # endif /* PAGESIZE */
8024 # endif /* no NBPC */
8025 # endif /* no NBPG */
8026 # endif /* no EXEC_PAGESIZE */
8027 # else /* no HAVE_SYS_PARAM_H */
8028 # define getpagesize() 8192 /* punt totally */
8029 # endif /* no HAVE_SYS_PARAM_H */
8030 # endif /* no _SC_PAGESIZE */
8032 #endif /* no HAVE_GETPAGESIZE */
8037 char *data, *data2, *data3;
8042 pagesize = getpagesize ();
8044 /* First, make a file with some known garbage in it. */
8045 data = (char *) malloc (pagesize);
8048 for (i = 0; i < pagesize; ++i)
8049 *(data + i) = rand ();
8051 fd = creat ("conftest.mmap", 0600);
8054 if (write (fd, data, pagesize) != pagesize)
8058 /* Next, check that the tail of a page is zero-filled. File must have
8059 non-zero length, otherwise we risk SIGBUS for entire page. */
8060 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8064 if (write (fd2, cdata2, 1) != 1)
8066 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8067 if (data2 == MAP_FAILED)
8069 for (i = 0; i < pagesize; ++i)
8073 if (munmap (data2, pagesize))
8076 /* Next, try to mmap the file at a fixed address which already has
8077 something else allocated at it. If we can, also make sure that
8078 we see the same garbage. */
8079 fd = open ("conftest.mmap", O_RDWR);
8082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8085 for (i = 0; i < pagesize; ++i)
8086 if (*(data + i) != *(data2 + i))
8089 /* Finally, make sure that changes to the mapped area do not
8090 percolate back to the file as seen by read(). (This is a bug on
8091 some variants of i386 svr4.0.) */
8092 for (i = 0; i < pagesize; ++i)
8093 *(data2 + i) = *(data2 + i) + 1;
8094 data3 = (char *) malloc (pagesize);
8097 if (read (fd, data3, pagesize) != pagesize)
8099 for (i = 0; i < pagesize; ++i)
8100 if (*(data + i) != *(data3 + i))
8106 if ac_fn_c_try_run
"$LINENO"; then :
8107 ac_cv_func_mmap_fixed_mapped
=yes
8109 ac_cv_func_mmap_fixed_mapped
=no
8111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8117 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8120 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8123 rm -f conftest.mmap conftest.txt
8125 if test $use_mmap_for_buffers = yes; then
8127 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8132 LIBS
="$LIBS_SYSTEM $LIBS"
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8135 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8136 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8139 ac_check_lib_save_LIBS
=$LIBS
8141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8144 /* Override any GCC internal prototype to avoid an error.
8145 Use char because int might match the return type of a GCC
8146 builtin and then its argument prototype would still apply. */
8154 return dnet_ntoa ();
8159 if ac_fn_c_try_link
"$LINENO"; then :
8160 ac_cv_lib_dnet_dnet_ntoa
=yes
8162 ac_cv_lib_dnet_dnet_ntoa
=no
8164 rm -f core conftest.err conftest.
$ac_objext \
8165 conftest
$ac_exeext conftest.
$ac_ext
8166 LIBS
=$ac_check_lib_save_LIBS
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8169 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8170 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8171 cat >>confdefs.h
<<_ACEOF
8172 #define HAVE_LIBDNET 1
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8181 $as_echo_n "checking for main in -lXbsd... " >&6; }
8182 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8185 ac_check_lib_save_LIBS
=$LIBS
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8199 if ac_fn_c_try_link
"$LINENO"; then :
8200 ac_cv_lib_Xbsd_main
=yes
8202 ac_cv_lib_Xbsd_main
=no
8204 rm -f core conftest.err conftest.
$ac_objext \
8205 conftest
$ac_exeext conftest.
$ac_ext
8206 LIBS
=$ac_check_lib_save_LIBS
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8209 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8210 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8211 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8216 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8217 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8220 ac_check_lib_save_LIBS
=$LIBS
8221 LIBS
="-lpthreads $LIBS"
8222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8225 /* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8240 if ac_fn_c_try_link
"$LINENO"; then :
8241 ac_cv_lib_pthreads_cma_open
=yes
8243 ac_cv_lib_pthreads_cma_open
=no
8245 rm -f core conftest.err conftest.
$ac_objext \
8246 conftest
$ac_exeext conftest.
$ac_ext
8247 LIBS
=$ac_check_lib_save_LIBS
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8250 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8251 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8252 cat >>confdefs.h
<<_ACEOF
8253 #define HAVE_LIBPTHREADS 1
8256 LIBS
="-lpthreads $LIBS"
8261 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8262 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8263 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8264 ## added to LIBS in configure would never contain the pthreads part,
8265 ## but the value used in Makefiles might. FIXME?
8267 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8268 ## be harmless on older versions of X where it happens to exist.
8269 test "$opsys" = "aix4-2" && \
8270 test $ac_cv_lib_pthreads_cma_open = yes && \
8271 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8277 $as_echo_n "checking for -bbigtoc option... " >&6; }
8278 if test "${gdb_cv_bigtoc+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8283 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8284 *) gdb_cv_bigtoc
=-bbigtoc ;;
8287 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8299 if ac_fn_c_try_link
"$LINENO"; then :
8304 rm -f core conftest.err conftest.
$ac_objext \
8305 conftest
$ac_exeext conftest.
$ac_ext
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8309 $as_echo "$gdb_cv_bigtoc" >&6; }
8313 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8314 # used for the tests that follow. We set them back to REAL_CFLAGS and
8315 # REAL_CPPFLAGS later on.
8317 REAL_CFLAGS
="$CFLAGS"
8318 REAL_CPPFLAGS
="$CPPFLAGS"
8320 if test "${HAVE_X11}" = "yes"; then
8321 DEFS
="$C_SWITCH_X_SITE $DEFS"
8322 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8324 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8325 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8327 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8328 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8329 # but it's more convenient here to set LD_RUN_PATH
8330 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8331 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8332 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8336 if test "${opsys}" = "gnu-linux"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8338 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8345 XOpenDisplay ("foo");
8350 if ac_fn_c_try_link
"$LINENO"; then :
8351 xlinux_first_failure
=no
8353 xlinux_first_failure
=yes
8355 rm -f core conftest.err conftest.
$ac_objext \
8356 conftest
$ac_exeext conftest.
$ac_ext
8357 if test "${xlinux_first_failure}" = "yes"; then
8358 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8359 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8360 OLD_CPPFLAGS
="$CPPFLAGS"
8362 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8363 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8364 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8365 LIBS
="$LIBS -b i486-linuxaout"
8366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8372 XOpenDisplay ("foo");
8377 if ac_fn_c_try_link
"$LINENO"; then :
8378 xlinux_second_failure
=no
8380 xlinux_second_failure
=yes
8382 rm -f core conftest.err conftest.
$ac_objext \
8383 conftest
$ac_exeext conftest.
$ac_ext
8384 if test "${xlinux_second_failure}" = "yes"; then
8385 # If we get the same failure with -b, there is no use adding -b.
8386 # So take it out. This plays safe.
8387 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8388 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8389 CPPFLAGS
="$OLD_CPPFLAGS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8395 $as_echo "yes" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8403 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8404 # header files included from there.
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8406 $as_echo_n "checking for Xkb... " >&6; }
8407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #include <X11/Xlib.h>
8410 #include <X11/XKBlib.h>
8414 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8419 if ac_fn_c_try_link
"$LINENO"; then :
8424 rm -f core conftest.err conftest.
$ac_objext \
8425 conftest
$ac_exeext conftest.
$ac_ext
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8427 $as_echo "$emacs_xkb" >&6; }
8428 if test $emacs_xkb = yes; then
8430 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8434 for ac_func
in XrmSetDatabase XScreenResourceString \
8435 XScreenNumberOfScreen XSetWMProtocols
8437 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8438 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8439 eval as_val
=\$
$as_ac_var
8440 if test "x$as_val" = x
""yes; then :
8441 cat >>confdefs.h
<<_ACEOF
8442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8450 if test "${window_system}" = "x11"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8452 $as_echo_n "checking X11 version 6... " >&6; }
8453 if test "${emacs_cv_x11_version_6+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 #include <X11/Xlib.h>
8462 #if XlibSpecificationRelease < 6
8470 if ac_fn_c_try_link
"$LINENO"; then :
8471 emacs_cv_x11_version_6
=yes
8473 emacs_cv_x11_version_6
=no
8475 rm -f core conftest.err conftest.
$ac_objext \
8476 conftest
$ac_exeext conftest.
$ac_ext
8479 if test $emacs_cv_x11_version_6 = yes; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8481 $as_echo "6 or newer" >&6; }
8483 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8486 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8488 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8493 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8499 $as_echo "before 6" >&6; }
8504 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8506 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8507 if test "${with_rsvg}" != "no"; then
8508 RSVG_REQUIRED
=2.11.0
8509 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8514 # Extract the first word of "pkg-config", so it can be a program name with args.
8515 set dummy pkg-config
; ac_word
=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8523 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8530 test -z "$as_dir" && as_dir
=.
8531 for ac_exec_ext
in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8545 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8546 if test -n "$PKG_CONFIG"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8548 $as_echo "$PKG_CONFIG" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test "$PKG_CONFIG" = "no" ; then
8559 PKG_CONFIG_MIN_VERSION
=0.9.0
8560 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8562 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8564 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8566 $as_echo "yes" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8570 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8571 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8573 $as_echo "$RSVG_CFLAGS" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8576 $as_echo_n "checking RSVG_LIBS... " >&6; }
8577 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8579 $as_echo "$RSVG_LIBS" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8585 ## If we have a custom action on failure, don't print errors, but
8586 ## do set a variable so people can do so.
8587 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8594 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8595 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8599 if test $succeeded = yes; then
8608 if test ".${RSVG_CFLAGS}" != "."; then
8611 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8613 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8614 LIBS
="$RSVG_LIBS $LIBS"
8620 if test "${with_imagemagick}" != "no"; then
8621 IMAGEMAGICK_MODULE
="Wand"
8625 # Extract the first word of "pkg-config", so it can be a program name with args.
8626 set dummy pkg-config
; ac_word
=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8634 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8641 test -z "$as_dir" && as_dir
=.
8642 for ac_exec_ext
in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8644 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8656 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8657 if test -n "$PKG_CONFIG"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8659 $as_echo "$PKG_CONFIG" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 if test "$PKG_CONFIG" = "no" ; then
8670 PKG_CONFIG_MIN_VERSION
=0.9.0
8671 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8673 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8675 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8677 $as_echo "yes" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8681 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8682 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8684 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8687 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8688 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8690 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8694 IMAGEMAGICK_CFLAGS
=""
8696 ## If we have a custom action on failure, don't print errors, but
8697 ## do set a variable so people can do so.
8698 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8705 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8706 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8710 if test $succeeded = yes; then
8719 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
8720 HAVE_IMAGEMAGICK
=yes
8722 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8724 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8725 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8729 $as_echo "#define HAVE_MAGICKEXPORTIMAGEPIXELS 1" >>confdefs.h
8734 for ac_func
in $ac_func_list
8736 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8737 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8738 eval as_val
=\$
$as_ac_var
8739 if test "x$as_val" = x
""yes; then :
8740 cat >>confdefs.h
<<_ACEOF
8741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8755 if test "${with_gtk3}" = "yes"; then
8758 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8763 # Extract the first word of "pkg-config", so it can be a program name with args.
8764 set dummy pkg-config
; ac_word
=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8772 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir
=.
8780 for ac_exec_ext
in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8794 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8795 if test -n "$PKG_CONFIG"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8797 $as_echo "$PKG_CONFIG" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8805 if test "$PKG_CONFIG" = "no" ; then
8808 PKG_CONFIG_MIN_VERSION
=0.9.0
8809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8811 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8813 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8815 $as_echo "yes" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8819 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8820 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8822 $as_echo "$GTK_CFLAGS" >&6; }
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8825 $as_echo_n "checking GTK_LIBS... " >&6; }
8826 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8828 $as_echo "$GTK_LIBS" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8834 ## If we have a custom action on failure, don't print errors, but
8835 ## do set a variable so people can do so.
8836 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8848 if test $succeeded = yes; then
8854 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8855 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8859 if test "$pkg_check_gtk" != "yes"; then
8861 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8864 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8869 # Extract the first word of "pkg-config", so it can be a program name with args.
8870 set dummy pkg-config
; ac_word
=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8878 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir
=.
8886 for ac_exec_ext
in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8900 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8901 if test -n "$PKG_CONFIG"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8903 $as_echo "$PKG_CONFIG" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8911 if test "$PKG_CONFIG" = "no" ; then
8914 PKG_CONFIG_MIN_VERSION
=0.9.0
8915 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8917 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8919 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8921 $as_echo "yes" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8925 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8926 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8928 $as_echo "$GTK_CFLAGS" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8931 $as_echo_n "checking GTK_LIBS... " >&6; }
8932 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8934 $as_echo "$GTK_LIBS" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8940 ## If we have a custom action on failure, don't print errors, but
8941 ## do set a variable so people can do so.
8942 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8954 if test $succeeded = yes; then
8960 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8961 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8967 if test x
"$pkg_check_gtk" = xyes
; then
8971 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8972 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8973 LIBS
="$GTK_LIBS $LIBS"
8975 for ac_func
in gtk_main
8977 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8978 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8979 cat >>confdefs.h
<<_ACEOF
8980 #define HAVE_GTK_MAIN 1
8986 if test "${GTK_COMPILES}" != "yes"; then
8987 if test "$USE_X_TOOLKIT" != "maybe"; then
8988 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8993 $as_echo "#define USE_GTK 1" >>confdefs.h
8997 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9001 closing open displays. This is no problem if you just use
9002 one display, but if you use more than one and close one of them
9003 Emacs may crash." >&5
9004 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9005 closing open displays. This is no problem if you just use
9006 one display, but if you use more than one and close one of them
9007 Emacs may crash." >&2;}
9016 if test "${HAVE_GTK}" = "yes"; then
9018 if test "$with_toolkit_scroll_bars" != no
; then
9019 with_toolkit_scroll_bars
=yes
9022 HAVE_GTK_FILE_SELECTION
=no
9023 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9024 #include <gtk/gtk.h>
9026 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9027 HAVE_GTK_FILE_SELECTION
=yes
9029 HAVE_GTK_FILE_SELECTION
=no
9032 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9033 for ac_func
in gtk_file_selection_new
9035 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9036 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9037 cat >>confdefs.h
<<_ACEOF
9038 #define HAVE_GTK_FILE_SELECTION_NEW 1
9046 HAVE_GTK_AND_PTHREAD
=no
9047 for ac_header
in pthread.h
9049 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9050 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9051 cat >>confdefs.h
<<_ACEOF
9052 #define HAVE_PTHREAD_H 1
9059 if test "$ac_cv_header_pthread_h"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9061 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9062 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
9065 ac_check_lib_save_LIBS
=$LIBS
9066 LIBS
="-lpthread $LIBS"
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9070 /* Override any GCC internal prototype to avoid an error.
9071 Use char because int might match the return type of a GCC
9072 builtin and then its argument prototype would still apply. */
9076 char pthread_self ();
9080 return pthread_self ();
9085 if ac_fn_c_try_link
"$LINENO"; then :
9086 ac_cv_lib_pthread_pthread_self
=yes
9088 ac_cv_lib_pthread_pthread_self
=no
9090 rm -f core conftest.err conftest.
$ac_objext \
9091 conftest
$ac_exeext conftest.
$ac_ext
9092 LIBS
=$ac_check_lib_save_LIBS
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9095 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9096 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9097 HAVE_GTK_AND_PTHREAD
=yes
9101 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9102 case "${canonical}" in
9104 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9107 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9111 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9112 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9113 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9114 gtk_orientable_set_orientation
9116 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9117 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9118 eval as_val
=\$
$as_ac_var
9119 if test "x$as_val" = x
""yes; then :
9120 cat >>confdefs.h
<<_ACEOF
9121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9132 if test "${with_dbus}" = "yes"; then
9136 # Extract the first word of "pkg-config", so it can be a program name with args.
9137 set dummy pkg-config
; ac_word
=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9145 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9152 test -z "$as_dir" && as_dir
=.
9153 for ac_exec_ext
in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9167 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9168 if test -n "$PKG_CONFIG"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9170 $as_echo "$PKG_CONFIG" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9178 if test "$PKG_CONFIG" = "no" ; then
9181 PKG_CONFIG_MIN_VERSION
=0.9.0
9182 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9184 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9186 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9188 $as_echo "yes" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9192 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9193 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9195 $as_echo "$DBUS_CFLAGS" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9198 $as_echo_n "checking DBUS_LIBS... " >&6; }
9199 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9201 $as_echo "$DBUS_LIBS" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9207 ## If we have a custom action on failure, don't print errors, but
9208 ## do set a variable so people can do so.
9209 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9216 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9217 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9221 if test $succeeded = yes; then
9227 if test "$HAVE_DBUS" = yes; then
9228 LIBS
="$LIBS $DBUS_LIBS"
9230 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9232 for ac_func
in dbus_watch_get_unix_fd
9234 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9235 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9236 cat >>confdefs.h
<<_ACEOF
9237 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9249 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9253 # Extract the first word of "pkg-config", so it can be a program name with args.
9254 set dummy pkg-config
; ac_word
=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9262 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9269 test -z "$as_dir" && as_dir
=.
9270 for ac_exec_ext
in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9284 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9285 if test -n "$PKG_CONFIG"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9287 $as_echo "$PKG_CONFIG" >&6; }
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9295 if test "$PKG_CONFIG" = "no" ; then
9298 PKG_CONFIG_MIN_VERSION
=0.9.0
9299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9301 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9303 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9305 $as_echo "yes" >&6; }
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9309 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9310 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9312 $as_echo "$GCONF_CFLAGS" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9315 $as_echo_n "checking GCONF_LIBS... " >&6; }
9316 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9318 $as_echo "$GCONF_LIBS" >&6; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9324 ## If we have a custom action on failure, don't print errors, but
9325 ## do set a variable so people can do so.
9326 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9338 if test $succeeded = yes; then
9344 if test "$HAVE_GCONF" = yes; then
9346 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9353 if test "${with_selinux}" = "yes"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9355 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9356 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9359 ac_check_lib_save_LIBS
=$LIBS
9360 LIBS
="-lselinux $LIBS"
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9370 char lgetfilecon ();
9374 return lgetfilecon ();
9379 if ac_fn_c_try_link
"$LINENO"; then :
9380 ac_cv_lib_selinux_lgetfilecon
=yes
9382 ac_cv_lib_selinux_lgetfilecon
=no
9384 rm -f core conftest.err conftest.
$ac_objext \
9385 conftest
$ac_exeext conftest.
$ac_ext
9386 LIBS
=$ac_check_lib_save_LIBS
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9389 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9390 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9396 if test "$HAVE_LIBSELINUX" = yes; then
9398 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9400 LIBSELINUX_LIBS
=-lselinux
9407 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9408 if test "$with_xaw3d" != no
; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9410 $as_echo_n "checking for xaw3d... " >&6; }
9411 if test "${emacs_cv_xaw3d+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9417 #include <X11/Intrinsic.h>
9418 #include <X11/Xaw3d/Simple.h>
9427 if ac_fn_c_try_link
"$LINENO"; then :
9432 rm -f core conftest.err conftest.
$ac_objext \
9433 conftest
$ac_exeext conftest.
$ac_ext
9439 if test $emacs_cv_xaw3d = yes; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9441 $as_echo "yes; using Lucid toolkit" >&6; }
9446 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9452 $as_echo_n "checking for libXaw... " >&6; }
9453 if test "${emacs_cv_xaw+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 #include <X11/Intrinsic.h>
9460 #include <X11/Xaw/Simple.h>
9469 if ac_fn_c_try_link
"$LINENO"; then :
9474 rm -f core conftest.err conftest.
$ac_objext \
9475 conftest
$ac_exeext conftest.
$ac_ext
9478 if test $emacs_cv_xaw = yes; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9480 $as_echo "yes; using Lucid toolkit" >&6; }
9483 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9484 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9487 $as_echo "no; do not use toolkit by default" >&6; }
9493 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9496 if test "${USE_X_TOOLKIT}" != "none"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9498 $as_echo_n "checking X11 toolkit version... " >&6; }
9499 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 #include <X11/Intrinsic.h>
9508 #if XtSpecificationRelease < 6
9516 if ac_fn_c_try_link
"$LINENO"; then :
9517 emacs_cv_x11_toolkit_version_6
=yes
9519 emacs_cv_x11_toolkit_version_6
=no
9521 rm -f core conftest.err conftest.
$ac_objext \
9522 conftest
$ac_exeext conftest.
$ac_ext
9525 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9526 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9528 $as_echo "6 or newer" >&6; }
9530 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9532 LIBXTR6
="-lSM -lICE"
9534 ## Use libw.a along with X11R6 Xt.
9535 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9539 $as_echo "before 6" >&6; }
9543 if test x
$HAVE_X11XTR6 = xyes
; then
9544 LIBS
="-lXt -lSM -lICE $LIBS"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9549 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9550 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9553 ac_check_lib_save_LIBS
=$LIBS
9555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9564 char XmuConvertStandardSelection ();
9568 return XmuConvertStandardSelection ();
9573 if ac_fn_c_try_link
"$LINENO"; then :
9574 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9576 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9578 rm -f core conftest.err conftest.
$ac_objext \
9579 conftest
$ac_exeext conftest.
$ac_ext
9580 LIBS
=$ac_check_lib_save_LIBS
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9583 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9584 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9585 cat >>confdefs.h
<<_ACEOF
9586 #define HAVE_LIBXMU 1
9593 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9599 ## These machines don't supply Xmu.
9601 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9606 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9607 if test "${HAVE_X11}" = "yes"; then
9608 if test "${USE_X_TOOLKIT}" != "none"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9610 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9611 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9614 ac_check_lib_save_LIBS
=$LIBS
9616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9625 char XShapeQueryExtension ();
9629 return XShapeQueryExtension ();
9634 if ac_fn_c_try_link
"$LINENO"; then :
9635 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9637 ac_cv_lib_Xext_XShapeQueryExtension
=no
9639 rm -f core conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9641 LIBS
=$ac_check_lib_save_LIBS
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9644 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9645 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9646 cat >>confdefs.h
<<_ACEOF
9647 #define HAVE_LIBXEXT 1
9658 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9660 $as_echo_n "checking for Motif version 2.1... " >&6; }
9661 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9670 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9673 Motif version prior to 2.1.
9679 if ac_fn_c_try_compile
"$LINENO"; then :
9680 emacs_cv_motif_version_2_1
=yes
9682 emacs_cv_motif_version_2_1
=no
9684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9687 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9688 if test $emacs_cv_motif_version_2_1 = yes; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9690 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9691 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 ac_check_lib_save_LIBS
=$LIBS
9696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9705 char XpCreateContext ();
9709 return XpCreateContext ();
9714 if ac_fn_c_try_link
"$LINENO"; then :
9715 ac_cv_lib_Xp_XpCreateContext
=yes
9717 ac_cv_lib_Xp_XpCreateContext
=no
9719 rm -f core conftest.err conftest.
$ac_objext \
9720 conftest
$ac_exeext conftest.
$ac_ext
9721 LIBS
=$ac_check_lib_save_LIBS
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9724 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9725 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9731 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9732 if test "${emacs_cv_lesstif+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9735 # We put this in CFLAGS temporarily to precede other -I options
9736 # that might be in CFLAGS temporarily.
9737 # We put this in CPPFLAGS where it precedes the other -I options.
9738 OLD_CPPFLAGS
=$CPPFLAGS
9740 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9741 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9753 if ac_fn_c_try_compile
"$LINENO"; then :
9754 emacs_cv_lesstif
=yes
9758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9761 $as_echo "$emacs_cv_lesstif" >&6; }
9762 if test $emacs_cv_lesstif = yes; then
9763 # Make sure this -I option remains in CPPFLAGS after it is set
9764 # back to REAL_CPPFLAGS.
9765 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9766 # have those other -I options anyway. Ultimately, having this
9767 # directory ultimately in CPPFLAGS will be enough.
9768 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9769 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9772 CPPFLAGS
=$OLD_CPPFLAGS
9778 USE_TOOLKIT_SCROLL_BARS
=no
9779 if test "${with_toolkit_scroll_bars}" != "no"; then
9780 if test "${USE_X_TOOLKIT}" != "none"; then
9781 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9782 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9785 USE_TOOLKIT_SCROLL_BARS
=yes
9786 elif test "${HAVE_XAW3D}" = "yes"; then
9787 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9789 USE_TOOLKIT_SCROLL_BARS
=yes
9791 elif test "${HAVE_GTK}" = "yes"; then
9792 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9794 USE_TOOLKIT_SCROLL_BARS
=yes
9795 elif test "${HAVE_NS}" = "yes"; then
9796 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9798 USE_TOOLKIT_SCROLL_BARS
=yes
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 #include <X11/Xlib.h>
9806 #include <X11/Xresource.h>
9815 if ac_fn_c_try_compile
"$LINENO"; then :
9818 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9826 if test "${with_xim}" != "no"; then
9828 $as_echo "#define USE_XIM 1" >>confdefs.h
9833 if test "${HAVE_XIM}" != "no"; then
9835 if test "$GCC" = yes; then
9836 CFLAGS
="$CFLAGS --pedantic-errors"
9838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9841 #include <X11/Xlib.h>
9842 #include <X11/Xresource.h>
9851 XPointer *client_data;
9853 /* If we're not using GCC, it's probably not XFree86, and this is
9854 probably right, but we can't use something like --pedantic-errors. */
9855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9856 char*, XIMProc, XPointer*);
9858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9864 if ac_fn_c_try_compile
"$LINENO"; then :
9865 emacs_cv_arg6_star
=yes
9867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9868 if test "$emacs_cv_arg6_star" = yes; then
9869 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9872 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9878 ### Start of font-backend (under any platform) section.
9879 # (nothing here yet -- this is a placeholder)
9880 ### End of font-backend (under any platform) section.
9882 ### Start of font-backend (under X11) section.
9883 if test "${HAVE_X11}" = "yes"; then
9887 # Extract the first word of "pkg-config", so it can be a program name with args.
9888 set dummy pkg-config
; ac_word
=$2
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890 $as_echo_n "checking for $ac_word... " >&6; }
9891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9896 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9903 test -z "$as_dir" && as_dir
=.
9904 for ac_exec_ext
in '' $ac_executable_extensions; do
9905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9906 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9918 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9919 if test -n "$PKG_CONFIG"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9921 $as_echo "$PKG_CONFIG" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9929 if test "$PKG_CONFIG" = "no" ; then
9932 PKG_CONFIG_MIN_VERSION
=0.9.0
9933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9935 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9937 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9939 $as_echo "yes" >&6; }
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9943 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9944 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9946 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9949 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9950 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9952 $as_echo "$FONTCONFIG_LIBS" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 FONTCONFIG_CFLAGS
=""
9958 ## If we have a custom action on failure, don't print errors, but
9959 ## do set a variable so people can do so.
9960 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9972 if test $succeeded = yes; then
9979 ## Use -lXft if available, unless `--with-xft=no'.
9981 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9984 if test "x${with_xft}" != "xno"; then
9989 # Extract the first word of "pkg-config", so it can be a program name with args.
9990 set dummy pkg-config
; ac_word
=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9998 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10002 for as_dir
in $PATH
10005 test -z "$as_dir" && as_dir
=.
10006 for ac_exec_ext
in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10020 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10021 if test -n "$PKG_CONFIG"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10023 $as_echo "$PKG_CONFIG" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10031 if test "$PKG_CONFIG" = "no" ; then
10034 PKG_CONFIG_MIN_VERSION
=0.9.0
10035 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10037 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10039 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041 $as_echo "yes" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10045 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10046 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10048 $as_echo "$XFT_CFLAGS" >&6; }
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10051 $as_echo_n "checking XFT_LIBS... " >&6; }
10052 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10054 $as_echo "$XFT_LIBS" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10060 ## If we have a custom action on failure, don't print errors, but
10061 ## do set a variable so people can do so.
10062 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10074 if test $succeeded = yes; then
10080 ## Because xftfont.c uses XRenderQueryExtension, we also
10081 ## need to link to -lXrender.
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10084 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10085 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10088 ac_check_lib_save_LIBS
=$LIBS
10089 LIBS
="-lXrender $LIBS"
10090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10099 char XRenderQueryExtension ();
10103 return XRenderQueryExtension ();
10108 if ac_fn_c_try_link
"$LINENO"; then :
10109 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10111 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10113 rm -f core conftest.err conftest.
$ac_objext \
10114 conftest
$ac_exeext conftest.
$ac_ext
10115 LIBS
=$ac_check_lib_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10118 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10119 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10123 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10124 OLD_CPPFLAGS
="$CPPFLAGS"
10125 OLD_CFLAGS
="$CFLAGS"
10127 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10128 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10129 XFT_LIBS
="-lXrender $XFT_LIBS"
10130 LIBS
="$XFT_LIBS $LIBS"
10131 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10132 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10134 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10135 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 ac_check_lib_save_LIBS
=$LIBS
10139 LIBS
="-lXft $XFT_LIBS $LIBS"
10140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10149 char XftFontOpen ();
10153 return XftFontOpen ();
10158 if ac_fn_c_try_link
"$LINENO"; then :
10159 ac_cv_lib_Xft_XftFontOpen
=yes
10161 ac_cv_lib_Xft_XftFontOpen
=no
10163 rm -f core conftest.err conftest.
$ac_objext \
10164 conftest
$ac_exeext conftest.
$ac_ext
10165 LIBS
=$ac_check_lib_save_LIBS
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10168 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10169 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10177 if test "${HAVE_XFT}" = "yes"; then
10179 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10182 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10184 CPPFLAGS
="$OLD_CPPFLAGS"
10185 CFLAGS
="$OLD_CFLAGS"
10187 fi # "${HAVE_XFT}" = "yes"
10188 fi # "$HAVE_XFT" != no
10189 fi # "x${with_xft}" != "xno"
10191 if test "$HAVE_XFT" != "yes"; then
10197 ## We used to allow building with FreeType and without Xft.
10198 ## However, the ftx font backend driver is not in good shape.
10199 if test "${HAVE_XFT}" = "yes"; then
10206 if test "${HAVE_FREETYPE}" = "yes"; then
10208 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10210 if test "${with_libotf}" != "no"; then
10214 # Extract the first word of "pkg-config", so it can be a program name with args.
10215 set dummy pkg-config
; ac_word
=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10221 case $PKG_CONFIG in
10223 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10227 for as_dir
in $PATH
10230 test -z "$as_dir" && as_dir
=.
10231 for ac_exec_ext
in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10245 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10246 if test -n "$PKG_CONFIG"; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10248 $as_echo "$PKG_CONFIG" >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; }
10256 if test "$PKG_CONFIG" = "no" ; then
10259 PKG_CONFIG_MIN_VERSION
=0.9.0
10260 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10262 $as_echo_n "checking for libotf... " >&6; }
10264 if $PKG_CONFIG --exists "libotf" 2>&5; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266 $as_echo "yes" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10270 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10271 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10273 $as_echo "$LIBOTF_CFLAGS" >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10276 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10277 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10279 $as_echo "$LIBOTF_LIBS" >&6; }
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10285 ## If we have a custom action on failure, don't print errors, but
10286 ## do set a variable so people can do so.
10287 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10294 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10295 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10299 if test $succeeded = yes; then
10305 if test "$HAVE_LIBOTF" = "yes"; then
10307 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10310 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10311 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
10314 ac_check_lib_save_LIBS
=$LIBS
10316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10319 /* Override any GCC internal prototype to avoid an error.
10320 Use char because int might match the return type of a GCC
10321 builtin and then its argument prototype would still apply. */
10325 char OTF_get_variation_glyphs ();
10329 return OTF_get_variation_glyphs ();
10334 if ac_fn_c_try_link
"$LINENO"; then :
10335 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10337 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10339 rm -f core conftest.err conftest.
$ac_objext \
10340 conftest
$ac_exeext conftest.
$ac_ext
10341 LIBS
=$ac_check_lib_save_LIBS
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10344 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10345 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10346 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10348 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10351 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10353 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10361 if test "${HAVE_LIBOTF}" = yes; then
10362 if test "${with_m17n_flt}" != "no"; then
10366 # Extract the first word of "pkg-config", so it can be a program name with args.
10367 set dummy pkg-config
; ac_word
=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10373 case $PKG_CONFIG in
10375 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10379 for as_dir
in $PATH
10382 test -z "$as_dir" && as_dir
=.
10383 for ac_exec_ext
in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10385 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10397 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10398 if test -n "$PKG_CONFIG"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10400 $as_echo "$PKG_CONFIG" >&6; }
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 if test "$PKG_CONFIG" = "no" ; then
10411 PKG_CONFIG_MIN_VERSION
=0.9.0
10412 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10414 $as_echo_n "checking for m17n-flt... " >&6; }
10416 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; }
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10422 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10423 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10425 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10428 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10429 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10431 $as_echo "$M17N_FLT_LIBS" >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10437 ## If we have a custom action on failure, don't print errors, but
10438 ## do set a variable so people can do so.
10439 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10446 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10447 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10451 if test $succeeded = yes; then
10457 if test "$HAVE_M17N_FLT" = "yes"; then
10459 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10471 ### End of font-backend (under X11) section.
10482 ### Use -lXpm if available, unless `--with-xpm=no'.
10485 if test "${HAVE_X11}" = "yes"; then
10486 if test "${with_xpm}" != "no"; then
10487 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10488 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10490 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10491 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10494 ac_check_lib_save_LIBS
=$LIBS
10495 LIBS
="-lXpm -lX11 $LIBS"
10496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10505 char XpmReadFileToPixmap ();
10509 return XpmReadFileToPixmap ();
10514 if ac_fn_c_try_link
"$LINENO"; then :
10515 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10517 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10519 rm -f core conftest.err conftest.
$ac_objext \
10520 conftest
$ac_exeext conftest.
$ac_ext
10521 LIBS
=$ac_check_lib_save_LIBS
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10524 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10525 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10532 if test "${HAVE_XPM}" = "yes"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10534 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 #include "X11/xpm.h"
10538 #ifndef XpmReturnAllocPixels
10539 no_return_alloc_pixels
10543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10544 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10552 if test "${HAVE_XPM}" = "yes"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10554 $as_echo "yes" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10562 if test "${HAVE_XPM}" = "yes"; then
10564 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10571 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10574 if test "${HAVE_X11}" = "yes"; then
10575 if test "${with_jpeg}" != "no"; then
10576 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10577 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10579 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10580 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10583 ac_check_lib_save_LIBS
=$LIBS
10584 LIBS
="-ljpeg $LIBS"
10585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10594 char jpeg_destroy_compress ();
10598 return jpeg_destroy_compress ();
10603 if ac_fn_c_try_link
"$LINENO"; then :
10604 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10606 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10608 rm -f core conftest.err conftest.
$ac_objext \
10609 conftest
$ac_exeext conftest.
$ac_ext
10610 LIBS
=$ac_check_lib_save_LIBS
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10613 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10614 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10623 if test "${HAVE_JPEG}" = "yes"; then
10624 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <jpeglib.h>
10629 version=JPEG_LIB_VERSION
10632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10633 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10634 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10638 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10644 if test "${HAVE_JPEG}" = "yes"; then
10650 ### Use -lpng if available, unless `--with-png=no'.
10653 if test "${HAVE_X11}" = "yes"; then
10654 if test "${with_png}" != "no"; then
10655 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10656 # in /usr/include/libpng.
10657 for ac_header
in png.h libpng
/png.h
10659 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10661 eval as_val
=\$
$as_ac_Header
10662 if test "x$as_val" = x
""yes; then :
10663 cat >>confdefs.h
<<_ACEOF
10664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10673 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10674 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10677 ac_check_lib_save_LIBS
=$LIBS
10678 LIBS
="-lpng -lz -lm $LIBS"
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10688 char png_get_channels ();
10692 return png_get_channels ();
10697 if ac_fn_c_try_link
"$LINENO"; then :
10698 ac_cv_lib_png_png_get_channels
=yes
10700 ac_cv_lib_png_png_get_channels
=no
10702 rm -f core conftest.err conftest.
$ac_objext \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 LIBS
=$ac_check_lib_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10707 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10708 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10715 if test "${HAVE_PNG}" = "yes"; then
10717 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10719 LIBPNG
="-lpng -lz -lm"
10724 ### Use -ltiff if available, unless `--with-tiff=no'.
10727 if test "${HAVE_X11}" = "yes"; then
10728 if test "${with_tiff}" != "no"; then
10729 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10730 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10732 # At least one tiff package requires the jpeg library.
10733 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10735 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10736 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
10739 ac_check_lib_save_LIBS
=$LIBS
10740 LIBS
="-ltiff $tifflibs $LIBS"
10741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 /* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
10750 char TIFFGetVersion ();
10754 return TIFFGetVersion ();
10759 if ac_fn_c_try_link
"$LINENO"; then :
10760 ac_cv_lib_tiff_TIFFGetVersion
=yes
10762 ac_cv_lib_tiff_TIFFGetVersion
=no
10764 rm -f core conftest.err conftest.
$ac_objext \
10765 conftest
$ac_exeext conftest.
$ac_ext
10766 LIBS
=$ac_check_lib_save_LIBS
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10769 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10770 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10779 if test "${HAVE_TIFF}" = "yes"; then
10781 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10788 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10791 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10792 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10793 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10794 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10795 # Earlier versions can crash Emacs.
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10797 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10798 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10801 ac_check_lib_save_LIBS
=$LIBS
10803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10812 char EGifPutExtensionLast ();
10816 return EGifPutExtensionLast ();
10821 if ac_fn_c_try_link
"$LINENO"; then :
10822 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10824 ac_cv_lib_gif_EGifPutExtensionLast
=no
10826 rm -f core conftest.err conftest.
$ac_objext \
10827 conftest
$ac_exeext conftest.
$ac_ext
10828 LIBS
=$ac_check_lib_save_LIBS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10831 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10832 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10842 if test "$HAVE_GIF" = yes; then
10844 elif test "$HAVE_GIF" = maybe
; then
10845 # If gif_lib.h but no libgif, try libungif.
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10847 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10848 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10851 ac_check_lib_save_LIBS
=$LIBS
10852 LIBS
="-lungif $LIBS"
10853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10862 char EGifPutExtensionLast ();
10866 return EGifPutExtensionLast ();
10871 if ac_fn_c_try_link
"$LINENO"; then :
10872 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10874 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10876 rm -f core conftest.err conftest.
$ac_objext \
10877 conftest
$ac_exeext conftest.
$ac_ext
10878 LIBS
=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10881 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10882 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10888 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10891 if test "${HAVE_GIF}" = "yes"; then
10893 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10899 if test "${HAVE_X11}" = "yes"; then
10902 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10903 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10904 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10905 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10906 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10907 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10908 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10909 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10910 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10911 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10913 if test "X${MISSING}" != X
; then
10914 as_fn_error
"The following required libraries were not found:
10916 Maybe some development libraries/packages are missing?
10917 If you don't want to link with them give
10919 as options to configure" "$LINENO" 5
10923 ### Use -lgpm if available, unless `--with-gpm=no'.
10927 if test "${with_gpm}" != "no"; then
10928 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10929 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10931 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10932 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10935 ac_check_lib_save_LIBS
=$LIBS
10937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10950 return Gpm_Open ();
10955 if ac_fn_c_try_link
"$LINENO"; then :
10956 ac_cv_lib_gpm_Gpm_Open
=yes
10958 ac_cv_lib_gpm_Gpm_Open
=no
10960 rm -f core conftest.err conftest.
$ac_objext \
10961 conftest
$ac_exeext conftest.
$ac_ext
10962 LIBS
=$ac_check_lib_save_LIBS
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10965 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10966 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10974 if test "${HAVE_GPM}" = "yes"; then
10976 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10979 ## May be reset below.
10980 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
10985 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10986 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10988 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10995 ### Use NeXTstep API to implement GUI.
10996 if test "${HAVE_NS}" = "yes"; then
10998 $as_echo "#define HAVE_NS 1" >>confdefs.h
11000 if test "${NS_IMPL_COCOA}" = "yes"; then
11002 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11006 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11008 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11010 # See also .m.o rule in Makefile.in */
11011 # FIXME: are all these flags really needed? Document here why. */
11012 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11013 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11015 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11017 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11020 # We also have mouse menus.
11026 ### Use session management (-lSM -lICE) if available
11029 if test "${HAVE_X11}" = "yes"; then
11030 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11031 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11033 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11034 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11037 ac_check_lib_save_LIBS
=$LIBS
11038 LIBS
="-lSM -lICE $LIBS"
11039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11048 char SmcOpenConnection ();
11052 return SmcOpenConnection ();
11057 if ac_fn_c_try_link
"$LINENO"; then :
11058 ac_cv_lib_SM_SmcOpenConnection
=yes
11060 ac_cv_lib_SM_SmcOpenConnection
=no
11062 rm -f core conftest.err conftest.
$ac_objext \
11063 conftest
$ac_exeext conftest.
$ac_ext
11064 LIBS
=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11067 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11068 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11076 if test "${HAVE_X_SM}" = "yes"; then
11078 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11080 LIBXSM
="-lSM -lICE"
11083 *) LIBS
="$LIBXSM $LIBS" ;;
11089 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11091 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11092 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
11095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11106 if ac_fn_c_try_link
"$LINENO"; then :
11107 emacs_cv_netdb_declares_h_errno
=yes
11109 emacs_cv_netdb_declares_h_errno
=no
11111 rm -f core conftest.err conftest.
$ac_objext \
11112 conftest
$ac_exeext conftest.
$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11115 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11116 if test $emacs_cv_netdb_declares_h_errno = yes; then
11118 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11122 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11123 # for constant arguments. Useless!
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11125 $as_echo_n "checking for working alloca.h... " >&6; }
11126 if test "${ac_cv_working_alloca_h+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131 #include <alloca.h>
11135 char *p = (char *) alloca (2 * sizeof (int));
11141 if ac_fn_c_try_link
"$LINENO"; then :
11142 ac_cv_working_alloca_h
=yes
11144 ac_cv_working_alloca_h
=no
11146 rm -f core conftest.err conftest.
$ac_objext \
11147 conftest
$ac_exeext conftest.
$ac_ext
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11150 $as_echo "$ac_cv_working_alloca_h" >&6; }
11151 if test $ac_cv_working_alloca_h = yes; then
11153 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11158 $as_echo_n "checking for alloca... " >&6; }
11159 if test "${ac_cv_func_alloca_works+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11165 # define alloca __builtin_alloca
11168 # include <malloc.h>
11169 # define alloca _alloca
11171 # ifdef HAVE_ALLOCA_H
11172 # include <alloca.h>
11177 # ifndef alloca /* predefined by HP cc +Olibcalls */
11188 char *p = (char *) alloca (1);
11194 if ac_fn_c_try_link
"$LINENO"; then :
11195 ac_cv_func_alloca_works
=yes
11197 ac_cv_func_alloca_works
=no
11199 rm -f core conftest.err conftest.
$ac_objext \
11200 conftest
$ac_exeext conftest.
$ac_ext
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11203 $as_echo "$ac_cv_func_alloca_works" >&6; }
11205 if test $ac_cv_func_alloca_works = yes; then
11207 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11210 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11211 # that cause trouble. Some versions do not even contain alloca or
11212 # contain a buggy version. If you still want to use their alloca,
11213 # use ar to extract alloca.o from them instead of compiling alloca.c.
11215 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11217 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11221 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11222 if test "${ac_cv_os_cray+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #if defined CRAY && ! defined CRAY2
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 $EGREP "webecray" >/dev
/null
2>&1; then :
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11244 $as_echo "$ac_cv_os_cray" >&6; }
11245 if test $ac_cv_os_cray = yes; then
11246 for ac_func
in _getb67 GETB67 getb67
; do
11247 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11248 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11249 eval as_val
=\$
$as_ac_var
11250 if test "x$as_val" = x
""yes; then :
11252 cat >>confdefs.h
<<_ACEOF
11253 #define CRAY_STACKSEG_END $ac_func
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11263 $as_echo_n "checking stack direction for C alloca... " >&6; }
11264 if test "${ac_cv_c_stack_direction+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11267 if test "$cross_compiling" = yes; then :
11268 ac_cv_c_stack_direction
=0
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 $ac_includes_default
11274 find_stack_direction ()
11276 static char *addr = 0;
11281 return find_stack_direction ();
11284 return (&dummy > addr) ? 1 : -1;
11290 return find_stack_direction () < 0;
11293 if ac_fn_c_try_run
"$LINENO"; then :
11294 ac_cv_c_stack_direction
=1
11296 ac_cv_c_stack_direction
=-1
11298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11304 $as_echo "$ac_cv_c_stack_direction" >&6; }
11305 cat >>confdefs.h
<<_ACEOF
11306 #define STACK_DIRECTION $ac_cv_c_stack_direction
11313 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11314 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
11317 # fmod, logb, and frexp are found in -lm on most systems.
11318 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11320 $as_echo_n "checking for sqrt in -lm... " >&6; }
11321 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11324 ac_check_lib_save_LIBS
=$LIBS
11326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11344 if ac_fn_c_try_link
"$LINENO"; then :
11345 ac_cv_lib_m_sqrt
=yes
11347 ac_cv_lib_m_sqrt
=no
11349 rm -f core conftest.err conftest.
$ac_objext \
11350 conftest
$ac_exeext conftest.
$ac_ext
11351 LIBS
=$ac_check_lib_save_LIBS
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11354 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11355 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11356 cat >>confdefs.h
<<_ACEOF
11357 #define HAVE_LIBM 1
11365 # Check for mail-locking functions in a "mail" library. Probably this should
11366 # have the same check as for liblockfile below.
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11368 $as_echo_n "checking for maillock in -lmail... " >&6; }
11369 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 ac_check_lib_save_LIBS
=$LIBS
11373 LIBS
="-lmail $LIBS"
11374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11387 return maillock ();
11392 if ac_fn_c_try_link
"$LINENO"; then :
11393 ac_cv_lib_mail_maillock
=yes
11395 ac_cv_lib_mail_maillock
=no
11397 rm -f core conftest.err conftest.
$ac_objext \
11398 conftest
$ac_exeext conftest.
$ac_ext
11399 LIBS
=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11402 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11403 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11409 if test $have_mail = yes; then
11411 LIBS
="$LIBS_MAIL $LIBS"
11413 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11419 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11420 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11423 ac_check_lib_save_LIBS
=$LIBS
11424 LIBS
="-llockfile $LIBS"
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11438 return maillock ();
11443 if ac_fn_c_try_link
"$LINENO"; then :
11444 ac_cv_lib_lockfile_maillock
=yes
11446 ac_cv_lib_lockfile_maillock
=no
11448 rm -f core conftest.err conftest.
$ac_objext \
11449 conftest
$ac_exeext conftest.
$ac_ext
11450 LIBS
=$ac_check_lib_save_LIBS
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11453 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11454 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11460 if test $have_lockfile = yes; then
11461 LIBS_MAIL
=-llockfile
11462 LIBS
="$LIBS_MAIL $LIBS"
11464 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11467 # If we have the shared liblockfile, assume we must use it for mail
11468 # locking (e.g. Debian). If we couldn't link against liblockfile
11469 # (no liblockfile.a installed), ensure that we don't need to.
11470 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11471 set dummy liblockfile.so
; ac_word
=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11477 if test -n "$liblockfile"; then
11478 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11481 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11482 for as_dir
in $as_dummy
11485 test -z "$as_dir" && as_dir
=.
11486 for ac_exec_ext
in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_prog_liblockfile
="yes"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11499 liblockfile
=$ac_cv_prog_liblockfile
11500 if test -n "$liblockfile"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11502 $as_echo "$liblockfile" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11509 if test $ac_cv_prog_liblockfile = yes; then
11510 as_fn_error
"Shared liblockfile found but can't link against it.
11511 This probably means that movemail could lose mail.
11512 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11515 for ac_func
in touchlock
11517 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11518 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11519 cat >>confdefs.h
<<_ACEOF
11520 #define HAVE_TOUCHLOCK 1
11526 for ac_header
in maillock.h
11528 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11529 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11530 cat >>confdefs.h
<<_ACEOF
11531 #define HAVE_MAILLOCK_H 1
11540 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11541 ## interlock access to the mail spool. The alternative is a lock file named
11542 ## /usr/spool/mail/$USER.lock.
11545 aix4-2
) mail_lock
="lockf" ;;
11547 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11549 ## On GNU/Linux systems, both methods are used by various mail programs.
11550 ## I assume most people are using newer mailers that have heard of flock.
11551 ## Change this if you need to.
11552 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11553 ## configure gets the right answers, and that means *NOT* using flock.
11554 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11555 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11556 ## Debian maintainer hasn't provided a clean fix for Emacs.
11557 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11558 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11559 ## correct logic. -- fx
11560 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11561 ## liblockfile is a Free Software replacement for libmail, used on
11562 ## Debian systems and elsewhere. -rfr.
11565 if test $have_mail = yes ||
test $have_lockfile = yes; then
11566 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11572 case "$mail_lock" in
11574 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11578 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11581 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11586 for ac_func
in gethostname getdomainname dup2 \
11587 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11588 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11589 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11590 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11591 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11592 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11593 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11594 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11595 cfmakeraw cfsetspeed isnan copysign __executable_start
11597 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11598 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11599 eval as_val
=\$
$as_ac_var
11600 if test "x$as_val" = x
""yes; then :
11601 cat >>confdefs.h
<<_ACEOF
11602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11609 for ac_header
in sys
/un.h
11611 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11612 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11613 cat >>confdefs.h
<<_ACEOF
11614 #define HAVE_SYS_UN_H 1
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11629 $as_echo_n "checking for working mktime... " >&6; }
11630 if test "${ac_cv_func_working_mktime+set}" = set; then :
11631 $as_echo_n "(cached) " >&6
11633 if test "$cross_compiling" = yes; then :
11634 ac_cv_func_working_mktime
=no
11636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638 /* Test program from Paul Eggert and Tony Leneis. */
11639 #ifdef TIME_WITH_SYS_TIME
11640 # include <sys/time.h>
11643 # ifdef HAVE_SYS_TIME_H
11644 # include <sys/time.h>
11650 #include <limits.h>
11651 #include <stdlib.h>
11653 #ifdef HAVE_UNISTD_H
11654 # include <unistd.h>
11658 # define alarm(X) /* empty */
11661 /* Work around redefinition to rpl_putenv by other config tests. */
11664 static time_t time_t_max;
11665 static time_t time_t_min;
11667 /* Values we'll use to set the TZ environment variable. */
11668 static char *tz_strings[] = {
11669 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11670 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11672 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11674 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11675 Based on a problem report from Andreas Jaeger. */
11677 spring_forward_gap ()
11679 /* glibc (up to about 1998-10-07) failed this test. */
11682 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11683 instead of "TZ=America/Vancouver" in order to detect the bug even
11684 on systems that don't support the Olson extension, or don't have the
11685 full zoneinfo tables installed. */
11686 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11695 return mktime (&tm) != (time_t) -1;
11703 return ! (lt = localtime (&now)) || mktime (lt) == now;
11710 return (mktime_test1 (now)
11711 && mktime_test1 ((time_t) (time_t_max - now))
11712 && mktime_test1 ((time_t) (time_t_min + now)));
11718 /* Based on code from Ariel Faigon. */
11728 return tm.tm_mon == 2 && tm.tm_mday == 31;
11737 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11738 now = mktime (&tm);
11739 if (now != (time_t) -1)
11741 struct tm *lt = localtime (&now);
11743 && lt->tm_year == tm.tm_year
11744 && lt->tm_mon == tm.tm_mon
11745 && lt->tm_mday == tm.tm_mday
11746 && lt->tm_hour == tm.tm_hour
11747 && lt->tm_min == tm.tm_min
11748 && lt->tm_sec == tm.tm_sec
11749 && lt->tm_yday == tm.tm_yday
11750 && lt->tm_wday == tm.tm_wday
11751 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11752 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11761 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11762 ignoring leap seconds. */
11763 unsigned long int answer = 2527315200UL;
11767 tm.tm_year = 2050 - 1900;
11770 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11773 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11774 instead of "TZ=America/Vancouver" in order to detect the bug even
11775 on systems that don't support the Olson extension, or don't have the
11776 full zoneinfo tables installed. */
11777 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11781 /* Check that the result is either a failure, or close enough
11782 to the correct answer that we can assume the discrepancy is
11783 due to leap seconds. */
11784 return (t == (time_t) -1
11785 || (0 < t && answer - 120 <= t && t <= answer + 120));
11794 /* This test makes some buggy mktime implementations loop.
11795 Give up after 60 seconds; a mktime slower than that
11796 isn't worth using anyway. */
11801 t = (time_t_max << 1) + 1;
11802 if (t <= time_t_max)
11806 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11808 delta = time_t_max / 997; /* a suitable prime number */
11809 for (i = 0; i < N_STRINGS; i++)
11812 putenv (tz_strings[i]);
11814 for (t = 0; t <= time_t_max - delta; t += delta)
11815 if (! mktime_test (t))
11817 if (! (mktime_test ((time_t) 1)
11818 && mktime_test ((time_t) (60 * 60))
11819 && mktime_test ((time_t) (60 * 60 * 24))))
11822 for (j = 1; ; j <<= 1)
11823 if (! bigtime_test (j))
11825 else if (INT_MAX / 2 < j)
11827 if (! bigtime_test (INT_MAX))
11830 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11833 if ac_fn_c_try_run
"$LINENO"; then :
11834 ac_cv_func_working_mktime
=yes
11836 ac_cv_func_working_mktime
=no
11838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11844 $as_echo "$ac_cv_func_working_mktime" >&6; }
11845 if test $ac_cv_func_working_mktime = no
; then
11846 case " $LIBOBJS " in
11847 *" mktime.$ac_objext "* ) ;;
11848 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11854 if test "$ac_cv_func_working_mktime" = no
; then
11856 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11860 ac_have_func
=no
# yes means we've found a way to get the load average.
11862 # Make sure getloadavg.c is where it belongs, at configure-time.
11863 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11864 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11868 # Check for getloadavg, but be sure not to touch the cache variable.
11869 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11870 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11875 ) && ac_have_func
=yes
11877 # On HPUX9, an unprivileged user can get load averages through this function.
11878 for ac_func
in pstat_getdynamic
11880 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11881 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11882 cat >>confdefs.h
<<_ACEOF
11883 #define HAVE_PSTAT_GETDYNAMIC 1
11890 # Solaris has libkstat which does not require root.
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11892 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11893 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11896 ac_check_lib_save_LIBS
=$LIBS
11897 LIBS
="-lkstat $LIBS"
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11907 char kstat_open ();
11911 return kstat_open ();
11916 if ac_fn_c_try_link
"$LINENO"; then :
11917 ac_cv_lib_kstat_kstat_open
=yes
11919 ac_cv_lib_kstat_kstat_open
=no
11921 rm -f core conftest.err conftest.
$ac_objext \
11922 conftest
$ac_exeext conftest.
$ac_ext
11923 LIBS
=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11926 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11927 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11928 cat >>confdefs.h
<<_ACEOF
11929 #define HAVE_LIBKSTAT 1
11932 LIBS
="-lkstat $LIBS"
11936 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11938 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11939 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11940 # to get the right answer into the cache.
11941 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11942 if test $ac_have_func = no
; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11944 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11945 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11948 ac_check_lib_save_LIBS
=$LIBS
11950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11963 return elf_begin ();
11968 if ac_fn_c_try_link
"$LINENO"; then :
11969 ac_cv_lib_elf_elf_begin
=yes
11971 ac_cv_lib_elf_elf_begin
=no
11973 rm -f core conftest.err conftest.
$ac_objext \
11974 conftest
$ac_exeext conftest.
$ac_ext
11975 LIBS
=$ac_check_lib_save_LIBS
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11978 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11979 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11984 if test $ac_have_func = no
; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11986 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11987 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_check_lib_save_LIBS
=$LIBS
11992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12005 return kvm_open ();
12010 if ac_fn_c_try_link
"$LINENO"; then :
12011 ac_cv_lib_kvm_kvm_open
=yes
12013 ac_cv_lib_kvm_kvm_open
=no
12015 rm -f core conftest.err conftest.
$ac_objext \
12016 conftest
$ac_exeext conftest.
$ac_ext
12017 LIBS
=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12020 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12021 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12025 # Check for the 4.4BSD definition of getloadavg.
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12027 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12028 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12031 ac_check_lib_save_LIBS
=$LIBS
12032 LIBS
="-lutil $LIBS"
12033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12042 char getloadavg ();
12046 return getloadavg ();
12051 if ac_fn_c_try_link
"$LINENO"; then :
12052 ac_cv_lib_util_getloadavg
=yes
12054 ac_cv_lib_util_getloadavg
=no
12056 rm -f core conftest.err conftest.
$ac_objext \
12057 conftest
$ac_exeext conftest.
$ac_ext
12058 LIBS
=$ac_check_lib_save_LIBS
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12061 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12062 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12063 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12068 if test $ac_have_func = no
; then
12069 # There is a commonly available library for RS/6000 AIX.
12070 # Since it is not a standard part of AIX, it might be installed locally.
12071 ac_getloadavg_LIBS
=$LIBS
12072 LIBS
="-L/usr/local/lib $LIBS"
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12074 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12075 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12078 ac_check_lib_save_LIBS
=$LIBS
12079 LIBS
="-lgetloadavg $LIBS"
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12089 char getloadavg ();
12093 return getloadavg ();
12098 if ac_fn_c_try_link
"$LINENO"; then :
12099 ac_cv_lib_getloadavg_getloadavg
=yes
12101 ac_cv_lib_getloadavg_getloadavg
=no
12103 rm -f core conftest.err conftest.
$ac_objext \
12104 conftest
$ac_exeext conftest.
$ac_ext
12105 LIBS
=$ac_check_lib_save_LIBS
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12108 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12109 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12110 LIBS
="-lgetloadavg $LIBS"
12112 LIBS
=$ac_getloadavg_LIBS
12117 # Make sure it is really in the library, if we think we found it,
12118 # otherwise set up the replacement function.
12119 for ac_func
in getloadavg
12121 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12122 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12123 cat >>confdefs.h
<<_ACEOF
12124 #define HAVE_GETLOADAVG 1
12128 case " $LIBOBJS " in
12129 *" getloadavg.$ac_objext "* ) ;;
12130 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12135 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12137 # Figure out what our getloadavg.c needs.
12139 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12140 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12143 $as_echo "#define DGUX 1" >>confdefs.h
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12146 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12147 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12150 ac_check_lib_save_LIBS
=$LIBS
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12161 char dg_sys_info ();
12165 return dg_sys_info ();
12170 if ac_fn_c_try_link
"$LINENO"; then :
12171 ac_cv_lib_dgc_dg_sys_info
=yes
12173 ac_cv_lib_dgc_dg_sys_info
=no
12175 rm -f core conftest.err conftest.
$ac_objext \
12176 conftest
$ac_exeext conftest.
$ac_ext
12177 LIBS
=$ac_check_lib_save_LIBS
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12180 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12181 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12182 cat >>confdefs.h
<<_ACEOF
12183 #define HAVE_LIBDGC 1
12194 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12195 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12200 for ac_func
in setlocale
12202 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12203 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12204 cat >>confdefs.h
<<_ACEOF
12205 #define HAVE_SETLOCALE 1
12212 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12213 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12214 # Irix 4.0.5F has the header but not the library.
12215 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12218 $as_echo "#define SVR4 1" >>confdefs.h
12222 if test $ac_have_func = no
; then
12223 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12224 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12227 $as_echo "#define UMAX 1" >>confdefs.h
12230 $as_echo "#define UMAX4_3 1" >>confdefs.h
12237 if test $ac_have_func = no
; then
12238 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12239 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12240 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12247 if test $ac_have_func = no
; then
12248 for ac_header
in mach
/mach.h
12250 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12251 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12252 cat >>confdefs.h
<<_ACEOF
12253 #define HAVE_MACH_MACH_H 1
12262 for ac_header
in nlist.h
12264 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12265 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12266 cat >>confdefs.h
<<_ACEOF
12267 #define HAVE_NLIST_H 1
12269 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12271 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12273 cat >>confdefs.h
<<_ACEOF
12274 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12278 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12291 # Some definitions of getloadavg require that the program be installed setgid.
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12293 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12294 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12300 #ifdef LDAV_PRIVILEGED
12301 Yowza Am I SETGID yet
12304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12305 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12306 ac_cv_func_getloadavg_setgid
=yes
12308 ac_cv_func_getloadavg_setgid
=no
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12314 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12315 if test $ac_cv_func_getloadavg_setgid = yes; then
12318 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12324 if test $ac_cv_func_getloadavg_setgid = yes; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12326 $as_echo_n "checking group of /dev/kmem... " >&6; }
12327 if test "${ac_cv_group_kmem+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12331 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12332 # If we got an error (system does not support symlinks), try without -L.
12333 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12334 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12335 | sed -ne 's/[ ][ ]*/ /g;
12336 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12341 $as_echo "$ac_cv_group_kmem" >&6; }
12342 KMEM_GROUP
=$ac_cv_group_kmem
12344 if test "x$ac_save_LIBS" = x
; then
12345 GETLOADAVG_LIBS
=$LIBS
12347 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12354 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12355 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <sys/types.h> /* for off_t */
12366 int (*fp) (FILE *, off_t, int) = fseeko;
12367 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12372 if ac_fn_c_try_link
"$LINENO"; then :
12373 ac_cv_sys_largefile_source
=no
; break
12375 rm -f core conftest.err conftest.
$ac_objext \
12376 conftest
$ac_exeext conftest.
$ac_ext
12377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #define _LARGEFILE_SOURCE 1
12380 #include <sys/types.h> /* for off_t */
12385 int (*fp) (FILE *, off_t, int) = fseeko;
12386 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12391 if ac_fn_c_try_link
"$LINENO"; then :
12392 ac_cv_sys_largefile_source
=1; break
12394 rm -f core conftest.err conftest.
$ac_objext \
12395 conftest
$ac_exeext conftest.
$ac_ext
12396 ac_cv_sys_largefile_source
=unknown
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12401 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12402 case $ac_cv_sys_largefile_source in #(
12405 cat >>confdefs.h
<<_ACEOF
12406 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12412 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12413 # in glibc 2.1.3, but that breaks too many other things.
12414 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12415 if test $ac_cv_sys_largefile_source != unknown
; then
12417 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12422 # Configure getopt.
12423 # getopt.m4 serial 10
12425 # The getopt module assume you want GNU getopt, with getopt_long etc,
12426 # rather than vanilla POSIX getopt. This means your your code should
12427 # always include <getopt.h> for the getopt prototypes.
12439 # Prerequisites of lib/getopt*.
12445 for ac_header
in getopt.h
12447 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12448 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12449 cat >>confdefs.h
<<_ACEOF
12450 #define HAVE_GETOPT_H 1
12459 if test -z "$GETOPT_H"; then
12460 for ac_func
in getopt_long_only
12462 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12463 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_GETOPT_LONG_ONLY 1
12475 if test -z "$GETOPT_H"; then
12476 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12478 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12484 if test -z "$GETOPT_H"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12486 $as_echo_n "checking for working GNU getopt function... " >&6; }
12487 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12490 if test "$cross_compiling" = yes; then :
12491 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12493 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12494 gl_cv_func_gnu_getopt
=no
12496 gl_cv_func_gnu_getopt
=yes
12500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502 #include <getopt.h>
12508 myargv[0] = "conftest";
12511 return getopt (2, myargv, "+a") != '?';
12517 if ac_fn_c_try_run
"$LINENO"; then :
12518 gl_cv_func_gnu_getopt
=yes
12520 gl_cv_func_gnu_getopt
=no
12522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12528 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12529 if test "$gl_cv_func_gnu_getopt" = "no"; then
12536 if test -n "$GETOPT_H"; then :
12541 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12546 GETOPTOBJS
='getopt.o getopt1.o'
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12553 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12554 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12557 # Use it with a single arg.
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 $ac_includes_default
12569 if ac_fn_c_try_compile
"$LINENO"; then :
12570 ac_cv_func_getpgrp_void
=no
12572 ac_cv_func_getpgrp_void
=yes
12574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12578 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12579 if test $ac_cv_func_getpgrp_void = yes; then
12581 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12586 for ac_func
in strftime
12588 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12589 if test "x$ac_cv_func_strftime" = x
""yes; then :
12590 cat >>confdefs.h
<<_ACEOF
12591 #define HAVE_STRFTIME 1
12595 # strftime is in -lintl on SCO UNIX.
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12597 $as_echo_n "checking for strftime in -lintl... " >&6; }
12598 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12601 ac_check_lib_save_LIBS
=$LIBS
12602 LIBS
="-lintl $LIBS"
12603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12616 return strftime ();
12621 if ac_fn_c_try_link
"$LINENO"; then :
12622 ac_cv_lib_intl_strftime
=yes
12624 ac_cv_lib_intl_strftime
=no
12626 rm -f core conftest.err conftest.
$ac_objext \
12627 conftest
$ac_exeext conftest.
$ac_ext
12628 LIBS
=$ac_check_lib_save_LIBS
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12631 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12632 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12633 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12635 LIBS
="-lintl $LIBS"
12643 for ac_func
in grantpt
12645 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12646 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12647 cat >>confdefs.h
<<_ACEOF
12648 #define HAVE_GRANTPT 1
12655 # PTY-related GNU extensions.
12656 for ac_func
in getpt
12658 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12659 if test "x$ac_cv_func_getpt" = x
""yes; then :
12660 cat >>confdefs.h
<<_ACEOF
12661 #define HAVE_GETPT 1
12668 # Check this now, so that we will NOT find the above functions in ncurses.
12669 # That is because we have not set up to link ncurses in lib-src.
12670 # It's better to believe a function is not available
12671 # than to expect to find it in ncurses.
12672 # Also we need tputs and friends to be able to build at all.
12673 have_tputs_et_al
=true
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12675 $as_echo_n "checking for library containing tputs... " >&6; }
12676 if test "${ac_cv_search_tputs+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_func_search_save_LIBS
=$LIBS
12680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12698 for ac_lib
in '' ncurses terminfo termcap
; do
12699 if test -z "$ac_lib"; then
12700 ac_res
="none required"
12703 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12705 if ac_fn_c_try_link
"$LINENO"; then :
12706 ac_cv_search_tputs
=$ac_res
12708 rm -f core conftest.err conftest.
$ac_objext \
12710 if test "${ac_cv_search_tputs+set}" = set; then :
12714 if test "${ac_cv_search_tputs+set}" = set; then :
12717 ac_cv_search_tputs
=no
12719 rm conftest.
$ac_ext
12720 LIBS
=$ac_func_search_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12723 $as_echo "$ac_cv_search_tputs" >&6; }
12724 ac_res
=$ac_cv_search_tputs
12725 if test "$ac_res" != no
; then :
12726 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12729 have_tputs_et_al
=false
12732 if test "$have_tputs_et_al" != true
; then
12733 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12734 Maybe some development libraries/packages are missing? Try installing
12735 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12737 # Must define this when any termcap library is found.
12739 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12741 ## FIXME This was the cpp logic, but I am not sure it is right.
12742 ## The above test has not necessarily found libncurses.
12743 HAVE_LIBNCURSES
=yes
12745 ## Use terminfo instead of termcap?
12746 ## Note only system files NOT using terminfo are:
12747 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12748 ## darwin|gnu without ncurses.
12752 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12753 ## hpux10-20: Use the system provided termcap(3) library.
12754 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12755 ## is necessary. Otherwise Emacs dumps core when run -nw.
12756 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
12758 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12759 ## The ncurses library has been moved out of the System framework in
12760 ## Mac OS X 10.2. So if configure detects it, set the command-line
12761 ## option to use it.
12763 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12764 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12766 LIBS_TERMCAP
="-lncurses"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12772 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12773 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778 #include <osreldate.h>
12782 #if __FreeBSD_version < 400000
12790 if ac_fn_c_try_link
"$LINENO"; then :
12791 emacs_cv_freebsd_terminfo
=yes
12793 emacs_cv_freebsd_terminfo
=no
12795 rm -f core conftest.err conftest.
$ac_objext \
12796 conftest
$ac_exeext conftest.
$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12801 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12803 if test $emacs_cv_freebsd_terminfo = yes; then
12805 LIBS_TERMCAP
="-lncurses"
12807 LIBS_TERMCAP
="-ltermcap"
12812 if test $ac_cv_search_tputs = -lterminfo; then
12814 LIBS_TERMCAP
="-lterminfo"
12816 LIBS_TERMCAP
="-ltermcap"
12823 ## hpux: Make sure we get select from libc rather than from libcurses
12824 ## because libcurses on HPUX 10.10 has a broken version of select.
12825 ## We used to use -lc -lcurses, but this may be cleaner.
12826 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
12828 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
12830 ## Must use system termcap, if we use any termcap. It does special things.
12831 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
12834 TERMCAP_OBJ
=tparam.o
12835 if test $TERMINFO = yes; then
12837 $as_echo "#define TERMINFO 1" >>confdefs.h
12840 ## Default used to be -ltermcap. Add a case above if need something else.
12841 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
12843 TERMCAP_OBJ
=terminfo.o
12849 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 #include <netinet/in.h>
12854 #include <arpa/nameser.h>
12855 #include <resolv.h>
12864 if ac_fn_c_try_link
"$LINENO"; then :
12869 rm -f core conftest.err conftest.
$ac_objext \
12870 conftest
$ac_exeext conftest.
$ac_ext
12871 if test "$have_res_init" = no
; then
12873 LIBS
="$LIBS -lresolv"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12875 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #include <netinet/in.h>
12879 #include <arpa/nameser.h>
12880 #include <resolv.h>
12889 if ac_fn_c_try_link
"$LINENO"; then :
12894 rm -f core conftest.err conftest.
$ac_objext \
12895 conftest
$ac_exeext conftest.
$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12897 $as_echo "$have_res_init" >&6; }
12898 if test "$have_res_init" = yes ; then
12904 if test "$have_res_init" = yes; then
12906 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12910 # Do we need the Hesiod library to provide the support routines?
12912 if test "$with_hesiod" != no
; then
12913 # Don't set $LIBS here -- see comments above. FIXME which comments?
12914 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12915 if test "x$ac_cv_func_res_send" = x
""yes; then :
12918 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12919 if test "x$ac_cv_func___res_send" = x
""yes; then :
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12923 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12924 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12927 ac_check_lib_save_LIBS
=$LIBS
12928 LIBS
="-lresolv $LIBS"
12929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12942 return res_send ();
12947 if ac_fn_c_try_link
"$LINENO"; then :
12948 ac_cv_lib_resolv_res_send
=yes
12950 ac_cv_lib_resolv_res_send
=no
12952 rm -f core conftest.err conftest.
$ac_objext \
12953 conftest
$ac_exeext conftest.
$ac_ext
12954 LIBS
=$ac_check_lib_save_LIBS
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12957 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12958 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12962 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12963 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12966 ac_check_lib_save_LIBS
=$LIBS
12967 LIBS
="-lresolv $LIBS"
12968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12971 /* Override any GCC internal prototype to avoid an error.
12972 Use char because int might match the return type of a GCC
12973 builtin and then its argument prototype would still apply. */
12977 char __res_send ();
12981 return __res_send ();
12986 if ac_fn_c_try_link
"$LINENO"; then :
12987 ac_cv_lib_resolv___res_send
=yes
12989 ac_cv_lib_resolv___res_send
=no
12991 rm -f core conftest.err conftest.
$ac_objext \
12992 conftest
$ac_exeext conftest.
$ac_ext
12993 LIBS
=$ac_check_lib_save_LIBS
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12996 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12997 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13007 if test "$resolv" = yes ; then
13012 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13013 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13017 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13018 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13021 ac_check_lib_save_LIBS
=$LIBS
13022 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char hes_getmailhost ();
13036 return hes_getmailhost ();
13041 if ac_fn_c_try_link
"$LINENO"; then :
13042 ac_cv_lib_hesiod_hes_getmailhost
=yes
13044 ac_cv_lib_hesiod_hes_getmailhost
=no
13046 rm -f core conftest.err conftest.
$ac_objext \
13047 conftest
$ac_exeext conftest.
$ac_ext
13048 LIBS
=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13051 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13052 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13061 if test x
"$hesiod" = xyes
; then
13063 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13070 # Do we need libresolv (due to res_init or Hesiod)?
13071 if test "$resolv" = yes ; then
13073 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13081 # These tell us which Kerberos-related libraries to use.
13088 if test "${with_kerberos}" != no
; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13090 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13091 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13094 ac_check_lib_save_LIBS
=$LIBS
13095 LIBS
="-lcom_err $LIBS"
13096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13114 if ac_fn_c_try_link
"$LINENO"; then :
13115 ac_cv_lib_com_err_com_err
=yes
13117 ac_cv_lib_com_err_com_err
=no
13119 rm -f core conftest.err conftest.
$ac_objext \
13120 conftest
$ac_exeext conftest.
$ac_ext
13121 LIBS
=$ac_check_lib_save_LIBS
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13124 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13125 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13131 if test $have_com_err = yes; then
13132 COM_ERRLIB
=-lcom_err
13133 LIBS
="$COM_ERRLIB $LIBS"
13135 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13139 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13140 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13143 ac_check_lib_save_LIBS
=$LIBS
13144 LIBS
="-lcrypto $LIBS"
13145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char mit_des_cbc_encrypt ();
13158 return mit_des_cbc_encrypt ();
13163 if ac_fn_c_try_link
"$LINENO"; then :
13164 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13166 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13168 rm -f core conftest.err conftest.
$ac_objext \
13169 conftest
$ac_exeext conftest.
$ac_ext
13170 LIBS
=$ac_check_lib_save_LIBS
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13173 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13174 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13180 if test $have_crypto = yes; then
13182 LIBS
="$CRYPTOLIB $LIBS"
13184 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13188 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13189 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13193 LIBS
="-lk5crypto $LIBS"
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13203 char mit_des_cbc_encrypt ();
13207 return mit_des_cbc_encrypt ();
13212 if ac_fn_c_try_link
"$LINENO"; then :
13213 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13215 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13217 rm -f core conftest.err conftest.
$ac_objext \
13218 conftest
$ac_exeext conftest.
$ac_ext
13219 LIBS
=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13222 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13223 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13229 if test $have_k5crypto = yes; then
13230 CRYPTOLIB
=-lk5crypto
13231 LIBS
="$CRYPTOLIB $LIBS"
13233 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13237 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13238 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 ac_check_lib_save_LIBS
=$LIBS
13242 LIBS
="-lkrb5 $LIBS"
13243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13252 char krb5_init_context ();
13256 return krb5_init_context ();
13261 if ac_fn_c_try_link
"$LINENO"; then :
13262 ac_cv_lib_krb5_krb5_init_context
=yes
13264 ac_cv_lib_krb5_krb5_init_context
=no
13266 rm -f core conftest.err conftest.
$ac_objext \
13267 conftest
$ac_exeext conftest.
$ac_ext
13268 LIBS
=$ac_check_lib_save_LIBS
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13271 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13272 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13278 if test $have_krb5=yes; then
13280 LIBS
="$KRB5LIB $LIBS"
13282 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13285 if test "${with_kerberos5}" = no
; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13287 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13288 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13291 ac_check_lib_save_LIBS
=$LIBS
13292 LIBS
="-ldes425 $LIBS"
13293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13302 char des_cbc_encrypt ();
13306 return des_cbc_encrypt ();
13311 if ac_fn_c_try_link
"$LINENO"; then :
13312 ac_cv_lib_des425_des_cbc_encrypt
=yes
13314 ac_cv_lib_des425_des_cbc_encrypt
=no
13316 rm -f core conftest.err conftest.
$ac_objext \
13317 conftest
$ac_exeext conftest.
$ac_ext
13318 LIBS
=$ac_check_lib_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13321 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13322 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13328 if test $have_des425 = yes; then
13330 LIBS
="$DESLIB $LIBS"
13332 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13336 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13337 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13340 ac_check_lib_save_LIBS
=$LIBS
13342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13351 char des_cbc_encrypt ();
13355 return des_cbc_encrypt ();
13360 if ac_fn_c_try_link
"$LINENO"; then :
13361 ac_cv_lib_des_des_cbc_encrypt
=yes
13363 ac_cv_lib_des_des_cbc_encrypt
=no
13365 rm -f core conftest.err conftest.
$ac_objext \
13366 conftest
$ac_exeext conftest.
$ac_ext
13367 LIBS
=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13370 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13371 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13377 if test $have_des = yes; then
13379 LIBS
="$DESLIB $LIBS"
13381 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13386 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13387 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13390 ac_check_lib_save_LIBS
=$LIBS
13391 LIBS
="-lkrb4 $LIBS"
13392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13395 /* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13401 char krb_get_cred ();
13405 return krb_get_cred ();
13410 if ac_fn_c_try_link
"$LINENO"; then :
13411 ac_cv_lib_krb4_krb_get_cred
=yes
13413 ac_cv_lib_krb4_krb_get_cred
=no
13415 rm -f core conftest.err conftest.
$ac_objext \
13416 conftest
$ac_exeext conftest.
$ac_ext
13417 LIBS
=$ac_check_lib_save_LIBS
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13421 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13427 if test $have_krb4 = yes; then
13429 LIBS
="$KRB4LIB $LIBS"
13431 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13435 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13436 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13439 ac_check_lib_save_LIBS
=$LIBS
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13450 char krb_get_cred ();
13454 return krb_get_cred ();
13459 if ac_fn_c_try_link
"$LINENO"; then :
13460 ac_cv_lib_krb_krb_get_cred
=yes
13462 ac_cv_lib_krb_krb_get_cred
=no
13464 rm -f core conftest.err conftest.
$ac_objext \
13465 conftest
$ac_exeext conftest.
$ac_ext
13466 LIBS
=$ac_check_lib_save_LIBS
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13469 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13470 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13476 if test $have_krb = yes; then
13478 LIBS
="$KRB4LIB $LIBS"
13480 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13486 if test "${with_kerberos5}" != no
; then
13487 for ac_header
in krb5.h
13489 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13491 cat >>confdefs.h
<<_ACEOF
13492 #define HAVE_KRB5_H 1
13494 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13496 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13498 cat >>confdefs.h
<<_ACEOF
13499 #define HAVE_KRB5_ERROR_TEXT 1
13504 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13506 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13508 cat >>confdefs.h
<<_ACEOF
13509 #define HAVE_KRB5_ERROR_E_TEXT 1
13520 for ac_header
in des.h
13522 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13523 if test "x$ac_cv_header_des_h" = x
""yes; then :
13524 cat >>confdefs.h
<<_ACEOF
13525 #define HAVE_DES_H 1
13529 for ac_header
in kerberosIV
/des.h
13531 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13532 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13533 cat >>confdefs.h
<<_ACEOF
13534 #define HAVE_KERBEROSIV_DES_H 1
13538 for ac_header
in kerberos
/des.h
13540 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13541 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13542 cat >>confdefs.h
<<_ACEOF
13543 #define HAVE_KERBEROS_DES_H 1
13558 for ac_header
in krb.h
13560 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13561 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_KRB_H 1
13567 for ac_header
in kerberosIV
/krb.h
13569 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13570 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13571 cat >>confdefs.h
<<_ACEOF
13572 #define HAVE_KERBEROSIV_KRB_H 1
13576 for ac_header
in kerberos
/krb.h
13578 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13579 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13580 cat >>confdefs.h
<<_ACEOF
13581 #define HAVE_KERBEROS_KRB_H 1
13597 for ac_header
in com_err.h
13599 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13601 cat >>confdefs.h
<<_ACEOF
13602 #define HAVE_COM_ERR_H 1
13617 # Solaris requires -lintl if you want strerror (which calls dgettext)
13618 # to return localized messages.
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13620 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13621 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13624 ac_check_lib_save_LIBS
=$LIBS
13625 LIBS
="-lintl $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. */
13639 return dgettext ();
13644 if ac_fn_c_try_link
"$LINENO"; then :
13645 ac_cv_lib_intl_dgettext
=yes
13647 ac_cv_lib_intl_dgettext
=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_intl_dgettext" >&5
13654 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13655 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13656 cat >>confdefs.h
<<_ACEOF
13657 #define HAVE_LIBINTL 1
13660 LIBS
="-lintl $LIBS"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13666 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13667 if test "${emacs_cv_localtime_cache+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13670 if test x
$ac_cv_func_tzset = xyes
; then
13671 if test "$cross_compiling" = yes; then :
13672 # If we have tzset, assume the worst when cross-compiling.
13673 emacs_cv_localtime_cache
=yes
13675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 extern char **environ;
13682 for (to = from = environ; (*to = *from); from++)
13683 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13686 char TZ_GMT0[] = "TZ=GMT0";
13687 char TZ_PST8[] = "TZ=PST8";
13690 time_t now = time ((time_t *) 0);
13691 int hour_GMT0, hour_unset;
13692 if (putenv (TZ_GMT0) != 0)
13694 hour_GMT0 = localtime (&now)->tm_hour;
13696 hour_unset = localtime (&now)->tm_hour;
13697 if (putenv (TZ_PST8) != 0)
13699 if (localtime (&now)->tm_hour == hour_GMT0)
13702 if (localtime (&now)->tm_hour != hour_unset)
13707 if ac_fn_c_try_run
"$LINENO"; then :
13708 emacs_cv_localtime_cache
=no
13710 emacs_cv_localtime_cache
=yes
13712 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13713 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13717 # If we lack tzset, report that localtime does not cache TZ,
13718 # since we can't invalidate the cache if we don't have tzset.
13719 emacs_cv_localtime_cache
=no
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13723 $as_echo "$emacs_cv_localtime_cache" >&6; }
13724 if test $emacs_cv_localtime_cache = yes; then
13726 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13730 if test "x$HAVE_TIMEVAL" = xyes
; then
13731 for ac_func
in gettimeofday
13733 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13734 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13735 cat >>confdefs.h
<<_ACEOF
13736 #define HAVE_GETTIMEOFDAY 1
13742 if test $ac_cv_func_gettimeofday = yes; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13744 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13745 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13751 #ifdef TIME_WITH_SYS_TIME
13752 #include <sys/time.h>
13755 #ifdef HAVE_SYS_TIME_H
13756 #include <sys/time.h>
13764 struct timeval time;
13765 gettimeofday (&time, 0);
13770 if ac_fn_c_try_compile
"$LINENO"; then :
13771 emacs_cv_gettimeofday_two_arguments
=yes
13773 emacs_cv_gettimeofday_two_arguments
=no
13775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13778 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13779 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13781 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13788 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13789 if test "x$ac_cv_func_socket" = x
""yes; then :
13795 if test $ok_so_far = yes; then
13796 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13797 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13805 if test $ok_so_far = yes; then
13806 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13807 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13815 if test $ok_so_far = yes; then
13817 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13821 for ac_header
in sys
/ioctl.h
13823 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13824 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13825 cat >>confdefs.h
<<_ACEOF
13826 #define HAVE_SYS_IOCTL_H 1
13834 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13836 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13841 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13842 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13846 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13853 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13854 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13858 cat >>confdefs.h
<<_ACEOF
13864 for ac_header
in vfork.h
13866 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13867 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13868 cat >>confdefs.h
<<_ACEOF
13869 #define HAVE_VFORK_H 1
13876 for ac_func
in fork vfork
13878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13880 eval as_val
=\$
$as_ac_var
13881 if test "x$as_val" = x
""yes; then :
13882 cat >>confdefs.h
<<_ACEOF
13883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13889 if test "x$ac_cv_func_fork" = xyes
; then
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13891 $as_echo_n "checking for working fork... " >&6; }
13892 if test "${ac_cv_func_fork_works+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13895 if test "$cross_compiling" = yes; then :
13896 ac_cv_func_fork_works
=cross
13898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 $ac_includes_default
13905 /* By Ruediger Kuhlmann. */
13906 return fork () < 0;
13912 if ac_fn_c_try_run
"$LINENO"; then :
13913 ac_cv_func_fork_works
=yes
13915 ac_cv_func_fork_works
=no
13917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13923 $as_echo "$ac_cv_func_fork_works" >&6; }
13926 ac_cv_func_fork_works
=$ac_cv_func_fork
13928 if test "x$ac_cv_func_fork_works" = xcross
; then
13930 *-*-amigaos* |
*-*-msdosdjgpp*)
13931 # Override, as these systems have only a dummy fork() stub
13932 ac_cv_func_fork_works
=no
13935 ac_cv_func_fork_works
=yes
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13939 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13941 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13942 if test "x$ac_cv_func_vfork" = xyes
; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13944 $as_echo_n "checking for working vfork... " >&6; }
13945 if test "${ac_cv_func_vfork_works+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13948 if test "$cross_compiling" = yes; then :
13949 ac_cv_func_vfork_works
=cross
13951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953 /* Thanks to Paul Eggert for this test. */
13954 $ac_includes_default
13955 #include <sys/wait.h>
13956 #ifdef HAVE_VFORK_H
13957 # include <vfork.h>
13959 /* On some sparc systems, changes by the child to local and incoming
13960 argument registers are propagated back to the parent. The compiler
13961 is told about this with #include <vfork.h>, but some compilers
13962 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13963 static variable whose address is put into a register that is
13964 clobbered by the vfork. */
13967 sparc_address_test (int arg)
13969 sparc_address_test (arg) int arg;
13972 static pid_t child;
13990 pid_t parent = getpid ();
13993 sparc_address_test (0);
13998 /* Here is another test for sparc vfork register problems. This
13999 test uses lots of local variables, at least as many local
14000 variables as main has allocated so far including compiler
14001 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14002 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14003 reuse the register of parent for one of the local variables,
14004 since it will think that parent can't possibly be used any more
14005 in this routine. Assigning to the local variable will thus
14006 munge parent in the parent process. */
14008 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14009 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14010 /* Convince the compiler that p..p7 are live; otherwise, it might
14011 use the same hardware register for all 8 local variables. */
14012 if (p != p1 || p != p2 || p != p3 || p != p4
14013 || p != p5 || p != p6 || p != p7)
14016 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14017 from child file descriptors. If the child closes a descriptor
14018 before it execs or exits, this munges the parent's descriptor
14019 as well. Test for this by closing stdout in the child. */
14020 _exit(close(fileno(stdout)) != 0);
14025 while (wait(&status) != child)
14028 /* Was there some problem with vforking? */
14031 /* Did the child fail? (This shouldn't happen.) */
14034 /* Did the vfork/compiler bug occur? */
14035 || parent != getpid()
14037 /* Did the file descriptor bug occur? */
14038 || fstat(fileno(stdout), &st) != 0
14043 if ac_fn_c_try_run
"$LINENO"; then :
14044 ac_cv_func_vfork_works
=yes
14046 ac_cv_func_vfork_works
=no
14048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14054 $as_echo "$ac_cv_func_vfork_works" >&6; }
14057 if test "x$ac_cv_func_fork_works" = xcross
; then
14058 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14060 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14063 if test "x$ac_cv_func_vfork_works" = xyes
; then
14065 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14069 $as_echo "#define vfork fork" >>confdefs.h
14072 if test "x$ac_cv_func_fork_works" = xyes
; then
14074 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14080 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14081 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 #include <langinfo.h>
14090 char* cs = nl_langinfo(CODESET);
14095 if ac_fn_c_try_link
"$LINENO"; then :
14096 emacs_cv_langinfo_codeset
=yes
14098 emacs_cv_langinfo_codeset
=no
14100 rm -f core conftest.err conftest.
$ac_objext \
14101 conftest
$ac_exeext conftest.
$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14105 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14106 if test $emacs_cv_langinfo_codeset = yes; then
14108 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14112 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14113 if test "x$ac_cv_type_size_t" = x
""yes; then :
14115 cat >>confdefs.h
<<_ACEOF
14116 #define HAVE_SIZE_T 1
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14124 $as_echo_n "checking for mbstate_t... " >&6; }
14125 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 $ac_includes_default
14131 # include <wchar.h>
14135 mbstate_t x; return sizeof x;
14140 if ac_fn_c_try_compile
"$LINENO"; then :
14141 ac_cv_type_mbstate_t
=yes
14143 ac_cv_type_mbstate_t
=no
14145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14148 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14149 if test $ac_cv_type_mbstate_t = yes; then
14151 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14155 $as_echo "#define mbstate_t int" >>confdefs.h
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14160 $as_echo_n "checking for C restrict keyword... " >&6; }
14161 if test "${emacs_cv_c_restrict+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 void fred (int *restrict x);
14175 if ac_fn_c_try_compile
"$LINENO"; then :
14176 emacs_cv_c_restrict
=yes
14178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 void fred (int *__restrict x);
14189 if ac_fn_c_try_compile
"$LINENO"; then :
14190 emacs_cv_c_restrict
=__restrict
14192 emacs_cv_c_restrict
=no
14194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14199 $as_echo "$emacs_cv_c_restrict" >&6; }
14200 case "$emacs_cv_c_restrict" in
14201 yes) emacs_restrict
=restrict
;;
14202 no
) emacs_restrict
="";;
14203 *) emacs_restrict
="$emacs_cv_c_restrict";;
14205 if test "$emacs_restrict" != __restrict
; then
14207 cat >>confdefs.h
<<_ACEOF
14208 #define __restrict $emacs_restrict
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14214 $as_echo_n "checking for C restricted array declarations... " >&6; }
14215 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 void fred (int x[__restrict]);
14229 if ac_fn_c_try_compile
"$LINENO"; then :
14230 emacs_cv_c_restrict_arr
=yes
14232 emacs_cv_c_restrict_arr
=no
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14237 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14238 if test "$emacs_cv_c_restrict_arr" = yes; then
14240 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14246 # Set up the CFLAGS for real compilation, so we can substitute it.
14247 CFLAGS
="$REAL_CFLAGS"
14248 CPPFLAGS
="$REAL_CPPFLAGS"
14250 ## Hack to detect a buggy GCC version.
14251 if test "x$GCC" = xyes \
14252 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14253 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14254 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14255 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14258 #### Find out which version of Emacs this is.
14259 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14260 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14261 if test x
"${version}" = x
; then
14262 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14264 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14266 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14269 ### Specify what sort of things we'll be editing into Makefile and config.h.
14270 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14294 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14295 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14296 ## end of LIBX_BASE, but nothing ever set it.
14301 ## Used in lwlib/Makefile.in.
14314 cat >>confdefs.h <<_ACEOF
14315 #define EMACS_CONFIGURATION "${canonical}"
14319 cat >>confdefs.h <<_ACEOF
14320 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14324 cat >>confdefs.h <<_ACEOF
14325 #define config_machfile "${machfile}"
14329 cat >>confdefs.h <<_ACEOF
14330 #define config_opsysfile "${opsysfile}"
14337 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14339 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14342 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14344 if test "$HAVE_XFT" = "yes"; then
14345 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14346 elif test "$HAVE_FREETYPE" = "yes"; then
14347 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14357 if test "${USE_X_TOOLKIT}" != "none" ; then
14358 WIDGET_OBJ
=widget.o
14360 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14362 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14364 $as_echo "#define USE_LUCID 1" >>confdefs.h
14366 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14368 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14373 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14374 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14378 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14379 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14380 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14384 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14385 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14388 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14394 case "$USE_X_TOOLKIT" in
14395 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14396 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14397 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14401 if test "$USE_X_TOOLKIT" = "none"; then
14402 LIBXT_OTHER
="\$(LIBXSM)"
14403 OLDXMENU_TARGET
="really-oldXMenu"
14405 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14406 OLDXMENU_TARGET
="really-lwlib"
14410 ## The X Menu stuff is present in the X10 distribution, but missing
14411 ## from X11. If we have X10, just use the installed library;
14412 ## otherwise, use our own copy.
14413 if test "${HAVE_X11}" = "yes" ; then
14415 $as_echo "#define HAVE_X11 1" >>confdefs.h
14418 if test "$USE_X_TOOLKIT" = "none"; then
14419 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
14421 OLDXMENU
="\${lwlibdir}liblw.a"
14423 LIBXMENU
="\$(OLDXMENU)"
14424 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14425 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14427 ## For a syntactically valid Makefile; not actually used for anything.
14428 ## See comments in src/Makefile.in.
14430 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14431 if test "${HAVE_X_WINDOWS}" = "yes"; then
14440 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14453 if test "${HAVE_MENUS}" = "yes" ; then
14455 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14459 if test "${GNU_MALLOC}" = "yes" ; then
14461 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14466 if test "${REL_ALLOC}" = "yes" ; then
14468 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14471 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14475 if test "$opsys" = "cygwin"; then
14476 CYGWIN_OBJ
="sheap.o"
14477 ## Cygwin differs because of its unexec().
14479 POST_ALLOC_OBJ
=lastfile.o
14482 PRE_ALLOC_OBJ
=lastfile.o
14491 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14494 ## The -headerpad option tells ld (see man page) to leave room at the
14495 ## end of the header for adding load commands. Needed for dumping.
14496 ## 0x690 is the total size of 30 segment load commands (at 56
14497 ## each); under Cocoa 31 commands are required.
14498 if test "$HAVE_NS" = "yes"; then
14499 libs_nsgui
="-framework AppKit"
14500 headerpad_extra
=6C8
14503 headerpad_extra
=690
14505 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14507 ## This is here because src/Makefile.in did some extra fiddling around
14508 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14509 ## #ifndef LD_SWITCH_SYSTEM
14510 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14511 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14512 ## not using gcc, darwin system not on an alpha (ie darwin, since
14513 ## darwin + alpha does not occur).
14514 ## Because this was done in src/Makefile.in, the resulting part of
14515 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14516 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14517 ## rather than LD_SWITCH_SYSTEM.
14518 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14519 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14522 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14523 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14524 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14525 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14526 ## had different values in configure (in ac_link) and src/Makefile.in.
14527 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14528 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14530 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14533 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14534 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14543 ## gnu: GNU needs its own crt0.
14544 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14546 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14547 ## library search parth, i.e. it won't search /usr/lib for libc and
14548 ## friends. Using -nostartfiles instead avoids this problem, and
14549 ## will also work on earlier NetBSD releases.
14550 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
14552 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14553 ## MkLinux/LinuxPPC needs this.
14554 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14557 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
14563 if test "x$ORDINARY_LINK" = "xyes"; then
14567 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14570 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14571 ## freebsd, gnu-* not on macppc|ibms390x.
14572 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14574 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14575 ## places that are difficult to figure out at make time. Fortunately,
14576 ## these same versions allow you to pass arbitrary flags on to the
14577 ## linker, so there is no reason not to use it as a linker.
14579 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14580 ## searching for libraries in its internal directories, so we have to
14581 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14582 LINKER
="\$(CC) -nostdlib"
14585 test "x$LINKER" = "x" && LINKER
=ld
14586 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14587 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
14592 ## FIXME? The logic here is not precisely the same as that above.
14593 ## There is no check here for a pre-defined LINKER.
14594 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14596 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14599 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14602 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14603 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14604 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14605 if test "$machine" = "arm"; then
14608 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14609 ## immediately undefine it again and redefine it to empty.
14610 ## Was the C_SWITCH_X_SITE part really necessary?
14611 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14616 ## Ask GCC where to find libgcc.a.
14617 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14624 ## If we're using X11/GNUstep, define some consequences.
14625 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14627 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14630 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14632 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14633 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14635 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14636 test "$HAVE_X_WINDOWS" = "yes" && \
14637 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14647 #### Report on what we decided to do.
14648 #### Report GTK as a toolkit, even if it doesn't use Xt.
14649 #### It makes printing result more understandable as using GTK sets
14650 #### toolkit_scroll_bars to yes by default.
14651 if test "${HAVE_GTK}" = "yes"; then
14656 Configured for \`${canonical}'.
14658 Where should the build process find the source code? ${srcdir}
14659 What operating system and machine description files should Emacs use?
14660 \`${opsysfile}' and \`${machfile}'
14661 What compiler should emacs be built with? ${CC} ${CFLAGS}
14662 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14663 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14664 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14665 What window system should Emacs use? ${window_system}
14666 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14668 if test -n "${x_includes}"; then
14669 echo " Where do we find X Windows header files? ${x_includes}"
14671 echo " Where do we find X Windows header files? Standard dirs"
14673 if test -n "${x_libraries}"; then
14674 echo " Where do we find X Windows libraries? ${x_libraries}"
14676 echo " Where do we find X Windows libraries? Standard dirs"
14679 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14680 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14681 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14682 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14683 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14684 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14685 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14686 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14687 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14688 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14689 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14690 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14692 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14693 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14694 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14695 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14697 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14700 if test $USE_XASSERTS = yes; then
14701 echo " Compiling with asserts turned on."
14702 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14707 if test "$HAVE_NS" = "yes"; then
14709 echo "You must run \"make install\" in order to test the built application.
14710 The installed application will go to nextstep/Emacs.app and can be
14711 run or moved from there."
14712 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14713 echo "The application will be fully self-contained."
14715 echo "The lisp resources for the application will be installed under ${prefix}.
14716 You may need to run \"make install\" with sudo. The application will fail
14717 to run if these resources are not installed."
14722 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14723 echo "D-Bus integration has been tested for GNU/Linux only."
14728 # Remove any trailing slashes in these variables.
14729 test "${prefix}" != NONE
&&
14730 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14731 test "${exec_prefix}" != NONE
&&
14732 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14734 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"
14736 ac_config_commands
="$ac_config_commands default"
14738 cat >confcache
<<\_ACEOF
14739 # This file is a shell script that caches the results of configure
14740 # tests run on this system so they can be shared between configure
14741 # scripts and configure runs, see configure's option --config-cache.
14742 # It is not useful on other systems. If it contains results you don't
14743 # want to keep, you may remove or edit it.
14745 # config.status only pays attention to the cache file if you give it
14746 # the --recheck option to rerun configure.
14748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14750 # following values.
14754 # The following way of writing the cache mishandles newlines in values,
14755 # but we know of no workaround that is simple, portable, and efficient.
14756 # So, we kill variables containing newlines.
14757 # Ultrix sh set writes to stderr and can't be redirected directly,
14758 # and sets the high bit in the cache file unless we assign to the vars.
14760 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14761 eval ac_val
=\$
$ac_var
14765 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14769 _ | IFS | as_nl
) ;; #(
14770 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14771 *) { eval $ac_var=; unset $ac_var;} ;;
14777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14778 *${as_nl}ac_space
=\
*)
14779 # `set' does not quote correctly, so add quotes: double-quote
14780 # substitution turns \\\\ into \\, and sed turns \\ into \.
14783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14786 # `set' quotes correctly as required by POSIX, so do not add quotes.
14787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14800 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14801 if test -w "$cache_file"; then
14802 test "x$cache_file" != "x/dev/null" &&
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14804 $as_echo "$as_me: updating cache $cache_file" >&6;}
14805 cat confcache
>$cache_file
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14813 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14814 # Let make expand exec_prefix.
14815 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14817 DEFS
=-DHAVE_CONFIG_H
14821 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14822 # 1. Remove the extension, and $U if already installed.
14823 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14824 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14826 # will be set to the directory where LIBOBJS objects are built.
14827 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14828 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14830 LIBOBJS
=$ac_libobjs
14832 LTLIBOBJS
=$ac_ltlibobjs
14837 : ${CONFIG_STATUS=./config.status}
14839 ac_clean_files_save
=$ac_clean_files
14840 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14842 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14844 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14846 # Generated by $as_me.
14847 # Run this file to recreate the current configuration.
14848 # Compiler output produced by configure, useful for debugging
14849 # configure, is in config.log if it exists.
14852 ac_cs_recheck=false
14855 SHELL=\${CONFIG_SHELL-$SHELL}
14858 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14859 ## -------------------- ##
14860 ## M4sh Initialization. ##
14861 ## -------------------- ##
14863 # Be more Bourne compatible
14864 DUALCASE
=1; export DUALCASE
# for MKS sh
14865 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14868 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14869 # is contrary to our usage. Disable this feature.
14870 alias -g '${1+"$@"}'='"$@"'
14871 setopt NO_GLOB_SUBST
14873 case `(set -o) 2>/dev/null` in #(
14885 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14886 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14889 # Prefer a ksh shell builtin over an external printf program on Solaris,
14890 # but without wasting forks for bash or zsh.
14891 if test -z "$BASH_VERSION$ZSH_VERSION" \
14892 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14893 as_echo='print
-r --'
14894 as_echo_n='print
-rn --'
14895 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14896 as_echo='printf %s
\n'
14897 as_echo_n='printf %s
'
14899 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14900 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14901 as_echo_n='/usr
/ucb
/echo -n'
14903 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14904 as_echo_n_body='eval
14908 expr "X$arg" : "X\\(.*\\)$as_nl";
14909 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14911 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14913 export as_echo_n_body
14914 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14916 export as_echo_body
14917 as_echo='sh
-c $as_echo_body as_echo
'
14920 # The user is always right.
14921 if test "${PATH_SEPARATOR+set}" != set; then
14923 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14924 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14931 # We need space, tab and new line, in precisely that order. Quoting is
14932 # there to prevent editors from complaining about space-tab.
14933 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14934 # splitting by setting IFS to empty value.)
14937 # Find who we are. Look in the path if we contain no directory separator.
14939 *[\\/]* ) as_myself=$0 ;;
14940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14944 test -z "$as_dir" && as_dir=.
14945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14951 # We did not find ourselves, most probably we were run as `sh COMMAND'
14952 # in which case we are not to be found in the path.
14953 if test "x$as_myself" = x
; then
14956 if test ! -f "$as_myself"; then
14957 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14961 # Unset variables that we do not need and which cause bugs (e.g. in
14962 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14963 # suppresses any "Segmentation fault" message there. '((' could
14964 # trigger a bug in pdksh 5.2.14.
14965 for as_var
in BASH_ENV ENV MAIL MAILPATH
14966 do eval test x\
${$as_var+set} = xset \
14967 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14980 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14983 # as_fn_error ERROR [LINENO LOG_FD]
14984 # ---------------------------------
14985 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14986 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14987 # script with status $?, using 1 if that was 0.
14990 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14992 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14993 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14995 $as_echo "$as_me: error: $1" >&2
14996 as_fn_exit
$as_status
15000 # as_fn_set_status STATUS
15001 # -----------------------
15002 # Set $? to STATUS, without forking.
15003 as_fn_set_status
()
15006 } # as_fn_set_status
15008 # as_fn_exit STATUS
15009 # -----------------
15010 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15014 as_fn_set_status
$1
15020 # Portably unset VAR.
15023 { eval $1=; unset $1;}
15025 as_unset
=as_fn_unset
15026 # as_fn_append VAR VALUE
15027 # ----------------------
15028 # Append the text in VALUE to the end of the definition contained in VAR. Take
15029 # advantage of any shell optimizations that allow amortized linear growth over
15030 # repeated appends, instead of the typical quadratic growth present in naive
15032 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15033 eval 'as_fn_append ()
15044 # as_fn_arith ARG...
15045 # ------------------
15046 # Perform arithmetic evaluation on the ARGs, and store the result in the
15047 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15048 # must be portable across $(()) and expr.
15049 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15050 eval 'as_fn_arith ()
15057 as_val
=`expr "$@" || test $? -eq 1`
15062 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15063 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15069 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15070 as_basename
=basename
15075 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15081 as_me
=`$as_basename -- "$0" ||
15082 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15083 X"$0" : 'X\(//\)$' \| \
15084 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15086 sed '/^.*\/\([^/][^/]*\)\/*$/{
15100 # Avoid depending upon Character Ranges.
15101 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15102 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15103 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15104 as_cr_digits
='0123456789'
15105 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15107 ECHO_C
= ECHO_N
= ECHO_T
=
15108 case `echo -n x` in #(((((
15110 case `echo 'xy\c'` in
15111 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15113 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15120 rm -f conf$$ conf$$.exe conf$$.
file
15121 if test -d conf$$.dir
; then
15122 rm -f conf$$.dir
/conf$$.
file
15125 mkdir conf$$.dir
2>/dev
/null
15127 if (echo >conf$$.
file) 2>/dev
/null
; then
15128 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15130 # ... but there are two gotchas:
15131 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15132 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15133 # In both cases, we have to default to `cp -p'.
15134 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15136 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15144 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15145 rmdir conf$$.dir
2>/dev
/null
15150 # Create "$as_dir" as a directory, including parents if necessary.
15155 -*) as_dir
=.
/$as_dir;;
15157 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15161 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15162 *) as_qdir
=$as_dir;;
15164 as_dirs
="'$as_qdir' $as_dirs"
15165 as_dir
=`$as_dirname -- "$as_dir" ||
15166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15167 X"$as_dir" : 'X\(//\)[^/]' \| \
15168 X"$as_dir" : 'X\(//\)$' \| \
15169 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15170 $as_echo X"$as_dir" |
15171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15175 /^X\(\/\/\)[^/].*/{
15188 test -d "$as_dir" && break
15190 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15191 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15195 if mkdir
-p .
2>/dev
/null
; then
15196 as_mkdir_p
='mkdir -p "$as_dir"'
15198 test -d .
/-p && rmdir .
/-p
15202 if test -x / >/dev
/null
2>&1; then
15203 as_test_x
='test -x'
15205 if ls -dL / >/dev
/null
2>&1; then
15212 if test -d "$1"; then
15218 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15219 ???[sx]*):;;*)false;;esac;fi
15223 as_executable_p
=$as_test_x
15225 # Sed expression to map a string onto a valid CPP name.
15226 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15228 # Sed expression to map a string onto a valid variable name.
15229 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15233 ## ----------------------------------- ##
15234 ## Main body of $CONFIG_STATUS script. ##
15235 ## ----------------------------------- ##
15237 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15240 # Save the log message, to keep $0 and so on meaningful, and to
15241 # report actual input values of CONFIG_FILES etc. instead of their
15242 # values after options handling.
15244 This file was extended by emacs $as_me 24.0.50, which was
15245 generated by GNU Autoconf 2.65. Invocation command line was
15247 CONFIG_FILES = $CONFIG_FILES
15248 CONFIG_HEADERS = $CONFIG_HEADERS
15249 CONFIG_LINKS = $CONFIG_LINKS
15250 CONFIG_COMMANDS = $CONFIG_COMMANDS
15253 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15258 case $ac_config_files in *"
15259 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15262 case $ac_config_headers in *"
15263 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15268 # Files that config.status was made for.
15269 config_files="$ac_config_files"
15270 config_headers="$ac_config_headers"
15271 config_commands="$ac_config_commands"
15275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15277 \`$as_me' instantiates files and other configuration actions
15278 from templates according to the current configuration. Unless the files
15279 and actions are specified as TAGs, all are instantiated by default.
15281 Usage: $0 [OPTION]... [TAG]...
15283 -h, --help print this help, then exit
15284 -V, --version print version number and configuration settings, then exit
15285 --config print configuration, then exit
15286 -q, --quiet, --silent
15287 do not print progress messages
15288 -d, --debug don't remove temporary files
15289 --recheck update $as_me by reconfiguring in the same conditions
15290 --file=FILE[:TEMPLATE]
15291 instantiate the configuration file FILE
15292 --header=FILE[:TEMPLATE]
15293 instantiate the configuration header FILE
15295 Configuration files:
15298 Configuration headers:
15301 Configuration commands:
15304 Report bugs to the package provider."
15307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15308 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15310 emacs config.status 24.0.50
15311 configured by $0, generated by GNU Autoconf 2.65,
15312 with options \\"\$ac_cs_config\\"
15314 Copyright (C) 2009 Free Software Foundation, Inc.
15315 This config.status script is free software; the Free Software Foundation
15316 gives unlimited permission to copy, distribute and modify it."
15321 test -n "\$AWK" || AWK=awk
15324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15325 # The default lists apply if the user does not specify any file.
15331 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15332 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15343 # Handling of the options.
15344 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15346 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15347 $as_echo "$ac_cs_version"; exit ;;
15348 --config |
--confi |
--conf |
--con |
--co |
--c )
15349 $as_echo "$ac_cs_config"; exit ;;
15350 --debug |
--debu |
--deb |
--de |
--d |
-d )
15352 --file |
--fil |
--fi |
--f )
15355 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15357 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15358 ac_need_defaults
=false
;;
15359 --header |
--heade |
--head |
--hea )
15362 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15364 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15365 ac_need_defaults
=false
;;
15367 # Conflict between --help and --header
15368 as_fn_error
"ambiguous option: \`$1'
15369 Try \`$0 --help' for more information.";;
15370 --help |
--hel |
-h )
15371 $as_echo "$ac_cs_usage"; exit ;;
15372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15373 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15376 # This is an error.
15377 -*) as_fn_error
"unrecognized option: \`$1'
15378 Try \`$0 --help' for more information." ;;
15380 *) as_fn_append ac_config_targets
" $1"
15381 ac_need_defaults
=false
;;
15387 ac_configure_extra_args
=
15389 if $ac_cs_silent; then
15391 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396 if \$ac_cs_recheck; then
15397 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15399 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15400 CONFIG_SHELL='$SHELL'
15401 export CONFIG_SHELL
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15411 ## Running $as_me. ##
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15421 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15427 # Handling of arguments.
15428 for ac_config_target
in $ac_config_targets
15430 case $ac_config_target in
15431 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15432 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15433 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15434 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15435 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15436 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15437 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15438 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15439 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15440 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15441 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15442 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15443 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15445 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15450 # If the user did not use the arguments to specify the items to instantiate,
15451 # then the envvar interface is used. Set only those that are not.
15452 # We use the long form for the default assignment because of an extremely
15453 # bizarre bug on SunOS 4.1.3.
15454 if $ac_need_defaults; then
15455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15460 # Have a temporary directory for convenience. Make it in the build tree
15461 # simply because there is no reason against having it here, and in addition,
15462 # creating and moving files from /tmp can sometimes cause problems.
15463 # Hook for its removal unless debugging.
15464 # Note that there is a small window in which the directory will not be cleaned:
15465 # after its creation but before its name has been assigned to `$tmp'.
15469 trap 'exit_status=$?
15470 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15472 trap 'as_fn_exit 1' 1 2 13 15
15474 # Create a (secure) tmp directory for tmp files.
15477 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15478 test -n "$tmp" && test -d "$tmp"
15481 tmp
=.
/conf$$
-$RANDOM
15482 (umask 077 && mkdir
"$tmp")
15483 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15485 # Set up the scripts for CONFIG_FILES section.
15486 # No need to generate them if there are no CONFIG_FILES.
15487 # This happens for instance with `./config.status config.h'.
15488 if test -n "$CONFIG_FILES"; then
15490 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15491 ac_cs_awk_getline
=:
15492 ac_cs_awk_pipe_init
=
15493 ac_cs_awk_read_file
='
15494 while ((getline aline < (F[key])) > 0)
15497 ac_cs_awk_pipe_fini
=
15499 ac_cs_awk_getline
=false
15500 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15501 ac_cs_awk_read_file
='
15503 print "cat " F[key] " &&"
15504 '$ac_cs_awk_pipe_init
15505 # The final `:' finishes the AND list.
15506 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15508 ac_cr
=`echo X | tr X '\015'`
15509 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15510 # But we know of no other shell where ac_cr would be empty at this
15511 # point, so we can use a bashism as a fallback.
15512 if test "x$ac_cr" = x
; then
15513 eval ac_cr
=\$
\'\\r
\'
15515 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15516 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15519 ac_cs_awk_cr
=$ac_cr
15522 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15525 # Create commands to substitute file output variables.
15527 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15528 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15529 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15532 } >conf$
$files.sh
&&
15533 . .
/conf$
$files.sh ||
15534 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15535 rm -f conf$
$files.sh
15538 echo "cat >conf$$subs.awk <<_ACEOF" &&
15539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15541 } >conf$$subs.sh ||
15542 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15545 for ac_last_try in false false false false false :; do
15546 . ./conf$$subs.sh ||
15547 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15549 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15550 if test $ac_delim_n = $ac_delim_num; then
15552 elif $ac_last_try; then
15553 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15555 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15558 rm -f conf$$subs.sh
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15565 s/^/S["/; s
/!.
*/"]=/
15575 s/\(.\{148\}\)..*/\1/
15577 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15582 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15589 s/\(.\{148\}\)..*/\1/
15591 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15595 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15600 ' <conf$$subs.awk | sed '
15605 ' >>$CONFIG_STATUS || ac_write_fail=1
15606 rm -f conf$$subs.awk
15607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15610 for (key in S) S_is_set[key] = 1
15612 \$ac_cs_awk_pipe_init
15616 nfields = split(line, field, "@
")
15618 len = length(field[1])
15619 for (i = 2; i < nfields; i++) {
15621 keylen = length(key)
15622 if (S_is_set[key]) {
15624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15625 len += length(value) + length(field[++i])
15630 if (nfields == 3 && !substed) {
15632 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15633 \$ac_cs_awk_read_file
15639 \$ac_cs_awk_pipe_fini
15642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15643 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15644 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15647 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15648 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15653 # trailing colons and then remove the whole line if VPATH becomes empty
15654 # (actually we leave an empty line to preserve line numbers).
15655 if test "x
$srcdir" = x.; then
15656 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15657 s/:*\$(srcdir):*/:/
15658 s/:*\${srcdir}:*/:/
15660 s/^\([^=]*=[ ]*\):*/\1/
15666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15667 fi # test -n "$CONFIG_FILES"
15669 # Set up the scripts for CONFIG_HEADERS section.
15670 # No need to generate them if there are no CONFIG_HEADERS.
15671 # This happens for instance with `./config.status Makefile'.
15672 if test -n "$CONFIG_HEADERS"; then
15673 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15677 # Transform confdefs.h into an awk script `defines.awk', embedded as
15678 # here-document in config.status, that substitutes the proper values into
15679 # config.h.in to produce config.h.
15681 # Create a delimiter string that does not exist in confdefs.h, to ease
15682 # handling of long lines.
15684 for ac_last_try in false false :; do
15685 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15686 if test -z "$ac_t"; then
15688 elif $ac_last_try; then
15689 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15691 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15695 # For the awk script, D is an array of macro values keyed by name,
15696 # likewise P contains macro parameters if any. Preserve backslash
15697 # newline sequences.
15699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15701 s/.\{148\}/&'"$ac_delim"'/g
15704 s/^[ ]*#[ ]*define[ ][ ]*/ /
15711 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15713 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15718 D["\
1"]=" \
3\\\\\\n
"\\/p
15720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15725 s/.\{148\}/&'"$ac_delim"'/g
15730 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15733 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15735 ' <confdefs.h | sed '
15736 s/'"$ac_delim"'/"\\\
15737 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740 for (key in D) D_is_set[key] = 1
15743 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15745 split(line, arg, " ")
15746 if (arg[1] == "#") {
15750 defundef
= substr
(arg
[1], 2)
15753 split(mac1
, mac2
, "(") #)
15755 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15756 if (D_is_set
[macro
]) {
15757 # Preserve the white space surrounding the "#".
15758 print prefix
"define", macro P
[macro
] D
[macro
]
15761 # Replace #undef with comments. This is necessary, for example,
15762 # in the case of _POSIX_SOURCE, which is predefined and required
15763 # on some systems where configure will not decide to define it.
15764 if (defundef
== "undef") {
15765 print
"/*", prefix defundef
, macro
, "*/"
15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15774 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15775 fi # test -n "$CONFIG_HEADERS"
15778 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15783 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15785 case $ac_mode$ac_tag in
15787 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15788 :[FH
]-) ac_tag
=-:-;;
15789 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15806 -) ac_f
="$tmp/stdin";;
15807 *) # Look for the file first in the build tree, then in the source tree
15808 # (if the path is not absolute). The absolute path cannot be DOS-style,
15809 # because $ac_f cannot contain `:'.
15813 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15815 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15817 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15818 as_fn_append ac_file_inputs
" '$ac_f'"
15821 # Let's still pretend it is `configure' which instantiates (i.e., don't
15822 # use $as_me), people would be surprised to read:
15823 # /* config.h. Generated by config.status. */
15824 configure_input
='Generated from '`
15825 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15827 if test x
"$ac_file" != x-
; then
15828 configure_input
="$ac_file. $configure_input"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15830 $as_echo "$as_me: creating $ac_file" >&6;}
15832 # Neutralize special characters interpreted by sed in replacement strings.
15833 case $configure_input in #(
15834 *\
&* |
*\|
* |
*\\* )
15835 ac_sed_conf_input
=`$as_echo "$configure_input" |
15836 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15837 *) ac_sed_conf_input
=$configure_input;;
15841 *:-:* |
*:-) cat >"$tmp/stdin" \
15842 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15847 ac_dir
=`$as_dirname -- "$ac_file" ||
15848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15849 X"$ac_file" : 'X\(//\)[^/]' \| \
15850 X"$ac_file" : 'X\(//\)$' \| \
15851 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15852 $as_echo X"$ac_file" |
15853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15857 /^X\(\/\/\)[^/].*/{
15870 as_dir
="$ac_dir"; as_fn_mkdir_p
15874 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15876 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15877 # A ".." for each directory in $ac_dir_suffix.
15878 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15879 case $ac_top_builddir_sub in
15880 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15881 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15884 ac_abs_top_builddir
=$ac_pwd
15885 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15886 # for backward compatibility:
15887 ac_top_builddir
=$ac_top_build_prefix
15890 .
) # We are building in place.
15892 ac_top_srcdir
=$ac_top_builddir_sub
15893 ac_abs_top_srcdir
=$ac_pwd ;;
15894 [\\/]* | ?
:[\\/]* ) # Absolute name.
15895 ac_srcdir
=$srcdir$ac_dir_suffix;
15896 ac_top_srcdir
=$srcdir
15897 ac_abs_top_srcdir
=$srcdir ;;
15898 *) # Relative name.
15899 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15900 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15901 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15903 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15913 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15914 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15919 # If the template does not know about datarootdir, expand it.
15920 # FIXME: This hack should be removed a few years after 2.60.
15921 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15933 *datarootdir
*) ac_datarootdir_seen
=yes;;
15934 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 ac_datarootdir_hack='
15940 s&@datadir@&$datadir&g
15941 s&@docdir@&$docdir&g
15942 s&@infodir@&$infodir&g
15943 s&@localedir@&$localedir&g
15944 s&@mandir@&$mandir&g
15945 s&\\\${datarootdir}&$datarootdir&g' ;;
15949 # Neutralize VPATH when `$srcdir' = `.'.
15950 # Shell code in configure.ac might set extrasub.
15951 # FIXME: do we really want to maintain this feature?
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 ac_sed_extra="$ac_vpsub
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15958 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15959 s|@configure_input@|
$ac_sed_conf_input|
;t t
15960 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15961 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15962 s
&@srcdir@
&$ac_srcdir&;t t
15963 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15964 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15965 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15966 s
&@builddir@
&$ac_builddir&;t t
15967 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15968 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15969 s
&@INSTALL@
&$ac_INSTALL&;t t
15970 $ac_datarootdir_hack
15972 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15973 if $ac_cs_awk_getline; then
15974 $AWK -f "$tmp/subs.
awk"
15976 $AWK -f "$tmp/subs.
awk" | $SHELL
15978 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15980 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15981 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15982 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15984 which seems to be undefined. Please make sure it is defined." >&5
15985 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15986 which seems to be undefined. Please make sure it is defined." >&2;}
15990 -) cat "$tmp/out" && rm -f "$tmp/out";;
15991 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15993 || as_fn_error "could not create $ac_file" "$LINENO" 5
15999 if test x"$ac_file" != x-; then
16001 $as_echo "/* $configure_input */" \
16002 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16003 } >"$tmp/config.h" \
16004 || as_fn_error "could not create $ac_file" "$LINENO" 5
16005 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16007 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16010 mv "$tmp/config.h" "$ac_file" \
16011 || as_fn_error "could not create $ac_file" "$LINENO" 5
16014 $as_echo "/* $configure_input */" \
16015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16016 || as_fn_error "could not create -" "$LINENO" 5
16020 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16021 $as_echo "$as_me: executing $ac_file commands" >&6;}
16026 case $ac_file$ac_mode in
16029 ### Make the necessary directories, if they don't exist.
16030 for dir
in etc lisp
; do
16031 test -d ${dir} || mkdir
${dir}
16034 echo creating src
/epaths.h
16035 ${MAKE-make} epaths-force
16037 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16038 echo creating src
/.gdbinit
16039 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16050 ac_clean_files
=$ac_clean_files_save
16052 test $ac_write_fail = 0 ||
16053 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16056 # configure is writing to config.log, and then calls config.status.
16057 # config.status does its own redirection, appending to config.log.
16058 # Unfortunately, on DOS this fails, as config.log is still kept open
16059 # by configure, so config.status won't be able to write to it; its
16060 # output is simply discarded. So we exec the FD to /dev/null,
16061 # effectively closing config.log, so it can be properly (re)opened and
16062 # appended to by config.status. When coming back to configure, we
16063 # need to make the FD available again.
16064 if test "$no_create" != yes; then
16066 ac_config_status_args
=
16067 test "$silent" = yes &&
16068 ac_config_status_args
="$ac_config_status_args --quiet"
16070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16073 # would make configure fail if this is the last instruction.
16074 $ac_cs_success || as_fn_exit $?
16076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16078 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}