2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_config_libobj_dir
=src
605 ac_subst_vars
='LTLIBOBJS
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
714 LD_SWITCH_X_SITE_AUX_RPATH
791 program_transform_name
802 ac_subst_files
='deps_frag
805 enable_option_checking
827 with_toolkit_scroll_bars
842 enable_ns_self_contained
844 enable_maintainer_mode
847 enable_use_lisp_union_type
853 ac_precious_vars
='build_alias
865 # Initialize some variables set by options.
867 ac_init_version
=false
868 ac_unrecognized_opts
=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name
=s
,x
,x
,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir
='${exec_prefix}/bin'
894 sbindir
='${exec_prefix}/sbin'
895 libexecdir
='${exec_prefix}/libexec'
896 datarootdir
='${prefix}/share'
897 datadir
='${datarootdir}'
898 sysconfdir
='${prefix}/etc'
899 sharedstatedir
='${prefix}/com'
900 localstatedir
='${prefix}/var'
901 includedir
='${prefix}/include'
902 oldincludedir
='/usr/include'
903 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir
='${datarootdir}/info'
909 libdir
='${exec_prefix}/lib'
910 localedir
='${datarootdir}/locale'
911 mandir
='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\
$ac_option
925 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
936 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
938 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
941 -build |
--build |
--buil |
--bui |
--bu)
942 ac_prev
=build_alias
;;
943 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
944 build_alias
=$ac_optarg ;;
946 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
947 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
948 ac_prev
=cache_file
;;
949 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
950 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
951 cache_file
=$ac_optarg ;;
954 cache_file
=config.cache
;;
956 -datadir |
--datadir |
--datadi |
--datad)
958 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
959 datadir
=$ac_optarg ;;
961 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
962 |
--dataroo |
--dataro |
--datar)
963 ac_prev
=datarootdir
;;
964 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
965 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
966 datarootdir
=$ac_optarg ;;
968 -disable-* |
--disable-*)
969 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
972 as_fn_error $?
"invalid feature name: $ac_useropt"
973 ac_useropt_orig
=$ac_useropt
974 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep
=', ';;
982 eval enable_
$ac_useropt=no
;;
984 -docdir |
--docdir |
--docdi |
--doc |
--do)
986 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
989 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
991 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
994 -enable-* |
--enable-*)
995 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
998 as_fn_error $?
"invalid feature name: $ac_useropt"
999 ac_useropt_orig
=$ac_useropt
1000 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_
$ac_useropt"
1005 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep
=', ';;
1008 eval enable_
$ac_useropt=\
$ac_optarg ;;
1010 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1011 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1012 |
--exec |
--exe |
--ex)
1013 ac_prev
=exec_prefix
;;
1014 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1015 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1016 |
--exec=* |
--exe=* |
--ex=*)
1017 exec_prefix
=$ac_optarg ;;
1019 -gas |
--gas |
--ga |
--g)
1020 # Obsolete; use --with-gas.
1023 -help |
--help |
--hel |
--he |
-h)
1024 ac_init_help
=long
;;
1025 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1026 ac_init_help
=recursive
;;
1027 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1028 ac_init_help
=short
;;
1030 -host |
--host |
--hos |
--ho)
1031 ac_prev
=host_alias
;;
1032 -host=* |
--host=* |
--hos=* |
--ho=*)
1033 host_alias
=$ac_optarg ;;
1035 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1037 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1039 htmldir
=$ac_optarg ;;
1041 -includedir |
--includedir |
--includedi |
--included |
--include \
1042 |
--includ |
--inclu |
--incl |
--inc)
1043 ac_prev
=includedir
;;
1044 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1045 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1046 includedir
=$ac_optarg ;;
1048 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1050 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1051 infodir
=$ac_optarg ;;
1053 -libdir |
--libdir |
--libdi |
--libd)
1055 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1056 libdir
=$ac_optarg ;;
1058 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1059 |
--libexe |
--libex |
--libe)
1060 ac_prev
=libexecdir
;;
1061 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1062 |
--libexe=* |
--libex=* |
--libe=*)
1063 libexecdir
=$ac_optarg ;;
1065 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1066 ac_prev
=localedir
;;
1067 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1068 localedir
=$ac_optarg ;;
1070 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1071 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1072 ac_prev
=localstatedir
;;
1073 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1074 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1075 localstatedir
=$ac_optarg ;;
1077 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1079 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1080 mandir
=$ac_optarg ;;
1082 -nfp |
--nfp |
--nf)
1083 # Obsolete; use --without-fp.
1086 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1087 |
--no-cr |
--no-c |
-n)
1090 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1091 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1094 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1095 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1096 |
--oldin |
--oldi |
--old |
--ol |
--o)
1097 ac_prev
=oldincludedir
;;
1098 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1099 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1100 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1101 oldincludedir
=$ac_optarg ;;
1103 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1105 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1106 prefix
=$ac_optarg ;;
1108 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1109 |
--program-pre |
--program-pr |
--program-p)
1110 ac_prev
=program_prefix
;;
1111 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1112 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1113 program_prefix
=$ac_optarg ;;
1115 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1116 |
--program-suf |
--program-su |
--program-s)
1117 ac_prev
=program_suffix
;;
1118 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1119 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1120 program_suffix
=$ac_optarg ;;
1122 -program-transform-name |
--program-transform-name \
1123 |
--program-transform-nam |
--program-transform-na \
1124 |
--program-transform-n |
--program-transform- \
1125 |
--program-transform |
--program-transfor \
1126 |
--program-transfo |
--program-transf \
1127 |
--program-trans |
--program-tran \
1128 |
--progr-tra |
--program-tr |
--program-t)
1129 ac_prev
=program_transform_name
;;
1130 -program-transform-name=* |
--program-transform-name=* \
1131 |
--program-transform-nam=* |
--program-transform-na=* \
1132 |
--program-transform-n=* |
--program-transform-=* \
1133 |
--program-transform=* |
--program-transfor=* \
1134 |
--program-transfo=* |
--program-transf=* \
1135 |
--program-trans=* |
--program-tran=* \
1136 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1137 program_transform_name
=$ac_optarg ;;
1139 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1141 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1142 pdfdir
=$ac_optarg ;;
1144 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1146 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1149 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1150 |
-silent |
--silent |
--silen |
--sile |
--sil)
1153 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1155 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1157 sbindir
=$ac_optarg ;;
1159 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1160 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1161 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1163 ac_prev
=sharedstatedir
;;
1164 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1165 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1166 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1168 sharedstatedir
=$ac_optarg ;;
1170 -site |
--site |
--sit)
1172 -site=* |
--site=* |
--sit=*)
1175 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1177 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1178 srcdir
=$ac_optarg ;;
1180 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1181 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1182 ac_prev
=sysconfdir
;;
1183 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1184 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1185 sysconfdir
=$ac_optarg ;;
1187 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1188 ac_prev
=target_alias
;;
1189 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1190 target_alias
=$ac_optarg ;;
1192 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1195 -version |
--version |
--versio |
--versi |
--vers |
-V)
1196 ac_init_version
=: ;;
1199 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1210 ac_unrecognized_sep
=', ';;
1212 eval with_
$ac_useropt=\
$ac_optarg ;;
1214 -without-* |
--without-*)
1215 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 as_fn_error $?
"invalid package name: $ac_useropt"
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=no
;;
1231 # Obsolete; use --with-x.
1234 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1235 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1236 ac_prev
=x_includes
;;
1237 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1238 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1239 x_includes
=$ac_optarg ;;
1241 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1242 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1243 ac_prev
=x_libraries
;;
1244 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1245 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1246 x_libraries
=$ac_optarg ;;
1248 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1253 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1257 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1259 eval $ac_envvar=\
$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273 if test -n "$ac_prev"; then
1274 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $?
"missing argument to $ac_option"
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1281 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 # Check all directory arguments for consistency.
1287 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val
=\$
$ac_var
1293 # Remove trailing slashes.
1296 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\
$ac_val;;
1299 # Be sure to have absolute directory names.
1301 [\\/$
]* | ?
:[\\/]* ) continue;;
1302 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1304 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1312 target
=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x
; then
1316 if test "x$build_alias" = x
; then
1317 cross_compiling
=maybe
1318 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used" >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1326 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1328 test "$silent" = yes && exec 6>/dev
/null
1331 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di
=`ls -di .` &&
1333 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $?
"working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $?
"pwd does not report name of working directory"
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted
=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir
=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted
=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1375 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1377 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1389 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 for ac_var
in $ac_precious_vars; do
1392 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1394 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1405 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1468 --x-includes=DIR X include files are
in DIR
1469 --x-libraries=DIR X library files are
in DIR
1472 --build=BUILD configure
for building on BUILD
[guessed
]
1473 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1484 --disable-option-checking ignore unrecognized
--enable/--with options
1485 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1486 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1487 --disable-ns-self-contained
1488 disable self contained build under NeXTstep
1489 --enable-asserts compile code with asserts enabled
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful
(and
1492 sometimes confusing
) to the casual installer
1493 --enable-locallisppath=PATH
1494 directories Emacs should search
for lisp files
1495 specific to this site
1496 --enable-checking[=LIST
]
1497 enable expensive run-time checks. With LIST
, enable
1498 only specific categories of checks. Categories are
:
1499 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1500 stringfreelist
, xmallocoverrun
, conslist
1501 --enable-use-lisp-union-type
1502 use a union
for the Lisp_Object data
type. This is
1503 only useful
for development
for catching certain
1505 --enable-profiling build emacs with profiling support. This might not
1506 work on all platforms
1507 --enable-autodepend automatically generate dependencies to .h-files.
1508 Requires GNU Make and Gcc. Enabled
if GNU Make and
1510 --disable-largefile omit support
for large files
1513 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1514 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1515 --without-pop don
't support POP mail retrieval with movemail
1516 --with-kerberos support Kerberos-authenticated POP
1517 --with-kerberos5 support Kerberos version 5 authenticated POP
1518 --with-hesiod support Hesiod to get the POP server host
1519 --with-mmdf support MMDF mailboxes
1520 --with-mail-unlink unlink, rather than empty, mail spool after reading
1521 --with-mailhost=HOSTNAME
1522 string giving default POP mail host
1523 --without-sound don't compile with sound support
1524 --without-sync-input process async input synchronously
1525 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1526 lucid or athena
, motif
, no
)
1527 --without-xpm don
't compile with XPM image support
1528 --without-jpeg don't compile with JPEG image support
1529 --without-tiff don
't compile with TIFF image support
1530 --without-gif don't compile with GIF image support
1531 --without-png don
't compile with PNG image support
1532 --without-rsvg don't compile with SVG image support
1533 --without-xml2 don
't compile with XML parsing support
1534 --without-imagemagick don't compile with ImageMagick image support
1535 --without-xft don
't use XFT for anti aliased fonts
1536 --without-libotf don't use libotf
for OpenType font support
1537 --without-m17n-flt don
't use m17n-flt for text shaping
1538 --without-toolkit-scroll-bars
1539 don't use Motif or Xaw3d scroll bars
1540 --without-xaw3d don
't use Xaw3d
1541 --without-xim don't use X11 XIM
1542 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1543 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1545 --without-dbus don't compile with D-Bus support
1546 --without-gconf don
't compile with GConf support
1547 --without-selinux don't compile with SELinux support
1548 --without-gnutls don
't use -lgnutls for SSL/TLS support
1549 --without-makeinfo don't require makeinfo
for building manuals
1550 --without-compress-info don
't compress the installed Info pages
1551 --with-pkg-config-prog=PATH
1552 path to pkg-config for finding GTK and librsvg
1553 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1554 /usr/lib, or /usr/lib64 on some platforms.
1555 --with-gameuser=USER user for shared game score files
1556 --with-gnustep-conf=PATH
1557 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1558 or /etc/GNUstep/GNUstep.conf
1559 --with-x use the X Window System
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1570 XMKMF Path to xmkmf, Makefile generator for X Window System
1572 Use these variables to override the choices made by `configure' or to
help
1573 it to
find libraries and programs with nonstandard names
/locations.
1575 Report bugs to the package provider.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1589 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1591 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1596 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir
=$ac_pwd
1600 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir
=$ac_top_build_prefix
1605 .
) # We are building in place.
1607 ac_top_srcdir
=$ac_top_builddir_sub
1608 ac_abs_top_srcdir
=$ac_pwd ;;
1609 [\\/]* | ?
:[\\/]* ) # Absolute name.
1610 ac_srcdir
=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir
=$srcdir
1612 ac_abs_top_srcdir
=$srcdir ;;
1614 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 emacs configure
24.0.50
1639 generated by GNU Autoconf
2.68
1641 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1642 This configure
script is free software
; the Free Software Foundation
1643 gives unlimited permission to copy
, distribute and modify it.
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile
()
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 rm -f conftest.
$ac_objext
1659 if { { ac_try
="$ac_compile"
1661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1706 if test -s conftest.err
; then
1707 grep -v '^ *+' conftest.err
>conftest.er1
1708 cat conftest.er1
>&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest
$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 $as_test_x conftest
$ac_exeext
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status
$ac_retval
1734 } # ac_fn_c_try_link
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1742 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1850 eval "$3=\$ac_header_compiler"
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_mongrel
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1870 *) ac_try_echo
=$ac_try;;
1872 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_compile
1933 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1934 # ---------------------------------------------
1935 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1937 ac_fn_c_check_decl ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1941 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1943 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1953 #ifndef $as_decl_name
1955 (void) $as_decl_use;
1957 (void) $as_decl_name;
1965 if ac_fn_c_try_compile "$LINENO"; then :
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 } # ac_fn_c_check_decl
1979 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1980 # ----------------------------------------------
1981 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_preproc ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 if ac_fn_c_try_cpp "$LINENO"; then :
1999 rm -f conftest.err conftest.i conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_preproc
2008 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2009 # ----------------------------------------------------
2010 # Tries to find if the field MEMBER exists in type AGGR, after including
2011 # INCLUDES, setting cache variable VAR accordingly.
2012 ac_fn_c_check_member ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2016 $as_echo_n "checking for $2.$3... " >&6; }
2017 if eval \${$4+:} false; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2043 if (sizeof ac_aggr.$3)
2049 if ac_fn_c_try_compile "$LINENO"; then :
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_member
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2088 # include <limits.h>
2090 # include <assert.h>
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2117 if ac_fn_c_try_link "$LINENO"; then :
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_func
2132 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2133 # -------------------------------------------
2134 # Tests whether TYPE exists after having included INCLUDES, setting cache
2135 # variable VAR accordingly.
2136 ac_fn_c_check_type ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2170 if ac_fn_c_try_compile "$LINENO"; then :
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_type
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2189 It was created by emacs $as_me 24.0.50, which was
2190 generated by GNU Autoconf 2.68. Invocation command line was
2202 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2203 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2204 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2205 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2206 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2208 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2209 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2211 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2212 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2213 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2214 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2215 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2216 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2217 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_must_keep_next=false
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2261 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2279 -* ) ac_must_keep_next=true ;;
2282 as_fn_append ac_configure_args " '$ac_arg'"
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2304 # The following way of writing the cache mishandles newlines in values,
2306 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2307 eval ac_val=\$$ac_var
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2322 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2340 for ac_var in $ac_subst_vars
2342 eval ac_val=\$$ac_var
2344 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 $as_echo "$ac_var='\''$ac_val'\''"
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2355 for ac_var in $ac_subst_files
2357 eval ac_val=\$$ac_var
2359 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2390 $as_echo "/* confdefs.h */" > confdefs.h
2392 # Predefined preprocessor variables.
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site
script $ac_site_file
2448 See \
`config.log' for more details" "$LINENO" 5; }
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 as_fn_append ac_header_list " stdlib.h"
2470 as_fn_append ac_header_list " unistd.h"
2471 as_fn_append ac_header_list " sys/param.h"
2472 as_fn_append ac_header_list " sys/time.h"
2473 as_fn_append ac_func_list " alarm"
2474 # Check that the precious variables saved in the cache have kept the same
2476 ac_cache_corrupted=false
2477 for ac_var in $ac_precious_vars; do
2478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479 eval ac_new_set=\$ac_env_${ac_var}_set
2480 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481 eval ac_new_val=\$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2485 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2489 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w=`echo x
$ac_old_val`
2496 ac_new_val_w=`echo x
$ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2500 ac_cache_corrupted=:
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\$ac_old_val
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2515 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2516 *) ac_arg=$ac_var=$ac_new_val ;;
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2546 test "$program_prefix" != NONE &&
2547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s
,x
,x
', remove it if useless.
2553 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2557 lispdir='${datadir}/emacs
/${version}/lisp
'
2558 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2559 '${datadir}/emacs
/site-lisp
'
2560 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2561 etcdir='${datadir}/emacs
/${version}/etc
'
2562 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2563 docdir='${datadir}/emacs
/${version}/etc
'
2564 gamedir='${localstatedir}/games
/emacs
'
2569 # Check whether --with-pop was given.
2570 if test "${with_pop+set}" = set; then :
2576 if test "$with_pop" = yes; then
2577 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2582 # Check whether --with-kerberos was given.
2583 if test "${with_kerberos+set}" = set; then :
2584 withval=$with_kerberos;
2589 if test "$with_kerberos" != no; then
2590 $as_echo "#define KERBEROS 1" >>confdefs.h
2595 # Check whether --with-kerberos5 was given.
2596 if test "${with_kerberos5+set}" = set; then :
2597 withval=$with_kerberos5;
2602 if test "${with_kerberos5}" != no; then
2603 if test "${with_kerberos}" = no; then
2605 $as_echo "#define KERBEROS 1" >>confdefs.h
2609 $as_echo "#define KERBEROS5 1" >>confdefs.h
2614 # Check whether --with-hesiod was given.
2615 if test "${with_hesiod+set}" = set; then :
2616 withval=$with_hesiod;
2621 if test "$with_hesiod" != no; then
2623 $as_echo "#define HESIOD 1" >>confdefs.h
2628 # Check whether --with-mmdf was given.
2629 if test "${with_mmdf+set}" = set; then :
2635 if test "$with_mmdf" != no; then
2637 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2642 # Check whether --with-mail-unlink was given.
2643 if test "${with_mail_unlink+set}" = set; then :
2644 withval=$with_mail_unlink;
2649 if test "$with_mail_unlink" != no; then
2651 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2656 # Check whether --with-mailhost was given.
2657 if test "${with_mailhost+set}" = set; then :
2658 withval=$with_mailhost;
2659 cat >>confdefs.h <<_ACEOF
2660 #define MAILHOST "$withval"
2667 # Check whether --with-sound was given.
2668 if test "${with_sound+set}" = set; then :
2669 withval=$with_sound;
2676 # Check whether --with-sync-input was given.
2677 if test "${with_sync_input+set}" = set; then :
2678 withval=$with_sync_input;
2683 if test "$with_sync_input" = yes; then
2685 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2690 # Check whether --with-x-toolkit was given.
2691 if test "${with_x_toolkit+set}" = set; then :
2692 withval=$with_x_toolkit; case "${withval}" in
2693 y | ye | yes ) val=gtk ;;
2695 l | lu | luc | luci | lucid ) val=lucid ;;
2696 a | at | ath | athe | athen | athena ) val=athena ;;
2697 m | mo | mot | moti | motif ) val=motif ;;
2698 g | gt | gtk ) val=gtk ;;
2701 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid
;
2702 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2703 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2712 # Check whether --with-xpm was given.
2713 if test "${with_xpm+set}" = set; then :
2720 # Check whether --with-jpeg was given.
2721 if test "${with_jpeg+set}" = set; then :
2728 # Check whether --with-tiff was given.
2729 if test "${with_tiff+set}" = set; then :
2736 # Check whether --with-gif was given.
2737 if test "${with_gif+set}" = set; then :
2744 # Check whether --with-png was given.
2745 if test "${with_png+set}" = set; then :
2752 # Check whether --with-rsvg was given.
2753 if test "${with_rsvg+set}" = set; then :
2760 # Check whether --with-xml2 was given.
2761 if test "${with_xml2+set}" = set; then :
2768 # Check whether --with-imagemagick was given.
2769 if test "${with_imagemagick+set}" = set; then :
2770 withval=$with_imagemagick;
2772 with_imagemagick=yes
2777 # Check whether --with-xft was given.
2778 if test "${with_xft+set}" = set; then :
2785 # Check whether --with-libotf was given.
2786 if test "${with_libotf+set}" = set; then :
2787 withval=$with_libotf;
2793 # Check whether --with-m17n-flt was given.
2794 if test "${with_m17n_flt+set}" = set; then :
2795 withval=$with_m17n_flt;
2802 # Check whether --with-toolkit-scroll-bars was given.
2803 if test "${with_toolkit_scroll_bars+set}" = set; then :
2804 withval=$with_toolkit_scroll_bars;
2806 with_toolkit_scroll_bars=yes
2810 # Check whether --with-xaw3d was given.
2811 if test "${with_xaw3d+set}" = set; then :
2812 withval=$with_xaw3d;
2818 # Check whether --with-xim was given.
2819 if test "${with_xim+set}" = set; then :
2826 # Check whether --with-ns was given.
2827 if test "${with_ns+set}" = set; then :
2835 # Check whether --with-gpm was given.
2836 if test "${with_gpm+set}" = set; then :
2843 # Check whether --with-dbus was given.
2844 if test "${with_dbus+set}" = set; then :
2851 # Check whether --with-gconf was given.
2852 if test "${with_gconf+set}" = set; then :
2853 withval=$with_gconf;
2859 # Check whether --with-selinux was given.
2860 if test "${with_selinux+set}" = set; then :
2861 withval=$with_selinux;
2867 # Check whether --with-gnutls was given.
2868 if test "${with_gnutls+set}" = set; then :
2869 withval=$with_gnutls;
2875 ## For the times when you want to build Emacs but don't have
2876 ## a suitable makeinfo, and can live without the manuals.
2878 # Check whether --with-makeinfo was given.
2879 if test "${with_makeinfo+set}" = set; then :
2880 withval=$with_makeinfo;
2886 ## This is an option because I do not know if all info/man support
2887 ## compressed files, nor how to test if they do so.
2889 # Check whether --with-compress-info was given.
2890 if test "${with_compress_info+set}" = set; then :
2891 withval=$with_compress_info;
2893 with_compress_info=yes
2896 if test $with_compress_info = yes; then
2904 # Check whether --with-pkg-config-prog was given.
2905 if test "${with_pkg_config_prog+set}" = set; then :
2906 withval=$with_pkg_config_prog;
2909 if test "X${with_pkg_config_prog}" != X; then
2910 if test "${with_pkg_config_prog}" != yes; then
2911 PKG_CONFIG="${with_pkg_config_prog}"
2917 # Check whether --with-crt-dir was given.
2918 if test "${with_crt_dir+set}" = set; then :
2919 withval=$with_crt_dir;
2922 CRT_DIR="${with_crt_dir}"
2925 # Check whether --with-gameuser was given.
2926 if test "${with_gameuser+set}" = set; then :
2927 withval=$with_gameuser;
2930 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2931 && gameuser="${with_gameuser}"
2932 test "X$gameuser" = X && gameuser=games
2935 # Check whether --with-gnustep-conf was given.
2936 if test "${with_gnustep_conf+set}" = set; then :
2937 withval=$with_gnustep_conf;
2940 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2941 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2942 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2943 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2945 # Check whether --enable-ns-self-contained was given.
2946 if test "${enable_ns_self_contained+set}" = set; then :
2947 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2949 EN_NS_SELF_CONTAINED=yes
2953 # Check whether --enable-asserts was given.
2954 if test "${enable_asserts+set}" = set; then :
2955 enableval=$enable_asserts; USE_XASSERTS=$enableval
2961 # Check whether --enable-maintainer-mode was given.
2962 if test "${enable_maintainer_mode+set}" = set; then :
2963 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2965 USE_MAINTAINER_MODE=no
2968 if test $USE_MAINTAINER_MODE = yes; then
2975 # Check whether --enable-locallisppath was given.
2976 if test "${enable_locallisppath+set}" = set; then :
2977 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2979 elif test "${enableval}" != "yes"; then
2980 locallisppath=${enableval}
2985 # Check whether --enable-checking was given.
2986 if test "${enable_checking+set}" = set; then :
2987 enableval=$enable_checking; ac_checking_flags="${enableval}"
2990 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2991 for check in $ac_checking_flags
2994 # these set all the flags to specific states
2995 yes) ac_enable_checking=1 ;;
2996 no) ac_enable_checking= ;
2997 ac_gc_check_stringbytes= ;
2998 ac_gc_check_string_overrun= ;
2999 ac_gc_check_string_free_list= ;
3000 ac_xmalloc_overrun= ;
3001 ac_gc_check_cons_list= ;;
3002 all) ac_enable_checking=1 ;
3003 ac_gc_check_stringbytes=1 ;
3004 ac_gc_check_string_overrun=1 ;
3005 ac_gc_check_string_free_list=1 ;
3006 ac_xmalloc_overrun=1 ;
3007 ac_gc_check_cons_list=1 ;;
3008 # these enable particular checks
3009 stringbytes) ac_gc_check_stringbytes=1 ;;
3010 stringoverrun) ac_gc_check_string_overrun=1 ;;
3011 stringfreelist) ac_gc_check_string_free_list=1 ;;
3012 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3013 conslist) ac_gc_check_cons_list=1 ;;
3014 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3019 if test x$ac_enable_checking != x ; then
3021 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3024 if test x$ac_gc_check_stringbytes != x ; then
3026 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3029 if test x$ac_gc_check_stringoverrun != x ; then
3031 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3034 if test x$ac_gc_check_string_free_list != x ; then
3036 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3039 if test x$ac_xmalloc_overrun != x ; then
3041 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3044 if test x$ac_gc_check_cons_list != x ; then
3046 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3050 # Check whether --enable-use-lisp-union-type was given.
3051 if test "${enable_use_lisp_union_type+set}" = set; then :
3052 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3054 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3061 # Check whether --enable-profiling was given.
3062 if test "${enable_profiling+set}" = set; then :
3063 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3066 if test x$ac_enable_profiling != x ; then
3067 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3073 # Check whether --enable-autodepend was given.
3074 if test "${enable_autodepend+set}" = set; then :
3075 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3077 ac_enable_autodepend=yes
3081 #### Make srcdir absolute, if it isn't already. It's important to
3082 #### avoid running the path through pwd unnecessarily, since pwd can
3083 #### give you automounter prefixes, which can go away. We do all this
3084 #### so Emacs can find its files when run uninstalled.
3085 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3090 ## We may be able to use the $PWD environment variable to make this
3091 ## absolute. But sometimes PWD is inaccurate.
3092 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3093 ## but that tested only for a well-formed and valid PWD,
3094 ## it did not object when PWD was well-formed and valid but just wrong.
3095 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3099 srcdir="`(cd ${srcdir}; pwd)`"
3102 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3105 #### Check if the source directory already has a configured system in it.
3106 if test `pwd` != `(cd ${srcdir} && pwd)` \
3107 && test -f "${srcdir}/src/config.h" ; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3109 as a build directory right now; it has been configured in its own
3110 right. To configure in another directory as well, you MUST
3111 use GNU make. If you do not have GNU make, then you must
3112 now do \`make distclean' in ${srcdir},
3113 and
then run
$0 again.
" >&5
3114 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3115 as a build directory right now; it has been configured in its own
3116 right. To configure in another directory as well, you MUST
3117 use GNU make. If you do not have GNU make, then you must
3118 now do \`make distclean
' in ${srcdir},
3119 and then run $0 again." >&2;}
3122 #### Given the configuration name, set machfile and opsysfile to the
3123 #### names of the m/*.h and s/*.h files we should use.
3125 ### Canonicalize the configuration name.
3128 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3129 if test -f "$ac_dir/install-sh"; then
3131 ac_install_sh="$ac_aux_dir/install-sh -c"
3133 elif test -f "$ac_dir/install.sh"; then
3135 ac_install_sh="$ac_aux_dir/install.sh -c"
3137 elif test -f "$ac_dir/shtool"; then
3139 ac_install_sh="$ac_aux_dir/shtool install -c"
3143 if test -z "$ac_aux_dir"; then
3144 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's
source tree is
in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3152 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3153 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3156 # Make sure we can run config.sub.
3157 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3158 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3161 $as_echo_n "checking build system type... " >&6; }
3162 if ${ac_cv_build+:} false
; then :
3163 $as_echo_n "(cached) " >&6
3165 ac_build_alias
=$build_alias
3166 test "x$ac_build_alias" = x
&&
3167 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x
&&
3169 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3170 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3171 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3175 $as_echo "$ac_cv_build" >&6; }
3176 case $ac_cv_build in
3178 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3181 ac_save_IFS
=$IFS; IFS
='-'
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3191 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3195 $as_echo_n "checking host system type... " >&6; }
3196 if ${ac_cv_host+:} false
; then :
3197 $as_echo_n "(cached) " >&6
3199 if test "x$host_alias" = x
; then
3200 ac_cv_host
=$ac_cv_build
3202 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3203 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3208 $as_echo "$ac_cv_host" >&6; }
3211 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3214 ac_save_IFS
=$IFS; IFS
='-'
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3224 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3228 configuration
=${host_alias-${build_alias-$host}}
3232 ### If you add support for a new configuration, add code to this
3233 ### switch statement to recognize your configuration name and select
3234 ### the appropriate operating system and machine description files.
3236 ### You would hope that you could choose an m/*.h file pretty much
3237 ### based on the machine portion of the configuration name, and an s/*.h
3238 ### file based on the operating system portion. However, it turns out
3239 ### that each m/*.h file is pretty manufacturer-specific - for
3240 ### example mips.h is MIPS
3241 ### So we basically have to have a special case for each
3242 ### configuration name.
3244 ### As far as handling version numbers on operating systems is
3245 ### concerned, make sure things will fail in a fixable way. If
3246 ### /etc/MACHINES doesn't say anything about version numbers, be
3247 ### prepared to handle anything reasonably. If version numbers
3248 ### matter, be sure /etc/MACHINES says something about it.
3250 machine
='' opsys
='' unported
=no
3251 case "${canonical}" in
3256 case ${canonical} in
3257 alpha
*) machine
=alpha
;;
3258 s390-
*) machine
=ibms390
;;
3259 s390x-
*) machine
=ibms390x
;;
3260 powerpc
*) machine
=macppc
;;
3261 sparc
*) machine
=sparc
;;
3262 ia64
*) machine
=ia64
;;
3263 m68k
*) machine
=m68k
;;
3264 x86_64
*) machine
=amdx86-64
;;
3271 case "${canonical}" in
3272 alpha
*) machine
=alpha
;;
3273 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3274 ia64-
*) machine
=ia64
;;
3275 i
[3456]86-*) machine
=intel386
;;
3276 powerpc-
*) machine
=macppc
;;
3277 sparc-
*) machine
=sparc
;;
3278 sparc64-
*) machine
=sparc
;;
3282 ## FreeBSD kernel + glibc based userland
3285 case "${canonical}" in
3286 alpha
*) machine
=alpha
;;
3287 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3288 ia64-
*) machine
=ia64
;;
3289 i
[3456]86-*) machine
=intel386
;;
3290 powerpc-
*) machine
=macppc
;;
3291 sparc-
*) machine
=sparc
;;
3292 sparc64-
*) machine
=sparc
;;
3299 case "${canonical}" in
3300 alpha
*) machine
=alpha
;;
3301 x86_64-
*) machine
=amdx86-64
;;
3302 i
[3456]86-*) machine
=intel386
;;
3303 m68k-
*) machine
=m68k
;;
3304 powerpc-
*) machine
=macppc
;;
3305 sparc
*-) machine
=sparc
;;
3306 vax-
*) machine
=vax
;;
3313 case "${canonical}" in
3314 alpha
*) machine
=alpha
;;
3315 x86_64-
*) machine
=amdx86-64
;;
3316 i386-
*) machine
=intel386
;;
3317 powerpc-
*) machine
=macppc
;;
3318 sparc
*) machine
=sparc
;;
3319 vax-
*) machine
=vax
;;
3323 ## Apple Darwin / Mac OS X
3325 case "${canonical}" in
3326 i
[3456]86-* ) machine
=intel386
;;
3327 powerpc-
* ) machine
=macppc
;;
3328 x86_64-
* ) machine
=amdx86-64
;;
3332 # Define CPP as follows to make autoconf work correctly.
3333 CPP
="${CC-cc} -E -no-cpp-precomp"
3334 # Use fink packages if available.
3335 if test -d /sw
/include
&& test -d /sw
/lib
; then
3336 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3337 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3338 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3342 ## HP 9000 series 700 and 800, running HP/UX
3343 hppa
*-hp-hpux10.2
* )
3346 hppa
*-hp-hpux1[1-9]* )
3348 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3352 rs6000-ibm-aix4.
[23]* )
3353 machine
=ibmrs6000 opsys
=aix4-2
3355 powerpc-ibm-aix4.
[23]* )
3356 machine
=ibmrs6000 opsys
=aix4-2
3358 rs6000-ibm-aix
[56]* )
3359 machine
=ibmrs6000 opsys
=aix4-2
3361 powerpc-ibm-aix
[56]* )
3362 machine
=ibmrs6000 opsys
=aix4-2
3365 ## Silicon Graphics machines
3368 machine
=iris4d opsys
=irix6-5
3369 # Without defining _LANGUAGE_C, things get masked out in the headers
3370 # so that, for instance, grepping for `free' in stdlib.h fails and
3371 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3372 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3373 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3378 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3379 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3380 case "${canonical}" in
3381 i
[3456]86-*-* ) machine
=intel386
;;
3382 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3383 sparc
* ) machine
=sparc
;;
3386 case "${canonical}" in
3387 *-sunos5.6
* |
*-solaris2.6
* )
3389 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3392 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3394 emacs_check_sunpro_c
=yes
3395 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3397 *-sunos5* |
*-solaris* )
3399 emacs_check_sunpro_c
=yes
3400 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3403 ## Watch out for a compiler that we know will not work.
3404 case "${canonical}" in
3405 *-solaris* |
*-sunos5* )
3406 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3407 ## /usr/ucb/cc doesn't work;
3408 ## we should find some other compiler that does work.
3416 ## Intel 386 machines where we don't care about the manufacturer.
3419 case "${canonical}" in
3420 *-cygwin ) opsys
=cygwin
;;
3421 *-darwin* ) opsys
=darwin
3422 CPP
="${CC-cc} -E -no-cpp-precomp"
3424 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3425 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3426 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3427 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3436 ### If the code above didn't choose an operating system, just choose
3437 ### an operating system based on the configuration name. You really
3438 ### only want to use this when you have no idea what the right
3439 ### operating system is; if you know what operating systems a machine
3440 ### runs, it's cleaner to make it explicit in the case statement
3442 if test x
"${opsys}" = x
; then
3443 case "${canonical}" in
3444 *-gnu* ) opsys
=gnu
;;
3453 if test $unported = yes; then
3454 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
3455 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3458 if test -n "$machine"; then
3459 machfile
="m/${machine}.h"
3463 opsysfile
="s/${opsys}.h"
3466 #### Choose a compiler.
3467 test -n "$CC" && cc_specified
=yes
3469 # Save the value of CFLAGS that the user specified.
3470 SPECIFIED_CFLAGS
="$CFLAGS"
3473 ac_cpp
='$CPP $CPPFLAGS'
3474 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3479 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false
; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC
="$CC" # Let the user override the test.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$ac_cv_prog_CC"; then
3518 # Extract the first word of "gcc", so it can be a program name with args.
3519 set dummy gcc
; ac_word
=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_CC
="gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3546 if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548 $as_echo "$ac_ct_CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3554 if test "x$ac_ct_CC" = x
; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned
=yes ;;
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3572 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_CC+:} false
; then :
3576 $as_echo_n "(cached) " >&6
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC
="$CC" # Let the user override the test.
3581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir
=.
3586 for ac_exec_ext
in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3610 if test -z "$CC"; then
3611 # Extract the first word of "cc", so it can be a program name with args.
3612 set dummy cc
; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false
; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir
=.
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3630 ac_prog_rejected
=yes
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 if test $ac_prog_rejected = yes; then
3642 # We found a bogon in the path, so make sure we never use it.
3643 set dummy
$ac_cv_prog_CC
3645 if test $# != 0; then
3646 # We chose a different compiler from the bogus one.
3647 # However, it has the same basename, so the bogon will be chosen
3648 # first if we set CC to just the basename; use the full file name.
3650 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 for ac_prog
in cl.exe
3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3671 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false
; then :
3675 $as_echo_n "(cached) " >&6
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC
="$CC" # Let the user override the test.
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 if test -n "$CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 $as_echo "$CC" >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3707 test -n "$CC" && break
3710 if test -z "$CC"; then
3712 for ac_prog
in cl.exe
3714 # Extract the first word of "$ac_prog", so it can be a program name with args.
3715 set dummy
$ac_prog; ac_word
=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3719 $as_echo_n "(cached) " >&6
3721 if test -n "$ac_ct_CC"; then
3722 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir
=.
3729 for ac_exec_ext
in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_ac_ct_CC
="$ac_prog"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 $as_echo "$ac_ct_CC" >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3751 test -n "$ac_ct_CC" && break
3754 if test "x$ac_ct_CC" = x
; then
3757 case $cross_compiling:$ac_tool_warned in
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned
=yes ;;
3770 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $?
"no acceptable C compiler found in \$PATH
3773 See \`config.log' for more details" "$LINENO" 5; }
3775 # Provide some information about the compiler.
3776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3779 for ac_option
in --version -v -V -qversion; do
3780 { { ac_try
="$ac_compiler $ac_option >&5"
3782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3789 if test -s conftest.err; then
3791 ... rest of stderr output deleted ...
3792 10q' conftest.err >conftest.er1
3793 cat conftest.er1 >&5
3795 rm -f conftest.er1 conftest.err
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 ac_clean_files_save=$ac_clean_files
3812 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3813 # Try to create an executable without -o first, disregard a.out.
3814 # It will help us diagnose broken compilers, and finding out an intuition
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3817 $as_echo_n "checking whether the C compiler works... " >&6; }
3818 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3820 # The possible output files:
3821 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3824 for ac_file in $ac_files
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3833 if { { ac_try="$ac_link_default"
3835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3836 *) ac_try_echo
=$ac_try;;
3838 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link_default") 2>&5
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3846 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3847 # so that the user can short-circuit this test for compilers unknown to
3849 for ac_file
in $ac_files ''
3851 test -f "$ac_file" ||
continue
3853 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3856 # We found the default executable, but exeext='' is most
3860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3862 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 # We set ac_cv_exeext here because the later test for it is not
3865 # safe: cross compilers may not add the suffix if given an `-o'
3866 # argument, so we may need to know it at that point already.
3867 # Even if this section looks crufty: it has the advantage of
3874 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3879 if test -z "$ac_file"; then :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error
77 "C compiler cannot create executables
3888 See \`config.log' for more details" "$LINENO" 5; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894 $as_echo_n "checking for C compiler default output file name... " >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 ac_exeext
=$ac_cv_exeext
3899 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3900 ac_clean_files
=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902 $as_echo_n "checking for suffix of executables... " >&6; }
3903 if { { ac_try
="$ac_link"
3905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3915 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3916 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 for ac_file
in conftest.exe conftest conftest.
*; do
3919 test -f "$ac_file" ||
continue
3921 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3922 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details" "$LINENO" 5; }
3933 rm -f conftest conftest
$ac_cv_exeext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3935 $as_echo "$ac_cv_exeext" >&6; }
3937 rm -f conftest.
$ac_ext
3938 EXEEXT
=$ac_cv_exeext
3940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3946 FILE *f = fopen ("conftest.out", "w");
3947 return ferror (f) || fclose (f) != 0;
3953 ac_clean_files
="$ac_clean_files conftest.out"
3954 # Check that the compiler produces executables we can run. If not, either
3955 # the compiler is broken, or we cross compile.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957 $as_echo_n "checking whether we are cross compiling... " >&6; }
3958 if test "$cross_compiling" != yes; then
3959 { { ac_try
="$ac_link"
3961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_link") 2>&5
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 if { ac_try='./conftest$ac_cv_exeext'
3971 { { case "(($ac_try" in
3972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3973 *) ac_try_echo
=$ac_try;;
3975 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_try") 2>&5
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; }; then
3983 if test "$cross_compiling" = maybe
; then
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $?
"cannot run C compiled programs.
3989 If you meant to cross compile, use \`--host'.
3990 See \`config.log' for more details" "$LINENO" 5; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995 $as_echo "$cross_compiling" >&6; }
3997 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3998 ac_clean_files
=$ac_clean_files_save
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if ${ac_cv_objext+:} false
; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4042 See \
`config.log' for more details" "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if ${ac_cv_c_compiler_gnu+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if ${ac_cv_prog_cc_g+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4159 if test "$GCC" = yes; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if ${ac_cv_prog_cc_c89+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_cv_prog_cc_c89=no
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4192 s = g (p, va_arg (v,int));
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 rm -f conftest.$ac_ext
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4268 ## If not using gcc, and on Solaris, and no CPP specified, see if
4269 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4270 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4271 test x"$CPP" = x; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4273 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4275 if ${emacs_cv_sunpro_c+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4292 if ac_fn_c_try_link "$LINENO"; then :
4293 emacs_cv_sunpro_c=yes
4295 emacs_cv_sunpro_c=no
4297 rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4302 $as_echo "$emacs_cv_sunpro_c" >&6; }
4304 if test x"$emacs_cv_sunpro_c" = xyes; then
4305 NON_GNU_CPP="$CC -E -Xs"
4309 #### Some systems specify a CPP to use unless we are using GCC.
4310 #### Now that we know whether we are using GCC, we can decide whether
4311 #### to use that one.
4312 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4317 #### Some systems specify a CC to use unless we are using GCC.
4318 #### Now that we know whether we are using GCC, we can decide whether
4319 #### to use that one.
4320 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4321 test x$cc_specified != xyes
4326 if test x$GCC = xyes; then
4327 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4329 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4343 if test -z "$CPP"; then
4344 if ${ac_cv_prog_CPP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 # Double quotes because CPP needs to be expanded
4348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4362 # include <limits.h>
4364 # include <assert.h>
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4371 # Broken: fails on valid input.
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4386 # Passes both tests.
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.
$ac_ext
4395 if $ac_preproc_ok; then :
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4410 for ac_c_preproc_warn_flag
in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4421 # include <limits.h>
4423 # include <assert.h>
4427 if ac_fn_c_try_cpp
"$LINENO"; then :
4430 # Broken: fails on valid input.
4433 rm -f conftest.err conftest.i conftest.
$ac_ext
4435 # OK, works on sane cases. Now check whether nonexistent headers
4436 # can be detected and how.
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ac_nonexistent.h>
4441 if ac_fn_c_try_cpp
"$LINENO"; then :
4442 # Broken: success on invalid input.
4445 # Passes both tests.
4449 rm -f conftest.err conftest.i conftest.
$ac_ext
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.i conftest.err conftest.
$ac_ext
4454 if $ac_preproc_ok; then :
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4464 ac_cpp
='$CPP $CPPFLAGS'
4465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4472 if ${ac_cv_path_GREP+:} false
; then :
4473 $as_echo_n "(cached) " >&6
4475 if test -z "$GREP"; then
4476 ac_path_GREP_found
=false
4477 # Loop through the user's path and test for each of PROGNAME-LIST
4478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4479 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4482 test -z "$as_dir" && as_dir
=.
4483 for ac_prog
in grep ggrep
; do
4484 for ac_exec_ext
in '' $ac_executable_extensions; do
4485 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4487 # Check for GNU ac_path_GREP and select it if it is found.
4488 # Check for GNU $ac_path_GREP
4489 case `"$ac_path_GREP" --version 2>&1` in
4491 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4494 $as_echo_n 0123456789 >"conftest.in"
4497 cat "conftest.in" "conftest.in" >"conftest.tmp"
4498 mv "conftest.tmp" "conftest.in"
4499 cp "conftest.in" "conftest.nl"
4500 $as_echo 'GREP' >> "conftest.nl"
4501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4502 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4503 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4505 # Best one so far, save it but keep looking for a better one
4506 ac_cv_path_GREP
="$ac_path_GREP"
4507 ac_path_GREP_max
=$ac_count
4509 # 10*(2^10) chars as input seems more than enough
4510 test $ac_count -gt 10 && break
4512 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4515 $ac_path_GREP_found && break 3
4520 if test -z "$ac_cv_path_GREP"; then
4521 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524 ac_cv_path_GREP
=$GREP
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4529 $as_echo "$ac_cv_path_GREP" >&6; }
4530 GREP
="$ac_cv_path_GREP"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4534 $as_echo_n "checking for egrep... " >&6; }
4535 if ${ac_cv_path_EGREP+:} false
; then :
4536 $as_echo_n "(cached) " >&6
4538 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4539 then ac_cv_path_EGREP
="$GREP -E"
4541 if test -z "$EGREP"; then
4542 ac_path_EGREP_found
=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4545 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4548 test -z "$as_dir" && as_dir
=.
4549 for ac_prog
in egrep; do
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4557 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4560 $as_echo_n 0123456789 >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4568 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4569 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP
="$ac_path_EGREP"
4573 ac_path_EGREP_max
=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4581 $ac_path_EGREP_found && break 3
4586 if test -z "$ac_cv_path_EGREP"; then
4587 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590 ac_cv_path_EGREP
=$EGREP
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4596 $as_echo "$ac_cv_path_EGREP" >&6; }
4597 EGREP
="$ac_cv_path_EGREP"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4601 $as_echo_n "checking for ANSI C header files... " >&6; }
4602 if ${ac_cv_header_stdc+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4620 if ac_fn_c_try_compile
"$LINENO"; then :
4621 ac_cv_header_stdc
=yes
4623 ac_cv_header_stdc
=no
4625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4627 if test $ac_cv_header_stdc = yes; then
4628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "memchr" >/dev
/null
2>&1; then :
4638 ac_cv_header_stdc
=no
4644 if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev
/null
2>&1; then :
4655 ac_cv_header_stdc
=no
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then :
4666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4693 if ac_fn_c_try_run
"$LINENO"; then :
4696 ac_cv_header_stdc
=no
4698 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4699 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4705 $as_echo "$ac_cv_header_stdc" >&6; }
4706 if test $ac_cv_header_stdc = yes; then
4708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4714 inttypes.h stdint.h unistd.h
4716 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4719 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4720 cat >>confdefs.h
<<_ACEOF
4721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4731 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4738 if test "$MINIX" = yes; then
4740 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4743 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4746 $as_echo "#define _MINIX 1" >>confdefs.h
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4754 $as_echo_n "(cached) " >&6
4756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4759 # define __EXTENSIONS__ 1
4760 $ac_includes_default
4769 if ac_fn_c_try_compile
"$LINENO"; then :
4770 ac_cv_safe_to_define___extensions__
=yes
4772 ac_cv_safe_to_define___extensions__
=no
4774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4777 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4778 test $ac_cv_safe_to_define___extensions__ = yes &&
4779 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4781 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4783 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4785 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4787 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4791 ### Use -Wno-pointer-sign if the compiler supports it
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4793 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4794 SAVE_CFLAGS
="$CFLAGS"
4795 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4807 if ac_fn_c_try_compile
"$LINENO"; then :
4812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4813 if test $has_option = yes; then
4814 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4817 $as_echo "$has_option" >&6; }
4818 CFLAGS
="$SAVE_CFLAGS"
4822 ### Use -Wdeclaration-after-statement if the compiler supports it
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4824 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4825 SAVE_CFLAGS
="$CFLAGS"
4826 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4838 if ac_fn_c_try_compile
"$LINENO"; then :
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 if test $has_option = yes; then
4845 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4848 $as_echo "$has_option" >&6; }
4849 CFLAGS
="$SAVE_CFLAGS"
4853 ### Use -Wold-style-definition if the compiler supports it
4854 # This can be removed when conversion to standard C is finished.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4856 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4857 SAVE_CFLAGS
="$CFLAGS"
4858 CFLAGS
="$CFLAGS -Wold-style-definition"
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4870 if ac_fn_c_try_compile
"$LINENO"; then :
4875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4876 if test $has_option = yes; then
4877 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4880 $as_echo "$has_option" >&6; }
4881 CFLAGS
="$SAVE_CFLAGS"
4885 ### Use -Wimplicit-function-declaration if the compiler supports it
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4887 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4888 SAVE_CFLAGS
="$CFLAGS"
4889 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4901 if ac_fn_c_try_compile
"$LINENO"; then :
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 if test $has_option = yes; then
4908 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4911 $as_echo "$has_option" >&6; }
4912 CFLAGS
="$SAVE_CFLAGS"
4919 #### Some other nice autoconf tests.
4922 ac_cpp
='$CPP $CPPFLAGS'
4923 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4927 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4928 # On Suns, sometimes $CPP names a directory.
4929 if test -n "$CPP" && test -d "$CPP"; then
4932 if test -z "$CPP"; then
4933 if ${ac_cv_prog_CPP+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 # Double quotes because CPP needs to be expanded
4937 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4940 for ac_c_preproc_warn_flag
in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4951 # include <limits.h>
4953 # include <assert.h>
4957 if ac_fn_c_try_cpp
"$LINENO"; then :
4960 # Broken: fails on valid input.
4963 rm -f conftest.err conftest.i conftest.
$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4971 if ac_fn_c_try_cpp
"$LINENO"; then :
4972 # Broken: success on invalid input.
4975 # Passes both tests.
4979 rm -f conftest.err conftest.i conftest.
$ac_ext
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.i conftest.err conftest.
$ac_ext
4984 if $ac_preproc_ok; then :
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4997 $as_echo "$CPP" >&6; }
4999 for ac_c_preproc_warn_flag
in '' yes
5001 # Use a header file that comes with gcc, so configuring glibc
5002 # with a fresh cross-compiler works.
5003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004 # <limits.h> exists even on freestanding compilers.
5005 # On the NeXT, cc -E runs the code through the compiler's parser,
5006 # not just through cpp. "Syntax error" is here to catch this case.
5007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5010 # include <limits.h>
5012 # include <assert.h>
5016 if ac_fn_c_try_cpp
"$LINENO"; then :
5019 # Broken: fails on valid input.
5022 rm -f conftest.err conftest.i conftest.
$ac_ext
5024 # OK, works on sane cases. Now check whether nonexistent headers
5025 # can be detected and how.
5026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5030 if ac_fn_c_try_cpp
"$LINENO"; then :
5031 # Broken: success on invalid input.
5034 # Passes both tests.
5038 rm -f conftest.err conftest.i conftest.
$ac_ext
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.i conftest.err conftest.
$ac_ext
5043 if $ac_preproc_ok; then :
5046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5048 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5049 See \`config.log' for more details" "$LINENO" 5; }
5053 ac_cpp
='$CPP $CPPFLAGS'
5054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5058 # Find a good install program. We prefer a C program (faster),
5059 # so one script is as good as another. But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5065 # AmigaOS /C/install, which installs bootblocks on floppy discs
5066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069 # OS/2's system install, which has a completely different semantic
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 # Reject install programs that cannot install multiple files.
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5074 if test -z "$INSTALL"; then
5075 if ${ac_cv_path_install+:} false
; then :
5076 $as_echo_n "(cached) " >&6
5078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir
=.
5083 # Account for people who put trailing slashes in PATH elements.
5084 case $as_dir/ in #((
5085 .
/ | .
// |
/[cC
]/* | \
5086 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5087 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5090 # OSF1 and SCO ODT 3.0 have their own names for install.
5091 # Don't use installbsd from OSF since it installs stuff as root
5093 for ac_prog
in ginstall scoinst
install; do
5094 for ac_exec_ext
in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5096 if test $ac_prog = install &&
5097 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5098 # AIX install. It has an incompatible calling convention.
5100 elif test $ac_prog = install &&
5101 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5102 # program-specific install script used by HP pwplus--don't use.
5105 rm -rf conftest.one conftest.two conftest.dir
5106 echo one
> conftest.one
5107 echo two
> conftest.two
5109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5110 test -s conftest.one
&& test -s conftest.two
&&
5111 test -s conftest.dir
/conftest.one
&&
5112 test -s conftest.dir
/conftest.two
5114 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5127 rm -rf conftest.one conftest.two conftest.dir
5130 if test "${ac_cv_path_install+set}" = set; then
5131 INSTALL
=$ac_cv_path_install
5133 # As a last resort, use the slow shell script. Don't cache a
5134 # value for INSTALL within a source directory, because that will
5135 # break other packages using the cache if that directory is
5136 # removed, or if the value is a relative name.
5137 INSTALL
=$ac_install_sh
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5141 $as_echo "$INSTALL" >&6; }
5143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5144 # It thinks the first close brace ends the variable substitution.
5145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5149 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5151 if test "x$RANLIB" = x
; then
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5154 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_RANLIB+:} false
; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$RANLIB"; then
5161 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir
=.
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 RANLIB
=$ac_cv_prog_RANLIB
5181 if test -n "$RANLIB"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5183 $as_echo "$RANLIB" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_RANLIB"; then
5192 ac_ct_RANLIB
=$RANLIB
5193 # Extract the first word of "ranlib", so it can be a program name with args.
5194 set dummy ranlib
; ac_word
=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ac_ct_RANLIB"; then
5201 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5221 if test -n "$ac_ct_RANLIB"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5223 $as_echo "$ac_ct_RANLIB" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_RANLIB" = x
; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned
=yes ;;
5238 RANLIB
=$ac_ct_RANLIB
5241 RANLIB
="$ac_cv_prog_RANLIB"
5246 ## Although we're running on an amd64 kernel, we're actually compiling for
5247 ## the x86 architecture. The user should probably have provided an
5248 ## explicit --build to `configure', but if everything else than the kernel
5249 ## is running in i386 mode, we can help them out.
5250 if test "$machine" = "amdx86-64"; then
5251 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5252 if test "x$ac_cv_have_decl_i386" = xyes
; then :
5256 if test "$ac_cv_have_decl_i386" = "yes"; then
5257 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5259 machfile
="m/${machine}.h"
5263 # Extract the first word of "install-info", so it can be a program name with args.
5264 set dummy install-info
; ac_word
=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 case $INSTALL_INFO in
5272 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir
=.
5280 for ac_exec_ext
in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5294 if test -n "$INSTALL_INFO"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5296 $as_echo "$INSTALL_INFO" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 # Extract the first word of "install-info", so it can be a program name with args.
5304 set dummy install-info
; ac_word
=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 case $INSTALL_INFO in
5312 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5316 for as_dir
in /usr
/sbin
5319 test -z "$as_dir" && as_dir
=.
5320 for ac_exec_ext
in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5334 if test -n "$INSTALL_INFO"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5336 $as_echo "$INSTALL_INFO" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 # Extract the first word of "install-info", so it can be a program name with args.
5344 set dummy install-info
; ac_word
=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
5348 $as_echo_n "(cached) " >&6
5350 case $INSTALL_INFO in
5352 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir
=.
5360 for ac_exec_ext
in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5374 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5375 if test -n "$INSTALL_INFO"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5377 $as_echo "$INSTALL_INFO" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 # Extract the first word of "gzip", so it can be a program name with args.
5385 set dummy
gzip; ac_word
=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_GZIP_PROG+:} false
; then :
5389 $as_echo_n "(cached) " >&6
5393 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir
=.
5401 for ac_exec_ext
in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5415 if test -n "$GZIP_PROG"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5417 $as_echo "$GZIP_PROG" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5426 ## Need makeinfo >= 4.6 (?) to build the manuals.
5427 # Extract the first word of "makeinfo", so it can be a program name with args.
5428 set dummy makeinfo
; ac_word
=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_path_MAKEINFO+:} false
; then :
5432 $as_echo_n "(cached) " >&6
5436 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir
=.
5444 for ac_exec_ext
in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5458 MAKEINFO
=$ac_cv_path_MAKEINFO
5459 if test -n "$MAKEINFO"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5461 $as_echo "$MAKEINFO" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 if test "$MAKEINFO" != "no" && \
5469 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
5473 ## Makeinfo is unusual. For a released Emacs, the manuals are
5474 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5475 ## therefore in the category of "special tools" not normally required, which
5476 ## configure does not have to check for (eg autoconf itself).
5477 ## In a Bazaar checkout on the other hand, the manuals are not included.
5478 ## So makeinfo is a requirement to build from Bazaar, and configure
5479 ## should test for it as it does for any other build requirement.
5480 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5481 ## with pre-built manuals, from a Bazaar checkout.
5484 if test "$MAKEINFO" = "no"; then
5486 if test "x${with_makeinfo}" = "xno"; then
5488 elif test ! -e $srcdir/info
/emacs
; then
5489 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
5490 source tree does not seem to have pre-built manuals in the \`info' directory.
5491 Either install a suitable version of makeinfo, or re-run configure
5492 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5498 if test x
$GCC = xyes
; then
5499 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
5500 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5502 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
5503 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5507 late_LDFLAGS
=$LDFLAGS
5508 if test x
$GCC = xyes
; then
5509 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5511 LDFLAGS
="$LDFLAGS -znocombreloc"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5515 $as_echo_n "checking for -znocombreloc... " >&6; }
5516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5527 if ac_fn_c_try_link
"$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5531 LDFLAGS
=$late_LDFLAGS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5535 rm -f core conftest.err conftest.
$ac_objext \
5536 conftest
$ac_exeext conftest.
$ac_ext
5539 # The value of CPP is a quoted variable reference, so we need to do this
5540 # to get its actual value...
5541 CPP
=`eval "echo $CPP"`
5549 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5556 UNEXEC_OBJ
=unexelf.o
5558 # MSDOS uses unexcoff.o
5559 # MSWindows uses unexw32.o
5561 UNEXEC_OBJ
=unexaix.o
5567 UNEXEC_OBJ
=unexmacosx.o
5570 UNEXEC_OBJ
=unexhp9k800.o
5573 # Use the Solaris dldump() function, called from unexsol.c, to dump
5574 # emacs, instead of the generic ELF dump code found in unexelf.c.
5575 # The resulting binary has a complete symbol table, and is better
5576 # for debugging and other observability tools (debuggers, pstack, etc).
5578 # If you encounter a problem using dldump(), please consider sending
5579 # a message to the OpenSolaris tools-linking mailing list:
5580 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5582 # It is likely that dldump() works with older Solaris too, but this has
5583 # not been tested, so for now this change is for Solaris 10 or newer.
5584 UNEXEC_OBJ
=unexsol.o
5591 ## Let `ld' find image libs and similar things in /usr/local/lib.
5592 ## The system compiler, GCC, has apparently been modified to not
5593 ## look there, contrary to what a stock GCC would do.
5594 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5598 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5599 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
5603 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5607 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5608 ## otherwise Emacs dumps core on elf systems.
5609 LD_SWITCH_SYSTEM
="-Z"
5614 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5616 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5617 ## which has not been defined yet. When this was handled with cpp,
5618 ## it was expanded to null when configure sourced the s/*.h file.
5619 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5620 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5621 ## (or somesuch), but because it is supposed to go at the _front_
5622 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5623 ## Compare with the gnu-linux case below, which added to the end
5624 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5625 ## LD_SWITCH_SYSTEM_TEMACS.
5628 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5629 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5634 if test "$machine" = "alpha"; then
5635 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5636 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
5640 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5641 ## With ELF, make sure that all common symbols get allocated to in the
5642 ## data section. Otherwise, the dump of temacs may miss variables in
5643 ## the shared library that have been initialized. For example, with
5644 ## GNU libc, __malloc_initialized would normally be resolved to the
5645 ## shared library's .bss section, which is fatal.
5646 if test "x$GCC" = "xyes"; then
5647 C_SWITCH_MACHINE
="-fno-common"
5649 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5652 UNEXEC_OBJ
=unexalpha.o
5660 ## Some programs in src produce warnings saying certain subprograms
5661 ## are too complex and need a MAXMEM value greater than 2000 for
5662 ## additional optimization. --nils@exp-math.uni-essen.de
5663 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5664 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5665 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5666 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5672 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5673 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5675 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5677 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5679 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5681 ## Motif needs -lgen.
5682 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5687 ### Make sure subsequent tests use flags consistent with the build flags.
5689 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5690 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5692 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5697 # Check whether --enable-largefile was given.
5698 if test "${enable_largefile+set}" = set; then :
5699 enableval
=$enable_largefile;
5702 if test "$enable_largefile" != no
; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5706 if ${ac_cv_sys_largefile_CC+:} false
; then :
5707 $as_echo_n "(cached) " >&6
5709 ac_cv_sys_largefile_CC
=no
5710 if test "$GCC" != yes; then
5713 # IRIX 6.2 and later do not support large files by default,
5714 # so use the C compiler's -n32 option if that helps.
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5734 if ac_fn_c_try_compile
"$LINENO"; then :
5737 rm -f core conftest.err conftest.
$ac_objext
5739 if ac_fn_c_try_compile
"$LINENO"; then :
5740 ac_cv_sys_largefile_CC
=' -n32'; break
5742 rm -f core conftest.err conftest.
$ac_objext
5746 rm -f conftest.
$ac_ext
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5751 if test "$ac_cv_sys_largefile_CC" != no
; then
5752 CC
=$CC$ac_cv_sys_largefile_CC
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5757 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5758 $as_echo_n "(cached) " >&6
5761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5780 if ac_fn_c_try_compile
"$LINENO"; then :
5781 ac_cv_sys_file_offset_bits
=no
; break
5783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #define _FILE_OFFSET_BITS 64
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5804 if ac_fn_c_try_compile
"$LINENO"; then :
5805 ac_cv_sys_file_offset_bits
=64; break
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5808 ac_cv_sys_file_offset_bits
=unknown
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5814 case $ac_cv_sys_file_offset_bits in #(
5817 cat >>confdefs.h
<<_ACEOF
5818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5823 if test $ac_cv_sys_file_offset_bits = unknown
; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5826 if ${ac_cv_sys_large_files+:} false
; then :
5827 $as_echo_n "(cached) " >&6
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5849 if ac_fn_c_try_compile
"$LINENO"; then :
5850 ac_cv_sys_large_files
=no
; break
5852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #define _LARGE_FILES 1
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5873 if ac_fn_c_try_compile
"$LINENO"; then :
5874 ac_cv_sys_large_files
=1; break
5876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5877 ac_cv_sys_large_files
=unknown
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5882 $as_echo "$ac_cv_sys_large_files" >&6; }
5883 case $ac_cv_sys_large_files in #(
5886 cat >>confdefs.h
<<_ACEOF
5887 #define _LARGE_FILES $ac_cv_sys_large_files
5897 ## If user specified a crt-dir, use that unconditionally.
5898 if test "X$CRT_DIR" = "X"; then
5900 case "$canonical" in
5901 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5902 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5903 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5904 ## For anything else (eg /usr/lib32), it is up the user to specify
5905 ## the location (bug#5655).
5906 ## Test for crtn.o, not just the directory, because sometimes the
5907 ## directory exists but does not have the relevant files (bug#1287).
5908 ## FIXME better to test for binary compatibility somehow.
5909 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5912 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5916 hpux10-20
) CRT_DIR
=/lib
;;
5919 ## Default is /usr/lib.
5920 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5924 ## Some platforms don't use any of these files, so it is not
5925 ## appropriate to put this test outside the if block.
5926 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5927 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
5940 START_FILES
='pre-crt0.o'
5943 ## Adding -lm confuses the dynamic linker, so omit it.
5945 START_FILES
='pre-crt0.o'
5948 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5951 gnu-linux | gnu-kfreebsd
)
5952 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5953 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5955 hpux10-20 | hpux11
)
5957 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5960 if test -f $CRT_DIR/crti.o
; then
5961 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5962 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5964 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5965 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5976 if test "${with_sound}" != "no"; then
5977 # Sound support for GNU/Linux and the free BSDs.
5978 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5980 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5981 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5982 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5983 cat >>confdefs.h
<<_ACEOF
5984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5986 have_sound_header
=yes
5991 # Emulation library used on NetBSD.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5993 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5994 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
5995 $as_echo_n "(cached) " >&6
5997 ac_check_lib_save_LIBS
=$LIBS
5998 LIBS
="-lossaudio $LIBS"
5999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 /* Override any GCC internal prototype to avoid an error.
6003 Use char because int might match the return type of a GCC
6004 builtin and then its argument prototype would still apply. */
6012 return _oss_ioctl ();
6017 if ac_fn_c_try_link
"$LINENO"; then :
6018 ac_cv_lib_ossaudio__oss_ioctl
=yes
6020 ac_cv_lib_ossaudio__oss_ioctl
=no
6022 rm -f core conftest.err conftest.
$ac_objext \
6023 conftest
$ac_exeext conftest.
$ac_ext
6024 LIBS
=$ac_check_lib_save_LIBS
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6027 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6028 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
6037 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6041 # Extract the first word of "pkg-config", so it can be a program name with args.
6042 set dummy pkg-config
; ac_word
=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6046 $as_echo_n "(cached) " >&6
6050 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir
=.
6058 for ac_exec_ext
in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6072 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6073 if test -n "$PKG_CONFIG"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6075 $as_echo "$PKG_CONFIG" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6083 if test "$PKG_CONFIG" = "no" ; then
6086 PKG_CONFIG_MIN_VERSION
=0.9.0
6087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6089 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6091 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093 $as_echo "yes" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6097 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6098 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6100 $as_echo "$ALSA_CFLAGS" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6103 $as_echo_n "checking ALSA_LIBS... " >&6; }
6104 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6106 $as_echo "$ALSA_LIBS" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 ## If we have a custom action on failure, don't print errors, but
6113 ## do set a variable so people can do so.
6114 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6126 if test $succeeded = yes; then
6132 if test $HAVE_ALSA = yes; then
6133 SAVE_CFLAGS
="$CFLAGS"
6134 SAVE_LDFLAGS
="$LDFLAGS"
6135 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6136 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <asoundlib.h>
6143 snd_lib_error_set_handler (0);
6148 if ac_fn_c_try_compile
"$LINENO"; then :
6149 emacs_alsa_normal
=yes
6151 emacs_alsa_normal
=no
6153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6154 if test "$emacs_alsa_normal" != yes; then
6155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <alsa/asoundlib.h>
6161 snd_lib_error_set_handler (0);
6166 if ac_fn_c_try_compile
"$LINENO"; then :
6167 emacs_alsa_subdir
=yes
6169 emacs_alsa_subdir
=no
6171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 if test "$emacs_alsa_subdir" != yes; then
6173 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6175 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6178 CFLAGS
="$SAVE_CFLAGS"
6179 LDFLAGS
="$SAVE_LDFLAGS"
6180 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6181 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6183 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6187 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6189 gnu-linux|freebsd|netbsd
)
6191 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6200 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
6201 linux
/version.h sys
/systeminfo.h limits.h \
6202 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
6203 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6204 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6208 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6209 cat >>confdefs.h
<<_ACEOF
6210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <sys/personality.h>
6226 personality (PER_LINUX32)
6231 if ac_fn_c_try_compile
"$LINENO"; then :
6232 emacs_cv_personality_linux32
=yes
6234 emacs_cv_personality_linux32
=no
6236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6238 $as_echo "$emacs_cv_personality_linux32" >&6; }
6240 if test $emacs_cv_personality_linux32 = yes; then
6242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6246 for ac_header
in term.h
6248 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6249 if test "x$ac_cv_header_term_h" = xyes
; then :
6250 cat >>confdefs.h
<<_ACEOF
6251 #define HAVE_TERM_H 1
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6259 $as_echo_n "checking for ANSI C header files... " >&6; }
6260 if ${ac_cv_header_stdc+:} false
; then :
6261 $as_echo_n "(cached) " >&6
6263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6278 if ac_fn_c_try_compile
"$LINENO"; then :
6279 ac_cv_header_stdc
=yes
6281 ac_cv_header_stdc
=no
6283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 if test $ac_cv_header_stdc = yes; then
6286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "memchr" >/dev
/null
2>&1; then :
6296 ac_cv_header_stdc
=no
6302 if test $ac_cv_header_stdc = yes; then
6303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "free" >/dev
/null
2>&1; then :
6313 ac_cv_header_stdc
=no
6319 if test $ac_cv_header_stdc = yes; then
6320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6321 if test "$cross_compiling" = yes; then :
6324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6351 if ac_fn_c_try_run
"$LINENO"; then :
6354 ac_cv_header_stdc
=no
6356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6363 $as_echo "$ac_cv_header_stdc" >&6; }
6364 if test $ac_cv_header_stdc = yes; then
6366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6372 if ${ac_cv_header_time+:} false
; then :
6373 $as_echo_n "(cached) " >&6
6375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <sys/time.h>
6384 if ((struct tm *) 0)
6390 if ac_fn_c_try_compile
"$LINENO"; then :
6391 ac_cv_header_time
=yes
6393 ac_cv_header_time
=no
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6398 $as_echo "$ac_cv_header_time" >&6; }
6399 if test $ac_cv_header_time = yes; then
6401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6405 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6406 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
6412 cat >>confdefs.h
<<_ACEOF
6413 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6416 if test $ac_cv_have_decl_sys_siglist != yes; then
6417 # For Tru64, at least:
6418 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6419 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
6425 cat >>confdefs.h
<<_ACEOF
6426 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6429 if test $ac_cv_have_decl___sys_siglist = yes; then
6431 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6436 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6437 if ${ac_cv_header_sys_wait_h+:} false
; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <sys/types.h>
6443 #include <sys/wait.h>
6445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 ac_cv_header_sys_wait_h
=yes
6464 ac_cv_header_sys_wait_h
=no
6466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6469 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6470 if test $ac_cv_header_sys_wait_h = yes; then
6472 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6478 $as_echo_n "checking for struct utimbuf... " >&6; }
6479 if ${emacs_cv_struct_utimbuf+:} false
; then :
6480 $as_echo_n "(cached) " >&6
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6500 static struct utimbuf x; x.actime = x.modtime;
6505 if ac_fn_c_try_compile
"$LINENO"; then :
6506 emacs_cv_struct_utimbuf
=yes
6508 emacs_cv_struct_utimbuf
=no
6510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6513 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6514 if test $emacs_cv_struct_utimbuf = yes; then
6516 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6521 $as_echo_n "checking return type of signal handlers... " >&6; }
6522 if ${ac_cv_type_signal+:} false
; then :
6523 $as_echo_n "(cached) " >&6
6525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6533 return *(signal (0, 0)) (0) == 1;
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 ac_cv_type_signal
=int
6541 ac_cv_type_signal
=void
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6546 $as_echo "$ac_cv_type_signal" >&6; }
6548 cat >>confdefs.h
<<_ACEOF
6549 #define RETSIGTYPE $ac_cv_type_signal
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6555 $as_echo_n "checking for speed_t... " >&6; }
6556 if ${emacs_cv_speed_t+:} false
; then :
6557 $as_echo_n "(cached) " >&6
6559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <termios.h>
6570 if ac_fn_c_try_compile
"$LINENO"; then :
6571 emacs_cv_speed_t
=yes
6575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6578 $as_echo "$emacs_cv_speed_t" >&6; }
6579 if test $emacs_cv_speed_t = yes; then
6581 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6586 $as_echo_n "checking for struct timeval... " >&6; }
6587 if ${emacs_cv_struct_timeval+:} false
; then :
6588 $as_echo_n "(cached) " >&6
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #ifdef TIME_WITH_SYS_TIME
6593 #include <sys/time.h>
6596 #ifdef HAVE_SYS_TIME_H
6597 #include <sys/time.h>
6605 static struct timeval x; x.tv_sec = x.tv_usec;
6610 if ac_fn_c_try_compile
"$LINENO"; then :
6611 emacs_cv_struct_timeval
=yes
6613 emacs_cv_struct_timeval
=no
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6618 $as_echo "$emacs_cv_struct_timeval" >&6; }
6619 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6622 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6627 $as_echo_n "checking for struct exception... " >&6; }
6628 if ${emacs_cv_struct_exception+:} false
; then :
6629 $as_echo_n "(cached) " >&6
6631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6642 if ac_fn_c_try_compile
"$LINENO"; then :
6643 emacs_cv_struct_exception
=yes
6645 emacs_cv_struct_exception
=no
6647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6650 $as_echo "$emacs_cv_struct_exception" >&6; }
6651 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6652 if test $emacs_cv_struct_exception != yes; then
6654 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6658 for ac_header
in sys
/socket.h
6660 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6661 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
6662 cat >>confdefs.h
<<_ACEOF
6663 #define HAVE_SYS_SOCKET_H 1
6670 for ac_header
in net
/if.h
6672 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6673 #if HAVE_SYS_SOCKET_H
6674 #include <sys/socket.h>
6677 if test "x$ac_cv_header_net_if_h" = xyes
; then :
6678 cat >>confdefs.h
<<_ACEOF
6679 #define HAVE_NET_IF_H 1
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6688 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6689 if ${ac_cv_struct_tm+:} false
; then :
6690 $as_echo_n "(cached) " >&6
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6701 int *p = &tm.tm_sec;
6707 if ac_fn_c_try_compile
"$LINENO"; then :
6708 ac_cv_struct_tm
=time.h
6710 ac_cv_struct_tm
=sys
/time.h
6712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6715 $as_echo "$ac_cv_struct_tm" >&6; }
6716 if test $ac_cv_struct_tm = sys
/time.h
; then
6718 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6722 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6723 #include <$ac_cv_struct_tm>
6726 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6728 cat >>confdefs.h
<<_ACEOF
6729 #define HAVE_STRUCT_TM_TM_ZONE 1
6735 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6737 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6740 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6742 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6748 cat >>confdefs.h
<<_ACEOF
6749 #define HAVE_DECL_TZNAME $ac_have_decl
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6753 $as_echo_n "checking for tzname... " >&6; }
6754 if ${ac_cv_var_tzname+:} false
; then :
6755 $as_echo_n "(cached) " >&6
6757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6760 #if !HAVE_DECL_TZNAME
6761 extern char *tzname[];
6767 return tzname[0][0];
6772 if ac_fn_c_try_link
"$LINENO"; then :
6773 ac_cv_var_tzname
=yes
6777 rm -f core conftest.err conftest.
$ac_objext \
6778 conftest
$ac_exeext conftest.
$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6781 $as_echo "$ac_cv_var_tzname" >&6; }
6782 if test $ac_cv_var_tzname = yes; then
6784 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6789 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6791 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6793 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6797 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6798 #if HAVE_SYS_SOCKET_H
6799 #include <sys/socket.h>
6805 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
6807 cat >>confdefs.h
<<_ACEOF
6808 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6813 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6814 #if HAVE_SYS_SOCKET_H
6815 #include <sys/socket.h>
6821 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
6823 cat >>confdefs.h
<<_ACEOF
6824 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6829 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6830 #if HAVE_SYS_SOCKET_H
6831 #include <sys/socket.h>
6837 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
6839 cat >>confdefs.h
<<_ACEOF
6840 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6845 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6853 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
6855 cat >>confdefs.h
<<_ACEOF
6856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6861 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6862 #if HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6869 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
6871 cat >>confdefs.h
<<_ACEOF
6872 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6881 $as_echo_n "checking for function prototypes... " >&6; }
6882 if test "$ac_cv_prog_cc_c89" != no
; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6886 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6889 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6897 $as_echo_n "checking for working volatile... " >&6; }
6898 if ${ac_cv_c_volatile+:} false
; then :
6899 $as_echo_n "(cached) " >&6
6901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6909 int * volatile y = (int *) 0;
6915 if ac_fn_c_try_compile
"$LINENO"; then :
6916 ac_cv_c_volatile
=yes
6920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6923 $as_echo "$ac_cv_c_volatile" >&6; }
6924 if test $ac_cv_c_volatile = no
; then
6926 $as_echo "#define volatile /**/" >>confdefs.h
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6932 if ${ac_cv_c_const+:} false
; then :
6933 $as_echo_n "(cached) " >&6
6935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6941 /* FIXME: Include the comments suggested by Paul. */
6943 /* Ultrix mips cc rejects this. */
6944 typedef int charset[2];
6946 /* SunOS 4.1.1 cc rejects this. */
6947 char const *const *pcpcc;
6949 /* NEC SVR4.0.2 mips cc rejects this. */
6950 struct point {int x, y;};
6951 static struct point const zero = {0,0};
6952 /* AIX XL C 1.02.0.0 rejects this.
6953 It does not let you subtract one const X* pointer from another in
6954 an arm of an if-expression whose if-part is not a constant
6956 const char *g = "string";
6957 pcpcc = &g + (g ? g-g : 0);
6958 /* HPUX 7.0 cc rejects these. */
6960 ppc = (char**) pcpcc;
6961 pcpcc = (char const *const *) ppc;
6962 { /* SCO 3.2v4 cc rejects this. */
6964 char const *s = 0 ? (char *) 0 : (char const *) 0;
6969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6971 const int *foo = &x[0];
6974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6975 typedef const int *iptr;
6979 { /* AIX XL C 1.02.0.0 rejects this saying
6980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6981 struct s { int j; const int *ap[3]; };
6982 struct s *b; b->j = 5;
6984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6988 return !cs[0] && !zero.x;
6995 if ac_fn_c_try_compile
"$LINENO"; then :
7000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7003 $as_echo "$ac_cv_c_const" >&6; }
7004 if test $ac_cv_c_const = no
; then
7006 $as_echo "#define const /**/" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7011 $as_echo_n "checking for void * support... " >&6; }
7012 if ${emacs_cv_void_star+:} false
; then :
7013 $as_echo_n "(cached) " >&6
7015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7026 if ac_fn_c_try_compile
"$LINENO"; then :
7027 emacs_cv_void_star
=yes
7029 emacs_cv_void_star
=no
7031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7034 $as_echo "$emacs_cv_void_star" >&6; }
7035 if test $emacs_cv_void_star = yes; then
7036 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7039 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7045 if ${ac_cv_c_bigendian+:} false
; then :
7046 $as_echo_n "(cached) " >&6
7048 ac_cv_c_bigendian
=unknown
7049 # See if we're dealing with a universal compiler.
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifndef __APPLE_CC__
7053 not a universal capable compiler
7058 if ac_fn_c_try_compile
"$LINENO"; then :
7060 # Check for potential -arch flags. It is not universal unless
7061 # there are at least two -arch flags with different values.
7064 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7065 if test -n "$ac_prev"; then
7067 i?
86 | x86_64 | ppc | ppc64
)
7068 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7071 ac_cv_c_bigendian
=universal
7077 elif test "x$ac_word" = "x-arch"; then
7082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 if test $ac_cv_c_bigendian = unknown
; then
7084 # See if sys/param.h defines the BYTE_ORDER macro.
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/param.h>
7093 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7094 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7103 if ac_fn_c_try_compile
"$LINENO"; then :
7104 # It does; now see whether it defined to BIG_ENDIAN or not.
7105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/param.h>
7113 #if BYTE_ORDER != BIG_ENDIAN
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 ac_cv_c_bigendian
=yes
7124 ac_cv_c_bigendian
=no
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7130 if test $ac_cv_c_bigendian = unknown
; then
7131 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7139 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7147 if ac_fn_c_try_compile
"$LINENO"; then :
7148 # It does; now see whether it defined to _BIG_ENDIAN or not.
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7164 if ac_fn_c_try_compile
"$LINENO"; then :
7165 ac_cv_c_bigendian
=yes
7167 ac_cv_c_bigendian
=no
7169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7173 if test $ac_cv_c_bigendian = unknown
; then
7174 # Compile a test program.
7175 if test "$cross_compiling" = yes; then :
7176 # Try to guess by grepping values from an object file.
7177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 short int ascii_mm[] =
7180 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7181 short int ascii_ii[] =
7182 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7183 int use_ascii (int i) {
7184 return ascii_mm[i] + ascii_ii[i];
7186 short int ebcdic_ii[] =
7187 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7188 short int ebcdic_mm[] =
7189 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7190 int use_ebcdic (int i) {
7191 return ebcdic_mm[i] + ebcdic_ii[i];
7198 return use_ascii (foo) == use_ebcdic (foo);
7203 if ac_fn_c_try_compile
"$LINENO"; then :
7204 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7205 ac_cv_c_bigendian
=yes
7207 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7208 if test "$ac_cv_c_bigendian" = unknown
; then
7209 ac_cv_c_bigendian
=no
7211 # finding both strings is unlikely to happen, but who knows?
7212 ac_cv_c_bigendian
=unknown
7216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 $ac_includes_default
7225 /* Are we little or big endian? From Harbison&Steele. */
7229 char c[sizeof (long int)];
7232 return u.c[sizeof (long int) - 1] == 1;
7238 if ac_fn_c_try_run
"$LINENO"; then :
7239 ac_cv_c_bigendian
=no
7241 ac_cv_c_bigendian
=yes
7243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7244 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7250 $as_echo "$ac_cv_c_bigendian" >&6; }
7251 case $ac_cv_c_bigendian in #(
7253 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7259 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7263 as_fn_error $?
"unknown endianness
7264 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7271 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7272 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7273 $as_echo_n "(cached) " >&6
7275 cat >conftest.
make <<\_ACEOF
7278 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7283 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7285 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7289 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 SET_MAKE
="MAKE=${MAKE-make}"
7303 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7305 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7307 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7308 if test "x$testval" != x
; then
7311 ac_enable_autodepend
=no
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7314 $as_echo "$HAVE_GNU_MAKE" >&6; }
7315 if test $HAVE_GNU_MAKE = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7317 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7318 SAVE_CFLAGS
="$CFLAGS"
7319 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7331 if ac_fn_c_try_compile
"$LINENO"; then :
7334 ac_enable_autodepend
=no
7336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7337 CFLAGS
="$SAVE_CFLAGS"
7338 test -f deps.d || ac_enable_autodepend
=no
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7341 $as_echo "$ac_enable_autodepend" >&6; }
7343 if test $ac_enable_autodepend = yes; then
7344 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7345 ## In parallel builds, another make might create depdir between
7346 ## the first test and mkdir, so stick another test on the end.
7347 ## Or use mkinstalldirs? mkdir -p is not portable.
7348 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7349 deps_frag
=autodeps.mk
7352 deps_frag
=$srcdir/src
/$deps_frag
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7359 $as_echo_n "checking for long file names... " >&6; }
7360 if ${ac_cv_sys_long_file_names+:} false
; then :
7361 $as_echo_n "(cached) " >&6
7363 ac_cv_sys_long_file_names
=yes
7364 # Test for long file names in all the places we know might matter:
7365 # . the current directory, where building will happen
7366 # $prefix/lib where we will be installing things
7367 # $exec_prefix/lib likewise
7368 # $TMPDIR if set, where it might want to write temporary files
7369 # /tmp where it might want to write temporary files
7372 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7373 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7374 # in the usual case where exec_prefix is '${prefix}'.
7376 . |
/* | ?
:[\\/]*) ;; #(
7379 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7380 ac_xdir
=$ac_dir/cf$$
7381 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7382 ac_tf1
=$ac_xdir/conftest9012345
7383 ac_tf2
=$ac_xdir/conftest9012346
7384 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7385 ac_cv_sys_long_file_names
=no
7386 rm -f -r "$ac_xdir" 2>/dev
/null
7387 test $ac_cv_sys_long_file_names = no
&& break
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7391 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7392 if test $ac_cv_sys_long_file_names = yes; then
7394 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7399 #### Choose a window system.
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7402 $as_echo_n "checking for X... " >&6; }
7405 # Check whether --with-x was given.
7406 if test "${with_x+set}" = set; then :
7410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7411 if test "x$with_x" = xno
; then
7412 # The user explicitly disabled X.
7415 case $x_includes,$x_libraries in #(
7416 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
7417 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
7418 $as_echo_n "(cached) " >&6
7420 # One or both of the vars are not set, and there is no cached value.
7421 ac_x_includes
=no ac_x_libraries
=no
7422 rm -f -r conftest.dir
7423 if mkdir conftest.dir
; then
7425 cat >Imakefile
<<'_ACEOF'
7427 @echo incroot='${INCROOT}'
7429 @echo usrlibdir='${USRLIBDIR}'
7431 @echo libdir='${LIBDIR}'
7433 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7435 for ac_var
in incroot usrlibdir libdir
; do
7436 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7438 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7439 for ac_extension
in a so sl dylib la dll
; do
7440 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7441 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7442 ac_im_usrlibdir
=$ac_im_libdir; break
7445 # Screen out bogus values from the imake configuration. They are
7446 # bogus both because they are the default anyway, and because
7447 # using them would break gcc on systems where it needs fixed includes.
7448 case $ac_im_incroot in
7449 /usr
/include
) ac_x_includes
= ;;
7450 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7452 case $ac_im_usrlibdir in
7453 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7454 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7458 rm -f -r conftest.dir
7461 # Standard set of common directories for X headers.
7462 # Check X11 before X11Rn because it is often a symlink to the current release.
7476 /usr/local/X11/include
7477 /usr/local/X11R7/include
7478 /usr/local/X11R6/include
7479 /usr/local/X11R5/include
7480 /usr/local/X11R4/include
7482 /usr/local/include/X11
7483 /usr/local/include/X11R7
7484 /usr/local/include/X11R6
7485 /usr/local/include/X11R5
7486 /usr/local/include/X11R4
7490 /usr/XFree86/include/X11
7494 /usr/unsupported/include
7496 /usr/local/x11r5/include
7497 /usr/lpp/Xamples/include
7499 /usr/openwin/include
7500 /usr/openwin/share/include'
7502 if test "$ac_x_includes" = no
; then
7503 # Guess where to find include files, by looking for Xlib.h.
7504 # First, try using that file with no special directory specified.
7505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7509 if ac_fn_c_try_cpp
"$LINENO"; then :
7510 # We can compile using X headers with no special include directory.
7513 for ac_dir
in $ac_x_header_dirs; do
7514 if test -r "$ac_dir/X11/Xlib.h"; then
7515 ac_x_includes
=$ac_dir
7520 rm -f conftest.err conftest.i conftest.
$ac_ext
7521 fi # $ac_x_includes = no
7523 if test "$ac_x_libraries" = no
; then
7524 # Check for the libraries.
7525 # See if we find them without any special options.
7526 # Don't add to $LIBS permanently.
7529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <X11/Xlib.h>
7540 if ac_fn_c_try_link
"$LINENO"; then :
7542 # We can link X programs with no special library path.
7546 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7548 # Don't even attempt the hair of trying to link an X program!
7549 for ac_extension
in a so sl dylib la dll
; do
7550 if test -r "$ac_dir/libX11.$ac_extension"; then
7551 ac_x_libraries
=$ac_dir
7557 rm -f core conftest.err conftest.
$ac_objext \
7558 conftest
$ac_exeext conftest.
$ac_ext
7559 fi # $ac_x_libraries = no
7561 case $ac_x_includes,$ac_x_libraries in #(
7563 # Didn't find X, or a directory has "'" in its name.
7564 ac_cv_have_x
="have_x=no";; #(
7566 # Record where we found X for the cache.
7567 ac_cv_have_x
="have_x=yes\
7568 ac_x_includes='$ac_x_includes'\
7569 ac_x_libraries='$ac_x_libraries'"
7575 eval "$ac_cv_have_x"
7578 if test "$have_x" != yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7580 $as_echo "$have_x" >&6; }
7583 # If each of the values was on the command line, it overrides each guess.
7584 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7585 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7586 # Update the cache value to reflect the command line values.
7587 ac_cv_have_x
="have_x=yes\
7588 ac_x_includes='$x_includes'\
7589 ac_x_libraries='$x_libraries'"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7591 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7594 if test "$no_x" = yes; then
7600 ## Workaround for bug in autoconf <= 2.62.
7601 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7602 ## No need to do anything special for these standard directories.
7603 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7605 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7609 LD_SWITCH_X_SITE_AUX
=
7610 LD_SWITCH_X_SITE_AUX_RPATH
=
7611 if test "${x_libraries}" != NONE
; then
7612 if test -n "${x_libraries}"; then
7613 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7614 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7615 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7617 x_default_search_path
=""
7618 x_search_path
=${x_libraries}
7619 if test -z "${x_search_path}"; then
7620 x_search_path
=/usr
/lib
7622 for x_library
in `echo ${x_search_path}: | \
7623 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7625 ${x_library}/X11/%L/%T/%N%C%S:\
7626 ${x_library}/X11/%l/%T/%N%C%S:\
7627 ${x_library}/X11/%T/%N%C%S:\
7628 ${x_library}/X11/%L/%T/%N%S:\
7629 ${x_library}/X11/%l/%T/%N%S:\
7630 ${x_library}/X11/%T/%N%S"
7631 if test x
"${x_default_search_path}" = x
; then
7632 x_default_search_path
=${x_search_path}
7634 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7641 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7642 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7645 if test x
"${x_includes}" = x
; then
7646 bitmapdir
=/usr
/include
/X11
/bitmaps
7648 # accumulate include directories that have X11 bitmap subdirectories
7650 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7651 if test -d "${bmd}/X11/bitmaps"; then
7652 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7654 if test -d "${bmd}/bitmaps"; then
7655 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7658 if test ${bmd_acc} != "dummyval"; then
7659 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7666 tmp_CPPFLAGS
="$CPPFLAGS"
7667 tmp_CFLAGS
="$CFLAGS"
7668 CPPFLAGS
="$CPPFLAGS -x objective-c"
7669 CFLAGS
="$CFLAGS -x objective-c"
7670 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7671 if test "${with_ns}" != no
; then
7672 if test "${opsys}" = darwin
; then
7674 ns_appdir
=`pwd`/nextstep
/Emacs.app
7675 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
7676 ns_appresdir
=${ns_appdir}/Contents
/Resources
7677 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7678 elif test -f $GNUSTEP_CONFIG_FILE; then
7680 ns_appdir
=`pwd`/nextstep
/Emacs.app
7681 ns_appbindir
=${ns_appdir}/
7682 ns_appresdir
=${ns_appdir}/Resources
7683 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7684 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7685 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7686 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7687 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7688 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7689 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7690 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7691 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7692 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7693 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7694 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7699 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7700 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
7703 as_fn_error $?
"\`--with-ns' was specified, but the include
7704 files are missing or cannot be compiled." "$LINENO" 5
7708 NS_HAVE_NSINTEGER
=yes
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <Foundation/NSObjCRuntime.h>
7720 if ac_fn_c_try_compile
"$LINENO"; then :
7721 ns_have_nsinteger
=yes
7723 ns_have_nsinteger
=no
7725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7726 if test $ns_have_nsinteger = no
; then
7727 NS_HAVE_NSINTEGER
=no
7735 if test "${HAVE_NS}" = yes; then
7736 window_system
=nextstep
7738 # set up packaging dirs
7739 exec_prefix
=${ns_appbindir}
7740 libexecdir
=${ns_appbindir}/libexec
7741 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7742 prefix
=${ns_appresdir}
7744 ns_frag
=$srcdir/src
/ns.mk
7745 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7746 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7748 CFLAGS
="$tmp_CFLAGS"
7749 CPPFLAGS
="$tmp_CPPFLAGS"
7755 case "${window_system}" in
7759 case "${with_x_toolkit}" in
7760 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7761 motif
) USE_X_TOOLKIT
=MOTIF
;;
7763 USE_X_TOOLKIT
=none
;;
7764 gtk3
) with_gtk3
=yes
7765 USE_X_TOOLKIT
=none
;;
7766 no
) USE_X_TOOLKIT
=none
;;
7767 * ) USE_X_TOOLKIT
=maybe
;;
7777 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7778 # Extract the first word of "X", so it can be a program name with args.
7779 set dummy X
; ac_word
=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
7783 $as_echo_n "(cached) " >&6
7785 if test -n "$HAVE_XSERVER"; then
7786 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir
=.
7793 for ac_exec_ext
in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_HAVE_XSERVER
="true"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7806 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7807 if test -n "$HAVE_XSERVER"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7809 $as_echo "$HAVE_XSERVER" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 if test "$HAVE_XSERVER" = true ||
7817 test -n "$DISPLAY" ||
7818 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7819 as_fn_error $?
"You seem to be running X, but no X development libraries
7820 were found. You should install the relevant development files for X
7821 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7822 sure you have development files for image handling, i.e.
7823 tiff, gif, jpeg, png and xpm.
7824 If you are sure you want Emacs compiled without X window support, pass
7826 to configure." "$LINENO" 5
7830 ### If we're using X11, we should use the X menu package.
7833 yes ) HAVE_MENUS
=yes ;;
7836 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7837 # Assume not, until told otherwise.
7840 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7841 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
7847 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7848 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7855 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7856 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
7857 $as_echo_n "(cached) " >&6
7859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 extern void (* __after_morecore_hook)();
7865 __after_morecore_hook = 0
7870 if ac_fn_c_try_link
"$LINENO"; then :
7871 emacs_cv_var___after_morecore_hook
=yes
7873 emacs_cv_var___after_morecore_hook
=no
7875 rm -f core conftest.err conftest.
$ac_objext \
7876 conftest
$ac_exeext conftest.
$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7879 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7880 if test $emacs_cv_var___after_morecore_hook = no
; then
7887 ## darwin ld insists on the use of malloc routines in the System framework.
7888 darwin|sol2-10
) system_malloc
=yes ;;
7891 if test "${system_malloc}" = "yes"; then
7893 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7897 (The GNU allocators don't work with this system configuration.)"
7901 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7902 VMLIMIT_OBJ
=vm-limit.o
7907 if test "$doug_lea_malloc" = "yes" ; then
7908 if test "$GNU_MALLOC" = yes ; then
7910 (Using Doug Lea's new malloc from the GNU C Library.)"
7913 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7916 ## Use mmap directly for allocating larger buffers.
7917 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7918 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7919 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7921 gnu
*) REL_ALLOC
=no
;;
7925 if test x
"${REL_ALLOC}" = x
; then
7926 REL_ALLOC
=${GNU_MALLOC}
7929 use_mmap_for_buffers
=no
7931 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7937 for ac_header
in $ac_header_list
7939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7942 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7943 cat >>confdefs.h
<<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7958 for ac_func
in getpagesize
7960 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7961 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7962 cat >>confdefs.h
<<_ACEOF
7963 #define HAVE_GETPAGESIZE 1
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7970 $as_echo_n "checking for working mmap... " >&6; }
7971 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7972 $as_echo_n "(cached) " >&6
7974 if test "$cross_compiling" = yes; then :
7975 ac_cv_func_mmap_fixed_mapped
=no
7977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 $ac_includes_default
7980 /* malloc might have been renamed as rpl_malloc. */
7983 /* Thanks to Mike Haertel and Jim Avera for this test.
7984 Here is a matrix of mmap possibilities:
7985 mmap private not fixed
7986 mmap private fixed at somewhere currently unmapped
7987 mmap private fixed at somewhere already mapped
7988 mmap shared not fixed
7989 mmap shared fixed at somewhere currently unmapped
7990 mmap shared fixed at somewhere already mapped
7991 For private mappings, we should verify that changes cannot be read()
7992 back from the file, nor mmap's back from the file at a different
7993 address. (There have been systems where private was not correctly
7994 implemented like the infamous i386 svr4.0, and systems where the
7995 VM page cache was not coherent with the file system buffer cache
7996 like early versions of FreeBSD and possibly contemporary NetBSD.)
7997 For shared mappings, we should conversely verify that changes get
7998 propagated back to all the places they're supposed to be.
8000 Grep wants private fixed already mapped.
8001 The main things grep needs to know about mmap are:
8002 * does it exist and is it safe to write into the mmap'd area
8003 * how to use it (BSD variants) */
8006 #include <sys/mman.h>
8008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8012 /* This mess was copied from the GNU getpagesize.h. */
8013 #ifndef HAVE_GETPAGESIZE
8014 # ifdef _SC_PAGESIZE
8015 # define getpagesize() sysconf(_SC_PAGESIZE)
8016 # else /* no _SC_PAGESIZE */
8017 # ifdef HAVE_SYS_PARAM_H
8018 # include <sys/param.h>
8019 # ifdef EXEC_PAGESIZE
8020 # define getpagesize() EXEC_PAGESIZE
8021 # else /* no EXEC_PAGESIZE */
8023 # define getpagesize() NBPG * CLSIZE
8026 # endif /* no CLSIZE */
8027 # else /* no NBPG */
8029 # define getpagesize() NBPC
8030 # else /* no NBPC */
8032 # define getpagesize() PAGESIZE
8033 # endif /* PAGESIZE */
8034 # endif /* no NBPC */
8035 # endif /* no NBPG */
8036 # endif /* no EXEC_PAGESIZE */
8037 # else /* no HAVE_SYS_PARAM_H */
8038 # define getpagesize() 8192 /* punt totally */
8039 # endif /* no HAVE_SYS_PARAM_H */
8040 # endif /* no _SC_PAGESIZE */
8042 #endif /* no HAVE_GETPAGESIZE */
8047 char *data, *data2, *data3;
8052 pagesize = getpagesize ();
8054 /* First, make a file with some known garbage in it. */
8055 data = (char *) malloc (pagesize);
8058 for (i = 0; i < pagesize; ++i)
8059 *(data + i) = rand ();
8061 fd = creat ("conftest.mmap", 0600);
8064 if (write (fd, data, pagesize) != pagesize)
8068 /* Next, check that the tail of a page is zero-filled. File must have
8069 non-zero length, otherwise we risk SIGBUS for entire page. */
8070 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8074 if (write (fd2, cdata2, 1) != 1)
8076 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8077 if (data2 == MAP_FAILED)
8079 for (i = 0; i < pagesize; ++i)
8083 if (munmap (data2, pagesize))
8086 /* Next, try to mmap the file at a fixed address which already has
8087 something else allocated at it. If we can, also make sure that
8088 we see the same garbage. */
8089 fd = open ("conftest.mmap", O_RDWR);
8092 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8093 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8095 for (i = 0; i < pagesize; ++i)
8096 if (*(data + i) != *(data2 + i))
8099 /* Finally, make sure that changes to the mapped area do not
8100 percolate back to the file as seen by read(). (This is a bug on
8101 some variants of i386 svr4.0.) */
8102 for (i = 0; i < pagesize; ++i)
8103 *(data2 + i) = *(data2 + i) + 1;
8104 data3 = (char *) malloc (pagesize);
8107 if (read (fd, data3, pagesize) != pagesize)
8109 for (i = 0; i < pagesize; ++i)
8110 if (*(data + i) != *(data3 + i))
8116 if ac_fn_c_try_run
"$LINENO"; then :
8117 ac_cv_func_mmap_fixed_mapped
=yes
8119 ac_cv_func_mmap_fixed_mapped
=no
8121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8127 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8128 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8130 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8133 rm -f conftest.mmap conftest.txt
8135 if test $use_mmap_for_buffers = yes; then
8137 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8142 LIBS
="$LIBS_SYSTEM $LIBS"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8145 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8146 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
8147 $as_echo_n "(cached) " >&6
8149 ac_check_lib_save_LIBS
=$LIBS
8151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8164 return dnet_ntoa ();
8169 if ac_fn_c_try_link
"$LINENO"; then :
8170 ac_cv_lib_dnet_dnet_ntoa
=yes
8172 ac_cv_lib_dnet_dnet_ntoa
=no
8174 rm -f core conftest.err conftest.
$ac_objext \
8175 conftest
$ac_exeext conftest.
$ac_ext
8176 LIBS
=$ac_check_lib_save_LIBS
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8179 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8180 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
8181 cat >>confdefs.h
<<_ACEOF
8182 #define HAVE_LIBDNET 1
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8191 $as_echo_n "checking for main in -lXbsd... " >&6; }
8192 if ${ac_cv_lib_Xbsd_main+:} false
; then :
8193 $as_echo_n "(cached) " >&6
8195 ac_check_lib_save_LIBS
=$LIBS
8197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8209 if ac_fn_c_try_link
"$LINENO"; then :
8210 ac_cv_lib_Xbsd_main
=yes
8212 ac_cv_lib_Xbsd_main
=no
8214 rm -f core conftest.err conftest.
$ac_objext \
8215 conftest
$ac_exeext conftest.
$ac_ext
8216 LIBS
=$ac_check_lib_save_LIBS
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8219 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8220 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
8221 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8226 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8227 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
8228 $as_echo_n "(cached) " >&6
8230 ac_check_lib_save_LIBS
=$LIBS
8231 LIBS
="-lpthreads $LIBS"
8232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8250 if ac_fn_c_try_link
"$LINENO"; then :
8251 ac_cv_lib_pthreads_cma_open
=yes
8253 ac_cv_lib_pthreads_cma_open
=no
8255 rm -f core conftest.err conftest.
$ac_objext \
8256 conftest
$ac_exeext conftest.
$ac_ext
8257 LIBS
=$ac_check_lib_save_LIBS
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8260 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8261 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
8262 cat >>confdefs.h
<<_ACEOF
8263 #define HAVE_LIBPTHREADS 1
8266 LIBS
="-lpthreads $LIBS"
8271 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8272 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8273 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8274 ## added to LIBS in configure would never contain the pthreads part,
8275 ## but the value used in Makefiles might. FIXME?
8277 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8278 ## be harmless on older versions of X where it happens to exist.
8279 test "$opsys" = "aix4-2" && \
8280 test $ac_cv_lib_pthreads_cma_open = yes && \
8281 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8287 $as_echo_n "checking for -bbigtoc option... " >&6; }
8288 if ${gdb_cv_bigtoc+:} false
; then :
8289 $as_echo_n "(cached) " >&6
8293 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8294 *) gdb_cv_bigtoc
=-bbigtoc ;;
8297 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8309 if ac_fn_c_try_link
"$LINENO"; then :
8314 rm -f core conftest.err conftest.
$ac_objext \
8315 conftest
$ac_exeext conftest.
$ac_ext
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8319 $as_echo "$gdb_cv_bigtoc" >&6; }
8323 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8324 # used for the tests that follow. We set them back to REAL_CFLAGS and
8325 # REAL_CPPFLAGS later on.
8327 REAL_CFLAGS
="$CFLAGS"
8328 REAL_CPPFLAGS
="$CPPFLAGS"
8330 if test "${HAVE_X11}" = "yes"; then
8331 DEFS
="$C_SWITCH_X_SITE $DEFS"
8332 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8334 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8335 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8337 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8338 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8339 # but it's more convenient here to set LD_RUN_PATH
8340 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8341 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8342 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8346 if test "${opsys}" = "gnu-linux"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8348 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8355 XOpenDisplay ("foo");
8360 if ac_fn_c_try_link
"$LINENO"; then :
8361 xlinux_first_failure
=no
8363 xlinux_first_failure
=yes
8365 rm -f core conftest.err conftest.
$ac_objext \
8366 conftest
$ac_exeext conftest.
$ac_ext
8367 if test "${xlinux_first_failure}" = "yes"; then
8368 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8369 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8370 OLD_CPPFLAGS
="$CPPFLAGS"
8372 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8373 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8374 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8375 LIBS
="$LIBS -b i486-linuxaout"
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8382 XOpenDisplay ("foo");
8387 if ac_fn_c_try_link
"$LINENO"; then :
8388 xlinux_second_failure
=no
8390 xlinux_second_failure
=yes
8392 rm -f core conftest.err conftest.
$ac_objext \
8393 conftest
$ac_exeext conftest.
$ac_ext
8394 if test "${xlinux_second_failure}" = "yes"; then
8395 # If we get the same failure with -b, there is no use adding -b.
8396 # So take it out. This plays safe.
8397 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8398 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8399 CPPFLAGS
="$OLD_CPPFLAGS"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8413 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8414 # header files included from there.
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8416 $as_echo_n "checking for Xkb... " >&6; }
8417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <X11/Xlib.h>
8420 #include <X11/XKBlib.h>
8424 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8429 if ac_fn_c_try_link
"$LINENO"; then :
8434 rm -f core conftest.err conftest.
$ac_objext \
8435 conftest
$ac_exeext conftest.
$ac_ext
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8437 $as_echo "$emacs_xkb" >&6; }
8438 if test $emacs_xkb = yes; then
8440 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8444 for ac_func
in XrmSetDatabase XScreenResourceString \
8445 XScreenNumberOfScreen XSetWMProtocols
8447 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8449 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8450 cat >>confdefs.h
<<_ACEOF
8451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8459 if test "${window_system}" = "x11"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8461 $as_echo_n "checking X11 version 6... " >&6; }
8462 if ${emacs_cv_x11_version_6+:} false
; then :
8463 $as_echo_n "(cached) " >&6
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <X11/Xlib.h>
8471 #if XlibSpecificationRelease < 6
8479 if ac_fn_c_try_link
"$LINENO"; then :
8480 emacs_cv_x11_version_6
=yes
8482 emacs_cv_x11_version_6
=no
8484 rm -f core conftest.err conftest.
$ac_objext \
8485 conftest
$ac_exeext conftest.
$ac_ext
8488 if test $emacs_cv_x11_version_6 = yes; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8490 $as_echo "6 or newer" >&6; }
8492 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8495 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8497 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8502 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8508 $as_echo "before 6" >&6; }
8513 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8515 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8516 if test "${with_rsvg}" != "no"; then
8517 RSVG_REQUIRED
=2.11.0
8518 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8523 # Extract the first word of "pkg-config", so it can be a program name with args.
8524 set dummy pkg-config
; ac_word
=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8528 $as_echo_n "(cached) " >&6
8532 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8539 test -z "$as_dir" && as_dir
=.
8540 for ac_exec_ext
in '' $ac_executable_extensions; do
8541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8542 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8554 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8555 if test -n "$PKG_CONFIG"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8557 $as_echo "$PKG_CONFIG" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8565 if test "$PKG_CONFIG" = "no" ; then
8568 PKG_CONFIG_MIN_VERSION
=0.9.0
8569 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8571 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8573 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8579 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8580 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8582 $as_echo "$RSVG_CFLAGS" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8585 $as_echo_n "checking RSVG_LIBS... " >&6; }
8586 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8588 $as_echo "$RSVG_LIBS" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8594 ## If we have a custom action on failure, don't print errors, but
8595 ## do set a variable so people can do so.
8596 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8608 if test $succeeded = yes; then
8617 if test $HAVE_RSVG = yes; then
8619 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8621 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8622 LIBS
="$RSVG_LIBS $LIBS"
8628 if test "${HAVE_X11}" = "yes"; then
8629 if test "${with_imagemagick}" != "no"; then
8630 IMAGEMAGICK_MODULE
="Wand"
8634 # Extract the first word of "pkg-config", so it can be a program name with args.
8635 set dummy pkg-config
; ac_word
=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8639 $as_echo_n "(cached) " >&6
8643 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir
=.
8651 for ac_exec_ext
in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8665 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8666 if test -n "$PKG_CONFIG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8668 $as_echo "$PKG_CONFIG" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8676 if test "$PKG_CONFIG" = "no" ; then
8679 PKG_CONFIG_MIN_VERSION
=0.9.0
8680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8682 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8684 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686 $as_echo "yes" >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8690 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8691 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8693 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8696 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8697 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8699 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 IMAGEMAGICK_CFLAGS
=""
8705 ## If we have a custom action on failure, don't print errors, but
8706 ## do set a variable so people can do so.
8707 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8719 if test $succeeded = yes; then
8720 HAVE_IMAGEMAGICK
=yes
8728 if test $HAVE_IMAGEMAGICK = yes; then
8730 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8732 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8733 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8734 for ac_func
in MagickExportImagePixels
8736 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8737 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
8738 cat >>confdefs.h
<<_ACEOF
8739 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8751 if test "${with_gtk3}" = "yes"; then
8754 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8759 # Extract the first word of "pkg-config", so it can be a program name with args.
8760 set dummy pkg-config
; ac_word
=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8764 $as_echo_n "(cached) " >&6
8768 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir
=.
8776 for ac_exec_ext
in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8790 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8791 if test -n "$PKG_CONFIG"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8793 $as_echo "$PKG_CONFIG" >&6; }
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8801 if test "$PKG_CONFIG" = "no" ; then
8804 PKG_CONFIG_MIN_VERSION
=0.9.0
8805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8807 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811 $as_echo "yes" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8815 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8816 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8818 $as_echo "$GTK_CFLAGS" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8821 $as_echo_n "checking GTK_LIBS... " >&6; }
8822 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8824 $as_echo "$GTK_LIBS" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8830 ## If we have a custom action on failure, don't print errors, but
8831 ## do set a variable so people can do so.
8832 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8844 if test $succeeded = yes; then
8850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8851 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8855 if test "$pkg_check_gtk" != "yes"; then
8857 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8860 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8865 # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config
; ac_word
=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8870 $as_echo_n "(cached) " >&6
8874 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8881 test -z "$as_dir" && as_dir
=.
8882 for ac_exec_ext
in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8896 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8897 if test -n "$PKG_CONFIG"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8899 $as_echo "$PKG_CONFIG" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8907 if test "$PKG_CONFIG" = "no" ; then
8910 PKG_CONFIG_MIN_VERSION
=0.9.0
8911 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8913 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8915 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8917 $as_echo "yes" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8921 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8922 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8924 $as_echo "$GTK_CFLAGS" >&6; }
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8927 $as_echo_n "checking GTK_LIBS... " >&6; }
8928 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8930 $as_echo "$GTK_LIBS" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8936 ## If we have a custom action on failure, don't print errors, but
8937 ## do set a variable so people can do so.
8938 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8950 if test $succeeded = yes; then
8956 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8957 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8963 if test x
"$pkg_check_gtk" = xyes
; then
8967 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8968 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8969 LIBS
="$GTK_LIBS $LIBS"
8971 for ac_func
in gtk_main
8973 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8974 if test "x$ac_cv_func_gtk_main" = xyes
; then :
8975 cat >>confdefs.h
<<_ACEOF
8976 #define HAVE_GTK_MAIN 1
8982 if test "${GTK_COMPILES}" != "yes"; then
8983 if test "$USE_X_TOOLKIT" != "maybe"; then
8984 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8989 $as_echo "#define USE_GTK 1" >>confdefs.h
8993 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8997 closing open displays. This is no problem if you just use
8998 one display, but if you use more than one and close one of them
8999 Emacs may crash." >&5
9000 $as_echo "$as_me: 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." >&2;}
9012 if test "${HAVE_GTK}" = "yes"; then
9014 if test "$with_toolkit_scroll_bars" != no
; then
9015 with_toolkit_scroll_bars
=yes
9018 HAVE_GTK_FILE_SELECTION
=no
9019 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9020 #include <gtk/gtk.h>
9022 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
9023 HAVE_GTK_FILE_SELECTION
=yes
9025 HAVE_GTK_FILE_SELECTION
=no
9028 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9029 for ac_func
in gtk_file_selection_new
9031 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9032 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
9033 cat >>confdefs.h
<<_ACEOF
9034 #define HAVE_GTK_FILE_SELECTION_NEW 1
9042 HAVE_GTK_AND_PTHREAD
=no
9043 for ac_header
in pthread.h
9045 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9046 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_PTHREAD_H 1
9055 if test "$ac_cv_header_pthread_h"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9057 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9058 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
9059 $as_echo_n "(cached) " >&6
9061 ac_check_lib_save_LIBS
=$LIBS
9062 LIBS
="-lpthread $LIBS"
9063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9072 char pthread_self ();
9076 return pthread_self ();
9081 if ac_fn_c_try_link
"$LINENO"; then :
9082 ac_cv_lib_pthread_pthread_self
=yes
9084 ac_cv_lib_pthread_pthread_self
=no
9086 rm -f core conftest.err conftest.
$ac_objext \
9087 conftest
$ac_exeext conftest.
$ac_ext
9088 LIBS
=$ac_check_lib_save_LIBS
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9091 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9092 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
9093 HAVE_GTK_AND_PTHREAD
=yes
9097 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9098 case "${canonical}" in
9100 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9103 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9107 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9108 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9109 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9110 gtk_orientable_set_orientation
9112 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9114 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9115 cat >>confdefs.h
<<_ACEOF
9116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9127 if test "${with_dbus}" = "yes"; then
9131 # Extract the first word of "pkg-config", so it can be a program name with args.
9132 set dummy pkg-config
; ac_word
=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9136 $as_echo_n "(cached) " >&6
9140 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9147 test -z "$as_dir" && as_dir
=.
9148 for ac_exec_ext
in '' $ac_executable_extensions; do
9149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9162 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9163 if test -n "$PKG_CONFIG"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9165 $as_echo "$PKG_CONFIG" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test "$PKG_CONFIG" = "no" ; then
9176 PKG_CONFIG_MIN_VERSION
=0.9.0
9177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9179 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9181 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9183 $as_echo "yes" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9187 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9188 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9190 $as_echo "$DBUS_CFLAGS" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9193 $as_echo_n "checking DBUS_LIBS... " >&6; }
9194 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9196 $as_echo "$DBUS_LIBS" >&6; }
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9202 ## If we have a custom action on failure, don't print errors, but
9203 ## do set a variable so people can do so.
9204 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9216 if test $succeeded = yes; then
9222 if test "$HAVE_DBUS" = yes; then
9223 LIBS
="$LIBS $DBUS_LIBS"
9225 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9227 for ac_func
in dbus_watch_get_unix_fd
9229 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9230 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
9231 cat >>confdefs.h
<<_ACEOF
9232 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9244 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9248 # Extract the first word of "pkg-config", so it can be a program name with args.
9249 set dummy pkg-config
; ac_word
=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9253 $as_echo_n "(cached) " >&6
9257 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9264 test -z "$as_dir" && as_dir
=.
9265 for ac_exec_ext
in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9279 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9280 if test -n "$PKG_CONFIG"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9282 $as_echo "$PKG_CONFIG" >&6; }
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9290 if test "$PKG_CONFIG" = "no" ; then
9293 PKG_CONFIG_MIN_VERSION
=0.9.0
9294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9296 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9298 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9304 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9305 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9307 $as_echo "$GCONF_CFLAGS" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9310 $as_echo_n "checking GCONF_LIBS... " >&6; }
9311 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9313 $as_echo "$GCONF_LIBS" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9319 ## If we have a custom action on failure, don't print errors, but
9320 ## do set a variable so people can do so.
9321 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9333 if test $succeeded = yes; then
9339 if test "$HAVE_GCONF" = yes; then
9341 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9343 for ac_func
in g_type_init
9345 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9346 if test "x$ac_cv_func_g_type_init" = xyes
; then :
9347 cat >>confdefs.h
<<_ACEOF
9348 #define HAVE_G_TYPE_INIT 1
9359 if test "${with_selinux}" = "yes"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9361 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9362 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
9363 $as_echo_n "(cached) " >&6
9365 ac_check_lib_save_LIBS
=$LIBS
9366 LIBS
="-lselinux $LIBS"
9367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9376 char lgetfilecon ();
9380 return lgetfilecon ();
9385 if ac_fn_c_try_link
"$LINENO"; then :
9386 ac_cv_lib_selinux_lgetfilecon
=yes
9388 ac_cv_lib_selinux_lgetfilecon
=no
9390 rm -f core conftest.err conftest.
$ac_objext \
9391 conftest
$ac_exeext conftest.
$ac_ext
9392 LIBS
=$ac_check_lib_save_LIBS
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9395 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9396 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
9402 if test "$HAVE_LIBSELINUX" = yes; then
9404 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9406 LIBSELINUX_LIBS
=-lselinux
9412 if test "${with_gnutls}" = "yes" ; then
9416 # Extract the first word of "pkg-config", so it can be a program name with args.
9417 set dummy pkg-config
; ac_word
=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9421 $as_echo_n "(cached) " >&6
9425 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9432 test -z "$as_dir" && as_dir
=.
9433 for ac_exec_ext
in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9447 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9448 if test -n "$PKG_CONFIG"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9450 $as_echo "$PKG_CONFIG" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9458 if test "$PKG_CONFIG" = "no" ; then
9461 PKG_CONFIG_MIN_VERSION
=0.9.0
9462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9464 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9466 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9468 $as_echo "yes" >&6; }
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9472 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9473 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9475 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9478 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9479 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9481 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9487 ## If we have a custom action on failure, don't print errors, but
9488 ## do set a variable so people can do so.
9489 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9501 if test $succeeded = yes; then
9507 if test "${HAVE_GNUTLS}" = "yes"; then
9509 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9518 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9519 if test "$with_xaw3d" != no
; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9521 $as_echo_n "checking for xaw3d... " >&6; }
9522 if ${emacs_cv_xaw3d+:} false
; then :
9523 $as_echo_n "(cached) " >&6
9525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9528 #include <X11/Intrinsic.h>
9529 #include <X11/Xaw3d/Simple.h>
9538 if ac_fn_c_try_link
"$LINENO"; then :
9543 rm -f core conftest.err conftest.
$ac_objext \
9544 conftest
$ac_exeext conftest.
$ac_ext
9550 if test $emacs_cv_xaw3d = yes; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9552 $as_echo "yes; using Lucid toolkit" >&6; }
9557 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9563 $as_echo_n "checking for libXaw... " >&6; }
9564 if ${emacs_cv_xaw+:} false
; then :
9565 $as_echo_n "(cached) " >&6
9567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 #include <X11/Intrinsic.h>
9571 #include <X11/Xaw/Simple.h>
9580 if ac_fn_c_try_link
"$LINENO"; then :
9585 rm -f core conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9589 if test $emacs_cv_xaw = yes; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9591 $as_echo "yes; using Lucid toolkit" >&6; }
9594 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9595 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9598 $as_echo "no; do not use toolkit by default" >&6; }
9604 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9607 if test "${USE_X_TOOLKIT}" != "none"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9609 $as_echo_n "checking X11 toolkit version... " >&6; }
9610 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
9611 $as_echo_n "(cached) " >&6
9613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 #include <X11/Intrinsic.h>
9619 #if XtSpecificationRelease < 6
9627 if ac_fn_c_try_link
"$LINENO"; then :
9628 emacs_cv_x11_toolkit_version_6
=yes
9630 emacs_cv_x11_toolkit_version_6
=no
9632 rm -f core conftest.err conftest.
$ac_objext \
9633 conftest
$ac_exeext conftest.
$ac_ext
9636 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9637 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9639 $as_echo "6 or newer" >&6; }
9641 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9643 LIBXTR6
="-lSM -lICE"
9645 ## Use libw.a along with X11R6 Xt.
9646 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9650 $as_echo "before 6" >&6; }
9654 if test x
$HAVE_X11XTR6 = xyes
; then
9655 LIBS
="-lXt -lSM -lICE $LIBS"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9660 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9661 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
9662 $as_echo_n "(cached) " >&6
9664 ac_check_lib_save_LIBS
=$LIBS
9666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9675 char XmuConvertStandardSelection ();
9679 return XmuConvertStandardSelection ();
9684 if ac_fn_c_try_link
"$LINENO"; then :
9685 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9687 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9689 rm -f core conftest.err conftest.
$ac_objext \
9690 conftest
$ac_exeext conftest.
$ac_ext
9691 LIBS
=$ac_check_lib_save_LIBS
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9694 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9695 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
9696 cat >>confdefs.h
<<_ACEOF
9697 #define HAVE_LIBXMU 1
9704 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9710 ## These systems don't supply Xmu.
9712 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9717 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${USE_X_TOOLKIT}" != "none"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9721 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9722 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
9723 $as_echo_n "(cached) " >&6
9725 ac_check_lib_save_LIBS
=$LIBS
9727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9736 char XShapeQueryExtension ();
9740 return XShapeQueryExtension ();
9745 if ac_fn_c_try_link
"$LINENO"; then :
9746 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9748 ac_cv_lib_Xext_XShapeQueryExtension
=no
9750 rm -f core conftest.err conftest.
$ac_objext \
9751 conftest
$ac_exeext conftest.
$ac_ext
9752 LIBS
=$ac_check_lib_save_LIBS
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9755 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9756 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
9757 cat >>confdefs.h
<<_ACEOF
9758 #define HAVE_LIBXEXT 1
9769 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9771 $as_echo_n "checking for Motif version 2.1... " >&6; }
9772 if ${emacs_cv_motif_version_2_1+:} false
; then :
9773 $as_echo_n "(cached) " >&6
9775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9781 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9784 Motif version prior to 2.1.
9790 if ac_fn_c_try_compile
"$LINENO"; then :
9791 emacs_cv_motif_version_2_1
=yes
9793 emacs_cv_motif_version_2_1
=no
9795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9798 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9799 if test $emacs_cv_motif_version_2_1 = yes; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9801 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9802 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
9803 $as_echo_n "(cached) " >&6
9805 ac_check_lib_save_LIBS
=$LIBS
9807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9816 char XpCreateContext ();
9820 return XpCreateContext ();
9825 if ac_fn_c_try_link
"$LINENO"; then :
9826 ac_cv_lib_Xp_XpCreateContext
=yes
9828 ac_cv_lib_Xp_XpCreateContext
=no
9830 rm -f core conftest.err conftest.
$ac_objext \
9831 conftest
$ac_exeext conftest.
$ac_ext
9832 LIBS
=$ac_check_lib_save_LIBS
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9835 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9836 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9842 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9843 if ${emacs_cv_lesstif+:} false
; then :
9844 $as_echo_n "(cached) " >&6
9846 # We put this in CFLAGS temporarily to precede other -I options
9847 # that might be in CFLAGS temporarily.
9848 # We put this in CPPFLAGS where it precedes the other -I options.
9849 OLD_CPPFLAGS
=$CPPFLAGS
9851 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9852 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9864 if ac_fn_c_try_compile
"$LINENO"; then :
9865 emacs_cv_lesstif
=yes
9869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9872 $as_echo "$emacs_cv_lesstif" >&6; }
9873 if test $emacs_cv_lesstif = yes; then
9874 # Make sure this -I option remains in CPPFLAGS after it is set
9875 # back to REAL_CPPFLAGS.
9876 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9877 # have those other -I options anyway. Ultimately, having this
9878 # directory ultimately in CPPFLAGS will be enough.
9879 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9880 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9883 CPPFLAGS
=$OLD_CPPFLAGS
9889 USE_TOOLKIT_SCROLL_BARS
=no
9890 if test "${with_toolkit_scroll_bars}" != "no"; then
9891 if test "${USE_X_TOOLKIT}" != "none"; then
9892 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9893 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9896 USE_TOOLKIT_SCROLL_BARS
=yes
9897 elif test "${HAVE_XAW3D}" = "yes"; then
9898 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9900 USE_TOOLKIT_SCROLL_BARS
=yes
9902 elif test "${HAVE_GTK}" = "yes"; then
9903 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9905 USE_TOOLKIT_SCROLL_BARS
=yes
9906 elif test "${HAVE_NS}" = "yes"; then
9907 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9909 USE_TOOLKIT_SCROLL_BARS
=yes
9913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9916 #include <X11/Xlib.h>
9917 #include <X11/Xresource.h>
9926 if ac_fn_c_try_compile
"$LINENO"; then :
9929 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9937 if test "${with_xim}" != "no"; then
9939 $as_echo "#define USE_XIM 1" >>confdefs.h
9944 if test "${HAVE_XIM}" != "no"; then
9946 if test "$GCC" = yes; then
9947 CFLAGS
="$CFLAGS --pedantic-errors"
9949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9952 #include <X11/Xlib.h>
9953 #include <X11/Xresource.h>
9962 XPointer *client_data;
9964 /* If we're not using GCC, it's probably not XFree86, and this is
9965 probably right, but we can't use something like --pedantic-errors. */
9966 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9967 char*, XIMProc, XPointer*);
9969 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9975 if ac_fn_c_try_compile
"$LINENO"; then :
9976 emacs_cv_arg6_star
=yes
9978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9979 if test "$emacs_cv_arg6_star" = yes; then
9980 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9983 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9989 ### Start of font-backend (under any platform) section.
9990 # (nothing here yet -- this is a placeholder)
9991 ### End of font-backend (under any platform) section.
9993 ### Start of font-backend (under X11) section.
9994 if test "${HAVE_X11}" = "yes"; then
9998 # Extract the first word of "pkg-config", so it can be a program name with args.
9999 set dummy pkg-config
; ac_word
=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10003 $as_echo_n "(cached) " >&6
10005 case $PKG_CONFIG in
10007 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10011 for as_dir
in $PATH
10014 test -z "$as_dir" && as_dir
=.
10015 for ac_exec_ext
in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10029 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10030 if test -n "$PKG_CONFIG"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10032 $as_echo "$PKG_CONFIG" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 if test "$PKG_CONFIG" = "no" ; then
10043 PKG_CONFIG_MIN_VERSION
=0.9.0
10044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10046 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10048 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10054 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10055 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10057 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10060 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10061 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10063 $as_echo "$FONTCONFIG_LIBS" >&6; }
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 FONTCONFIG_CFLAGS
=""
10069 ## If we have a custom action on failure, don't print errors, but
10070 ## do set a variable so people can do so.
10071 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10083 if test $succeeded = yes; then
10090 ## Use -lXft if available, unless `--with-xft=no'.
10092 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10095 if test "x${with_xft}" != "xno"; then
10100 # Extract the first word of "pkg-config", so it can be a program name with args.
10101 set dummy pkg-config
; ac_word
=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10105 $as_echo_n "(cached) " >&6
10107 case $PKG_CONFIG in
10109 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10113 for as_dir
in $PATH
10116 test -z "$as_dir" && as_dir
=.
10117 for ac_exec_ext
in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10131 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10132 if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134 $as_echo "$PKG_CONFIG" >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$PKG_CONFIG" = "no" ; then
10145 PKG_CONFIG_MIN_VERSION
=0.9.0
10146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10148 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10150 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10156 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10157 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10159 $as_echo "$XFT_CFLAGS" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10162 $as_echo_n "checking XFT_LIBS... " >&6; }
10163 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10165 $as_echo "$XFT_LIBS" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10171 ## If we have a custom action on failure, don't print errors, but
10172 ## do set a variable so people can do so.
10173 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10185 if test $succeeded = yes; then
10191 ## Because xftfont.c uses XRenderQueryExtension, we also
10192 ## need to link to -lXrender.
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10195 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10196 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
10197 $as_echo_n "(cached) " >&6
10199 ac_check_lib_save_LIBS
=$LIBS
10200 LIBS
="-lXrender $LIBS"
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10210 char XRenderQueryExtension ();
10214 return XRenderQueryExtension ();
10219 if ac_fn_c_try_link
"$LINENO"; then :
10220 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10222 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10224 rm -f core conftest.err conftest.
$ac_objext \
10225 conftest
$ac_exeext conftest.
$ac_ext
10226 LIBS
=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10229 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10230 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
10234 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10235 OLD_CPPFLAGS
="$CPPFLAGS"
10236 OLD_CFLAGS
="$CFLAGS"
10238 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10239 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10240 XFT_LIBS
="-lXrender $XFT_LIBS"
10241 LIBS
="$XFT_LIBS $LIBS"
10242 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10243 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10245 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10246 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
10247 $as_echo_n "(cached) " >&6
10249 ac_check_lib_save_LIBS
=$LIBS
10250 LIBS
="-lXft $XFT_LIBS $LIBS"
10251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10260 char XftFontOpen ();
10264 return XftFontOpen ();
10269 if ac_fn_c_try_link
"$LINENO"; then :
10270 ac_cv_lib_Xft_XftFontOpen
=yes
10272 ac_cv_lib_Xft_XftFontOpen
=no
10274 rm -f core conftest.err conftest.
$ac_objext \
10275 conftest
$ac_exeext conftest.
$ac_ext
10276 LIBS
=$ac_check_lib_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10279 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10280 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
10288 if test "${HAVE_XFT}" = "yes"; then
10290 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10293 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10295 CPPFLAGS
="$OLD_CPPFLAGS"
10296 CFLAGS
="$OLD_CFLAGS"
10298 fi # "${HAVE_XFT}" = "yes"
10299 fi # "$HAVE_XFT" != no
10300 fi # "x${with_xft}" != "xno"
10302 if test "$HAVE_XFT" != "yes"; then
10308 ## We used to allow building with FreeType and without Xft.
10309 ## However, the ftx font backend driver is not in good shape.
10310 if test "${HAVE_XFT}" = "yes"; then
10317 if test "${HAVE_FREETYPE}" = "yes"; then
10319 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10321 if test "${with_libotf}" != "no"; then
10325 # Extract the first word of "pkg-config", so it can be a program name with args.
10326 set dummy pkg-config
; ac_word
=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10330 $as_echo_n "(cached) " >&6
10332 case $PKG_CONFIG in
10334 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10338 for as_dir
in $PATH
10341 test -z "$as_dir" && as_dir
=.
10342 for ac_exec_ext
in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10356 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10357 if test -n "$PKG_CONFIG"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10359 $as_echo "$PKG_CONFIG" >&6; }
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10367 if test "$PKG_CONFIG" = "no" ; then
10370 PKG_CONFIG_MIN_VERSION
=0.9.0
10371 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10373 $as_echo_n "checking for libotf... " >&6; }
10375 if $PKG_CONFIG --exists "libotf" 2>&5; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377 $as_echo "yes" >&6; }
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10381 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10382 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10384 $as_echo "$LIBOTF_CFLAGS" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10387 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10388 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10390 $as_echo "$LIBOTF_LIBS" >&6; }
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10396 ## If we have a custom action on failure, don't print errors, but
10397 ## do set a variable so people can do so.
10398 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10405 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10406 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10410 if test $succeeded = yes; then
10416 if test "$HAVE_LIBOTF" = "yes"; then
10418 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10421 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10422 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
10423 $as_echo_n "(cached) " >&6
10425 ac_check_lib_save_LIBS
=$LIBS
10427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10436 char OTF_get_variation_glyphs ();
10440 return OTF_get_variation_glyphs ();
10445 if ac_fn_c_try_link
"$LINENO"; then :
10446 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10448 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10450 rm -f core conftest.err conftest.
$ac_objext \
10451 conftest
$ac_exeext conftest.
$ac_ext
10452 LIBS
=$ac_check_lib_save_LIBS
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10455 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10456 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
10457 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10459 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10462 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10464 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10472 if test "${HAVE_LIBOTF}" = yes; then
10473 if test "${with_m17n_flt}" != "no"; then
10477 # Extract the first word of "pkg-config", so it can be a program name with args.
10478 set dummy pkg-config
; ac_word
=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10482 $as_echo_n "(cached) " >&6
10484 case $PKG_CONFIG in
10486 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10490 for as_dir
in $PATH
10493 test -z "$as_dir" && as_dir
=.
10494 for ac_exec_ext
in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10508 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10509 if test -n "$PKG_CONFIG"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10511 $as_echo "$PKG_CONFIG" >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10519 if test "$PKG_CONFIG" = "no" ; then
10522 PKG_CONFIG_MIN_VERSION
=0.9.0
10523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10525 $as_echo_n "checking for m17n-flt... " >&6; }
10527 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529 $as_echo "yes" >&6; }
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10533 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10534 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10536 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10539 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10540 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10542 $as_echo "$M17N_FLT_LIBS" >&6; }
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10548 ## If we have a custom action on failure, don't print errors, but
10549 ## do set a variable so people can do so.
10550 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10562 if test $succeeded = yes; then
10568 if test "$HAVE_M17N_FLT" = "yes"; then
10570 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10582 ### End of font-backend (under X11) section.
10593 ### Use -lXpm if available, unless `--with-xpm=no'.
10596 if test "${HAVE_X11}" = "yes"; then
10597 if test "${with_xpm}" != "no"; then
10598 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10599 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10601 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10602 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
10603 $as_echo_n "(cached) " >&6
10605 ac_check_lib_save_LIBS
=$LIBS
10606 LIBS
="-lXpm -lX11 $LIBS"
10607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10616 char XpmReadFileToPixmap ();
10620 return XpmReadFileToPixmap ();
10625 if ac_fn_c_try_link
"$LINENO"; then :
10626 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10628 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10630 rm -f core conftest.err conftest.
$ac_objext \
10631 conftest
$ac_exeext conftest.
$ac_ext
10632 LIBS
=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10635 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10636 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
10643 if test "${HAVE_XPM}" = "yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10645 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include "X11/xpm.h"
10649 #ifndef XpmReturnAllocPixels
10650 no_return_alloc_pixels
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10663 if test "${HAVE_XPM}" = "yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10673 if test "${HAVE_XPM}" = "yes"; then
10675 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10682 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10685 if test "${HAVE_X11}" = "yes"; then
10686 if test "${with_jpeg}" != "no"; then
10687 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10688 if test "x$ac_cv_header_jerror_h" = xyes
; then :
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10690 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10691 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
10692 $as_echo_n "(cached) " >&6
10694 ac_check_lib_save_LIBS
=$LIBS
10695 LIBS
="-ljpeg $LIBS"
10696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10705 char jpeg_destroy_compress ();
10709 return jpeg_destroy_compress ();
10714 if ac_fn_c_try_link
"$LINENO"; then :
10715 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10717 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10719 rm -f core conftest.err conftest.
$ac_objext \
10720 conftest
$ac_exeext conftest.
$ac_ext
10721 LIBS
=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10724 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10725 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
10734 if test "${HAVE_JPEG}" = "yes"; then
10735 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <jpeglib.h>
10740 version=JPEG_LIB_VERSION
10743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10744 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10745 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10749 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10755 if test "${HAVE_JPEG}" = "yes"; then
10761 ### Use -lpng if available, unless `--with-png=no'.
10764 if test "${HAVE_X11}" = "yes"; then
10765 if test "${with_png}" != "no"; then
10766 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10767 # in /usr/include/libpng.
10768 for ac_header
in png.h libpng
/png.h
10770 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10772 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10773 cat >>confdefs.h
<<_ACEOF
10774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10781 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10783 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10784 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
10785 $as_echo_n "(cached) " >&6
10787 ac_check_lib_save_LIBS
=$LIBS
10788 LIBS
="-lpng -lz -lm $LIBS"
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10798 char png_get_channels ();
10802 return png_get_channels ();
10807 if ac_fn_c_try_link
"$LINENO"; then :
10808 ac_cv_lib_png_png_get_channels
=yes
10810 ac_cv_lib_png_png_get_channels
=no
10812 rm -f core conftest.err conftest.
$ac_objext \
10813 conftest
$ac_exeext conftest.
$ac_ext
10814 LIBS
=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10817 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10818 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
10825 if test "${HAVE_PNG}" = "yes"; then
10827 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10829 LIBPNG
="-lpng -lz -lm"
10834 ### Use -ltiff if available, unless `--with-tiff=no'.
10837 if test "${HAVE_X11}" = "yes"; then
10838 if test "${with_tiff}" != "no"; then
10839 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
10842 # At least one tiff package requires the jpeg library.
10843 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10845 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10846 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
10847 $as_echo_n "(cached) " >&6
10849 ac_check_lib_save_LIBS
=$LIBS
10850 LIBS
="-ltiff $tifflibs $LIBS"
10851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10860 char TIFFGetVersion ();
10864 return TIFFGetVersion ();
10869 if ac_fn_c_try_link
"$LINENO"; then :
10870 ac_cv_lib_tiff_TIFFGetVersion
=yes
10872 ac_cv_lib_tiff_TIFFGetVersion
=no
10874 rm -f core conftest.err conftest.
$ac_objext \
10875 conftest
$ac_exeext conftest.
$ac_ext
10876 LIBS
=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10879 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10880 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
10889 if test "${HAVE_TIFF}" = "yes"; then
10891 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10898 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10901 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10902 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10903 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
10904 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10905 # Earlier versions can crash Emacs.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10907 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10908 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
10909 $as_echo_n "(cached) " >&6
10911 ac_check_lib_save_LIBS
=$LIBS
10913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10922 char EGifPutExtensionLast ();
10926 return EGifPutExtensionLast ();
10931 if ac_fn_c_try_link
"$LINENO"; then :
10932 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10934 ac_cv_lib_gif_EGifPutExtensionLast
=no
10936 rm -f core conftest.err conftest.
$ac_objext \
10937 conftest
$ac_exeext conftest.
$ac_ext
10938 LIBS
=$ac_check_lib_save_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10941 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10942 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
10952 if test "$HAVE_GIF" = yes; then
10954 elif test "$HAVE_GIF" = maybe
; then
10955 # If gif_lib.h but no libgif, try libungif.
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10957 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10958 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
10959 $as_echo_n "(cached) " >&6
10961 ac_check_lib_save_LIBS
=$LIBS
10962 LIBS
="-lungif $LIBS"
10963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10972 char EGifPutExtensionLast ();
10976 return EGifPutExtensionLast ();
10981 if ac_fn_c_try_link
"$LINENO"; then :
10982 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10984 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10986 rm -f core conftest.err conftest.
$ac_objext \
10987 conftest
$ac_exeext conftest.
$ac_ext
10988 LIBS
=$ac_check_lib_save_LIBS
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10991 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10992 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
10998 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
11001 if test "${HAVE_GIF}" = "yes"; then
11003 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11009 if test "${HAVE_X11}" = "yes"; then
11012 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11013 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
11014 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11015 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11016 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11017 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11018 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11019 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11020 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11021 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11023 if test "X${MISSING}" != X
; then
11024 as_fn_error $?
"The following required libraries were not found:
11026 Maybe some development libraries/packages are missing?
11027 If you don't want to link with them give
11029 as options to configure" "$LINENO" 5
11033 ### Use -lgpm if available, unless `--with-gpm=no'.
11037 if test "${with_gpm}" != "no"; then
11038 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_gpm_h" = xyes
; then :
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11041 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11042 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
11043 $as_echo_n "(cached) " >&6
11045 ac_check_lib_save_LIBS
=$LIBS
11047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11060 return Gpm_Open ();
11065 if ac_fn_c_try_link
"$LINENO"; then :
11066 ac_cv_lib_gpm_Gpm_Open
=yes
11068 ac_cv_lib_gpm_Gpm_Open
=no
11070 rm -f core conftest.err conftest.
$ac_objext \
11071 conftest
$ac_exeext conftest.
$ac_ext
11072 LIBS
=$ac_check_lib_save_LIBS
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11075 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11076 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
11084 if test "${HAVE_GPM}" = "yes"; then
11086 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11089 ## May be reset below.
11090 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11095 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
11098 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11105 ### Use NeXTstep API to implement GUI.
11106 if test "${HAVE_NS}" = "yes"; then
11108 $as_echo "#define HAVE_NS 1" >>confdefs.h
11110 if test "${NS_IMPL_COCOA}" = "yes"; then
11112 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11116 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11118 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11120 # See also .m.o rule in Makefile.in */
11121 # FIXME: are all these flags really needed? Document here why. */
11122 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11123 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11125 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11127 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11130 # We also have mouse menus.
11136 ### Use session management (-lSM -lICE) if available
11139 if test "${HAVE_X11}" = "yes"; then
11140 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11143 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11144 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
11145 $as_echo_n "(cached) " >&6
11147 ac_check_lib_save_LIBS
=$LIBS
11148 LIBS
="-lSM -lICE $LIBS"
11149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11158 char SmcOpenConnection ();
11162 return SmcOpenConnection ();
11167 if ac_fn_c_try_link
"$LINENO"; then :
11168 ac_cv_lib_SM_SmcOpenConnection
=yes
11170 ac_cv_lib_SM_SmcOpenConnection
=no
11172 rm -f core conftest.err conftest.
$ac_objext \
11173 conftest
$ac_exeext conftest.
$ac_ext
11174 LIBS
=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11177 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11178 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
11186 if test "${HAVE_X_SM}" = "yes"; then
11188 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11190 LIBXSM
="-lSM -lICE"
11193 *) LIBS
="$LIBXSM $LIBS" ;;
11199 ### Use libxml (-lxml2) if available
11200 if test "${with_xml2}" != "no"; then
11201 ### I'm not sure what the version number should be, so I just guessed.
11205 # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config
; ac_word
=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11210 $as_echo_n "(cached) " >&6
11212 case $PKG_CONFIG in
11214 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11218 for as_dir
in $PATH
11221 test -z "$as_dir" && as_dir
=.
11222 for ac_exec_ext
in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11236 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11247 if test "$PKG_CONFIG" = "no" ; then
11250 PKG_CONFIG_MIN_VERSION
=0.9.0
11251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11253 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11255 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257 $as_echo "yes" >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11261 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11262 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11264 $as_echo "$LIBXML2_CFLAGS" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11267 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11268 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11270 $as_echo "$LIBXML2_LIBS" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11276 ## If we have a custom action on failure, don't print errors, but
11277 ## do set a variable so people can do so.
11278 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11290 if test $succeeded = yes; then
11296 if test "${HAVE_LIBXML2}" = "yes"; then
11297 LIBS
="$LIBXML2_LIBS $LIBS"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11299 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11300 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
11301 $as_echo_n "(cached) " >&6
11303 ac_check_lib_save_LIBS
=$LIBS
11304 LIBS
="-lxml2 $LIBS"
11305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11314 char htmlReadMemory ();
11318 return htmlReadMemory ();
11323 if ac_fn_c_try_link
"$LINENO"; then :
11324 ac_cv_lib_xml2_htmlReadMemory
=yes
11326 ac_cv_lib_xml2_htmlReadMemory
=no
11328 rm -f core conftest.err conftest.
$ac_objext \
11329 conftest
$ac_exeext conftest.
$ac_ext
11330 LIBS
=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11333 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11334 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
11340 if test "${HAVE_LIBXML2}" = "yes"; then
11342 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11355 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11356 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
11357 $as_echo_n "(cached) " >&6
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11370 if ac_fn_c_try_link
"$LINENO"; then :
11371 emacs_cv_netdb_declares_h_errno
=yes
11373 emacs_cv_netdb_declares_h_errno
=no
11375 rm -f core conftest.err conftest.
$ac_objext \
11376 conftest
$ac_exeext conftest.
$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11379 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11380 if test $emacs_cv_netdb_declares_h_errno = yes; then
11382 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11386 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11387 if test "x$ac_cv_type_size_t" = xyes
; then :
11391 cat >>confdefs.h
<<_ACEOF
11392 #define size_t unsigned int
11397 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11398 # for constant arguments. Useless!
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11400 $as_echo_n "checking for working alloca.h... " >&6; }
11401 if ${ac_cv_working_alloca_h+:} false
; then :
11402 $as_echo_n "(cached) " >&6
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <alloca.h>
11410 char *p = (char *) alloca (2 * sizeof (int));
11416 if ac_fn_c_try_link
"$LINENO"; then :
11417 ac_cv_working_alloca_h
=yes
11419 ac_cv_working_alloca_h
=no
11421 rm -f core conftest.err conftest.
$ac_objext \
11422 conftest
$ac_exeext conftest.
$ac_ext
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11425 $as_echo "$ac_cv_working_alloca_h" >&6; }
11426 if test $ac_cv_working_alloca_h = yes; then
11428 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11433 $as_echo_n "checking for alloca... " >&6; }
11434 if ${ac_cv_func_alloca_works+:} false
; then :
11435 $as_echo_n "(cached) " >&6
11437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 # define alloca __builtin_alloca
11443 # include <malloc.h>
11444 # define alloca _alloca
11446 # ifdef HAVE_ALLOCA_H
11447 # include <alloca.h>
11452 # ifndef alloca /* predefined by HP cc +Olibcalls */
11453 void *alloca (size_t);
11463 char *p = (char *) alloca (1);
11469 if ac_fn_c_try_link
"$LINENO"; then :
11470 ac_cv_func_alloca_works
=yes
11472 ac_cv_func_alloca_works
=no
11474 rm -f core conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11478 $as_echo "$ac_cv_func_alloca_works" >&6; }
11480 if test $ac_cv_func_alloca_works = yes; then
11482 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11485 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11486 # that cause trouble. Some versions do not even contain alloca or
11487 # contain a buggy version. If you still want to use their alloca,
11488 # use ar to extract alloca.o from them instead of compiling alloca.c.
11490 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11492 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11496 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11497 if ${ac_cv_os_cray+:} false
; then :
11498 $as_echo_n "(cached) " >&6
11500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 #if defined CRAY && ! defined CRAY2
11509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11510 $EGREP "webecray" >/dev
/null
2>&1; then :
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11519 $as_echo "$ac_cv_os_cray" >&6; }
11520 if test $ac_cv_os_cray = yes; then
11521 for ac_func
in _getb67 GETB67 getb67
; do
11522 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11524 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11526 cat >>confdefs.h
<<_ACEOF
11527 #define CRAY_STACKSEG_END $ac_func
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11537 $as_echo_n "checking stack direction for C alloca... " >&6; }
11538 if ${ac_cv_c_stack_direction+:} false
; then :
11539 $as_echo_n "(cached) " >&6
11541 if test "$cross_compiling" = yes; then :
11542 ac_cv_c_stack_direction
=0
11544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 $ac_includes_default
11548 find_stack_direction ()
11550 static char *addr = 0;
11555 return find_stack_direction ();
11558 return (&dummy > addr) ? 1 : -1;
11564 return find_stack_direction () < 0;
11567 if ac_fn_c_try_run
"$LINENO"; then :
11568 ac_cv_c_stack_direction
=1
11570 ac_cv_c_stack_direction
=-1
11572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11578 $as_echo "$ac_cv_c_stack_direction" >&6; }
11579 cat >>confdefs.h
<<_ACEOF
11580 #define STACK_DIRECTION $ac_cv_c_stack_direction
11587 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11588 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
11591 # fmod, logb, and frexp are found in -lm on most systems.
11592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11594 $as_echo_n "checking for sqrt in -lm... " >&6; }
11595 if ${ac_cv_lib_m_sqrt+:} false
; then :
11596 $as_echo_n "(cached) " >&6
11598 ac_check_lib_save_LIBS
=$LIBS
11600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11618 if ac_fn_c_try_link
"$LINENO"; then :
11619 ac_cv_lib_m_sqrt
=yes
11621 ac_cv_lib_m_sqrt
=no
11623 rm -f core conftest.err conftest.
$ac_objext \
11624 conftest
$ac_exeext conftest.
$ac_ext
11625 LIBS
=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11628 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11629 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
11630 cat >>confdefs.h
<<_ACEOF
11631 #define HAVE_LIBM 1
11639 # Check for mail-locking functions in a "mail" library. Probably this should
11640 # have the same check as for liblockfile below.
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11642 $as_echo_n "checking for maillock in -lmail... " >&6; }
11643 if ${ac_cv_lib_mail_maillock+:} false
; then :
11644 $as_echo_n "(cached) " >&6
11646 ac_check_lib_save_LIBS
=$LIBS
11647 LIBS
="-lmail $LIBS"
11648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11661 return maillock ();
11666 if ac_fn_c_try_link
"$LINENO"; then :
11667 ac_cv_lib_mail_maillock
=yes
11669 ac_cv_lib_mail_maillock
=no
11671 rm -f core conftest.err conftest.
$ac_objext \
11672 conftest
$ac_exeext conftest.
$ac_ext
11673 LIBS
=$ac_check_lib_save_LIBS
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11676 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11677 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
11683 if test $have_mail = yes; then
11685 LIBS
="$LIBS_MAIL $LIBS"
11687 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11693 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11694 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
11695 $as_echo_n "(cached) " >&6
11697 ac_check_lib_save_LIBS
=$LIBS
11698 LIBS
="-llockfile $LIBS"
11699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11712 return maillock ();
11717 if ac_fn_c_try_link
"$LINENO"; then :
11718 ac_cv_lib_lockfile_maillock
=yes
11720 ac_cv_lib_lockfile_maillock
=no
11722 rm -f core conftest.err conftest.
$ac_objext \
11723 conftest
$ac_exeext conftest.
$ac_ext
11724 LIBS
=$ac_check_lib_save_LIBS
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11727 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11728 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
11734 if test $have_lockfile = yes; then
11735 LIBS_MAIL
=-llockfile
11736 LIBS
="$LIBS_MAIL $LIBS"
11738 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11741 # If we have the shared liblockfile, assume we must use it for mail
11742 # locking (e.g. Debian). If we couldn't link against liblockfile
11743 # (no liblockfile.a installed), ensure that we don't need to.
11744 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11745 set dummy liblockfile.so
; ac_word
=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_prog_liblockfile+:} false
; then :
11749 $as_echo_n "(cached) " >&6
11751 if test -n "$liblockfile"; then
11752 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11755 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11756 for as_dir
in $as_dummy
11759 test -z "$as_dir" && as_dir
=.
11760 for ac_exec_ext
in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_prog_liblockfile
="yes"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11773 liblockfile
=$ac_cv_prog_liblockfile
11774 if test -n "$liblockfile"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11776 $as_echo "$liblockfile" >&6; }
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11783 if test $ac_cv_prog_liblockfile = yes; then
11784 as_fn_error $?
"Shared liblockfile found but can't link against it.
11785 This probably means that movemail could lose mail.
11786 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11789 for ac_func
in touchlock
11791 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11792 if test "x$ac_cv_func_touchlock" = xyes
; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define HAVE_TOUCHLOCK 1
11800 for ac_header
in maillock.h
11802 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11803 if test "x$ac_cv_header_maillock_h" = xyes
; then :
11804 cat >>confdefs.h
<<_ACEOF
11805 #define HAVE_MAILLOCK_H 1
11814 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11815 ## interlock access to the mail spool. The alternative is a lock file named
11816 ## /usr/spool/mail/$USER.lock.
11819 aix4-2
) mail_lock
="lockf" ;;
11821 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11823 ## On GNU/Linux systems, both methods are used by various mail programs.
11824 ## I assume most people are using newer mailers that have heard of flock.
11825 ## Change this if you need to.
11826 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11827 ## configure gets the right answers, and that means *NOT* using flock.
11828 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11829 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11830 ## Debian maintainer hasn't provided a clean fix for Emacs.
11831 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11832 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11833 ## correct logic. -- fx
11834 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11835 ## liblockfile is a Free Software replacement for libmail, used on
11836 ## Debian systems and elsewhere. -rfr.
11839 if test $have_mail = yes ||
test $have_lockfile = yes; then
11840 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11846 case "$mail_lock" in
11848 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11852 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11855 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11860 for ac_func
in gethostname getdomainname dup2 \
11861 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11862 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11863 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11864 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11865 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11866 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11867 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11868 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11869 cfmakeraw cfsetspeed isnan copysign __executable_start
11871 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11873 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11874 cat >>confdefs.h
<<_ACEOF
11875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
11883 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
11884 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
11885 $as_echo_n "(cached) " >&6
11887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11893 __builtin_unwind_init ();
11898 if ac_fn_c_try_link
"$LINENO"; then :
11899 emacs_cv_func___builtin_unwind_init
=yes
11901 emacs_cv_func___builtin_unwind_init
=no
11903 rm -f core conftest.err conftest.
$ac_objext \
11904 conftest
$ac_exeext conftest.
$ac_ext
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
11907 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
11908 if test $emacs_cv_func___builtin_unwind_init = yes; then
11910 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
11914 for ac_header
in sys
/un.h
11916 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
11918 cat >>confdefs.h
<<_ACEOF
11919 #define HAVE_SYS_UN_H 1
11932 for ac_func
in $ac_func_list
11934 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11936 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11937 cat >>confdefs.h
<<_ACEOF
11938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11949 $as_echo_n "checking for working mktime... " >&6; }
11950 if ${ac_cv_func_working_mktime+:} false
; then :
11951 $as_echo_n "(cached) " >&6
11953 if test "$cross_compiling" = yes; then :
11954 ac_cv_func_working_mktime
=no
11956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 /* Test program from Paul Eggert and Tony Leneis. */
11959 #ifdef TIME_WITH_SYS_TIME
11960 # include <sys/time.h>
11963 # ifdef HAVE_SYS_TIME_H
11964 # include <sys/time.h>
11970 #include <limits.h>
11971 #include <stdlib.h>
11973 #ifdef HAVE_UNISTD_H
11974 # include <unistd.h>
11978 # define alarm(X) /* empty */
11981 /* Work around redefinition to rpl_putenv by other config tests. */
11984 static time_t time_t_max;
11985 static time_t time_t_min;
11987 /* Values we'll use to set the TZ environment variable. */
11988 static const char *tz_strings[] = {
11989 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11990 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11992 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11994 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11995 Based on a problem report from Andreas Jaeger. */
11997 spring_forward_gap ()
11999 /* glibc (up to about 1998-10-07) failed this test. */
12002 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12003 instead of "TZ=America/Vancouver" in order to detect the bug even
12004 on systems that don't support the Olson extension, or don't have the
12005 full zoneinfo tables installed. */
12006 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12015 return mktime (&tm) != (time_t) -1;
12019 mktime_test1 (time_t now)
12022 return ! (lt = localtime (&now)) || mktime (lt) == now;
12026 mktime_test (time_t now)
12028 return (mktime_test1 (now)
12029 && mktime_test1 ((time_t) (time_t_max - now))
12030 && mktime_test1 ((time_t) (time_t_min + now)));
12036 /* Based on code from Ariel Faigon. */
12046 return tm.tm_mon == 2 && tm.tm_mday == 31;
12050 bigtime_test (int j)
12054 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12055 now = mktime (&tm);
12056 if (now != (time_t) -1)
12058 struct tm *lt = localtime (&now);
12060 && lt->tm_year == tm.tm_year
12061 && lt->tm_mon == tm.tm_mon
12062 && lt->tm_mday == tm.tm_mday
12063 && lt->tm_hour == tm.tm_hour
12064 && lt->tm_min == tm.tm_min
12065 && lt->tm_sec == tm.tm_sec
12066 && lt->tm_yday == tm.tm_yday
12067 && lt->tm_wday == tm.tm_wday
12068 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12069 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12078 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12079 ignoring leap seconds. */
12080 unsigned long int answer = 2527315200UL;
12084 tm.tm_year = 2050 - 1900;
12087 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12090 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12091 instead of "TZ=America/Vancouver" in order to detect the bug even
12092 on systems that don't support the Olson extension, or don't have the
12093 full zoneinfo tables installed. */
12094 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12098 /* Check that the result is either a failure, or close enough
12099 to the correct answer that we can assume the discrepancy is
12100 due to leap seconds. */
12101 return (t == (time_t) -1
12102 || (0 < t && answer - 120 <= t && t <= answer + 120));
12111 /* This test makes some buggy mktime implementations loop.
12112 Give up after 60 seconds; a mktime slower than that
12113 isn't worth using anyway. */
12118 t = (time_t_max << 1) + 1;
12119 if (t <= time_t_max)
12123 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12125 delta = time_t_max / 997; /* a suitable prime number */
12126 for (i = 0; i < N_STRINGS; i++)
12129 putenv ((char*) tz_strings[i]);
12131 for (t = 0; t <= time_t_max - delta; t += delta)
12132 if (! mktime_test (t))
12134 if (! (mktime_test ((time_t) 1)
12135 && mktime_test ((time_t) (60 * 60))
12136 && mktime_test ((time_t) (60 * 60 * 24))))
12139 for (j = 1; ; j <<= 1)
12140 if (! bigtime_test (j))
12142 else if (INT_MAX / 2 < j)
12144 if (! bigtime_test (INT_MAX))
12147 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12150 if ac_fn_c_try_run
"$LINENO"; then :
12151 ac_cv_func_working_mktime
=yes
12153 ac_cv_func_working_mktime
=no
12155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12161 $as_echo "$ac_cv_func_working_mktime" >&6; }
12162 if test $ac_cv_func_working_mktime = no
; then
12163 case " $LIBOBJS " in
12164 *" mktime.$ac_objext "* ) ;;
12165 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12171 if test "$ac_cv_func_working_mktime" = no
; then
12173 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12177 ac_have_func
=no
# yes means we've found a way to get the load average.
12179 # Make sure getloadavg.c is where it belongs, at configure-time.
12180 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12181 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12185 # Check for getloadavg, but be sure not to touch the cache variable.
12186 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12187 if test "x$ac_cv_func_getloadavg" = xyes
; then :
12192 ) && ac_have_func
=yes
12194 # On HPUX9, an unprivileged user can get load averages through this function.
12195 for ac_func
in pstat_getdynamic
12197 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12198 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
12199 cat >>confdefs.h
<<_ACEOF
12200 #define HAVE_PSTAT_GETDYNAMIC 1
12207 # Solaris has libkstat which does not require root.
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12209 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12210 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
12211 $as_echo_n "(cached) " >&6
12213 ac_check_lib_save_LIBS
=$LIBS
12214 LIBS
="-lkstat $LIBS"
12215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12224 char kstat_open ();
12228 return kstat_open ();
12233 if ac_fn_c_try_link
"$LINENO"; then :
12234 ac_cv_lib_kstat_kstat_open
=yes
12236 ac_cv_lib_kstat_kstat_open
=no
12238 rm -f core conftest.err conftest.
$ac_objext \
12239 conftest
$ac_exeext conftest.
$ac_ext
12240 LIBS
=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12243 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12244 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
12245 cat >>confdefs.h
<<_ACEOF
12246 #define HAVE_LIBKSTAT 1
12249 LIBS
="-lkstat $LIBS"
12253 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12255 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12256 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12257 # to get the right answer into the cache.
12258 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12259 if test $ac_have_func = no
; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12261 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12262 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
12263 $as_echo_n "(cached) " >&6
12265 ac_check_lib_save_LIBS
=$LIBS
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12280 return elf_begin ();
12285 if ac_fn_c_try_link
"$LINENO"; then :
12286 ac_cv_lib_elf_elf_begin
=yes
12288 ac_cv_lib_elf_elf_begin
=no
12290 rm -f core conftest.err conftest.
$ac_objext \
12291 conftest
$ac_exeext conftest.
$ac_ext
12292 LIBS
=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12295 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12296 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
12301 if test $ac_have_func = no
; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12303 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12304 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
12305 $as_echo_n "(cached) " >&6
12307 ac_check_lib_save_LIBS
=$LIBS
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12322 return kvm_open ();
12327 if ac_fn_c_try_link
"$LINENO"; then :
12328 ac_cv_lib_kvm_kvm_open
=yes
12330 ac_cv_lib_kvm_kvm_open
=no
12332 rm -f core conftest.err conftest.
$ac_objext \
12333 conftest
$ac_exeext conftest.
$ac_ext
12334 LIBS
=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12337 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12338 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
12342 # Check for the 4.4BSD definition of getloadavg.
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12344 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12345 if ${ac_cv_lib_util_getloadavg+:} false
; then :
12346 $as_echo_n "(cached) " >&6
12348 ac_check_lib_save_LIBS
=$LIBS
12349 LIBS
="-lutil $LIBS"
12350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12359 char getloadavg ();
12363 return getloadavg ();
12368 if ac_fn_c_try_link
"$LINENO"; then :
12369 ac_cv_lib_util_getloadavg
=yes
12371 ac_cv_lib_util_getloadavg
=no
12373 rm -f core conftest.err conftest.
$ac_objext \
12374 conftest
$ac_exeext conftest.
$ac_ext
12375 LIBS
=$ac_check_lib_save_LIBS
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12378 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12379 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
12380 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12385 if test $ac_have_func = no
; then
12386 # There is a commonly available library for RS/6000 AIX.
12387 # Since it is not a standard part of AIX, it might be installed locally.
12388 ac_getloadavg_LIBS
=$LIBS
12389 LIBS
="-L/usr/local/lib $LIBS"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12391 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12392 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
12393 $as_echo_n "(cached) " >&6
12395 ac_check_lib_save_LIBS
=$LIBS
12396 LIBS
="-lgetloadavg $LIBS"
12397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12406 char getloadavg ();
12410 return getloadavg ();
12415 if ac_fn_c_try_link
"$LINENO"; then :
12416 ac_cv_lib_getloadavg_getloadavg
=yes
12418 ac_cv_lib_getloadavg_getloadavg
=no
12420 rm -f core conftest.err conftest.
$ac_objext \
12421 conftest
$ac_exeext conftest.
$ac_ext
12422 LIBS
=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12425 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12426 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
12427 LIBS
="-lgetloadavg $LIBS"
12429 LIBS
=$ac_getloadavg_LIBS
12434 # Make sure it is really in the library, if we think we found it,
12435 # otherwise set up the replacement function.
12436 for ac_func
in getloadavg
12438 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12439 if test "x$ac_cv_func_getloadavg" = xyes
; then :
12440 cat >>confdefs.h
<<_ACEOF
12441 #define HAVE_GETLOADAVG 1
12445 case " $LIBOBJS " in
12446 *" getloadavg.$ac_objext "* ) ;;
12447 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12452 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12454 # Figure out what our getloadavg.c needs.
12456 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12457 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
12460 $as_echo "#define DGUX 1" >>confdefs.h
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12463 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12464 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
12465 $as_echo_n "(cached) " >&6
12467 ac_check_lib_save_LIBS
=$LIBS
12469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12478 char dg_sys_info ();
12482 return dg_sys_info ();
12487 if ac_fn_c_try_link
"$LINENO"; then :
12488 ac_cv_lib_dgc_dg_sys_info
=yes
12490 ac_cv_lib_dgc_dg_sys_info
=no
12492 rm -f core conftest.err conftest.
$ac_objext \
12493 conftest
$ac_exeext conftest.
$ac_ext
12494 LIBS
=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12497 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12498 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
12499 cat >>confdefs.h
<<_ACEOF
12500 #define HAVE_LIBDGC 1
12511 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_locale_h" = xyes
; then :
12517 for ac_func
in setlocale
12519 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12520 if test "x$ac_cv_func_setlocale" = xyes
; then :
12521 cat >>confdefs.h
<<_ACEOF
12522 #define HAVE_SETLOCALE 1
12529 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12530 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12531 # Irix 4.0.5F has the header but not the library.
12532 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
12533 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
12536 $as_echo "#define SVR4 1" >>confdefs.h
12540 if test $ac_have_func = no
; then
12541 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12542 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
12545 $as_echo "#define UMAX 1" >>confdefs.h
12548 $as_echo "#define UMAX4_3 1" >>confdefs.h
12555 if test $ac_have_func = no
; then
12556 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12557 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
12558 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12565 if test $ac_have_func = no
; then
12566 for ac_header
in mach
/mach.h
12568 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12569 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
12570 cat >>confdefs.h
<<_ACEOF
12571 #define HAVE_MACH_MACH_H 1
12580 for ac_header
in nlist.h
12582 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12583 if test "x$ac_cv_header_nlist_h" = xyes
; then :
12584 cat >>confdefs.h
<<_ACEOF
12585 #define HAVE_NLIST_H 1
12587 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12589 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
12591 cat >>confdefs.h
<<_ACEOF
12592 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12596 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12609 # Some definitions of getloadavg require that the program be installed setgid.
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12611 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12612 if ${ac_cv_func_getloadavg_setgid+:} false
; then :
12613 $as_echo_n "(cached) " >&6
12615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12618 #ifdef LDAV_PRIVILEGED
12619 Yowza Am I SETGID yet
12622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12623 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12624 ac_cv_func_getloadavg_setgid
=yes
12626 ac_cv_func_getloadavg_setgid
=no
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12632 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12633 if test $ac_cv_func_getloadavg_setgid = yes; then
12636 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12642 if test $ac_cv_func_getloadavg_setgid = yes; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12644 $as_echo_n "checking group of /dev/kmem... " >&6; }
12645 if ${ac_cv_group_kmem+:} false
; then :
12646 $as_echo_n "(cached) " >&6
12648 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12649 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12650 # If we got an error (system does not support symlinks), try without -L.
12651 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12652 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12653 | sed -ne 's/[ ][ ]*/ /g;
12654 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12659 $as_echo "$ac_cv_group_kmem" >&6; }
12660 KMEM_GROUP
=$ac_cv_group_kmem
12662 if test "x$ac_save_LIBS" = x
; then
12663 GETLOADAVG_LIBS
=$LIBS
12665 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12672 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12673 if ${ac_cv_sys_largefile_source+:} false
; then :
12674 $as_echo_n "(cached) " >&6
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 #include <sys/types.h> /* for off_t */
12684 int (*fp) (FILE *, off_t, int) = fseeko;
12685 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12690 if ac_fn_c_try_link
"$LINENO"; then :
12691 ac_cv_sys_largefile_source
=no
; break
12693 rm -f core conftest.err conftest.
$ac_objext \
12694 conftest
$ac_exeext conftest.
$ac_ext
12695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 #define _LARGEFILE_SOURCE 1
12698 #include <sys/types.h> /* for off_t */
12703 int (*fp) (FILE *, off_t, int) = fseeko;
12704 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12709 if ac_fn_c_try_link
"$LINENO"; then :
12710 ac_cv_sys_largefile_source
=1; break
12712 rm -f core conftest.err conftest.
$ac_objext \
12713 conftest
$ac_exeext conftest.
$ac_ext
12714 ac_cv_sys_largefile_source
=unknown
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12719 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12720 case $ac_cv_sys_largefile_source in #(
12723 cat >>confdefs.h
<<_ACEOF
12724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12731 # in glibc 2.1.3, but that breaks too many other things.
12732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12733 if test $ac_cv_sys_largefile_source != unknown
; then
12735 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12740 # Configure getopt.
12741 # getopt.m4 serial 10
12743 # The getopt module assume you want GNU getopt, with getopt_long etc,
12744 # rather than vanilla POSIX getopt. This means your your code should
12745 # always include <getopt.h> for the getopt prototypes.
12757 # Prerequisites of lib/getopt*.
12763 for ac_header
in getopt.h
12765 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_getopt_h" = xyes
; then :
12767 cat >>confdefs.h
<<_ACEOF
12768 #define HAVE_GETOPT_H 1
12777 if test -z "$GETOPT_H"; then
12778 for ac_func
in getopt_long_only
12780 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12781 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
12782 cat >>confdefs.h
<<_ACEOF
12783 #define HAVE_GETOPT_LONG_ONLY 1
12793 if test -z "$GETOPT_H"; then
12794 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12796 if test "x$ac_cv_have_decl_optreset" = xyes
; then :
12802 if test -z "$GETOPT_H"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12804 $as_echo_n "checking for working GNU getopt function... " >&6; }
12805 if ${gl_cv_func_gnu_getopt+:} false
; then :
12806 $as_echo_n "(cached) " >&6
12808 if test "$cross_compiling" = yes; then :
12809 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12811 if test "x$ac_cv_have_decl_getopt_clip" = xyes
; then :
12812 gl_cv_func_gnu_getopt
=no
12814 gl_cv_func_gnu_getopt
=yes
12818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <getopt.h>
12826 myargv[0] = "conftest";
12829 return getopt (2, myargv, "+a") != '?';
12835 if ac_fn_c_try_run
"$LINENO"; then :
12836 gl_cv_func_gnu_getopt
=yes
12838 gl_cv_func_gnu_getopt
=no
12840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12846 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12847 if test "$gl_cv_func_gnu_getopt" = "no"; then
12854 if test -n "$GETOPT_H"; then :
12859 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12864 GETOPTOBJS
='getopt.o getopt1.o'
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12871 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12872 if ${ac_cv_func_getpgrp_void+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 # Use it with a single arg.
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 $ac_includes_default
12887 if ac_fn_c_try_compile
"$LINENO"; then :
12888 ac_cv_func_getpgrp_void
=no
12890 ac_cv_func_getpgrp_void
=yes
12892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12896 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12897 if test $ac_cv_func_getpgrp_void = yes; then
12899 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12904 for ac_func
in strftime
12906 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12907 if test "x$ac_cv_func_strftime" = xyes
; then :
12908 cat >>confdefs.h
<<_ACEOF
12909 #define HAVE_STRFTIME 1
12913 # strftime is in -lintl on SCO UNIX.
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12915 $as_echo_n "checking for strftime in -lintl... " >&6; }
12916 if ${ac_cv_lib_intl_strftime+:} false
; then :
12917 $as_echo_n "(cached) " >&6
12919 ac_check_lib_save_LIBS
=$LIBS
12920 LIBS
="-lintl $LIBS"
12921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12934 return strftime ();
12939 if ac_fn_c_try_link
"$LINENO"; then :
12940 ac_cv_lib_intl_strftime
=yes
12942 ac_cv_lib_intl_strftime
=no
12944 rm -f core conftest.err conftest.
$ac_objext \
12945 conftest
$ac_exeext conftest.
$ac_ext
12946 LIBS
=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12949 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12950 if test "x$ac_cv_lib_intl_strftime" = xyes
; then :
12951 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12953 LIBS
="-lintl $LIBS"
12961 for ac_func
in grantpt
12963 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12964 if test "x$ac_cv_func_grantpt" = xyes
; then :
12965 cat >>confdefs.h
<<_ACEOF
12966 #define HAVE_GRANTPT 1
12973 # PTY-related GNU extensions.
12974 for ac_func
in getpt
12976 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12977 if test "x$ac_cv_func_getpt" = xyes
; then :
12978 cat >>confdefs.h
<<_ACEOF
12979 #define HAVE_GETPT 1
12986 # Check this now, so that we will NOT find the above functions in ncurses.
12987 # That is because we have not set up to link ncurses in lib-src.
12988 # It's better to believe a function is not available
12989 # than to expect to find it in ncurses.
12990 # Also we need tputs and friends to be able to build at all.
12991 have_tputs_et_al
=true
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12993 $as_echo_n "checking for library containing tputs... " >&6; }
12994 if ${ac_cv_search_tputs+:} false
; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_func_search_save_LIBS
=$LIBS
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13016 for ac_lib
in '' ncurses terminfo termcap
; do
13017 if test -z "$ac_lib"; then
13018 ac_res
="none required"
13021 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13023 if ac_fn_c_try_link
"$LINENO"; then :
13024 ac_cv_search_tputs
=$ac_res
13026 rm -f core conftest.err conftest.
$ac_objext \
13028 if ${ac_cv_search_tputs+:} false
; then :
13032 if ${ac_cv_search_tputs+:} false
; then :
13035 ac_cv_search_tputs
=no
13037 rm conftest.
$ac_ext
13038 LIBS
=$ac_func_search_save_LIBS
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13041 $as_echo "$ac_cv_search_tputs" >&6; }
13042 ac_res
=$ac_cv_search_tputs
13043 if test "$ac_res" != no
; then :
13044 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13047 have_tputs_et_al
=false
13050 if test "$have_tputs_et_al" != true
; then
13051 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
13052 Maybe some development libraries/packages are missing? Try installing
13053 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13055 # Must define this when any termcap library is found.
13057 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13059 ## FIXME This was the cpp logic, but I am not sure it is right.
13060 ## The above test has not necessarily found libncurses.
13061 HAVE_LIBNCURSES
=yes
13063 ## Use terminfo instead of termcap?
13064 ## Note only system files NOT using terminfo are:
13065 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13066 ## darwin|gnu without ncurses.
13070 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13071 ## hpux10-20: Use the system provided termcap(3) library.
13072 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13073 ## is necessary. Otherwise Emacs dumps core when run -nw.
13074 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13076 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13077 ## The ncurses library has been moved out of the System framework in
13078 ## Mac OS X 10.2. So if configure detects it, set the command-line
13079 ## option to use it.
13081 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13082 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13084 LIBS_TERMCAP
="-lncurses"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13090 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13091 if ${emacs_cv_freebsd_terminfo+:} false
; then :
13092 $as_echo_n "(cached) " >&6
13094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 #include <osreldate.h>
13100 #if __FreeBSD_version < 400000
13108 if ac_fn_c_try_link
"$LINENO"; then :
13109 emacs_cv_freebsd_terminfo
=yes
13111 emacs_cv_freebsd_terminfo
=no
13113 rm -f core conftest.err conftest.
$ac_objext \
13114 conftest
$ac_exeext conftest.
$ac_ext
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13119 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13121 if test $emacs_cv_freebsd_terminfo = yes; then
13123 LIBS_TERMCAP
="-lncurses"
13125 LIBS_TERMCAP
="-ltermcap"
13130 if test $ac_cv_search_tputs = -lterminfo; then
13132 LIBS_TERMCAP
="-lterminfo"
13134 LIBS_TERMCAP
="-ltermcap"
13141 ## hpux: Make sure we get select from libc rather than from libcurses
13142 ## because libcurses on HPUX 10.10 has a broken version of select.
13143 ## We used to use -lc -lcurses, but this may be cleaner.
13144 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13146 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13148 ## Must use system termcap, if we use any termcap. It does special things.
13149 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13152 TERMCAP_OBJ
=tparam.o
13153 if test $TERMINFO = yes; then
13155 $as_echo "#define TERMINFO 1" >>confdefs.h
13158 ## Default used to be -ltermcap. Add a case above if need something else.
13159 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13161 TERMCAP_OBJ
=terminfo.o
13167 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <netinet/in.h>
13172 #include <arpa/nameser.h>
13173 #include <resolv.h>
13182 if ac_fn_c_try_link
"$LINENO"; then :
13187 rm -f core conftest.err conftest.
$ac_objext \
13188 conftest
$ac_exeext conftest.
$ac_ext
13189 if test "$have_res_init" = no
; then
13191 LIBS
="$LIBS -lresolv"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13193 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196 #include <netinet/in.h>
13197 #include <arpa/nameser.h>
13198 #include <resolv.h>
13207 if ac_fn_c_try_link
"$LINENO"; then :
13212 rm -f core conftest.err conftest.
$ac_objext \
13213 conftest
$ac_exeext conftest.
$ac_ext
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13215 $as_echo "$have_res_init" >&6; }
13216 if test "$have_res_init" = yes ; then
13222 if test "$have_res_init" = yes; then
13224 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13228 # Do we need the Hesiod library to provide the support routines?
13230 if test "$with_hesiod" != no
; then
13231 # Don't set $LIBS here -- see comments above. FIXME which comments?
13232 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13233 if test "x$ac_cv_func_res_send" = xyes
; then :
13236 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13237 if test "x$ac_cv_func___res_send" = xyes
; then :
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13241 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13242 if ${ac_cv_lib_resolv_res_send+:} false
; then :
13243 $as_echo_n "(cached) " >&6
13245 ac_check_lib_save_LIBS
=$LIBS
13246 LIBS
="-lresolv $LIBS"
13247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13260 return res_send ();
13265 if ac_fn_c_try_link
"$LINENO"; then :
13266 ac_cv_lib_resolv_res_send
=yes
13268 ac_cv_lib_resolv_res_send
=no
13270 rm -f core conftest.err conftest.
$ac_objext \
13271 conftest
$ac_exeext conftest.
$ac_ext
13272 LIBS
=$ac_check_lib_save_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13275 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13276 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13280 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13281 if ${ac_cv_lib_resolv___res_send+:} false
; then :
13282 $as_echo_n "(cached) " >&6
13284 ac_check_lib_save_LIBS
=$LIBS
13285 LIBS
="-lresolv $LIBS"
13286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13295 char __res_send ();
13299 return __res_send ();
13304 if ac_fn_c_try_link
"$LINENO"; then :
13305 ac_cv_lib_resolv___res_send
=yes
13307 ac_cv_lib_resolv___res_send
=no
13309 rm -f core conftest.err conftest.
$ac_objext \
13310 conftest
$ac_exeext conftest.
$ac_ext
13311 LIBS
=$ac_check_lib_save_LIBS
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13314 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13315 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
13325 if test "$resolv" = yes ; then
13330 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13331 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13335 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13336 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
13337 $as_echo_n "(cached) " >&6
13339 ac_check_lib_save_LIBS
=$LIBS
13340 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13350 char hes_getmailhost ();
13354 return hes_getmailhost ();
13359 if ac_fn_c_try_link
"$LINENO"; then :
13360 ac_cv_lib_hesiod_hes_getmailhost
=yes
13362 ac_cv_lib_hesiod_hes_getmailhost
=no
13364 rm -f core conftest.err conftest.
$ac_objext \
13365 conftest
$ac_exeext conftest.
$ac_ext
13366 LIBS
=$ac_check_lib_save_LIBS
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13369 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13370 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
13379 if test x
"$hesiod" = xyes
; then
13381 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13388 # Do we need libresolv (due to res_init or Hesiod)?
13389 if test "$resolv" = yes ; then
13391 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13399 # These tell us which Kerberos-related libraries to use.
13406 if test "${with_kerberos}" != no
; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13408 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13409 if ${ac_cv_lib_com_err_com_err+:} false
; then :
13410 $as_echo_n "(cached) " >&6
13412 ac_check_lib_save_LIBS
=$LIBS
13413 LIBS
="-lcom_err $LIBS"
13414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13417 /* Override any GCC internal prototype to avoid an error.
13418 Use char because int might match the return type of a GCC
13419 builtin and then its argument prototype would still apply. */
13432 if ac_fn_c_try_link
"$LINENO"; then :
13433 ac_cv_lib_com_err_com_err
=yes
13435 ac_cv_lib_com_err_com_err
=no
13437 rm -f core conftest.err conftest.
$ac_objext \
13438 conftest
$ac_exeext conftest.
$ac_ext
13439 LIBS
=$ac_check_lib_save_LIBS
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13442 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13443 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
13449 if test $have_com_err = yes; then
13450 COM_ERRLIB
=-lcom_err
13451 LIBS
="$COM_ERRLIB $LIBS"
13453 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13457 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13458 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
13459 $as_echo_n "(cached) " >&6
13461 ac_check_lib_save_LIBS
=$LIBS
13462 LIBS
="-lcrypto $LIBS"
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
13472 char mit_des_cbc_encrypt ();
13476 return mit_des_cbc_encrypt ();
13481 if ac_fn_c_try_link
"$LINENO"; then :
13482 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13484 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13486 rm -f core conftest.err conftest.
$ac_objext \
13487 conftest
$ac_exeext conftest.
$ac_ext
13488 LIBS
=$ac_check_lib_save_LIBS
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13491 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13492 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
13498 if test $have_crypto = yes; then
13500 LIBS
="$CRYPTOLIB $LIBS"
13502 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13506 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13507 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
13508 $as_echo_n "(cached) " >&6
13510 ac_check_lib_save_LIBS
=$LIBS
13511 LIBS
="-lk5crypto $LIBS"
13512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13515 /* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply. */
13521 char mit_des_cbc_encrypt ();
13525 return mit_des_cbc_encrypt ();
13530 if ac_fn_c_try_link
"$LINENO"; then :
13531 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13535 rm -f core conftest.err conftest.
$ac_objext \
13536 conftest
$ac_exeext conftest.
$ac_ext
13537 LIBS
=$ac_check_lib_save_LIBS
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13540 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13541 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
13547 if test $have_k5crypto = yes; then
13548 CRYPTOLIB
=-lk5crypto
13549 LIBS
="$CRYPTOLIB $LIBS"
13551 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13555 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13556 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
13557 $as_echo_n "(cached) " >&6
13559 ac_check_lib_save_LIBS
=$LIBS
13560 LIBS
="-lkrb5 $LIBS"
13561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13570 char krb5_init_context ();
13574 return krb5_init_context ();
13579 if ac_fn_c_try_link
"$LINENO"; then :
13580 ac_cv_lib_krb5_krb5_init_context
=yes
13582 ac_cv_lib_krb5_krb5_init_context
=no
13584 rm -f core conftest.err conftest.
$ac_objext \
13585 conftest
$ac_exeext conftest.
$ac_ext
13586 LIBS
=$ac_check_lib_save_LIBS
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13589 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13590 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
13596 if test $have_krb5=yes; then
13598 LIBS
="$KRB5LIB $LIBS"
13600 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13603 if test "${with_kerberos5}" = no
; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13605 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13606 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
13607 $as_echo_n "(cached) " >&6
13609 ac_check_lib_save_LIBS
=$LIBS
13610 LIBS
="-ldes425 $LIBS"
13611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13620 char des_cbc_encrypt ();
13624 return des_cbc_encrypt ();
13629 if ac_fn_c_try_link
"$LINENO"; then :
13630 ac_cv_lib_des425_des_cbc_encrypt
=yes
13632 ac_cv_lib_des425_des_cbc_encrypt
=no
13634 rm -f core conftest.err conftest.
$ac_objext \
13635 conftest
$ac_exeext conftest.
$ac_ext
13636 LIBS
=$ac_check_lib_save_LIBS
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13639 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13640 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
13646 if test $have_des425 = yes; then
13648 LIBS
="$DESLIB $LIBS"
13650 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13654 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13655 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
13656 $as_echo_n "(cached) " >&6
13658 ac_check_lib_save_LIBS
=$LIBS
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13669 char des_cbc_encrypt ();
13673 return des_cbc_encrypt ();
13678 if ac_fn_c_try_link
"$LINENO"; then :
13679 ac_cv_lib_des_des_cbc_encrypt
=yes
13681 ac_cv_lib_des_des_cbc_encrypt
=no
13683 rm -f core conftest.err conftest.
$ac_objext \
13684 conftest
$ac_exeext conftest.
$ac_ext
13685 LIBS
=$ac_check_lib_save_LIBS
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13688 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13689 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
13695 if test $have_des = yes; then
13697 LIBS
="$DESLIB $LIBS"
13699 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13704 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13705 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
13706 $as_echo_n "(cached) " >&6
13708 ac_check_lib_save_LIBS
=$LIBS
13709 LIBS
="-lkrb4 $LIBS"
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 /* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
13719 char krb_get_cred ();
13723 return krb_get_cred ();
13728 if ac_fn_c_try_link
"$LINENO"; then :
13729 ac_cv_lib_krb4_krb_get_cred
=yes
13731 ac_cv_lib_krb4_krb_get_cred
=no
13733 rm -f core conftest.err conftest.
$ac_objext \
13734 conftest
$ac_exeext conftest.
$ac_ext
13735 LIBS
=$ac_check_lib_save_LIBS
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13738 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13739 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
13745 if test $have_krb4 = yes; then
13747 LIBS
="$KRB4LIB $LIBS"
13749 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13753 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13754 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
13755 $as_echo_n "(cached) " >&6
13757 ac_check_lib_save_LIBS
=$LIBS
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13768 char krb_get_cred ();
13772 return krb_get_cred ();
13777 if ac_fn_c_try_link
"$LINENO"; then :
13778 ac_cv_lib_krb_krb_get_cred
=yes
13780 ac_cv_lib_krb_krb_get_cred
=no
13782 rm -f core conftest.err conftest.
$ac_objext \
13783 conftest
$ac_exeext conftest.
$ac_ext
13784 LIBS
=$ac_check_lib_save_LIBS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13787 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13788 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
13794 if test $have_krb = yes; then
13796 LIBS
="$KRB4LIB $LIBS"
13798 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13804 if test "${with_kerberos5}" != no
; then
13805 for ac_header
in krb5.h
13807 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_krb5_h" = xyes
; then :
13809 cat >>confdefs.h
<<_ACEOF
13810 #define HAVE_KRB5_H 1
13812 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13814 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
13816 cat >>confdefs.h
<<_ACEOF
13817 #define HAVE_KRB5_ERROR_TEXT 1
13822 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13824 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
13826 cat >>confdefs.h
<<_ACEOF
13827 #define HAVE_KRB5_ERROR_E_TEXT 1
13838 for ac_header
in des.h
13840 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13841 if test "x$ac_cv_header_des_h" = xyes
; then :
13842 cat >>confdefs.h
<<_ACEOF
13843 #define HAVE_DES_H 1
13847 for ac_header
in kerberosIV
/des.h
13849 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
13851 cat >>confdefs.h
<<_ACEOF
13852 #define HAVE_KERBEROSIV_DES_H 1
13856 for ac_header
in kerberos
/des.h
13858 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13859 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
13860 cat >>confdefs.h
<<_ACEOF
13861 #define HAVE_KERBEROS_DES_H 1
13876 for ac_header
in krb.h
13878 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_krb_h" = xyes
; then :
13880 cat >>confdefs.h
<<_ACEOF
13881 #define HAVE_KRB_H 1
13885 for ac_header
in kerberosIV
/krb.h
13887 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13888 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
13889 cat >>confdefs.h
<<_ACEOF
13890 #define HAVE_KERBEROSIV_KRB_H 1
13894 for ac_header
in kerberos
/krb.h
13896 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13897 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
13898 cat >>confdefs.h
<<_ACEOF
13899 #define HAVE_KERBEROS_KRB_H 1
13915 for ac_header
in com_err.h
13917 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13918 if test "x$ac_cv_header_com_err_h" = xyes
; then :
13919 cat >>confdefs.h
<<_ACEOF
13920 #define HAVE_COM_ERR_H 1
13935 # Solaris requires -lintl if you want strerror (which calls dgettext)
13936 # to return localized messages.
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13938 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13939 if ${ac_cv_lib_intl_dgettext+:} false
; then :
13940 $as_echo_n "(cached) " >&6
13942 ac_check_lib_save_LIBS
=$LIBS
13943 LIBS
="-lintl $LIBS"
13944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13957 return dgettext ();
13962 if ac_fn_c_try_link
"$LINENO"; then :
13963 ac_cv_lib_intl_dgettext
=yes
13965 ac_cv_lib_intl_dgettext
=no
13967 rm -f core conftest.err conftest.
$ac_objext \
13968 conftest
$ac_exeext conftest.
$ac_ext
13969 LIBS
=$ac_check_lib_save_LIBS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13972 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13973 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_LIBINTL 1
13978 LIBS
="-lintl $LIBS"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13984 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13985 if ${emacs_cv_localtime_cache+:} false
; then :
13986 $as_echo_n "(cached) " >&6
13988 if test x
$ac_cv_func_tzset = xyes
; then
13989 if test "$cross_compiling" = yes; then :
13990 # If we have tzset, assume the worst when cross-compiling.
13991 emacs_cv_localtime_cache
=yes
13993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 char TZ_GMT0[] = "TZ=GMT0";
13997 char TZ_PST8[] = "TZ=PST8";
14000 time_t now = time ((time_t *) 0);
14001 int hour_GMT0, hour_unset;
14002 if (putenv (TZ_GMT0) != 0)
14004 hour_GMT0 = localtime (&now)->tm_hour;
14006 hour_unset = localtime (&now)->tm_hour;
14007 if (putenv (TZ_PST8) != 0)
14009 if (localtime (&now)->tm_hour == hour_GMT0)
14012 if (localtime (&now)->tm_hour != hour_unset)
14017 if ac_fn_c_try_run
"$LINENO"; then :
14018 emacs_cv_localtime_cache
=no
14020 emacs_cv_localtime_cache
=yes
14022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14023 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14027 # If we lack tzset, report that localtime does not cache TZ,
14028 # since we can't invalidate the cache if we don't have tzset.
14029 emacs_cv_localtime_cache
=no
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14033 $as_echo "$emacs_cv_localtime_cache" >&6; }
14034 if test $emacs_cv_localtime_cache = yes; then
14036 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14040 if test "x$HAVE_TIMEVAL" = xyes
; then
14041 for ac_func
in gettimeofday
14043 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14044 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
14045 cat >>confdefs.h
<<_ACEOF
14046 #define HAVE_GETTIMEOFDAY 1
14052 if test $ac_cv_func_gettimeofday = yes; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14054 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14055 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
14056 $as_echo_n "(cached) " >&6
14058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14061 #ifdef TIME_WITH_SYS_TIME
14062 #include <sys/time.h>
14065 #ifdef HAVE_SYS_TIME_H
14066 #include <sys/time.h>
14074 struct timeval time;
14075 gettimeofday (&time, 0);
14080 if ac_fn_c_try_compile
"$LINENO"; then :
14081 emacs_cv_gettimeofday_two_arguments
=yes
14083 emacs_cv_gettimeofday_two_arguments
=no
14085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14088 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14089 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14091 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14098 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14099 if test "x$ac_cv_func_socket" = xyes
; then :
14105 if test $ok_so_far = yes; then
14106 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14107 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
14115 if test $ok_so_far = yes; then
14116 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14117 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
14125 if test $ok_so_far = yes; then
14127 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14131 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14133 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14138 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14139 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14143 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; }
14150 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14151 if test "x$ac_cv_type_pid_t" = xyes
; then :
14155 cat >>confdefs.h
<<_ACEOF
14161 for ac_header
in vfork.h
14163 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_vfork_h" = xyes
; then :
14165 cat >>confdefs.h
<<_ACEOF
14166 #define HAVE_VFORK_H 1
14173 for ac_func
in fork vfork
14175 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14176 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14177 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14178 cat >>confdefs.h
<<_ACEOF
14179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14185 if test "x$ac_cv_func_fork" = xyes
; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14187 $as_echo_n "checking for working fork... " >&6; }
14188 if ${ac_cv_func_fork_works+:} false
; then :
14189 $as_echo_n "(cached) " >&6
14191 if test "$cross_compiling" = yes; then :
14192 ac_cv_func_fork_works
=cross
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 $ac_includes_default
14201 /* By Ruediger Kuhlmann. */
14202 return fork () < 0;
14208 if ac_fn_c_try_run
"$LINENO"; then :
14209 ac_cv_func_fork_works
=yes
14211 ac_cv_func_fork_works
=no
14213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14219 $as_echo "$ac_cv_func_fork_works" >&6; }
14222 ac_cv_func_fork_works
=$ac_cv_func_fork
14224 if test "x$ac_cv_func_fork_works" = xcross
; then
14226 *-*-amigaos* |
*-*-msdosdjgpp*)
14227 # Override, as these systems have only a dummy fork() stub
14228 ac_cv_func_fork_works
=no
14231 ac_cv_func_fork_works
=yes
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14235 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14237 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14238 if test "x$ac_cv_func_vfork" = xyes
; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14240 $as_echo_n "checking for working vfork... " >&6; }
14241 if ${ac_cv_func_vfork_works+:} false
; then :
14242 $as_echo_n "(cached) " >&6
14244 if test "$cross_compiling" = yes; then :
14245 ac_cv_func_vfork_works
=cross
14247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14249 /* Thanks to Paul Eggert for this test. */
14250 $ac_includes_default
14251 #include <sys/wait.h>
14252 #ifdef HAVE_VFORK_H
14253 # include <vfork.h>
14255 /* On some sparc systems, changes by the child to local and incoming
14256 argument registers are propagated back to the parent. The compiler
14257 is told about this with #include <vfork.h>, but some compilers
14258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14259 static variable whose address is put into a register that is
14260 clobbered by the vfork. */
14263 sparc_address_test (int arg)
14265 sparc_address_test (arg) int arg;
14268 static pid_t child;
14286 pid_t parent = getpid ();
14289 sparc_address_test (0);
14294 /* Here is another test for sparc vfork register problems. This
14295 test uses lots of local variables, at least as many local
14296 variables as main has allocated so far including compiler
14297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14299 reuse the register of parent for one of the local variables,
14300 since it will think that parent can't possibly be used any more
14301 in this routine. Assigning to the local variable will thus
14302 munge parent in the parent process. */
14304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14306 /* Convince the compiler that p..p7 are live; otherwise, it might
14307 use the same hardware register for all 8 local variables. */
14308 if (p != p1 || p != p2 || p != p3 || p != p4
14309 || p != p5 || p != p6 || p != p7)
14312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14313 from child file descriptors. If the child closes a descriptor
14314 before it execs or exits, this munges the parent's descriptor
14315 as well. Test for this by closing stdout in the child. */
14316 _exit(close(fileno(stdout)) != 0);
14321 while (wait(&status) != child)
14324 /* Was there some problem with vforking? */
14327 /* Did the child fail? (This shouldn't happen.) */
14330 /* Did the vfork/compiler bug occur? */
14331 || parent != getpid()
14333 /* Did the file descriptor bug occur? */
14334 || fstat(fileno(stdout), &st) != 0
14339 if ac_fn_c_try_run
"$LINENO"; then :
14340 ac_cv_func_vfork_works
=yes
14342 ac_cv_func_vfork_works
=no
14344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14350 $as_echo "$ac_cv_func_vfork_works" >&6; }
14353 if test "x$ac_cv_func_fork_works" = xcross
; then
14354 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14356 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14359 if test "x$ac_cv_func_vfork_works" = xyes
; then
14361 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14365 $as_echo "#define vfork fork" >>confdefs.h
14368 if test "x$ac_cv_func_fork_works" = xyes
; then
14370 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14376 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14377 if ${emacs_cv_langinfo_codeset+:} false
; then :
14378 $as_echo_n "(cached) " >&6
14380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <langinfo.h>
14386 char* cs = nl_langinfo(CODESET);
14391 if ac_fn_c_try_link
"$LINENO"; then :
14392 emacs_cv_langinfo_codeset
=yes
14394 emacs_cv_langinfo_codeset
=no
14396 rm -f core conftest.err conftest.
$ac_objext \
14397 conftest
$ac_exeext conftest.
$ac_ext
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14401 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14402 if test $emacs_cv_langinfo_codeset = yes; then
14404 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14408 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14409 if test "x$ac_cv_type_size_t" = xyes
; then :
14411 cat >>confdefs.h
<<_ACEOF
14412 #define HAVE_SIZE_T 1
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14420 $as_echo_n "checking for mbstate_t... " >&6; }
14421 if ${ac_cv_type_mbstate_t+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 # include <wchar.h>
14431 mbstate_t x; return sizeof x;
14436 if ac_fn_c_try_compile
"$LINENO"; then :
14437 ac_cv_type_mbstate_t
=yes
14439 ac_cv_type_mbstate_t
=no
14441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14444 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14445 if test $ac_cv_type_mbstate_t = yes; then
14447 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14451 $as_echo "#define mbstate_t int" >>confdefs.h
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14456 $as_echo_n "checking for C restrict keyword... " >&6; }
14457 if ${emacs_cv_c_restrict+:} false
; then :
14458 $as_echo_n "(cached) " >&6
14460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 void fred (int *restrict x);
14471 if ac_fn_c_try_compile
"$LINENO"; then :
14472 emacs_cv_c_restrict
=yes
14474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 void fred (int *__restrict x);
14485 if ac_fn_c_try_compile
"$LINENO"; then :
14486 emacs_cv_c_restrict
=__restrict
14488 emacs_cv_c_restrict
=no
14490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14495 $as_echo "$emacs_cv_c_restrict" >&6; }
14496 case "$emacs_cv_c_restrict" in
14497 yes) emacs_restrict
=restrict
;;
14498 no
) emacs_restrict
="";;
14499 *) emacs_restrict
="$emacs_cv_c_restrict";;
14501 if test "$emacs_restrict" != __restrict
; then
14503 cat >>confdefs.h
<<_ACEOF
14504 #define __restrict $emacs_restrict
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14510 $as_echo_n "checking for C restricted array declarations... " >&6; }
14511 if ${emacs_cv_c_restrict_arr+:} false
; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 void fred (int x[__restrict]);
14525 if ac_fn_c_try_compile
"$LINENO"; then :
14526 emacs_cv_c_restrict_arr
=yes
14528 emacs_cv_c_restrict_arr
=no
14530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14533 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14534 if test "$emacs_cv_c_restrict_arr" = yes; then
14536 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14542 # Set up the CFLAGS for real compilation, so we can substitute it.
14543 CFLAGS
="$REAL_CFLAGS"
14544 CPPFLAGS
="$REAL_CPPFLAGS"
14546 ## Hack to detect a buggy GCC version.
14547 if test "x$GCC" = xyes \
14548 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14549 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14550 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14551 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14554 #### Find out which version of Emacs this is.
14555 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14556 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14557 if test x
"${version}" = x
; then
14558 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14560 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14562 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14565 ### Specify what sort of things we'll be editing into Makefile and config.h.
14566 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14590 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14591 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14592 ## end of LIBX_BASE, but nothing ever set it.
14597 ## Used in lwlib/Makefile.in.
14599 if test -n "${machfile}"; then
14600 M_FILE="\$
(srcdir
)/${machfile}"
14604 S_FILE="\$
(srcdir
)/${opsysfile}"
14616 cat >>confdefs.h <<_ACEOF
14617 #define EMACS_CONFIGURATION "${canonical}"
14621 cat >>confdefs.h <<_ACEOF
14622 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14625 if test -n "$machfile"; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define config_machfile "${machfile}"
14633 cat >>confdefs.h <<_ACEOF
14634 #define config_opsysfile "${opsysfile}"
14641 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14643 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14646 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14648 if test "$HAVE_XFT" = "yes"; then
14649 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14650 elif test "$HAVE_FREETYPE" = "yes"; then
14651 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14661 if test "${USE_X_TOOLKIT}" != "none" ; then
14662 WIDGET_OBJ
=widget.o
14664 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14666 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14668 $as_echo "#define USE_LUCID 1" >>confdefs.h
14670 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14672 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14677 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14678 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14682 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14683 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14684 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14688 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14689 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14692 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14698 case "$USE_X_TOOLKIT" in
14699 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14700 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14701 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14705 if test "$USE_X_TOOLKIT" = "none"; then
14706 LIBXT_OTHER
="\$(LIBXSM)"
14707 OLDXMENU_TARGET
="really-oldXMenu"
14709 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14710 OLDXMENU_TARGET
="really-lwlib"
14714 ## The X Menu stuff is present in the X10 distribution, but missing
14715 ## from X11. If we have X10, just use the installed library;
14716 ## otherwise, use our own copy.
14717 if test "${HAVE_X11}" = "yes" ; then
14719 $as_echo "#define HAVE_X11 1" >>confdefs.h
14722 if test "$USE_X_TOOLKIT" = "none"; then
14723 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14725 OLDXMENU
="\${lwlibdir}/liblw.a"
14727 LIBXMENU
="\$(OLDXMENU)"
14728 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14729 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14731 ## For a syntactically valid Makefile; not actually used for anything.
14732 ## See comments in src/Makefile.in.
14734 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14735 if test "${HAVE_X_WINDOWS}" = "yes"; then
14744 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14757 if test "${HAVE_MENUS}" = "yes" ; then
14759 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14763 if test "${GNU_MALLOC}" = "yes" ; then
14765 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14770 if test "${REL_ALLOC}" = "yes" ; then
14772 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14775 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14779 if test "$opsys" = "cygwin"; then
14780 CYGWIN_OBJ
="sheap.o"
14781 ## Cygwin differs because of its unexec().
14783 POST_ALLOC_OBJ
=lastfile.o
14786 PRE_ALLOC_OBJ
=lastfile.o
14795 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14798 ## The -headerpad option tells ld (see man page) to leave room at the
14799 ## end of the header for adding load commands. Needed for dumping.
14800 ## 0x690 is the total size of 30 segment load commands (at 56
14801 ## each); under Cocoa 31 commands are required.
14802 if test "$HAVE_NS" = "yes"; then
14803 libs_nsgui
="-framework AppKit"
14804 headerpad_extra
=6C8
14807 headerpad_extra
=690
14809 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14811 ## This is here because src/Makefile.in did some extra fiddling around
14812 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14813 ## #ifndef LD_SWITCH_SYSTEM
14814 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14815 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14816 ## not using gcc, darwin system not on an alpha (ie darwin, since
14817 ## darwin + alpha does not occur).
14818 ## Because this was done in src/Makefile.in, the resulting part of
14819 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14820 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14821 ## rather than LD_SWITCH_SYSTEM.
14822 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14823 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14826 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14827 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14828 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14829 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14830 ## had different values in configure (in ac_link) and src/Makefile.in.
14831 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14832 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14834 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14837 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14838 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14847 ## gnu: GNU needs its own crt0.
14848 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14850 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14851 ## library search parth, i.e. it won't search /usr/lib for libc and
14852 ## friends. Using -nostartfiles instead avoids this problem, and
14853 ## will also work on earlier NetBSD releases.
14854 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14856 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14857 ## MkLinux/LinuxPPC needs this.
14858 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14861 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14867 if test "x$ORDINARY_LINK" = "xyes"; then
14871 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14874 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14875 ## freebsd, gnu-* not on macppc|ibms390x.
14876 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14878 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14879 ## places that are difficult to figure out at make time. Fortunately,
14880 ## these same versions allow you to pass arbitrary flags on to the
14881 ## linker, so there is no reason not to use it as a linker.
14883 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14884 ## searching for libraries in its internal directories, so we have to
14885 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14886 LD_FIRSTFLAG
="-nostdlib"
14889 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14890 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14895 ## FIXME? The logic here is not precisely the same as that above.
14896 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14897 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14899 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14902 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14905 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14906 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14912 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14913 ## immediately undefine it again and redefine it to empty.
14914 ## Was the C_SWITCH_X_SITE part really necessary?
14915 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14921 ## Ask GCC where to find libgcc.a.
14922 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14929 ## If we're using X11/GNUstep, define some consequences.
14930 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14932 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14935 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14937 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14938 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
14940 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14941 test "$HAVE_X_WINDOWS" = "yes" && \
14942 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14952 #### Report on what we decided to do.
14953 #### Report GTK as a toolkit, even if it doesn't use Xt.
14954 #### It makes printing result more understandable as using GTK sets
14955 #### toolkit_scroll_bars to yes by default.
14956 if test "${HAVE_GTK}" = "yes"; then
14961 if test -n "$machfile"; then
14962 and_machfile
=" and \`${machfile}'"
14966 Configured for \`${canonical}'.
14968 Where should the build process find the source code? ${srcdir}
14969 What operating system and machine description files should Emacs use?
14970 \`${opsysfile}'${and_machfile}
14971 What compiler should emacs be built with? ${CC} ${CFLAGS}
14972 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14973 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14974 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14975 What window system should Emacs use? ${window_system}
14976 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14978 if test -n "${x_includes}"; then
14979 echo " Where do we find X Windows header files? ${x_includes}"
14981 echo " Where do we find X Windows header files? Standard dirs"
14983 if test -n "${x_libraries}"; then
14984 echo " Where do we find X Windows libraries? ${x_libraries}"
14986 echo " Where do we find X Windows libraries? Standard dirs"
14989 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14990 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14991 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14992 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14993 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14994 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14995 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14996 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14998 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14999 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15000 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15001 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15002 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15003 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15005 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15006 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15007 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15008 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15010 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15013 if test $USE_XASSERTS = yes; then
15014 echo " Compiling with asserts turned on."
15015 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
15020 if test "$HAVE_NS" = "yes"; then
15022 echo "You must run \"make install\" in order to test the built application.
15023 The installed application will go to nextstep/Emacs.app and can be
15024 run or moved from there."
15025 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15026 echo "The application will be fully self-contained."
15028 echo "The lisp resources for the application will be installed under ${prefix}.
15029 You may need to run \"make install\" with sudo. The application will fail
15030 to run if these resources are not installed."
15036 # Remove any trailing slashes in these variables.
15037 test "${prefix}" != NONE
&&
15038 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15039 test "${exec_prefix}" != NONE
&&
15040 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15042 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"
15044 ac_config_commands
="$ac_config_commands default"
15046 cat >confcache
<<\_ACEOF
15047 # This file is a shell script that caches the results of configure
15048 # tests run on this system so they can be shared between configure
15049 # scripts and configure runs, see configure's option --config-cache.
15050 # It is not useful on other systems. If it contains results you don't
15051 # want to keep, you may remove or edit it.
15053 # config.status only pays attention to the cache file if you give it
15054 # the --recheck option to rerun configure.
15056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15058 # following values.
15062 # The following way of writing the cache mishandles newlines in values,
15063 # but we know of no workaround that is simple, portable, and efficient.
15064 # So, we kill variables containing newlines.
15065 # Ultrix sh set writes to stderr and can't be redirected directly,
15066 # and sets the high bit in the cache file unless we assign to the vars.
15068 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15069 eval ac_val
=\$
$ac_var
15073 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15077 _ | IFS | as_nl
) ;; #(
15078 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15079 *) { eval $ac_var=; unset $ac_var;} ;;
15085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15086 *${as_nl}ac_space
=\
*)
15087 # `set' does not quote correctly, so add quotes: double-quote
15088 # substitution turns \\\\ into \\, and sed turns \\ into \.
15091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15094 # `set' quotes correctly as required by POSIX, so do not add quotes.
15095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15108 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15109 if test -w "$cache_file"; then
15110 if test "x$cache_file" != "x/dev/null"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15112 $as_echo "$as_me: updating cache $cache_file" >&6;}
15113 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15114 cat confcache
>"$cache_file"
15116 case $cache_file in #(
15118 mv -f confcache
"$cache_file"$$
&&
15119 mv -f "$cache_file"$$
"$cache_file" ;; #(
15121 mv -f confcache
"$cache_file" ;;
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15132 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15133 # Let make expand exec_prefix.
15134 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15136 DEFS
=-DHAVE_CONFIG_H
15141 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15142 # 1. Remove the extension, and $U if already installed.
15143 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15144 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15146 # will be set to the directory where LIBOBJS objects are built.
15147 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15148 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15150 LIBOBJS
=$ac_libobjs
15152 LTLIBOBJS
=$ac_ltlibobjs
15157 : "${CONFIG_STATUS=./config.status}"
15159 ac_clean_files_save
=$ac_clean_files
15160 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15166 # Generated by $as_me.
15167 # Run this file to recreate the current configuration.
15168 # Compiler output produced by configure, useful for debugging
15169 # configure, is in config.log if it exists.
15172 ac_cs_recheck=false
15175 SHELL=\${CONFIG_SHELL-$SHELL}
15178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15179 ## -------------------- ##
15180 ## M4sh Initialization. ##
15181 ## -------------------- ##
15183 # Be more Bourne compatible
15184 DUALCASE
=1; export DUALCASE
# for MKS sh
15185 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15189 # is contrary to our usage. Disable this feature.
15190 alias -g '${1+"$@"}'='"$@"'
15191 setopt NO_GLOB_SUBST
15193 case `(set -o) 2>/dev/null` in #(
15205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15206 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15209 # Prefer a ksh shell builtin over an external printf program on Solaris,
15210 # but without wasting forks for bash or zsh.
15211 if test -z "$BASH_VERSION$ZSH_VERSION" \
15212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15213 as_echo='print
-r --'
15214 as_echo_n='print
-rn --'
15215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15216 as_echo='printf %s
\n'
15217 as_echo_n='printf %s
'
15219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15220 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15221 as_echo_n='/usr
/ucb
/echo -n'
15223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15224 as_echo_n_body='eval
15228 expr "X$arg" : "X\\(.*\\)$as_nl";
15229 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15231 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15233 export as_echo_n_body
15234 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15236 export as_echo_body
15237 as_echo='sh
-c $as_echo_body as_echo
'
15240 # The user is always right.
15241 if test "${PATH_SEPARATOR+set}" != set; then
15243 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15244 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15251 # We need space, tab and new line, in precisely that order. Quoting is
15252 # there to prevent editors from complaining about space-tab.
15253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15254 # splitting by setting IFS to empty value.)
15257 # Find who we are. Look in the path if we contain no directory separator.
15260 *[\\/]* ) as_myself=$0 ;;
15261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262 for as_dir in $PATH
15265 test -z "$as_dir" && as_dir=.
15266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15272 # We did not find ourselves, most probably we were run as `sh COMMAND'
15273 # in which case we are not to be found in the path.
15274 if test "x$as_myself" = x
; then
15277 if test ! -f "$as_myself"; then
15278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15282 # Unset variables that we do not need and which cause bugs (e.g. in
15283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15284 # suppresses any "Segmentation fault" message there. '((' could
15285 # trigger a bug in pdksh 5.2.14.
15286 for as_var
in BASH_ENV ENV MAIL MAILPATH
15287 do eval test x\
${$as_var+set} = xset \
15288 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15301 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15305 # ----------------------------------------
15306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15308 # script with STATUS, using 1 if that was 0.
15311 as_status
=$1; test $as_status -eq 0 && as_status
=1
15313 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15316 $as_echo "$as_me: error: $2" >&2
15317 as_fn_exit
$as_status
15321 # as_fn_set_status STATUS
15322 # -----------------------
15323 # Set $? to STATUS, without forking.
15324 as_fn_set_status
()
15327 } # as_fn_set_status
15329 # as_fn_exit STATUS
15330 # -----------------
15331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15335 as_fn_set_status
$1
15341 # Portably unset VAR.
15344 { eval $1=; unset $1;}
15346 as_unset
=as_fn_unset
15347 # as_fn_append VAR VALUE
15348 # ----------------------
15349 # Append the text in VALUE to the end of the definition contained in VAR. Take
15350 # advantage of any shell optimizations that allow amortized linear growth over
15351 # repeated appends, instead of the typical quadratic growth present in naive
15353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15354 eval 'as_fn_append ()
15365 # as_fn_arith ARG...
15366 # ------------------
15367 # Perform arithmetic evaluation on the ARGs, and store the result in the
15368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15369 # must be portable across $(()) and expr.
15370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15371 eval 'as_fn_arith ()
15378 as_val
=`expr "$@" || test $? -eq 1`
15383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15391 as_basename
=basename
15396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15402 as_me
=`$as_basename -- "$0" ||
15403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15404 X"$0" : 'X\(//\)$' \| \
15405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15407 sed '/^.*\/\([^/][^/]*\)\/*$/{
15421 # Avoid depending upon Character Ranges.
15422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15425 as_cr_digits
='0123456789'
15426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15428 ECHO_C
= ECHO_N
= ECHO_T
=
15429 case `echo -n x` in #(((((
15431 case `echo 'xy\c'` in
15432 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15434 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15441 rm -f conf$$ conf$$.exe conf$$.
file
15442 if test -d conf$$.dir
; then
15443 rm -f conf$$.dir
/conf$$.
file
15446 mkdir conf$$.dir
2>/dev
/null
15448 if (echo >conf$$.
file) 2>/dev
/null
; then
15449 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15451 # ... but there are two gotchas:
15452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15454 # In both cases, we have to default to `cp -p'.
15455 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15457 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15465 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15466 rmdir conf$$.dir
2>/dev
/null
15471 # Create "$as_dir" as a directory, including parents if necessary.
15476 -*) as_dir
=.
/$as_dir;;
15478 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15482 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15483 *) as_qdir
=$as_dir;;
15485 as_dirs
="'$as_qdir' $as_dirs"
15486 as_dir
=`$as_dirname -- "$as_dir" ||
15487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$as_dir" : 'X\(//\)[^/]' \| \
15489 X"$as_dir" : 'X\(//\)$' \| \
15490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15491 $as_echo X"$as_dir" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15496 /^X\(\/\/\)[^/].*/{
15509 test -d "$as_dir" && break
15511 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15512 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15516 if mkdir
-p .
2>/dev
/null
; then
15517 as_mkdir_p
='mkdir -p "$as_dir"'
15519 test -d .
/-p && rmdir .
/-p
15523 if test -x / >/dev
/null
2>&1; then
15524 as_test_x
='test -x'
15526 if ls -dL / >/dev
/null
2>&1; then
15533 if test -d "$1"; then
15539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15540 ???[sx]*):;;*)false;;esac;fi
15544 as_executable_p
=$as_test_x
15546 # Sed expression to map a string onto a valid CPP name.
15547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15549 # Sed expression to map a string onto a valid variable name.
15550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15554 ## ----------------------------------- ##
15555 ## Main body of $CONFIG_STATUS script. ##
15556 ## ----------------------------------- ##
15558 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15561 # Save the log message, to keep $0 and so on meaningful, and to
15562 # report actual input values of CONFIG_FILES etc. instead of their
15563 # values after options handling.
15565 This file was extended by emacs $as_me 24.0.50, which was
15566 generated by GNU Autoconf 2.68. Invocation command line was
15568 CONFIG_FILES = $CONFIG_FILES
15569 CONFIG_HEADERS = $CONFIG_HEADERS
15570 CONFIG_LINKS = $CONFIG_LINKS
15571 CONFIG_COMMANDS = $CONFIG_COMMANDS
15574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15579 case $ac_config_files in *"
15580 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15583 case $ac_config_headers in *"
15584 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 # Files that config.status was made for.
15590 config_files="$ac_config_files"
15591 config_headers="$ac_config_headers"
15592 config_commands="$ac_config_commands"
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15598 \`$as_me' instantiates files and other configuration actions
15599 from templates according to the current configuration. Unless the files
15600 and actions are specified as TAGs, all are instantiated by default.
15602 Usage: $0 [OPTION]... [TAG]...
15604 -h, --help print this help, then exit
15605 -V, --version print version number and configuration settings, then exit
15606 --config print configuration, then exit
15607 -q, --quiet, --silent
15608 do not print progress messages
15609 -d, --debug don't remove temporary files
15610 --recheck update $as_me by reconfiguring in the same conditions
15611 --file=FILE[:TEMPLATE]
15612 instantiate the configuration file FILE
15613 --header=FILE[:TEMPLATE]
15614 instantiate the configuration header FILE
15616 Configuration files:
15619 Configuration headers:
15622 Configuration commands:
15625 Report bugs to the package provider."
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15631 emacs config.status 24.0.50
15632 configured by $0, generated by GNU Autoconf 2.68,
15633 with options \\"\$ac_cs_config\\"
15635 Copyright (C) 2010 Free Software Foundation, Inc.
15636 This config.status script is free software; the Free Software Foundation
15637 gives unlimited permission to copy, distribute and modify it."
15642 test -n "\$AWK" || AWK=awk
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15646 # The default lists apply if the user does not specify any file.
15652 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15653 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15657 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15669 # Handling of the options.
15670 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15672 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15673 $as_echo "$ac_cs_version"; exit ;;
15674 --config |
--confi |
--conf |
--con |
--co |
--c )
15675 $as_echo "$ac_cs_config"; exit ;;
15676 --debug |
--debu |
--deb |
--de |
--d |
-d )
15678 --file |
--fil |
--fi |
--f )
15681 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15682 '') as_fn_error $?
"missing file argument" ;;
15684 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15685 ac_need_defaults
=false
;;
15686 --header |
--heade |
--head |
--hea )
15689 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15691 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15692 ac_need_defaults
=false
;;
15694 # Conflict between --help and --header
15695 as_fn_error $?
"ambiguous option: \`$1'
15696 Try \`$0 --help' for more information.";;
15697 --help |
--hel |
-h )
15698 $as_echo "$ac_cs_usage"; exit ;;
15699 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15700 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15703 # This is an error.
15704 -*) as_fn_error $?
"unrecognized option: \`$1'
15705 Try \`$0 --help' for more information." ;;
15707 *) as_fn_append ac_config_targets
" $1"
15708 ac_need_defaults
=false
;;
15714 ac_configure_extra_args
=
15716 if $ac_cs_silent; then
15718 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 if \$ac_cs_recheck; then
15724 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15727 CONFIG_SHELL='$SHELL'
15728 export CONFIG_SHELL
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15738 ## Running $as_me. ##
15744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15748 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15754 # Handling of arguments.
15755 for ac_config_target
in $ac_config_targets
15757 case $ac_config_target in
15758 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15759 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15760 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15761 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15762 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15763 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15764 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15765 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15766 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15767 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15768 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15769 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15770 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15772 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15777 # If the user did not use the arguments to specify the items to instantiate,
15778 # then the envvar interface is used. Set only those that are not.
15779 # We use the long form for the default assignment because of an extremely
15780 # bizarre bug on SunOS 4.1.3.
15781 if $ac_need_defaults; then
15782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15787 # Have a temporary directory for convenience. Make it in the build tree
15788 # simply because there is no reason against having it here, and in addition,
15789 # creating and moving files from /tmp can sometimes cause problems.
15790 # Hook for its removal unless debugging.
15791 # Note that there is a small window in which the directory will not be cleaned:
15792 # after its creation but before its name has been assigned to `$tmp'.
15796 trap 'exit_status=$?
15797 : "${ac_tmp:=$tmp}"
15798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15800 trap 'as_fn_exit 1' 1 2 13 15
15802 # Create a (secure) tmp directory for tmp files.
15805 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15809 tmp
=.
/conf$$
-$RANDOM
15810 (umask 077 && mkdir
"$tmp")
15811 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15814 # Set up the scripts for CONFIG_FILES section.
15815 # No need to generate them if there are no CONFIG_FILES.
15816 # This happens for instance with `./config.status config.h'.
15817 if test -n "$CONFIG_FILES"; then
15819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15820 ac_cs_awk_getline
=:
15821 ac_cs_awk_pipe_init
=
15822 ac_cs_awk_read_file
='
15823 while ((getline aline < (F[key])) > 0)
15826 ac_cs_awk_pipe_fini
=
15828 ac_cs_awk_getline
=false
15829 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15830 ac_cs_awk_read_file
='
15832 print "cat " F[key] " &&"
15833 '$ac_cs_awk_pipe_init
15834 # The final `:' finishes the AND list.
15835 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15837 ac_cr
=`echo X | tr X '\015'`
15838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15839 # But we know of no other shell where ac_cr would be empty at this
15840 # point, so we can use a bashism as a fallback.
15841 if test "x$ac_cr" = x
; then
15842 eval ac_cr
=\$
\'\\r
\'
15844 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15848 ac_cs_awk_cr
=$ac_cr
15851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15854 # Create commands to substitute file output variables.
15856 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15857 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15858 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15861 } >conf$
$files.sh
&&
15862 . .
/conf$
$files.sh ||
15863 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
15864 rm -f conf$
$files.sh
15867 echo "cat >conf$$subs.awk <<_ACEOF" &&
15868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15870 } >conf$$subs.sh ||
15871 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15874 for ac_last_try in false false false false false :; do
15875 . ./conf$$subs.sh ||
15876 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15878 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15879 if test $ac_delim_n = $ac_delim_num; then
15881 elif $ac_last_try; then
15882 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15884 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15887 rm -f conf$$subs.sh
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15894 s/^/S["/; s
/!.
*/"]=/
15904 s/\(.\{148\}\)..*/\1/
15906 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15911 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15918 s/\(.\{148\}\)..*/\1/
15920 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15924 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15929 ' <conf$$subs.awk | sed '
15934 ' >>$CONFIG_STATUS || ac_write_fail=1
15935 rm -f conf$$subs.awk
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15939 for (key in S) S_is_set[key] = 1
15941 \$ac_cs_awk_pipe_init
15945 nfields = split(line, field, "@
")
15947 len = length(field[1])
15948 for (i = 2; i < nfields; i++) {
15950 keylen = length(key)
15951 if (S_is_set[key]) {
15953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15954 len += length(value) + length(field[++i])
15959 if (nfields == 3 && !substed) {
15961 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15962 \$ac_cs_awk_read_file
15968 \$ac_cs_awk_pipe_fini
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15973 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15976 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15977 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15980 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15981 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15982 # trailing colons and then remove the whole line if VPATH becomes empty
15983 # (actually we leave an empty line to preserve line numbers).
15984 if test "x
$srcdir" = x.; then
15985 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 fi # test -n "$CONFIG_FILES"
16006 # Set up the scripts for CONFIG_HEADERS section.
16007 # No need to generate them if there are no CONFIG_HEADERS.
16008 # This happens for instance with `./config.status Makefile'.
16009 if test -n "$CONFIG_HEADERS"; then
16010 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16014 # Transform confdefs.h into an awk script `defines.awk', embedded as
16015 # here-document in config.status, that substitutes the proper values into
16016 # config.h.in to produce config.h.
16018 # Create a delimiter string that does not exist in confdefs.h, to ease
16019 # handling of long lines.
16021 for ac_last_try in false false :; do
16022 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16023 if test -z "$ac_tt"; then
16025 elif $ac_last_try; then
16026 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16028 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16032 # For the awk script, D is an array of macro values keyed by name,
16033 # likewise P contains macro parameters if any. Preserve backslash
16034 # newline sequences.
16036 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16038 s/.\{148\}/&'"$ac_delim"'/g
16041 s/^[ ]*#[ ]*define[ ][ ]*/ /
16048 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16050 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16055 D["\
1"]=" \
3\\\\\\n
"\\/p
16057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16062 s/.\{148\}/&'"$ac_delim"'/g
16067 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16070 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16072 ' <confdefs.h | sed '
16073 s/'"$ac_delim"'/"\\\
16074 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16077 for (key in D) D_is_set[key] = 1
16080 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16082 split(line, arg, " ")
16083 if (arg[1] == "#") {
16087 defundef
= substr
(arg
[1], 2)
16090 split(mac1
, mac2
, "(") #)
16092 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16093 if (D_is_set
[macro
]) {
16094 # Preserve the white space surrounding the "#".
16095 print prefix
"define", macro P
[macro
] D
[macro
]
16098 # Replace #undef with comments. This is necessary, for example,
16099 # in the case of _POSIX_SOURCE, which is predefined and required
16100 # on some systems where configure will not decide to define it.
16101 if (defundef
== "undef") {
16102 print
"/*", prefix defundef
, macro
, "*/"
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16111 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16112 fi # test -n "$CONFIG_HEADERS"
16115 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16120 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16122 case $ac_mode$ac_tag in
16124 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16125 :[FH
]-) ac_tag
=-:-;;
16126 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16143 -) ac_f
="$ac_tmp/stdin";;
16144 *) # Look for the file first in the build tree, then in the source tree
16145 # (if the path is not absolute). The absolute path cannot be DOS-style,
16146 # because $ac_f cannot contain `:'.
16150 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16152 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16154 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16155 as_fn_append ac_file_inputs
" '$ac_f'"
16158 # Let's still pretend it is `configure' which instantiates (i.e., don't
16159 # use $as_me), people would be surprised to read:
16160 # /* config.h. Generated by config.status. */
16161 configure_input
='Generated from '`
16162 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16164 if test x
"$ac_file" != x-
; then
16165 configure_input
="$ac_file. $configure_input"
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16167 $as_echo "$as_me: creating $ac_file" >&6;}
16169 # Neutralize special characters interpreted by sed in replacement strings.
16170 case $configure_input in #(
16171 *\
&* |
*\|
* |
*\\* )
16172 ac_sed_conf_input
=`$as_echo "$configure_input" |
16173 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16174 *) ac_sed_conf_input
=$configure_input;;
16178 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16179 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16184 ac_dir
=`$as_dirname -- "$ac_file" ||
16185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16186 X"$ac_file" : 'X\(//\)[^/]' \| \
16187 X"$ac_file" : 'X\(//\)$' \| \
16188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16189 $as_echo X"$ac_file" |
16190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16194 /^X\(\/\/\)[^/].*/{
16207 as_dir
="$ac_dir"; as_fn_mkdir_p
16211 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16213 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16214 # A ".." for each directory in $ac_dir_suffix.
16215 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16216 case $ac_top_builddir_sub in
16217 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16218 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16221 ac_abs_top_builddir
=$ac_pwd
16222 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16223 # for backward compatibility:
16224 ac_top_builddir
=$ac_top_build_prefix
16227 .
) # We are building in place.
16229 ac_top_srcdir
=$ac_top_builddir_sub
16230 ac_abs_top_srcdir
=$ac_pwd ;;
16231 [\\/]* | ?
:[\\/]* ) # Absolute name.
16232 ac_srcdir
=$srcdir$ac_dir_suffix;
16233 ac_top_srcdir
=$srcdir
16234 ac_abs_top_srcdir
=$srcdir ;;
16235 *) # Relative name.
16236 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16237 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16238 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16240 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16250 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16251 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16256 # If the template does not know about datarootdir, expand it.
16257 # FIXME: This hack should be removed a few years after 2.60.
16258 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16270 *datarootdir
*) ac_datarootdir_seen
=yes;;
16271 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16276 ac_datarootdir_hack='
16277 s&@datadir@&$datadir&g
16278 s&@docdir@&$docdir&g
16279 s&@infodir@&$infodir&g
16280 s&@localedir@&$localedir&g
16281 s&@mandir@&$mandir&g
16282 s&\\\${datarootdir}&$datarootdir&g' ;;
16286 # Neutralize VPATH when `$srcdir' = `.'.
16287 # Shell code in configure.ac might set extrasub.
16288 # FIXME: do we really want to maintain this feature?
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_sed_extra="$ac_vpsub
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16295 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16296 s|@configure_input@|
$ac_sed_conf_input|
;t t
16297 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16298 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16299 s
&@srcdir@
&$ac_srcdir&;t t
16300 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16301 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16302 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16303 s
&@builddir@
&$ac_builddir&;t t
16304 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16305 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16306 s
&@INSTALL@
&$ac_INSTALL&;t t
16307 $ac_datarootdir_hack
16309 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16310 if $ac_cs_awk_getline; then
16311 $AWK -f "$ac_tmp/subs.
awk"
16313 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
16315 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16320 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16322 which seems to be undefined. Please make sure it is defined" >&5
16323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16324 which seems to be undefined. Please make sure it is defined" >&2;}
16326 rm -f "$ac_tmp/stdin"
16328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16337 if test x"$ac_file" != x-; then
16339 $as_echo "/* $configure_input */" \
16340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16341 } >"$ac_tmp/config.h" \
16342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16348 mv "$ac_tmp/config.h" "$ac_file" \
16349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16352 $as_echo "/* $configure_input */" \
16353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16354 || as_fn_error $? "could not create -" "$LINENO" 5
16358 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16359 $as_echo "$as_me: executing $ac_file commands" >&6;}
16364 case $ac_file$ac_mode in
16367 ### Make the necessary directories, if they don't exist.
16368 for dir
in etc lisp
; do
16369 test -d ${dir} || mkdir
${dir}
16372 echo creating src
/epaths.h
16373 ${MAKE-make} epaths-force
16375 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16376 echo creating src
/.gdbinit
16377 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16388 ac_clean_files
=$ac_clean_files_save
16390 test $ac_write_fail = 0 ||
16391 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16394 # configure is writing to config.log, and then calls config.status.
16395 # config.status does its own redirection, appending to config.log.
16396 # Unfortunately, on DOS this fails, as config.log is still kept open
16397 # by configure, so config.status won't be able to write to it; its
16398 # output is simply discarded. So we exec the FD to /dev/null,
16399 # effectively closing config.log, so it can be properly (re)opened and
16400 # appended to by config.status. When coming back to configure, we
16401 # need to make the FD available again.
16402 if test "$no_create" != yes; then
16404 ac_config_status_args
=
16405 test "$silent" = yes &&
16406 ac_config_status_args
="$ac_config_status_args --quiet"
16408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16411 # would make configure fail if this is the last instruction.
16412 $ac_cs_success || as_fn_exit
1
16414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}