2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
706 LD_SWITCH_X_SITE_AUX_RPATH
782 program_transform_name
793 ac_subst_files
='deps_frag
796 enable_option_checking
818 with_toolkit_scroll_bars
833 enable_ns_self_contained
835 enable_maintainer_mode
838 enable_use_lisp_union_type
844 ac_precious_vars
='build_alias
856 # Initialize some variables set by options.
858 ac_init_version
=false
859 ac_unrecognized_opts
=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name
=s
,x
,x
,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir
='${exec_prefix}/bin'
885 sbindir
='${exec_prefix}/sbin'
886 libexecdir
='${exec_prefix}/libexec'
887 datarootdir
='${prefix}/share'
888 datadir
='${datarootdir}'
889 sysconfdir
='${prefix}/etc'
890 sharedstatedir
='${prefix}/com'
891 localstatedir
='${prefix}/var'
892 includedir
='${prefix}/include'
893 oldincludedir
='/usr/include'
894 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir
='${datarootdir}/info'
900 libdir
='${exec_prefix}/lib'
901 localedir
='${datarootdir}/locale'
902 mandir
='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\
$ac_option
916 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
929 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
932 -build |
--build |
--buil |
--bui |
--bu)
933 ac_prev
=build_alias
;;
934 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
935 build_alias
=$ac_optarg ;;
937 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
938 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
939 ac_prev
=cache_file
;;
940 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
941 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
942 cache_file
=$ac_optarg ;;
945 cache_file
=config.cache
;;
947 -datadir |
--datadir |
--datadi |
--datad)
949 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
950 datadir
=$ac_optarg ;;
952 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
953 |
--dataroo |
--dataro |
--datar)
954 ac_prev
=datarootdir
;;
955 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
956 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
957 datarootdir
=$ac_optarg ;;
959 -disable-* |
--disable-*)
960 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
963 as_fn_error $?
"invalid feature name: $ac_useropt"
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=no
;;
975 -docdir |
--docdir |
--docdi |
--doc |
--do)
977 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
980 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
982 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
985 -enable-* |
--enable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 as_fn_error $?
"invalid feature name: $ac_useropt"
990 ac_useropt_orig
=$ac_useropt
991 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep
=', ';;
999 eval enable_
$ac_useropt=\
$ac_optarg ;;
1001 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1002 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1003 |
--exec |
--exe |
--ex)
1004 ac_prev
=exec_prefix
;;
1005 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1006 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1007 |
--exec=* |
--exe=* |
--ex=*)
1008 exec_prefix
=$ac_optarg ;;
1010 -gas |
--gas |
--ga |
--g)
1011 # Obsolete; use --with-gas.
1014 -help |
--help |
--hel |
--he |
-h)
1015 ac_init_help
=long
;;
1016 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1017 ac_init_help
=recursive
;;
1018 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1019 ac_init_help
=short
;;
1021 -host |
--host |
--hos |
--ho)
1022 ac_prev
=host_alias
;;
1023 -host=* |
--host=* |
--hos=* |
--ho=*)
1024 host_alias
=$ac_optarg ;;
1026 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1028 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1030 htmldir
=$ac_optarg ;;
1032 -includedir |
--includedir |
--includedi |
--included |
--include \
1033 |
--includ |
--inclu |
--incl |
--inc)
1034 ac_prev
=includedir
;;
1035 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1036 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1037 includedir
=$ac_optarg ;;
1039 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1041 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1042 infodir
=$ac_optarg ;;
1044 -libdir |
--libdir |
--libdi |
--libd)
1046 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1047 libdir
=$ac_optarg ;;
1049 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1050 |
--libexe |
--libex |
--libe)
1051 ac_prev
=libexecdir
;;
1052 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1053 |
--libexe=* |
--libex=* |
--libe=*)
1054 libexecdir
=$ac_optarg ;;
1056 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1057 ac_prev
=localedir
;;
1058 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1059 localedir
=$ac_optarg ;;
1061 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1062 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1063 ac_prev
=localstatedir
;;
1064 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1065 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1066 localstatedir
=$ac_optarg ;;
1068 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1070 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1071 mandir
=$ac_optarg ;;
1073 -nfp |
--nfp |
--nf)
1074 # Obsolete; use --without-fp.
1077 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1078 |
--no-cr |
--no-c |
-n)
1081 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1082 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1085 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1086 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1087 |
--oldin |
--oldi |
--old |
--ol |
--o)
1088 ac_prev
=oldincludedir
;;
1089 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1090 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1091 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1092 oldincludedir
=$ac_optarg ;;
1094 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1096 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1097 prefix
=$ac_optarg ;;
1099 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1100 |
--program-pre |
--program-pr |
--program-p)
1101 ac_prev
=program_prefix
;;
1102 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1103 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1104 program_prefix
=$ac_optarg ;;
1106 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1107 |
--program-suf |
--program-su |
--program-s)
1108 ac_prev
=program_suffix
;;
1109 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1110 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1111 program_suffix
=$ac_optarg ;;
1113 -program-transform-name |
--program-transform-name \
1114 |
--program-transform-nam |
--program-transform-na \
1115 |
--program-transform-n |
--program-transform- \
1116 |
--program-transform |
--program-transfor \
1117 |
--program-transfo |
--program-transf \
1118 |
--program-trans |
--program-tran \
1119 |
--progr-tra |
--program-tr |
--program-t)
1120 ac_prev
=program_transform_name
;;
1121 -program-transform-name=* |
--program-transform-name=* \
1122 |
--program-transform-nam=* |
--program-transform-na=* \
1123 |
--program-transform-n=* |
--program-transform-=* \
1124 |
--program-transform=* |
--program-transfor=* \
1125 |
--program-transfo=* |
--program-transf=* \
1126 |
--program-trans=* |
--program-tran=* \
1127 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1128 program_transform_name
=$ac_optarg ;;
1130 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1132 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1133 pdfdir
=$ac_optarg ;;
1135 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1137 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1140 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1141 |
-silent |
--silent |
--silen |
--sile |
--sil)
1144 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1146 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1148 sbindir
=$ac_optarg ;;
1150 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1151 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1152 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1154 ac_prev
=sharedstatedir
;;
1155 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1156 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1157 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1159 sharedstatedir
=$ac_optarg ;;
1161 -site |
--site |
--sit)
1163 -site=* |
--site=* |
--sit=*)
1166 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1168 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1169 srcdir
=$ac_optarg ;;
1171 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1172 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1173 ac_prev
=sysconfdir
;;
1174 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1175 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1176 sysconfdir
=$ac_optarg ;;
1178 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1179 ac_prev
=target_alias
;;
1180 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1181 target_alias
=$ac_optarg ;;
1183 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1186 -version |
--version |
--versio |
--versi |
--vers |
-V)
1187 ac_init_version
=: ;;
1190 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1193 as_fn_error $?
"invalid package name: $ac_useropt"
1194 ac_useropt_orig
=$ac_useropt
1195 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep
=', ';;
1203 eval with_
$ac_useropt=\
$ac_optarg ;;
1205 -without-* |
--without-*)
1206 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1209 as_fn_error $?
"invalid package name: $ac_useropt"
1210 ac_useropt_orig
=$ac_useropt
1211 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep
=', ';;
1219 eval with_
$ac_useropt=no
;;
1222 # Obsolete; use --with-x.
1225 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1226 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1227 ac_prev
=x_includes
;;
1228 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1229 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1230 x_includes
=$ac_optarg ;;
1232 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1233 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1234 ac_prev
=x_libraries
;;
1235 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1236 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1237 x_libraries
=$ac_optarg ;;
1239 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1248 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\
$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 if test -n "$ac_prev"; then
1265 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $?
"missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val
=\$
$ac_var
1284 # Remove trailing slashes.
1287 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\
$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$
]* | ?
:[\\/]* ) continue;;
1293 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1295 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target
=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x
; then
1307 if test "x$build_alias" = x
; then
1308 cross_compiling
=maybe
1309 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used" >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $?
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $?
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --x-includes=DIR X include files are
in DIR
1460 --x-libraries=DIR X library files are
in DIR
1463 --build=BUILD configure
for building on BUILD
[guessed
]
1464 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1475 --disable-option-checking ignore unrecognized
--enable/--with options
1476 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1477 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1478 --disable-ns-self-contained
1479 disable self contained build under NeXTstep
1480 --enable-asserts compile code with asserts enabled
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful
(and
1483 sometimes confusing
) to the casual installer
1484 --enable-locallisppath=PATH
1485 directories Emacs should search
for lisp files
1486 specific to this site
1487 --enable-checking[=LIST
]
1488 enable expensive run-time checks. With LIST
, enable
1489 only specific categories of checks. Categories are
:
1490 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1491 stringfreelist
, xmallocoverrun
, conslist
1492 --enable-use-lisp-union-type
1493 use a union
for the Lisp_Object data
type. This is
1494 only useful
for development
for catching certain
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled
if GNU Make and
1501 --disable-largefile omit support
for large files
1504 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1505 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1506 --without-pop don
't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1517 lucid or athena
, motif
, no
)
1518 --without-xpm don
't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don
't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don
't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xml2 don
't compile with XML parsing support
1525 --without-imagemagick don't compile with ImageMagick image support
1526 --without-xft don
't use XFT for anti aliased fonts
1527 --without-libotf don't use libotf
for OpenType font support
1528 --without-m17n-flt don
't use m17n-flt for text shaping
1529 --without-toolkit-scroll-bars
1530 don't use Motif or Xaw3d scroll bars
1531 --without-xaw3d don
't use Xaw3d
1532 --without-xim don't use X11 XIM
1533 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1534 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1536 --without-dbus don't compile with D-Bus support
1537 --without-gconf don
't compile with GConf support
1538 --without-selinux don't compile with SELinux support
1539 --without-gnutls don
't use -lgnutls for SSL/TLS support
1540 --without-makeinfo don't require makeinfo
for building manuals
1541 --without-compress-info don
't compress the installed Info pages
1542 --with-pkg-config-prog=PATH
1543 path to pkg-config for finding GTK and librsvg
1544 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1545 /usr/lib, or /usr/lib64 on some platforms.
1546 --with-gameuser=USER user for shared game score files
1547 --with-gnustep-conf=PATH
1548 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1549 or /etc/GNUstep/GNUstep.conf
1550 --with-x use the X Window System
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1563 Use these variables to override the choices made by `configure' or to
help
1564 it to
find libraries and programs with nonstandard names
/locations.
1566 Report bugs to the package provider.
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1580 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1582 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1587 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1590 ac_abs_top_builddir
=$ac_pwd
1591 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir
=$ac_top_build_prefix
1596 .
) # We are building in place.
1598 ac_top_srcdir
=$ac_top_builddir_sub
1599 ac_abs_top_srcdir
=$ac_pwd ;;
1600 [\\/]* | ?
:[\\/]* ) # Absolute name.
1601 ac_srcdir
=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir
=$srcdir
1603 ac_abs_top_srcdir
=$srcdir ;;
1605 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1609 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1629 emacs configure
24.0.50
1630 generated by GNU Autoconf
2.67
1632 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1633 This configure
script is free software
; the Free Software Foundation
1634 gives unlimited permission to copy
, distribute and modify it.
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile
()
1648 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1649 rm -f conftest.
$ac_objext
1650 if { { ac_try
="$ac_compile"
1652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1691 *) ac_try_echo
=$ac_try;;
1693 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1697 if test -s conftest.err
; then
1698 grep -v '^ *+' conftest.err
>conftest.er1
1699 cat conftest.er1
>&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest
$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest
$ac_exeext
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.
$ac_ext >&5
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1723 as_fn_set_status
$ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval "test \"\${$3+set}\"" = set; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval "test \"\${$3+set}\"" = set; then :
1776 $as_echo_n "(cached) " >&6
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 $as_echo_n "(cached) " >&6
1841 eval "$3=\$ac_header_compiler"
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1910 if ac_fn_c_try_compile "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1925 # ---------------------------------------------
1926 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928 ac_fn_c_check_decl ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1932 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1934 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1935 if eval "test \"\${$3+set}\"" = set; then :
1936 $as_echo_n "(cached) " >&6
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 #ifndef $as_decl_name
1946 (void) $as_decl_use;
1948 (void) $as_decl_name;
1956 if ac_fn_c_try_compile "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 } # ac_fn_c_check_decl
1970 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1971 # ----------------------------------------------
1972 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_preproc ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_preproc
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval "test \"\${$4+set}\"" = set; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2034 if (sizeof ac_aggr.$3)
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval "test \"\${$3+set}\"" = set; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2079 # include <limits.h>
2081 # include <assert.h>
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2108 if ac_fn_c_try_link "$LINENO"; then :
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124 # -------------------------------------------
2125 # Tests whether TYPE exists after having included INCLUDES, setting cache
2126 # variable VAR accordingly.
2127 ac_fn_c_check_type ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval "test \"\${$3+set}\"" = set; then :
2133 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_type
2176 cat >config.log <<_ACEOF
2177 This file contains any messages produced by compilers while
2178 running configure, to aid debugging if configure makes a mistake.
2180 It was created by emacs $as_me 24.0.50, which was
2181 generated by GNU Autoconf 2.67. Invocation command line was
2193 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2194 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2195 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2196 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2197 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2199 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2200 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2202 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2203 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2204 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2205 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2206 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2207 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2208 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2233 # Keep a trace of the command line.
2234 # Strip out --no-create and --no-recursion so they do not pile up.
2235 # Strip out --silent because we don't want to record it for future runs.
2236 # Also quote any args containing shell meta-characters.
2237 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_must_keep_next=false
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2252 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 -* ) ac_must_keep_next=true ;;
2273 as_fn_append ac_configure_args " '$ac_arg'"
2278 { ac_configure_args0=; unset ac_configure_args0;}
2279 { ac_configure_args1=; unset ac_configure_args1;}
2281 # When interrupted or exit'd, cleanup temporary files, and complete
2282 # config.log. We remove comments because anyway the quotes in there
2283 # would cause problems or look ugly.
2284 # WARNING: Use '\'' to represent an apostrophe within the trap.
2285 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286 trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2291 $as_echo "## ---------------- ##
2292 ## Cache variables. ##
2293 ## ---------------- ##"
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2298 eval ac_val=\$$ac_var
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2313 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 $as_echo "## ----------------- ##
2328 ## Output variables. ##
2329 ## ----------------- ##"
2331 for ac_var in $ac_subst_vars
2333 eval ac_val=\$$ac_var
2335 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 $as_echo "$ac_var='\''$ac_val'\''"
2341 if test -n "$ac_subst_files"; then
2342 $as_echo "## ------------------- ##
2343 ## File substitutions. ##
2344 ## ------------------- ##"
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2350 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -s confdefs.h; then
2358 $as_echo "## ----------- ##
2365 test "$ac_signal" != 0 &&
2366 $as_echo "$as_me: caught signal $ac_signal"
2367 $as_echo "$as_me: exit $exit_status"
2369 rm -f core *.core core.conftest.* &&
2370 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 for ac_signal in 1 2 13 15; do
2374 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2379 rm -f -r conftest* confdefs.h
2381 $as_echo "/* confdefs.h */" > confdefs.h
2383 # Predefined preprocessor variables.
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_NAME "$PACKAGE_NAME"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_STRING "$PACKAGE_STRING"
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_URL "$PACKAGE_URL"
2410 # Let the site file select an alternate cache file if it wants to.
2411 # Prefer an explicitly selected file to automatically selected ones.
2414 if test -n "$CONFIG_SITE"; then
2415 # We do not want a PATH search for config.site.
2416 case $CONFIG_SITE in #((
2417 -*) ac_site_file1=./$CONFIG_SITE;;
2418 */*) ac_site_file1=$CONFIG_SITE;;
2419 *) ac_site_file1=./$CONFIG_SITE;;
2421 elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 test "x$ac_site_file" = xNONE && continue
2431 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434 sed 's/^/| /' "$ac_site_file" >&5
2436 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "failed to load site
script $ac_site_file
2439 See \
`config.log' for more details" "$LINENO" 5; }
2443 if test -r "$cache_file"; then
2444 # Some versions of bash will fail to source /dev/null (special files
2445 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2446 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 as_fn_append ac_header_list " stdlib.h"
2461 as_fn_append ac_header_list " unistd.h"
2462 as_fn_append ac_header_list " sys/param.h"
2463 as_fn_append ac_header_list " sys/time.h"
2464 as_fn_append ac_func_list " alarm"
2465 # Check that the precious variables saved in the cache have kept the same
2467 ac_cache_corrupted=false
2468 for ac_var in $ac_precious_vars; do
2469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470 eval ac_new_set=\$ac_env_${ac_var}_set
2471 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472 eval ac_new_val=\$ac_env_${ac_var}_value
2473 case $ac_old_set,$ac_new_set in
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2476 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2480 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2484 if test "x$ac_old_val" != "x$ac_new_val"; then
2485 # differences in whitespace do not lead to failure.
2486 ac_old_val_w=`echo x
$ac_old_val`
2487 ac_new_val_w=`echo x
$ac_new_val`
2488 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2491 ac_cache_corrupted=:
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2494 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495 eval $ac_var=\$ac_old_val
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2498 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2500 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503 # Pass precious variables to config.status.
2504 if test "$ac_new_set" = set; then
2506 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2507 *) ac_arg=$ac_var=$ac_new_val ;;
2509 case " $ac_configure_args " in
2510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2511 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515 if $ac_cache_corrupted; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2537 test "$program_prefix" != NONE &&
2538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $.
2543 # By default was `s
,x
,x
', remove it if useless.
2544 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 lispdir='${datadir}/emacs
/${version}/lisp
'
2549 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2550 '${datadir}/emacs
/site-lisp
'
2551 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2552 etcdir='${datadir}/emacs
/${version}/etc
'
2553 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2554 docdir='${datadir}/emacs
/${version}/etc
'
2555 gamedir='${localstatedir}/games
/emacs
'
2560 # Check whether --with-pop was given.
2561 if test "${with_pop+set}" = set; then :
2567 if test "$with_pop" = yes; then
2568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2573 # Check whether --with-kerberos was given.
2574 if test "${with_kerberos+set}" = set; then :
2575 withval=$with_kerberos;
2580 if test "$with_kerberos" != no; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2586 # Check whether --with-kerberos5 was given.
2587 if test "${with_kerberos5+set}" = set; then :
2588 withval=$with_kerberos5;
2593 if test "${with_kerberos5}" != no; then
2594 if test "${with_kerberos}" = no; then
2596 $as_echo "#define KERBEROS 1" >>confdefs.h
2600 $as_echo "#define KERBEROS5 1" >>confdefs.h
2605 # Check whether --with-hesiod was given.
2606 if test "${with_hesiod+set}" = set; then :
2607 withval=$with_hesiod;
2612 if test "$with_hesiod" != no; then
2614 $as_echo "#define HESIOD 1" >>confdefs.h
2619 # Check whether --with-mmdf was given.
2620 if test "${with_mmdf+set}" = set; then :
2626 if test "$with_mmdf" != no; then
2628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2633 # Check whether --with-mail-unlink was given.
2634 if test "${with_mail_unlink+set}" = set; then :
2635 withval=$with_mail_unlink;
2640 if test "$with_mail_unlink" != no; then
2642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2647 # Check whether --with-mailhost was given.
2648 if test "${with_mailhost+set}" = set; then :
2649 withval=$with_mailhost;
2650 cat >>confdefs.h <<_ACEOF
2651 #define MAILHOST "$withval"
2658 # Check whether --with-sound was given.
2659 if test "${with_sound+set}" = set; then :
2660 withval=$with_sound;
2667 # Check whether --with-sync-input was given.
2668 if test "${with_sync_input+set}" = set; then :
2669 withval=$with_sync_input;
2674 if test "$with_sync_input" = yes; then
2676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2681 # Check whether --with-x-toolkit was given.
2682 if test "${with_x_toolkit+set}" = set; then :
2683 withval=$with_x_toolkit; case "${withval}" in
2684 y | ye | yes ) val=gtk ;;
2686 l | lu | luc | luci | lucid ) val=lucid ;;
2687 a | at | ath | athe | athen | athena ) val=athena ;;
2688 m | mo | mot | moti | motif ) val=motif ;;
2689 g | gt | gtk ) val=gtk ;;
2692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid
;
2693 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2694 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2703 # Check whether --with-xpm was given.
2704 if test "${with_xpm+set}" = set; then :
2711 # Check whether --with-jpeg was given.
2712 if test "${with_jpeg+set}" = set; then :
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2727 # Check whether --with-gif was given.
2728 if test "${with_gif+set}" = set; then :
2735 # Check whether --with-png was given.
2736 if test "${with_png+set}" = set; then :
2743 # Check whether --with-rsvg was given.
2744 if test "${with_rsvg+set}" = set; then :
2751 # Check whether --with-xml2 was given.
2752 if test "${with_xml2+set}" = set; then :
2759 # Check whether --with-imagemagick was given.
2760 if test "${with_imagemagick+set}" = set; then :
2761 withval=$with_imagemagick;
2763 with_imagemagick=yes
2768 # Check whether --with-xft was given.
2769 if test "${with_xft+set}" = set; then :
2776 # Check whether --with-libotf was given.
2777 if test "${with_libotf+set}" = set; then :
2778 withval=$with_libotf;
2784 # Check whether --with-m17n-flt was given.
2785 if test "${with_m17n_flt+set}" = set; then :
2786 withval=$with_m17n_flt;
2793 # Check whether --with-toolkit-scroll-bars was given.
2794 if test "${with_toolkit_scroll_bars+set}" = set; then :
2795 withval=$with_toolkit_scroll_bars;
2797 with_toolkit_scroll_bars=yes
2801 # Check whether --with-xaw3d was given.
2802 if test "${with_xaw3d+set}" = set; then :
2803 withval=$with_xaw3d;
2809 # Check whether --with-xim was given.
2810 if test "${with_xim+set}" = set; then :
2817 # Check whether --with-ns was given.
2818 if test "${with_ns+set}" = set; then :
2826 # Check whether --with-gpm was given.
2827 if test "${with_gpm+set}" = set; then :
2834 # Check whether --with-dbus was given.
2835 if test "${with_dbus+set}" = set; then :
2842 # Check whether --with-gconf was given.
2843 if test "${with_gconf+set}" = set; then :
2844 withval=$with_gconf;
2850 # Check whether --with-selinux was given.
2851 if test "${with_selinux+set}" = set; then :
2852 withval=$with_selinux;
2858 # Check whether --with-gnutls was given.
2859 if test "${with_gnutls+set}" = set; then :
2860 withval=$with_gnutls;
2866 ## For the times when you want to build Emacs but don't have
2867 ## a suitable makeinfo, and can live without the manuals.
2869 # Check whether --with-makeinfo was given.
2870 if test "${with_makeinfo+set}" = set; then :
2871 withval=$with_makeinfo;
2877 ## This is an option because I do not know if all info/man support
2878 ## compressed files, nor how to test if they do so.
2880 # Check whether --with-compress-info was given.
2881 if test "${with_compress_info+set}" = set; then :
2882 withval=$with_compress_info;
2884 with_compress_info=yes
2887 if test $with_compress_info = yes; then
2895 # Check whether --with-pkg-config-prog was given.
2896 if test "${with_pkg_config_prog+set}" = set; then :
2897 withval=$with_pkg_config_prog;
2900 if test "X${with_pkg_config_prog}" != X; then
2901 if test "${with_pkg_config_prog}" != yes; then
2902 PKG_CONFIG="${with_pkg_config_prog}"
2908 # Check whether --with-crt-dir was given.
2909 if test "${with_crt_dir+set}" = set; then :
2910 withval=$with_crt_dir;
2913 CRT_DIR="${with_crt_dir}"
2916 # Check whether --with-gameuser was given.
2917 if test "${with_gameuser+set}" = set; then :
2918 withval=$with_gameuser;
2921 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2922 && gameuser="${with_gameuser}"
2923 test "X$gameuser" = X && gameuser=games
2926 # Check whether --with-gnustep-conf was given.
2927 if test "${with_gnustep_conf+set}" = set; then :
2928 withval=$with_gnustep_conf;
2931 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2932 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2933 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2934 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2936 # Check whether --enable-ns-self-contained was given.
2937 if test "${enable_ns_self_contained+set}" = set; then :
2938 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2940 EN_NS_SELF_CONTAINED=yes
2944 # Check whether --enable-asserts was given.
2945 if test "${enable_asserts+set}" = set; then :
2946 enableval=$enable_asserts; USE_XASSERTS=$enableval
2952 # Check whether --enable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2956 USE_MAINTAINER_MODE=no
2959 if test $USE_MAINTAINER_MODE = yes; then
2966 # Check whether --enable-locallisppath was given.
2967 if test "${enable_locallisppath+set}" = set; then :
2968 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2970 elif test "${enableval}" != "yes"; then
2971 locallisppath=${enableval}
2976 # Check whether --enable-checking was given.
2977 if test "${enable_checking+set}" = set; then :
2978 enableval=$enable_checking; ac_checking_flags="${enableval}"
2981 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2982 for check in $ac_checking_flags
2985 # these set all the flags to specific states
2986 yes) ac_enable_checking=1 ;;
2987 no) ac_enable_checking= ;
2988 ac_gc_check_stringbytes= ;
2989 ac_gc_check_string_overrun= ;
2990 ac_gc_check_string_free_list= ;
2991 ac_xmalloc_overrun= ;
2992 ac_gc_check_cons_list= ;;
2993 all) ac_enable_checking=1 ;
2994 ac_gc_check_stringbytes=1 ;
2995 ac_gc_check_string_overrun=1 ;
2996 ac_gc_check_string_free_list=1 ;
2997 ac_xmalloc_overrun=1 ;
2998 ac_gc_check_cons_list=1 ;;
2999 # these enable particular checks
3000 stringbytes) ac_gc_check_stringbytes=1 ;;
3001 stringoverrun) ac_gc_check_string_overrun=1 ;;
3002 stringfreelist) ac_gc_check_string_free_list=1 ;;
3003 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3004 conslist) ac_gc_check_cons_list=1 ;;
3005 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3010 if test x$ac_enable_checking != x ; then
3012 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3015 if test x$ac_gc_check_stringbytes != x ; then
3017 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3020 if test x$ac_gc_check_stringoverrun != x ; then
3022 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3025 if test x$ac_gc_check_string_free_list != x ; then
3027 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3030 if test x$ac_xmalloc_overrun != x ; then
3032 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3035 if test x$ac_gc_check_cons_list != x ; then
3037 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3041 # Check whether --enable-use-lisp-union-type was given.
3042 if test "${enable_use_lisp_union_type+set}" = set; then :
3043 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3045 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3052 # Check whether --enable-profiling was given.
3053 if test "${enable_profiling+set}" = set; then :
3054 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3057 if test x$ac_enable_profiling != x ; then
3058 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3064 # Check whether --enable-autodepend was given.
3065 if test "${enable_autodepend+set}" = set; then :
3066 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3068 ac_enable_autodepend=yes
3072 #### Make srcdir absolute, if it isn't already. It's important to
3073 #### avoid running the path through pwd unnecessarily, since pwd can
3074 #### give you automounter prefixes, which can go away. We do all this
3075 #### so Emacs can find its files when run uninstalled.
3076 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3081 ## We may be able to use the $PWD environment variable to make this
3082 ## absolute. But sometimes PWD is inaccurate.
3083 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3084 ## but that tested only for a well-formed and valid PWD,
3085 ## it did not object when PWD was well-formed and valid but just wrong.
3086 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3090 srcdir="`(cd ${srcdir}; pwd)`"
3093 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3096 #### Check if the source directory already has a configured system in it.
3097 if test `pwd` != `(cd ${srcdir} && pwd)` \
3098 && test -f "${srcdir}/src/config.h" ; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3100 as a build directory right now; it has been configured in its own
3101 right. To configure in another directory as well, you MUST
3102 use GNU make. If you do not have GNU make, then you must
3103 now do \`make distclean' in ${srcdir},
3104 and
then run
$0 again.
" >&5
3105 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3106 as a build directory right now; it has been configured in its own
3107 right. To configure in another directory as well, you MUST
3108 use GNU make. If you do not have GNU make, then you must
3109 now do \`make distclean
' in ${srcdir},
3110 and then run $0 again." >&2;}
3113 #### Given the configuration name, set machfile and opsysfile to the
3114 #### names of the m/*.h and s/*.h files we should use.
3116 ### Canonicalize the configuration name.
3119 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3120 if test -f "$ac_dir/install-sh"; then
3122 ac_install_sh="$ac_aux_dir/install-sh -c"
3124 elif test -f "$ac_dir/install.sh"; then
3126 ac_install_sh="$ac_aux_dir/install.sh -c"
3128 elif test -f "$ac_dir/shtool"; then
3130 ac_install_sh="$ac_aux_dir/shtool install -c"
3134 if test -z "$ac_aux_dir"; then
3135 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3138 # These three variables are undocumented and unsupported,
3139 # and are intended to be withdrawn in a future Autoconf release.
3140 # They can cause serious problems if a builder's
source tree is
in a directory
3141 # whose full name contains unusual characters.
3142 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3143 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3144 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3147 # Make sure we can run config.sub.
3148 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3149 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3152 $as_echo_n "checking build system type... " >&6; }
3153 if test "${ac_cv_build+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 ac_build_alias
=$build_alias
3157 test "x$ac_build_alias" = x
&&
3158 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3159 test "x$ac_build_alias" = x
&&
3160 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3161 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3162 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3166 $as_echo "$ac_cv_build" >&6; }
3167 case $ac_cv_build in
3169 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3172 ac_save_IFS
=$IFS; IFS
='-'
3178 # Remember, the first character of IFS is used to create $*,
3179 # except with old shells:
3182 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3186 $as_echo_n "checking host system type... " >&6; }
3187 if test "${ac_cv_host+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3190 if test "x$host_alias" = x
; then
3191 ac_cv_host
=$ac_cv_build
3193 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3194 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3199 $as_echo "$ac_cv_host" >&6; }
3202 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3205 ac_save_IFS
=$IFS; IFS
='-'
3211 # Remember, the first character of IFS is used to create $*,
3212 # except with old shells:
3215 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3219 configuration
=${host_alias-${build_alias-$host}}
3223 ### If you add support for a new configuration, add code to this
3224 ### switch statement to recognize your configuration name and select
3225 ### the appropriate operating system and machine description files.
3227 ### You would hope that you could choose an m/*.h file pretty much
3228 ### based on the machine portion of the configuration name, and an s/*.h
3229 ### file based on the operating system portion. However, it turns out
3230 ### that each m/*.h file is pretty manufacturer-specific - for
3231 ### example mips.h is MIPS
3232 ### So we basically have to have a special case for each
3233 ### configuration name.
3235 ### As far as handling version numbers on operating systems is
3236 ### concerned, make sure things will fail in a fixable way. If
3237 ### /etc/MACHINES doesn't say anything about version numbers, be
3238 ### prepared to handle anything reasonably. If version numbers
3239 ### matter, be sure /etc/MACHINES says something about it.
3241 machine
='' opsys
='' unported
=no
3242 case "${canonical}" in
3247 case ${canonical} in
3248 alpha
*) machine
=alpha
;;
3249 s390-
*) machine
=ibms390
;;
3250 s390x-
*) machine
=ibms390x
;;
3251 powerpc
*) machine
=macppc
;;
3252 sparc
*) machine
=sparc
;;
3253 ia64
*) machine
=ia64
;;
3254 m68k
*) machine
=m68k
;;
3255 x86_64
*) machine
=amdx86-64
;;
3262 case "${canonical}" in
3263 alpha
*) machine
=alpha
;;
3264 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3265 ia64-
*) machine
=ia64
;;
3266 i
[3456]86-*) machine
=intel386
;;
3267 powerpc-
*) machine
=macppc
;;
3268 sparc-
*) machine
=sparc
;;
3269 sparc64-
*) machine
=sparc
;;
3273 ## FreeBSD kernel + glibc based userland
3276 case "${canonical}" in
3277 alpha
*) machine
=alpha
;;
3278 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3279 ia64-
*) machine
=ia64
;;
3280 i
[3456]86-*) machine
=intel386
;;
3281 powerpc-
*) machine
=macppc
;;
3282 sparc-
*) machine
=sparc
;;
3283 sparc64-
*) machine
=sparc
;;
3290 case "${canonical}" in
3291 alpha
*) machine
=alpha
;;
3292 x86_64-
*) machine
=amdx86-64
;;
3293 i
[3456]86-*) machine
=intel386
;;
3294 m68k-
*) machine
=m68k
;;
3295 powerpc-
*) machine
=macppc
;;
3296 sparc
*-) machine
=sparc
;;
3297 vax-
*) machine
=vax
;;
3304 case "${canonical}" in
3305 alpha
*) machine
=alpha
;;
3306 x86_64-
*) machine
=amdx86-64
;;
3307 i386-
*) machine
=intel386
;;
3308 powerpc-
*) machine
=macppc
;;
3309 sparc
*) machine
=sparc
;;
3310 vax-
*) machine
=vax
;;
3314 ## Apple Darwin / Mac OS X
3316 case "${canonical}" in
3317 i
[3456]86-* ) machine
=intel386
;;
3318 powerpc-
* ) machine
=macppc
;;
3319 x86_64-
* ) machine
=amdx86-64
;;
3323 # Define CPP as follows to make autoconf work correctly.
3324 CPP
="${CC-cc} -E -no-cpp-precomp"
3325 # Use fink packages if available.
3326 if test -d /sw
/include
&& test -d /sw
/lib
; then
3327 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3328 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3329 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3333 ## HP 9000 series 700 and 800, running HP/UX
3334 hppa
*-hp-hpux10.2
* )
3337 hppa
*-hp-hpux1[1-9]* )
3339 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3343 rs6000-ibm-aix4.
[23]* )
3344 machine
=ibmrs6000 opsys
=aix4-2
3346 powerpc-ibm-aix4.
[23]* )
3347 machine
=ibmrs6000 opsys
=aix4-2
3349 rs6000-ibm-aix
[56]* )
3350 machine
=ibmrs6000 opsys
=aix4-2
3352 powerpc-ibm-aix
[56]* )
3353 machine
=ibmrs6000 opsys
=aix4-2
3356 ## Silicon Graphics machines
3359 machine
=iris4d opsys
=irix6-5
3360 # Without defining _LANGUAGE_C, things get masked out in the headers
3361 # so that, for instance, grepping for `free' in stdlib.h fails and
3362 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3363 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3364 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3369 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3370 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3371 case "${canonical}" in
3372 i
[3456]86-*-* ) machine
=intel386
;;
3373 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3374 sparc
* ) machine
=sparc
;;
3377 case "${canonical}" in
3378 *-sunos5.6
* |
*-solaris2.6
* )
3380 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3383 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3385 emacs_check_sunpro_c
=yes
3386 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3388 *-sunos5* |
*-solaris* )
3390 emacs_check_sunpro_c
=yes
3391 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3394 ## Watch out for a compiler that we know will not work.
3395 case "${canonical}" in
3396 *-solaris* |
*-sunos5* )
3397 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3398 ## /usr/ucb/cc doesn't work;
3399 ## we should find some other compiler that does work.
3407 ## Intel 386 machines where we don't care about the manufacturer.
3410 case "${canonical}" in
3411 *-cygwin ) opsys
=cygwin
;;
3412 *-darwin* ) opsys
=darwin
3413 CPP
="${CC-cc} -E -no-cpp-precomp"
3415 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3416 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3417 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3418 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3427 ### If the code above didn't choose an operating system, just choose
3428 ### an operating system based on the configuration name. You really
3429 ### only want to use this when you have no idea what the right
3430 ### operating system is; if you know what operating systems a machine
3431 ### runs, it's cleaner to make it explicit in the case statement
3433 if test x
"${opsys}" = x
; then
3434 case "${canonical}" in
3435 *-gnu* ) opsys
=gnu
;;
3444 if test $unported = yes; then
3445 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
3446 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3449 if test -n "$machine"; then
3450 machfile
="m/${machine}.h"
3454 opsysfile
="s/${opsys}.h"
3457 #### Choose a compiler.
3458 test -n "$CC" && cc_specified
=yes
3460 # Save the value of CFLAGS that the user specified.
3461 SPECIFIED_CFLAGS
="$CFLAGS"
3464 ac_cpp
='$CPP $CPPFLAGS'
3465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3470 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$ac_cv_prog_CC"; then
3509 # Extract the first word of "gcc", so it can be a program name with args.
3510 set dummy gcc
; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir
=.
3524 for ac_exec_ext
in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_CC
="gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3537 if test -n "$ac_ct_CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3539 $as_echo "$ac_ct_CC" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3545 if test "x$ac_ct_CC" = x
; then
3548 case $cross_compiling:$ac_tool_warned in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned
=yes ;;
3560 if test -z "$CC"; then
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3563 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_CC+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC
="$CC" # Let the user override the test.
3572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir
=.
3577 for ac_exec_ext
in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3601 if test -z "$CC"; then
3602 # Extract the first word of "cc", so it can be a program name with args.
3603 set dummy cc
; ac_word
=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC
="$CC" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3621 ac_prog_rejected
=yes
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test $ac_prog_rejected = yes; then
3633 # We found a bogon in the path, so make sure we never use it.
3634 set dummy
$ac_cv_prog_CC
3636 if test $# != 0; then
3637 # We chose a different compiler from the bogus one.
3638 # However, it has the same basename, so the bogon will be chosen
3639 # first if we set CC to just the basename; use the full file name.
3641 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3657 if test -z "$CC"; then
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog
in cl.exe
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC
="$CC" # Let the user override the test.
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$CC" && break
3701 if test -z "$CC"; then
3703 for ac_prog
in cl.exe
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy
$ac_prog; ac_word
=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$ac_ct_CC"; then
3713 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir
=.
3720 for ac_exec_ext
in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_ac_ct_CC
="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3733 if test -n "$ac_ct_CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3735 $as_echo "$ac_ct_CC" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$ac_ct_CC" && break
3745 if test "x$ac_ct_CC" = x
; then
3748 case $cross_compiling:$ac_tool_warned in
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned
=yes ;;
3761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $?
"no acceptable C compiler found in \$PATH
3764 See \`config.log' for more details" "$LINENO" 5; }
3766 # Provide some information about the compiler.
3767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3770 for ac_option
in --version -v -V -qversion; do
3771 { { ac_try
="$ac_compiler $ac_option >&5"
3773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3780 if test -s conftest.err; then
3782 ... rest of stderr output deleted ...
3783 10q' conftest.err >conftest.er1
3784 cat conftest.er1 >&5
3786 rm -f conftest.er1 conftest.err
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3802 ac_clean_files_save=$ac_clean_files
3803 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3804 # Try to create an executable without -o first, disregard a.out.
3805 # It will help us diagnose broken compilers, and finding out an intuition
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3811 # The possible output files:
3812 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3815 for ac_file in $ac_files
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3824 if { { ac_try="$ac_link_default"
3826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3827 *) ac_try_echo
=$ac_try;;
3829 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link_default") 2>&5
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3836 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3837 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3838 # so that the user can short-circuit this test for compilers unknown to
3840 for ac_file
in $ac_files ''
3842 test -f "$ac_file" ||
continue
3844 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3847 # We found the default executable, but exeext='' is most
3851 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3853 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 # We set ac_cv_exeext here because the later test for it is not
3856 # safe: cross compilers may not add the suffix if given an `-o'
3857 # argument, so we may need to know it at that point already.
3858 # Even if this section looks crufty: it has the advantage of
3865 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3870 if test -z "$ac_file"; then :
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.
$ac_ext >&5
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error
77 "C compiler cannot create executables
3879 See \`config.log' for more details" "$LINENO" 5; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3885 $as_echo_n "checking for C compiler default output file name... " >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 ac_exeext
=$ac_cv_exeext
3890 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3891 ac_clean_files
=$ac_clean_files_save
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3893 $as_echo_n "checking for suffix of executables... " >&6; }
3894 if { { ac_try
="$ac_link"
3896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link") 2>&5
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3906 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3907 # work properly (i.e., refer to `conftest.exe'), while it won't with
3909 for ac_file
in conftest.exe conftest conftest.
*; do
3910 test -f "$ac_file" ||
continue
3912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3913 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3922 See \`config.log' for more details" "$LINENO" 5; }
3924 rm -f conftest conftest
$ac_cv_exeext
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3926 $as_echo "$ac_cv_exeext" >&6; }
3928 rm -f conftest.
$ac_ext
3929 EXEEXT
=$ac_cv_exeext
3931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3937 FILE *f = fopen ("conftest.out", "w");
3938 return ferror (f) || fclose (f) != 0;
3944 ac_clean_files
="$ac_clean_files conftest.out"
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 if test "$cross_compiling" != yes; then
3950 { { ac_try
="$ac_link"
3952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }
3961 if { ac_try='./conftest$ac_cv_exeext'
3962 { { case "(($ac_try" in
3963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3964 *) ac_try_echo
=$ac_try;;
3966 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_try") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; }; then
3974 if test "$cross_compiling" = maybe
; then
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $?
"cannot run C compiled programs.
3980 If you meant to cross compile, use \`--host'.
3981 See \`config.log' for more details" "$LINENO" 5; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3986 $as_echo "$cross_compiling" >&6; }
3988 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3989 ac_clean_files
=$ac_clean_files_save
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try
="$ac_compile"
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4033 See \
`config.log' for more details" "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4150 if test "$GCC" = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_cv_prog_cc_c89=no
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4183 s = g (p, va_arg (v,int));
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 rm -f conftest.$ac_ext
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 # On Suns, sometimes $CPP names a directory.
4255 if test -n "$CPP" && test -d "$CPP"; then
4259 ## If not using gcc, and on Solaris, and no CPP specified, see if
4260 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4261 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4262 test x"$CPP" = x; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4264 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4266 if test "${emacs_cv_sunpro_c+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4283 if ac_fn_c_try_link "$LINENO"; then :
4284 emacs_cv_sunpro_c=yes
4286 emacs_cv_sunpro_c=no
4288 rm -f core conftest.err conftest.$ac_objext \
4289 conftest$ac_exeext conftest.$ac_ext
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4293 $as_echo "$emacs_cv_sunpro_c" >&6; }
4295 if test x"$emacs_cv_sunpro_c" = xyes; then
4296 NON_GNU_CPP="$CC -E -Xs"
4300 #### Some systems specify a CPP to use unless we are using GCC.
4301 #### Now that we know whether we are using GCC, we can decide whether
4302 #### to use that one.
4303 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4308 #### Some systems specify a CC to use unless we are using GCC.
4309 #### Now that we know whether we are using GCC, we can decide whether
4310 #### to use that one.
4311 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4312 test x$cc_specified != xyes
4317 if test x$GCC = xyes; then
4318 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4320 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4330 # On Suns, sometimes $CPP names a directory.
4331 if test -n "$CPP" && test -d "$CPP"; then
4334 if test -z "$CPP"; then
4335 if test "${ac_cv_prog_CPP+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 # Double quotes because CPP needs to be expanded
4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4342 for ac_c_preproc_warn_flag in '' yes
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4353 # include <limits.h>
4355 # include <assert.h>
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4362 # Broken: fails on valid input.
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4373 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: success on invalid input.
4377 # Passes both tests.
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.i conftest.err conftest.
$ac_ext
4386 if $ac_preproc_ok; then :
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4399 $as_echo "$CPP" >&6; }
4401 for ac_c_preproc_warn_flag
in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4412 # include <limits.h>
4414 # include <assert.h>
4418 if ac_fn_c_try_cpp
"$LINENO"; then :
4421 # Broken: fails on valid input.
4424 rm -f conftest.err conftest.i conftest.
$ac_ext
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <ac_nonexistent.h>
4432 if ac_fn_c_try_cpp
"$LINENO"; then :
4433 # Broken: success on invalid input.
4436 # Passes both tests.
4440 rm -f conftest.err conftest.i conftest.
$ac_ext
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.i conftest.err conftest.
$ac_ext
4445 if $ac_preproc_ok; then :
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4451 See \`config.log' for more details" "$LINENO" 5; }
4455 ac_cpp
='$CPP $CPPFLAGS'
4456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4463 if test "${ac_cv_path_GREP+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 if test -z "$GREP"; then
4467 ac_path_GREP_found
=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4473 test -z "$as_dir" && as_dir
=.
4474 for ac_prog
in grep ggrep
; do
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4478 # Check for GNU ac_path_GREP and select it if it is found.
4479 # Check for GNU $ac_path_GREP
4480 case `"$ac_path_GREP" --version 2>&1` in
4482 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4485 $as_echo_n 0123456789 >"conftest.in"
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'GREP' >> "conftest.nl"
4492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4493 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4494 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_GREP
="$ac_path_GREP"
4498 ac_path_GREP_max
=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4503 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4506 $ac_path_GREP_found && break 3
4511 if test -z "$ac_cv_path_GREP"; then
4512 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4515 ac_cv_path_GREP
=$GREP
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4520 $as_echo "$ac_cv_path_GREP" >&6; }
4521 GREP
="$ac_cv_path_GREP"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4525 $as_echo_n "checking for egrep... " >&6; }
4526 if test "${ac_cv_path_EGREP+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4530 then ac_cv_path_EGREP
="$GREP -E"
4532 if test -z "$EGREP"; then
4533 ac_path_EGREP_found
=false
4534 # Loop through the user's path and test for each of PROGNAME-LIST
4535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4536 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4539 test -z "$as_dir" && as_dir
=.
4540 for ac_prog
in egrep; do
4541 for ac_exec_ext
in '' $ac_executable_extensions; do
4542 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4544 # Check for GNU ac_path_EGREP and select it if it is found.
4545 # Check for GNU $ac_path_EGREP
4546 case `"$ac_path_EGREP" --version 2>&1` in
4548 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4551 $as_echo_n 0123456789 >"conftest.in"
4554 cat "conftest.in" "conftest.in" >"conftest.tmp"
4555 mv "conftest.tmp" "conftest.in"
4556 cp "conftest.in" "conftest.nl"
4557 $as_echo 'EGREP' >> "conftest.nl"
4558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4559 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4560 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4562 # Best one so far, save it but keep looking for a better one
4563 ac_cv_path_EGREP
="$ac_path_EGREP"
4564 ac_path_EGREP_max
=$ac_count
4566 # 10*(2^10) chars as input seems more than enough
4567 test $ac_count -gt 10 && break
4569 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4572 $ac_path_EGREP_found && break 3
4577 if test -z "$ac_cv_path_EGREP"; then
4578 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581 ac_cv_path_EGREP
=$EGREP
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4587 $as_echo "$ac_cv_path_EGREP" >&6; }
4588 EGREP
="$ac_cv_path_EGREP"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4592 $as_echo_n "checking for ANSI C header files... " >&6; }
4593 if test "${ac_cv_header_stdc+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4611 if ac_fn_c_try_compile
"$LINENO"; then :
4612 ac_cv_header_stdc
=yes
4614 ac_cv_header_stdc
=no
4616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4618 if test $ac_cv_header_stdc = yes; then
4619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "memchr" >/dev
/null
2>&1; then :
4629 ac_cv_header_stdc
=no
4635 if test $ac_cv_header_stdc = yes; then
4636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 $EGREP "free" >/dev
/null
2>&1; then :
4646 ac_cv_header_stdc
=no
4652 if test $ac_cv_header_stdc = yes; then
4653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4654 if test "$cross_compiling" = yes; then :
4657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4661 #if ((' ' & 0x0FF) == 0x020)
4662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 # define ISLOWER(c) \
4666 (('a' <= (c) && (c) <= 'i') \
4667 || ('j' <= (c) && (c) <= 'r') \
4668 || ('s' <= (c) && (c) <= 'z'))
4669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4677 for (i = 0; i < 256; i++)
4678 if (XOR (islower (i), ISLOWER (i))
4679 || toupper (i) != TOUPPER (i))
4684 if ac_fn_c_try_run
"$LINENO"; then :
4687 ac_cv_header_stdc
=no
4689 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4690 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4696 $as_echo "$ac_cv_header_stdc" >&6; }
4697 if test $ac_cv_header_stdc = yes; then
4699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4704 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4705 inttypes.h stdint.h unistd.h
4707 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4708 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4710 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4711 cat >>confdefs.h
<<_ACEOF
4712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4722 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4729 if test "$MINIX" = yes; then
4731 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4734 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4737 $as_echo "#define _MINIX 1" >>confdefs.h
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4743 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4744 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4750 # define __EXTENSIONS__ 1
4751 $ac_includes_default
4760 if ac_fn_c_try_compile
"$LINENO"; then :
4761 ac_cv_safe_to_define___extensions__
=yes
4763 ac_cv_safe_to_define___extensions__
=no
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4768 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4769 test $ac_cv_safe_to_define___extensions__ = yes &&
4770 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4772 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4774 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4776 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4778 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4782 ### Use -Wno-pointer-sign if the compiler supports it
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4784 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4785 SAVE_CFLAGS
="$CFLAGS"
4786 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4798 if ac_fn_c_try_compile
"$LINENO"; then :
4803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4804 if test $has_option = yes; then
4805 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4808 $as_echo "$has_option" >&6; }
4809 CFLAGS
="$SAVE_CFLAGS"
4813 ### Use -Wdeclaration-after-statement if the compiler supports it
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4815 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4816 SAVE_CFLAGS
="$CFLAGS"
4817 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4829 if ac_fn_c_try_compile
"$LINENO"; then :
4834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 if test $has_option = yes; then
4836 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4839 $as_echo "$has_option" >&6; }
4840 CFLAGS
="$SAVE_CFLAGS"
4844 ### Use -Wold-style-definition if the compiler supports it
4845 # This can be removed when conversion to standard C is finished.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4847 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4848 SAVE_CFLAGS
="$CFLAGS"
4849 CFLAGS
="$CFLAGS -Wold-style-definition"
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_c_try_compile
"$LINENO"; then :
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4871 $as_echo "$has_option" >&6; }
4872 CFLAGS
="$SAVE_CFLAGS"
4876 ### Use -Wimplicit-function-declaration if the compiler supports it
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4878 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4879 SAVE_CFLAGS
="$CFLAGS"
4880 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4892 if ac_fn_c_try_compile
"$LINENO"; then :
4897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4898 if test $has_option = yes; then
4899 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4902 $as_echo "$has_option" >&6; }
4903 CFLAGS
="$SAVE_CFLAGS"
4910 #### Some other nice autoconf tests.
4913 ac_cpp
='$CPP $CPPFLAGS'
4914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4919 # On Suns, sometimes $CPP names a directory.
4920 if test -n "$CPP" && test -d "$CPP"; then
4923 if test -z "$CPP"; then
4924 if test "${ac_cv_prog_CPP+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 # Double quotes because CPP needs to be expanded
4928 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4931 for ac_c_preproc_warn_flag
in '' yes
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4942 # include <limits.h>
4944 # include <assert.h>
4948 if ac_fn_c_try_cpp
"$LINENO"; then :
4951 # Broken: fails on valid input.
4954 rm -f conftest.err conftest.i conftest.
$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #include <ac_nonexistent.h>
4962 if ac_fn_c_try_cpp
"$LINENO"; then :
4963 # Broken: success on invalid input.
4966 # Passes both tests.
4970 rm -f conftest.err conftest.i conftest.
$ac_ext
4973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4974 rm -f conftest.i conftest.err conftest.
$ac_ext
4975 if $ac_preproc_ok; then :
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4988 $as_echo "$CPP" >&6; }
4990 for ac_c_preproc_warn_flag
in '' yes
4992 # Use a header file that comes with gcc, so configuring glibc
4993 # with a fresh cross-compiler works.
4994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4995 # <limits.h> exists even on freestanding compilers.
4996 # On the NeXT, cc -E runs the code through the compiler's parser,
4997 # not just through cpp. "Syntax error" is here to catch this case.
4998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5001 # include <limits.h>
5003 # include <assert.h>
5007 if ac_fn_c_try_cpp
"$LINENO"; then :
5010 # Broken: fails on valid input.
5013 rm -f conftest.err conftest.i conftest.
$ac_ext
5015 # OK, works on sane cases. Now check whether nonexistent headers
5016 # can be detected and how.
5017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <ac_nonexistent.h>
5021 if ac_fn_c_try_cpp
"$LINENO"; then :
5022 # Broken: success on invalid input.
5025 # Passes both tests.
5029 rm -f conftest.err conftest.i conftest.
$ac_ext
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.i conftest.err conftest.
$ac_ext
5034 if $ac_preproc_ok; then :
5037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5039 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5040 See \`config.log' for more details" "$LINENO" 5; }
5044 ac_cpp
='$CPP $CPPFLAGS'
5045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5049 # Find a good install program. We prefer a C program (faster),
5050 # so one script is as good as another. But avoid the broken or
5051 # incompatible versions:
5052 # SysV /etc/install, /usr/sbin/install
5053 # SunOS /usr/etc/install
5054 # IRIX /sbin/install
5056 # AmigaOS /C/install, which installs bootblocks on floppy discs
5057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060 # OS/2's system install, which has a completely different semantic
5061 # ./install, which can be erroneously created by make from ./install.sh.
5062 # Reject install programs that cannot install multiple files.
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5064 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5065 if test -z "$INSTALL"; then
5066 if test "${ac_cv_path_install+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir
=.
5074 # Account for people who put trailing slashes in PATH elements.
5075 case $as_dir/ in #((
5076 .
/ | .
// |
/[cC
]/* | \
5077 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5078 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5081 # OSF1 and SCO ODT 3.0 have their own names for install.
5082 # Don't use installbsd from OSF since it installs stuff as root
5084 for ac_prog
in ginstall scoinst
install; do
5085 for ac_exec_ext
in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5087 if test $ac_prog = install &&
5088 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5089 # AIX install. It has an incompatible calling convention.
5091 elif test $ac_prog = install &&
5092 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5093 # program-specific install script used by HP pwplus--don't use.
5096 rm -rf conftest.one conftest.two conftest.dir
5097 echo one
> conftest.one
5098 echo two
> conftest.two
5100 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5101 test -s conftest.one
&& test -s conftest.two
&&
5102 test -s conftest.dir
/conftest.one
&&
5103 test -s conftest.dir
/conftest.two
5105 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5118 rm -rf conftest.one conftest.two conftest.dir
5121 if test "${ac_cv_path_install+set}" = set; then
5122 INSTALL
=$ac_cv_path_install
5124 # As a last resort, use the slow shell script. Don't cache a
5125 # value for INSTALL within a source directory, because that will
5126 # break other packages using the cache if that directory is
5127 # removed, or if the value is a relative name.
5128 INSTALL
=$ac_install_sh
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5132 $as_echo "$INSTALL" >&6; }
5134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5135 # It thinks the first close brace ends the variable substitution.
5136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5140 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5142 if test "x$RANLIB" = x
; then
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5145 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$RANLIB"; then
5152 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 RANLIB
=$ac_cv_prog_RANLIB
5172 if test -n "$RANLIB"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5174 $as_echo "$RANLIB" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5182 if test -z "$ac_cv_prog_RANLIB"; then
5183 ac_ct_RANLIB
=$RANLIB
5184 # Extract the first word of "ranlib", so it can be a program name with args.
5185 set dummy ranlib
; ac_word
=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5191 if test -n "$ac_ct_RANLIB"; then
5192 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5212 if test -n "$ac_ct_RANLIB"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5214 $as_echo "$ac_ct_RANLIB" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5220 if test "x$ac_ct_RANLIB" = x
; then
5223 case $cross_compiling:$ac_tool_warned in
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned
=yes ;;
5229 RANLIB
=$ac_ct_RANLIB
5232 RANLIB
="$ac_cv_prog_RANLIB"
5237 ## Although we're running on an amd64 kernel, we're actually compiling for
5238 ## the x86 architecture. The user should probably have provided an
5239 ## explicit --build to `configure', but if everything else than the kernel
5240 ## is running in i386 mode, we can help them out.
5241 if test "$machine" = "amdx86-64"; then
5242 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5243 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5247 if test "$ac_cv_have_decl_i386" = "yes"; then
5248 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5250 machfile
="m/${machine}.h"
5254 # Extract the first word of "install-info", so it can be a program name with args.
5255 set dummy install-info
; ac_word
=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5261 case $INSTALL_INFO in
5263 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5285 if test -n "$INSTALL_INFO"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5287 $as_echo "$INSTALL_INFO" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5294 # Extract the first word of "install-info", so it can be a program name with args.
5295 set dummy install-info
; ac_word
=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 case $INSTALL_INFO in
5303 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 for as_dir
in /usr
/sbin
5310 test -z "$as_dir" && as_dir
=.
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5325 if test -n "$INSTALL_INFO"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5327 $as_echo "$INSTALL_INFO" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 # Extract the first word of "install-info", so it can be a program name with args.
5335 set dummy install-info
; ac_word
=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 case $INSTALL_INFO in
5343 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir
=.
5351 for ac_exec_ext
in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5365 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5366 if test -n "$INSTALL_INFO"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5368 $as_echo "$INSTALL_INFO" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 # Extract the first word of "gzip", so it can be a program name with args.
5376 set dummy
gzip; ac_word
=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5384 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5406 if test -n "$GZIP_PROG"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5408 $as_echo "$GZIP_PROG" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5417 ## Need makeinfo >= 4.6 (?) to build the manuals.
5418 # Extract the first word of "makeinfo", so it can be a program name with args.
5419 set dummy makeinfo
; ac_word
=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5427 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 for ac_exec_ext
in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5449 MAKEINFO
=$ac_cv_path_MAKEINFO
5450 if test -n "$MAKEINFO"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5452 $as_echo "$MAKEINFO" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5459 if test "$MAKEINFO" != "no" && \
5460 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
5464 ## Makeinfo is unusual. For a released Emacs, the manuals are
5465 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5466 ## therefore in the category of "special tools" not normally required, which
5467 ## configure does not have to check for (eg autoconf itself).
5468 ## In a Bazaar checkout on the other hand, the manuals are not included.
5469 ## So makeinfo is a requirement to build from Bazaar, and configure
5470 ## should test for it as it does for any other build requirement.
5471 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5472 ## with pre-built manuals, from a Bazaar checkout.
5473 if test "$MAKEINFO" = "no"; then
5474 if test "x${with_makeinfo}" = "xno"; then
5476 elif test ! -e $srcdir/info
/emacs
; then
5477 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
5478 source tree does not seem to have pre-built manuals in the \`info' directory.
5479 Either install a suitable version of makeinfo, or re-run configure
5480 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5485 if test x
$GCC = xyes
; then
5486 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
5487 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5489 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
5490 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5494 late_LDFLAGS
=$LDFLAGS
5495 if test x
$GCC = xyes
; then
5496 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5498 LDFLAGS
="$LDFLAGS -znocombreloc"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5502 $as_echo_n "checking for -znocombreloc... " >&6; }
5503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5514 if ac_fn_c_try_link
"$LINENO"; then :
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5518 LDFLAGS
=$late_LDFLAGS
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5522 rm -f core conftest.err conftest.
$ac_objext \
5523 conftest
$ac_exeext conftest.
$ac_ext
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP
=`eval "echo $CPP"`
5536 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5543 UNEXEC_OBJ
=unexelf.o
5545 # MSDOS uses unexcoff.o
5546 # MSWindows uses unexw32.o
5548 UNEXEC_OBJ
=unexaix.o
5554 UNEXEC_OBJ
=unexmacosx.o
5557 UNEXEC_OBJ
=unexhp9k800.o
5560 # Use the Solaris dldump() function, called from unexsol.c, to dump
5561 # emacs, instead of the generic ELF dump code found in unexelf.c.
5562 # The resulting binary has a complete symbol table, and is better
5563 # for debugging and other observability tools (debuggers, pstack, etc).
5565 # If you encounter a problem using dldump(), please consider sending
5566 # a message to the OpenSolaris tools-linking mailing list:
5567 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5569 # It is likely that dldump() works with older Solaris too, but this has
5570 # not been tested, so for now this change is for Solaris 10 or newer.
5571 UNEXEC_OBJ
=unexsol.o
5578 ## Let `ld' find image libs and similar things in /usr/local/lib.
5579 ## The system compiler, GCC, has apparently been modified to not
5580 ## look there, contrary to what a stock GCC would do.
5581 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5585 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5586 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
5590 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5594 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5595 ## otherwise Emacs dumps core on elf systems.
5596 LD_SWITCH_SYSTEM
="-Z"
5601 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5603 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5604 ## which has not been defined yet. When this was handled with cpp,
5605 ## it was expanded to null when configure sourced the s/*.h file.
5606 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5607 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5608 ## (or somesuch), but because it is supposed to go at the _front_
5609 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5610 ## Compare with the gnu-linux case below, which added to the end
5611 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5612 ## LD_SWITCH_SYSTEM_TEMACS.
5615 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5616 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5621 if test "$machine" = "alpha"; then
5622 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5623 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5627 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5628 ## With ELF, make sure that all common symbols get allocated to in the
5629 ## data section. Otherwise, the dump of temacs may miss variables in
5630 ## the shared library that have been initialized. For example, with
5631 ## GNU libc, __malloc_initialized would normally be resolved to the
5632 ## shared library's .bss section, which is fatal.
5633 if test "x$GCC" = "xyes"; then
5634 C_SWITCH_MACHINE
="-fno-common"
5636 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5639 UNEXEC_OBJ
=unexalpha.o
5647 ## Some programs in src produce warnings saying certain subprograms
5648 ## are too complex and need a MAXMEM value greater than 2000 for
5649 ## additional optimization. --nils@exp-math.uni-essen.de
5650 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5651 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5652 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5653 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5659 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5660 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5662 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5664 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5666 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5668 ## Motif needs -lgen.
5669 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5674 ### Make sure subsequent tests use flags consistent with the build flags.
5676 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5677 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5679 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5684 # Check whether --enable-largefile was given.
5685 if test "${enable_largefile+set}" = set; then :
5686 enableval
=$enable_largefile;
5689 if test "$enable_largefile" != no
; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5693 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_cv_sys_largefile_CC
=no
5697 if test "$GCC" != yes; then
5700 # IRIX 6.2 and later do not support large files by default,
5701 # so use the C compiler's -n32 option if that helps.
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5721 if ac_fn_c_try_compile
"$LINENO"; then :
5724 rm -f core conftest.err conftest.
$ac_objext
5726 if ac_fn_c_try_compile
"$LINENO"; then :
5727 ac_cv_sys_largefile_CC
=' -n32'; break
5729 rm -f core conftest.err conftest.
$ac_objext
5733 rm -f conftest.
$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5738 if test "$ac_cv_sys_largefile_CC" != no
; then
5739 CC
=$CC$ac_cv_sys_largefile_CC
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5744 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5767 if ac_fn_c_try_compile
"$LINENO"; then :
5768 ac_cv_sys_file_offset_bits
=no
; break
5770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #define _FILE_OFFSET_BITS 64
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5791 if ac_fn_c_try_compile
"$LINENO"; then :
5792 ac_cv_sys_file_offset_bits
=64; break
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 ac_cv_sys_file_offset_bits
=unknown
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5801 case $ac_cv_sys_file_offset_bits in #(
5804 cat >>confdefs.h
<<_ACEOF
5805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5810 if test $ac_cv_sys_file_offset_bits = unknown
; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5813 if test "${ac_cv_sys_large_files+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5836 if ac_fn_c_try_compile
"$LINENO"; then :
5837 ac_cv_sys_large_files
=no
; break
5839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #define _LARGE_FILES 1
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5860 if ac_fn_c_try_compile
"$LINENO"; then :
5861 ac_cv_sys_large_files
=1; break
5863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5864 ac_cv_sys_large_files
=unknown
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5869 $as_echo "$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h
<<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5884 ## If user specified a crt-dir, use that unconditionally.
5885 if test "X$CRT_DIR" = "X"; then
5887 case "$canonical" in
5888 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5889 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5890 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5891 ## For anything else (eg /usr/lib32), it is up the user to specify
5892 ## the location (bug#5655).
5893 ## Test for crtn.o, not just the directory, because sometimes the
5894 ## directory exists but does not have the relevant files (bug#1287).
5895 ## FIXME better to test for binary compatibility somehow.
5896 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5899 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5903 hpux10-20
) CRT_DIR
=/lib
;;
5906 ## Default is /usr/lib.
5907 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5911 ## Some platforms don't use any of these files, so it is not
5912 ## appropriate to put this test outside the if block.
5913 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5914 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
5927 START_FILES
='pre-crt0.o'
5930 ## Adding -lm confuses the dynamic linker, so omit it.
5932 START_FILES
='pre-crt0.o'
5935 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5936 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5938 gnu-linux | gnu-kfreebsd
)
5939 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5940 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5942 hpux10-20 | hpux11
)
5944 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5947 if test -f $CRT_DIR/crti.o
; then
5948 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5951 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5952 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5963 if test "${with_sound}" != "no"; then
5964 # Sound support for GNU/Linux and the free BSDs.
5965 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5969 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5970 cat >>confdefs.h
<<_ACEOF
5971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5973 have_sound_header
=yes
5978 # Emulation library used on NetBSD.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5980 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5981 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5984 ac_check_lib_save_LIBS
=$LIBS
5985 LIBS
="-lossaudio $LIBS"
5986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5999 return _oss_ioctl ();
6004 if ac_fn_c_try_link
"$LINENO"; then :
6005 ac_cv_lib_ossaudio__oss_ioctl
=yes
6007 ac_cv_lib_ossaudio__oss_ioctl
=no
6009 rm -f core conftest.err conftest.
$ac_objext \
6010 conftest
$ac_exeext conftest.
$ac_ext
6011 LIBS
=$ac_check_lib_save_LIBS
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6014 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6015 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6024 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6028 # Extract the first word of "pkg-config", so it can be a program name with args.
6029 set dummy pkg-config
; ac_word
=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6037 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_exec_ext
in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6059 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6060 if test -n "$PKG_CONFIG"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6062 $as_echo "$PKG_CONFIG" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test "$PKG_CONFIG" = "no" ; then
6073 PKG_CONFIG_MIN_VERSION
=0.9.0
6074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6076 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6078 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6080 $as_echo "yes" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6084 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6085 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6087 $as_echo "$ALSA_CFLAGS" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6090 $as_echo_n "checking ALSA_LIBS... " >&6; }
6091 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6093 $as_echo "$ALSA_LIBS" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6099 ## If we have a custom action on failure, don't print errors, but
6100 ## do set a variable so people can do so.
6101 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6113 if test $succeeded = yes; then
6119 if test $HAVE_ALSA = yes; then
6120 SAVE_CFLAGS
="$CFLAGS"
6121 SAVE_LDFLAGS
="$LDFLAGS"
6122 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6123 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <asoundlib.h>
6130 snd_lib_error_set_handler (0);
6135 if ac_fn_c_try_compile
"$LINENO"; then :
6136 emacs_alsa_normal
=yes
6138 emacs_alsa_normal
=no
6140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6141 if test "$emacs_alsa_normal" != yes; then
6142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <alsa/asoundlib.h>
6148 snd_lib_error_set_handler (0);
6153 if ac_fn_c_try_compile
"$LINENO"; then :
6154 emacs_alsa_subdir
=yes
6156 emacs_alsa_subdir
=no
6158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 if test "$emacs_alsa_subdir" != yes; then
6160 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6162 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6165 CFLAGS
="$SAVE_CFLAGS"
6166 LDFLAGS
="$SAVE_LDFLAGS"
6167 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6168 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6170 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6174 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6176 gnu-linux|freebsd|netbsd
)
6178 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6187 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
6188 linux
/version.h sys
/systeminfo.h limits.h \
6189 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
6190 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6191 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6193 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6195 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6196 cat >>confdefs.h
<<_ACEOF
6197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6206 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 #include <sys/personality.h>
6213 personality (PER_LINUX32)
6218 if ac_fn_c_try_compile
"$LINENO"; then :
6219 emacs_cv_personality_linux32
=yes
6221 emacs_cv_personality_linux32
=no
6223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6225 $as_echo "$emacs_cv_personality_linux32" >&6; }
6227 if test $emacs_cv_personality_linux32 = yes; then
6229 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6233 for ac_header
in term.h
6235 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6236 if test "x$ac_cv_header_term_h" = x
""yes; then :
6237 cat >>confdefs.h
<<_ACEOF
6238 #define HAVE_TERM_H 1
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6246 $as_echo_n "checking for ANSI C header files... " >&6; }
6247 if test "${ac_cv_header_stdc+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6265 if ac_fn_c_try_compile
"$LINENO"; then :
6266 ac_cv_header_stdc
=yes
6268 ac_cv_header_stdc
=no
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6272 if test $ac_cv_header_stdc = yes; then
6273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "memchr" >/dev
/null
2>&1; then :
6283 ac_cv_header_stdc
=no
6289 if test $ac_cv_header_stdc = yes; then
6290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 $EGREP "free" >/dev
/null
2>&1; then :
6300 ac_cv_header_stdc
=no
6306 if test $ac_cv_header_stdc = yes; then
6307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308 if test "$cross_compiling" = yes; then :
6311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6315 #if ((' ' & 0x0FF) == 0x020)
6316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6319 # define ISLOWER(c) \
6320 (('a' <= (c) && (c) <= 'i') \
6321 || ('j' <= (c) && (c) <= 'r') \
6322 || ('s' <= (c) && (c) <= 'z'))
6323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6331 for (i = 0; i < 256; i++)
6332 if (XOR (islower (i), ISLOWER (i))
6333 || toupper (i) != TOUPPER (i))
6338 if ac_fn_c_try_run
"$LINENO"; then :
6341 ac_cv_header_stdc
=no
6343 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6344 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6350 $as_echo "$ac_cv_header_stdc" >&6; }
6351 if test $ac_cv_header_stdc = yes; then
6353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6358 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6359 if test "${ac_cv_header_time+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6365 #include <sys/time.h>
6371 if ((struct tm *) 0)
6377 if ac_fn_c_try_compile
"$LINENO"; then :
6378 ac_cv_header_time
=yes
6380 ac_cv_header_time
=no
6382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6385 $as_echo "$ac_cv_header_time" >&6; }
6386 if test $ac_cv_header_time = yes; then
6388 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6392 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6393 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6399 cat >>confdefs.h
<<_ACEOF
6400 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6403 if test $ac_cv_have_decl_sys_siglist != yes; then
6404 # For Tru64, at least:
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" = x
""yes; 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
6418 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6423 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6424 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429 #include <sys/types.h>
6430 #include <sys/wait.h>
6432 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6435 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6443 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6448 if ac_fn_c_try_compile
"$LINENO"; then :
6449 ac_cv_header_sys_wait_h
=yes
6451 ac_cv_header_sys_wait_h
=no
6453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6456 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6457 if test $ac_cv_header_sys_wait_h = yes; then
6459 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6465 $as_echo_n "checking for struct utimbuf... " >&6; }
6466 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #ifdef TIME_WITH_SYS_TIME
6472 #include <sys/time.h>
6475 #ifdef HAVE_SYS_TIME_H
6476 #include <sys/time.h>
6487 static struct utimbuf x; x.actime = x.modtime;
6492 if ac_fn_c_try_compile
"$LINENO"; then :
6493 emacs_cv_struct_utimbuf
=yes
6495 emacs_cv_struct_utimbuf
=no
6497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6500 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6501 if test $emacs_cv_struct_utimbuf = yes; then
6503 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6508 $as_echo_n "checking return type of signal handlers... " >&6; }
6509 if test "${ac_cv_type_signal+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <sys/types.h>
6520 return *(signal (0, 0)) (0) == 1;
6525 if ac_fn_c_try_compile
"$LINENO"; then :
6526 ac_cv_type_signal
=int
6528 ac_cv_type_signal
=void
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6533 $as_echo "$ac_cv_type_signal" >&6; }
6535 cat >>confdefs.h
<<_ACEOF
6536 #define RETSIGTYPE $ac_cv_type_signal
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6542 $as_echo_n "checking for speed_t... " >&6; }
6543 if test "${emacs_cv_speed_t+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 #include <termios.h>
6557 if ac_fn_c_try_compile
"$LINENO"; then :
6558 emacs_cv_speed_t
=yes
6562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6565 $as_echo "$emacs_cv_speed_t" >&6; }
6566 if test $emacs_cv_speed_t = yes; then
6568 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6573 $as_echo_n "checking for struct timeval... " >&6; }
6574 if test "${emacs_cv_struct_timeval+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #ifdef TIME_WITH_SYS_TIME
6580 #include <sys/time.h>
6583 #ifdef HAVE_SYS_TIME_H
6584 #include <sys/time.h>
6592 static struct timeval x; x.tv_sec = x.tv_usec;
6597 if ac_fn_c_try_compile
"$LINENO"; then :
6598 emacs_cv_struct_timeval
=yes
6600 emacs_cv_struct_timeval
=no
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6605 $as_echo "$emacs_cv_struct_timeval" >&6; }
6606 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6607 if test $emacs_cv_struct_timeval = yes; then
6609 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6614 $as_echo_n "checking for struct exception... " >&6; }
6615 if test "${emacs_cv_struct_exception+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6624 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6629 if ac_fn_c_try_compile
"$LINENO"; then :
6630 emacs_cv_struct_exception
=yes
6632 emacs_cv_struct_exception
=no
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6637 $as_echo "$emacs_cv_struct_exception" >&6; }
6638 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6639 if test $emacs_cv_struct_exception != yes; then
6641 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6645 for ac_header
in sys
/socket.h
6647 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6648 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6649 cat >>confdefs.h
<<_ACEOF
6650 #define HAVE_SYS_SOCKET_H 1
6657 for ac_header
in net
/if.h
6659 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6660 #if HAVE_SYS_SOCKET_H
6661 #include <sys/socket.h>
6664 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6665 cat >>confdefs.h
<<_ACEOF
6666 #define HAVE_NET_IF_H 1
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6675 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6676 if test "${ac_cv_struct_tm+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <sys/types.h>
6688 int *p = &tm.tm_sec;
6694 if ac_fn_c_try_compile
"$LINENO"; then :
6695 ac_cv_struct_tm
=time.h
6697 ac_cv_struct_tm
=sys
/time.h
6699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6702 $as_echo "$ac_cv_struct_tm" >&6; }
6703 if test $ac_cv_struct_tm = sys
/time.h
; then
6705 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6709 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6710 #include <$ac_cv_struct_tm>
6713 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6715 cat >>confdefs.h
<<_ACEOF
6716 #define HAVE_STRUCT_TM_TM_ZONE 1
6722 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6724 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6727 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6729 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6735 cat >>confdefs.h
<<_ACEOF
6736 #define HAVE_DECL_TZNAME $ac_have_decl
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6740 $as_echo_n "checking for tzname... " >&6; }
6741 if test "${ac_cv_var_tzname+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 #if !HAVE_DECL_TZNAME
6748 extern char *tzname[];
6754 return tzname[0][0];
6759 if ac_fn_c_try_link
"$LINENO"; then :
6760 ac_cv_var_tzname
=yes
6764 rm -f core conftest.err conftest.
$ac_objext \
6765 conftest
$ac_exeext conftest.
$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6768 $as_echo "$ac_cv_var_tzname" >&6; }
6769 if test $ac_cv_var_tzname = yes; then
6771 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6776 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6778 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6780 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6784 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6785 #if HAVE_SYS_SOCKET_H
6786 #include <sys/socket.h>
6792 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6800 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6801 #if HAVE_SYS_SOCKET_H
6802 #include <sys/socket.h>
6808 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6810 cat >>confdefs.h
<<_ACEOF
6811 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6816 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6817 #if HAVE_SYS_SOCKET_H
6818 #include <sys/socket.h>
6824 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6826 cat >>confdefs.h
<<_ACEOF
6827 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6832 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6833 #if HAVE_SYS_SOCKET_H
6834 #include <sys/socket.h>
6840 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6842 cat >>confdefs.h
<<_ACEOF
6843 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6848 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6849 #if HAVE_SYS_SOCKET_H
6850 #include <sys/socket.h>
6856 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6858 cat >>confdefs.h
<<_ACEOF
6859 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6868 $as_echo_n "checking for function prototypes... " >&6; }
6869 if test "$ac_cv_prog_cc_c89" != no
; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 $as_echo "yes" >&6; }
6873 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6876 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6884 $as_echo_n "checking for working volatile... " >&6; }
6885 if test "${ac_cv_c_volatile+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6896 int * volatile y = (int *) 0;
6902 if ac_fn_c_try_compile
"$LINENO"; then :
6903 ac_cv_c_volatile
=yes
6907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6910 $as_echo "$ac_cv_c_volatile" >&6; }
6911 if test $ac_cv_c_volatile = no
; then
6913 $as_echo "#define volatile /**/" >>confdefs.h
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6918 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6919 if test "${ac_cv_c_const+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6928 /* FIXME: Include the comments suggested by Paul. */
6930 /* Ultrix mips cc rejects this. */
6931 typedef int charset[2];
6933 /* SunOS 4.1.1 cc rejects this. */
6934 char const *const *pcpcc;
6936 /* NEC SVR4.0.2 mips cc rejects this. */
6937 struct point {int x, y;};
6938 static struct point const zero = {0,0};
6939 /* AIX XL C 1.02.0.0 rejects this.
6940 It does not let you subtract one const X* pointer from another in
6941 an arm of an if-expression whose if-part is not a constant
6943 const char *g = "string";
6944 pcpcc = &g + (g ? g-g : 0);
6945 /* HPUX 7.0 cc rejects these. */
6947 ppc = (char**) pcpcc;
6948 pcpcc = (char const *const *) ppc;
6949 { /* SCO 3.2v4 cc rejects this. */
6951 char const *s = 0 ? (char *) 0 : (char const *) 0;
6956 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6958 const int *foo = &x[0];
6961 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6962 typedef const int *iptr;
6966 { /* AIX XL C 1.02.0.0 rejects this saying
6967 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6968 struct s { int j; const int *ap[3]; };
6969 struct s *b; b->j = 5;
6971 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6975 return !cs[0] && !zero.x;
6982 if ac_fn_c_try_compile
"$LINENO"; then :
6987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6990 $as_echo "$ac_cv_c_const" >&6; }
6991 if test $ac_cv_c_const = no
; then
6993 $as_echo "#define const /**/" >>confdefs.h
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6998 $as_echo_n "checking for void * support... " >&6; }
6999 if test "${emacs_cv_void_star+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7013 if ac_fn_c_try_compile
"$LINENO"; then :
7014 emacs_cv_void_star
=yes
7016 emacs_cv_void_star
=no
7018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7021 $as_echo "$emacs_cv_void_star" >&6; }
7022 if test $emacs_cv_void_star = yes; then
7023 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7026 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7031 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7032 if test "${ac_cv_c_bigendian+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7035 ac_cv_c_bigendian
=unknown
7036 # See if we're dealing with a universal compiler.
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 #ifndef __APPLE_CC__
7040 not a universal capable compiler
7045 if ac_fn_c_try_compile
"$LINENO"; then :
7047 # Check for potential -arch flags. It is not universal unless
7048 # there are at least two -arch flags with different values.
7051 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7052 if test -n "$ac_prev"; then
7054 i?
86 | x86_64 | ppc | ppc64
)
7055 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7058 ac_cv_c_bigendian
=universal
7064 elif test "x$ac_word" = "x-arch"; then
7069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 if test $ac_cv_c_bigendian = unknown
; then
7071 # See if sys/param.h defines the BYTE_ORDER macro.
7072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <sys/types.h>
7075 #include <sys/param.h>
7080 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7081 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7090 if ac_fn_c_try_compile
"$LINENO"; then :
7091 # It does; now see whether it defined to BIG_ENDIAN or not.
7092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #include <sys/types.h>
7095 #include <sys/param.h>
7100 #if BYTE_ORDER != BIG_ENDIAN
7108 if ac_fn_c_try_compile
"$LINENO"; then :
7109 ac_cv_c_bigendian
=yes
7111 ac_cv_c_bigendian
=no
7113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7117 if test $ac_cv_c_bigendian = unknown
; then
7118 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7126 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7134 if ac_fn_c_try_compile
"$LINENO"; then :
7135 # It does; now see whether it defined to _BIG_ENDIAN or not.
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7151 if ac_fn_c_try_compile
"$LINENO"; then :
7152 ac_cv_c_bigendian
=yes
7154 ac_cv_c_bigendian
=no
7156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 if test $ac_cv_c_bigendian = unknown
; then
7161 # Compile a test program.
7162 if test "$cross_compiling" = yes; then :
7163 # Try to guess by grepping values from an object file.
7164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 short int ascii_mm[] =
7167 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7168 short int ascii_ii[] =
7169 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7170 int use_ascii (int i) {
7171 return ascii_mm[i] + ascii_ii[i];
7173 short int ebcdic_ii[] =
7174 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7175 short int ebcdic_mm[] =
7176 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7177 int use_ebcdic (int i) {
7178 return ebcdic_mm[i] + ebcdic_ii[i];
7185 return use_ascii (foo) == use_ebcdic (foo);
7190 if ac_fn_c_try_compile
"$LINENO"; then :
7191 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7192 ac_cv_c_bigendian
=yes
7194 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7195 if test "$ac_cv_c_bigendian" = unknown
; then
7196 ac_cv_c_bigendian
=no
7198 # finding both strings is unlikely to happen, but who knows?
7199 ac_cv_c_bigendian
=unknown
7203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 $ac_includes_default
7212 /* Are we little or big endian? From Harbison&Steele. */
7216 char c[sizeof (long int)];
7219 return u.c[sizeof (long int) - 1] == 1;
7225 if ac_fn_c_try_run
"$LINENO"; then :
7226 ac_cv_c_bigendian
=no
7228 ac_cv_c_bigendian
=yes
7230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7237 $as_echo "$ac_cv_c_bigendian" >&6; }
7238 case $ac_cv_c_bigendian in #(
7240 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7246 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7250 as_fn_error $?
"unknown endianness
7251 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7256 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7258 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7259 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7260 $as_echo_n "(cached) " >&6
7262 cat >conftest.
make <<\_ACEOF
7265 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7267 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7270 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7272 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7276 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 SET_MAKE
="MAKE=${MAKE-make}"
7290 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7292 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7294 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7295 if test "x$testval" != x
; then
7298 ac_enable_autodepend
=no
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7301 $as_echo "$HAVE_GNU_MAKE" >&6; }
7302 if test $HAVE_GNU_MAKE = yes; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7304 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7305 SAVE_CFLAGS
="$CFLAGS"
7306 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7318 if ac_fn_c_try_compile
"$LINENO"; then :
7321 ac_enable_autodepend
=no
7323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 CFLAGS
="$SAVE_CFLAGS"
7325 test -f deps.d || ac_enable_autodepend
=no
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7328 $as_echo "$ac_enable_autodepend" >&6; }
7330 if test $ac_enable_autodepend = yes; then
7331 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7332 ## In parallel builds, another make might create depdir between
7333 ## the first test and mkdir, so stick another test on the end.
7334 ## Or use mkinstalldirs? mkdir -p is not portable.
7335 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7336 deps_frag
=autodeps.mk
7339 deps_frag
=$srcdir/src
/$deps_frag
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7346 $as_echo_n "checking for long file names... " >&6; }
7347 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7350 ac_cv_sys_long_file_names
=yes
7351 # Test for long file names in all the places we know might matter:
7352 # . the current directory, where building will happen
7353 # $prefix/lib where we will be installing things
7354 # $exec_prefix/lib likewise
7355 # $TMPDIR if set, where it might want to write temporary files
7356 # /tmp where it might want to write temporary files
7359 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7360 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7361 # in the usual case where exec_prefix is '${prefix}'.
7363 . |
/* | ?
:[\\/]*) ;; #(
7366 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7367 ac_xdir
=$ac_dir/cf$$
7368 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7369 ac_tf1
=$ac_xdir/conftest9012345
7370 ac_tf2
=$ac_xdir/conftest9012346
7371 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7372 ac_cv_sys_long_file_names
=no
7373 rm -f -r "$ac_xdir" 2>/dev
/null
7374 test $ac_cv_sys_long_file_names = no
&& break
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7378 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7379 if test $ac_cv_sys_long_file_names = yes; then
7381 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7386 #### Choose a window system.
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7389 $as_echo_n "checking for X... " >&6; }
7392 # Check whether --with-x was given.
7393 if test "${with_x+set}" = set; then :
7397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7398 if test "x$with_x" = xno
; then
7399 # The user explicitly disabled X.
7402 case $x_includes,$x_libraries in #(
7403 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
7404 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7407 # One or both of the vars are not set, and there is no cached value.
7408 ac_x_includes
=no ac_x_libraries
=no
7409 rm -f -r conftest.dir
7410 if mkdir conftest.dir
; then
7412 cat >Imakefile
<<'_ACEOF'
7414 @echo incroot='${INCROOT}'
7416 @echo usrlibdir='${USRLIBDIR}'
7418 @echo libdir='${LIBDIR}'
7420 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7421 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7422 for ac_var
in incroot usrlibdir libdir
; do
7423 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7426 for ac_extension
in a so sl dylib la dll
; do
7427 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7428 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7429 ac_im_usrlibdir
=$ac_im_libdir; break
7432 # Screen out bogus values from the imake configuration. They are
7433 # bogus both because they are the default anyway, and because
7434 # using them would break gcc on systems where it needs fixed includes.
7435 case $ac_im_incroot in
7436 /usr
/include
) ac_x_includes
= ;;
7437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7439 case $ac_im_usrlibdir in
7440 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7445 rm -f -r conftest.dir
7448 # Standard set of common directories for X headers.
7449 # Check X11 before X11Rn because it is often a symlink to the current release.
7463 /usr/local/X11/include
7464 /usr/local/X11R7/include
7465 /usr/local/X11R6/include
7466 /usr/local/X11R5/include
7467 /usr/local/X11R4/include
7469 /usr/local/include/X11
7470 /usr/local/include/X11R7
7471 /usr/local/include/X11R6
7472 /usr/local/include/X11R5
7473 /usr/local/include/X11R4
7477 /usr/XFree86/include/X11
7481 /usr/unsupported/include
7483 /usr/local/x11r5/include
7484 /usr/lpp/Xamples/include
7486 /usr/openwin/include
7487 /usr/openwin/share/include'
7489 if test "$ac_x_includes" = no
; then
7490 # Guess where to find include files, by looking for Xlib.h.
7491 # First, try using that file with no special directory specified.
7492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 #include <X11/Xlib.h>
7496 if ac_fn_c_try_cpp
"$LINENO"; then :
7497 # We can compile using X headers with no special include directory.
7500 for ac_dir
in $ac_x_header_dirs; do
7501 if test -r "$ac_dir/X11/Xlib.h"; then
7502 ac_x_includes
=$ac_dir
7507 rm -f conftest.err conftest.i conftest.
$ac_ext
7508 fi # $ac_x_includes = no
7510 if test "$ac_x_libraries" = no
; then
7511 # Check for the libraries.
7512 # See if we find them without any special options.
7513 # Don't add to $LIBS permanently.
7516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #include <X11/Xlib.h>
7527 if ac_fn_c_try_link
"$LINENO"; then :
7529 # We can link X programs with no special library path.
7533 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7535 # Don't even attempt the hair of trying to link an X program!
7536 for ac_extension
in a so sl dylib la dll
; do
7537 if test -r "$ac_dir/libX11.$ac_extension"; then
7538 ac_x_libraries
=$ac_dir
7544 rm -f core conftest.err conftest.
$ac_objext \
7545 conftest
$ac_exeext conftest.
$ac_ext
7546 fi # $ac_x_libraries = no
7548 case $ac_x_includes,$ac_x_libraries in #(
7550 # Didn't find X, or a directory has "'" in its name.
7551 ac_cv_have_x
="have_x=no";; #(
7553 # Record where we found X for the cache.
7554 ac_cv_have_x
="have_x=yes\
7555 ac_x_includes='$ac_x_includes'\
7556 ac_x_libraries='$ac_x_libraries'"
7562 eval "$ac_cv_have_x"
7565 if test "$have_x" != yes; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7567 $as_echo "$have_x" >&6; }
7570 # If each of the values was on the command line, it overrides each guess.
7571 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7572 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7573 # Update the cache value to reflect the command line values.
7574 ac_cv_have_x
="have_x=yes\
7575 ac_x_includes='$x_includes'\
7576 ac_x_libraries='$x_libraries'"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7578 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7581 if test "$no_x" = yes; then
7587 ## Workaround for bug in autoconf <= 2.62.
7588 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7589 ## No need to do anything special for these standard directories.
7590 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7592 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7596 LD_SWITCH_X_SITE_AUX
=
7597 LD_SWITCH_X_SITE_AUX_RPATH
=
7598 if test "${x_libraries}" != NONE
; then
7599 if test -n "${x_libraries}"; then
7600 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7601 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7602 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7604 x_default_search_path
=""
7605 x_search_path
=${x_libraries}
7606 if test -z "${x_search_path}"; then
7607 x_search_path
=/usr
/lib
7609 for x_library
in `echo ${x_search_path}: | \
7610 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7612 ${x_library}/X11/%L/%T/%N%C%S:\
7613 ${x_library}/X11/%l/%T/%N%C%S:\
7614 ${x_library}/X11/%T/%N%C%S:\
7615 ${x_library}/X11/%L/%T/%N%S:\
7616 ${x_library}/X11/%l/%T/%N%S:\
7617 ${x_library}/X11/%T/%N%S"
7618 if test x
"${x_default_search_path}" = x
; then
7619 x_default_search_path
=${x_search_path}
7621 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7628 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7629 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7632 if test x
"${x_includes}" = x
; then
7633 bitmapdir
=/usr
/include
/X11
/bitmaps
7635 # accumulate include directories that have X11 bitmap subdirectories
7637 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7638 if test -d "${bmd}/X11/bitmaps"; then
7639 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7641 if test -d "${bmd}/bitmaps"; then
7642 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7645 if test ${bmd_acc} != "dummyval"; then
7646 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7653 tmp_CPPFLAGS
="$CPPFLAGS"
7654 tmp_CFLAGS
="$CFLAGS"
7655 CPPFLAGS
="$CPPFLAGS -x objective-c"
7656 CFLAGS
="$CFLAGS -x objective-c"
7657 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7658 if test "${with_ns}" != no
; then
7659 if test "${opsys}" = darwin
; then
7661 ns_appdir
=`pwd`/nextstep
/Emacs.app
7662 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
7663 ns_appresdir
=${ns_appdir}/Contents
/Resources
7664 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7665 elif test -f $GNUSTEP_CONFIG_FILE; then
7667 ns_appdir
=`pwd`/nextstep
/Emacs.app
7668 ns_appbindir
=${ns_appdir}/
7669 ns_appresdir
=${ns_appdir}/Resources
7670 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7671 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7672 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7673 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7674 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7675 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7676 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7677 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7678 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7679 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7680 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7681 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7686 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7687 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7690 as_fn_error $?
"\`--with-ns' was specified, but the include
7691 files are missing or cannot be compiled." "$LINENO" 5
7695 NS_HAVE_NSINTEGER
=yes
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <Foundation/NSObjCRuntime.h>
7707 if ac_fn_c_try_compile
"$LINENO"; then :
7708 ns_have_nsinteger
=yes
7710 ns_have_nsinteger
=no
7712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 if test $ns_have_nsinteger = no
; then
7714 NS_HAVE_NSINTEGER
=no
7722 if test "${HAVE_NS}" = yes; then
7723 window_system
=nextstep
7725 # set up packaging dirs
7726 exec_prefix
=${ns_appbindir}
7727 libexecdir
=${ns_appbindir}/libexec
7728 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7729 prefix
=${ns_appresdir}
7731 ns_frag
=$srcdir/src
/ns.mk
7732 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7733 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7735 CFLAGS
="$tmp_CFLAGS"
7736 CPPFLAGS
="$tmp_CPPFLAGS"
7742 case "${window_system}" in
7746 case "${with_x_toolkit}" in
7747 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7748 motif
) USE_X_TOOLKIT
=MOTIF
;;
7750 USE_X_TOOLKIT
=none
;;
7751 gtk3
) with_gtk3
=yes
7752 USE_X_TOOLKIT
=none
;;
7753 no
) USE_X_TOOLKIT
=none
;;
7754 * ) USE_X_TOOLKIT
=maybe
;;
7764 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7765 # Extract the first word of "X", so it can be a program name with args.
7766 set dummy X
; ac_word
=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 if test -n "$HAVE_XSERVER"; then
7773 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir
=.
7780 for ac_exec_ext
in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_HAVE_XSERVER
="true"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7793 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7794 if test -n "$HAVE_XSERVER"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7796 $as_echo "$HAVE_XSERVER" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 if test "$HAVE_XSERVER" = true ||
7804 test -n "$DISPLAY" ||
7805 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7806 as_fn_error $?
"You seem to be running X, but no X development libraries
7807 were found. You should install the relevant development files for X
7808 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7809 sure you have development files for image handling, i.e.
7810 tiff, gif, jpeg, png and xpm.
7811 If you are sure you want Emacs compiled without X window support, pass
7813 to configure." "$LINENO" 5
7817 ### If we're using X11, we should use the X menu package.
7820 yes ) HAVE_MENUS
=yes ;;
7823 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7824 # Assume not, until told otherwise.
7827 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7828 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7834 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7835 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7842 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7843 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 extern void (* __after_morecore_hook)();
7852 __after_morecore_hook = 0
7857 if ac_fn_c_try_link
"$LINENO"; then :
7858 emacs_cv_var___after_morecore_hook
=yes
7860 emacs_cv_var___after_morecore_hook
=no
7862 rm -f core conftest.err conftest.
$ac_objext \
7863 conftest
$ac_exeext conftest.
$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7866 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7867 if test $emacs_cv_var___after_morecore_hook = no
; then
7874 ## darwin ld insists on the use of malloc routines in the System framework.
7875 darwin|sol2-10
) system_malloc
=yes ;;
7878 if test "${system_malloc}" = "yes"; then
7880 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7884 (The GNU allocators don't work with this system configuration.)"
7888 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7889 VMLIMIT_OBJ
=vm-limit.o
7894 if test "$doug_lea_malloc" = "yes" ; then
7895 if test "$GNU_MALLOC" = yes ; then
7897 (Using Doug Lea's new malloc from the GNU C Library.)"
7900 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7903 ## Use mmap directly for allocating larger buffers.
7904 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7905 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7906 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7908 gnu
*) REL_ALLOC
=no
;;
7912 if test x
"${REL_ALLOC}" = x
; then
7913 REL_ALLOC
=${GNU_MALLOC}
7916 use_mmap_for_buffers
=no
7918 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7924 for ac_header
in $ac_header_list
7926 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7929 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7930 cat >>confdefs.h
<<_ACEOF
7931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 for ac_func
in getpagesize
7947 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7948 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7949 cat >>confdefs.h
<<_ACEOF
7950 #define HAVE_GETPAGESIZE 1
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7957 $as_echo_n "checking for working mmap... " >&6; }
7958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 if test "$cross_compiling" = yes; then :
7962 ac_cv_func_mmap_fixed_mapped
=no
7964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 /* malloc might have been renamed as rpl_malloc. */
7970 /* Thanks to Mike Haertel and Jim Avera for this test.
7971 Here is a matrix of mmap possibilities:
7972 mmap private not fixed
7973 mmap private fixed at somewhere currently unmapped
7974 mmap private fixed at somewhere already mapped
7975 mmap shared not fixed
7976 mmap shared fixed at somewhere currently unmapped
7977 mmap shared fixed at somewhere already mapped
7978 For private mappings, we should verify that changes cannot be read()
7979 back from the file, nor mmap's back from the file at a different
7980 address. (There have been systems where private was not correctly
7981 implemented like the infamous i386 svr4.0, and systems where the
7982 VM page cache was not coherent with the file system buffer cache
7983 like early versions of FreeBSD and possibly contemporary NetBSD.)
7984 For shared mappings, we should conversely verify that changes get
7985 propagated back to all the places they're supposed to be.
7987 Grep wants private fixed already mapped.
7988 The main things grep needs to know about mmap are:
7989 * does it exist and is it safe to write into the mmap'd area
7990 * how to use it (BSD variants) */
7993 #include <sys/mman.h>
7995 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7999 /* This mess was copied from the GNU getpagesize.h. */
8000 #ifndef HAVE_GETPAGESIZE
8001 # ifdef _SC_PAGESIZE
8002 # define getpagesize() sysconf(_SC_PAGESIZE)
8003 # else /* no _SC_PAGESIZE */
8004 # ifdef HAVE_SYS_PARAM_H
8005 # include <sys/param.h>
8006 # ifdef EXEC_PAGESIZE
8007 # define getpagesize() EXEC_PAGESIZE
8008 # else /* no EXEC_PAGESIZE */
8010 # define getpagesize() NBPG * CLSIZE
8013 # endif /* no CLSIZE */
8014 # else /* no NBPG */
8016 # define getpagesize() NBPC
8017 # else /* no NBPC */
8019 # define getpagesize() PAGESIZE
8020 # endif /* PAGESIZE */
8021 # endif /* no NBPC */
8022 # endif /* no NBPG */
8023 # endif /* no EXEC_PAGESIZE */
8024 # else /* no HAVE_SYS_PARAM_H */
8025 # define getpagesize() 8192 /* punt totally */
8026 # endif /* no HAVE_SYS_PARAM_H */
8027 # endif /* no _SC_PAGESIZE */
8029 #endif /* no HAVE_GETPAGESIZE */
8034 char *data, *data2, *data3;
8039 pagesize = getpagesize ();
8041 /* First, make a file with some known garbage in it. */
8042 data = (char *) malloc (pagesize);
8045 for (i = 0; i < pagesize; ++i)
8046 *(data + i) = rand ();
8048 fd = creat ("conftest.mmap", 0600);
8051 if (write (fd, data, pagesize) != pagesize)
8055 /* Next, check that the tail of a page is zero-filled. File must have
8056 non-zero length, otherwise we risk SIGBUS for entire page. */
8057 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8061 if (write (fd2, cdata2, 1) != 1)
8063 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8064 if (data2 == MAP_FAILED)
8066 for (i = 0; i < pagesize; ++i)
8070 if (munmap (data2, pagesize))
8073 /* Next, try to mmap the file at a fixed address which already has
8074 something else allocated at it. If we can, also make sure that
8075 we see the same garbage. */
8076 fd = open ("conftest.mmap", O_RDWR);
8079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8082 for (i = 0; i < pagesize; ++i)
8083 if (*(data + i) != *(data2 + i))
8086 /* Finally, make sure that changes to the mapped area do not
8087 percolate back to the file as seen by read(). (This is a bug on
8088 some variants of i386 svr4.0.) */
8089 for (i = 0; i < pagesize; ++i)
8090 *(data2 + i) = *(data2 + i) + 1;
8091 data3 = (char *) malloc (pagesize);
8094 if (read (fd, data3, pagesize) != pagesize)
8096 for (i = 0; i < pagesize; ++i)
8097 if (*(data + i) != *(data3 + i))
8103 if ac_fn_c_try_run
"$LINENO"; then :
8104 ac_cv_func_mmap_fixed_mapped
=yes
8106 ac_cv_func_mmap_fixed_mapped
=no
8108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8114 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8115 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8117 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8120 rm -f conftest.mmap conftest.txt
8122 if test $use_mmap_for_buffers = yes; then
8124 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8129 LIBS
="$LIBS_SYSTEM $LIBS"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8132 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8133 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8136 ac_check_lib_save_LIBS
=$LIBS
8138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8151 return dnet_ntoa ();
8156 if ac_fn_c_try_link
"$LINENO"; then :
8157 ac_cv_lib_dnet_dnet_ntoa
=yes
8159 ac_cv_lib_dnet_dnet_ntoa
=no
8161 rm -f core conftest.err conftest.
$ac_objext \
8162 conftest
$ac_exeext conftest.
$ac_ext
8163 LIBS
=$ac_check_lib_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8166 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8167 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8168 cat >>confdefs.h
<<_ACEOF
8169 #define HAVE_LIBDNET 1
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8178 $as_echo_n "checking for main in -lXbsd... " >&6; }
8179 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 ac_check_lib_save_LIBS
=$LIBS
8184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8196 if ac_fn_c_try_link
"$LINENO"; then :
8197 ac_cv_lib_Xbsd_main
=yes
8199 ac_cv_lib_Xbsd_main
=no
8201 rm -f core conftest.err conftest.
$ac_objext \
8202 conftest
$ac_exeext conftest.
$ac_ext
8203 LIBS
=$ac_check_lib_save_LIBS
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8206 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8207 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8208 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8213 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8214 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 ac_check_lib_save_LIBS
=$LIBS
8218 LIBS
="-lpthreads $LIBS"
8219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8222 /* Override any GCC internal prototype to avoid an error.
8223 Use char because int might match the return type of a GCC
8224 builtin and then its argument prototype would still apply. */
8237 if ac_fn_c_try_link
"$LINENO"; then :
8238 ac_cv_lib_pthreads_cma_open
=yes
8240 ac_cv_lib_pthreads_cma_open
=no
8242 rm -f core conftest.err conftest.
$ac_objext \
8243 conftest
$ac_exeext conftest.
$ac_ext
8244 LIBS
=$ac_check_lib_save_LIBS
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8247 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8248 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8249 cat >>confdefs.h
<<_ACEOF
8250 #define HAVE_LIBPTHREADS 1
8253 LIBS
="-lpthreads $LIBS"
8258 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8259 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8260 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8261 ## added to LIBS in configure would never contain the pthreads part,
8262 ## but the value used in Makefiles might. FIXME?
8264 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8265 ## be harmless on older versions of X where it happens to exist.
8266 test "$opsys" = "aix4-2" && \
8267 test $ac_cv_lib_pthreads_cma_open = yes && \
8268 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8274 $as_echo_n "checking for -bbigtoc option... " >&6; }
8275 if test "${gdb_cv_bigtoc+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8280 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8281 *) gdb_cv_bigtoc
=-bbigtoc ;;
8284 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8296 if ac_fn_c_try_link
"$LINENO"; then :
8301 rm -f core conftest.err conftest.
$ac_objext \
8302 conftest
$ac_exeext conftest.
$ac_ext
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8306 $as_echo "$gdb_cv_bigtoc" >&6; }
8310 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8311 # used for the tests that follow. We set them back to REAL_CFLAGS and
8312 # REAL_CPPFLAGS later on.
8314 REAL_CFLAGS
="$CFLAGS"
8315 REAL_CPPFLAGS
="$CPPFLAGS"
8317 if test "${HAVE_X11}" = "yes"; then
8318 DEFS
="$C_SWITCH_X_SITE $DEFS"
8319 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8321 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8322 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8324 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8325 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8326 # but it's more convenient here to set LD_RUN_PATH
8327 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8328 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8329 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8333 if test "${opsys}" = "gnu-linux"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8335 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8342 XOpenDisplay ("foo");
8347 if ac_fn_c_try_link
"$LINENO"; then :
8348 xlinux_first_failure
=no
8350 xlinux_first_failure
=yes
8352 rm -f core conftest.err conftest.
$ac_objext \
8353 conftest
$ac_exeext conftest.
$ac_ext
8354 if test "${xlinux_first_failure}" = "yes"; then
8355 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8356 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8357 OLD_CPPFLAGS
="$CPPFLAGS"
8359 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8360 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8361 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8362 LIBS
="$LIBS -b i486-linuxaout"
8363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8369 XOpenDisplay ("foo");
8374 if ac_fn_c_try_link
"$LINENO"; then :
8375 xlinux_second_failure
=no
8377 xlinux_second_failure
=yes
8379 rm -f core conftest.err conftest.
$ac_objext \
8380 conftest
$ac_exeext conftest.
$ac_ext
8381 if test "${xlinux_second_failure}" = "yes"; then
8382 # If we get the same failure with -b, there is no use adding -b.
8383 # So take it out. This plays safe.
8384 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8385 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8386 CPPFLAGS
="$OLD_CPPFLAGS"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo "yes" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8401 # header files included from there.
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8403 $as_echo_n "checking for Xkb... " >&6; }
8404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 #include <X11/Xlib.h>
8407 #include <X11/XKBlib.h>
8411 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8416 if ac_fn_c_try_link
"$LINENO"; then :
8421 rm -f core conftest.err conftest.
$ac_objext \
8422 conftest
$ac_exeext conftest.
$ac_ext
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8424 $as_echo "$emacs_xkb" >&6; }
8425 if test $emacs_xkb = yes; then
8427 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8431 for ac_func
in XrmSetDatabase XScreenResourceString \
8432 XScreenNumberOfScreen XSetWMProtocols
8434 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8435 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8436 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8437 cat >>confdefs.h
<<_ACEOF
8438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 if test "${window_system}" = "x11"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8448 $as_echo_n "checking X11 version 6... " >&6; }
8449 if test "${emacs_cv_x11_version_6+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <X11/Xlib.h>
8458 #if XlibSpecificationRelease < 6
8466 if ac_fn_c_try_link
"$LINENO"; then :
8467 emacs_cv_x11_version_6
=yes
8469 emacs_cv_x11_version_6
=no
8471 rm -f core conftest.err conftest.
$ac_objext \
8472 conftest
$ac_exeext conftest.
$ac_ext
8475 if test $emacs_cv_x11_version_6 = yes; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8477 $as_echo "6 or newer" >&6; }
8479 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8482 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8484 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8489 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8495 $as_echo "before 6" >&6; }
8500 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8502 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8503 if test "${with_rsvg}" != "no"; then
8504 RSVG_REQUIRED
=2.11.0
8505 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8510 # Extract the first word of "pkg-config", so it can be a program name with args.
8511 set dummy pkg-config
; ac_word
=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8519 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir
=.
8527 for ac_exec_ext
in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8541 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8542 if test -n "$PKG_CONFIG"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8544 $as_echo "$PKG_CONFIG" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8552 if test "$PKG_CONFIG" = "no" ; then
8555 PKG_CONFIG_MIN_VERSION
=0.9.0
8556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8558 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8560 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8562 $as_echo "yes" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8566 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8567 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8569 $as_echo "$RSVG_CFLAGS" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8572 $as_echo_n "checking RSVG_LIBS... " >&6; }
8573 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8575 $as_echo "$RSVG_LIBS" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8581 ## If we have a custom action on failure, don't print errors, but
8582 ## do set a variable so people can do so.
8583 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8595 if test $succeeded = yes; then
8604 if test $HAVE_RSVG = yes; then
8606 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8608 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8609 LIBS
="$RSVG_LIBS $LIBS"
8615 if test "${HAVE_X11}" = "yes"; then
8616 if test "${with_imagemagick}" != "no"; then
8617 IMAGEMAGICK_MODULE
="Wand"
8621 # Extract the first word of "pkg-config", so it can be a program name with args.
8622 set dummy pkg-config
; ac_word
=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8630 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir
=.
8638 for ac_exec_ext
in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8652 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8653 if test -n "$PKG_CONFIG"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8655 $as_echo "$PKG_CONFIG" >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8663 if test "$PKG_CONFIG" = "no" ; then
8666 PKG_CONFIG_MIN_VERSION
=0.9.0
8667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8669 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8671 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8673 $as_echo "yes" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8677 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8678 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8680 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8683 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8684 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8686 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 IMAGEMAGICK_CFLAGS
=""
8692 ## If we have a custom action on failure, don't print errors, but
8693 ## do set a variable so people can do so.
8694 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8706 if test $succeeded = yes; then
8707 HAVE_IMAGEMAGICK
=yes
8715 if test $HAVE_IMAGEMAGICK = yes; then
8717 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8719 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8720 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8721 for ac_func
in MagickExportImagePixels
8723 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8724 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
8725 cat >>confdefs.h
<<_ACEOF
8726 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8738 if test "${with_gtk3}" = "yes"; then
8741 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8746 # Extract the first word of "pkg-config", so it can be a program name with args.
8747 set dummy pkg-config
; ac_word
=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8755 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir
=.
8763 for ac_exec_ext
in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8777 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8778 if test -n "$PKG_CONFIG"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8780 $as_echo "$PKG_CONFIG" >&6; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8788 if test "$PKG_CONFIG" = "no" ; then
8791 PKG_CONFIG_MIN_VERSION
=0.9.0
8792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8794 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8796 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8802 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8803 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8805 $as_echo "$GTK_CFLAGS" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8808 $as_echo_n "checking GTK_LIBS... " >&6; }
8809 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8811 $as_echo "$GTK_LIBS" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8817 ## If we have a custom action on failure, don't print errors, but
8818 ## do set a variable so people can do so.
8819 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8831 if test $succeeded = yes; then
8837 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8838 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8842 if test "$pkg_check_gtk" != "yes"; then
8844 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8847 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8852 # Extract the first word of "pkg-config", so it can be a program name with args.
8853 set dummy pkg-config
; ac_word
=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8861 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8868 test -z "$as_dir" && as_dir
=.
8869 for ac_exec_ext
in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8883 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8884 if test -n "$PKG_CONFIG"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8886 $as_echo "$PKG_CONFIG" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8894 if test "$PKG_CONFIG" = "no" ; then
8897 PKG_CONFIG_MIN_VERSION
=0.9.0
8898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8900 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8902 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8904 $as_echo "yes" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8908 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8909 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8911 $as_echo "$GTK_CFLAGS" >&6; }
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8914 $as_echo_n "checking GTK_LIBS... " >&6; }
8915 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8917 $as_echo "$GTK_LIBS" >&6; }
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8923 ## If we have a custom action on failure, don't print errors, but
8924 ## do set a variable so people can do so.
8925 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8937 if test $succeeded = yes; then
8943 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8944 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8950 if test x
"$pkg_check_gtk" = xyes
; then
8954 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8955 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8956 LIBS
="$GTK_LIBS $LIBS"
8958 for ac_func
in gtk_main
8960 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8961 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8962 cat >>confdefs.h
<<_ACEOF
8963 #define HAVE_GTK_MAIN 1
8969 if test "${GTK_COMPILES}" != "yes"; then
8970 if test "$USE_X_TOOLKIT" != "maybe"; then
8971 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8976 $as_echo "#define USE_GTK 1" >>confdefs.h
8980 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8984 closing open displays. This is no problem if you just use
8985 one display, but if you use more than one and close one of them
8986 Emacs may crash." >&5
8987 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8988 closing open displays. This is no problem if you just use
8989 one display, but if you use more than one and close one of them
8990 Emacs may crash." >&2;}
8999 if test "${HAVE_GTK}" = "yes"; then
9001 if test "$with_toolkit_scroll_bars" != no
; then
9002 with_toolkit_scroll_bars
=yes
9005 HAVE_GTK_FILE_SELECTION
=no
9006 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9007 #include <gtk/gtk.h>
9009 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9010 HAVE_GTK_FILE_SELECTION
=yes
9012 HAVE_GTK_FILE_SELECTION
=no
9015 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9016 for ac_func
in gtk_file_selection_new
9018 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9019 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9020 cat >>confdefs.h
<<_ACEOF
9021 #define HAVE_GTK_FILE_SELECTION_NEW 1
9029 HAVE_GTK_AND_PTHREAD
=no
9030 for ac_header
in pthread.h
9032 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9033 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9034 cat >>confdefs.h
<<_ACEOF
9035 #define HAVE_PTHREAD_H 1
9042 if test "$ac_cv_header_pthread_h"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9044 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9045 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9048 ac_check_lib_save_LIBS
=$LIBS
9049 LIBS
="-lpthread $LIBS"
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9053 /* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9059 char pthread_self ();
9063 return pthread_self ();
9068 if ac_fn_c_try_link
"$LINENO"; then :
9069 ac_cv_lib_pthread_pthread_self
=yes
9071 ac_cv_lib_pthread_pthread_self
=no
9073 rm -f core conftest.err conftest.
$ac_objext \
9074 conftest
$ac_exeext conftest.
$ac_ext
9075 LIBS
=$ac_check_lib_save_LIBS
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9078 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9079 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9080 HAVE_GTK_AND_PTHREAD
=yes
9084 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9085 case "${canonical}" in
9087 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9090 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9094 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9095 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9096 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9097 gtk_orientable_set_orientation
9099 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9100 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9101 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9102 cat >>confdefs.h
<<_ACEOF
9103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9114 if test "${with_dbus}" = "yes"; then
9118 # Extract the first word of "pkg-config", so it can be a program name with args.
9119 set dummy pkg-config
; ac_word
=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9127 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9134 test -z "$as_dir" && as_dir
=.
9135 for ac_exec_ext
in '' $ac_executable_extensions; do
9136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9137 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9149 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9150 if test -n "$PKG_CONFIG"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9152 $as_echo "$PKG_CONFIG" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9160 if test "$PKG_CONFIG" = "no" ; then
9163 PKG_CONFIG_MIN_VERSION
=0.9.0
9164 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9166 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9168 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9170 $as_echo "yes" >&6; }
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9174 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9175 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9177 $as_echo "$DBUS_CFLAGS" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9180 $as_echo_n "checking DBUS_LIBS... " >&6; }
9181 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9183 $as_echo "$DBUS_LIBS" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9189 ## If we have a custom action on failure, don't print errors, but
9190 ## do set a variable so people can do so.
9191 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9198 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9199 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9203 if test $succeeded = yes; then
9209 if test "$HAVE_DBUS" = yes; then
9210 LIBS
="$LIBS $DBUS_LIBS"
9212 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9214 for ac_func
in dbus_watch_get_unix_fd
9216 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9217 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9218 cat >>confdefs.h
<<_ACEOF
9219 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9231 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9235 # Extract the first word of "pkg-config", so it can be a program name with args.
9236 set dummy pkg-config
; ac_word
=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9244 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir
=.
9252 for ac_exec_ext
in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9266 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9267 if test -n "$PKG_CONFIG"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9269 $as_echo "$PKG_CONFIG" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9277 if test "$PKG_CONFIG" = "no" ; then
9280 PKG_CONFIG_MIN_VERSION
=0.9.0
9281 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9283 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9285 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9287 $as_echo "yes" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9291 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9292 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9294 $as_echo "$GCONF_CFLAGS" >&6; }
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9297 $as_echo_n "checking GCONF_LIBS... " >&6; }
9298 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9300 $as_echo "$GCONF_LIBS" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9306 ## If we have a custom action on failure, don't print errors, but
9307 ## do set a variable so people can do so.
9308 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9320 if test $succeeded = yes; then
9326 if test "$HAVE_GCONF" = yes; then
9328 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9330 for ac_func
in g_type_init
9332 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9333 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define HAVE_G_TYPE_INIT 1
9346 if test "${with_selinux}" = "yes"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9348 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9349 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 ac_check_lib_save_LIBS
=$LIBS
9353 LIBS
="-lselinux $LIBS"
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9363 char lgetfilecon ();
9367 return lgetfilecon ();
9372 if ac_fn_c_try_link
"$LINENO"; then :
9373 ac_cv_lib_selinux_lgetfilecon
=yes
9375 ac_cv_lib_selinux_lgetfilecon
=no
9377 rm -f core conftest.err conftest.
$ac_objext \
9378 conftest
$ac_exeext conftest.
$ac_ext
9379 LIBS
=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9382 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9383 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9389 if test "$HAVE_LIBSELINUX" = yes; then
9391 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9393 LIBSELINUX_LIBS
=-lselinux
9399 if test "${with_gnutls}" = "yes" ; then
9403 # Extract the first word of "pkg-config", so it can be a program name with args.
9404 set dummy pkg-config
; ac_word
=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9412 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9419 test -z "$as_dir" && as_dir
=.
9420 for ac_exec_ext
in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9434 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9435 if test -n "$PKG_CONFIG"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9437 $as_echo "$PKG_CONFIG" >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9445 if test "$PKG_CONFIG" = "no" ; then
9448 PKG_CONFIG_MIN_VERSION
=0.9.0
9449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9451 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9453 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 $as_echo "yes" >&6; }
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9459 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9460 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9462 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9465 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9466 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9468 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9474 ## If we have a custom action on failure, don't print errors, but
9475 ## do set a variable so people can do so.
9476 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9488 if test $succeeded = yes; then
9494 if test "${HAVE_GNUTLS}" = "yes"; then
9496 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9505 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9506 if test "$with_xaw3d" != no
; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9508 $as_echo_n "checking for xaw3d... " >&6; }
9509 if test "${emacs_cv_xaw3d+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 #include <X11/Intrinsic.h>
9516 #include <X11/Xaw3d/Simple.h>
9525 if ac_fn_c_try_link
"$LINENO"; then :
9530 rm -f core conftest.err conftest.
$ac_objext \
9531 conftest
$ac_exeext conftest.
$ac_ext
9537 if test $emacs_cv_xaw3d = yes; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9539 $as_echo "yes; using Lucid toolkit" >&6; }
9544 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9550 $as_echo_n "checking for libXaw... " >&6; }
9551 if test "${emacs_cv_xaw+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 #include <X11/Intrinsic.h>
9558 #include <X11/Xaw/Simple.h>
9567 if ac_fn_c_try_link
"$LINENO"; then :
9572 rm -f core conftest.err conftest.
$ac_objext \
9573 conftest
$ac_exeext conftest.
$ac_ext
9576 if test $emacs_cv_xaw = yes; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9578 $as_echo "yes; using Lucid toolkit" >&6; }
9581 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9582 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9585 $as_echo "no; do not use toolkit by default" >&6; }
9591 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9594 if test "${USE_X_TOOLKIT}" != "none"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9596 $as_echo_n "checking X11 toolkit version... " >&6; }
9597 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <X11/Intrinsic.h>
9606 #if XtSpecificationRelease < 6
9614 if ac_fn_c_try_link
"$LINENO"; then :
9615 emacs_cv_x11_toolkit_version_6
=yes
9617 emacs_cv_x11_toolkit_version_6
=no
9619 rm -f core conftest.err conftest.
$ac_objext \
9620 conftest
$ac_exeext conftest.
$ac_ext
9623 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9624 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9626 $as_echo "6 or newer" >&6; }
9628 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9630 LIBXTR6
="-lSM -lICE"
9632 ## Use libw.a along with X11R6 Xt.
9633 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9637 $as_echo "before 6" >&6; }
9641 if test x
$HAVE_X11XTR6 = xyes
; then
9642 LIBS
="-lXt -lSM -lICE $LIBS"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9647 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9648 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9651 ac_check_lib_save_LIBS
=$LIBS
9653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9662 char XmuConvertStandardSelection ();
9666 return XmuConvertStandardSelection ();
9671 if ac_fn_c_try_link
"$LINENO"; then :
9672 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9674 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9676 rm -f core conftest.err conftest.
$ac_objext \
9677 conftest
$ac_exeext conftest.
$ac_ext
9678 LIBS
=$ac_check_lib_save_LIBS
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9681 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9682 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9683 cat >>confdefs.h
<<_ACEOF
9684 #define HAVE_LIBXMU 1
9691 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9697 ## These systems don't supply Xmu.
9699 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9704 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9705 if test "${HAVE_X11}" = "yes"; then
9706 if test "${USE_X_TOOLKIT}" != "none"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9708 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9709 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9712 ac_check_lib_save_LIBS
=$LIBS
9714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9723 char XShapeQueryExtension ();
9727 return XShapeQueryExtension ();
9732 if ac_fn_c_try_link
"$LINENO"; then :
9733 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9735 ac_cv_lib_Xext_XShapeQueryExtension
=no
9737 rm -f core conftest.err conftest.
$ac_objext \
9738 conftest
$ac_exeext conftest.
$ac_ext
9739 LIBS
=$ac_check_lib_save_LIBS
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9742 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9743 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9744 cat >>confdefs.h
<<_ACEOF
9745 #define HAVE_LIBXEXT 1
9756 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9758 $as_echo_n "checking for Motif version 2.1... " >&6; }
9759 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9768 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9771 Motif version prior to 2.1.
9777 if ac_fn_c_try_compile
"$LINENO"; then :
9778 emacs_cv_motif_version_2_1
=yes
9780 emacs_cv_motif_version_2_1
=no
9782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9785 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9786 if test $emacs_cv_motif_version_2_1 = yes; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9788 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9789 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9792 ac_check_lib_save_LIBS
=$LIBS
9794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9803 char XpCreateContext ();
9807 return XpCreateContext ();
9812 if ac_fn_c_try_link
"$LINENO"; then :
9813 ac_cv_lib_Xp_XpCreateContext
=yes
9815 ac_cv_lib_Xp_XpCreateContext
=no
9817 rm -f core conftest.err conftest.
$ac_objext \
9818 conftest
$ac_exeext conftest.
$ac_ext
9819 LIBS
=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9822 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9823 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9829 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9830 if test "${emacs_cv_lesstif+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9833 # We put this in CFLAGS temporarily to precede other -I options
9834 # that might be in CFLAGS temporarily.
9835 # We put this in CPPFLAGS where it precedes the other -I options.
9836 OLD_CPPFLAGS
=$CPPFLAGS
9838 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9839 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9851 if ac_fn_c_try_compile
"$LINENO"; then :
9852 emacs_cv_lesstif
=yes
9856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9859 $as_echo "$emacs_cv_lesstif" >&6; }
9860 if test $emacs_cv_lesstif = yes; then
9861 # Make sure this -I option remains in CPPFLAGS after it is set
9862 # back to REAL_CPPFLAGS.
9863 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9864 # have those other -I options anyway. Ultimately, having this
9865 # directory ultimately in CPPFLAGS will be enough.
9866 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9867 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9870 CPPFLAGS
=$OLD_CPPFLAGS
9876 USE_TOOLKIT_SCROLL_BARS
=no
9877 if test "${with_toolkit_scroll_bars}" != "no"; then
9878 if test "${USE_X_TOOLKIT}" != "none"; then
9879 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9880 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9883 USE_TOOLKIT_SCROLL_BARS
=yes
9884 elif test "${HAVE_XAW3D}" = "yes"; then
9885 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9887 USE_TOOLKIT_SCROLL_BARS
=yes
9889 elif test "${HAVE_GTK}" = "yes"; then
9890 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9892 USE_TOOLKIT_SCROLL_BARS
=yes
9893 elif test "${HAVE_NS}" = "yes"; then
9894 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9896 USE_TOOLKIT_SCROLL_BARS
=yes
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9903 #include <X11/Xlib.h>
9904 #include <X11/Xresource.h>
9913 if ac_fn_c_try_compile
"$LINENO"; then :
9916 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9924 if test "${with_xim}" != "no"; then
9926 $as_echo "#define USE_XIM 1" >>confdefs.h
9931 if test "${HAVE_XIM}" != "no"; then
9933 if test "$GCC" = yes; then
9934 CFLAGS
="$CFLAGS --pedantic-errors"
9936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 #include <X11/Xlib.h>
9940 #include <X11/Xresource.h>
9949 XPointer *client_data;
9951 /* If we're not using GCC, it's probably not XFree86, and this is
9952 probably right, but we can't use something like --pedantic-errors. */
9953 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9954 char*, XIMProc, XPointer*);
9956 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9962 if ac_fn_c_try_compile
"$LINENO"; then :
9963 emacs_cv_arg6_star
=yes
9965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9966 if test "$emacs_cv_arg6_star" = yes; then
9967 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9970 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9976 ### Start of font-backend (under any platform) section.
9977 # (nothing here yet -- this is a placeholder)
9978 ### End of font-backend (under any platform) section.
9980 ### Start of font-backend (under X11) section.
9981 if test "${HAVE_X11}" = "yes"; then
9985 # Extract the first word of "pkg-config", so it can be a program name with args.
9986 set dummy pkg-config
; ac_word
=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9994 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10001 test -z "$as_dir" && as_dir
=.
10002 for ac_exec_ext
in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10016 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10017 if test -n "$PKG_CONFIG"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10019 $as_echo "$PKG_CONFIG" >&6; }
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10027 if test "$PKG_CONFIG" = "no" ; then
10030 PKG_CONFIG_MIN_VERSION
=0.9.0
10031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10033 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10035 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10041 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10042 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10044 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10047 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10048 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10050 $as_echo "$FONTCONFIG_LIBS" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 FONTCONFIG_CFLAGS
=""
10056 ## If we have a custom action on failure, don't print errors, but
10057 ## do set a variable so people can do so.
10058 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10070 if test $succeeded = yes; then
10077 ## Use -lXft if available, unless `--with-xft=no'.
10079 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10082 if test "x${with_xft}" != "xno"; then
10087 # Extract the first word of "pkg-config", so it can be a program name with args.
10088 set dummy pkg-config
; ac_word
=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10094 case $PKG_CONFIG in
10096 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10100 for as_dir
in $PATH
10103 test -z "$as_dir" && as_dir
=.
10104 for ac_exec_ext
in '' $ac_executable_extensions; do
10105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10106 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10118 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10119 if test -n "$PKG_CONFIG"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10121 $as_echo "$PKG_CONFIG" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10129 if test "$PKG_CONFIG" = "no" ; then
10132 PKG_CONFIG_MIN_VERSION
=0.9.0
10133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10135 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10137 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10139 $as_echo "yes" >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10143 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10144 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10146 $as_echo "$XFT_CFLAGS" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10149 $as_echo_n "checking XFT_LIBS... " >&6; }
10150 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10152 $as_echo "$XFT_LIBS" >&6; }
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10158 ## If we have a custom action on failure, don't print errors, but
10159 ## do set a variable so people can do so.
10160 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10172 if test $succeeded = yes; then
10178 ## Because xftfont.c uses XRenderQueryExtension, we also
10179 ## need to link to -lXrender.
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10182 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10183 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS
=$LIBS
10187 LIBS
="-lXrender $LIBS"
10188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10197 char XRenderQueryExtension ();
10201 return XRenderQueryExtension ();
10206 if ac_fn_c_try_link
"$LINENO"; then :
10207 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10209 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10213 LIBS
=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10216 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10217 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10221 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10222 OLD_CPPFLAGS
="$CPPFLAGS"
10223 OLD_CFLAGS
="$CFLAGS"
10225 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10226 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10227 XFT_LIBS
="-lXrender $XFT_LIBS"
10228 LIBS
="$XFT_LIBS $LIBS"
10229 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10230 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10232 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10233 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10236 ac_check_lib_save_LIBS
=$LIBS
10237 LIBS
="-lXft $XFT_LIBS $LIBS"
10238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10241 /* Override any GCC internal prototype to avoid an error.
10242 Use char because int might match the return type of a GCC
10243 builtin and then its argument prototype would still apply. */
10247 char XftFontOpen ();
10251 return XftFontOpen ();
10256 if ac_fn_c_try_link
"$LINENO"; then :
10257 ac_cv_lib_Xft_XftFontOpen
=yes
10259 ac_cv_lib_Xft_XftFontOpen
=no
10261 rm -f core conftest.err conftest.
$ac_objext \
10262 conftest
$ac_exeext conftest.
$ac_ext
10263 LIBS
=$ac_check_lib_save_LIBS
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10266 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10267 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10275 if test "${HAVE_XFT}" = "yes"; then
10277 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10280 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10282 CPPFLAGS
="$OLD_CPPFLAGS"
10283 CFLAGS
="$OLD_CFLAGS"
10285 fi # "${HAVE_XFT}" = "yes"
10286 fi # "$HAVE_XFT" != no
10287 fi # "x${with_xft}" != "xno"
10289 if test "$HAVE_XFT" != "yes"; then
10295 ## We used to allow building with FreeType and without Xft.
10296 ## However, the ftx font backend driver is not in good shape.
10297 if test "${HAVE_XFT}" = "yes"; then
10304 if test "${HAVE_FREETYPE}" = "yes"; then
10306 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10308 if test "${with_libotf}" != "no"; then
10312 # Extract the first word of "pkg-config", so it can be a program name with args.
10313 set dummy pkg-config
; ac_word
=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10319 case $PKG_CONFIG in
10321 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10325 for as_dir
in $PATH
10328 test -z "$as_dir" && as_dir
=.
10329 for ac_exec_ext
in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10343 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10344 if test -n "$PKG_CONFIG"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10346 $as_echo "$PKG_CONFIG" >&6; }
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10354 if test "$PKG_CONFIG" = "no" ; then
10357 PKG_CONFIG_MIN_VERSION
=0.9.0
10358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10360 $as_echo_n "checking for libotf... " >&6; }
10362 if $PKG_CONFIG --exists "libotf" 2>&5; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10364 $as_echo "yes" >&6; }
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10368 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10369 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10371 $as_echo "$LIBOTF_CFLAGS" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10374 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10375 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10377 $as_echo "$LIBOTF_LIBS" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10383 ## If we have a custom action on failure, don't print errors, but
10384 ## do set a variable so people can do so.
10385 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10397 if test $succeeded = yes; then
10403 if test "$HAVE_LIBOTF" = "yes"; then
10405 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10408 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10409 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10412 ac_check_lib_save_LIBS
=$LIBS
10414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10423 char OTF_get_variation_glyphs ();
10427 return OTF_get_variation_glyphs ();
10432 if ac_fn_c_try_link
"$LINENO"; then :
10433 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10435 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10437 rm -f core conftest.err conftest.
$ac_objext \
10438 conftest
$ac_exeext conftest.
$ac_ext
10439 LIBS
=$ac_check_lib_save_LIBS
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10442 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10443 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10444 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10446 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10449 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10451 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10459 if test "${HAVE_LIBOTF}" = yes; then
10460 if test "${with_m17n_flt}" != "no"; then
10464 # Extract the first word of "pkg-config", so it can be a program name with args.
10465 set dummy pkg-config
; ac_word
=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10471 case $PKG_CONFIG in
10473 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10477 for as_dir
in $PATH
10480 test -z "$as_dir" && as_dir
=.
10481 for ac_exec_ext
in '' $ac_executable_extensions; do
10482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10483 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10495 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10496 if test -n "$PKG_CONFIG"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10498 $as_echo "$PKG_CONFIG" >&6; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test "$PKG_CONFIG" = "no" ; then
10509 PKG_CONFIG_MIN_VERSION
=0.9.0
10510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10512 $as_echo_n "checking for m17n-flt... " >&6; }
10514 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10516 $as_echo "yes" >&6; }
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10520 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10521 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10523 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10526 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10527 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10529 $as_echo "$M17N_FLT_LIBS" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10535 ## If we have a custom action on failure, don't print errors, but
10536 ## do set a variable so people can do so.
10537 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10544 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10545 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10549 if test $succeeded = yes; then
10555 if test "$HAVE_M17N_FLT" = "yes"; then
10557 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10569 ### End of font-backend (under X11) section.
10580 ### Use -lXpm if available, unless `--with-xpm=no'.
10583 if test "${HAVE_X11}" = "yes"; then
10584 if test "${with_xpm}" != "no"; then
10585 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10586 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10588 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10589 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10592 ac_check_lib_save_LIBS
=$LIBS
10593 LIBS
="-lXpm -lX11 $LIBS"
10594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10603 char XpmReadFileToPixmap ();
10607 return XpmReadFileToPixmap ();
10612 if ac_fn_c_try_link
"$LINENO"; then :
10613 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10615 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10617 rm -f core conftest.err conftest.
$ac_objext \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 LIBS
=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10622 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10623 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10630 if test "${HAVE_XPM}" = "yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10632 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include "X11/xpm.h"
10636 #ifndef XpmReturnAllocPixels
10637 no_return_alloc_pixels
10641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10642 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10650 if test "${HAVE_XPM}" = "yes"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10660 if test "${HAVE_XPM}" = "yes"; then
10662 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10669 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10672 if test "${HAVE_X11}" = "yes"; then
10673 if test "${with_jpeg}" != "no"; then
10674 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10675 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10677 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10678 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10679 $as_echo_n "(cached) " >&6
10681 ac_check_lib_save_LIBS
=$LIBS
10682 LIBS
="-ljpeg $LIBS"
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10692 char jpeg_destroy_compress ();
10696 return jpeg_destroy_compress ();
10701 if ac_fn_c_try_link
"$LINENO"; then :
10702 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10704 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10706 rm -f core conftest.err conftest.
$ac_objext \
10707 conftest
$ac_exeext conftest.
$ac_ext
10708 LIBS
=$ac_check_lib_save_LIBS
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10711 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10712 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10721 if test "${HAVE_JPEG}" = "yes"; then
10722 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <jpeglib.h>
10727 version=JPEG_LIB_VERSION
10730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10731 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10732 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10736 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10742 if test "${HAVE_JPEG}" = "yes"; then
10748 ### Use -lpng if available, unless `--with-png=no'.
10751 if test "${HAVE_X11}" = "yes"; then
10752 if test "${with_png}" != "no"; then
10753 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10754 # in /usr/include/libpng.
10755 for ac_header
in png.h libpng
/png.h
10757 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10759 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10760 cat >>confdefs.h
<<_ACEOF
10761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10770 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10771 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS
=$LIBS
10775 LIBS
="-lpng -lz -lm $LIBS"
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10785 char png_get_channels ();
10789 return png_get_channels ();
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 ac_cv_lib_png_png_get_channels
=yes
10797 ac_cv_lib_png_png_get_channels
=no
10799 rm -f core conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 LIBS
=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10804 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10805 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10812 if test "${HAVE_PNG}" = "yes"; then
10814 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10816 LIBPNG
="-lpng -lz -lm"
10821 ### Use -ltiff if available, unless `--with-tiff=no'.
10824 if test "${HAVE_X11}" = "yes"; then
10825 if test "${with_tiff}" != "no"; then
10826 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10827 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10829 # At least one tiff package requires the jpeg library.
10830 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10832 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10833 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10836 ac_check_lib_save_LIBS
=$LIBS
10837 LIBS
="-ltiff $tifflibs $LIBS"
10838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10847 char TIFFGetVersion ();
10851 return TIFFGetVersion ();
10856 if ac_fn_c_try_link
"$LINENO"; then :
10857 ac_cv_lib_tiff_TIFFGetVersion
=yes
10859 ac_cv_lib_tiff_TIFFGetVersion
=no
10861 rm -f core conftest.err conftest.
$ac_objext \
10862 conftest
$ac_exeext conftest.
$ac_ext
10863 LIBS
=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10866 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10867 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10876 if test "${HAVE_TIFF}" = "yes"; then
10878 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10885 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10888 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10889 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10890 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10891 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10892 # Earlier versions can crash Emacs.
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10894 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10895 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10898 ac_check_lib_save_LIBS
=$LIBS
10900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10909 char EGifPutExtensionLast ();
10913 return EGifPutExtensionLast ();
10918 if ac_fn_c_try_link
"$LINENO"; then :
10919 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10921 ac_cv_lib_gif_EGifPutExtensionLast
=no
10923 rm -f core conftest.err conftest.
$ac_objext \
10924 conftest
$ac_exeext conftest.
$ac_ext
10925 LIBS
=$ac_check_lib_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10928 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10929 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10939 if test "$HAVE_GIF" = yes; then
10941 elif test "$HAVE_GIF" = maybe
; then
10942 # If gif_lib.h but no libgif, try libungif.
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10944 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10945 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10948 ac_check_lib_save_LIBS
=$LIBS
10949 LIBS
="-lungif $LIBS"
10950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10959 char EGifPutExtensionLast ();
10963 return EGifPutExtensionLast ();
10968 if ac_fn_c_try_link
"$LINENO"; then :
10969 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10971 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10973 rm -f core conftest.err conftest.
$ac_objext \
10974 conftest
$ac_exeext conftest.
$ac_ext
10975 LIBS
=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10978 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10979 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10985 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10988 if test "${HAVE_GIF}" = "yes"; then
10990 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10996 if test "${HAVE_X11}" = "yes"; then
10999 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11000 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
11001 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11002 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11003 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11004 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11005 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11006 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11007 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11008 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11010 if test "X${MISSING}" != X
; then
11011 as_fn_error $?
"The following required libraries were not found:
11013 Maybe some development libraries/packages are missing?
11014 If you don't want to link with them give
11016 as options to configure" "$LINENO" 5
11020 ### Use -lgpm if available, unless `--with-gpm=no'.
11024 if test "${with_gpm}" != "no"; then
11025 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11026 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11028 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11029 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11032 ac_check_lib_save_LIBS
=$LIBS
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11047 return Gpm_Open ();
11052 if ac_fn_c_try_link
"$LINENO"; then :
11053 ac_cv_lib_gpm_Gpm_Open
=yes
11055 ac_cv_lib_gpm_Gpm_Open
=no
11057 rm -f core conftest.err conftest.
$ac_objext \
11058 conftest
$ac_exeext conftest.
$ac_ext
11059 LIBS
=$ac_check_lib_save_LIBS
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11062 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11063 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
11071 if test "${HAVE_GPM}" = "yes"; then
11073 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11076 ## May be reset below.
11077 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11082 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11083 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
11085 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11092 ### Use NeXTstep API to implement GUI.
11093 if test "${HAVE_NS}" = "yes"; then
11095 $as_echo "#define HAVE_NS 1" >>confdefs.h
11097 if test "${NS_IMPL_COCOA}" = "yes"; then
11099 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11103 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11105 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11107 # See also .m.o rule in Makefile.in */
11108 # FIXME: are all these flags really needed? Document here why. */
11109 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11110 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11112 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11114 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11117 # We also have mouse menus.
11123 ### Use session management (-lSM -lICE) if available
11126 if test "${HAVE_X11}" = "yes"; then
11127 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11130 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11131 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11134 ac_check_lib_save_LIBS
=$LIBS
11135 LIBS
="-lSM -lICE $LIBS"
11136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11145 char SmcOpenConnection ();
11149 return SmcOpenConnection ();
11154 if ac_fn_c_try_link
"$LINENO"; then :
11155 ac_cv_lib_SM_SmcOpenConnection
=yes
11157 ac_cv_lib_SM_SmcOpenConnection
=no
11159 rm -f core conftest.err conftest.
$ac_objext \
11160 conftest
$ac_exeext conftest.
$ac_ext
11161 LIBS
=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11164 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11165 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11173 if test "${HAVE_X_SM}" = "yes"; then
11175 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11177 LIBXSM
="-lSM -lICE"
11180 *) LIBS
="$LIBXSM $LIBS" ;;
11186 ### Use libxml (-lxml2) if available
11187 if test "${with_xml2}" != "no"; then
11188 ### I'm not sure what the version number should be, so I just guessed.
11192 # Extract the first word of "pkg-config", so it can be a program name with args.
11193 set dummy pkg-config
; ac_word
=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11199 case $PKG_CONFIG in
11201 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11205 for as_dir
in $PATH
11208 test -z "$as_dir" && as_dir
=.
11209 for ac_exec_ext
in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11223 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11224 if test -n "$PKG_CONFIG"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11226 $as_echo "$PKG_CONFIG" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11234 if test "$PKG_CONFIG" = "no" ; then
11237 PKG_CONFIG_MIN_VERSION
=0.9.0
11238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11240 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11242 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244 $as_echo "yes" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11248 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11249 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11251 $as_echo "$LIBXML2_CFLAGS" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11254 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11255 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11257 $as_echo "$LIBXML2_LIBS" >&6; }
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11263 ## If we have a custom action on failure, don't print errors, but
11264 ## do set a variable so people can do so.
11265 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11277 if test $succeeded = yes; then
11283 if test "${HAVE_LIBXML2}" = "yes"; then
11284 LIBS
="$LIBXML2_LIBS $LIBS"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11286 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11287 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11290 ac_check_lib_save_LIBS
=$LIBS
11291 LIBS
="-lxml2 $LIBS"
11292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11301 char htmlReadMemory ();
11305 return htmlReadMemory ();
11310 if ac_fn_c_try_link
"$LINENO"; then :
11311 ac_cv_lib_xml2_htmlReadMemory
=yes
11313 ac_cv_lib_xml2_htmlReadMemory
=no
11315 rm -f core conftest.err conftest.
$ac_objext \
11316 conftest
$ac_exeext conftest.
$ac_ext
11317 LIBS
=$ac_check_lib_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11320 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11321 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
11327 if test "${HAVE_LIBXML2}" = "yes"; then
11329 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11340 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11342 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11343 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11357 if ac_fn_c_try_link
"$LINENO"; then :
11358 emacs_cv_netdb_declares_h_errno
=yes
11360 emacs_cv_netdb_declares_h_errno
=no
11362 rm -f core conftest.err conftest.
$ac_objext \
11363 conftest
$ac_exeext conftest.
$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11366 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11367 if test $emacs_cv_netdb_declares_h_errno = yes; then
11369 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11374 # for constant arguments. Useless!
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11376 $as_echo_n "checking for working alloca.h... " >&6; }
11377 if test "${ac_cv_working_alloca_h+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <alloca.h>
11386 char *p = (char *) alloca (2 * sizeof (int));
11392 if ac_fn_c_try_link
"$LINENO"; then :
11393 ac_cv_working_alloca_h
=yes
11395 ac_cv_working_alloca_h
=no
11397 rm -f core conftest.err conftest.
$ac_objext \
11398 conftest
$ac_exeext conftest.
$ac_ext
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11401 $as_echo "$ac_cv_working_alloca_h" >&6; }
11402 if test $ac_cv_working_alloca_h = yes; then
11404 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11409 $as_echo_n "checking for alloca... " >&6; }
11410 if test "${ac_cv_func_alloca_works+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11416 # define alloca __builtin_alloca
11419 # include <malloc.h>
11420 # define alloca _alloca
11422 # ifdef HAVE_ALLOCA_H
11423 # include <alloca.h>
11428 # ifndef alloca /* predefined by HP cc +Olibcalls */
11439 char *p = (char *) alloca (1);
11445 if ac_fn_c_try_link
"$LINENO"; then :
11446 ac_cv_func_alloca_works
=yes
11448 ac_cv_func_alloca_works
=no
11450 rm -f core conftest.err conftest.
$ac_objext \
11451 conftest
$ac_exeext conftest.
$ac_ext
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11454 $as_echo "$ac_cv_func_alloca_works" >&6; }
11456 if test $ac_cv_func_alloca_works = yes; then
11458 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11462 # that cause trouble. Some versions do not even contain alloca or
11463 # contain a buggy version. If you still want to use their alloca,
11464 # use ar to extract alloca.o from them instead of compiling alloca.c.
11466 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11468 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11472 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11473 if test "${ac_cv_os_cray+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11478 #if defined CRAY && ! defined CRAY2
11485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11486 $EGREP "webecray" >/dev
/null
2>&1; then :
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11495 $as_echo "$ac_cv_os_cray" >&6; }
11496 if test $ac_cv_os_cray = yes; then
11497 for ac_func
in _getb67 GETB67 getb67
; do
11498 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11500 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11502 cat >>confdefs.h
<<_ACEOF
11503 #define CRAY_STACKSEG_END $ac_func
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11513 $as_echo_n "checking stack direction for C alloca... " >&6; }
11514 if test "${ac_cv_c_stack_direction+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 if test "$cross_compiling" = yes; then :
11518 ac_cv_c_stack_direction
=0
11520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522 $ac_includes_default
11524 find_stack_direction ()
11526 static char *addr = 0;
11531 return find_stack_direction ();
11534 return (&dummy > addr) ? 1 : -1;
11540 return find_stack_direction () < 0;
11543 if ac_fn_c_try_run
"$LINENO"; then :
11544 ac_cv_c_stack_direction
=1
11546 ac_cv_c_stack_direction
=-1
11548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11554 $as_echo "$ac_cv_c_stack_direction" >&6; }
11555 cat >>confdefs.h
<<_ACEOF
11556 #define STACK_DIRECTION $ac_cv_c_stack_direction
11563 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11564 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
11567 # fmod, logb, and frexp are found in -lm on most systems.
11568 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11570 $as_echo_n "checking for sqrt in -lm... " >&6; }
11571 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11574 ac_check_lib_save_LIBS
=$LIBS
11576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11594 if ac_fn_c_try_link
"$LINENO"; then :
11595 ac_cv_lib_m_sqrt
=yes
11597 ac_cv_lib_m_sqrt
=no
11599 rm -f core conftest.err conftest.
$ac_objext \
11600 conftest
$ac_exeext conftest.
$ac_ext
11601 LIBS
=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11604 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11605 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_LIBM 1
11615 # Check for mail-locking functions in a "mail" library. Probably this should
11616 # have the same check as for liblockfile below.
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11618 $as_echo_n "checking for maillock in -lmail... " >&6; }
11619 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11622 ac_check_lib_save_LIBS
=$LIBS
11623 LIBS
="-lmail $LIBS"
11624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11637 return maillock ();
11642 if ac_fn_c_try_link
"$LINENO"; then :
11643 ac_cv_lib_mail_maillock
=yes
11645 ac_cv_lib_mail_maillock
=no
11647 rm -f core conftest.err conftest.
$ac_objext \
11648 conftest
$ac_exeext conftest.
$ac_ext
11649 LIBS
=$ac_check_lib_save_LIBS
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11652 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11653 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11659 if test $have_mail = yes; then
11661 LIBS
="$LIBS_MAIL $LIBS"
11663 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11669 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11670 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11673 ac_check_lib_save_LIBS
=$LIBS
11674 LIBS
="-llockfile $LIBS"
11675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11688 return maillock ();
11693 if ac_fn_c_try_link
"$LINENO"; then :
11694 ac_cv_lib_lockfile_maillock
=yes
11696 ac_cv_lib_lockfile_maillock
=no
11698 rm -f core conftest.err conftest.
$ac_objext \
11699 conftest
$ac_exeext conftest.
$ac_ext
11700 LIBS
=$ac_check_lib_save_LIBS
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11703 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11704 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11710 if test $have_lockfile = yes; then
11711 LIBS_MAIL
=-llockfile
11712 LIBS
="$LIBS_MAIL $LIBS"
11714 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11717 # If we have the shared liblockfile, assume we must use it for mail
11718 # locking (e.g. Debian). If we couldn't link against liblockfile
11719 # (no liblockfile.a installed), ensure that we don't need to.
11720 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11721 set dummy liblockfile.so
; ac_word
=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11727 if test -n "$liblockfile"; then
11728 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11731 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11732 for as_dir
in $as_dummy
11735 test -z "$as_dir" && as_dir
=.
11736 for ac_exec_ext
in '' $ac_executable_extensions; do
11737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11738 ac_cv_prog_liblockfile
="yes"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11749 liblockfile
=$ac_cv_prog_liblockfile
11750 if test -n "$liblockfile"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11752 $as_echo "$liblockfile" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 if test $ac_cv_prog_liblockfile = yes; then
11760 as_fn_error $?
"Shared liblockfile found but can't link against it.
11761 This probably means that movemail could lose mail.
11762 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11765 for ac_func
in touchlock
11767 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11768 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11769 cat >>confdefs.h
<<_ACEOF
11770 #define HAVE_TOUCHLOCK 1
11776 for ac_header
in maillock.h
11778 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11779 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11780 cat >>confdefs.h
<<_ACEOF
11781 #define HAVE_MAILLOCK_H 1
11790 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11791 ## interlock access to the mail spool. The alternative is a lock file named
11792 ## /usr/spool/mail/$USER.lock.
11795 aix4-2
) mail_lock
="lockf" ;;
11797 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11799 ## On GNU/Linux systems, both methods are used by various mail programs.
11800 ## I assume most people are using newer mailers that have heard of flock.
11801 ## Change this if you need to.
11802 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11803 ## configure gets the right answers, and that means *NOT* using flock.
11804 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11805 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11806 ## Debian maintainer hasn't provided a clean fix for Emacs.
11807 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11808 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11809 ## correct logic. -- fx
11810 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11811 ## liblockfile is a Free Software replacement for libmail, used on
11812 ## Debian systems and elsewhere. -rfr.
11815 if test $have_mail = yes ||
test $have_lockfile = yes; then
11816 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11822 case "$mail_lock" in
11824 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11828 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11831 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11836 for ac_func
in gethostname getdomainname dup2 \
11837 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11838 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11839 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11840 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11841 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11842 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11843 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11844 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11845 cfmakeraw cfsetspeed isnan copysign __executable_start
11847 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11849 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11850 cat >>confdefs.h
<<_ACEOF
11851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 for ac_header
in sys
/un.h
11860 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11862 cat >>confdefs.h
<<_ACEOF
11863 #define HAVE_SYS_UN_H 1
11876 for ac_func
in $ac_func_list
11878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11880 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11893 $as_echo_n "checking for working mktime... " >&6; }
11894 if test "${ac_cv_func_working_mktime+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11897 if test "$cross_compiling" = yes; then :
11898 ac_cv_func_working_mktime
=no
11900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 /* Test program from Paul Eggert and Tony Leneis. */
11903 #ifdef TIME_WITH_SYS_TIME
11904 # include <sys/time.h>
11907 # ifdef HAVE_SYS_TIME_H
11908 # include <sys/time.h>
11914 #include <limits.h>
11915 #include <stdlib.h>
11917 #ifdef HAVE_UNISTD_H
11918 # include <unistd.h>
11922 # define alarm(X) /* empty */
11925 /* Work around redefinition to rpl_putenv by other config tests. */
11928 static time_t time_t_max;
11929 static time_t time_t_min;
11931 /* Values we'll use to set the TZ environment variable. */
11932 static const char *tz_strings[] = {
11933 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11934 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11936 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11938 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11939 Based on a problem report from Andreas Jaeger. */
11941 spring_forward_gap ()
11943 /* glibc (up to about 1998-10-07) failed this test. */
11946 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11947 instead of "TZ=America/Vancouver" in order to detect the bug even
11948 on systems that don't support the Olson extension, or don't have the
11949 full zoneinfo tables installed. */
11950 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11959 return mktime (&tm) != (time_t) -1;
11963 mktime_test1 (time_t now)
11966 return ! (lt = localtime (&now)) || mktime (lt) == now;
11970 mktime_test (time_t now)
11972 return (mktime_test1 (now)
11973 && mktime_test1 ((time_t) (time_t_max - now))
11974 && mktime_test1 ((time_t) (time_t_min + now)));
11980 /* Based on code from Ariel Faigon. */
11990 return tm.tm_mon == 2 && tm.tm_mday == 31;
11994 bigtime_test (int j)
11998 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11999 now = mktime (&tm);
12000 if (now != (time_t) -1)
12002 struct tm *lt = localtime (&now);
12004 && lt->tm_year == tm.tm_year
12005 && lt->tm_mon == tm.tm_mon
12006 && lt->tm_mday == tm.tm_mday
12007 && lt->tm_hour == tm.tm_hour
12008 && lt->tm_min == tm.tm_min
12009 && lt->tm_sec == tm.tm_sec
12010 && lt->tm_yday == tm.tm_yday
12011 && lt->tm_wday == tm.tm_wday
12012 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12013 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12022 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12023 ignoring leap seconds. */
12024 unsigned long int answer = 2527315200UL;
12028 tm.tm_year = 2050 - 1900;
12031 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12034 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12035 instead of "TZ=America/Vancouver" in order to detect the bug even
12036 on systems that don't support the Olson extension, or don't have the
12037 full zoneinfo tables installed. */
12038 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12042 /* Check that the result is either a failure, or close enough
12043 to the correct answer that we can assume the discrepancy is
12044 due to leap seconds. */
12045 return (t == (time_t) -1
12046 || (0 < t && answer - 120 <= t && t <= answer + 120));
12055 /* This test makes some buggy mktime implementations loop.
12056 Give up after 60 seconds; a mktime slower than that
12057 isn't worth using anyway. */
12062 t = (time_t_max << 1) + 1;
12063 if (t <= time_t_max)
12067 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12069 delta = time_t_max / 997; /* a suitable prime number */
12070 for (i = 0; i < N_STRINGS; i++)
12073 putenv ((char*) tz_strings[i]);
12075 for (t = 0; t <= time_t_max - delta; t += delta)
12076 if (! mktime_test (t))
12078 if (! (mktime_test ((time_t) 1)
12079 && mktime_test ((time_t) (60 * 60))
12080 && mktime_test ((time_t) (60 * 60 * 24))))
12083 for (j = 1; ; j <<= 1)
12084 if (! bigtime_test (j))
12086 else if (INT_MAX / 2 < j)
12088 if (! bigtime_test (INT_MAX))
12091 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12094 if ac_fn_c_try_run
"$LINENO"; then :
12095 ac_cv_func_working_mktime
=yes
12097 ac_cv_func_working_mktime
=no
12099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12105 $as_echo "$ac_cv_func_working_mktime" >&6; }
12106 if test $ac_cv_func_working_mktime = no
; then
12107 case " $LIBOBJS " in
12108 *" mktime.$ac_objext "* ) ;;
12109 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12115 if test "$ac_cv_func_working_mktime" = no
; then
12117 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12121 ac_have_func
=no
# yes means we've found a way to get the load average.
12123 # Make sure getloadavg.c is where it belongs, at configure-time.
12124 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12125 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12129 # Check for getloadavg, but be sure not to touch the cache variable.
12130 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12131 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12136 ) && ac_have_func
=yes
12138 # On HPUX9, an unprivileged user can get load averages through this function.
12139 for ac_func
in pstat_getdynamic
12141 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12142 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12143 cat >>confdefs.h
<<_ACEOF
12144 #define HAVE_PSTAT_GETDYNAMIC 1
12151 # Solaris has libkstat which does not require root.
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12153 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12154 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 ac_check_lib_save_LIBS
=$LIBS
12158 LIBS
="-lkstat $LIBS"
12159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12168 char kstat_open ();
12172 return kstat_open ();
12177 if ac_fn_c_try_link
"$LINENO"; then :
12178 ac_cv_lib_kstat_kstat_open
=yes
12180 ac_cv_lib_kstat_kstat_open
=no
12182 rm -f core conftest.err conftest.
$ac_objext \
12183 conftest
$ac_exeext conftest.
$ac_ext
12184 LIBS
=$ac_check_lib_save_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12187 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12188 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12189 cat >>confdefs.h
<<_ACEOF
12190 #define HAVE_LIBKSTAT 1
12193 LIBS
="-lkstat $LIBS"
12197 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12199 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12200 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12201 # to get the right answer into the cache.
12202 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12203 if test $ac_have_func = no
; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12205 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12206 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_check_lib_save_LIBS
=$LIBS
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12224 return elf_begin ();
12229 if ac_fn_c_try_link
"$LINENO"; then :
12230 ac_cv_lib_elf_elf_begin
=yes
12232 ac_cv_lib_elf_elf_begin
=no
12234 rm -f core conftest.err conftest.
$ac_objext \
12235 conftest
$ac_exeext conftest.
$ac_ext
12236 LIBS
=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12239 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12240 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12245 if test $ac_have_func = no
; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12247 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12248 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12251 ac_check_lib_save_LIBS
=$LIBS
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12266 return kvm_open ();
12271 if ac_fn_c_try_link
"$LINENO"; then :
12272 ac_cv_lib_kvm_kvm_open
=yes
12274 ac_cv_lib_kvm_kvm_open
=no
12276 rm -f core conftest.err conftest.
$ac_objext \
12277 conftest
$ac_exeext conftest.
$ac_ext
12278 LIBS
=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12281 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12282 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12286 # Check for the 4.4BSD definition of getloadavg.
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12288 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12289 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12292 ac_check_lib_save_LIBS
=$LIBS
12293 LIBS
="-lutil $LIBS"
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12303 char getloadavg ();
12307 return getloadavg ();
12312 if ac_fn_c_try_link
"$LINENO"; then :
12313 ac_cv_lib_util_getloadavg
=yes
12315 ac_cv_lib_util_getloadavg
=no
12317 rm -f core conftest.err conftest.
$ac_objext \
12318 conftest
$ac_exeext conftest.
$ac_ext
12319 LIBS
=$ac_check_lib_save_LIBS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12322 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12323 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12324 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12329 if test $ac_have_func = no
; then
12330 # There is a commonly available library for RS/6000 AIX.
12331 # Since it is not a standard part of AIX, it might be installed locally.
12332 ac_getloadavg_LIBS
=$LIBS
12333 LIBS
="-L/usr/local/lib $LIBS"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12335 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12336 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12339 ac_check_lib_save_LIBS
=$LIBS
12340 LIBS
="-lgetloadavg $LIBS"
12341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12350 char getloadavg ();
12354 return getloadavg ();
12359 if ac_fn_c_try_link
"$LINENO"; then :
12360 ac_cv_lib_getloadavg_getloadavg
=yes
12362 ac_cv_lib_getloadavg_getloadavg
=no
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12366 LIBS
=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12369 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12370 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12371 LIBS
="-lgetloadavg $LIBS"
12373 LIBS
=$ac_getloadavg_LIBS
12378 # Make sure it is really in the library, if we think we found it,
12379 # otherwise set up the replacement function.
12380 for ac_func
in getloadavg
12382 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12383 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12384 cat >>confdefs.h
<<_ACEOF
12385 #define HAVE_GETLOADAVG 1
12389 case " $LIBOBJS " in
12390 *" getloadavg.$ac_objext "* ) ;;
12391 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12396 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12398 # Figure out what our getloadavg.c needs.
12400 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12401 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12404 $as_echo "#define DGUX 1" >>confdefs.h
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12407 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12408 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12411 ac_check_lib_save_LIBS
=$LIBS
12413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12422 char dg_sys_info ();
12426 return dg_sys_info ();
12431 if ac_fn_c_try_link
"$LINENO"; then :
12432 ac_cv_lib_dgc_dg_sys_info
=yes
12434 ac_cv_lib_dgc_dg_sys_info
=no
12436 rm -f core conftest.err conftest.
$ac_objext \
12437 conftest
$ac_exeext conftest.
$ac_ext
12438 LIBS
=$ac_check_lib_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12441 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12442 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12443 cat >>confdefs.h
<<_ACEOF
12444 #define HAVE_LIBDGC 1
12455 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12461 for ac_func
in setlocale
12463 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12464 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12465 cat >>confdefs.h
<<_ACEOF
12466 #define HAVE_SETLOCALE 1
12473 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12474 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12475 # Irix 4.0.5F has the header but not the library.
12476 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12479 $as_echo "#define SVR4 1" >>confdefs.h
12483 if test $ac_have_func = no
; then
12484 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12488 $as_echo "#define UMAX 1" >>confdefs.h
12491 $as_echo "#define UMAX4_3 1" >>confdefs.h
12498 if test $ac_have_func = no
; then
12499 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12500 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12501 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12508 if test $ac_have_func = no
; then
12509 for ac_header
in mach
/mach.h
12511 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12513 cat >>confdefs.h
<<_ACEOF
12514 #define HAVE_MACH_MACH_H 1
12523 for ac_header
in nlist.h
12525 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12527 cat >>confdefs.h
<<_ACEOF
12528 #define HAVE_NLIST_H 1
12530 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12532 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12534 cat >>confdefs.h
<<_ACEOF
12535 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12539 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12552 # Some definitions of getloadavg require that the program be installed setgid.
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12554 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12555 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12556 $as_echo_n "(cached) " >&6
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12561 #ifdef LDAV_PRIVILEGED
12562 Yowza Am I SETGID yet
12565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12566 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12567 ac_cv_func_getloadavg_setgid
=yes
12569 ac_cv_func_getloadavg_setgid
=no
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12575 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12576 if test $ac_cv_func_getloadavg_setgid = yes; then
12579 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12585 if test $ac_cv_func_getloadavg_setgid = yes; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12587 $as_echo_n "checking group of /dev/kmem... " >&6; }
12588 if test "${ac_cv_group_kmem+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12591 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12592 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12593 # If we got an error (system does not support symlinks), try without -L.
12594 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12595 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12596 | sed -ne 's/[ ][ ]*/ /g;
12597 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12602 $as_echo "$ac_cv_group_kmem" >&6; }
12603 KMEM_GROUP
=$ac_cv_group_kmem
12605 if test "x$ac_save_LIBS" = x
; then
12606 GETLOADAVG_LIBS
=$LIBS
12608 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12615 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12616 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 #include <sys/types.h> /* for off_t */
12627 int (*fp) (FILE *, off_t, int) = fseeko;
12628 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12633 if ac_fn_c_try_link
"$LINENO"; then :
12634 ac_cv_sys_largefile_source
=no
; break
12636 rm -f core conftest.err conftest.
$ac_objext \
12637 conftest
$ac_exeext conftest.
$ac_ext
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 #define _LARGEFILE_SOURCE 1
12641 #include <sys/types.h> /* for off_t */
12646 int (*fp) (FILE *, off_t, int) = fseeko;
12647 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12652 if ac_fn_c_try_link
"$LINENO"; then :
12653 ac_cv_sys_largefile_source
=1; break
12655 rm -f core conftest.err conftest.
$ac_objext \
12656 conftest
$ac_exeext conftest.
$ac_ext
12657 ac_cv_sys_largefile_source
=unknown
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12662 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12663 case $ac_cv_sys_largefile_source in #(
12666 cat >>confdefs.h
<<_ACEOF
12667 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12673 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12674 # in glibc 2.1.3, but that breaks too many other things.
12675 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12676 if test $ac_cv_sys_largefile_source != unknown
; then
12678 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12683 # Configure getopt.
12684 # getopt.m4 serial 10
12686 # The getopt module assume you want GNU getopt, with getopt_long etc,
12687 # rather than vanilla POSIX getopt. This means your your code should
12688 # always include <getopt.h> for the getopt prototypes.
12700 # Prerequisites of lib/getopt*.
12706 for ac_header
in getopt.h
12708 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12709 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12710 cat >>confdefs.h
<<_ACEOF
12711 #define HAVE_GETOPT_H 1
12720 if test -z "$GETOPT_H"; then
12721 for ac_func
in getopt_long_only
12723 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12724 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12725 cat >>confdefs.h
<<_ACEOF
12726 #define HAVE_GETOPT_LONG_ONLY 1
12736 if test -z "$GETOPT_H"; then
12737 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12739 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12745 if test -z "$GETOPT_H"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12747 $as_echo_n "checking for working GNU getopt function... " >&6; }
12748 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 if test "$cross_compiling" = yes; then :
12752 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12754 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12755 gl_cv_func_gnu_getopt
=no
12757 gl_cv_func_gnu_getopt
=yes
12761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 #include <getopt.h>
12769 myargv[0] = "conftest";
12772 return getopt (2, myargv, "+a") != '?';
12778 if ac_fn_c_try_run
"$LINENO"; then :
12779 gl_cv_func_gnu_getopt
=yes
12781 gl_cv_func_gnu_getopt
=no
12783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12789 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12790 if test "$gl_cv_func_gnu_getopt" = "no"; then
12797 if test -n "$GETOPT_H"; then :
12802 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12807 GETOPTOBJS
='getopt.o getopt1.o'
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12814 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12815 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12818 # Use it with a single arg.
12819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 $ac_includes_default
12830 if ac_fn_c_try_compile
"$LINENO"; then :
12831 ac_cv_func_getpgrp_void
=no
12833 ac_cv_func_getpgrp_void
=yes
12835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12839 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12840 if test $ac_cv_func_getpgrp_void = yes; then
12842 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12847 for ac_func
in strftime
12849 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12850 if test "x$ac_cv_func_strftime" = x
""yes; then :
12851 cat >>confdefs.h
<<_ACEOF
12852 #define HAVE_STRFTIME 1
12856 # strftime is in -lintl on SCO UNIX.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12858 $as_echo_n "checking for strftime in -lintl... " >&6; }
12859 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12862 ac_check_lib_save_LIBS
=$LIBS
12863 LIBS
="-lintl $LIBS"
12864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12877 return strftime ();
12882 if ac_fn_c_try_link
"$LINENO"; then :
12883 ac_cv_lib_intl_strftime
=yes
12885 ac_cv_lib_intl_strftime
=no
12887 rm -f core conftest.err conftest.
$ac_objext \
12888 conftest
$ac_exeext conftest.
$ac_ext
12889 LIBS
=$ac_check_lib_save_LIBS
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12892 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12893 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12894 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12896 LIBS
="-lintl $LIBS"
12904 for ac_func
in grantpt
12906 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12907 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12908 cat >>confdefs.h
<<_ACEOF
12909 #define HAVE_GRANTPT 1
12916 # PTY-related GNU extensions.
12917 for ac_func
in getpt
12919 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12920 if test "x$ac_cv_func_getpt" = x
""yes; then :
12921 cat >>confdefs.h
<<_ACEOF
12922 #define HAVE_GETPT 1
12929 # Check this now, so that we will NOT find the above functions in ncurses.
12930 # That is because we have not set up to link ncurses in lib-src.
12931 # It's better to believe a function is not available
12932 # than to expect to find it in ncurses.
12933 # Also we need tputs and friends to be able to build at all.
12934 have_tputs_et_al
=true
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12936 $as_echo_n "checking for library containing tputs... " >&6; }
12937 if test "${ac_cv_search_tputs+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12940 ac_func_search_save_LIBS
=$LIBS
12941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12959 for ac_lib
in '' ncurses terminfo termcap
; do
12960 if test -z "$ac_lib"; then
12961 ac_res
="none required"
12964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12966 if ac_fn_c_try_link
"$LINENO"; then :
12967 ac_cv_search_tputs
=$ac_res
12969 rm -f core conftest.err conftest.
$ac_objext \
12971 if test "${ac_cv_search_tputs+set}" = set; then :
12975 if test "${ac_cv_search_tputs+set}" = set; then :
12978 ac_cv_search_tputs
=no
12980 rm conftest.
$ac_ext
12981 LIBS
=$ac_func_search_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12984 $as_echo "$ac_cv_search_tputs" >&6; }
12985 ac_res
=$ac_cv_search_tputs
12986 if test "$ac_res" != no
; then :
12987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12990 have_tputs_et_al
=false
12993 if test "$have_tputs_et_al" != true
; then
12994 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
12995 Maybe some development libraries/packages are missing? Try installing
12996 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12998 # Must define this when any termcap library is found.
13000 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13002 ## FIXME This was the cpp logic, but I am not sure it is right.
13003 ## The above test has not necessarily found libncurses.
13004 HAVE_LIBNCURSES
=yes
13006 ## Use terminfo instead of termcap?
13007 ## Note only system files NOT using terminfo are:
13008 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13009 ## darwin|gnu without ncurses.
13013 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13014 ## hpux10-20: Use the system provided termcap(3) library.
13015 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13016 ## is necessary. Otherwise Emacs dumps core when run -nw.
13017 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13019 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13020 ## The ncurses library has been moved out of the System framework in
13021 ## Mac OS X 10.2. So if configure detects it, set the command-line
13022 ## option to use it.
13024 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13025 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13027 LIBS_TERMCAP
="-lncurses"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13033 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13034 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 #include <osreldate.h>
13043 #if __FreeBSD_version < 400000
13051 if ac_fn_c_try_link
"$LINENO"; then :
13052 emacs_cv_freebsd_terminfo
=yes
13054 emacs_cv_freebsd_terminfo
=no
13056 rm -f core conftest.err conftest.
$ac_objext \
13057 conftest
$ac_exeext conftest.
$ac_ext
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13062 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13064 if test $emacs_cv_freebsd_terminfo = yes; then
13066 LIBS_TERMCAP
="-lncurses"
13068 LIBS_TERMCAP
="-ltermcap"
13073 if test $ac_cv_search_tputs = -lterminfo; then
13075 LIBS_TERMCAP
="-lterminfo"
13077 LIBS_TERMCAP
="-ltermcap"
13084 ## hpux: Make sure we get select from libc rather than from libcurses
13085 ## because libcurses on HPUX 10.10 has a broken version of select.
13086 ## We used to use -lc -lcurses, but this may be cleaner.
13087 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13089 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13091 ## Must use system termcap, if we use any termcap. It does special things.
13092 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13095 TERMCAP_OBJ
=tparam.o
13096 if test $TERMINFO = yes; then
13098 $as_echo "#define TERMINFO 1" >>confdefs.h
13101 ## Default used to be -ltermcap. Add a case above if need something else.
13102 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13104 TERMCAP_OBJ
=terminfo.o
13110 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <netinet/in.h>
13115 #include <arpa/nameser.h>
13116 #include <resolv.h>
13125 if ac_fn_c_try_link
"$LINENO"; then :
13130 rm -f core conftest.err conftest.
$ac_objext \
13131 conftest
$ac_exeext conftest.
$ac_ext
13132 if test "$have_res_init" = no
; then
13134 LIBS
="$LIBS -lresolv"
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13136 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <netinet/in.h>
13140 #include <arpa/nameser.h>
13141 #include <resolv.h>
13150 if ac_fn_c_try_link
"$LINENO"; then :
13155 rm -f core conftest.err conftest.
$ac_objext \
13156 conftest
$ac_exeext conftest.
$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13158 $as_echo "$have_res_init" >&6; }
13159 if test "$have_res_init" = yes ; then
13165 if test "$have_res_init" = yes; then
13167 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13171 # Do we need the Hesiod library to provide the support routines?
13173 if test "$with_hesiod" != no
; then
13174 # Don't set $LIBS here -- see comments above. FIXME which comments?
13175 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13176 if test "x$ac_cv_func_res_send" = x
""yes; then :
13179 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13180 if test "x$ac_cv_func___res_send" = x
""yes; then :
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13184 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13185 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13188 ac_check_lib_save_LIBS
=$LIBS
13189 LIBS
="-lresolv $LIBS"
13190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13203 return res_send ();
13208 if ac_fn_c_try_link
"$LINENO"; then :
13209 ac_cv_lib_resolv_res_send
=yes
13211 ac_cv_lib_resolv_res_send
=no
13213 rm -f core conftest.err conftest.
$ac_objext \
13214 conftest
$ac_exeext conftest.
$ac_ext
13215 LIBS
=$ac_check_lib_save_LIBS
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13218 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13219 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13223 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13224 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13227 ac_check_lib_save_LIBS
=$LIBS
13228 LIBS
="-lresolv $LIBS"
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13238 char __res_send ();
13242 return __res_send ();
13247 if ac_fn_c_try_link
"$LINENO"; then :
13248 ac_cv_lib_resolv___res_send
=yes
13250 ac_cv_lib_resolv___res_send
=no
13252 rm -f core conftest.err conftest.
$ac_objext \
13253 conftest
$ac_exeext conftest.
$ac_ext
13254 LIBS
=$ac_check_lib_save_LIBS
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13257 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13258 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13268 if test "$resolv" = yes ; then
13273 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13274 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13278 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS
=$LIBS
13283 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char hes_getmailhost ();
13297 return hes_getmailhost ();
13302 if ac_fn_c_try_link
"$LINENO"; then :
13303 ac_cv_lib_hesiod_hes_getmailhost
=yes
13305 ac_cv_lib_hesiod_hes_getmailhost
=no
13307 rm -f core conftest.err conftest.
$ac_objext \
13308 conftest
$ac_exeext conftest.
$ac_ext
13309 LIBS
=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13312 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13313 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13322 if test x
"$hesiod" = xyes
; then
13324 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13331 # Do we need libresolv (due to res_init or Hesiod)?
13332 if test "$resolv" = yes ; then
13334 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13342 # These tell us which Kerberos-related libraries to use.
13349 if test "${with_kerberos}" != no
; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13351 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13352 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS
=$LIBS
13356 LIBS
="-lcom_err $LIBS"
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13375 if ac_fn_c_try_link
"$LINENO"; then :
13376 ac_cv_lib_com_err_com_err
=yes
13378 ac_cv_lib_com_err_com_err
=no
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13382 LIBS
=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13385 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13386 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13392 if test $have_com_err = yes; then
13393 COM_ERRLIB
=-lcom_err
13394 LIBS
="$COM_ERRLIB $LIBS"
13396 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13400 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13401 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13402 $as_echo_n "(cached) " >&6
13404 ac_check_lib_save_LIBS
=$LIBS
13405 LIBS
="-lcrypto $LIBS"
13406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 /* Override any GCC internal prototype to avoid an error.
13410 Use char because int might match the return type of a GCC
13411 builtin and then its argument prototype would still apply. */
13415 char mit_des_cbc_encrypt ();
13419 return mit_des_cbc_encrypt ();
13424 if ac_fn_c_try_link
"$LINENO"; then :
13425 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13427 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13429 rm -f core conftest.err conftest.
$ac_objext \
13430 conftest
$ac_exeext conftest.
$ac_ext
13431 LIBS
=$ac_check_lib_save_LIBS
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13434 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13435 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13441 if test $have_crypto = yes; then
13443 LIBS
="$CRYPTOLIB $LIBS"
13445 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13449 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13450 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13454 LIBS
="-lk5crypto $LIBS"
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13464 char mit_des_cbc_encrypt ();
13468 return mit_des_cbc_encrypt ();
13473 if ac_fn_c_try_link
"$LINENO"; then :
13474 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13476 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13478 rm -f core conftest.err conftest.
$ac_objext \
13479 conftest
$ac_exeext conftest.
$ac_ext
13480 LIBS
=$ac_check_lib_save_LIBS
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13483 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13484 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13490 if test $have_k5crypto = yes; then
13491 CRYPTOLIB
=-lk5crypto
13492 LIBS
="$CRYPTOLIB $LIBS"
13494 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13498 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13499 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13502 ac_check_lib_save_LIBS
=$LIBS
13503 LIBS
="-lkrb5 $LIBS"
13504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13507 /* Override any GCC internal prototype to avoid an error.
13508 Use char because int might match the return type of a GCC
13509 builtin and then its argument prototype would still apply. */
13513 char krb5_init_context ();
13517 return krb5_init_context ();
13522 if ac_fn_c_try_link
"$LINENO"; then :
13523 ac_cv_lib_krb5_krb5_init_context
=yes
13525 ac_cv_lib_krb5_krb5_init_context
=no
13527 rm -f core conftest.err conftest.
$ac_objext \
13528 conftest
$ac_exeext conftest.
$ac_ext
13529 LIBS
=$ac_check_lib_save_LIBS
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13532 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13533 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13539 if test $have_krb5=yes; then
13541 LIBS
="$KRB5LIB $LIBS"
13543 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13546 if test "${with_kerberos5}" = no
; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13548 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13549 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
13552 ac_check_lib_save_LIBS
=$LIBS
13553 LIBS
="-ldes425 $LIBS"
13554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13557 /* Override any GCC internal prototype to avoid an error.
13558 Use char because int might match the return type of a GCC
13559 builtin and then its argument prototype would still apply. */
13563 char des_cbc_encrypt ();
13567 return des_cbc_encrypt ();
13572 if ac_fn_c_try_link
"$LINENO"; then :
13573 ac_cv_lib_des425_des_cbc_encrypt
=yes
13575 ac_cv_lib_des425_des_cbc_encrypt
=no
13577 rm -f core conftest.err conftest.
$ac_objext \
13578 conftest
$ac_exeext conftest.
$ac_ext
13579 LIBS
=$ac_check_lib_save_LIBS
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13582 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13583 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13589 if test $have_des425 = yes; then
13591 LIBS
="$DESLIB $LIBS"
13593 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13597 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13598 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13601 ac_check_lib_save_LIBS
=$LIBS
13603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13606 /* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13612 char des_cbc_encrypt ();
13616 return des_cbc_encrypt ();
13621 if ac_fn_c_try_link
"$LINENO"; then :
13622 ac_cv_lib_des_des_cbc_encrypt
=yes
13624 ac_cv_lib_des_des_cbc_encrypt
=no
13626 rm -f core conftest.err conftest.
$ac_objext \
13627 conftest
$ac_exeext conftest.
$ac_ext
13628 LIBS
=$ac_check_lib_save_LIBS
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13631 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13632 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13638 if test $have_des = yes; then
13640 LIBS
="$DESLIB $LIBS"
13642 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13647 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13648 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13651 ac_check_lib_save_LIBS
=$LIBS
13652 LIBS
="-lkrb4 $LIBS"
13653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13662 char krb_get_cred ();
13666 return krb_get_cred ();
13671 if ac_fn_c_try_link
"$LINENO"; then :
13672 ac_cv_lib_krb4_krb_get_cred
=yes
13674 ac_cv_lib_krb4_krb_get_cred
=no
13676 rm -f core conftest.err conftest.
$ac_objext \
13677 conftest
$ac_exeext conftest.
$ac_ext
13678 LIBS
=$ac_check_lib_save_LIBS
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13681 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13682 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13688 if test $have_krb4 = yes; then
13690 LIBS
="$KRB4LIB $LIBS"
13692 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13696 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13697 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13700 ac_check_lib_save_LIBS
=$LIBS
13702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13705 /* Override any GCC internal prototype to avoid an error.
13706 Use char because int might match the return type of a GCC
13707 builtin and then its argument prototype would still apply. */
13711 char krb_get_cred ();
13715 return krb_get_cred ();
13720 if ac_fn_c_try_link
"$LINENO"; then :
13721 ac_cv_lib_krb_krb_get_cred
=yes
13723 ac_cv_lib_krb_krb_get_cred
=no
13725 rm -f core conftest.err conftest.
$ac_objext \
13726 conftest
$ac_exeext conftest.
$ac_ext
13727 LIBS
=$ac_check_lib_save_LIBS
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13730 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13731 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13737 if test $have_krb = yes; then
13739 LIBS
="$KRB4LIB $LIBS"
13741 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13747 if test "${with_kerberos5}" != no
; then
13748 for ac_header
in krb5.h
13750 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13752 cat >>confdefs.h
<<_ACEOF
13753 #define HAVE_KRB5_H 1
13755 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13757 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13759 cat >>confdefs.h
<<_ACEOF
13760 #define HAVE_KRB5_ERROR_TEXT 1
13765 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13767 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13769 cat >>confdefs.h
<<_ACEOF
13770 #define HAVE_KRB5_ERROR_E_TEXT 1
13781 for ac_header
in des.h
13783 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13784 if test "x$ac_cv_header_des_h" = x
""yes; then :
13785 cat >>confdefs.h
<<_ACEOF
13786 #define HAVE_DES_H 1
13790 for ac_header
in kerberosIV
/des.h
13792 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13793 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13794 cat >>confdefs.h
<<_ACEOF
13795 #define HAVE_KERBEROSIV_DES_H 1
13799 for ac_header
in kerberos
/des.h
13801 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13803 cat >>confdefs.h
<<_ACEOF
13804 #define HAVE_KERBEROS_DES_H 1
13819 for ac_header
in krb.h
13821 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13822 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13823 cat >>confdefs.h
<<_ACEOF
13824 #define HAVE_KRB_H 1
13828 for ac_header
in kerberosIV
/krb.h
13830 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13831 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13832 cat >>confdefs.h
<<_ACEOF
13833 #define HAVE_KERBEROSIV_KRB_H 1
13837 for ac_header
in kerberos
/krb.h
13839 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13841 cat >>confdefs.h
<<_ACEOF
13842 #define HAVE_KERBEROS_KRB_H 1
13858 for ac_header
in com_err.h
13860 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13862 cat >>confdefs.h
<<_ACEOF
13863 #define HAVE_COM_ERR_H 1
13878 # Solaris requires -lintl if you want strerror (which calls dgettext)
13879 # to return localized messages.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13881 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13882 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13885 ac_check_lib_save_LIBS
=$LIBS
13886 LIBS
="-lintl $LIBS"
13887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13900 return dgettext ();
13905 if ac_fn_c_try_link
"$LINENO"; then :
13906 ac_cv_lib_intl_dgettext
=yes
13908 ac_cv_lib_intl_dgettext
=no
13910 rm -f core conftest.err conftest.
$ac_objext \
13911 conftest
$ac_exeext conftest.
$ac_ext
13912 LIBS
=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13915 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13916 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13917 cat >>confdefs.h
<<_ACEOF
13918 #define HAVE_LIBINTL 1
13921 LIBS
="-lintl $LIBS"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13927 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13928 if test "${emacs_cv_localtime_cache+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13931 if test x
$ac_cv_func_tzset = xyes
; then
13932 if test "$cross_compiling" = yes; then :
13933 # If we have tzset, assume the worst when cross-compiling.
13934 emacs_cv_localtime_cache
=yes
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 char TZ_GMT0[] = "TZ=GMT0";
13940 char TZ_PST8[] = "TZ=PST8";
13943 time_t now = time ((time_t *) 0);
13944 int hour_GMT0, hour_unset;
13945 if (putenv (TZ_GMT0) != 0)
13947 hour_GMT0 = localtime (&now)->tm_hour;
13949 hour_unset = localtime (&now)->tm_hour;
13950 if (putenv (TZ_PST8) != 0)
13952 if (localtime (&now)->tm_hour == hour_GMT0)
13955 if (localtime (&now)->tm_hour != hour_unset)
13960 if ac_fn_c_try_run
"$LINENO"; then :
13961 emacs_cv_localtime_cache
=no
13963 emacs_cv_localtime_cache
=yes
13965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13970 # If we lack tzset, report that localtime does not cache TZ,
13971 # since we can't invalidate the cache if we don't have tzset.
13972 emacs_cv_localtime_cache
=no
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13976 $as_echo "$emacs_cv_localtime_cache" >&6; }
13977 if test $emacs_cv_localtime_cache = yes; then
13979 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13983 if test "x$HAVE_TIMEVAL" = xyes
; then
13984 for ac_func
in gettimeofday
13986 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13987 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13988 cat >>confdefs.h
<<_ACEOF
13989 #define HAVE_GETTIMEOFDAY 1
13995 if test $ac_cv_func_gettimeofday = yes; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13997 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13998 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 #ifdef TIME_WITH_SYS_TIME
14005 #include <sys/time.h>
14008 #ifdef HAVE_SYS_TIME_H
14009 #include <sys/time.h>
14017 struct timeval time;
14018 gettimeofday (&time, 0);
14023 if ac_fn_c_try_compile
"$LINENO"; then :
14024 emacs_cv_gettimeofday_two_arguments
=yes
14026 emacs_cv_gettimeofday_two_arguments
=no
14028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14031 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14032 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14034 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14041 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14042 if test "x$ac_cv_func_socket" = x
""yes; then :
14048 if test $ok_so_far = yes; then
14049 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14058 if test $ok_so_far = yes; then
14059 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14060 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14068 if test $ok_so_far = yes; then
14070 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14074 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14076 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14081 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14082 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14084 $as_echo "yes" >&6; }
14086 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14093 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14094 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14098 cat >>confdefs.h
<<_ACEOF
14104 for ac_header
in vfork.h
14106 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14107 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14108 cat >>confdefs.h
<<_ACEOF
14109 #define HAVE_VFORK_H 1
14116 for ac_func
in fork vfork
14118 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14119 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14120 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14121 cat >>confdefs.h
<<_ACEOF
14122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14128 if test "x$ac_cv_func_fork" = xyes
; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14130 $as_echo_n "checking for working fork... " >&6; }
14131 if test "${ac_cv_func_fork_works+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14134 if test "$cross_compiling" = yes; then :
14135 ac_cv_func_fork_works
=cross
14137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 $ac_includes_default
14144 /* By Ruediger Kuhlmann. */
14145 return fork () < 0;
14151 if ac_fn_c_try_run
"$LINENO"; then :
14152 ac_cv_func_fork_works
=yes
14154 ac_cv_func_fork_works
=no
14156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14162 $as_echo "$ac_cv_func_fork_works" >&6; }
14165 ac_cv_func_fork_works
=$ac_cv_func_fork
14167 if test "x$ac_cv_func_fork_works" = xcross
; then
14169 *-*-amigaos* |
*-*-msdosdjgpp*)
14170 # Override, as these systems have only a dummy fork() stub
14171 ac_cv_func_fork_works
=no
14174 ac_cv_func_fork_works
=yes
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14180 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14181 if test "x$ac_cv_func_vfork" = xyes
; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14183 $as_echo_n "checking for working vfork... " >&6; }
14184 if test "${ac_cv_func_vfork_works+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14187 if test "$cross_compiling" = yes; then :
14188 ac_cv_func_vfork_works
=cross
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 /* Thanks to Paul Eggert for this test. */
14193 $ac_includes_default
14194 #include <sys/wait.h>
14195 #ifdef HAVE_VFORK_H
14196 # include <vfork.h>
14198 /* On some sparc systems, changes by the child to local and incoming
14199 argument registers are propagated back to the parent. The compiler
14200 is told about this with #include <vfork.h>, but some compilers
14201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14202 static variable whose address is put into a register that is
14203 clobbered by the vfork. */
14206 sparc_address_test (int arg)
14208 sparc_address_test (arg) int arg;
14211 static pid_t child;
14229 pid_t parent = getpid ();
14232 sparc_address_test (0);
14237 /* Here is another test for sparc vfork register problems. This
14238 test uses lots of local variables, at least as many local
14239 variables as main has allocated so far including compiler
14240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14242 reuse the register of parent for one of the local variables,
14243 since it will think that parent can't possibly be used any more
14244 in this routine. Assigning to the local variable will thus
14245 munge parent in the parent process. */
14247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14249 /* Convince the compiler that p..p7 are live; otherwise, it might
14250 use the same hardware register for all 8 local variables. */
14251 if (p != p1 || p != p2 || p != p3 || p != p4
14252 || p != p5 || p != p6 || p != p7)
14255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14256 from child file descriptors. If the child closes a descriptor
14257 before it execs or exits, this munges the parent's descriptor
14258 as well. Test for this by closing stdout in the child. */
14259 _exit(close(fileno(stdout)) != 0);
14264 while (wait(&status) != child)
14267 /* Was there some problem with vforking? */
14270 /* Did the child fail? (This shouldn't happen.) */
14273 /* Did the vfork/compiler bug occur? */
14274 || parent != getpid()
14276 /* Did the file descriptor bug occur? */
14277 || fstat(fileno(stdout), &st) != 0
14282 if ac_fn_c_try_run
"$LINENO"; then :
14283 ac_cv_func_vfork_works
=yes
14285 ac_cv_func_vfork_works
=no
14287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14293 $as_echo "$ac_cv_func_vfork_works" >&6; }
14296 if test "x$ac_cv_func_fork_works" = xcross
; then
14297 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14302 if test "x$ac_cv_func_vfork_works" = xyes
; then
14304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14308 $as_echo "#define vfork fork" >>confdefs.h
14311 if test "x$ac_cv_func_fork_works" = xyes
; then
14313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14319 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14320 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 #include <langinfo.h>
14329 char* cs = nl_langinfo(CODESET);
14334 if ac_fn_c_try_link
"$LINENO"; then :
14335 emacs_cv_langinfo_codeset
=yes
14337 emacs_cv_langinfo_codeset
=no
14339 rm -f core conftest.err conftest.
$ac_objext \
14340 conftest
$ac_exeext conftest.
$ac_ext
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14344 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14345 if test $emacs_cv_langinfo_codeset = yes; then
14347 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14351 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14352 if test "x$ac_cv_type_size_t" = x
""yes; then :
14354 cat >>confdefs.h
<<_ACEOF
14355 #define HAVE_SIZE_T 1
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14363 $as_echo_n "checking for mbstate_t... " >&6; }
14364 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 # include <wchar.h>
14374 mbstate_t x; return sizeof x;
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14380 ac_cv_type_mbstate_t
=yes
14382 ac_cv_type_mbstate_t
=no
14384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14387 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14388 if test $ac_cv_type_mbstate_t = yes; then
14390 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14394 $as_echo "#define mbstate_t int" >>confdefs.h
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14399 $as_echo_n "checking for C restrict keyword... " >&6; }
14400 if test "${emacs_cv_c_restrict+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 void fred (int *restrict x);
14414 if ac_fn_c_try_compile
"$LINENO"; then :
14415 emacs_cv_c_restrict
=yes
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 void fred (int *__restrict x);
14428 if ac_fn_c_try_compile
"$LINENO"; then :
14429 emacs_cv_c_restrict
=__restrict
14431 emacs_cv_c_restrict
=no
14433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14438 $as_echo "$emacs_cv_c_restrict" >&6; }
14439 case "$emacs_cv_c_restrict" in
14440 yes) emacs_restrict
=restrict
;;
14441 no
) emacs_restrict
="";;
14442 *) emacs_restrict
="$emacs_cv_c_restrict";;
14444 if test "$emacs_restrict" != __restrict
; then
14446 cat >>confdefs.h
<<_ACEOF
14447 #define __restrict $emacs_restrict
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14453 $as_echo_n "checking for C restricted array declarations... " >&6; }
14454 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14455 $as_echo_n "(cached) " >&6
14457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 void fred (int x[__restrict]);
14468 if ac_fn_c_try_compile
"$LINENO"; then :
14469 emacs_cv_c_restrict_arr
=yes
14471 emacs_cv_c_restrict_arr
=no
14473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14476 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14477 if test "$emacs_cv_c_restrict_arr" = yes; then
14479 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14485 # Set up the CFLAGS for real compilation, so we can substitute it.
14486 CFLAGS
="$REAL_CFLAGS"
14487 CPPFLAGS
="$REAL_CPPFLAGS"
14489 ## Hack to detect a buggy GCC version.
14490 if test "x$GCC" = xyes \
14491 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14492 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14493 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14494 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14497 #### Find out which version of Emacs this is.
14498 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14499 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14500 if test x
"${version}" = x
; then
14501 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14503 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14505 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14508 ### Specify what sort of things we'll be editing into Makefile and config.h.
14509 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14533 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14534 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14535 ## end of LIBX_BASE, but nothing ever set it.
14540 ## Used in lwlib/Makefile.in.
14542 if test -n "${machfile}"; then
14543 M_FILE="\$
(srcdir
)/${machfile}"
14547 S_FILE="\$
(srcdir
)/${opsysfile}"
14559 cat >>confdefs.h <<_ACEOF
14560 #define EMACS_CONFIGURATION "${canonical}"
14564 cat >>confdefs.h <<_ACEOF
14565 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14568 if test -n "$machfile"; then
14570 cat >>confdefs.h <<_ACEOF
14571 #define config_machfile "${machfile}"
14576 cat >>confdefs.h <<_ACEOF
14577 #define config_opsysfile "${opsysfile}"
14584 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14586 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14589 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14591 if test "$HAVE_XFT" = "yes"; then
14592 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14593 elif test "$HAVE_FREETYPE" = "yes"; then
14594 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14604 if test "${USE_X_TOOLKIT}" != "none" ; then
14605 WIDGET_OBJ
=widget.o
14607 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14609 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14611 $as_echo "#define USE_LUCID 1" >>confdefs.h
14613 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14615 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14620 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14621 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14625 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14626 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14627 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14631 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14632 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14635 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14641 case "$USE_X_TOOLKIT" in
14642 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14643 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14644 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14648 if test "$USE_X_TOOLKIT" = "none"; then
14649 LIBXT_OTHER
="\$(LIBXSM)"
14650 OLDXMENU_TARGET
="really-oldXMenu"
14652 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14653 OLDXMENU_TARGET
="really-lwlib"
14657 ## The X Menu stuff is present in the X10 distribution, but missing
14658 ## from X11. If we have X10, just use the installed library;
14659 ## otherwise, use our own copy.
14660 if test "${HAVE_X11}" = "yes" ; then
14662 $as_echo "#define HAVE_X11 1" >>confdefs.h
14665 if test "$USE_X_TOOLKIT" = "none"; then
14666 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14668 OLDXMENU
="\${lwlibdir}/liblw.a"
14670 LIBXMENU
="\$(OLDXMENU)"
14671 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14672 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14674 ## For a syntactically valid Makefile; not actually used for anything.
14675 ## See comments in src/Makefile.in.
14677 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14678 if test "${HAVE_X_WINDOWS}" = "yes"; then
14687 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14700 if test "${HAVE_MENUS}" = "yes" ; then
14702 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14706 if test "${GNU_MALLOC}" = "yes" ; then
14708 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14713 if test "${REL_ALLOC}" = "yes" ; then
14715 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14718 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14722 if test "$opsys" = "cygwin"; then
14723 CYGWIN_OBJ
="sheap.o"
14724 ## Cygwin differs because of its unexec().
14726 POST_ALLOC_OBJ
=lastfile.o
14729 PRE_ALLOC_OBJ
=lastfile.o
14738 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14741 ## The -headerpad option tells ld (see man page) to leave room at the
14742 ## end of the header for adding load commands. Needed for dumping.
14743 ## 0x690 is the total size of 30 segment load commands (at 56
14744 ## each); under Cocoa 31 commands are required.
14745 if test "$HAVE_NS" = "yes"; then
14746 libs_nsgui
="-framework AppKit"
14747 headerpad_extra
=6C8
14750 headerpad_extra
=690
14752 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14754 ## This is here because src/Makefile.in did some extra fiddling around
14755 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14756 ## #ifndef LD_SWITCH_SYSTEM
14757 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14758 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14759 ## not using gcc, darwin system not on an alpha (ie darwin, since
14760 ## darwin + alpha does not occur).
14761 ## Because this was done in src/Makefile.in, the resulting part of
14762 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14763 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14764 ## rather than LD_SWITCH_SYSTEM.
14765 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14766 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14769 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14770 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14771 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14772 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14773 ## had different values in configure (in ac_link) and src/Makefile.in.
14774 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14775 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14777 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14780 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14781 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14790 ## gnu: GNU needs its own crt0.
14791 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14793 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14794 ## library search parth, i.e. it won't search /usr/lib for libc and
14795 ## friends. Using -nostartfiles instead avoids this problem, and
14796 ## will also work on earlier NetBSD releases.
14797 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14799 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14800 ## MkLinux/LinuxPPC needs this.
14801 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14804 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14810 if test "x$ORDINARY_LINK" = "xyes"; then
14814 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14817 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14818 ## freebsd, gnu-* not on macppc|ibms390x.
14819 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14821 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14822 ## places that are difficult to figure out at make time. Fortunately,
14823 ## these same versions allow you to pass arbitrary flags on to the
14824 ## linker, so there is no reason not to use it as a linker.
14826 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14827 ## searching for libraries in its internal directories, so we have to
14828 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14829 LD_FIRSTFLAG
="-nostdlib"
14832 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14833 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14838 ## FIXME? The logic here is not precisely the same as that above.
14839 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14840 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14842 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14845 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14848 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14849 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14855 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14856 ## immediately undefine it again and redefine it to empty.
14857 ## Was the C_SWITCH_X_SITE part really necessary?
14858 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14864 ## Ask GCC where to find libgcc.a.
14865 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14872 ## If we're using X11/GNUstep, define some consequences.
14873 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14875 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14878 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14880 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14881 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
14883 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14884 test "$HAVE_X_WINDOWS" = "yes" && \
14885 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14895 #### Report on what we decided to do.
14896 #### Report GTK as a toolkit, even if it doesn't use Xt.
14897 #### It makes printing result more understandable as using GTK sets
14898 #### toolkit_scroll_bars to yes by default.
14899 if test "${HAVE_GTK}" = "yes"; then
14904 if test -n "$machfile"; then
14905 and_machfile
=" and \`${machfile}'"
14909 Configured for \`${canonical}'.
14911 Where should the build process find the source code? ${srcdir}
14912 What operating system and machine description files should Emacs use?
14913 \`${opsysfile}'${and_machfile}
14914 What compiler should emacs be built with? ${CC} ${CFLAGS}
14915 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14916 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14917 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14918 What window system should Emacs use? ${window_system}
14919 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14921 if test -n "${x_includes}"; then
14922 echo " Where do we find X Windows header files? ${x_includes}"
14924 echo " Where do we find X Windows header files? Standard dirs"
14926 if test -n "${x_libraries}"; then
14927 echo " Where do we find X Windows libraries? ${x_libraries}"
14929 echo " Where do we find X Windows libraries? Standard dirs"
14932 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14933 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14934 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14935 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14936 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14937 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14938 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14939 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14941 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14942 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14943 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14944 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14945 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14946 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14948 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14949 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14950 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14951 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14953 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14956 if test $USE_XASSERTS = yes; then
14957 echo " Compiling with asserts turned on."
14958 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14963 if test "$HAVE_NS" = "yes"; then
14965 echo "You must run \"make install\" in order to test the built application.
14966 The installed application will go to nextstep/Emacs.app and can be
14967 run or moved from there."
14968 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14969 echo "The application will be fully self-contained."
14971 echo "The lisp resources for the application will be installed under ${prefix}.
14972 You may need to run \"make install\" with sudo. The application will fail
14973 to run if these resources are not installed."
14979 # Remove any trailing slashes in these variables.
14980 test "${prefix}" != NONE
&&
14981 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14982 test "${exec_prefix}" != NONE
&&
14983 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14985 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"
14987 ac_config_commands
="$ac_config_commands default"
14989 cat >confcache
<<\_ACEOF
14990 # This file is a shell script that caches the results of configure
14991 # tests run on this system so they can be shared between configure
14992 # scripts and configure runs, see configure's option --config-cache.
14993 # It is not useful on other systems. If it contains results you don't
14994 # want to keep, you may remove or edit it.
14996 # config.status only pays attention to the cache file if you give it
14997 # the --recheck option to rerun configure.
14999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15001 # following values.
15005 # The following way of writing the cache mishandles newlines in values,
15006 # but we know of no workaround that is simple, portable, and efficient.
15007 # So, we kill variables containing newlines.
15008 # Ultrix sh set writes to stderr and can't be redirected directly,
15009 # and sets the high bit in the cache file unless we assign to the vars.
15011 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15012 eval ac_val
=\$
$ac_var
15016 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15020 _ | IFS | as_nl
) ;; #(
15021 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15022 *) { eval $ac_var=; unset $ac_var;} ;;
15028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15029 *${as_nl}ac_space
=\
*)
15030 # `set' does not quote correctly, so add quotes: double-quote
15031 # substitution turns \\\\ into \\, and sed turns \\ into \.
15034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15037 # `set' quotes correctly as required by POSIX, so do not add quotes.
15038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15051 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15052 if test -w "$cache_file"; then
15053 test "x$cache_file" != "x/dev/null" &&
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15055 $as_echo "$as_me: updating cache $cache_file" >&6;}
15056 cat confcache
>$cache_file
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15064 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15065 # Let make expand exec_prefix.
15066 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15068 DEFS
=-DHAVE_CONFIG_H
15073 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15074 # 1. Remove the extension, and $U if already installed.
15075 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15076 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15078 # will be set to the directory where LIBOBJS objects are built.
15079 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15080 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15082 LIBOBJS
=$ac_libobjs
15084 LTLIBOBJS
=$ac_ltlibobjs
15089 : ${CONFIG_STATUS=./config.status}
15091 ac_clean_files_save
=$ac_clean_files
15092 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15098 # Generated by $as_me.
15099 # Run this file to recreate the current configuration.
15100 # Compiler output produced by configure, useful for debugging
15101 # configure, is in config.log if it exists.
15104 ac_cs_recheck=false
15107 SHELL=\${CONFIG_SHELL-$SHELL}
15110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15111 ## -------------------- ##
15112 ## M4sh Initialization. ##
15113 ## -------------------- ##
15115 # Be more Bourne compatible
15116 DUALCASE
=1; export DUALCASE
# for MKS sh
15117 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15121 # is contrary to our usage. Disable this feature.
15122 alias -g '${1+"$@"}'='"$@"'
15123 setopt NO_GLOB_SUBST
15125 case `(set -o) 2>/dev/null` in #(
15137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15138 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15141 # Prefer a ksh shell builtin over an external printf program on Solaris,
15142 # but without wasting forks for bash or zsh.
15143 if test -z "$BASH_VERSION$ZSH_VERSION" \
15144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15145 as_echo='print
-r --'
15146 as_echo_n='print
-rn --'
15147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15148 as_echo='printf %s
\n'
15149 as_echo_n='printf %s
'
15151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15152 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15153 as_echo_n='/usr
/ucb
/echo -n'
15155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15156 as_echo_n_body='eval
15160 expr "X$arg" : "X\\(.*\\)$as_nl";
15161 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15163 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15165 export as_echo_n_body
15166 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15168 export as_echo_body
15169 as_echo='sh
-c $as_echo_body as_echo
'
15172 # The user is always right.
15173 if test "${PATH_SEPARATOR+set}" != set; then
15175 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15176 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15183 # We need space, tab and new line, in precisely that order. Quoting is
15184 # there to prevent editors from complaining about space-tab.
15185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15186 # splitting by setting IFS to empty value.)
15189 # Find who we are. Look in the path if we contain no directory separator.
15191 *[\\/]* ) as_myself=$0 ;;
15192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15193 for as_dir in $PATH
15196 test -z "$as_dir" && as_dir=.
15197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15203 # We did not find ourselves, most probably we were run as `sh COMMAND'
15204 # in which case we are not to be found in the path.
15205 if test "x$as_myself" = x
; then
15208 if test ! -f "$as_myself"; then
15209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15213 # Unset variables that we do not need and which cause bugs (e.g. in
15214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15215 # suppresses any "Segmentation fault" message there. '((' could
15216 # trigger a bug in pdksh 5.2.14.
15217 for as_var
in BASH_ENV ENV MAIL MAILPATH
15218 do eval test x\
${$as_var+set} = xset \
15219 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15232 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15236 # ----------------------------------------
15237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15239 # script with STATUS, using 1 if that was 0.
15242 as_status
=$1; test $as_status -eq 0 && as_status
=1
15244 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15247 $as_echo "$as_me: error: $2" >&2
15248 as_fn_exit
$as_status
15252 # as_fn_set_status STATUS
15253 # -----------------------
15254 # Set $? to STATUS, without forking.
15255 as_fn_set_status
()
15258 } # as_fn_set_status
15260 # as_fn_exit STATUS
15261 # -----------------
15262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15266 as_fn_set_status
$1
15272 # Portably unset VAR.
15275 { eval $1=; unset $1;}
15277 as_unset
=as_fn_unset
15278 # as_fn_append VAR VALUE
15279 # ----------------------
15280 # Append the text in VALUE to the end of the definition contained in VAR. Take
15281 # advantage of any shell optimizations that allow amortized linear growth over
15282 # repeated appends, instead of the typical quadratic growth present in naive
15284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15285 eval 'as_fn_append ()
15296 # as_fn_arith ARG...
15297 # ------------------
15298 # Perform arithmetic evaluation on the ARGs, and store the result in the
15299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15300 # must be portable across $(()) and expr.
15301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15302 eval 'as_fn_arith ()
15309 as_val
=`expr "$@" || test $? -eq 1`
15314 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15315 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15321 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15322 as_basename
=basename
15327 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15333 as_me
=`$as_basename -- "$0" ||
15334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15335 X"$0" : 'X\(//\)$' \| \
15336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15338 sed '/^.*\/\([^/][^/]*\)\/*$/{
15352 # Avoid depending upon Character Ranges.
15353 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15354 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15355 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15356 as_cr_digits
='0123456789'
15357 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15359 ECHO_C
= ECHO_N
= ECHO_T
=
15360 case `echo -n x` in #(((((
15362 case `echo 'xy\c'` in
15363 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15365 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15372 rm -f conf$$ conf$$.exe conf$$.
file
15373 if test -d conf$$.dir
; then
15374 rm -f conf$$.dir
/conf$$.
file
15377 mkdir conf$$.dir
2>/dev
/null
15379 if (echo >conf$$.
file) 2>/dev
/null
; then
15380 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15382 # ... but there are two gotchas:
15383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15385 # In both cases, we have to default to `cp -p'.
15386 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15388 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15396 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15397 rmdir conf$$.dir
2>/dev
/null
15402 # Create "$as_dir" as a directory, including parents if necessary.
15407 -*) as_dir
=.
/$as_dir;;
15409 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15413 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15414 *) as_qdir
=$as_dir;;
15416 as_dirs
="'$as_qdir' $as_dirs"
15417 as_dir
=`$as_dirname -- "$as_dir" ||
15418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15419 X"$as_dir" : 'X\(//\)[^/]' \| \
15420 X"$as_dir" : 'X\(//\)$' \| \
15421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15422 $as_echo X"$as_dir" |
15423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15427 /^X\(\/\/\)[^/].*/{
15440 test -d "$as_dir" && break
15442 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15443 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15447 if mkdir
-p .
2>/dev
/null
; then
15448 as_mkdir_p
='mkdir -p "$as_dir"'
15450 test -d .
/-p && rmdir .
/-p
15454 if test -x / >/dev
/null
2>&1; then
15455 as_test_x
='test -x'
15457 if ls -dL / >/dev
/null
2>&1; then
15464 if test -d "$1"; then
15470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15471 ???[sx]*):;;*)false;;esac;fi
15475 as_executable_p
=$as_test_x
15477 # Sed expression to map a string onto a valid CPP name.
15478 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15480 # Sed expression to map a string onto a valid variable name.
15481 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15485 ## ----------------------------------- ##
15486 ## Main body of $CONFIG_STATUS script. ##
15487 ## ----------------------------------- ##
15489 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15492 # Save the log message, to keep $0 and so on meaningful, and to
15493 # report actual input values of CONFIG_FILES etc. instead of their
15494 # values after options handling.
15496 This file was extended by emacs $as_me 24.0.50, which was
15497 generated by GNU Autoconf 2.67. Invocation command line was
15499 CONFIG_FILES = $CONFIG_FILES
15500 CONFIG_HEADERS = $CONFIG_HEADERS
15501 CONFIG_LINKS = $CONFIG_LINKS
15502 CONFIG_COMMANDS = $CONFIG_COMMANDS
15505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15510 case $ac_config_files in *"
15511 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15514 case $ac_config_headers in *"
15515 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520 # Files that config.status was made for.
15521 config_files="$ac_config_files"
15522 config_headers="$ac_config_headers"
15523 config_commands="$ac_config_commands"
15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15529 \`$as_me' instantiates files and other configuration actions
15530 from templates according to the current configuration. Unless the files
15531 and actions are specified as TAGs, all are instantiated by default.
15533 Usage: $0 [OPTION]... [TAG]...
15535 -h, --help print this help, then exit
15536 -V, --version print version number and configuration settings, then exit
15537 --config print configuration, then exit
15538 -q, --quiet, --silent
15539 do not print progress messages
15540 -d, --debug don't remove temporary files
15541 --recheck update $as_me by reconfiguring in the same conditions
15542 --file=FILE[:TEMPLATE]
15543 instantiate the configuration file FILE
15544 --header=FILE[:TEMPLATE]
15545 instantiate the configuration header FILE
15547 Configuration files:
15550 Configuration headers:
15553 Configuration commands:
15556 Report bugs to the package provider."
15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15560 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15562 emacs config.status 24.0.50
15563 configured by $0, generated by GNU Autoconf 2.67,
15564 with options \\"\$ac_cs_config\\"
15566 Copyright (C) 2010 Free Software Foundation, Inc.
15567 This config.status script is free software; the Free Software Foundation
15568 gives unlimited permission to copy, distribute and modify it."
15573 test -n "\$AWK" || AWK=awk
15576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15577 # The default lists apply if the user does not specify any file.
15583 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15584 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15588 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15600 # Handling of the options.
15601 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15603 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15604 $as_echo "$ac_cs_version"; exit ;;
15605 --config |
--confi |
--conf |
--con |
--co |
--c )
15606 $as_echo "$ac_cs_config"; exit ;;
15607 --debug |
--debu |
--deb |
--de |
--d |
-d )
15609 --file |
--fil |
--fi |
--f )
15612 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15613 '') as_fn_error $?
"missing file argument" ;;
15615 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15616 ac_need_defaults
=false
;;
15617 --header |
--heade |
--head |
--hea )
15620 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15622 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15623 ac_need_defaults
=false
;;
15625 # Conflict between --help and --header
15626 as_fn_error $?
"ambiguous option: \`$1'
15627 Try \`$0 --help' for more information.";;
15628 --help |
--hel |
-h )
15629 $as_echo "$ac_cs_usage"; exit ;;
15630 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15631 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15634 # This is an error.
15635 -*) as_fn_error $?
"unrecognized option: \`$1'
15636 Try \`$0 --help' for more information." ;;
15638 *) as_fn_append ac_config_targets
" $1"
15639 ac_need_defaults
=false
;;
15645 ac_configure_extra_args
=
15647 if $ac_cs_silent; then
15649 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15654 if \$ac_cs_recheck; then
15655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15658 CONFIG_SHELL='$SHELL'
15659 export CONFIG_SHELL
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15669 ## Running $as_me. ##
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15679 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15685 # Handling of arguments.
15686 for ac_config_target
in $ac_config_targets
15688 case $ac_config_target in
15689 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15690 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15691 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15692 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15693 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15694 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15695 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15696 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15697 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15698 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15699 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15700 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15701 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15703 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15708 # If the user did not use the arguments to specify the items to instantiate,
15709 # then the envvar interface is used. Set only those that are not.
15710 # We use the long form for the default assignment because of an extremely
15711 # bizarre bug on SunOS 4.1.3.
15712 if $ac_need_defaults; then
15713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15718 # Have a temporary directory for convenience. Make it in the build tree
15719 # simply because there is no reason against having it here, and in addition,
15720 # creating and moving files from /tmp can sometimes cause problems.
15721 # Hook for its removal unless debugging.
15722 # Note that there is a small window in which the directory will not be cleaned:
15723 # after its creation but before its name has been assigned to `$tmp'.
15727 trap 'exit_status=$?
15728 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15730 trap 'as_fn_exit 1' 1 2 13 15
15732 # Create a (secure) tmp directory for tmp files.
15735 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15736 test -n "$tmp" && test -d "$tmp"
15739 tmp
=.
/conf$$
-$RANDOM
15740 (umask 077 && mkdir
"$tmp")
15741 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15743 # Set up the scripts for CONFIG_FILES section.
15744 # No need to generate them if there are no CONFIG_FILES.
15745 # This happens for instance with `./config.status config.h'.
15746 if test -n "$CONFIG_FILES"; then
15748 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15749 ac_cs_awk_getline
=:
15750 ac_cs_awk_pipe_init
=
15751 ac_cs_awk_read_file
='
15752 while ((getline aline < (F[key])) > 0)
15755 ac_cs_awk_pipe_fini
=
15757 ac_cs_awk_getline
=false
15758 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15759 ac_cs_awk_read_file
='
15761 print "cat " F[key] " &&"
15762 '$ac_cs_awk_pipe_init
15763 # The final `:' finishes the AND list.
15764 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15766 ac_cr
=`echo X | tr X '\015'`
15767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15768 # But we know of no other shell where ac_cr would be empty at this
15769 # point, so we can use a bashism as a fallback.
15770 if test "x$ac_cr" = x
; then
15771 eval ac_cr
=\$
\'\\r
\'
15773 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15777 ac_cs_awk_cr
=$ac_cr
15780 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15783 # Create commands to substitute file output variables.
15785 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15786 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15787 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15790 } >conf$
$files.sh
&&
15791 . .
/conf$
$files.sh ||
15792 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
15793 rm -f conf$
$files.sh
15796 echo "cat >conf$$subs.awk <<_ACEOF" &&
15797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15799 } >conf$$subs.sh ||
15800 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15803 for ac_last_try in false false false false false :; do
15804 . ./conf$$subs.sh ||
15805 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15807 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15808 if test $ac_delim_n = $ac_delim_num; then
15810 elif $ac_last_try; then
15811 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15813 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15816 rm -f conf$$subs.sh
15818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15823 s/^/S["/; s
/!.
*/"]=/
15833 s/\(.\{148\}\)..*/\1/
15835 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15840 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15847 s/\(.\{148\}\)..*/\1/
15849 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15853 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15858 ' <conf$$subs.awk | sed '
15863 ' >>$CONFIG_STATUS || ac_write_fail=1
15864 rm -f conf$$subs.awk
15865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15867 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15868 for (key in S) S_is_set[key] = 1
15870 \$ac_cs_awk_pipe_init
15874 nfields = split(line, field, "@
")
15876 len = length(field[1])
15877 for (i = 2; i < nfields; i++) {
15879 keylen = length(key)
15880 if (S_is_set[key]) {
15882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15883 len += length(value) + length(field[++i])
15888 if (nfields == 3 && !substed) {
15890 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15891 \$ac_cs_awk_read_file
15897 \$ac_cs_awk_pipe_fini
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15902 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15905 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15906 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15909 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15910 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15911 # trailing colons and then remove the whole line if VPATH becomes empty
15912 # (actually we leave an empty line to preserve line numbers).
15913 if test "x
$srcdir" = x.; then
15914 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15933 fi # test -n "$CONFIG_FILES"
15935 # Set up the scripts for CONFIG_HEADERS section.
15936 # No need to generate them if there are no CONFIG_HEADERS.
15937 # This happens for instance with `./config.status Makefile'.
15938 if test -n "$CONFIG_HEADERS"; then
15939 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15943 # Transform confdefs.h into an awk script `defines.awk', embedded as
15944 # here-document in config.status, that substitutes the proper values into
15945 # config.h.in to produce config.h.
15947 # Create a delimiter string that does not exist in confdefs.h, to ease
15948 # handling of long lines.
15950 for ac_last_try in false false :; do
15951 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15952 if test -z "$ac_t"; then
15954 elif $ac_last_try; then
15955 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15957 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15961 # For the awk script, D is an array of macro values keyed by name,
15962 # likewise P contains macro parameters if any. Preserve backslash
15963 # newline sequences.
15965 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15967 s/.\{148\}/&'"$ac_delim"'/g
15970 s/^[ ]*#[ ]*define[ ][ ]*/ /
15977 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15979 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15984 D["\
1"]=" \
3\\\\\\n
"\\/p
15986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15991 s/.\{148\}/&'"$ac_delim"'/g
15996 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15999 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16001 ' <confdefs.h | sed '
16002 s/'"$ac_delim"'/"\\\
16003 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006 for (key in D) D_is_set[key] = 1
16009 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16011 split(line, arg, " ")
16012 if (arg[1] == "#") {
16016 defundef
= substr
(arg
[1], 2)
16019 split(mac1
, mac2
, "(") #)
16021 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16022 if (D_is_set
[macro
]) {
16023 # Preserve the white space surrounding the "#".
16024 print prefix
"define", macro P
[macro
] D
[macro
]
16027 # Replace #undef with comments. This is necessary, for example,
16028 # in the case of _POSIX_SOURCE, which is predefined and required
16029 # on some systems where configure will not decide to define it.
16030 if (defundef
== "undef") {
16031 print
"/*", prefix defundef
, macro
, "*/"
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16040 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16041 fi # test -n "$CONFIG_HEADERS"
16044 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16049 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16051 case $ac_mode$ac_tag in
16053 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16054 :[FH
]-) ac_tag
=-:-;;
16055 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16072 -) ac_f
="$tmp/stdin";;
16073 *) # Look for the file first in the build tree, then in the source tree
16074 # (if the path is not absolute). The absolute path cannot be DOS-style,
16075 # because $ac_f cannot contain `:'.
16079 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16081 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16083 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16084 as_fn_append ac_file_inputs
" '$ac_f'"
16087 # Let's still pretend it is `configure' which instantiates (i.e., don't
16088 # use $as_me), people would be surprised to read:
16089 # /* config.h. Generated by config.status. */
16090 configure_input
='Generated from '`
16091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16093 if test x
"$ac_file" != x-
; then
16094 configure_input
="$ac_file. $configure_input"
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16096 $as_echo "$as_me: creating $ac_file" >&6;}
16098 # Neutralize special characters interpreted by sed in replacement strings.
16099 case $configure_input in #(
16100 *\
&* |
*\|
* |
*\\* )
16101 ac_sed_conf_input
=`$as_echo "$configure_input" |
16102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16103 *) ac_sed_conf_input
=$configure_input;;
16107 *:-:* |
*:-) cat >"$tmp/stdin" \
16108 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16113 ac_dir
=`$as_dirname -- "$ac_file" ||
16114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115 X"$ac_file" : 'X\(//\)[^/]' \| \
16116 X"$ac_file" : 'X\(//\)$' \| \
16117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16118 $as_echo X"$ac_file" |
16119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16123 /^X\(\/\/\)[^/].*/{
16136 as_dir
="$ac_dir"; as_fn_mkdir_p
16140 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16142 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16143 # A ".." for each directory in $ac_dir_suffix.
16144 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16145 case $ac_top_builddir_sub in
16146 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16147 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16150 ac_abs_top_builddir
=$ac_pwd
16151 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16152 # for backward compatibility:
16153 ac_top_builddir
=$ac_top_build_prefix
16156 .
) # We are building in place.
16158 ac_top_srcdir
=$ac_top_builddir_sub
16159 ac_abs_top_srcdir
=$ac_pwd ;;
16160 [\\/]* | ?
:[\\/]* ) # Absolute name.
16161 ac_srcdir
=$srcdir$ac_dir_suffix;
16162 ac_top_srcdir
=$srcdir
16163 ac_abs_top_srcdir
=$srcdir ;;
16164 *) # Relative name.
16165 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16166 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16167 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16169 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16179 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16180 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16185 # If the template does not know about datarootdir, expand it.
16186 # FIXME: This hack should be removed a few years after 2.60.
16187 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16199 *datarootdir
*) ac_datarootdir_seen
=yes;;
16200 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 ac_datarootdir_hack='
16206 s&@datadir@&$datadir&g
16207 s&@docdir@&$docdir&g
16208 s&@infodir@&$infodir&g
16209 s&@localedir@&$localedir&g
16210 s&@mandir@&$mandir&g
16211 s&\\\${datarootdir}&$datarootdir&g' ;;
16215 # Neutralize VPATH when `$srcdir' = `.'.
16216 # Shell code in configure.ac might set extrasub.
16217 # FIXME: do we really want to maintain this feature?
16218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16219 ac_sed_extra="$ac_vpsub
16222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16224 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16225 s|@configure_input@|
$ac_sed_conf_input|
;t t
16226 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16227 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16228 s
&@srcdir@
&$ac_srcdir&;t t
16229 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16230 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16231 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16232 s
&@builddir@
&$ac_builddir&;t t
16233 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16234 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16235 s
&@INSTALL@
&$ac_INSTALL&;t t
16236 $ac_datarootdir_hack
16238 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16239 if $ac_cs_awk_getline; then
16240 $AWK -f "$tmp/subs.
awk"
16242 $AWK -f "$tmp/subs.
awk" | $SHELL
16244 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16246 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16250 which seems to be undefined. Please make sure it is defined" >&5
16251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16252 which seems to be undefined. Please make sure it is defined" >&2;}
16256 -) cat "$tmp/out" && rm -f "$tmp/out";;
16257 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16265 if test x"$ac_file" != x-; then
16267 $as_echo "/* $configure_input */" \
16268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16269 } >"$tmp/config.h" \
16270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16271 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16276 mv "$tmp/config.h" "$ac_file" \
16277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16280 $as_echo "/* $configure_input */" \
16281 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16282 || as_fn_error $? "could not create -" "$LINENO" 5
16286 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16287 $as_echo "$as_me: executing $ac_file commands" >&6;}
16292 case $ac_file$ac_mode in
16295 ### Make the necessary directories, if they don't exist.
16296 for dir
in etc lisp
; do
16297 test -d ${dir} || mkdir
${dir}
16300 echo creating src
/epaths.h
16301 ${MAKE-make} epaths-force
16303 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16304 echo creating src
/.gdbinit
16305 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16316 ac_clean_files
=$ac_clean_files_save
16318 test $ac_write_fail = 0 ||
16319 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16322 # configure is writing to config.log, and then calls config.status.
16323 # config.status does its own redirection, appending to config.log.
16324 # Unfortunately, on DOS this fails, as config.log is still kept open
16325 # by configure, so config.status won't be able to write to it; its
16326 # output is simply discarded. So we exec the FD to /dev/null,
16327 # effectively closing config.log, so it can be properly (re)opened and
16328 # appended to by config.status. When coming back to configure, we
16329 # need to make the FD available again.
16330 if test "$no_create" != yes; then
16332 ac_config_status_args
=
16333 test "$silent" = yes &&
16334 ac_config_status_args
="$ac_config_status_args --quiet"
16336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16339 # would make configure fail if this is the last instruction.
16340 $ac_cs_success || as_fn_exit
1
16342 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16344 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}