2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
605 LD_SWITCH_SYSTEM_TEMACS
638 x_default_search_path
702 LD_SWITCH_X_SITE_AUX_RPATH
775 program_transform_name
786 ac_subst_files
='deps_frag
789 enable_option_checking
809 with_toolkit_scroll_bars
821 enable_ns_self_contained
823 enable_maintainer_mode
831 ac_precious_vars
='build_alias
843 # Initialize some variables set by options.
845 ac_init_version
=false
846 ac_unrecognized_opts
=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name
=s
,x
,x
,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir
='${exec_prefix}/bin'
872 sbindir
='${exec_prefix}/sbin'
873 libexecdir
='${exec_prefix}/libexec'
874 datarootdir
='${prefix}/share'
875 datadir
='${datarootdir}'
876 sysconfdir
='${prefix}/etc'
877 sharedstatedir
='${prefix}/com'
878 localstatedir
='${prefix}/var'
879 includedir
='${prefix}/include'
880 oldincludedir
='/usr/include'
881 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir
='${datarootdir}/info'
887 libdir
='${exec_prefix}/lib'
888 localedir
='${datarootdir}/locale'
889 mandir
='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\
$ac_option
903 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error
"invalid feature name: $ac_useropt"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error
"invalid feature name: $ac_useropt"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error
"invalid package name: $ac_useropt"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=\
$ac_optarg ;;
1191 -without-* |
--without-*)
1192 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) as_fn_error
"unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1234 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error
"missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val
=\$
$ac_var
1270 # Remove trailing slashes.
1273 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\
$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$
]* | ?
:[\\/]* ) continue;;
1279 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1281 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1305 test "$silent" = yes && exec 6>/dev
/null
1308 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di
=`ls -di .` &&
1310 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error
"working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error
"pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted
=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir
=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted
=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1352 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var
in $ac_precious_vars; do
1369 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1371 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1445 --x-includes=DIR X include files are
in DIR
1446 --x-libraries=DIR X library files are
in DIR
1449 --build=BUILD configure
for building on BUILD
[guessed
]
1450 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1461 --disable-option-checking ignore unrecognized
--enable/--with options
1462 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1463 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1464 --disable-ns-self-contained
1465 disable self contained build under NeXTstep
1466 --enable-asserts compile code with asserts enabled
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful
(and
1469 sometimes confusing
) to the casual installer
1470 --enable-locallisppath=PATH
1471 directories Emacs should search
for lisp files
1472 specific to this site
1473 --enable-checking[=LIST
]
1474 enable expensive run-time checks. With LIST
, enable
1475 only specific categories of checks. Categories are
:
1476 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1477 stringfreelist
, xmallocoverrun
, conslist
1478 --enable-profiling build emacs with profiling support. This might not
1479 work on all platforms
1480 --enable-autodepend automatically generate dependencies to .h-files.
1481 Requires GNU Make and Gcc. Enabled
if GNU Make and
1483 --disable-largefile omit support
for large files
1486 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1487 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1488 --without-pop don
't support POP mail retrieval with movemail
1489 --with-kerberos support Kerberos-authenticated POP
1490 --with-kerberos5 support Kerberos version 5 authenticated POP
1491 --with-hesiod support Hesiod to get the POP server host
1492 --with-mmdf support MMDF mailboxes
1493 --with-mail-unlink unlink, rather than empty, mail spool after reading
1494 --with-mailhost=HOSTNAME
1495 string giving default POP mail host
1496 --without-sound don't compile with sound support
1497 --without-sync-input process async input synchronously
1498 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1500 --without-xpm don
't compile with XPM image support
1501 --without-jpeg don't compile with JPEG image support
1502 --without-tiff don
't compile with TIFF image support
1503 --without-gif don't compile with GIF image support
1504 --without-png don
't compile with PNG image support
1505 --without-rsvg don't compile with SVG image support
1506 --without-xft don
't use XFT for anti aliased fonts
1507 --without-libotf don't use libotf
for OpenType font support
1508 --without-m17n-flt don
't use m17n-flt for text shaping
1509 --without-toolkit-scroll-bars
1510 don't use Motif or Xaw3d scroll bars
1511 --without-xaw3d don
't use Xaw3d
1512 --without-xim don't use X11 XIM
1513 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1514 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1516 --without-dbus don't compile with D-Bus support
1517 --without-gconf don
't compile with GConf support
1518 --without-selinux don't compile with SELinux support
1519 --without-makeinfo don
't require makeinfo for building manuals
1520 --with-pkg-config-prog=PATH
1521 path to pkg-config for finding GTK and librsvg
1522 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1523 /usr/lib, or /usr/lib64 on some platforms.
1524 --with-gnustep-conf=PATH
1525 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1526 or /etc/GNUstep/GNUstep.conf
1527 --with-x use the X Window System
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1538 XMKMF Path to xmkmf, Makefile generator for X Window System
1540 Use these variables to override the choices made by `configure' or to
help
1541 it to
find libraries and programs with nonstandard names
/locations.
1543 Report bugs to the package provider.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1557 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1559 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1564 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir
=$ac_pwd
1568 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir
=$ac_top_build_prefix
1573 .
) # We are building in place.
1575 ac_top_srcdir
=$ac_top_builddir_sub
1576 ac_abs_top_srcdir
=$ac_pwd ;;
1577 [\\/]* | ?
:[\\/]* ) # Absolute name.
1578 ac_srcdir
=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir
=$srcdir
1580 ac_abs_top_srcdir
=$srcdir ;;
1582 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 emacs configure
24.0.50
1607 generated by GNU Autoconf
2.65
1609 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1610 This configure
script is free software
; the Free Software Foundation
1611 gives unlimited permission to copy
, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile
()
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 rm -f conftest.
$ac_objext
1627 if { { ac_try
="$ac_compile"
1629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1668 *) ac_try_echo
=$ac_try;;
1670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1674 if test -s conftest.err
; then
1675 grep -v '^ *+' conftest.err
>conftest.er1
1676 cat conftest.er1
>&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest
$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 $as_test_x conftest
$ac_exeext
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.
$ac_ext >&5
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1700 as_fn_set_status
$ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1710 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } >/dev/null && {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
1741 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1744 # the include files in INCLUDES and setting the cache variable VAR
1746 ac_fn_c_check_header_mongrel ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1759 # Is the header compilable?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1761 $as_echo_n "checking $2 usability... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_header_compiler=yes
1770 ac_header_compiler=no
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1774 $as_echo "$ac_header_compiler" >&6; }
1776 # Is the header present?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1778 $as_echo_n "checking $2 presence... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1783 if ac_fn_c_try_cpp "$LINENO"; then :
1784 ac_header_preproc=yes
1786 ac_header_preproc=no
1788 rm -f conftest.err conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1790 $as_echo "$ac_header_preproc" >&6; }
1792 # So? What about this header?
1793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1796 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1802 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1804 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1806 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1808 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1818 eval "$3=\$ac_header_compiler"
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_header_mongrel
1828 # ac_fn_c_try_run LINENO
1829 # ----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 # that executables *can* be run.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_link"
1837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1838 *) ac_try_echo
=$ac_try;;
1840 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>&5
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1846 { { case "(($ac_try" in
1847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_try") 2>&5
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; }; }; then :
1858 $as_echo "$as_me: program exited with status $ac_status" >&5
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=$ac_status
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists and can be compiled using the include files in
1873 # INCLUDES, setting the cache variable VAR accordingly.
1874 ac_fn_c_check_header_compile ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1887 if ac_fn_c_try_compile "$LINENO"; then :
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 } # ac_fn_c_check_header_compile
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR
1902 # ------------------------------------
1903 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1904 ac_fn_c_check_decl ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1908 $as_echo_n "checking whether $2 is declared... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1926 if ac_fn_c_try_compile "$LINENO"; then :
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 } # ac_fn_c_check_decl
1940 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1941 # ----------------------------------------------
1942 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_preproc ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1960 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 } # ac_fn_c_check_header_preproc
1969 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1970 # ----------------------------------------------------
1971 # Tries to find if the field MEMBER exists in type AGGR, after including
1972 # INCLUDES, setting cache variable VAR accordingly.
1973 ac_fn_c_check_member ()
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.$3" >&5
1977 $as_echo_n "checking for $2.$3... " >&6; }
1978 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2004 if (sizeof ac_aggr.$3)
2010 if ac_fn_c_try_compile "$LINENO"; then :
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 } # ac_fn_c_check_member
2026 # ac_fn_c_check_func LINENO FUNC VAR
2027 # ----------------------------------
2028 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2029 ac_fn_c_check_func ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2041 #define $2 innocuous_$2
2043 /* System header to define __stub macros and hopefully few prototypes,
2044 which can conflict with char $2 (); below.
2045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2046 <limits.h> exists even on freestanding compilers. */
2049 # include <limits.h>
2051 # include <assert.h>
2056 /* Override any GCC internal prototype to avoid an error.
2057 Use char because int might match the return type of a GCC
2058 builtin and then its argument prototype would still apply. */
2063 /* The GNU C library defines this for functions which it implements
2064 to always fail with ENOSYS. Some functions are actually named
2065 something starting with __ and the normal name is an alias. */
2066 #if defined __stub_$2 || defined __stub___$2
2078 if ac_fn_c_try_link "$LINENO"; then :
2083 rm -f core conftest.err conftest.$ac_objext \
2084 conftest$ac_exeext conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_func
2093 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2094 # -------------------------------------------
2095 # Tests whether TYPE exists after having included INCLUDES, setting cache
2096 # variable VAR accordingly.
2097 ac_fn_c_check_type ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2131 if ac_fn_c_try_compile "$LINENO"; then :
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 } # ac_fn_c_check_type
2146 cat >config.log <<_ACEOF
2147 This file contains any messages produced by compilers while
2148 running configure, to aid debugging if configure makes a mistake.
2150 It was created by emacs $as_me 24.0.50, which was
2151 generated by GNU Autoconf 2.65. Invocation command line was
2163 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2164 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2165 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2166 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2167 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2169 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2170 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2172 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2173 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2174 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2175 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2176 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2177 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2178 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 $as_echo "PATH: $as_dir"
2203 # Keep a trace of the command line.
2204 # Strip out --no-create and --no-recursion so they do not pile up.
2205 # Strip out --silent because we don't want to record it for future runs.
2206 # Also quote any args containing shell meta-characters.
2207 # Make two passes to allow for proper duplicate-argument suppression.
2211 ac_must_keep_next=false
2217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2219 | -silent | --silent | --silen | --sile | --sil)
2222 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2227 as_fn_append ac_configure_args1 " '$ac_arg'"
2228 if test $ac_must_keep_next = true; then
2229 ac_must_keep_next=false # Got value, back to normal.
2232 *=* | --config-cache | -C | -disable-* | --disable-* \
2233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2235 | -with-* | --with-* | -without-* | --without-* | --x)
2236 case "$ac_configure_args0 " in
2237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2240 -* ) ac_must_keep_next=true ;;
2243 as_fn_append ac_configure_args " '$ac_arg'"
2248 { ac_configure_args0=; unset ac_configure_args0;}
2249 { ac_configure_args1=; unset ac_configure_args1;}
2251 # When interrupted or exit'd, cleanup temporary files, and complete
2252 # config.log. We remove comments because anyway the quotes in there
2253 # would cause problems or look ugly.
2254 # WARNING: Use '\'' to represent an apostrophe within the trap.
2255 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2256 trap 'exit_status=$?
2257 # Save into config.log some information that might help in debugging.
2262 ## ---------------- ##
2263 ## Cache variables. ##
2264 ## ---------------- ##
2267 # The following way of writing the cache mishandles newlines in values,
2269 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2270 eval ac_val=\$$ac_var
2274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 _ | IFS | as_nl) ;; #(
2279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2280 *) { eval $ac_var=; unset $ac_var;} ;;
2285 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2286 *${as_nl}ac_space=\ *)
2288 "s/'\''/'\''\\\\'\'''\''/g;
2289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2300 ## ----------------- ##
2301 ## Output variables. ##
2302 ## ----------------- ##
2305 for ac_var in $ac_subst_vars
2307 eval ac_val=\$$ac_var
2309 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -n "$ac_subst_files"; then
2317 ## ------------------- ##
2318 ## File substitutions. ##
2319 ## ------------------- ##
2322 for ac_var in $ac_subst_files
2324 eval ac_val=\$$ac_var
2326 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 $as_echo "$ac_var='\''$ac_val'\''"
2333 if test -s confdefs.h; then
2343 test "$ac_signal" != 0 &&
2344 $as_echo "$as_me: caught signal $ac_signal"
2345 $as_echo "$as_me: exit $exit_status"
2347 rm -f core *.core core.conftest.* &&
2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 for ac_signal in 1 2 13 15; do
2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest* confdefs.h
2359 $as_echo "/* confdefs.h */" > confdefs.h
2361 # Predefined preprocessor variables.
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_URL "$PACKAGE_URL"
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2392 if test -n "$CONFIG_SITE"; then
2393 ac_site_file1=$CONFIG_SITE
2394 elif test "x$prefix" != xNONE; then
2395 ac_site_file1=$prefix/share/config.site
2396 ac_site_file2=$prefix/etc/config.site
2398 ac_site_file1=$ac_default_prefix/share/config.site
2399 ac_site_file2=$ac_default_prefix/etc/config.site
2401 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403 test "x$ac_site_file" = xNONE && continue
2404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2407 sed 's/^/| /' "$ac_site_file" >&5
2412 if test -r "$cache_file"; then
2413 # Some versions of bash will fail to source /dev/null (special files
2414 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2415 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2417 $as_echo "$as_me: loading cache $cache_file" >&6;}
2419 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2420 *) . "./$cache_file";;
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2425 $as_echo "$as_me: creating cache $cache_file" >&6;}
2429 as_fn_append ac_header_list " stdlib.h"
2430 as_fn_append ac_header_list " unistd.h"
2431 as_fn_append ac_header_list " sys/param.h"
2432 as_fn_append ac_header_list " sys/time.h"
2433 as_fn_append ac_func_list " alarm"
2434 # Check that the precious variables saved in the cache have kept the same
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2445 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2449 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x
$ac_old_val`
2456 ac_new_val_w=`echo x
$ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2460 ac_cache_corrupted=:
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484 if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2506 test "$program_prefix" != NONE &&
2507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2508 # Use a double $ so make ignores it.
2509 test "$program_suffix" != NONE &&
2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511 # Double any \ or $.
2512 # By default was `s
,x
,x
', remove it if useless.
2513 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2514 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517 lispdir='${datadir}/emacs
/${version}/lisp
'
2518 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2519 '${datadir}/emacs
/site-lisp
'
2520 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2521 etcdir='${datadir}/emacs
/${version}/etc
'
2522 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2523 docdir='${datadir}/emacs
/${version}/etc
'
2524 gamedir='${localstatedir}/games
/emacs
'
2531 # Check whether --with-pop was given.
2532 if test "${with_pop+set}" = set; then :
2538 if test "$with_pop" = yes; then
2539 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2544 # Check whether --with-kerberos was given.
2545 if test "${with_kerberos+set}" = set; then :
2546 withval=$with_kerberos;
2551 if test "$with_kerberos" != no; then
2552 $as_echo "#define KERBEROS 1" >>confdefs.h
2557 # Check whether --with-kerberos5 was given.
2558 if test "${with_kerberos5+set}" = set; then :
2559 withval=$with_kerberos5;
2564 if test "${with_kerberos5}" != no; then
2565 if test "${with_kerberos}" = no; then
2567 $as_echo "#define KERBEROS 1" >>confdefs.h
2571 $as_echo "#define KERBEROS5 1" >>confdefs.h
2576 # Check whether --with-hesiod was given.
2577 if test "${with_hesiod+set}" = set; then :
2578 withval=$with_hesiod;
2583 if test "$with_hesiod" != no; then
2585 $as_echo "#define HESIOD 1" >>confdefs.h
2590 # Check whether --with-mmdf was given.
2591 if test "${with_mmdf+set}" = set; then :
2597 if test "$with_mmdf" != no; then
2599 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2604 # Check whether --with-mail-unlink was given.
2605 if test "${with_mail_unlink+set}" = set; then :
2606 withval=$with_mail_unlink;
2611 if test "$with_mail_unlink" != no; then
2613 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2618 # Check whether --with-mailhost was given.
2619 if test "${with_mailhost+set}" = set; then :
2620 withval=$with_mailhost;
2621 cat >>confdefs.h <<_ACEOF
2622 #define MAILHOST "$withval"
2629 # Check whether --with-sound was given.
2630 if test "${with_sound+set}" = set; then :
2631 withval=$with_sound;
2638 # Check whether --with-sync-input was given.
2639 if test "${with_sync_input+set}" = set; then :
2640 withval=$with_sync_input;
2645 if test "$with_sync_input" = yes; then
2647 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2652 # Check whether --with-x-toolkit was given.
2653 if test "${with_x_toolkit+set}" = set; then :
2654 withval=$with_x_toolkit; case "${withval}" in
2655 y | ye | yes ) val=gtk ;;
2657 l | lu | luc | luci | lucid ) val=lucid ;;
2658 a | at | ath | athe | athen | athena ) val=athena ;;
2659 m | mo | mot | moti | motif ) val=motif ;;
2660 g | gt | gtk ) val=gtk ;;
2662 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2663 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2664 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" "$LINENO" 5
2673 # Check whether --with-xpm was given.
2674 if test "${with_xpm+set}" = set; then :
2681 # Check whether --with-jpeg was given.
2682 if test "${with_jpeg+set}" = set; then :
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2697 # Check whether --with-gif was given.
2698 if test "${with_gif+set}" = set; then :
2705 # Check whether --with-png was given.
2706 if test "${with_png+set}" = set; then :
2713 # Check whether --with-rsvg was given.
2714 if test "${with_rsvg+set}" = set; then :
2722 # Check whether --with-xft was given.
2723 if test "${with_xft+set}" = set; then :
2730 # Check whether --with-libotf was given.
2731 if test "${with_libotf+set}" = set; then :
2732 withval=$with_libotf;
2738 # Check whether --with-m17n-flt was given.
2739 if test "${with_m17n_flt+set}" = set; then :
2740 withval=$with_m17n_flt;
2747 # Check whether --with-toolkit-scroll-bars was given.
2748 if test "${with_toolkit_scroll_bars+set}" = set; then :
2749 withval=$with_toolkit_scroll_bars;
2751 with_toolkit_scroll_bars=yes
2755 # Check whether --with-xaw3d was given.
2756 if test "${with_xaw3d+set}" = set; then :
2757 withval=$with_xaw3d;
2763 # Check whether --with-xim was given.
2764 if test "${with_xim+set}" = set; then :
2771 # Check whether --with-ns was given.
2772 if test "${with_ns+set}" = set; then :
2780 # Check whether --with-gpm was given.
2781 if test "${with_gpm+set}" = set; then :
2788 # Check whether --with-dbus was given.
2789 if test "${with_dbus+set}" = set; then :
2796 # Check whether --with-gconf was given.
2797 if test "${with_gconf+set}" = set; then :
2798 withval=$with_gconf;
2804 # Check whether --with-selinux was given.
2805 if test "${with_selinux+set}" = set; then :
2806 withval=$with_selinux;
2812 ## For the times when you want to build Emacs but don't have
2813 ## a suitable makeinfo, and can live without the manuals.
2815 # Check whether --with-makeinfo was given.
2816 if test "${with_makeinfo+set}" = set; then :
2817 withval=$with_makeinfo;
2824 # Check whether --with-pkg-config-prog was given.
2825 if test "${with_pkg_config_prog+set}" = set; then :
2826 withval=$with_pkg_config_prog;
2829 if test "X
${with_pkg_config_prog}" != X; then
2830 if test "${with_pkg_config_prog}" != yes; then
2831 PKG_CONFIG="${with_pkg_config_prog}"
2837 # Check whether --with-crt-dir was given.
2838 if test "${with_crt_dir+set}" = set; then :
2839 withval=$with_crt_dir;
2842 CRT_DIR="${with_crt_dir}"
2845 # Check whether --with-gnustep-conf was given.
2846 if test "${with_gnustep_conf+set}" = set; then :
2847 withval=$with_gnustep_conf;
2850 test "X
${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2851 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2852 test "X
$GNUSTEP_CONFIG_FILE" = "X
" && \
2853 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2855 # Check whether --enable-ns-self-contained was given.
2856 if test "${enable_ns_self_contained+set}" = set; then :
2857 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2859 EN_NS_SELF_CONTAINED=yes
2863 # Check whether --enable-asserts was given.
2864 if test "${enable_asserts+set}" = set; then :
2865 enableval=$enable_asserts; USE_XASSERTS=$enableval
2871 # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2875 USE_MAINTAINER_MODE=no
2878 if test $USE_MAINTAINER_MODE = yes; then
2885 # Check whether --enable-locallisppath was given.
2886 if test "${enable_locallisppath+set}" = set; then :
2887 enableval=$enable_locallisppath; if test "${enableval}" = "no
"; then
2889 elif test "${enableval}" != "yes"; then
2890 locallisppath=${enableval}
2895 # Check whether --enable-checking was given.
2896 if test "${enable_checking+set}" = set; then :
2897 enableval=$enable_checking; ac_checking_flags="${enableval}"
2900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2901 for check in $ac_checking_flags
2904 # these set all the flags to specific states
2905 yes) ac_enable_checking=1 ;;
2906 no) ac_enable_checking= ;
2907 ac_gc_check_stringbytes= ;
2908 ac_gc_check_string_overrun= ;
2909 ac_gc_check_string_free_list= ;
2910 ac_xmalloc_overrun= ;
2911 ac_gc_check_cons_list= ;;
2912 all) ac_enable_checking=1 ;
2913 ac_gc_check_stringbytes=1 ;
2914 ac_gc_check_string_overrun=1 ;
2915 ac_gc_check_string_free_list=1 ;
2916 ac_xmalloc_overrun=1 ;
2917 ac_gc_check_cons_list=1 ;;
2918 # these enable particular checks
2919 stringbytes) ac_gc_check_stringbytes=1 ;;
2920 stringoverrun) ac_gc_check_string_overrun=1 ;;
2921 stringfreelist) ac_gc_check_string_free_list=1 ;;
2922 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2923 conslist) ac_gc_check_cons_list=1 ;;
2924 *) as_fn_error "unknown check category
$check" "$LINENO" 5 ;;
2929 if test x$ac_enable_checking != x ; then
2931 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2934 if test x
$ac_gc_check_stringbytes != x
; then
2936 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2939 if test x
$ac_gc_check_stringoverrun != x
; then
2941 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2944 if test x
$ac_gc_check_string_free_list != x
; then
2946 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2949 if test x
$ac_xmalloc_overrun != x
; then
2951 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2954 if test x
$ac_gc_check_cons_list != x
; then
2956 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2960 # Check whether --enable-profiling was given.
2961 if test "${enable_profiling+set}" = set; then :
2962 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2965 if test x
$ac_enable_profiling != x
; then
2966 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2967 PROFILING_LDFLAGS
="-pg"
2973 # Check whether --enable-autodepend was given.
2974 if test "${enable_autodepend+set}" = set; then :
2975 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2977 ac_enable_autodepend
=yes
2981 #### Make srcdir absolute, if it isn't already. It's important to
2982 #### avoid running the path through pwd unnecessarily, since pwd can
2983 #### give you automounter prefixes, which can go away. We do all this
2984 #### so Emacs can find its files when run uninstalled.
2985 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2990 ## We may be able to use the $PWD environment variable to make this
2991 ## absolute. But sometimes PWD is inaccurate.
2992 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2993 ## but that tested only for a well-formed and valid PWD,
2994 ## it did not object when PWD was well-formed and valid but just wrong.
2995 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2999 srcdir
="`(cd ${srcdir}; pwd)`"
3002 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3005 #### Check if the source directory already has a configured system in it.
3006 if test `pwd` != `(cd ${srcdir} && pwd)` \
3007 && test -f "${srcdir}/src/config.h" ; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3009 as a build directory right now; it has been configured in its own
3010 right. To configure in another directory as well, you MUST
3011 use GNU make. If you do not have GNU make, then you must
3012 now do \`make distclean' in ${srcdir},
3013 and then run $0 again." >&5
3014 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3015 as a build directory right now; it has been configured in its own
3016 right. To configure in another directory as well, you MUST
3017 use GNU make. If you do not have GNU make, then you must
3018 now do \`make distclean' in ${srcdir},
3019 and then run $0 again." >&2;}
3022 #### Given the configuration name, set machfile and opsysfile to the
3023 #### names of the m/*.h and s/*.h files we should use.
3025 ### Canonicalize the configuration name.
3028 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3029 for ac_t
in install-sh
install.sh shtool
; do
3030 if test -f "$ac_dir/$ac_t"; then
3032 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3037 if test -z "$ac_aux_dir"; then
3038 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3041 # These three variables are undocumented and unsupported,
3042 # and are intended to be withdrawn in a future Autoconf release.
3043 # They can cause serious problems if a builder's source tree is in a directory
3044 # whose full name contains unusual characters.
3045 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3046 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3047 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050 # Make sure we can run config.sub.
3051 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3052 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3055 $as_echo_n "checking build system type... " >&6; }
3056 if test "${ac_cv_build+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 ac_build_alias
=$build_alias
3060 test "x$ac_build_alias" = x
&&
3061 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3062 test "x$ac_build_alias" = x
&&
3063 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3064 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3065 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3069 $as_echo "$ac_cv_build" >&6; }
3070 case $ac_cv_build in
3072 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3075 ac_save_IFS
=$IFS; IFS
='-'
3081 # Remember, the first character of IFS is used to create $*,
3082 # except with old shells:
3085 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3089 $as_echo_n "checking host system type... " >&6; }
3090 if test "${ac_cv_host+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3093 if test "x$host_alias" = x
; then
3094 ac_cv_host
=$ac_cv_build
3096 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3097 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3102 $as_echo "$ac_cv_host" >&6; }
3105 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3108 ac_save_IFS
=$IFS; IFS
='-'
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3118 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3122 configuration
=${host_alias-${build_alias-$host}}
3126 ### If you add support for a new configuration, add code to this
3127 ### switch statement to recognize your configuration name and select
3128 ### the appropriate operating system and machine description files.
3130 ### You would hope that you could choose an m/*.h file pretty much
3131 ### based on the machine portion of the configuration name, and an s/*.h
3132 ### file based on the operating system portion. However, it turns out
3133 ### that each m/*.h file is pretty manufacturer-specific - for
3134 ### example mips.h is MIPS
3135 ### So we basically have to have a special case for each
3136 ### configuration name.
3138 ### As far as handling version numbers on operating systems is
3139 ### concerned, make sure things will fail in a fixable way. If
3140 ### /etc/MACHINES doesn't say anything about version numbers, be
3141 ### prepared to handle anything reasonably. If version numbers
3142 ### matter, be sure /etc/MACHINES says something about it.
3144 machine
='' opsys
='' unported
=no
3145 case "${canonical}" in
3150 case "${canonical}" in
3151 alpha
*) machine
=alpha
;;
3152 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3153 arm
*) machine
=arm
;;
3154 ia64-
*) machine
=ia64
;;
3155 i
[3456]86-*) machine
=intel386
;;
3156 powerpc-
*) machine
=macppc
;;
3157 sparc-
*) machine
=sparc
;;
3158 sparc64-
*) machine
=sparc
;;
3162 ## FreeBSD kernel + glibc based userland
3165 case "${canonical}" in
3166 alpha
*) machine
=alpha
;;
3167 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3168 ia64-
*) machine
=ia64
;;
3169 i
[3456]86-*) machine
=intel386
;;
3170 powerpc-
*) machine
=macppc
;;
3171 sparc-
*) machine
=sparc
;;
3172 sparc64-
*) machine
=sparc
;;
3179 case "${canonical}" in
3180 alpha
*) machine
=alpha
;;
3181 x86_64-
*) machine
=amdx86-64
;;
3182 arm-
*) machine
=arm
;;
3183 hppa-
*) machine
=hp800
;;
3184 i
[3456]86-*) machine
=intel386
;;
3185 m68k-
*) machine
=m68k
;;
3186 powerpc-
*) machine
=macppc
;;
3187 mips-
*) machine
=mips
;;
3188 mipse
[bl
]-*) machine
=mips
;;
3189 sparc
*-) machine
=sparc
;;
3190 vax-
*) machine
=vax
;;
3197 case "${canonical}" in
3198 alpha
*) machine
=alpha
;;
3199 x86_64-
*) machine
=amdx86-64
;;
3200 arm-
*) machine
=arm
;;
3201 hppa-
*) machine
=hp800
;;
3202 i386-
*) machine
=intel386
;;
3203 powerpc-
*) machine
=macppc
;;
3204 sparc
*) machine
=sparc
;;
3205 vax-
*) machine
=vax
;;
3209 alpha
*-*-linux-gnu* )
3210 machine
=alpha opsys
=gnu-linux
3214 machine
=arm opsys
=gnu-linux
3217 ## Apple Darwin / Mac OS X
3219 case "${canonical}" in
3220 i
[3456]86-* ) machine
=intel386
;;
3221 powerpc-
* ) machine
=macppc
;;
3222 x86_64-
* ) machine
=amdx86-64
;;
3226 # Define CPP as follows to make autoconf work correctly.
3227 CPP
="${CC-cc} -E -no-cpp-precomp"
3228 # Use fink packages if available.
3229 if test -d /sw
/include
&& test -d /sw
/lib
; then
3230 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3231 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3232 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3236 ## HP 9000 series 700 and 800, running HP/UX
3237 hppa
*-hp-hpux10.2
* )
3238 machine
=hp800 opsys
=hpux10-20
3240 hppa
*-hp-hpux1[1-9]* )
3241 machine
=hp800 opsys
=hpux11
3242 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3245 hppa
*-*-linux-gnu* )
3246 machine
=hp800 opsys
=gnu-linux
3251 machine
=ibms390 opsys
=gnu-linux
3253 s390x-
*-linux-gnu* )
3254 machine
=ibms390x opsys
=gnu-linux
3256 rs6000-ibm-aix4.
[23]* )
3257 machine
=ibmrs6000 opsys
=aix4-2
3259 powerpc-ibm-aix4.
[23]* )
3260 machine
=ibmrs6000 opsys
=aix4-2
3262 rs6000-ibm-aix
[56]* )
3263 machine
=ibmrs6000 opsys
=aix4-2
3265 powerpc-ibm-aix
[56]* )
3266 machine
=ibmrs6000 opsys
=aix4-2
3269 ## Macintosh PowerPC
3270 powerpc
*-*-linux-gnu* )
3271 machine
=macppc opsys
=gnu-linux
3274 ## Silicon Graphics machines
3277 machine
=iris4d opsys
=irix6-5
3278 # Without defining _LANGUAGE_C, things get masked out in the headers
3279 # so that, for instance, grepping for `free' in stdlib.h fails and
3280 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3281 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3282 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3286 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3287 machine
=sparc opsys
=gnu-linux
3291 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3292 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3293 case "${canonical}" in
3294 i
[3456]86-*-* ) machine
=intel386
;;
3295 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3296 sparc
* ) machine
=sparc
;;
3299 case "${canonical}" in
3300 *-sunos5.6
* |
*-solaris2.6
* )
3302 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3305 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3307 emacs_check_sunpro_c
=yes
3308 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3310 *-sunos5* |
*-solaris* )
3312 emacs_check_sunpro_c
=yes
3313 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3316 ## Watch out for a compiler that we know will not work.
3317 case "${canonical}" in
3318 *-solaris* |
*-sunos5* )
3319 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3320 ## /usr/ucb/cc doesn't work;
3321 ## we should find some other compiler that does work.
3331 machine
=ia64 opsys
=gnu-linux
3334 ## Intel 386 machines where we don't care about the manufacturer.
3337 case "${canonical}" in
3338 *-cygwin ) opsys
=cygwin
;;
3339 *-darwin* ) opsys
=darwin
3340 CPP
="${CC-cc} -E -no-cpp-precomp"
3342 *-linux-gnu* ) opsys
=gnu-linux
;;
3343 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3344 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3345 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3346 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3350 ## m68k Linux-based GNU system
3352 machine
=m68k opsys
=gnu-linux
3355 ## Mips Linux-based GNU system
3356 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3357 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3358 machine
=mips opsys
=gnu-linux
3361 ## AMD x86-64 Linux-based GNU system
3362 x86_64-
*-linux-gnu* )
3363 machine
=amdx86-64 opsys
=gnu-linux
3366 ## Tensilica Xtensa Linux-based GNU system
3367 xtensa
*-*-linux-gnu* )
3368 machine
=xtensa opsys
=gnu-linux
3371 ## SuperH Linux-based GNU system
3372 sh
[34]*-*-linux-gnu* )
3373 machine
=sh3 opsys
=gnu-linux
3381 ### If the code above didn't choose an operating system, just choose
3382 ### an operating system based on the configuration name. You really
3383 ### only want to use this when you have no idea what the right
3384 ### operating system is; if you know what operating systems a machine
3385 ### runs, it's cleaner to make it explicit in the case statement
3387 if test x
"${opsys}" = x
; then
3388 case "${canonical}" in
3389 *-gnu* ) opsys
=gnu
;;
3398 if test $unported = yes; then
3399 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3400 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3403 machfile
="m/${machine}.h"
3404 opsysfile
="s/${opsys}.h"
3407 #### Choose a compiler.
3408 test -n "$CC" && cc_specified
=yes
3410 # Save the value of CFLAGS that the user specified.
3411 SPECIFIED_CFLAGS
="$CFLAGS"
3414 ac_cpp
='$CPP $CPPFLAGS'
3415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC
="$CC" # Let the user override the test.
3429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir
=.
3434 for ac_exec_ext
in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_CC"; then
3459 # Extract the first word of "gcc", so it can be a program name with args.
3460 set dummy gcc
; ac_word
=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_exec_ext
in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_CC
="gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_CC" = x
; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned
=yes ;;
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC
="$CC" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3551 if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553 set dummy cc
; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC
="$CC" # Let the user override the test.
3563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir
=.
3568 for ac_exec_ext
in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571 ac_prog_rejected
=yes
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy
$ac_cv_prog_CC
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3591 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3597 if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3607 if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog
in cl.exe
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$CC" && break
3651 if test -z "$CC"; then
3653 for ac_prog
in cl.exe
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy
$ac_prog; ac_word
=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3662 if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir
=.
3670 for ac_exec_ext
in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672 ac_cv_prog_ac_ct_CC
="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3683 if test -n "$ac_ct_CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685 $as_echo "$ac_ct_CC" >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3692 test -n "$ac_ct_CC" && break
3695 if test "x$ac_ct_CC" = x
; then
3698 case $cross_compiling:$ac_tool_warned in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned
=yes ;;
3711 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error
"no acceptable C compiler found in \$PATH
3714 See \`config.log' for more details." "$LINENO" 5; }
3716 # Provide some information about the compiler.
3717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720 for ac_option
in --version -v -V -qversion; do
3721 { { ac_try
="$ac_compiler $ac_option >&5"
3723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3730 if test -s conftest.err; then
3732 ... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
3736 rm -f conftest.er1 conftest.err
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3752 ac_clean_files_save=$ac_clean_files
3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754 # Try to create an executable without -o first, disregard a.out.
3755 # It will help us diagnose broken compilers, and finding out an intuition
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758 $as_echo_n "checking whether the C compiler works... " >&6; }
3759 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3761 # The possible output files:
3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3765 for ac_file in $ac_files
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3774 if { { ac_try="$ac_link_default"
3776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3777 *) ac_try_echo
=$ac_try;;
3779 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3788 # so that the user can short-circuit this test for compilers unknown to
3790 for ac_file
in $ac_files ''
3792 test -f "$ac_file" ||
continue
3794 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3797 # We found the default executable, but exeext='' is most
3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3803 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 # We set ac_cv_exeext here because the later test for it is not
3806 # safe: cross compilers may not add the suffix if given an `-o'
3807 # argument, so we may need to know it at that point already.
3808 # Even if this section looks crufty: it has the advantage of
3815 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3820 if test -z "$ac_file"; then :
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 $as_echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.
$ac_ext >&5
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 { as_fn_set_status
77
3829 as_fn_error
"C compiler cannot create executables
3830 See \`config.log' for more details." "$LINENO" 5; }; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3838 $as_echo "$ac_file" >&6; }
3839 ac_exeext
=$ac_cv_exeext
3841 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3842 ac_clean_files
=$ac_clean_files_save
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3844 $as_echo_n "checking for suffix of executables... " >&6; }
3845 if { { ac_try
="$ac_link"
3847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_link") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3857 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 for ac_file
in conftest.exe conftest conftest.
*; do
3861 test -f "$ac_file" ||
continue
3863 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3864 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details." "$LINENO" 5; }
3875 rm -f conftest conftest
$ac_cv_exeext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 $as_echo "$ac_cv_exeext" >&6; }
3879 rm -f conftest.
$ac_ext
3880 EXEEXT
=$ac_cv_exeext
3882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3895 ac_clean_files
="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 $as_echo_n "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try
="$ac_link"
3903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3915 *) ac_try_echo
=$ac_try;;
3917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3925 if test "$cross_compiling" = maybe
; then
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error
"cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details." "$LINENO" 5; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 $as_echo "$cross_compiling" >&6; }
3939 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3940 ac_clean_files
=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if test "${ac_cv_objext+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try
="$ac_compile"
3960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compile") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 for ac_file in conftest.o conftest.obj conftest.*; do
3970 test -f "$ac_file" || continue;
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot compute suffix of object files
: cannot compile
3984 See \
`config.log' for more details." "$LINENO" 5; }
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if test "${ac_cv_prog_cc_g+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4034 ac_save_c_werror_flag=$ac_c_werror_flag
4035 ac_c_werror_flag=yes
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093 CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095 if test "$GCC" = yes; then
4101 if test "$GCC" = yes; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 ac_cv_prog_cc_c89=no
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/stat.h>
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4134 s = g (p, va_arg (v,int));
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4140 function prototypes and stuff, but not '\xHH' hex character constants.
4141 These don't provoke an error unfortunately, instead are silently treated
4142 as 'x'. The following induces an error, until -std is added to get
4143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4144 array size at least. It's necessary to write '\x00'==0 to get something
4145 that's true only with -std. */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149 inside strings and character constants. */
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_c89=$ac_arg
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c89" != "xno" && break
4177 rm -f conftest.$ac_ext
4182 case "x$ac_cv_prog_cc_c89" in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 # On Suns, sometimes $CPP names a directory.
4206 if test -n "$CPP" && test -d "$CPP"; then
4210 ## If not using gcc, and on Solaris, and no CPP specified, see if
4211 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4212 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4213 test x"$CPP" = x; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4215 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4217 if test "${emacs_cv_sunpro_c+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4234 if ac_fn_c_try_link "$LINENO"; then :
4235 emacs_cv_sunpro_c=yes
4237 emacs_cv_sunpro_c=no
4239 rm -f core conftest.err conftest.$ac_objext \
4240 conftest$ac_exeext conftest.$ac_ext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4244 $as_echo "$emacs_cv_sunpro_c" >&6; }
4246 if test x"$emacs_cv_sunpro_c" = xyes; then
4247 NON_GNU_CPP="$CC -E -Xs"
4251 #### Some systems specify a CPP to use unless we are using GCC.
4252 #### Now that we know whether we are using GCC, we can decide whether
4253 #### to use that one.
4254 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4259 #### Some systems specify a CC to use unless we are using GCC.
4260 #### Now that we know whether we are using GCC, we can decide whether
4261 #### to use that one.
4262 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4263 test x$cc_specified != xyes
4268 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4270 CC="$CC $GCC_TEST_OPTIONS"
4273 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4275 CC="$CC $NON_GCC_TEST_OPTIONS"
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4284 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4285 # On Suns, sometimes $CPP names a directory.
4286 if test -n "$CPP" && test -d "$CPP"; then
4289 if test -z "$CPP"; then
4290 if test "${ac_cv_prog_CPP+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4293 # Double quotes because CPP needs to be expanded
4294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297 for ac_c_preproc_warn_flag in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4308 # include <limits.h>
4310 # include <assert.h>
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4317 # Broken: fails on valid input.
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <ac_nonexistent.h>
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4329 # Broken: success on invalid input.
4332 # Passes both tests.
4336 rm -f conftest.err conftest.$ac_ext
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.err conftest.
$ac_ext
4341 if $ac_preproc_ok; then :
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4354 $as_echo "$CPP" >&6; }
4356 for ac_c_preproc_warn_flag
in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4367 # include <limits.h>
4369 # include <assert.h>
4373 if ac_fn_c_try_cpp
"$LINENO"; then :
4376 # Broken: fails on valid input.
4379 rm -f conftest.err conftest.
$ac_ext
4381 # OK, works on sane cases. Now check whether nonexistent headers
4382 # can be detected and how.
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4387 if ac_fn_c_try_cpp
"$LINENO"; then :
4388 # Broken: success on invalid input.
4391 # Passes both tests.
4395 rm -f conftest.err conftest.
$ac_ext
4398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4399 rm -f conftest.err conftest.
$ac_ext
4400 if $ac_preproc_ok; then :
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4406 See \`config.log' for more details." "$LINENO" 5; }
4410 ac_cpp
='$CPP $CPPFLAGS'
4411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4417 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4418 if test "${ac_cv_path_GREP+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -z "$GREP"; then
4422 ac_path_GREP_found
=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4425 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_prog
in grep ggrep
; do
4430 for ac_exec_ext
in '' $ac_executable_extensions; do
4431 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4433 # Check for GNU ac_path_GREP and select it if it is found.
4434 # Check for GNU $ac_path_GREP
4435 case `"$ac_path_GREP" --version 2>&1` in
4437 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4440 $as_echo_n 0123456789 >"conftest.in"
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'GREP' >> "conftest.nl"
4447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4448 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4449 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4450 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_GREP
="$ac_path_GREP"
4453 ac_path_GREP_max
=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4461 $ac_path_GREP_found && break 3
4466 if test -z "$ac_cv_path_GREP"; then
4467 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 ac_cv_path_GREP
=$GREP
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4475 $as_echo "$ac_cv_path_GREP" >&6; }
4476 GREP
="$ac_cv_path_GREP"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4480 $as_echo_n "checking for egrep... " >&6; }
4481 if test "${ac_cv_path_EGREP+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4484 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4485 then ac_cv_path_EGREP
="$GREP -E"
4487 if test -z "$EGREP"; then
4488 ac_path_EGREP_found
=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4491 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4494 test -z "$as_dir" && as_dir
=.
4495 for ac_prog
in egrep; do
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4498 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4499 # Check for GNU ac_path_EGREP and select it if it is found.
4500 # Check for GNU $ac_path_EGREP
4501 case `"$ac_path_EGREP" --version 2>&1` in
4503 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4506 $as_echo_n 0123456789 >"conftest.in"
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo 'EGREP' >> "conftest.nl"
4513 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4514 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4515 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4516 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_EGREP
="$ac_path_EGREP"
4519 ac_path_EGREP_max
=$ac_count
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4524 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4527 $ac_path_EGREP_found && break 3
4532 if test -z "$ac_cv_path_EGREP"; then
4533 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 ac_cv_path_EGREP
=$EGREP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4542 $as_echo "$ac_cv_path_EGREP" >&6; }
4543 EGREP
="$ac_cv_path_EGREP"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4547 $as_echo_n "checking for ANSI C header files... " >&6; }
4548 if test "${ac_cv_header_stdc+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4566 if ac_fn_c_try_compile
"$LINENO"; then :
4567 ac_cv_header_stdc
=yes
4569 ac_cv_header_stdc
=no
4571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4573 if test $ac_cv_header_stdc = yes; then
4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581 $EGREP "memchr" >/dev
/null
2>&1; then :
4584 ac_cv_header_stdc
=no
4590 if test $ac_cv_header_stdc = yes; then
4591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev
/null
2>&1; then :
4601 ac_cv_header_stdc
=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then :
4612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 #if ((' ' & 0x0FF) == 0x020)
4617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4620 # define ISLOWER(c) \
4621 (('a' <= (c) && (c) <= 'i') \
4622 || ('j' <= (c) && (c) <= 'r') \
4623 || ('s' <= (c) && (c) <= 'z'))
4624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632 for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i))
4634 || toupper (i) != TOUPPER (i))
4639 if ac_fn_c_try_run
"$LINENO"; then :
4642 ac_cv_header_stdc
=no
4644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4651 $as_echo "$ac_cv_header_stdc" >&6; }
4652 if test $ac_cv_header_stdc = yes; then
4654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4659 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4660 inttypes.h stdint.h unistd.h
4662 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4663 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4665 eval as_val
=\$
$as_ac_Header
4666 if test "x$as_val" = x
""yes; then :
4667 cat >>confdefs.h
<<_ACEOF
4668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4678 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4685 if test "$MINIX" = yes; then
4687 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4690 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4693 $as_echo "#define _MINIX 1" >>confdefs.h
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4699 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4700 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4706 # define __EXTENSIONS__ 1
4707 $ac_includes_default
4716 if ac_fn_c_try_compile
"$LINENO"; then :
4717 ac_cv_safe_to_define___extensions__
=yes
4719 ac_cv_safe_to_define___extensions__
=no
4721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4724 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4725 test $ac_cv_safe_to_define___extensions__ = yes &&
4726 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4728 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4730 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4732 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4734 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4738 ### Use -Wno-pointer-sign if the compiler supports it
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4740 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4741 SAVE_CFLAGS
="$CFLAGS"
4742 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile
"$LINENO"; then :
4759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4760 if test $has_option = yes; then
4761 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4764 $as_echo "$has_option" >&6; }
4765 CFLAGS
="$SAVE_CFLAGS"
4769 ### Use -Wdeclaration-after-statement if the compiler supports it
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4771 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4772 SAVE_CFLAGS
="$CFLAGS"
4773 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4785 if ac_fn_c_try_compile
"$LINENO"; then :
4790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4791 if test $has_option = yes; then
4792 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4795 $as_echo "$has_option" >&6; }
4796 CFLAGS
="$SAVE_CFLAGS"
4800 #### Some other nice autoconf tests.
4803 ac_cpp
='$CPP $CPPFLAGS'
4804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 # Double quotes because CPP needs to be expanded
4818 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4821 for ac_c_preproc_warn_flag
in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4832 # include <limits.h>
4834 # include <assert.h>
4838 if ac_fn_c_try_cpp
"$LINENO"; then :
4841 # Broken: fails on valid input.
4844 rm -f conftest.err conftest.
$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <ac_nonexistent.h>
4852 if ac_fn_c_try_cpp
"$LINENO"; then :
4853 # Broken: success on invalid input.
4856 # Passes both tests.
4860 rm -f conftest.err conftest.
$ac_ext
4863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4864 rm -f conftest.err conftest.
$ac_ext
4865 if $ac_preproc_ok; then :
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4878 $as_echo "$CPP" >&6; }
4880 for ac_c_preproc_warn_flag
in '' yes
4882 # Use a header file that comes with gcc, so configuring glibc
4883 # with a fresh cross-compiler works.
4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 # <limits.h> exists even on freestanding compilers.
4886 # On the NeXT, cc -E runs the code through the compiler's parser,
4887 # not just through cpp. "Syntax error" is here to catch this case.
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4891 # include <limits.h>
4893 # include <assert.h>
4897 if ac_fn_c_try_cpp
"$LINENO"; then :
4900 # Broken: fails on valid input.
4903 rm -f conftest.err conftest.
$ac_ext
4905 # OK, works on sane cases. Now check whether nonexistent headers
4906 # can be detected and how.
4907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if ac_fn_c_try_cpp
"$LINENO"; then :
4912 # Broken: success on invalid input.
4915 # Passes both tests.
4919 rm -f conftest.err conftest.
$ac_ext
4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4923 rm -f conftest.err conftest.
$ac_ext
4924 if $ac_preproc_ok; then :
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4930 See \`config.log' for more details." "$LINENO" 5; }
4934 ac_cpp
='$CPP $CPPFLAGS'
4935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4939 # Find a good install program. We prefer a C program (faster),
4940 # so one script is as good as another. But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 # Reject install programs that cannot install multiple files.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4954 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4955 if test -z "$INSTALL"; then
4956 if test "${ac_cv_path_install+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir
=.
4964 # Account for people who put trailing slashes in PATH elements.
4965 case $as_dir/ in #((
4966 .
/ | .
// |
/[cC
]/* | \
4967 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4968 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4971 # OSF1 and SCO ODT 3.0 have their own names for install.
4972 # Don't use installbsd from OSF since it installs stuff as root
4974 for ac_prog
in ginstall scoinst
install; do
4975 for ac_exec_ext
in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4977 if test $ac_prog = install &&
4978 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4979 # AIX install. It has an incompatible calling convention.
4981 elif test $ac_prog = install &&
4982 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4983 # program-specific install script used by HP pwplus--don't use.
4986 rm -rf conftest.one conftest.two conftest.dir
4987 echo one
> conftest.one
4988 echo two
> conftest.two
4990 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4991 test -s conftest.one
&& test -s conftest.two
&&
4992 test -s conftest.dir
/conftest.one
&&
4993 test -s conftest.dir
/conftest.two
4995 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5008 rm -rf conftest.one conftest.two conftest.dir
5011 if test "${ac_cv_path_install+set}" = set; then
5012 INSTALL
=$ac_cv_path_install
5014 # As a last resort, use the slow shell script. Don't cache a
5015 # value for INSTALL within a source directory, because that will
5016 # break other packages using the cache if that directory is
5017 # removed, or if the value is a relative name.
5018 INSTALL
=$ac_install_sh
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5022 $as_echo "$INSTALL" >&6; }
5024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5025 # It thinks the first close brace ends the variable substitution.
5026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5030 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5032 if test "x$RANLIB" = x
; then
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5035 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5041 if test -n "$RANLIB"; then
5042 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir
=.
5049 for ac_exec_ext
in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 RANLIB
=$ac_cv_prog_RANLIB
5062 if test -n "$RANLIB"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5064 $as_echo "$RANLIB" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5072 if test -z "$ac_cv_prog_RANLIB"; then
5073 ac_ct_RANLIB
=$RANLIB
5074 # Extract the first word of "ranlib", so it can be a program name with args.
5075 set dummy ranlib
; ac_word
=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$ac_ct_RANLIB"; then
5082 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir
=.
5089 for ac_exec_ext
in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5102 if test -n "$ac_ct_RANLIB"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5104 $as_echo "$ac_ct_RANLIB" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5110 if test "x$ac_ct_RANLIB" = x
; then
5113 case $cross_compiling:$ac_tool_warned in
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned
=yes ;;
5119 RANLIB
=$ac_ct_RANLIB
5122 RANLIB
="$ac_cv_prog_RANLIB"
5127 ## Although we're running on an amd64 kernel, we're actually compiling for
5128 ## the x86 architecture. The user should probably have provided an
5129 ## explicit --build to `configure', but if everything else than the kernel
5130 ## is running in i386 mode, we can help them out.
5131 if test "$machine" = "amdx86-64"; then
5132 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5133 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5137 if test "$ac_cv_have_decl_i386" = "yes"; then
5138 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5140 machfile
="m/${machine}.h"
5144 # Extract the first word of "install-info", so it can be a program name with args.
5145 set dummy install-info
; 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_path_INSTALL_INFO+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 case $INSTALL_INFO in
5153 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir
=.
5161 for ac_exec_ext
in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5175 if test -n "$INSTALL_INFO"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5177 $as_echo "$INSTALL_INFO" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 # Extract the first word of "install-info", so it can be a program name with args.
5185 set dummy install-info
; 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_path_INSTALL_INFO+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5191 case $INSTALL_INFO in
5193 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 for as_dir
in /usr
/sbin
5200 test -z "$as_dir" && as_dir
=.
5201 for ac_exec_ext
in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5215 if test -n "$INSTALL_INFO"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5217 $as_echo "$INSTALL_INFO" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 # Extract the first word of "install-info", so it can be a program name with args.
5225 set dummy install-info
; ac_word
=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5231 case $INSTALL_INFO in
5233 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir
=.
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5255 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5256 if test -n "$INSTALL_INFO"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5258 $as_echo "$INSTALL_INFO" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 # Extract the first word of "gzip", so it can be a program name with args.
5266 set dummy
gzip; ac_word
=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5274 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5296 if test -n "$GZIP_PROG"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5298 $as_echo "$GZIP_PROG" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5307 ## Need makeinfo >= 4.6 (?) to build the manuals.
5308 # Extract the first word of "makeinfo", so it can be a program name with args.
5309 set dummy makeinfo
; ac_word
=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5317 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir
=.
5325 for ac_exec_ext
in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5339 MAKEINFO
=$ac_cv_path_MAKEINFO
5340 if test -n "$MAKEINFO"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5342 $as_echo "$MAKEINFO" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 if test "$MAKEINFO" != "no" && \
5350 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
5354 ## Makeinfo is unusual. For a released Emacs, the manuals are
5355 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5356 ## therefore in the category of "special tools" not normally required, which
5357 ## configure does not have to check for (eg autoconf itself).
5358 ## In a Bazaar checkout on the other hand, the manuals are not included.
5359 ## So makeinfo is a requirement to build from Bazaar, and configure
5360 ## should test for it as it does for any other build requirement.
5361 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5362 ## with pre-built manuals, from a Bazaar checkout.
5363 if test "$MAKEINFO" = "no"; then
5364 if test "x${with_makeinfo}" = "xno"; then
5366 elif test ! -e $srcdir/info
/emacs
; then
5367 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5368 source tree does not seem to have pre-built manuals in the \`info' directory.
5369 Either install a suitable version of makeinfo, or re-run configure
5370 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5375 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5377 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5380 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5382 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5386 late_LDFLAGS
=$LDFLAGS
5387 if test "$GCC" = yes; then
5388 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5390 LDFLAGS
="$LDFLAGS -znocombreloc"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5394 $as_echo_n "checking for -znocombreloc... " >&6; }
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5399 if ac_fn_c_try_link
"$LINENO"; then :
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401 $as_echo "yes" >&6; }
5403 LDFLAGS
=$late_LDFLAGS
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5407 rm -f core conftest.err conftest.
$ac_objext \
5408 conftest
$ac_exeext conftest.
$ac_ext
5410 #### Extract some information from the operating system and machine files.
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5413 - which libraries the lib-src programs will want, and
5414 - whether the GNU malloc routines are usable..." >&5
5415 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5416 - which libraries the lib-src programs will want, and
5417 - whether the GNU malloc routines are usable..." >&6;}
5419 ### First figure out CFLAGS (which we use for running the compiler here)
5420 ### and REAL_CFLAGS (which we use for real compilation).
5421 ### The two are the same except on a few systems, where they are made
5422 ### different to work around various lossages. For example,
5423 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5424 ### as implying static linking.
5426 ### If the CFLAGS env var is specified, we use that value
5427 ### instead of the default.
5429 ### It's not important that this name contain the PID; you can't run
5430 ### two configures in the same directory and have anything work
5432 tempcname
="conftest.c"
5435 #include "'${srcdir}'/src/'${opsysfile}'"
5436 #include "'${srcdir}'/src/'${machfile}'"
5438 configure___ LIBX=-lX11
5441 configure___ cannot_dump=yes
5443 configure___ cannot_dump=no
5446 #ifdef SYSTEM_MALLOC
5447 configure___ system_malloc=yes
5449 configure___ system_malloc=no
5452 #ifdef USE_MMAP_FOR_BUFFERS
5453 configure___ use_mmap_for_buffers=yes
5455 configure___ use_mmap_for_buffers=no
5458 #ifndef C_OPTIMIZE_SWITCH
5460 #define C_OPTIMIZE_SWITCH -O2
5462 #define C_OPTIMIZE_SWITCH -O
5466 #ifndef C_WARNINGS_SWITCH
5467 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5470 #ifdef THIS_IS_CONFIGURE
5472 /* Get the CFLAGS for tests in configure. */
5474 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5476 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5479 #else /* not THIS_IS_CONFIGURE */
5481 /* Get the CFLAGS for real compilation. */
5483 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5485 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5488 #endif /* not THIS_IS_CONFIGURE */
5491 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5493 # The value of CPP is a quoted variable reference, so we need to do this
5494 # to get its actual value...
5495 CPP
=`eval "echo $CPP"`
5496 eval `${CPP} -Isrc ${tempcname} \
5497 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5498 if test "x$SPECIFIED_CFLAGS" = x
; then
5499 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5500 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5502 REAL_CFLAGS
="$CFLAGS"
5509 UNEXEC_OBJ
=unexelf.o
5512 UNEXEC_OBJ
=unexaix.o
5518 UNEXEC_OBJ
=unexmacosx.o
5521 UNEXEC_OBJ
=unexhp9k800.o
5524 # Use the Solaris dldump() function, called from unexsol.c, to dump
5525 # emacs, instead of the generic ELF dump code found in unexelf.c.
5526 # The resulting binary has a complete symbol table, and is better
5527 # for debugging and other observability tools (debuggers, pstack, etc).
5529 # If you encounter a problem using dldump(), please consider sending
5530 # a message to the OpenSolaris tools-linking mailing list:
5531 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5533 # It is likely that dldump() works with older Solaris too, but this has
5534 # not been tested, so for now this change is for Solaris 10 or newer.
5535 UNEXEC_OBJ
=unexsol.o
5542 ## Let `ld' find image libs and similar things in /usr/local/lib.
5543 ## The system compiler, GCC, has apparently been modified to not
5544 ## look there, contrary to what a stock GCC would do.
5545 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5549 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5550 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5554 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5558 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5559 ## otherwise Emacs dumps core on elf systems.
5560 LD_SWITCH_SYSTEM
="-Z"
5565 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5567 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5568 ## which has not been defined yet. When this was handled with cpp,
5569 ## it was expanded to null when configure sourced the s/*.h file.
5570 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5571 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5572 ## (or somesuch), but because it is supposed to go at the _front_
5573 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5574 ## Compare with the gnu-linux case below, which added to the end
5575 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5576 ## LD_SWITCH_SYSTEM_TEMACS.
5579 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5580 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5585 if test "$machine" = "alpha"; then
5586 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5587 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5591 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5592 ## With ELF, make sure that all common symbols get allocated to in the
5593 ## data section. Otherwise, the dump of temacs may miss variables in
5594 ## the shared library that have been initialized. For example, with
5595 ## GNU libc, __malloc_initialized would normally be resolved to the
5596 ## shared library's .bss section, which is fatal.
5597 if test "x$GCC" = "xyes"; then
5598 C_SWITCH_MACHINE
="-fno-common"
5600 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5603 UNEXEC_OBJ
=unexalpha.o
5611 ## Some programs in src produce warnings saying certain subprograms
5612 ## are too complex and need a MAXMEM value greater than 2000 for
5613 ## additional optimization. --nils@exp-math.uni-essen.de
5614 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5615 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5616 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5617 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5623 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5624 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5626 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5628 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5630 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5632 ## Motif needs -lgen.
5633 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5638 ### Make sure subsequent tests use flags consistent with the build flags.
5640 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5641 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5643 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5648 # Check whether --enable-largefile was given.
5649 if test "${enable_largefile+set}" = set; then :
5650 enableval
=$enable_largefile;
5653 if test "$enable_largefile" != no
; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5657 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5660 ac_cv_sys_largefile_CC
=no
5661 if test "$GCC" != yes; then
5664 # IRIX 6.2 and later do not support large files by default,
5665 # so use the C compiler's -n32 option if that helps.
5666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5688 rm -f core conftest.err conftest.
$ac_objext
5690 if ac_fn_c_try_compile
"$LINENO"; then :
5691 ac_cv_sys_largefile_CC
=' -n32'; break
5693 rm -f core conftest.err conftest.
$ac_objext
5697 rm -f conftest.
$ac_ext
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5701 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5702 if test "$ac_cv_sys_largefile_CC" != no
; then
5703 CC
=$CC$ac_cv_sys_largefile_CC
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5707 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5731 if ac_fn_c_try_compile
"$LINENO"; then :
5732 ac_cv_sys_file_offset_bits
=no
; break
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #define _FILE_OFFSET_BITS 64
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5755 if ac_fn_c_try_compile
"$LINENO"; then :
5756 ac_cv_sys_file_offset_bits
=64; break
5758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5759 ac_cv_sys_file_offset_bits
=unknown
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5765 case $ac_cv_sys_file_offset_bits in #(
5768 cat >>confdefs.h
<<_ACEOF
5769 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5774 if test $ac_cv_sys_file_offset_bits = unknown
; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5777 if test "${ac_cv_sys_large_files+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 if ac_fn_c_try_compile
"$LINENO"; then :
5801 ac_cv_sys_large_files
=no
; break
5803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #define _LARGE_FILES 1
5807 #include <sys/types.h>
5808 /* Check that off_t can represent 2**63 - 1 correctly.
5809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5810 since some C++ compilers masquerading as C compilers
5811 incorrectly reject 9223372036854775807. */
5812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5814 && LARGE_OFF_T % 2147483647 == 1)
5824 if ac_fn_c_try_compile
"$LINENO"; then :
5825 ac_cv_sys_large_files
=1; break
5827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 ac_cv_sys_large_files
=unknown
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5833 $as_echo "$ac_cv_sys_large_files" >&6; }
5834 case $ac_cv_sys_large_files in #(
5837 cat >>confdefs.h
<<_ACEOF
5838 #define _LARGE_FILES $ac_cv_sys_large_files
5848 ## If user specified a crt-dir, use that unconditionally.
5849 if test "X$CRT_DIR" = "X"; then
5851 case "$canonical" in
5852 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5853 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5854 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5855 ## For anything else (eg /usr/lib32), it is up the user to specify
5856 ## the location (bug#5655).
5857 ## Test for crtn.o, not just the directory, because sometimes the
5858 ## directory exists but does not have the relevant files (bug#1287).
5859 ## FIXME better to test for binary compatibility somehow.
5860 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5863 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5867 hpux10-20
) CRT_DIR
=/lib
;;
5870 ## Default is /usr/lib.
5871 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5875 ## Some platforms don't use any of these files, so it is not
5876 ## appropriate to put this test outside the if block.
5877 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5878 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5891 START_FILES
='ecrt0.o'
5894 ## Adding -lm confuses the dynamic linker, so omit it.
5896 START_FILES
='pre-crt0.o'
5899 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5900 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5902 gnu-linux | gnu-kfreebsd
)
5903 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5904 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5906 hpux10-20 | hpux11
)
5908 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5911 if test -f $CRT_DIR/crti.o
; then
5912 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5913 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5915 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5916 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5927 if test "${with_sound}" != "no"; then
5928 # Sound support for GNU/Linux and the free BSDs.
5929 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5931 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5933 eval as_val
=\$
$as_ac_Header
5934 if test "x$as_val" = x
""yes; then :
5935 cat >>confdefs.h
<<_ACEOF
5936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943 # Emulation library used on NetBSD.
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5945 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5949 ac_check_lib_save_LIBS
=$LIBS
5950 LIBS
="-lossaudio $LIBS"
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5954 /* Override any GCC internal prototype to avoid an error.
5955 Use char because int might match the return type of a GCC
5956 builtin and then its argument prototype would still apply. */
5964 return _oss_ioctl ();
5969 if ac_fn_c_try_link
"$LINENO"; then :
5970 ac_cv_lib_ossaudio__oss_ioctl
=yes
5972 ac_cv_lib_ossaudio__oss_ioctl
=no
5974 rm -f core conftest.err conftest.
$ac_objext \
5975 conftest
$ac_exeext conftest.
$ac_ext
5976 LIBS
=$ac_check_lib_save_LIBS
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5979 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5980 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5989 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5993 # Extract the first word of "pkg-config", so it can be a program name with args.
5994 set dummy pkg-config
; ac_word
=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6002 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir
=.
6010 for ac_exec_ext
in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6024 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6025 if test -n "$PKG_CONFIG"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6027 $as_echo "$PKG_CONFIG" >&6; }
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6035 if test "$PKG_CONFIG" = "no" ; then
6038 PKG_CONFIG_MIN_VERSION
=0.9.0
6039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6041 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6043 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045 $as_echo "yes" >&6; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6049 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6050 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6052 $as_echo "$ALSA_CFLAGS" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6055 $as_echo_n "checking ALSA_LIBS... " >&6; }
6056 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6058 $as_echo "$ALSA_LIBS" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6064 ## If we have a custom action on failure, don't print errors, but
6065 ## do set a variable so people can do so.
6066 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6078 if test $succeeded = yes; then
6084 if test $HAVE_ALSA = yes; then
6085 SAVE_CFLAGS
="$CFLAGS"
6086 SAVE_LDFLAGS
="$LDFLAGS"
6087 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6088 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <asoundlib.h>
6095 snd_lib_error_set_handler (0);
6100 if ac_fn_c_try_compile
"$LINENO"; then :
6101 emacs_alsa_normal
=yes
6103 emacs_alsa_normal
=no
6105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6106 if test "$emacs_alsa_normal" != yes; then
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <alsa/asoundlib.h>
6113 snd_lib_error_set_handler (0);
6118 if ac_fn_c_try_compile
"$LINENO"; then :
6119 emacs_alsa_subdir
=yes
6121 emacs_alsa_subdir
=no
6123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 if test "$emacs_alsa_subdir" != yes; then
6125 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6127 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6130 CFLAGS
="$SAVE_CFLAGS"
6131 LDFLAGS
="$SAVE_LDFLAGS"
6132 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6133 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6135 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6141 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6142 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6143 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6144 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6145 sys
/utsname.h
pwd.h utmp.h
6147 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6149 eval as_val
=\$
$as_ac_Header
6150 if test "x$as_val" = x
""yes; then :
6151 cat >>confdefs.h
<<_ACEOF
6152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6161 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <sys/personality.h>
6168 personality (PER_LINUX32)
6173 if ac_fn_c_try_compile
"$LINENO"; then :
6174 emacs_cv_personality_linux32
=yes
6176 emacs_cv_personality_linux32
=no
6178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6180 $as_echo "$emacs_cv_personality_linux32" >&6; }
6182 if test $emacs_cv_personality_linux32 = yes; then
6184 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6188 for ac_header
in term.h
6190 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6191 if test "x$ac_cv_header_term_h" = x
""yes; then :
6192 cat >>confdefs.h
<<_ACEOF
6193 #define HAVE_TERM_H 1
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6201 $as_echo_n "checking for ANSI C header files... " >&6; }
6202 if test "${ac_cv_header_stdc+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6221 ac_cv_header_stdc
=yes
6223 ac_cv_header_stdc
=no
6225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 if test $ac_cv_header_stdc = yes; then
6228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235 $EGREP "memchr" >/dev
/null
2>&1; then :
6238 ac_cv_header_stdc
=no
6244 if test $ac_cv_header_stdc = yes; then
6245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 $EGREP "free" >/dev
/null
2>&1; then :
6255 ac_cv_header_stdc
=no
6261 if test $ac_cv_header_stdc = yes; then
6262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6263 if test "$cross_compiling" = yes; then :
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6270 #if ((' ' & 0x0FF) == 0x020)
6271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6274 # define ISLOWER(c) \
6275 (('a' <= (c) && (c) <= 'i') \
6276 || ('j' <= (c) && (c) <= 'r') \
6277 || ('s' <= (c) && (c) <= 'z'))
6278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6286 for (i = 0; i < 256; i++)
6287 if (XOR (islower (i), ISLOWER (i))
6288 || toupper (i) != TOUPPER (i))
6293 if ac_fn_c_try_run
"$LINENO"; then :
6296 ac_cv_header_stdc
=no
6298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6305 $as_echo "$ac_cv_header_stdc" >&6; }
6306 if test $ac_cv_header_stdc = yes; then
6308 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6313 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6314 if test "${ac_cv_header_time+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6320 #include <sys/time.h>
6326 if ((struct tm *) 0)
6332 if ac_fn_c_try_compile
"$LINENO"; then :
6333 ac_cv_header_time
=yes
6335 ac_cv_header_time
=no
6337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6340 $as_echo "$ac_cv_header_time" >&6; }
6341 if test $ac_cv_header_time = yes; then
6343 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6347 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6348 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6354 cat >>confdefs.h
<<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6358 if test $ac_cv_have_decl_sys_siglist != yes; then
6359 # For Tru64, at least:
6360 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6361 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6367 cat >>confdefs.h
<<_ACEOF
6368 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6371 if test $ac_cv_have_decl___sys_siglist = yes; then
6373 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6378 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6379 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 #include <sys/types.h>
6385 #include <sys/wait.h>
6387 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6390 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6403 if ac_fn_c_try_compile
"$LINENO"; then :
6404 ac_cv_header_sys_wait_h
=yes
6406 ac_cv_header_sys_wait_h
=no
6408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6411 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6412 if test $ac_cv_header_sys_wait_h = yes; then
6414 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6420 $as_echo_n "checking for struct utimbuf... " >&6; }
6421 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #ifdef TIME_WITH_SYS_TIME
6427 #include <sys/time.h>
6430 #ifdef HAVE_SYS_TIME_H
6431 #include <sys/time.h>
6442 static struct utimbuf x; x.actime = x.modtime;
6447 if ac_fn_c_try_compile
"$LINENO"; then :
6448 emacs_cv_struct_utimbuf
=yes
6450 emacs_cv_struct_utimbuf
=no
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6455 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6456 if test $emacs_cv_struct_utimbuf = yes; then
6458 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6463 $as_echo_n "checking return type of signal handlers... " >&6; }
6464 if test "${ac_cv_type_signal+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6475 return *(signal (0, 0)) (0) == 1;
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6481 ac_cv_type_signal
=int
6483 ac_cv_type_signal
=void
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6488 $as_echo "$ac_cv_type_signal" >&6; }
6490 cat >>confdefs.h
<<_ACEOF
6491 #define RETSIGTYPE $ac_cv_type_signal
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6497 $as_echo_n "checking for speed_t... " >&6; }
6498 if test "${emacs_cv_speed_t+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <termios.h>
6512 if ac_fn_c_try_compile
"$LINENO"; then :
6513 emacs_cv_speed_t
=yes
6517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6520 $as_echo "$emacs_cv_speed_t" >&6; }
6521 if test $emacs_cv_speed_t = yes; then
6523 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6528 $as_echo_n "checking for struct timeval... " >&6; }
6529 if test "${emacs_cv_struct_timeval+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
6532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #ifdef TIME_WITH_SYS_TIME
6535 #include <sys/time.h>
6538 #ifdef HAVE_SYS_TIME_H
6539 #include <sys/time.h>
6547 static struct timeval x; x.tv_sec = x.tv_usec;
6552 if ac_fn_c_try_compile
"$LINENO"; then :
6553 emacs_cv_struct_timeval
=yes
6555 emacs_cv_struct_timeval
=no
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6560 $as_echo "$emacs_cv_struct_timeval" >&6; }
6561 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6562 if test $emacs_cv_struct_timeval = yes; then
6564 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6569 $as_echo_n "checking for struct exception... " >&6; }
6570 if test "${emacs_cv_struct_exception+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6584 if ac_fn_c_try_compile
"$LINENO"; then :
6585 emacs_cv_struct_exception
=yes
6587 emacs_cv_struct_exception
=no
6589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6592 $as_echo "$emacs_cv_struct_exception" >&6; }
6593 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6594 if test $emacs_cv_struct_exception != yes; then
6596 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6600 for ac_header
in sys
/socket.h
6602 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6603 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6604 cat >>confdefs.h
<<_ACEOF
6605 #define HAVE_SYS_SOCKET_H 1
6612 for ac_header
in net
/if.h
6614 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6615 #if HAVE_SYS_SOCKET_H
6616 #include <sys/socket.h>
6619 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6620 cat >>confdefs.h
<<_ACEOF
6621 #define HAVE_NET_IF_H 1
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6630 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6631 if test "${ac_cv_struct_tm+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 #include <sys/types.h>
6643 int *p = &tm.tm_sec;
6649 if ac_fn_c_try_compile
"$LINENO"; then :
6650 ac_cv_struct_tm
=time.h
6652 ac_cv_struct_tm
=sys
/time.h
6654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6657 $as_echo "$ac_cv_struct_tm" >&6; }
6658 if test $ac_cv_struct_tm = sys
/time.h
; then
6660 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6664 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6665 #include <$ac_cv_struct_tm>
6668 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6670 cat >>confdefs.h
<<_ACEOF
6671 #define HAVE_STRUCT_TM_TM_ZONE 1
6677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6679 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6682 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6684 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6690 cat >>confdefs.h
<<_ACEOF
6691 #define HAVE_DECL_TZNAME $ac_have_decl
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6695 $as_echo_n "checking for tzname... " >&6; }
6696 if test "${ac_cv_var_tzname+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6702 #if !HAVE_DECL_TZNAME
6703 extern char *tzname[];
6709 return tzname[0][0];
6714 if ac_fn_c_try_link
"$LINENO"; then :
6715 ac_cv_var_tzname
=yes
6719 rm -f core conftest.err conftest.
$ac_objext \
6720 conftest
$ac_exeext conftest.
$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6723 $as_echo "$ac_cv_var_tzname" >&6; }
6724 if test $ac_cv_var_tzname = yes; then
6726 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6731 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6733 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6735 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6739 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6740 #if HAVE_SYS_SOCKET_H
6741 #include <sys/socket.h>
6747 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6749 cat >>confdefs.h
<<_ACEOF
6750 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6755 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6756 #if HAVE_SYS_SOCKET_H
6757 #include <sys/socket.h>
6763 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6765 cat >>confdefs.h
<<_ACEOF
6766 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6771 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6772 #if HAVE_SYS_SOCKET_H
6773 #include <sys/socket.h>
6779 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6781 cat >>confdefs.h
<<_ACEOF
6782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6787 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6788 #if HAVE_SYS_SOCKET_H
6789 #include <sys/socket.h>
6795 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6797 cat >>confdefs.h
<<_ACEOF
6798 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6803 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6804 #if HAVE_SYS_SOCKET_H
6805 #include <sys/socket.h>
6811 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6813 cat >>confdefs.h
<<_ACEOF
6814 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6823 $as_echo_n "checking for function prototypes... " >&6; }
6824 if test "$ac_cv_prog_cc_c89" != no
; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6828 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6831 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6839 $as_echo_n "checking for working volatile... " >&6; }
6840 if test "${ac_cv_c_volatile+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6851 int * volatile y = (int *) 0;
6857 if ac_fn_c_try_compile
"$LINENO"; then :
6858 ac_cv_c_volatile
=yes
6862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6865 $as_echo "$ac_cv_c_volatile" >&6; }
6866 if test $ac_cv_c_volatile = no
; then
6868 $as_echo "#define volatile /**/" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6874 if test "${ac_cv_c_const+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6883 /* FIXME: Include the comments suggested by Paul. */
6885 /* Ultrix mips cc rejects this. */
6886 typedef int charset[2];
6888 /* SunOS 4.1.1 cc rejects this. */
6889 char const *const *pcpcc;
6891 /* NEC SVR4.0.2 mips cc rejects this. */
6892 struct point {int x, y;};
6893 static struct point const zero = {0,0};
6894 /* AIX XL C 1.02.0.0 rejects this.
6895 It does not let you subtract one const X* pointer from another in
6896 an arm of an if-expression whose if-part is not a constant
6898 const char *g = "string";
6899 pcpcc = &g + (g ? g-g : 0);
6900 /* HPUX 7.0 cc rejects these. */
6902 ppc = (char**) pcpcc;
6903 pcpcc = (char const *const *) ppc;
6904 { /* SCO 3.2v4 cc rejects this. */
6906 char const *s = 0 ? (char *) 0 : (char const *) 0;
6911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6913 const int *foo = &x[0];
6916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6917 typedef const int *iptr;
6921 { /* AIX XL C 1.02.0.0 rejects this saying
6922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6923 struct s { int j; const int *ap[3]; };
6924 struct s *b; b->j = 5;
6926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6930 return !cs[0] && !zero.x;
6937 if ac_fn_c_try_compile
"$LINENO"; then :
6942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6945 $as_echo "$ac_cv_c_const" >&6; }
6946 if test $ac_cv_c_const = no
; then
6948 $as_echo "#define const /**/" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6953 $as_echo_n "checking for void * support... " >&6; }
6954 if test "${emacs_cv_void_star+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6968 if ac_fn_c_try_compile
"$LINENO"; then :
6969 emacs_cv_void_star
=yes
6971 emacs_cv_void_star
=no
6973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6976 $as_echo "$emacs_cv_void_star" >&6; }
6977 if test $emacs_cv_void_star = yes; then
6978 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6981 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6991 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6992 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6993 $as_echo_n "(cached) " >&6
6995 cat >conftest.
make <<\_ACEOF
6998 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7003 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7005 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7009 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011 $as_echo "yes" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 SET_MAKE
="MAKE=${MAKE-make}"
7023 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7025 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7027 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7028 if test "x$testval" != x
; then
7031 ac_enable_autodepend
=no
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7034 $as_echo "$HAVE_GNU_MAKE" >&6; }
7035 if test $HAVE_GNU_MAKE = yes; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7037 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7038 SAVE_CFLAGS
="$CFLAGS"
7039 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7051 if ac_fn_c_try_compile
"$LINENO"; then :
7054 ac_enable_autodepend
=no
7056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7057 CFLAGS
="$SAVE_CFLAGS"
7058 test -f deps.d || ac_enable_autodepend
=no
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7061 $as_echo "$ac_enable_autodepend" >&6; }
7063 if test $ac_enable_autodepend = yes; then
7064 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7065 ## In parallel builds, another make might create depdir between
7066 ## the first test and mkdir, so stick another test on the end.
7067 ## Or use mkinstalldirs? mkdir -p is not portable.
7068 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7069 deps_frag
=autodeps.mk
7072 deps_frag
=$srcdir/src
/$deps_frag
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7079 $as_echo_n "checking for long file names... " >&6; }
7080 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7083 ac_cv_sys_long_file_names
=yes
7084 # Test for long file names in all the places we know might matter:
7085 # . the current directory, where building will happen
7086 # $prefix/lib where we will be installing things
7087 # $exec_prefix/lib likewise
7088 # $TMPDIR if set, where it might want to write temporary files
7089 # /tmp where it might want to write temporary files
7092 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7093 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7094 # in the usual case where exec_prefix is '${prefix}'.
7096 . |
/* | ?
:[\\/]*) ;; #(
7099 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7100 ac_xdir
=$ac_dir/cf$$
7101 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7102 ac_tf1
=$ac_xdir/conftest9012345
7103 ac_tf2
=$ac_xdir/conftest9012346
7104 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7105 ac_cv_sys_long_file_names
=no
7106 rm -f -r "$ac_xdir" 2>/dev
/null
7107 test $ac_cv_sys_long_file_names = no
&& break
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7111 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7112 if test $ac_cv_sys_long_file_names = yes; then
7114 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7119 #### Choose a window system.
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7122 $as_echo_n "checking for X... " >&6; }
7125 # Check whether --with-x was given.
7126 if test "${with_x+set}" = set; then :
7130 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7131 if test "x$with_x" = xno
; then
7132 # The user explicitly disabled X.
7135 case $x_includes,$x_libraries in #(
7136 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7137 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7140 # One or both of the vars are not set, and there is no cached value.
7141 ac_x_includes
=no ac_x_libraries
=no
7142 rm -f -r conftest.dir
7143 if mkdir conftest.dir
; then
7145 cat >Imakefile
<<'_ACEOF'
7147 @echo incroot='${INCROOT}'
7149 @echo usrlibdir='${USRLIBDIR}'
7151 @echo libdir='${LIBDIR}'
7153 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7155 for ac_var
in incroot usrlibdir libdir
; do
7156 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7159 for ac_extension
in a so sl dylib la dll
; do
7160 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7161 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7162 ac_im_usrlibdir
=$ac_im_libdir; break
7165 # Screen out bogus values from the imake configuration. They are
7166 # bogus both because they are the default anyway, and because
7167 # using them would break gcc on systems where it needs fixed includes.
7168 case $ac_im_incroot in
7169 /usr
/include
) ac_x_includes
= ;;
7170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7172 case $ac_im_usrlibdir in
7173 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7178 rm -f -r conftest.dir
7181 # Standard set of common directories for X headers.
7182 # Check X11 before X11Rn because it is often a symlink to the current release.
7196 /usr/local/X11/include
7197 /usr/local/X11R7/include
7198 /usr/local/X11R6/include
7199 /usr/local/X11R5/include
7200 /usr/local/X11R4/include
7202 /usr/local/include/X11
7203 /usr/local/include/X11R7
7204 /usr/local/include/X11R6
7205 /usr/local/include/X11R5
7206 /usr/local/include/X11R4
7210 /usr/XFree86/include/X11
7214 /usr/unsupported/include
7216 /usr/local/x11r5/include
7217 /usr/lpp/Xamples/include
7219 /usr/openwin/include
7220 /usr/openwin/share/include'
7222 if test "$ac_x_includes" = no
; then
7223 # Guess where to find include files, by looking for Xlib.h.
7224 # First, try using that file with no special directory specified.
7225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <X11/Xlib.h>
7229 if ac_fn_c_try_cpp
"$LINENO"; then :
7230 # We can compile using X headers with no special include directory.
7233 for ac_dir
in $ac_x_header_dirs; do
7234 if test -r "$ac_dir/X11/Xlib.h"; then
7235 ac_x_includes
=$ac_dir
7240 rm -f conftest.err conftest.
$ac_ext
7241 fi # $ac_x_includes = no
7243 if test "$ac_x_libraries" = no
; then
7244 # Check for the libraries.
7245 # See if we find them without any special options.
7246 # Don't add to $LIBS permanently.
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <X11/Xlib.h>
7260 if ac_fn_c_try_link
"$LINENO"; then :
7262 # We can link X programs with no special library path.
7266 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7268 # Don't even attempt the hair of trying to link an X program!
7269 for ac_extension
in a so sl dylib la dll
; do
7270 if test -r "$ac_dir/libX11.$ac_extension"; then
7271 ac_x_libraries
=$ac_dir
7277 rm -f core conftest.err conftest.
$ac_objext \
7278 conftest
$ac_exeext conftest.
$ac_ext
7279 fi # $ac_x_libraries = no
7281 case $ac_x_includes,$ac_x_libraries in #(
7283 # Didn't find X, or a directory has "'" in its name.
7284 ac_cv_have_x
="have_x=no";; #(
7286 # Record where we found X for the cache.
7287 ac_cv_have_x
="have_x=yes\
7288 ac_x_includes='$ac_x_includes'\
7289 ac_x_libraries='$ac_x_libraries'"
7295 eval "$ac_cv_have_x"
7298 if test "$have_x" != yes; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7300 $as_echo "$have_x" >&6; }
7303 # If each of the values was on the command line, it overrides each guess.
7304 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7305 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7306 # Update the cache value to reflect the command line values.
7307 ac_cv_have_x
="have_x=yes\
7308 ac_x_includes='$x_includes'\
7309 ac_x_libraries='$x_libraries'"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7311 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7314 if test "$no_x" = yes; then
7320 ## Workaround for bug in autoconf <= 2.62.
7321 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7322 ## No need to do anything special for these standard directories.
7323 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7325 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7329 LD_SWITCH_X_SITE_AUX
=
7330 LD_SWITCH_X_SITE_AUX_RPATH
=
7331 if test "${x_libraries}" != NONE
; then
7332 if test -n "${x_libraries}"; then
7333 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7334 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7335 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7337 x_default_search_path
=""
7338 x_search_path
=${x_libraries}
7339 if test -z "${x_search_path}"; then
7340 x_search_path
=/usr
/lib
7342 for x_library
in `echo ${x_search_path}: | \
7343 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7345 ${x_library}/X11/%L/%T/%N%C%S:\
7346 ${x_library}/X11/%l/%T/%N%C%S:\
7347 ${x_library}/X11/%T/%N%C%S:\
7348 ${x_library}/X11/%L/%T/%N%S:\
7349 ${x_library}/X11/%l/%T/%N%S:\
7350 ${x_library}/X11/%T/%N%S"
7351 if test x
"${x_default_search_path}" = x
; then
7352 x_default_search_path
=${x_search_path}
7354 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7361 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7362 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7365 if test x
"${x_includes}" = x
; then
7366 bitmapdir
=/usr
/include
/X11
/bitmaps
7368 # accumulate include directories that have X11 bitmap subdirectories
7370 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7371 if test -d "${bmd}/X11/bitmaps"; then
7372 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7374 if test -d "${bmd}/bitmaps"; then
7375 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7378 if test ${bmd_acc} != "dummyval"; then
7379 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7386 tmp_CPPFLAGS
="$CPPFLAGS"
7387 tmp_CFLAGS
="$CFLAGS"
7388 CPPFLAGS
="$CPPFLAGS -x objective-c"
7389 CFLAGS
="$CFLAGS -x objective-c"
7390 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7391 if test "${with_ns}" != no
; then
7392 if test "${opsys}" = darwin
; then
7394 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7395 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7396 ns_appresdir
=${ns_appdir}Contents
/Resources
7397 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7398 elif test -f $GNUSTEP_CONFIG_FILE; then
7400 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7401 ns_appbindir
=${ns_appdir}
7402 ns_appresdir
=${ns_appdir}Resources
7403 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7404 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7405 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7406 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7407 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7408 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7409 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7410 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7411 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7412 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7413 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7414 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7415 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7420 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7421 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7424 as_fn_error
"\`--with-ns' was specified, but the include
7425 files are missing or cannot be compiled." "$LINENO" 5
7429 NS_HAVE_NSINTEGER
=yes
7430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 #include <Foundation/NSObjCRuntime.h>
7441 if ac_fn_c_try_compile
"$LINENO"; then :
7442 ns_have_nsinteger
=yes
7444 ns_have_nsinteger
=no
7446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 if test $ns_have_nsinteger = no
; then
7448 NS_HAVE_NSINTEGER
=no
7456 if test "${HAVE_NS}" = yes; then
7457 window_system
=nextstep
7459 # set up packaging dirs
7460 exec_prefix
=${ns_appbindir}
7461 libexecdir
=${ns_appbindir}/libexec
7462 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7463 prefix
=${ns_appresdir}
7465 ns_frag
=$srcdir/src
/ns.mk
7466 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7467 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7469 CFLAGS
="$tmp_CFLAGS"
7470 CPPFLAGS
="$tmp_CPPFLAGS"
7476 case "${window_system}" in
7480 case "${with_x_toolkit}" in
7481 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7482 motif
) USE_X_TOOLKIT
=MOTIF
;;
7484 USE_X_TOOLKIT
=none
;;
7485 no
) USE_X_TOOLKIT
=none
;;
7486 * ) USE_X_TOOLKIT
=maybe
;;
7496 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7497 # Extract the first word of "X", so it can be a program name with args.
7498 set dummy X
; ac_word
=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7504 if test -n "$HAVE_XSERVER"; then
7505 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir
=.
7512 for ac_exec_ext
in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_HAVE_XSERVER
="true"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7525 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7526 if test -n "$HAVE_XSERVER"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7528 $as_echo "$HAVE_XSERVER" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 if test "$HAVE_XSERVER" = true ||
7536 test -n "$DISPLAY" ||
7537 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7538 as_fn_error
"You seem to be running X, but no X development libraries
7539 were found. You should install the relevant development files for X
7540 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7541 sure you have development files for image handling, i.e.
7542 tiff, gif, jpeg, png and xpm.
7543 If you are sure you want Emacs compiled without X window support, pass
7545 to configure." "$LINENO" 5
7549 ### If we're using X11, we should use the X menu package.
7552 yes ) HAVE_MENUS
=yes ;;
7555 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7556 # Assume not, until told otherwise.
7559 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7560 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7566 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7567 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7574 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7575 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 extern void (* __after_morecore_hook)();
7584 __after_morecore_hook = 0
7589 if ac_fn_c_try_link
"$LINENO"; then :
7590 emacs_cv_var___after_morecore_hook
=yes
7592 emacs_cv_var___after_morecore_hook
=no
7594 rm -f core conftest.err conftest.
$ac_objext \
7595 conftest
$ac_exeext conftest.
$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7598 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7599 if test $emacs_cv_var___after_morecore_hook = no
; then
7603 if test "${system_malloc}" = "yes"; then
7606 (The GNU allocators don't work with this system configuration.)"
7610 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7611 VMLIMIT_OBJ
=vm-limit.o
7616 if test "$doug_lea_malloc" = "yes" ; then
7617 if test "$GNU_MALLOC" = yes ; then
7619 (Using Doug Lea's new malloc from the GNU C Library.)"
7622 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7625 ## Use mmap directly for allocating larger buffers.
7626 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7627 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7628 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7630 gnu
*) REL_ALLOC
=no
;;
7634 if test x
"${REL_ALLOC}" = x
; then
7635 REL_ALLOC
=${GNU_MALLOC}
7642 for ac_header
in $ac_header_list
7644 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7647 eval as_val
=\$
$as_ac_Header
7648 if test "x$as_val" = x
""yes; then :
7649 cat >>confdefs.h
<<_ACEOF
7650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7664 for ac_func
in getpagesize
7666 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7667 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7668 cat >>confdefs.h
<<_ACEOF
7669 #define HAVE_GETPAGESIZE 1
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7676 $as_echo_n "checking for working mmap... " >&6; }
7677 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7680 if test "$cross_compiling" = yes; then :
7681 ac_cv_func_mmap_fixed_mapped
=no
7683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 /* malloc might have been renamed as rpl_malloc. */
7689 /* Thanks to Mike Haertel and Jim Avera for this test.
7690 Here is a matrix of mmap possibilities:
7691 mmap private not fixed
7692 mmap private fixed at somewhere currently unmapped
7693 mmap private fixed at somewhere already mapped
7694 mmap shared not fixed
7695 mmap shared fixed at somewhere currently unmapped
7696 mmap shared fixed at somewhere already mapped
7697 For private mappings, we should verify that changes cannot be read()
7698 back from the file, nor mmap's back from the file at a different
7699 address. (There have been systems where private was not correctly
7700 implemented like the infamous i386 svr4.0, and systems where the
7701 VM page cache was not coherent with the file system buffer cache
7702 like early versions of FreeBSD and possibly contemporary NetBSD.)
7703 For shared mappings, we should conversely verify that changes get
7704 propagated back to all the places they're supposed to be.
7706 Grep wants private fixed already mapped.
7707 The main things grep needs to know about mmap are:
7708 * does it exist and is it safe to write into the mmap'd area
7709 * how to use it (BSD variants) */
7712 #include <sys/mman.h>
7714 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7718 /* This mess was copied from the GNU getpagesize.h. */
7719 #ifndef HAVE_GETPAGESIZE
7720 # ifdef _SC_PAGESIZE
7721 # define getpagesize() sysconf(_SC_PAGESIZE)
7722 # else /* no _SC_PAGESIZE */
7723 # ifdef HAVE_SYS_PARAM_H
7724 # include <sys/param.h>
7725 # ifdef EXEC_PAGESIZE
7726 # define getpagesize() EXEC_PAGESIZE
7727 # else /* no EXEC_PAGESIZE */
7729 # define getpagesize() NBPG * CLSIZE
7732 # endif /* no CLSIZE */
7733 # else /* no NBPG */
7735 # define getpagesize() NBPC
7736 # else /* no NBPC */
7738 # define getpagesize() PAGESIZE
7739 # endif /* PAGESIZE */
7740 # endif /* no NBPC */
7741 # endif /* no NBPG */
7742 # endif /* no EXEC_PAGESIZE */
7743 # else /* no HAVE_SYS_PARAM_H */
7744 # define getpagesize() 8192 /* punt totally */
7745 # endif /* no HAVE_SYS_PARAM_H */
7746 # endif /* no _SC_PAGESIZE */
7748 #endif /* no HAVE_GETPAGESIZE */
7753 char *data, *data2, *data3;
7757 pagesize = getpagesize ();
7759 /* First, make a file with some known garbage in it. */
7760 data = (char *) malloc (pagesize);
7763 for (i = 0; i < pagesize; ++i)
7764 *(data + i) = rand ();
7766 fd = creat ("conftest.mmap", 0600);
7769 if (write (fd, data, pagesize) != pagesize)
7773 /* Next, check that the tail of a page is zero-filled. File must have
7774 non-zero length, otherwise we risk SIGBUS for entire page. */
7775 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7779 if (write (fd2, data2, 1) != 1)
7781 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7782 if (data2 == MAP_FAILED)
7784 for (i = 0; i < pagesize; ++i)
7788 if (munmap (data2, pagesize))
7791 /* Next, try to mmap the file at a fixed address which already has
7792 something else allocated at it. If we can, also make sure that
7793 we see the same garbage. */
7794 fd = open ("conftest.mmap", O_RDWR);
7797 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7798 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7800 for (i = 0; i < pagesize; ++i)
7801 if (*(data + i) != *(data2 + i))
7804 /* Finally, make sure that changes to the mapped area do not
7805 percolate back to the file as seen by read(). (This is a bug on
7806 some variants of i386 svr4.0.) */
7807 for (i = 0; i < pagesize; ++i)
7808 *(data2 + i) = *(data2 + i) + 1;
7809 data3 = (char *) malloc (pagesize);
7812 if (read (fd, data3, pagesize) != pagesize)
7814 for (i = 0; i < pagesize; ++i)
7815 if (*(data + i) != *(data3 + i))
7821 if ac_fn_c_try_run
"$LINENO"; then :
7822 ac_cv_func_mmap_fixed_mapped
=yes
7824 ac_cv_func_mmap_fixed_mapped
=no
7826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7832 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7833 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7835 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7838 rm -f conftest.mmap conftest.txt
7840 if test $use_mmap_for_buffers = yes; then
7844 LIBS
="$LIBS_SYSTEM $LIBS"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7847 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7848 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7851 ac_check_lib_save_LIBS
=$LIBS
7853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7866 return dnet_ntoa ();
7871 if ac_fn_c_try_link
"$LINENO"; then :
7872 ac_cv_lib_dnet_dnet_ntoa
=yes
7874 ac_cv_lib_dnet_dnet_ntoa
=no
7876 rm -f core conftest.err conftest.
$ac_objext \
7877 conftest
$ac_exeext conftest.
$ac_ext
7878 LIBS
=$ac_check_lib_save_LIBS
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7881 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7882 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7883 cat >>confdefs.h
<<_ACEOF
7884 #define HAVE_LIBDNET 1
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7893 $as_echo_n "checking for main in -lXbsd... " >&6; }
7894 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 ac_check_lib_save_LIBS
=$LIBS
7899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7911 if ac_fn_c_try_link
"$LINENO"; then :
7912 ac_cv_lib_Xbsd_main
=yes
7914 ac_cv_lib_Xbsd_main
=no
7916 rm -f core conftest.err conftest.
$ac_objext \
7917 conftest
$ac_exeext conftest.
$ac_ext
7918 LIBS
=$ac_check_lib_save_LIBS
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7921 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7922 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7923 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7928 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7929 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7932 ac_check_lib_save_LIBS
=$LIBS
7933 LIBS
="-lpthreads $LIBS"
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7937 /* Override any GCC internal prototype to avoid an error.
7938 Use char because int might match the return type of a GCC
7939 builtin and then its argument prototype would still apply. */
7952 if ac_fn_c_try_link
"$LINENO"; then :
7953 ac_cv_lib_pthreads_cma_open
=yes
7955 ac_cv_lib_pthreads_cma_open
=no
7957 rm -f core conftest.err conftest.
$ac_objext \
7958 conftest
$ac_exeext conftest.
$ac_ext
7959 LIBS
=$ac_check_lib_save_LIBS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7962 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7963 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7964 cat >>confdefs.h
<<_ACEOF
7965 #define HAVE_LIBPTHREADS 1
7968 LIBS
="-lpthreads $LIBS"
7973 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7974 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7975 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7976 ## added to LIBS in configure would never contain the pthreads part,
7977 ## but the value used in Makefiles might. FIXME?
7979 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7980 ## be harmless on older versions of X where it happens to exist.
7981 test "$opsys" = "aix4-2" && \
7982 test $ac_cv_lib_pthreads_cma_open = yes && \
7983 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7989 $as_echo_n "checking for -bbigtoc option... " >&6; }
7990 if test "${gdb_cv_bigtoc+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7995 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7996 *) gdb_cv_bigtoc
=-bbigtoc ;;
7999 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8011 if ac_fn_c_try_link
"$LINENO"; then :
8016 rm -f core conftest.err conftest.
$ac_objext \
8017 conftest
$ac_exeext conftest.
$ac_ext
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8021 $as_echo "$gdb_cv_bigtoc" >&6; }
8025 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8026 # used for the tests that follow. We set them back to REAL_CFLAGS and
8027 # REAL_CPPFLAGS later on.
8029 REAL_CPPFLAGS
="$CPPFLAGS"
8031 if test "${HAVE_X11}" = "yes"; then
8032 DEFS
="$C_SWITCH_X_SITE $DEFS"
8033 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8035 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8036 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8038 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8039 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8040 # but it's more convenient here to set LD_RUN_PATH
8041 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8042 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8043 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8047 if test "${opsys}" = "gnu-linux"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8049 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8056 XOpenDisplay ("foo");
8061 if ac_fn_c_try_link
"$LINENO"; then :
8062 xlinux_first_failure
=no
8064 xlinux_first_failure
=yes
8066 rm -f core conftest.err conftest.
$ac_objext \
8067 conftest
$ac_exeext conftest.
$ac_ext
8068 if test "${xlinux_first_failure}" = "yes"; then
8069 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8070 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8071 OLD_CPPFLAGS
="$CPPFLAGS"
8073 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8074 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8075 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8076 LIBS
="$LIBS -b i486-linuxaout"
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8083 XOpenDisplay ("foo");
8088 if ac_fn_c_try_link
"$LINENO"; then :
8089 xlinux_second_failure
=no
8091 xlinux_second_failure
=yes
8093 rm -f core conftest.err conftest.
$ac_objext \
8094 conftest
$ac_exeext conftest.
$ac_ext
8095 if test "${xlinux_second_failure}" = "yes"; then
8096 # If we get the same failure with -b, there is no use adding -b.
8097 # So take it out. This plays safe.
8098 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8099 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8100 CPPFLAGS
="$OLD_CPPFLAGS"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106 $as_echo "yes" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8114 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8115 # header files included from there.
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8117 $as_echo_n "checking for Xkb... " >&6; }
8118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <X11/Xlib.h>
8121 #include <X11/XKBlib.h>
8125 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8130 if ac_fn_c_try_link
"$LINENO"; then :
8135 rm -f core conftest.err conftest.
$ac_objext \
8136 conftest
$ac_exeext conftest.
$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8138 $as_echo "$emacs_xkb" >&6; }
8139 if test $emacs_xkb = yes; then
8141 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8145 for ac_func
in XrmSetDatabase XScreenResourceString \
8146 XScreenNumberOfScreen XSetWMProtocols
8148 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8150 eval as_val
=\$
$as_ac_var
8151 if test "x$as_val" = x
""yes; then :
8152 cat >>confdefs.h
<<_ACEOF
8153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8161 if test "${window_system}" = "x11"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8163 $as_echo_n "checking X11 version 6... " >&6; }
8164 if test "${emacs_cv_x11_version_6+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <X11/Xlib.h>
8173 #if XlibSpecificationRelease < 6
8181 if ac_fn_c_try_link
"$LINENO"; then :
8182 emacs_cv_x11_version_6
=yes
8184 emacs_cv_x11_version_6
=no
8186 rm -f core conftest.err conftest.
$ac_objext \
8187 conftest
$ac_exeext conftest.
$ac_ext
8190 if test $emacs_cv_x11_version_6 = yes; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8192 $as_echo "6 or newer" >&6; }
8194 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8198 $as_echo "before 6" >&6; }
8203 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8205 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8206 if test "${with_rsvg}" != "no"; then
8207 RSVG_REQUIRED
=2.11.0
8208 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8213 # Extract the first word of "pkg-config", so it can be a program name with args.
8214 set dummy pkg-config
; ac_word
=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8222 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir
=.
8230 for ac_exec_ext
in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8244 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8245 if test -n "$PKG_CONFIG"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8247 $as_echo "$PKG_CONFIG" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 if test "$PKG_CONFIG" = "no" ; then
8258 PKG_CONFIG_MIN_VERSION
=0.9.0
8259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8261 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8263 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265 $as_echo "yes" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8269 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8270 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8272 $as_echo "$RSVG_CFLAGS" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8275 $as_echo_n "checking RSVG_LIBS... " >&6; }
8276 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8278 $as_echo "$RSVG_LIBS" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8284 ## If we have a custom action on failure, don't print errors, but
8285 ## do set a variable so people can do so.
8286 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8298 if test $succeeded = yes; then
8307 if test ".${RSVG_CFLAGS}" != "."; then
8310 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8312 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8313 LIBS
="$RSVG_LIBS $LIBS"
8320 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8323 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8328 # Extract the first word of "pkg-config", so it can be a program name with args.
8329 set dummy pkg-config
; ac_word
=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir
=.
8345 for ac_exec_ext
in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8360 if test -n "$PKG_CONFIG"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8362 $as_echo "$PKG_CONFIG" >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8370 if test "$PKG_CONFIG" = "no" ; then
8373 PKG_CONFIG_MIN_VERSION
=0.9.0
8374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8376 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8378 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380 $as_echo "yes" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8384 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8385 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8387 $as_echo "$GTK_CFLAGS" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8390 $as_echo_n "checking GTK_LIBS... " >&6; }
8391 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8393 $as_echo "$GTK_LIBS" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8399 ## If we have a custom action on failure, don't print errors, but
8400 ## do set a variable so people can do so.
8401 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8413 if test $succeeded = yes; then
8419 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8420 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8426 if test x
"$pkg_check_gtk" = xyes
; then
8430 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8431 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8432 LIBS
="$GTK_LIBS $LIBS"
8434 for ac_func
in gtk_main
8436 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8437 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8438 cat >>confdefs.h
<<_ACEOF
8439 #define HAVE_GTK_MAIN 1
8445 if test "${GTK_COMPILES}" != "yes"; then
8446 if test "$USE_X_TOOLKIT" != "maybe"; then
8447 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8452 $as_echo "#define USE_GTK 1" >>confdefs.h
8456 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8460 closing open displays. This is no problem if you just use
8461 one display, but if you use more than one and close one of them
8462 Emacs may crash." >&5
8463 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8464 closing open displays. This is no problem if you just use
8465 one display, but if you use more than one and close one of them
8466 Emacs may crash." >&2;}
8475 if test "${HAVE_GTK}" = "yes"; then
8477 if test "$with_toolkit_scroll_bars" != no
; then
8478 with_toolkit_scroll_bars
=yes
8481 HAVE_GTK_MULTIDISPLAY
=no
8482 for ac_func
in gdk_display_open
8484 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8485 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8486 cat >>confdefs.h
<<_ACEOF
8487 #define HAVE_GDK_DISPLAY_OPEN 1
8489 HAVE_GTK_MULTIDISPLAY
=yes
8493 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8495 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8499 HAVE_GTK_FILE_SELECTION
=no
8500 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8501 #include <gtk/gtk.h>
8503 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8504 HAVE_GTK_FILE_SELECTION
=yes
8506 HAVE_GTK_FILE_SELECTION
=no
8509 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8510 for ac_func
in gtk_file_selection_new
8512 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8513 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8514 cat >>confdefs.h
<<_ACEOF
8515 #define HAVE_GTK_FILE_SELECTION_NEW 1
8517 HAVE_GTK_FILE_SELECTION
=yes
8519 HAVE_GTK_FILE_SELECTION
=no
8525 HAVE_GTK_FILE_CHOOSER
=no
8526 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8527 #include <gtk/gtk.h>
8529 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8530 HAVE_GTK_FILE_CHOOSER
=yes
8532 HAVE_GTK_FILE_CHOOSER
=no
8535 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8536 for ac_func
in gtk_file_chooser_dialog_new
8538 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8539 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8540 cat >>confdefs.h
<<_ACEOF
8541 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8543 HAVE_GTK_FILE_CHOOSER
=yes
8545 HAVE_GTK_FILE_CHOOSER
=no
8551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8554 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8558 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8559 HAVE_GTK_AND_PTHREAD
=no
8560 for ac_header
in pthread.h
8562 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8563 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8564 cat >>confdefs.h
<<_ACEOF
8565 #define HAVE_PTHREAD_H 1
8572 if test "$ac_cv_header_pthread_h"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8574 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8575 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8578 ac_check_lib_save_LIBS
=$LIBS
8579 LIBS
="-lpthread $LIBS"
8580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8589 char pthread_self ();
8593 return pthread_self ();
8598 if ac_fn_c_try_link
"$LINENO"; then :
8599 ac_cv_lib_pthread_pthread_self
=yes
8601 ac_cv_lib_pthread_pthread_self
=no
8603 rm -f core conftest.err conftest.
$ac_objext \
8604 conftest
$ac_exeext conftest.
$ac_ext
8605 LIBS
=$ac_check_lib_save_LIBS
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8608 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8609 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8610 HAVE_GTK_AND_PTHREAD
=yes
8614 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8615 case "${canonical}" in
8617 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8620 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8628 if test "${with_dbus}" = "yes"; then
8632 # Extract the first word of "pkg-config", so it can be a program name with args.
8633 set dummy pkg-config
; ac_word
=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8641 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir
=.
8649 for ac_exec_ext
in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8663 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8664 if test -n "$PKG_CONFIG"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8666 $as_echo "$PKG_CONFIG" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8674 if test "$PKG_CONFIG" = "no" ; then
8677 PKG_CONFIG_MIN_VERSION
=0.9.0
8678 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8680 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8682 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8684 $as_echo "yes" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8688 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8689 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8691 $as_echo "$DBUS_CFLAGS" >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8694 $as_echo_n "checking DBUS_LIBS... " >&6; }
8695 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8697 $as_echo "$DBUS_LIBS" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8703 ## If we have a custom action on failure, don't print errors, but
8704 ## do set a variable so people can do so.
8705 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8712 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8713 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8717 if test $succeeded = yes; then
8723 if test "$HAVE_DBUS" = yes; then
8724 LIBS
="$LIBS $DBUS_LIBS"
8726 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8728 for ac_func
in dbus_watch_get_unix_fd
8730 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8731 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8732 cat >>confdefs.h
<<_ACEOF
8733 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8745 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8749 # Extract the first word of "pkg-config", so it can be a program name with args.
8750 set dummy pkg-config
; ac_word
=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8758 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir
=.
8766 for ac_exec_ext
in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8780 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8781 if test -n "$PKG_CONFIG"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8783 $as_echo "$PKG_CONFIG" >&6; }
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8791 if test "$PKG_CONFIG" = "no" ; then
8794 PKG_CONFIG_MIN_VERSION
=0.9.0
8795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8797 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8799 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8805 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8806 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8808 $as_echo "$GCONF_CFLAGS" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8811 $as_echo_n "checking GCONF_LIBS... " >&6; }
8812 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8814 $as_echo "$GCONF_LIBS" >&6; }
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8820 ## If we have a custom action on failure, don't print errors, but
8821 ## do set a variable so people can do so.
8822 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8834 if test $succeeded = yes; then
8840 if test "$HAVE_GCONF" = yes; then
8842 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8849 if test "${with_selinux}" = "yes"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8851 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8852 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8855 ac_check_lib_save_LIBS
=$LIBS
8856 LIBS
="-lselinux $LIBS"
8857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8866 char lgetfilecon ();
8870 return lgetfilecon ();
8875 if ac_fn_c_try_link
"$LINENO"; then :
8876 ac_cv_lib_selinux_lgetfilecon
=yes
8878 ac_cv_lib_selinux_lgetfilecon
=no
8880 rm -f core conftest.err conftest.
$ac_objext \
8881 conftest
$ac_exeext conftest.
$ac_ext
8882 LIBS
=$ac_check_lib_save_LIBS
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8885 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8886 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
8892 if test "$HAVE_LIBSELINUX" = yes; then
8894 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8896 LIBSELINUX_LIBS
=-lselinux
8903 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8904 if test "$with_xaw3d" != no
; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8906 $as_echo_n "checking for xaw3d... " >&6; }
8907 if test "${emacs_cv_xaw3d+set}" = set; then :
8908 $as_echo_n "(cached) " >&6
8910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 #include <X11/Intrinsic.h>
8914 #include <X11/Xaw3d/Simple.h>
8923 if ac_fn_c_try_link
"$LINENO"; then :
8928 rm -f core conftest.err conftest.
$ac_objext \
8929 conftest
$ac_exeext conftest.
$ac_ext
8935 if test $emacs_cv_xaw3d = yes; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8937 $as_echo "yes; using Lucid toolkit" >&6; }
8942 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8948 $as_echo_n "checking for libXaw... " >&6; }
8949 if test "${emacs_cv_xaw+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8955 #include <X11/Intrinsic.h>
8956 #include <X11/Xaw/Simple.h>
8965 if ac_fn_c_try_link
"$LINENO"; then :
8970 rm -f core conftest.err conftest.
$ac_objext \
8971 conftest
$ac_exeext conftest.
$ac_ext
8974 if test $emacs_cv_xaw = yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8976 $as_echo "yes; using Lucid toolkit" >&6; }
8979 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8980 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8983 $as_echo "no; do not use toolkit by default" >&6; }
8989 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8992 if test "${USE_X_TOOLKIT}" != "none"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8994 $as_echo_n "checking X11 toolkit version... " >&6; }
8995 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 #include <X11/Intrinsic.h>
9004 #if XtSpecificationRelease < 6
9012 if ac_fn_c_try_link
"$LINENO"; then :
9013 emacs_cv_x11_toolkit_version_6
=yes
9015 emacs_cv_x11_toolkit_version_6
=no
9017 rm -f core conftest.err conftest.
$ac_objext \
9018 conftest
$ac_exeext conftest.
$ac_ext
9021 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9022 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9024 $as_echo "6 or newer" >&6; }
9026 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9028 LIBXTR6
="-lSM -lICE"
9030 ## Use libw.a along with X11R6 Xt.
9031 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9035 $as_echo "before 6" >&6; }
9039 if test x
$HAVE_X11XTR6 = xyes
; then
9040 LIBS
="-lXt -lSM -lICE $LIBS"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9045 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9046 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9049 ac_check_lib_save_LIBS
=$LIBS
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9054 /* Override any GCC internal prototype to avoid an error.
9055 Use char because int might match the return type of a GCC
9056 builtin and then its argument prototype would still apply. */
9060 char XmuConvertStandardSelection ();
9064 return XmuConvertStandardSelection ();
9069 if ac_fn_c_try_link
"$LINENO"; then :
9070 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9072 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9074 rm -f core conftest.err conftest.
$ac_objext \
9075 conftest
$ac_exeext conftest.
$ac_ext
9076 LIBS
=$ac_check_lib_save_LIBS
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9079 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9080 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9081 cat >>confdefs.h
<<_ACEOF
9082 #define HAVE_LIBXMU 1
9089 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9095 ## These machines don't supply Xmu.
9097 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9102 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9103 if test "${HAVE_X11}" = "yes"; then
9104 if test "${USE_X_TOOLKIT}" != "none"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9106 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9107 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 ac_check_lib_save_LIBS
=$LIBS
9112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9121 char XShapeQueryExtension ();
9125 return XShapeQueryExtension ();
9130 if ac_fn_c_try_link
"$LINENO"; then :
9131 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9133 ac_cv_lib_Xext_XShapeQueryExtension
=no
9135 rm -f core conftest.err conftest.
$ac_objext \
9136 conftest
$ac_exeext conftest.
$ac_ext
9137 LIBS
=$ac_check_lib_save_LIBS
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9140 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9141 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9142 cat >>confdefs.h
<<_ACEOF
9143 #define HAVE_LIBXEXT 1
9154 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9156 $as_echo_n "checking for Motif version 2.1... " >&6; }
9157 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9166 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9169 Motif version prior to 2.1.
9175 if ac_fn_c_try_compile
"$LINENO"; then :
9176 emacs_cv_motif_version_2_1
=yes
9178 emacs_cv_motif_version_2_1
=no
9180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9183 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9184 if test $emacs_cv_motif_version_2_1 = yes; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9186 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9187 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9190 ac_check_lib_save_LIBS
=$LIBS
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9201 char XpCreateContext ();
9205 return XpCreateContext ();
9210 if ac_fn_c_try_link
"$LINENO"; then :
9211 ac_cv_lib_Xp_XpCreateContext
=yes
9213 ac_cv_lib_Xp_XpCreateContext
=no
9215 rm -f core conftest.err conftest.
$ac_objext \
9216 conftest
$ac_exeext conftest.
$ac_ext
9217 LIBS
=$ac_check_lib_save_LIBS
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9220 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9221 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9227 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9228 if test "${emacs_cv_lesstif+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9231 # We put this in CFLAGS temporarily to precede other -I options
9232 # that might be in CFLAGS temporarily.
9233 # We put this in CPPFLAGS where it precedes the other -I options.
9234 OLD_CPPFLAGS
=$CPPFLAGS
9236 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9237 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9249 if ac_fn_c_try_compile
"$LINENO"; then :
9250 emacs_cv_lesstif
=yes
9254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9257 $as_echo "$emacs_cv_lesstif" >&6; }
9258 if test $emacs_cv_lesstif = yes; then
9259 # Make sure this -I option remains in CPPFLAGS after it is set
9260 # back to REAL_CPPFLAGS.
9261 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9262 # have those other -I options anyway. Ultimately, having this
9263 # directory ultimately in CPPFLAGS will be enough.
9264 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9265 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9268 CPPFLAGS
=$OLD_CPPFLAGS
9274 USE_TOOLKIT_SCROLL_BARS
=no
9275 if test "${with_toolkit_scroll_bars}" != "no"; then
9276 if test "${USE_X_TOOLKIT}" != "none"; then
9277 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9278 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9281 USE_TOOLKIT_SCROLL_BARS
=yes
9282 elif test "${HAVE_XAW3D}" = "yes"; then
9283 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9285 USE_TOOLKIT_SCROLL_BARS
=yes
9287 elif test "${HAVE_GTK}" = "yes"; then
9288 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9290 USE_TOOLKIT_SCROLL_BARS
=yes
9291 elif test "${HAVE_NS}" = "yes"; then
9292 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9294 USE_TOOLKIT_SCROLL_BARS
=yes
9298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9301 #include <X11/Xlib.h>
9302 #include <X11/Xresource.h>
9311 if ac_fn_c_try_compile
"$LINENO"; then :
9314 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9322 if test "${with_xim}" != "no"; then
9324 $as_echo "#define USE_XIM 1" >>confdefs.h
9329 if test "${HAVE_XIM}" != "no"; then
9331 if test "$GCC" = yes; then
9332 CFLAGS
="$CFLAGS --pedantic-errors"
9334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 #include <X11/Xlib.h>
9338 #include <X11/Xresource.h>
9347 XPointer *client_data;
9349 /* If we're not using GCC, it's probably not XFree86, and this is
9350 probably right, but we can't use something like --pedantic-errors. */
9351 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9352 char*, XIMProc, XPointer*);
9354 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9360 if ac_fn_c_try_compile
"$LINENO"; then :
9361 emacs_cv_arg6_star
=yes
9363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9364 if test "$emacs_cv_arg6_star" = yes; then
9365 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9368 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9374 ### Start of font-backend (under any platform) section.
9375 # (nothing here yet -- this is a placeholder)
9376 ### End of font-backend (under any platform) section.
9378 ### Start of font-backend (under X11) section.
9379 if test "${HAVE_X11}" = "yes"; then
9383 # Extract the first word of "pkg-config", so it can be a program name with args.
9384 set dummy pkg-config
; ac_word
=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9392 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9399 test -z "$as_dir" && as_dir
=.
9400 for ac_exec_ext
in '' $ac_executable_extensions; do
9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9402 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9414 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9415 if test -n "$PKG_CONFIG"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9417 $as_echo "$PKG_CONFIG" >&6; }
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9425 if test "$PKG_CONFIG" = "no" ; then
9428 PKG_CONFIG_MIN_VERSION
=0.9.0
9429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9431 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9433 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9435 $as_echo "yes" >&6; }
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9439 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9440 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9442 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9445 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9446 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9448 $as_echo "$FONTCONFIG_LIBS" >&6; }
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 FONTCONFIG_CFLAGS
=""
9454 ## If we have a custom action on failure, don't print errors, but
9455 ## do set a variable so people can do so.
9456 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9468 if test $succeeded = yes; then
9475 ## Use -lXft if available, unless `--with-xft=no'.
9477 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9480 if test "x${with_xft}" != "xno"; then
9485 # Extract the first word of "pkg-config", so it can be a program name with args.
9486 set dummy pkg-config
; ac_word
=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9494 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir
=.
9502 for ac_exec_ext
in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9516 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9517 if test -n "$PKG_CONFIG"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9519 $as_echo "$PKG_CONFIG" >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9527 if test "$PKG_CONFIG" = "no" ; then
9530 PKG_CONFIG_MIN_VERSION
=0.9.0
9531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9533 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9535 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537 $as_echo "yes" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9541 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9542 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9544 $as_echo "$XFT_CFLAGS" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9547 $as_echo_n "checking XFT_LIBS... " >&6; }
9548 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9550 $as_echo "$XFT_LIBS" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9556 ## If we have a custom action on failure, don't print errors, but
9557 ## do set a variable so people can do so.
9558 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9570 if test $succeeded = yes; then
9576 ## Because xftfont.c uses XRenderQueryExtension, we also
9577 ## need to link to -lXrender.
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9580 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9581 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9584 ac_check_lib_save_LIBS
=$LIBS
9585 LIBS
="-lXrender $LIBS"
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9595 char XRenderQueryExtension ();
9599 return XRenderQueryExtension ();
9604 if ac_fn_c_try_link
"$LINENO"; then :
9605 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9607 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9609 rm -f core conftest.err conftest.
$ac_objext \
9610 conftest
$ac_exeext conftest.
$ac_ext
9611 LIBS
=$ac_check_lib_save_LIBS
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9614 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9615 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9619 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9620 OLD_CPPFLAGS
="$CPPFLAGS"
9621 OLD_CFLAGS
="$CFLAGS"
9623 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9624 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9625 XFT_LIBS
="-lXrender $XFT_LIBS"
9626 LIBS
="$XFT_LIBS $LIBS"
9627 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9628 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9630 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9631 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9634 ac_check_lib_save_LIBS
=$LIBS
9635 LIBS
="-lXft $XFT_LIBS $LIBS"
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9645 char XftFontOpen ();
9649 return XftFontOpen ();
9654 if ac_fn_c_try_link
"$LINENO"; then :
9655 ac_cv_lib_Xft_XftFontOpen
=yes
9657 ac_cv_lib_Xft_XftFontOpen
=no
9659 rm -f core conftest.err conftest.
$ac_objext \
9660 conftest
$ac_exeext conftest.
$ac_ext
9661 LIBS
=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9664 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9665 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9673 if test "${HAVE_XFT}" = "yes"; then
9675 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9678 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9680 CPPFLAGS
="$OLD_CPPFLAGS"
9681 CFLAGS
="$OLD_CFLAGS"
9683 fi # "${HAVE_XFT}" = "yes"
9684 fi # "$HAVE_XFT" != no
9685 fi # "x${with_xft}" != "xno"
9687 if test "$HAVE_XFT" != "yes"; then
9693 ## We used to allow building with FreeType and without Xft.
9694 ## However, the ftx font backend driver is not in good shape.
9695 if test "${HAVE_XFT}" = "yes"; then
9702 if test "${HAVE_FREETYPE}" = "yes"; then
9704 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9706 if test "${with_libotf}" != "no"; then
9710 # Extract the first word of "pkg-config", so it can be a program name with args.
9711 set dummy pkg-config
; ac_word
=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9719 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9726 test -z "$as_dir" && as_dir
=.
9727 for ac_exec_ext
in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9741 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9742 if test -n "$PKG_CONFIG"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9744 $as_echo "$PKG_CONFIG" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9752 if test "$PKG_CONFIG" = "no" ; then
9755 PKG_CONFIG_MIN_VERSION
=0.9.0
9756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9758 $as_echo_n "checking for libotf... " >&6; }
9760 if $PKG_CONFIG --exists "libotf" 2>&5; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9762 $as_echo "yes" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9766 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9767 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9769 $as_echo "$LIBOTF_CFLAGS" >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9772 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9773 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9775 $as_echo "$LIBOTF_LIBS" >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9781 ## If we have a custom action on failure, don't print errors, but
9782 ## do set a variable so people can do so.
9783 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9795 if test $succeeded = yes; then
9801 if test "$HAVE_LIBOTF" = "yes"; then
9803 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9806 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9807 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9810 ac_check_lib_save_LIBS
=$LIBS
9812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9821 char OTF_get_variation_glyphs ();
9825 return OTF_get_variation_glyphs ();
9830 if ac_fn_c_try_link
"$LINENO"; then :
9831 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9833 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9835 rm -f core conftest.err conftest.
$ac_objext \
9836 conftest
$ac_exeext conftest.
$ac_ext
9837 LIBS
=$ac_check_lib_save_LIBS
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9840 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9841 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9842 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9844 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9847 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9849 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9857 if test "${HAVE_LIBOTF}" = yes; then
9858 if test "${with_m17n_flt}" != "no"; then
9862 # Extract the first word of "pkg-config", so it can be a program name with args.
9863 set dummy pkg-config
; ac_word
=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9871 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir
=.
9879 for ac_exec_ext
in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9893 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9894 if test -n "$PKG_CONFIG"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9896 $as_echo "$PKG_CONFIG" >&6; }
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9904 if test "$PKG_CONFIG" = "no" ; then
9907 PKG_CONFIG_MIN_VERSION
=0.9.0
9908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9910 $as_echo_n "checking for m17n-flt... " >&6; }
9912 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9914 $as_echo "yes" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9918 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9919 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9921 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9924 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9925 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9927 $as_echo "$M17N_FLT_LIBS" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9933 ## If we have a custom action on failure, don't print errors, but
9934 ## do set a variable so people can do so.
9935 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9947 if test $succeeded = yes; then
9953 if test "$HAVE_M17N_FLT" = "yes"; then
9955 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9967 ### End of font-backend (under X11) section.
9978 ### Use -lXpm if available, unless `--with-xpm=no'.
9981 if test "${HAVE_X11}" = "yes"; then
9982 if test "${with_xpm}" != "no"; then
9983 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9984 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9986 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9987 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9990 ac_check_lib_save_LIBS
=$LIBS
9991 LIBS
="-lXpm -lX11 $LIBS"
9992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
10001 char XpmReadFileToPixmap ();
10005 return XpmReadFileToPixmap ();
10010 if ac_fn_c_try_link
"$LINENO"; then :
10011 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10013 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10015 rm -f core conftest.err conftest.
$ac_objext \
10016 conftest
$ac_exeext conftest.
$ac_ext
10017 LIBS
=$ac_check_lib_save_LIBS
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10020 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10021 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10028 if test "${HAVE_XPM}" = "yes"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10030 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 #include "X11/xpm.h"
10034 #ifndef XpmReturnAllocPixels
10035 no_return_alloc_pixels
10039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10040 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10048 if test "${HAVE_XPM}" = "yes"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10058 if test "${HAVE_XPM}" = "yes"; then
10060 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10067 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_jpeg}" != "no"; then
10072 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10073 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10075 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10076 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10079 ac_check_lib_save_LIBS
=$LIBS
10080 LIBS
="-ljpeg $LIBS"
10081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10090 char jpeg_destroy_compress ();
10094 return jpeg_destroy_compress ();
10099 if ac_fn_c_try_link
"$LINENO"; then :
10100 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10102 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10104 rm -f core conftest.err conftest.
$ac_objext \
10105 conftest
$ac_exeext conftest.
$ac_ext
10106 LIBS
=$ac_check_lib_save_LIBS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10109 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10110 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10119 if test "${HAVE_JPEG}" = "yes"; then
10120 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <jpeglib.h>
10125 version=JPEG_LIB_VERSION
10128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10129 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10130 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10134 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10140 if test "${HAVE_JPEG}" = "yes"; then
10146 ### Use -lpng if available, unless `--with-png=no'.
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${with_png}" != "no"; then
10151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10152 # in /usr/include/libpng.
10153 for ac_header
in png.h libpng
/png.h
10155 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10156 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10157 eval as_val
=\$
$as_ac_Header
10158 if test "x$as_val" = x
""yes; then :
10159 cat >>confdefs.h
<<_ACEOF
10160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10167 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10169 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10170 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10173 ac_check_lib_save_LIBS
=$LIBS
10174 LIBS
="-lpng -lz -lm $LIBS"
10175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10184 char png_get_channels ();
10188 return png_get_channels ();
10193 if ac_fn_c_try_link
"$LINENO"; then :
10194 ac_cv_lib_png_png_get_channels
=yes
10196 ac_cv_lib_png_png_get_channels
=no
10198 rm -f core conftest.err conftest.
$ac_objext \
10199 conftest
$ac_exeext conftest.
$ac_ext
10200 LIBS
=$ac_check_lib_save_LIBS
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10203 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10204 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10211 if test "${HAVE_PNG}" = "yes"; then
10213 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10215 LIBPNG
="-lpng -lz -lm"
10220 ### Use -ltiff if available, unless `--with-tiff=no'.
10223 if test "${HAVE_X11}" = "yes"; then
10224 if test "${with_tiff}" != "no"; then
10225 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10226 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10228 # At least one tiff package requires the jpeg library.
10229 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10231 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10235 ac_check_lib_save_LIBS
=$LIBS
10236 LIBS
="-ltiff $tifflibs $LIBS"
10237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10246 char TIFFGetVersion ();
10250 return TIFFGetVersion ();
10255 if ac_fn_c_try_link
"$LINENO"; then :
10256 ac_cv_lib_tiff_TIFFGetVersion
=yes
10258 ac_cv_lib_tiff_TIFFGetVersion
=no
10260 rm -f core conftest.err conftest.
$ac_objext \
10261 conftest
$ac_exeext conftest.
$ac_ext
10262 LIBS
=$ac_check_lib_save_LIBS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10265 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10266 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10275 if test "${HAVE_TIFF}" = "yes"; then
10277 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10284 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10287 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10288 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10289 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10290 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10291 # Earlier versions can crash Emacs.
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10293 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10294 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 ac_check_lib_save_LIBS
=$LIBS
10299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10308 char EGifPutExtensionLast ();
10312 return EGifPutExtensionLast ();
10317 if ac_fn_c_try_link
"$LINENO"; then :
10318 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10320 ac_cv_lib_gif_EGifPutExtensionLast
=no
10322 rm -f core conftest.err conftest.
$ac_objext \
10323 conftest
$ac_exeext conftest.
$ac_ext
10324 LIBS
=$ac_check_lib_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10327 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10328 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10338 if test "$HAVE_GIF" = yes; then
10340 elif test "$HAVE_GIF" = maybe
; then
10341 # If gif_lib.h but no libgif, try libungif.
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10343 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10347 ac_check_lib_save_LIBS
=$LIBS
10348 LIBS
="-lungif $LIBS"
10349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10358 char EGifPutExtensionLast ();
10362 return EGifPutExtensionLast ();
10367 if ac_fn_c_try_link
"$LINENO"; then :
10368 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10370 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10372 rm -f core conftest.err conftest.
$ac_objext \
10373 conftest
$ac_exeext conftest.
$ac_ext
10374 LIBS
=$ac_check_lib_save_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10377 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10378 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10384 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10387 if test "${HAVE_GIF}" = "yes"; then
10389 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10395 if test "${HAVE_X11}" = "yes"; then
10398 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10399 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10400 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10401 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10402 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10403 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10404 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10405 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10406 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10407 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10409 if test "X${MISSING}" != X
; then
10410 as_fn_error
"The following required libraries were not found:
10412 Maybe some development libraries/packages are missing?
10413 If you don't want to link with them give
10415 as options to configure" "$LINENO" 5
10419 ### Use -lgpm if available, unless `--with-gpm=no'.
10423 if test "${with_gpm}" != "no"; then
10424 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10425 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10427 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10428 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 ac_check_lib_save_LIBS
=$LIBS
10433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10446 return Gpm_Open ();
10451 if ac_fn_c_try_link
"$LINENO"; then :
10452 ac_cv_lib_gpm_Gpm_Open
=yes
10454 ac_cv_lib_gpm_Gpm_Open
=no
10456 rm -f core conftest.err conftest.
$ac_objext \
10457 conftest
$ac_exeext conftest.
$ac_ext
10458 LIBS
=$ac_check_lib_save_LIBS
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10461 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10462 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10470 if test "${HAVE_GPM}" = "yes"; then
10472 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10475 ## May be reset below.
10476 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
10481 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10482 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10484 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10491 ### Use NeXTstep API to implement GUI.
10492 if test "${HAVE_NS}" = "yes"; then
10494 $as_echo "#define HAVE_NS 1" >>confdefs.h
10496 if test "${NS_IMPL_COCOA}" = "yes"; then
10498 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10502 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10504 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10506 # See also .m.o rule in Makefile.in */
10507 # FIXME: are all these flags really needed? Document here why. */
10508 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
10509 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10511 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10513 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10516 # We also have mouse menus.
10522 ### Use session management (-lSM -lICE) if available
10525 if test "${HAVE_X11}" = "yes"; then
10526 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10527 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10529 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10530 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10533 ac_check_lib_save_LIBS
=$LIBS
10534 LIBS
="-lSM -lICE $LIBS"
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10544 char SmcOpenConnection ();
10548 return SmcOpenConnection ();
10553 if ac_fn_c_try_link
"$LINENO"; then :
10554 ac_cv_lib_SM_SmcOpenConnection
=yes
10556 ac_cv_lib_SM_SmcOpenConnection
=no
10558 rm -f core conftest.err conftest.
$ac_objext \
10559 conftest
$ac_exeext conftest.
$ac_ext
10560 LIBS
=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10563 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10564 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10572 if test "${HAVE_X_SM}" = "yes"; then
10574 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10576 LIBXSM
="-lSM -lICE"
10579 *) LIBS
="$LIBXSM $LIBS" ;;
10585 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10587 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10588 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10602 if ac_fn_c_try_link
"$LINENO"; then :
10603 emacs_cv_netdb_declares_h_errno
=yes
10605 emacs_cv_netdb_declares_h_errno
=no
10607 rm -f core conftest.err conftest.
$ac_objext \
10608 conftest
$ac_exeext conftest.
$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10611 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10612 if test $emacs_cv_netdb_declares_h_errno = yes; then
10614 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10619 # for constant arguments. Useless!
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10621 $as_echo_n "checking for working alloca.h... " >&6; }
10622 if test "${ac_cv_working_alloca_h+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <alloca.h>
10631 char *p = (char *) alloca (2 * sizeof (int));
10637 if ac_fn_c_try_link
"$LINENO"; then :
10638 ac_cv_working_alloca_h
=yes
10640 ac_cv_working_alloca_h
=no
10642 rm -f core conftest.err conftest.
$ac_objext \
10643 conftest
$ac_exeext conftest.
$ac_ext
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10646 $as_echo "$ac_cv_working_alloca_h" >&6; }
10647 if test $ac_cv_working_alloca_h = yes; then
10649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10654 $as_echo_n "checking for alloca... " >&6; }
10655 if test "${ac_cv_func_alloca_works+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10661 # define alloca __builtin_alloca
10664 # include <malloc.h>
10665 # define alloca _alloca
10667 # ifdef HAVE_ALLOCA_H
10668 # include <alloca.h>
10673 # ifndef alloca /* predefined by HP cc +Olibcalls */
10684 char *p = (char *) alloca (1);
10690 if ac_fn_c_try_link
"$LINENO"; then :
10691 ac_cv_func_alloca_works
=yes
10693 ac_cv_func_alloca_works
=no
10695 rm -f core conftest.err conftest.
$ac_objext \
10696 conftest
$ac_exeext conftest.
$ac_ext
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10699 $as_echo "$ac_cv_func_alloca_works" >&6; }
10701 if test $ac_cv_func_alloca_works = yes; then
10703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10707 # that cause trouble. Some versions do not even contain alloca or
10708 # contain a buggy version. If you still want to use their alloca,
10709 # use ar to extract alloca.o from them instead of compiling alloca.c.
10711 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10718 if test "${ac_cv_os_cray+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 #if defined CRAY && ! defined CRAY2
10730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10731 $EGREP "webecray" >/dev
/null
2>&1; then :
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10740 $as_echo "$ac_cv_os_cray" >&6; }
10741 if test $ac_cv_os_cray = yes; then
10742 for ac_func
in _getb67 GETB67 getb67
; do
10743 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10745 eval as_val
=\$
$as_ac_var
10746 if test "x$as_val" = x
""yes; then :
10748 cat >>confdefs.h
<<_ACEOF
10749 #define CRAY_STACKSEG_END $ac_func
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10759 $as_echo_n "checking stack direction for C alloca... " >&6; }
10760 if test "${ac_cv_c_stack_direction+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10763 if test "$cross_compiling" = yes; then :
10764 ac_cv_c_stack_direction
=0
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 $ac_includes_default
10770 find_stack_direction ()
10772 static char *addr = 0;
10777 return find_stack_direction ();
10780 return (&dummy > addr) ? 1 : -1;
10786 return find_stack_direction () < 0;
10789 if ac_fn_c_try_run
"$LINENO"; then :
10790 ac_cv_c_stack_direction
=1
10792 ac_cv_c_stack_direction
=-1
10794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10800 $as_echo "$ac_cv_c_stack_direction" >&6; }
10801 cat >>confdefs.h
<<_ACEOF
10802 #define STACK_DIRECTION $ac_cv_c_stack_direction
10809 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10810 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10813 # fmod, logb, and frexp are found in -lm on most systems.
10814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10816 $as_echo_n "checking for sqrt in -lm... " >&6; }
10817 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10820 ac_check_lib_save_LIBS
=$LIBS
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10840 if ac_fn_c_try_link
"$LINENO"; then :
10841 ac_cv_lib_m_sqrt
=yes
10843 ac_cv_lib_m_sqrt
=no
10845 rm -f core conftest.err conftest.
$ac_objext \
10846 conftest
$ac_exeext conftest.
$ac_ext
10847 LIBS
=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10850 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10851 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10852 cat >>confdefs.h
<<_ACEOF
10853 #define HAVE_LIBM 1
10861 # Check for mail-locking functions in a "mail" library. Probably this should
10862 # have the same check as for liblockfile below.
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10864 $as_echo_n "checking for maillock in -lmail... " >&6; }
10865 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10868 ac_check_lib_save_LIBS
=$LIBS
10869 LIBS
="-lmail $LIBS"
10870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10883 return maillock ();
10888 if ac_fn_c_try_link
"$LINENO"; then :
10889 ac_cv_lib_mail_maillock
=yes
10891 ac_cv_lib_mail_maillock
=no
10893 rm -f core conftest.err conftest.
$ac_objext \
10894 conftest
$ac_exeext conftest.
$ac_ext
10895 LIBS
=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10898 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10899 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10905 if test $have_mail = yes; then
10907 LIBS
="$LIBS_MAIL $LIBS"
10909 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10915 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10916 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10919 ac_check_lib_save_LIBS
=$LIBS
10920 LIBS
="-llockfile $LIBS"
10921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10934 return maillock ();
10939 if ac_fn_c_try_link
"$LINENO"; then :
10940 ac_cv_lib_lockfile_maillock
=yes
10942 ac_cv_lib_lockfile_maillock
=no
10944 rm -f core conftest.err conftest.
$ac_objext \
10945 conftest
$ac_exeext conftest.
$ac_ext
10946 LIBS
=$ac_check_lib_save_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10949 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10950 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10956 if test $have_lockfile = yes; then
10957 LIBS_MAIL
=-llockfile
10958 LIBS
="$LIBS_MAIL $LIBS"
10960 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10963 # If we have the shared liblockfile, assume we must use it for mail
10964 # locking (e.g. Debian). If we couldn't link against liblockfile
10965 # (no liblockfile.a installed), ensure that we don't need to.
10966 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10967 set dummy liblockfile.so
; ac_word
=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10973 if test -n "$liblockfile"; then
10974 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10977 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10978 for as_dir
in $as_dummy
10981 test -z "$as_dir" && as_dir
=.
10982 for ac_exec_ext
in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_prog_liblockfile
="yes"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10995 liblockfile
=$ac_cv_prog_liblockfile
10996 if test -n "$liblockfile"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10998 $as_echo "$liblockfile" >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11005 if test $ac_cv_prog_liblockfile = yes; then
11006 as_fn_error
"Shared liblockfile found but can't link against it.
11007 This probably means that movemail could lose mail.
11008 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11011 for ac_func
in touchlock
11013 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11014 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11015 cat >>confdefs.h
<<_ACEOF
11016 #define HAVE_TOUCHLOCK 1
11022 for ac_header
in maillock.h
11024 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11025 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11026 cat >>confdefs.h
<<_ACEOF
11027 #define HAVE_MAILLOCK_H 1
11036 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11037 ## interlock access to the mail spool. The alternative is a lock file named
11038 ## /usr/spool/mail/$USER.lock.
11041 aix4-2
) mail_lock
="lockf" ;;
11043 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11045 ## On GNU/Linux systems, both methods are used by various mail programs.
11046 ## I assume most people are using newer mailers that have heard of flock.
11047 ## Change this if you need to.
11048 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11049 ## configure gets the right answers, and that means *NOT* using flock.
11050 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11051 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11052 ## Debian maintainer hasn't provided a clean fix for Emacs.
11053 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11054 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11055 ## correct logic. -- fx
11056 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11057 ## liblockfile is a Free Software replacement for libmail, used on
11058 ## Debian systems and elsewhere. -rfr.
11061 if test $have_mail = yes ||
test $have_lockfile = yes; then
11062 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11068 case "$mail_lock" in
11070 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11074 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11077 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11082 for ac_func
in gethostname getdomainname dup2 \
11083 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11084 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11085 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11086 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11087 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11088 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11089 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11090 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11091 cfmakeraw cfsetspeed isnan copysign
11093 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11094 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11095 eval as_val
=\$
$as_ac_var
11096 if test "x$as_val" = x
""yes; then :
11097 cat >>confdefs.h
<<_ACEOF
11098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105 for ac_header
in sys
/un.h
11107 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11108 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11109 cat >>confdefs.h
<<_ACEOF
11110 #define HAVE_SYS_UN_H 1
11123 for ac_func
in $ac_func_list
11125 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11126 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11127 eval as_val
=\$
$as_ac_var
11128 if test "x$as_val" = x
""yes; then :
11129 cat >>confdefs.h
<<_ACEOF
11130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11141 $as_echo_n "checking for working mktime... " >&6; }
11142 if test "${ac_cv_func_working_mktime+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11145 if test "$cross_compiling" = yes; then :
11146 ac_cv_func_working_mktime
=no
11148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 /* Test program from Paul Eggert and Tony Leneis. */
11151 #ifdef TIME_WITH_SYS_TIME
11152 # include <sys/time.h>
11155 # ifdef HAVE_SYS_TIME_H
11156 # include <sys/time.h>
11162 #include <limits.h>
11163 #include <stdlib.h>
11165 #ifdef HAVE_UNISTD_H
11166 # include <unistd.h>
11170 # define alarm(X) /* empty */
11173 /* Work around redefinition to rpl_putenv by other config tests. */
11176 static time_t time_t_max;
11177 static time_t time_t_min;
11179 /* Values we'll use to set the TZ environment variable. */
11180 static char *tz_strings[] = {
11181 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11182 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11184 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11186 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11187 Based on a problem report from Andreas Jaeger. */
11189 spring_forward_gap ()
11191 /* glibc (up to about 1998-10-07) failed this test. */
11194 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11195 instead of "TZ=America/Vancouver" in order to detect the bug even
11196 on systems that don't support the Olson extension, or don't have the
11197 full zoneinfo tables installed. */
11198 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11207 return mktime (&tm) != (time_t) -1;
11215 return ! (lt = localtime (&now)) || mktime (lt) == now;
11222 return (mktime_test1 (now)
11223 && mktime_test1 ((time_t) (time_t_max - now))
11224 && mktime_test1 ((time_t) (time_t_min + now)));
11230 /* Based on code from Ariel Faigon. */
11240 return tm.tm_mon == 2 && tm.tm_mday == 31;
11249 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11250 now = mktime (&tm);
11251 if (now != (time_t) -1)
11253 struct tm *lt = localtime (&now);
11255 && lt->tm_year == tm.tm_year
11256 && lt->tm_mon == tm.tm_mon
11257 && lt->tm_mday == tm.tm_mday
11258 && lt->tm_hour == tm.tm_hour
11259 && lt->tm_min == tm.tm_min
11260 && lt->tm_sec == tm.tm_sec
11261 && lt->tm_yday == tm.tm_yday
11262 && lt->tm_wday == tm.tm_wday
11263 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11264 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11273 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11274 ignoring leap seconds. */
11275 unsigned long int answer = 2527315200UL;
11279 tm.tm_year = 2050 - 1900;
11282 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11285 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11286 instead of "TZ=America/Vancouver" in order to detect the bug even
11287 on systems that don't support the Olson extension, or don't have the
11288 full zoneinfo tables installed. */
11289 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11293 /* Check that the result is either a failure, or close enough
11294 to the correct answer that we can assume the discrepancy is
11295 due to leap seconds. */
11296 return (t == (time_t) -1
11297 || (0 < t && answer - 120 <= t && t <= answer + 120));
11306 /* This test makes some buggy mktime implementations loop.
11307 Give up after 60 seconds; a mktime slower than that
11308 isn't worth using anyway. */
11313 t = (time_t_max << 1) + 1;
11314 if (t <= time_t_max)
11318 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11320 delta = time_t_max / 997; /* a suitable prime number */
11321 for (i = 0; i < N_STRINGS; i++)
11324 putenv (tz_strings[i]);
11326 for (t = 0; t <= time_t_max - delta; t += delta)
11327 if (! mktime_test (t))
11329 if (! (mktime_test ((time_t) 1)
11330 && mktime_test ((time_t) (60 * 60))
11331 && mktime_test ((time_t) (60 * 60 * 24))))
11334 for (j = 1; ; j <<= 1)
11335 if (! bigtime_test (j))
11337 else if (INT_MAX / 2 < j)
11339 if (! bigtime_test (INT_MAX))
11342 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11345 if ac_fn_c_try_run
"$LINENO"; then :
11346 ac_cv_func_working_mktime
=yes
11348 ac_cv_func_working_mktime
=no
11350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11356 $as_echo "$ac_cv_func_working_mktime" >&6; }
11357 if test $ac_cv_func_working_mktime = no
; then
11358 case " $LIBOBJS " in
11359 *" mktime.$ac_objext "* ) ;;
11360 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11366 if test "$ac_cv_func_working_mktime" = no
; then
11368 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11372 ac_have_func
=no
# yes means we've found a way to get the load average.
11374 # Make sure getloadavg.c is where it belongs, at configure-time.
11375 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11376 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11380 # Check for getloadavg, but be sure not to touch the cache variable.
11381 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11382 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11387 ) && ac_have_func
=yes
11389 # On HPUX9, an unprivileged user can get load averages through this function.
11390 for ac_func
in pstat_getdynamic
11392 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11393 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11394 cat >>confdefs.h
<<_ACEOF
11395 #define HAVE_PSTAT_GETDYNAMIC 1
11402 # Solaris has libkstat which does not require root.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11404 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11408 ac_check_lib_save_LIBS
=$LIBS
11409 LIBS
="-lkstat $LIBS"
11410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11419 char kstat_open ();
11423 return kstat_open ();
11428 if ac_fn_c_try_link
"$LINENO"; then :
11429 ac_cv_lib_kstat_kstat_open
=yes
11431 ac_cv_lib_kstat_kstat_open
=no
11433 rm -f core conftest.err conftest.
$ac_objext \
11434 conftest
$ac_exeext conftest.
$ac_ext
11435 LIBS
=$ac_check_lib_save_LIBS
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11438 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11439 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11440 cat >>confdefs.h
<<_ACEOF
11441 #define HAVE_LIBKSTAT 1
11444 LIBS
="-lkstat $LIBS"
11448 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11450 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11451 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11452 # to get the right answer into the cache.
11453 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11454 if test $ac_have_func = no
; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11456 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11457 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11460 ac_check_lib_save_LIBS
=$LIBS
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11475 return elf_begin ();
11480 if ac_fn_c_try_link
"$LINENO"; then :
11481 ac_cv_lib_elf_elf_begin
=yes
11483 ac_cv_lib_elf_elf_begin
=no
11485 rm -f core conftest.err conftest.
$ac_objext \
11486 conftest
$ac_exeext conftest.
$ac_ext
11487 LIBS
=$ac_check_lib_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11490 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11491 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11496 if test $ac_have_func = no
; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11498 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11499 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11502 ac_check_lib_save_LIBS
=$LIBS
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11517 return kvm_open ();
11522 if ac_fn_c_try_link
"$LINENO"; then :
11523 ac_cv_lib_kvm_kvm_open
=yes
11525 ac_cv_lib_kvm_kvm_open
=no
11527 rm -f core conftest.err conftest.
$ac_objext \
11528 conftest
$ac_exeext conftest.
$ac_ext
11529 LIBS
=$ac_check_lib_save_LIBS
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11532 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11533 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11537 # Check for the 4.4BSD definition of getloadavg.
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11539 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11540 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11543 ac_check_lib_save_LIBS
=$LIBS
11544 LIBS
="-lutil $LIBS"
11545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11554 char getloadavg ();
11558 return getloadavg ();
11563 if ac_fn_c_try_link
"$LINENO"; then :
11564 ac_cv_lib_util_getloadavg
=yes
11566 ac_cv_lib_util_getloadavg
=no
11568 rm -f core conftest.err conftest.
$ac_objext \
11569 conftest
$ac_exeext conftest.
$ac_ext
11570 LIBS
=$ac_check_lib_save_LIBS
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11573 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11574 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11575 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11580 if test $ac_have_func = no
; then
11581 # There is a commonly available library for RS/6000 AIX.
11582 # Since it is not a standard part of AIX, it might be installed locally.
11583 ac_getloadavg_LIBS
=$LIBS
11584 LIBS
="-L/usr/local/lib $LIBS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11586 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11587 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11590 ac_check_lib_save_LIBS
=$LIBS
11591 LIBS
="-lgetloadavg $LIBS"
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11601 char getloadavg ();
11605 return getloadavg ();
11610 if ac_fn_c_try_link
"$LINENO"; then :
11611 ac_cv_lib_getloadavg_getloadavg
=yes
11613 ac_cv_lib_getloadavg_getloadavg
=no
11615 rm -f core conftest.err conftest.
$ac_objext \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 LIBS
=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11620 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11621 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11622 LIBS
="-lgetloadavg $LIBS"
11624 LIBS
=$ac_getloadavg_LIBS
11629 # Make sure it is really in the library, if we think we found it,
11630 # otherwise set up the replacement function.
11631 for ac_func
in getloadavg
11633 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11634 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11635 cat >>confdefs.h
<<_ACEOF
11636 #define HAVE_GETLOADAVG 1
11640 case " $LIBOBJS " in
11641 *" getloadavg.$ac_objext "* ) ;;
11642 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11647 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11649 # Figure out what our getloadavg.c needs.
11651 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11652 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11655 $as_echo "#define DGUX 1" >>confdefs.h
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11658 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11659 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11662 ac_check_lib_save_LIBS
=$LIBS
11664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11673 char dg_sys_info ();
11677 return dg_sys_info ();
11682 if ac_fn_c_try_link
"$LINENO"; then :
11683 ac_cv_lib_dgc_dg_sys_info
=yes
11685 ac_cv_lib_dgc_dg_sys_info
=no
11687 rm -f core conftest.err conftest.
$ac_objext \
11688 conftest
$ac_exeext conftest.
$ac_ext
11689 LIBS
=$ac_check_lib_save_LIBS
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11692 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11693 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11694 cat >>confdefs.h
<<_ACEOF
11695 #define HAVE_LIBDGC 1
11706 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11707 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11712 for ac_func
in setlocale
11714 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11715 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11716 cat >>confdefs.h
<<_ACEOF
11717 #define HAVE_SETLOCALE 1
11724 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11725 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11726 # Irix 4.0.5F has the header but not the library.
11727 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11730 $as_echo "#define SVR4 1" >>confdefs.h
11734 if test $ac_have_func = no
; then
11735 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11736 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11739 $as_echo "#define UMAX 1" >>confdefs.h
11742 $as_echo "#define UMAX4_3 1" >>confdefs.h
11749 if test $ac_have_func = no
; then
11750 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11751 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11752 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11759 if test $ac_have_func = no
; then
11760 for ac_header
in mach
/mach.h
11762 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11763 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11764 cat >>confdefs.h
<<_ACEOF
11765 #define HAVE_MACH_MACH_H 1
11774 for ac_header
in nlist.h
11776 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11777 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11778 cat >>confdefs.h
<<_ACEOF
11779 #define HAVE_NLIST_H 1
11781 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11783 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11785 cat >>confdefs.h
<<_ACEOF
11786 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11790 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11803 # Some definitions of getloadavg require that the program be installed setgid.
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11805 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11806 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11812 #ifdef LDAV_PRIVILEGED
11813 Yowza Am I SETGID yet
11816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11817 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11818 ac_cv_func_getloadavg_setgid
=yes
11820 ac_cv_func_getloadavg_setgid
=no
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11826 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11827 if test $ac_cv_func_getloadavg_setgid = yes; then
11830 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11836 if test $ac_cv_func_getloadavg_setgid = yes; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11838 $as_echo_n "checking group of /dev/kmem... " >&6; }
11839 if test "${ac_cv_group_kmem+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11843 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11844 # If we got an error (system does not support symlinks), try without -L.
11845 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11846 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11847 | sed -ne 's/[ ][ ]*/ /g;
11848 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11853 $as_echo "$ac_cv_group_kmem" >&6; }
11854 KMEM_GROUP
=$ac_cv_group_kmem
11856 if test "x$ac_save_LIBS" = x
; then
11857 GETLOADAVG_LIBS
=$LIBS
11859 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11866 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11867 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <sys/types.h> /* for off_t */
11878 int (*fp) (FILE *, off_t, int) = fseeko;
11879 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11884 if ac_fn_c_try_link
"$LINENO"; then :
11885 ac_cv_sys_largefile_source
=no
; break
11887 rm -f core conftest.err conftest.
$ac_objext \
11888 conftest
$ac_exeext conftest.
$ac_ext
11889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #define _LARGEFILE_SOURCE 1
11892 #include <sys/types.h> /* for off_t */
11897 int (*fp) (FILE *, off_t, int) = fseeko;
11898 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11903 if ac_fn_c_try_link
"$LINENO"; then :
11904 ac_cv_sys_largefile_source
=1; break
11906 rm -f core conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11908 ac_cv_sys_largefile_source
=unknown
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11913 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11914 case $ac_cv_sys_largefile_source in #(
11917 cat >>confdefs.h
<<_ACEOF
11918 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11924 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11925 # in glibc 2.1.3, but that breaks too many other things.
11926 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11927 if test $ac_cv_sys_largefile_source != unknown
; then
11929 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11934 # Configure getopt.
11935 # getopt.m4 serial 10
11937 # The getopt module assume you want GNU getopt, with getopt_long etc,
11938 # rather than vanilla POSIX getopt. This means your your code should
11939 # always include <getopt.h> for the getopt prototypes.
11951 # Prerequisites of lib/getopt*.
11957 for ac_header
in getopt.h
11959 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11960 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11961 cat >>confdefs.h
<<_ACEOF
11962 #define HAVE_GETOPT_H 1
11971 if test -z "$GETOPT_H"; then
11972 for ac_func
in getopt_long_only
11974 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11975 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11976 cat >>confdefs.h
<<_ACEOF
11977 #define HAVE_GETOPT_LONG_ONLY 1
11987 if test -z "$GETOPT_H"; then
11988 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11990 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11996 if test -z "$GETOPT_H"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11998 $as_echo_n "checking for working GNU getopt function... " >&6; }
11999 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12002 if test "$cross_compiling" = yes; then :
12003 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12005 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12006 gl_cv_func_gnu_getopt
=no
12008 gl_cv_func_gnu_getopt
=yes
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <getopt.h>
12020 myargv[0] = "conftest";
12023 return getopt (2, myargv, "+a") != '?';
12029 if ac_fn_c_try_run
"$LINENO"; then :
12030 gl_cv_func_gnu_getopt
=yes
12032 gl_cv_func_gnu_getopt
=no
12034 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12035 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12040 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12041 if test "$gl_cv_func_gnu_getopt" = "no"; then
12048 if test -n "$GETOPT_H"; then :
12053 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12058 GETOPTOBJS
='getopt.o getopt1.o'
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12065 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12066 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 # Use it with a single arg.
12070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 $ac_includes_default
12081 if ac_fn_c_try_compile
"$LINENO"; then :
12082 ac_cv_func_getpgrp_void
=no
12084 ac_cv_func_getpgrp_void
=yes
12086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12090 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12091 if test $ac_cv_func_getpgrp_void = yes; then
12093 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12098 for ac_func
in strftime
12100 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12101 if test "x$ac_cv_func_strftime" = x
""yes; then :
12102 cat >>confdefs.h
<<_ACEOF
12103 #define HAVE_STRFTIME 1
12107 # strftime is in -lintl on SCO UNIX.
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12109 $as_echo_n "checking for strftime in -lintl... " >&6; }
12110 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12113 ac_check_lib_save_LIBS
=$LIBS
12114 LIBS
="-lintl $LIBS"
12115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12128 return strftime ();
12133 if ac_fn_c_try_link
"$LINENO"; then :
12134 ac_cv_lib_intl_strftime
=yes
12136 ac_cv_lib_intl_strftime
=no
12138 rm -f core conftest.err conftest.
$ac_objext \
12139 conftest
$ac_exeext conftest.
$ac_ext
12140 LIBS
=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12143 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12144 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12145 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12147 LIBS
="-lintl $LIBS"
12155 for ac_func
in grantpt
12157 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12158 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12159 cat >>confdefs.h
<<_ACEOF
12160 #define HAVE_GRANTPT 1
12167 # PTY-related GNU extensions.
12168 for ac_func
in getpt
12170 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12171 if test "x$ac_cv_func_getpt" = x
""yes; then :
12172 cat >>confdefs.h
<<_ACEOF
12173 #define HAVE_GETPT 1
12180 # Check this now, so that we will NOT find the above functions in ncurses.
12181 # That is because we have not set up to link ncurses in lib-src.
12182 # It's better to believe a function is not available
12183 # than to expect to find it in ncurses.
12184 # Also we need tputs and friends to be able to build at all.
12185 have_tputs_et_al
=true
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12187 $as_echo_n "checking for library containing tputs... " >&6; }
12188 if test "${ac_cv_search_tputs+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12191 ac_func_search_save_LIBS
=$LIBS
12192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12210 for ac_lib
in '' ncurses terminfo termcap
; do
12211 if test -z "$ac_lib"; then
12212 ac_res
="none required"
12215 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12217 if ac_fn_c_try_link
"$LINENO"; then :
12218 ac_cv_search_tputs
=$ac_res
12220 rm -f core conftest.err conftest.
$ac_objext \
12222 if test "${ac_cv_search_tputs+set}" = set; then :
12226 if test "${ac_cv_search_tputs+set}" = set; then :
12229 ac_cv_search_tputs
=no
12231 rm conftest.
$ac_ext
12232 LIBS
=$ac_func_search_save_LIBS
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12235 $as_echo "$ac_cv_search_tputs" >&6; }
12236 ac_res
=$ac_cv_search_tputs
12237 if test "$ac_res" != no
; then :
12238 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12241 have_tputs_et_al
=false
12244 if test "$have_tputs_et_al" != true
; then
12245 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12246 Maybe some development libraries/packages are missing? Try installing
12247 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12249 # Must define this when any termcap library is found.
12251 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12253 ## FIXME This was the cpp logic, but I am not sure it is right.
12254 ## The above test has not necessarily found libncurses.
12255 HAVE_LIBNCURSES
=yes
12257 ## Use terminfo instead of termcap?
12258 ## Note only system files NOT using terminfo are:
12259 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12260 ## darwin|gnu without ncurses.
12264 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12265 ## hpux10-20: Use the system provided termcap(3) library.
12266 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12267 ## is necessary. Otherwise Emacs dumps core when run -nw.
12268 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
12270 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12271 ## The ncurses library has been moved out of the System framework in
12272 ## Mac OS X 10.2. So if configure detects it, set the command-line
12273 ## option to use it.
12275 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12276 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12278 LIBS_TERMCAP
="-lncurses"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12284 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12285 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #include <osreldate.h>
12294 #if __FreeBSD_version < 400000
12302 if ac_fn_c_try_link
"$LINENO"; then :
12303 emacs_cv_freebsd_terminfo
=yes
12305 emacs_cv_freebsd_terminfo
=no
12307 rm -f core conftest.err conftest.
$ac_objext \
12308 conftest
$ac_exeext conftest.
$ac_ext
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12313 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12315 if test $emacs_cv_freebsd_terminfo = yes; then
12317 LIBS_TERMCAP
="-lncurses"
12319 LIBS_TERMCAP
="-ltermcap"
12324 if test $ac_cv_search_tputs = -lterminfo; then
12326 LIBS_TERMCAP
="-lterminfo"
12328 LIBS_TERMCAP
="-ltermcap"
12335 ## hpux: Make sure we get select from libc rather than from libcurses
12336 ## because libcurses on HPUX 10.10 has a broken version of select.
12337 ## We used to use -lc -lcurses, but this may be cleaner.
12338 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
12340 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
12342 ## Must use system termcap, if we use any termcap. It does special things.
12343 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
12346 TERMCAP_OBJ
=tparam.o
12347 if test $TERMINFO = yes; then
12349 $as_echo "#define TERMINFO 1" >>confdefs.h
12352 ## Default used to be -ltermcap. Add a case above if need something else.
12353 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
12355 TERMCAP_OBJ
=terminfo.o
12361 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 #include <netinet/in.h>
12366 #include <arpa/nameser.h>
12367 #include <resolv.h>
12376 if ac_fn_c_try_link
"$LINENO"; then :
12381 rm -f core conftest.err conftest.
$ac_objext \
12382 conftest
$ac_exeext conftest.
$ac_ext
12383 if test "$have_res_init" = no
; then
12385 LIBS
="$LIBS -lresolv"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12387 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390 #include <netinet/in.h>
12391 #include <arpa/nameser.h>
12392 #include <resolv.h>
12401 if ac_fn_c_try_link
"$LINENO"; then :
12406 rm -f core conftest.err conftest.
$ac_objext \
12407 conftest
$ac_exeext conftest.
$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12409 $as_echo "$have_res_init" >&6; }
12410 if test "$have_res_init" = yes ; then
12416 if test "$have_res_init" = yes; then
12418 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12422 # Do we need the Hesiod library to provide the support routines?
12424 if test "$with_hesiod" != no
; then
12425 # Don't set $LIBS here -- see comments above. FIXME which comments?
12426 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12427 if test "x$ac_cv_func_res_send" = x
""yes; then :
12430 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12431 if test "x$ac_cv_func___res_send" = x
""yes; then :
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12435 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12436 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12439 ac_check_lib_save_LIBS
=$LIBS
12440 LIBS
="-lresolv $LIBS"
12441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12454 return res_send ();
12459 if ac_fn_c_try_link
"$LINENO"; then :
12460 ac_cv_lib_resolv_res_send
=yes
12462 ac_cv_lib_resolv_res_send
=no
12464 rm -f core conftest.err conftest.
$ac_objext \
12465 conftest
$ac_exeext conftest.
$ac_ext
12466 LIBS
=$ac_check_lib_save_LIBS
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12469 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12470 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12474 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12475 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12478 ac_check_lib_save_LIBS
=$LIBS
12479 LIBS
="-lresolv $LIBS"
12480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12489 char __res_send ();
12493 return __res_send ();
12498 if ac_fn_c_try_link
"$LINENO"; then :
12499 ac_cv_lib_resolv___res_send
=yes
12501 ac_cv_lib_resolv___res_send
=no
12503 rm -f core conftest.err conftest.
$ac_objext \
12504 conftest
$ac_exeext conftest.
$ac_ext
12505 LIBS
=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12508 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12509 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12519 if test "$resolv" = yes ; then
12524 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12525 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12529 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12530 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12533 ac_check_lib_save_LIBS
=$LIBS
12534 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12544 char hes_getmailhost ();
12548 return hes_getmailhost ();
12553 if ac_fn_c_try_link
"$LINENO"; then :
12554 ac_cv_lib_hesiod_hes_getmailhost
=yes
12556 ac_cv_lib_hesiod_hes_getmailhost
=no
12558 rm -f core conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12560 LIBS
=$ac_check_lib_save_LIBS
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12563 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12564 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12573 if test x
"$hesiod" = xyes
; then
12575 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12582 # Do we need libresolv (due to res_init or Hesiod)?
12583 if test "$resolv" = yes ; then
12585 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12593 # These tell us which Kerberos-related libraries to use.
12600 if test "${with_kerberos}" != no
; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12602 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12603 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12606 ac_check_lib_save_LIBS
=$LIBS
12607 LIBS
="-lcom_err $LIBS"
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12626 if ac_fn_c_try_link
"$LINENO"; then :
12627 ac_cv_lib_com_err_com_err
=yes
12629 ac_cv_lib_com_err_com_err
=no
12631 rm -f core conftest.err conftest.
$ac_objext \
12632 conftest
$ac_exeext conftest.
$ac_ext
12633 LIBS
=$ac_check_lib_save_LIBS
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12636 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12637 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12643 if test $have_com_err = yes; then
12644 COM_ERRLIB
=-lcom_err
12645 LIBS
="$COM_ERRLIB $LIBS"
12647 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12651 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12652 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12655 ac_check_lib_save_LIBS
=$LIBS
12656 LIBS
="-lcrypto $LIBS"
12657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12666 char mit_des_cbc_encrypt ();
12670 return mit_des_cbc_encrypt ();
12675 if ac_fn_c_try_link
"$LINENO"; then :
12676 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12678 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12680 rm -f core conftest.err conftest.
$ac_objext \
12681 conftest
$ac_exeext conftest.
$ac_ext
12682 LIBS
=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12685 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12686 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12692 if test $have_crypto = yes; then
12694 LIBS
="$CRYPTOLIB $LIBS"
12696 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12700 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12701 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 ac_check_lib_save_LIBS
=$LIBS
12705 LIBS
="-lk5crypto $LIBS"
12706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12715 char mit_des_cbc_encrypt ();
12719 return mit_des_cbc_encrypt ();
12724 if ac_fn_c_try_link
"$LINENO"; then :
12725 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12727 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12729 rm -f core conftest.err conftest.
$ac_objext \
12730 conftest
$ac_exeext conftest.
$ac_ext
12731 LIBS
=$ac_check_lib_save_LIBS
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12734 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12735 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12741 if test $have_k5crypto = yes; then
12742 CRYPTOLIB
=-lk5crypto
12743 LIBS
="$CRYPTOLIB $LIBS"
12745 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12749 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12750 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12753 ac_check_lib_save_LIBS
=$LIBS
12754 LIBS
="-lkrb5 $LIBS"
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12764 char krb5_init_context ();
12768 return krb5_init_context ();
12773 if ac_fn_c_try_link
"$LINENO"; then :
12774 ac_cv_lib_krb5_krb5_init_context
=yes
12776 ac_cv_lib_krb5_krb5_init_context
=no
12778 rm -f core conftest.err conftest.
$ac_objext \
12779 conftest
$ac_exeext conftest.
$ac_ext
12780 LIBS
=$ac_check_lib_save_LIBS
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12783 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12784 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12790 if test $have_krb5=yes; then
12792 LIBS
="$KRB5LIB $LIBS"
12794 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12797 if test "${with_kerberos5}" = no
; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12799 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12800 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12803 ac_check_lib_save_LIBS
=$LIBS
12804 LIBS
="-ldes425 $LIBS"
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12814 char des_cbc_encrypt ();
12818 return des_cbc_encrypt ();
12823 if ac_fn_c_try_link
"$LINENO"; then :
12824 ac_cv_lib_des425_des_cbc_encrypt
=yes
12826 ac_cv_lib_des425_des_cbc_encrypt
=no
12828 rm -f core conftest.err conftest.
$ac_objext \
12829 conftest
$ac_exeext conftest.
$ac_ext
12830 LIBS
=$ac_check_lib_save_LIBS
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12833 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12834 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12840 if test $have_des425 = yes; then
12842 LIBS
="$DESLIB $LIBS"
12844 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12848 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12849 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12852 ac_check_lib_save_LIBS
=$LIBS
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12863 char des_cbc_encrypt ();
12867 return des_cbc_encrypt ();
12872 if ac_fn_c_try_link
"$LINENO"; then :
12873 ac_cv_lib_des_des_cbc_encrypt
=yes
12875 ac_cv_lib_des_des_cbc_encrypt
=no
12877 rm -f core conftest.err conftest.
$ac_objext \
12878 conftest
$ac_exeext conftest.
$ac_ext
12879 LIBS
=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12882 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12883 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12889 if test $have_des = yes; then
12891 LIBS
="$DESLIB $LIBS"
12893 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12898 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12899 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12902 ac_check_lib_save_LIBS
=$LIBS
12903 LIBS
="-lkrb4 $LIBS"
12904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12913 char krb_get_cred ();
12917 return krb_get_cred ();
12922 if ac_fn_c_try_link
"$LINENO"; then :
12923 ac_cv_lib_krb4_krb_get_cred
=yes
12925 ac_cv_lib_krb4_krb_get_cred
=no
12927 rm -f core conftest.err conftest.
$ac_objext \
12928 conftest
$ac_exeext conftest.
$ac_ext
12929 LIBS
=$ac_check_lib_save_LIBS
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12932 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12933 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12939 if test $have_krb4 = yes; then
12941 LIBS
="$KRB4LIB $LIBS"
12943 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12947 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12948 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12951 ac_check_lib_save_LIBS
=$LIBS
12953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12962 char krb_get_cred ();
12966 return krb_get_cred ();
12971 if ac_fn_c_try_link
"$LINENO"; then :
12972 ac_cv_lib_krb_krb_get_cred
=yes
12974 ac_cv_lib_krb_krb_get_cred
=no
12976 rm -f core conftest.err conftest.
$ac_objext \
12977 conftest
$ac_exeext conftest.
$ac_ext
12978 LIBS
=$ac_check_lib_save_LIBS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12981 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12982 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12988 if test $have_krb = yes; then
12990 LIBS
="$KRB4LIB $LIBS"
12992 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12998 if test "${with_kerberos5}" != no
; then
12999 for ac_header
in krb5.h
13001 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13002 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13003 cat >>confdefs.h
<<_ACEOF
13004 #define HAVE_KRB5_H 1
13006 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13008 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13010 cat >>confdefs.h
<<_ACEOF
13011 #define HAVE_KRB5_ERROR_TEXT 1
13016 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13018 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13020 cat >>confdefs.h
<<_ACEOF
13021 #define HAVE_KRB5_ERROR_E_TEXT 1
13032 for ac_header
in des.h
13034 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13035 if test "x$ac_cv_header_des_h" = x
""yes; then :
13036 cat >>confdefs.h
<<_ACEOF
13037 #define HAVE_DES_H 1
13041 for ac_header
in kerberosIV
/des.h
13043 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13044 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13045 cat >>confdefs.h
<<_ACEOF
13046 #define HAVE_KERBEROSIV_DES_H 1
13050 for ac_header
in kerberos
/des.h
13052 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13054 cat >>confdefs.h
<<_ACEOF
13055 #define HAVE_KERBEROS_DES_H 1
13070 for ac_header
in krb.h
13072 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13073 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13074 cat >>confdefs.h
<<_ACEOF
13075 #define HAVE_KRB_H 1
13079 for ac_header
in kerberosIV
/krb.h
13081 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13082 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13083 cat >>confdefs.h
<<_ACEOF
13084 #define HAVE_KERBEROSIV_KRB_H 1
13088 for ac_header
in kerberos
/krb.h
13090 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13091 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13092 cat >>confdefs.h
<<_ACEOF
13093 #define HAVE_KERBEROS_KRB_H 1
13109 for ac_header
in com_err.h
13111 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13112 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_COM_ERR_H 1
13129 # Solaris requires -lintl if you want strerror (which calls dgettext)
13130 # to return localized messages.
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13132 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13133 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 ac_check_lib_save_LIBS
=$LIBS
13137 LIBS
="-lintl $LIBS"
13138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13151 return dgettext ();
13156 if ac_fn_c_try_link
"$LINENO"; then :
13157 ac_cv_lib_intl_dgettext
=yes
13159 ac_cv_lib_intl_dgettext
=no
13161 rm -f core conftest.err conftest.
$ac_objext \
13162 conftest
$ac_exeext conftest.
$ac_ext
13163 LIBS
=$ac_check_lib_save_LIBS
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13166 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13167 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13168 cat >>confdefs.h
<<_ACEOF
13169 #define HAVE_LIBINTL 1
13172 LIBS
="-lintl $LIBS"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13178 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13179 if test "${emacs_cv_localtime_cache+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 if test x
$ac_cv_func_tzset = xyes
; then
13183 if test "$cross_compiling" = yes; then :
13184 # If we have tzset, assume the worst when cross-compiling.
13185 emacs_cv_localtime_cache
=yes
13187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 extern char **environ;
13194 for (to = from = environ; (*to = *from); from++)
13195 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13198 char TZ_GMT0[] = "TZ=GMT0";
13199 char TZ_PST8[] = "TZ=PST8";
13202 time_t now = time ((time_t *) 0);
13203 int hour_GMT0, hour_unset;
13204 if (putenv (TZ_GMT0) != 0)
13206 hour_GMT0 = localtime (&now)->tm_hour;
13208 hour_unset = localtime (&now)->tm_hour;
13209 if (putenv (TZ_PST8) != 0)
13211 if (localtime (&now)->tm_hour == hour_GMT0)
13214 if (localtime (&now)->tm_hour != hour_unset)
13219 if ac_fn_c_try_run
"$LINENO"; then :
13220 emacs_cv_localtime_cache
=no
13222 emacs_cv_localtime_cache
=yes
13224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13229 # If we lack tzset, report that localtime does not cache TZ,
13230 # since we can't invalidate the cache if we don't have tzset.
13231 emacs_cv_localtime_cache
=no
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13235 $as_echo "$emacs_cv_localtime_cache" >&6; }
13236 if test $emacs_cv_localtime_cache = yes; then
13238 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13242 if test "x$HAVE_TIMEVAL" = xyes
; then
13243 for ac_func
in gettimeofday
13245 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13246 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13247 cat >>confdefs.h
<<_ACEOF
13248 #define HAVE_GETTIMEOFDAY 1
13254 if test $ac_cv_func_gettimeofday = yes; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13256 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13257 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 #ifdef TIME_WITH_SYS_TIME
13264 #include <sys/time.h>
13267 #ifdef HAVE_SYS_TIME_H
13268 #include <sys/time.h>
13276 struct timeval time;
13277 gettimeofday (&time, 0);
13282 if ac_fn_c_try_compile
"$LINENO"; then :
13283 emacs_cv_gettimeofday_two_arguments
=yes
13285 emacs_cv_gettimeofday_two_arguments
=no
13287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13290 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13291 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13293 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13300 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13301 if test "x$ac_cv_func_socket" = x
""yes; then :
13307 if test $ok_so_far = yes; then
13308 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13309 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13317 if test $ok_so_far = yes; then
13318 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13319 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13327 if test $ok_so_far = yes; then
13329 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13333 for ac_header
in sys
/ioctl.h
13335 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13336 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13337 cat >>confdefs.h
<<_ACEOF
13338 #define HAVE_SYS_IOCTL_H 1
13346 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13348 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13353 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13354 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13358 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13365 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13366 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13370 cat >>confdefs.h
<<_ACEOF
13376 for ac_header
in vfork.h
13378 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13379 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13380 cat >>confdefs.h
<<_ACEOF
13381 #define HAVE_VFORK_H 1
13388 for ac_func
in fork vfork
13390 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13391 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13392 eval as_val
=\$
$as_ac_var
13393 if test "x$as_val" = x
""yes; then :
13394 cat >>confdefs.h
<<_ACEOF
13395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13401 if test "x$ac_cv_func_fork" = xyes
; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13403 $as_echo_n "checking for working fork... " >&6; }
13404 if test "${ac_cv_func_fork_works+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13407 if test "$cross_compiling" = yes; then :
13408 ac_cv_func_fork_works
=cross
13410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 $ac_includes_default
13417 /* By Ruediger Kuhlmann. */
13418 return fork () < 0;
13424 if ac_fn_c_try_run
"$LINENO"; then :
13425 ac_cv_func_fork_works
=yes
13427 ac_cv_func_fork_works
=no
13429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13435 $as_echo "$ac_cv_func_fork_works" >&6; }
13438 ac_cv_func_fork_works
=$ac_cv_func_fork
13440 if test "x$ac_cv_func_fork_works" = xcross
; then
13442 *-*-amigaos* |
*-*-msdosdjgpp*)
13443 # Override, as these systems have only a dummy fork() stub
13444 ac_cv_func_fork_works
=no
13447 ac_cv_func_fork_works
=yes
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13451 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13453 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13454 if test "x$ac_cv_func_vfork" = xyes
; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13456 $as_echo_n "checking for working vfork... " >&6; }
13457 if test "${ac_cv_func_vfork_works+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13460 if test "$cross_compiling" = yes; then :
13461 ac_cv_func_vfork_works
=cross
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 /* Thanks to Paul Eggert for this test. */
13466 $ac_includes_default
13467 #include <sys/wait.h>
13468 #ifdef HAVE_VFORK_H
13469 # include <vfork.h>
13471 /* On some sparc systems, changes by the child to local and incoming
13472 argument registers are propagated back to the parent. The compiler
13473 is told about this with #include <vfork.h>, but some compilers
13474 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13475 static variable whose address is put into a register that is
13476 clobbered by the vfork. */
13479 sparc_address_test (int arg)
13481 sparc_address_test (arg) int arg;
13484 static pid_t child;
13502 pid_t parent = getpid ();
13505 sparc_address_test (0);
13510 /* Here is another test for sparc vfork register problems. This
13511 test uses lots of local variables, at least as many local
13512 variables as main has allocated so far including compiler
13513 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13514 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13515 reuse the register of parent for one of the local variables,
13516 since it will think that parent can't possibly be used any more
13517 in this routine. Assigning to the local variable will thus
13518 munge parent in the parent process. */
13520 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13521 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13522 /* Convince the compiler that p..p7 are live; otherwise, it might
13523 use the same hardware register for all 8 local variables. */
13524 if (p != p1 || p != p2 || p != p3 || p != p4
13525 || p != p5 || p != p6 || p != p7)
13528 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13529 from child file descriptors. If the child closes a descriptor
13530 before it execs or exits, this munges the parent's descriptor
13531 as well. Test for this by closing stdout in the child. */
13532 _exit(close(fileno(stdout)) != 0);
13537 while (wait(&status) != child)
13540 /* Was there some problem with vforking? */
13543 /* Did the child fail? (This shouldn't happen.) */
13546 /* Did the vfork/compiler bug occur? */
13547 || parent != getpid()
13549 /* Did the file descriptor bug occur? */
13550 || fstat(fileno(stdout), &st) != 0
13555 if ac_fn_c_try_run
"$LINENO"; then :
13556 ac_cv_func_vfork_works
=yes
13558 ac_cv_func_vfork_works
=no
13560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13566 $as_echo "$ac_cv_func_vfork_works" >&6; }
13569 if test "x$ac_cv_func_fork_works" = xcross
; then
13570 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13572 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13575 if test "x$ac_cv_func_vfork_works" = xyes
; then
13577 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13581 $as_echo "#define vfork fork" >>confdefs.h
13584 if test "x$ac_cv_func_fork_works" = xyes
; then
13586 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13592 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13593 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 #include <langinfo.h>
13602 char* cs = nl_langinfo(CODESET);
13607 if ac_fn_c_try_link
"$LINENO"; then :
13608 emacs_cv_langinfo_codeset
=yes
13610 emacs_cv_langinfo_codeset
=no
13612 rm -f core conftest.err conftest.
$ac_objext \
13613 conftest
$ac_exeext conftest.
$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13617 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13618 if test $emacs_cv_langinfo_codeset = yes; then
13620 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13624 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13625 if test "x$ac_cv_type_size_t" = x
""yes; then :
13627 cat >>confdefs.h
<<_ACEOF
13628 #define HAVE_SIZE_T 1
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13636 $as_echo_n "checking for mbstate_t... " >&6; }
13637 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 $ac_includes_default
13643 # include <wchar.h>
13647 mbstate_t x; return sizeof x;
13652 if ac_fn_c_try_compile
"$LINENO"; then :
13653 ac_cv_type_mbstate_t
=yes
13655 ac_cv_type_mbstate_t
=no
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13660 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13661 if test $ac_cv_type_mbstate_t = yes; then
13663 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13667 $as_echo "#define mbstate_t int" >>confdefs.h
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13672 $as_echo_n "checking for C restrict keyword... " >&6; }
13673 if test "${emacs_cv_c_restrict+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 void fred (int *restrict x);
13687 if ac_fn_c_try_compile
"$LINENO"; then :
13688 emacs_cv_c_restrict
=yes
13690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 void fred (int *__restrict x);
13701 if ac_fn_c_try_compile
"$LINENO"; then :
13702 emacs_cv_c_restrict
=__restrict
13704 emacs_cv_c_restrict
=no
13706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13711 $as_echo "$emacs_cv_c_restrict" >&6; }
13712 case "$emacs_cv_c_restrict" in
13713 yes) emacs_restrict
=restrict
;;
13714 no
) emacs_restrict
="";;
13715 *) emacs_restrict
="$emacs_cv_c_restrict";;
13717 if test "$emacs_restrict" != __restrict
; then
13719 cat >>confdefs.h
<<_ACEOF
13720 #define __restrict $emacs_restrict
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13726 $as_echo_n "checking for C restricted array declarations... " >&6; }
13727 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 void fred (int x[__restrict]);
13741 if ac_fn_c_try_compile
"$LINENO"; then :
13742 emacs_cv_c_restrict_arr
=yes
13744 emacs_cv_c_restrict_arr
=no
13746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13749 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13750 if test "$emacs_cv_c_restrict_arr" = yes; then
13752 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13758 # Set up the CFLAGS for real compilation, so we can substitute it.
13759 CFLAGS
="$REAL_CFLAGS"
13760 CPPFLAGS
="$REAL_CPPFLAGS"
13762 ## Hack to detect a buggy GCC version.
13763 if test "x$GCC" = xyes \
13764 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13765 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13766 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13767 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13770 #### Find out which version of Emacs this is.
13771 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13772 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13773 if test x
"${version}" = x
; then
13774 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13776 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13778 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13781 ### Specify what sort of things we'll be editing into Makefile and config.h.
13782 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13806 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13807 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13808 ## end of LIBX_BASE, but nothing ever set it.
13813 ## Used in lwlib/Makefile.in.
13826 cat >>confdefs.h <<_ACEOF
13827 #define EMACS_CONFIGURATION "${canonical}"
13831 cat >>confdefs.h <<_ACEOF
13832 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13836 cat >>confdefs.h <<_ACEOF
13837 #define config_machfile "${machfile}"
13841 cat >>confdefs.h <<_ACEOF
13842 #define config_opsysfile "${opsysfile}"
13849 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13851 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13854 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13856 if test "$HAVE_XFT" = "yes"; then
13857 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13858 elif test "$HAVE_FREETYPE" = "yes"; then
13859 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
13869 if test "${USE_X_TOOLKIT}" != "none" ; then
13870 WIDGET_OBJ
=widget.o
13872 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13874 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13876 $as_echo "#define USE_LUCID 1" >>confdefs.h
13878 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13880 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13885 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13886 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
13890 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13891 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13892 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
13896 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13897 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
13900 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
13906 case "$USE_X_TOOLKIT" in
13907 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
13908 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
13909 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
13913 if test "$USE_X_TOOLKIT" = "none"; then
13914 LIBXT_OTHER
="\$(LIBXSM)"
13915 OLDXMENU_TARGET
="really-oldXMenu"
13917 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13918 OLDXMENU_TARGET
="really-lwlib"
13922 ## The X Menu stuff is present in the X10 distribution, but missing
13923 ## from X11. If we have X10, just use the installed library;
13924 ## otherwise, use our own copy.
13925 if test "${HAVE_X11}" = "yes" ; then
13927 $as_echo "#define HAVE_X11 1" >>confdefs.h
13930 if test "$USE_X_TOOLKIT" = "none"; then
13931 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
13933 OLDXMENU
="\${lwlibdir}liblw.a"
13935 LIBXMENU
="\$(OLDXMENU)"
13936 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
13937 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
13939 ## For a syntactically valid Makefile; not actually used for anything.
13940 ## See comments in src/Makefile.in.
13942 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
13943 if test "${HAVE_X_WINDOWS}" = "yes"; then
13952 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
13965 if test "${HAVE_MENUS}" = "yes" ; then
13967 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13971 if test "${GNU_MALLOC}" = "yes" ; then
13973 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13978 if test "${REL_ALLOC}" = "yes" ; then
13980 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13983 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
13987 if test "$opsys" = "cygwin"; then
13988 CYGWIN_OBJ
="sheap.o"
13989 ## Cygwin differs because of its unexec().
13991 POST_ALLOC_OBJ
=lastfile.o
13994 PRE_ALLOC_OBJ
=lastfile.o
14003 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14006 ## The -headerpad option tells ld (see man page) to leave room at the
14007 ## end of the header for adding load commands. Needed for dumping.
14008 ## 0x690 is the total size of 30 segment load commands (at 56
14009 ## each); under Cocoa 31 commands are required.
14010 if test "$HAVE_NS" = "yes"; then
14011 libs_nsgui
="-framework AppKit"
14012 headerpad_extra
=6C8
14015 headerpad_extra
=690
14017 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14019 ## This is here because src/Makefile.in did some extra fiddling around
14020 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14021 ## #ifndef LD_SWITCH_SYSTEM
14022 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14023 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14024 ## not using gcc, darwin system not on an alpha (ie darwin, since
14025 ## darwin + alpha does not occur).
14026 ## Because this was done in src/Makefile.in, the resulting part of
14027 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14028 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14029 ## rather than LD_SWITCH_SYSTEM.
14030 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14031 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14034 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14035 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14036 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14037 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14038 ## had different values in configure (in ac_link) and src/Makefile.in.
14039 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14040 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14042 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14045 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14046 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14055 ## gnu: GNU needs its own crt0.
14056 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14058 cygwin
) LINKER
="\$(CC)" ;;
14060 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14061 ## library search parth, i.e. it won't search /usr/lib for libc and
14062 ## friends. Using -nostartfiles instead avoids this problem, and
14063 ## will also work on earlier NetBSD releases.
14064 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
14066 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14067 ## MkLinux/LinuxPPC needs this.
14068 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14071 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
14079 if test "x$ORDINARY_LINK" = "xyes"; then
14083 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14086 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14087 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14088 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14090 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14091 ## places that are difficult to figure out at make time. Fortunately,
14092 ## these same versions allow you to pass arbitrary flags on to the
14093 ## linker, so there is no reason not to use it as a linker.
14095 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14096 ## searching for libraries in its internal directories, so we have to
14097 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14098 LINKER
="\$(CC) -nostdlib"
14099 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
14100 ## See prefix-args.c for an explanation of why we do not do this with the
14101 ## shell''s ``for'' construct. Note that sane people do not have '.' in
14102 ## their paths, so we must use ./prefix-args.
14103 ## TODO either make prefix-args check ORDINARY_LINK internally,
14104 ## or remove it altogether (bug#6184), removing the need for this hack.
14105 PRE_EDIT_LDFLAGS
='`./prefix-args -Xlinker'
14106 POST_EDIT_LDFLAGS
='`'
14111 test "x$LINKER" = "x" && LINKER
=ld
14112 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14113 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
14118 ## FIXME? The logic here is not precisely the same as that above.
14119 ## There is no check here for a pre-defined LINKER.
14120 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14122 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14125 ## cygwin: don't link against static libgcc.
14126 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14129 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14130 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14131 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14132 if test "$machine" = "arm"; then
14135 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14136 ## immediately undefine it again and redefine it to empty.
14137 ## Was the C_SWITCH_X_SITE part really necessary?
14138 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14143 ## Ask GCC where to find libgcc.a.
14144 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14151 ## If we're using X11/GNUstep, define some consequences.
14152 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14154 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14157 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14159 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14160 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14162 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14163 test "$HAVE_X_WINDOWS" = "yes" && \
14164 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14174 #### Report on what we decided to do.
14175 #### Report GTK as a toolkit, even if it doesn't use Xt.
14176 #### It makes printing result more understandable as using GTK sets
14177 #### toolkit_scroll_bars to yes by default.
14178 if test "${HAVE_GTK}" = "yes"; then
14183 Configured for \`${canonical}'.
14185 Where should the build process find the source code? ${srcdir}
14186 What operating system and machine description files should Emacs use?
14187 \`${opsysfile}' and \`${machfile}'
14188 What compiler should emacs be built with? ${CC} ${CFLAGS}
14189 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14190 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14191 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14192 What window system should Emacs use? ${window_system}
14193 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14195 if test -n "${x_includes}"; then
14196 echo " Where do we find X Windows header files? ${x_includes}"
14198 echo " Where do we find X Windows header files? Standard dirs"
14200 if test -n "${x_libraries}"; then
14201 echo " Where do we find X Windows libraries? ${x_libraries}"
14203 echo " Where do we find X Windows libraries? Standard dirs"
14206 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14207 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14208 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14209 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14210 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14211 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14212 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14213 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14214 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14215 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14216 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14218 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14219 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14220 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14221 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14223 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14226 if test $USE_XASSERTS = yes; then
14227 echo " Compiling with asserts turned on."
14228 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14233 if test "$HAVE_NS" = "yes"; then
14235 echo "You must run \"make install\" in order to test the built application.
14236 The installed application will go to nextstep/Emacs.app and can be
14237 run or moved from there."
14238 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14239 echo "The application will be fully self-contained."
14241 echo "The lisp resources for the application will be installed under ${prefix}.
14242 You may need to run \"make install\" with sudo. The application will fail
14243 to run if these resources are not installed."
14248 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14249 echo "D-Bus integration has been tested for GNU/Linux only."
14254 # Remove any trailing slashes in these variables.
14255 test "${prefix}" != NONE
&&
14256 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14257 test "${exec_prefix}" != NONE
&&
14258 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14260 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"
14262 ac_config_commands
="$ac_config_commands default"
14264 cat >confcache
<<\_ACEOF
14265 # This file is a shell script that caches the results of configure
14266 # tests run on this system so they can be shared between configure
14267 # scripts and configure runs, see configure's option --config-cache.
14268 # It is not useful on other systems. If it contains results you don't
14269 # want to keep, you may remove or edit it.
14271 # config.status only pays attention to the cache file if you give it
14272 # the --recheck option to rerun configure.
14274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14276 # following values.
14280 # The following way of writing the cache mishandles newlines in values,
14281 # but we know of no workaround that is simple, portable, and efficient.
14282 # So, we kill variables containing newlines.
14283 # Ultrix sh set writes to stderr and can't be redirected directly,
14284 # and sets the high bit in the cache file unless we assign to the vars.
14286 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14287 eval ac_val
=\$
$ac_var
14291 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14295 _ | IFS | as_nl
) ;; #(
14296 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14297 *) { eval $ac_var=; unset $ac_var;} ;;
14303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14304 *${as_nl}ac_space
=\
*)
14305 # `set' does not quote correctly, so add quotes: double-quote
14306 # substitution turns \\\\ into \\, and sed turns \\ into \.
14309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14312 # `set' quotes correctly as required by POSIX, so do not add quotes.
14313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14326 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14327 if test -w "$cache_file"; then
14328 test "x$cache_file" != "x/dev/null" &&
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14330 $as_echo "$as_me: updating cache $cache_file" >&6;}
14331 cat confcache
>$cache_file
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14334 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14339 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14340 # Let make expand exec_prefix.
14341 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14343 DEFS
=-DHAVE_CONFIG_H
14347 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14348 # 1. Remove the extension, and $U if already installed.
14349 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14350 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14352 # will be set to the directory where LIBOBJS objects are built.
14353 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14354 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14356 LIBOBJS
=$ac_libobjs
14358 LTLIBOBJS
=$ac_ltlibobjs
14362 : ${CONFIG_STATUS=./config.status}
14364 ac_clean_files_save
=$ac_clean_files
14365 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14367 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14371 # Generated by $as_me.
14372 # Run this file to recreate the current configuration.
14373 # Compiler output produced by configure, useful for debugging
14374 # configure, is in config.log if it exists.
14377 ac_cs_recheck=false
14380 SHELL=\${CONFIG_SHELL-$SHELL}
14383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14384 ## -------------------- ##
14385 ## M4sh Initialization. ##
14386 ## -------------------- ##
14388 # Be more Bourne compatible
14389 DUALCASE
=1; export DUALCASE
# for MKS sh
14390 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14394 # is contrary to our usage. Disable this feature.
14395 alias -g '${1+"$@"}'='"$@"'
14396 setopt NO_GLOB_SUBST
14398 case `(set -o) 2>/dev/null` in #(
14410 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14411 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14414 # Prefer a ksh shell builtin over an external printf program on Solaris,
14415 # but without wasting forks for bash or zsh.
14416 if test -z "$BASH_VERSION$ZSH_VERSION" \
14417 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14418 as_echo='print
-r --'
14419 as_echo_n='print
-rn --'
14420 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14421 as_echo='printf %s
\n'
14422 as_echo_n='printf %s
'
14424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14425 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14426 as_echo_n='/usr
/ucb
/echo -n'
14428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14429 as_echo_n_body='eval
14433 expr "X$arg" : "X\\(.*\\)$as_nl";
14434 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14436 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14438 export as_echo_n_body
14439 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14441 export as_echo_body
14442 as_echo='sh
-c $as_echo_body as_echo
'
14445 # The user is always right.
14446 if test "${PATH_SEPARATOR+set}" != set; then
14448 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14449 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14456 # We need space, tab and new line, in precisely that order. Quoting is
14457 # there to prevent editors from complaining about space-tab.
14458 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14459 # splitting by setting IFS to empty value.)
14462 # Find who we are. Look in the path if we contain no directory separator.
14464 *[\\/]* ) as_myself=$0 ;;
14465 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14469 test -z "$as_dir" && as_dir=.
14470 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14476 # We did not find ourselves, most probably we were run as `sh COMMAND'
14477 # in which case we are not to be found in the path.
14478 if test "x$as_myself" = x
; then
14481 if test ! -f "$as_myself"; then
14482 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14486 # Unset variables that we do not need and which cause bugs (e.g. in
14487 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14488 # suppresses any "Segmentation fault" message there. '((' could
14489 # trigger a bug in pdksh 5.2.14.
14490 for as_var
in BASH_ENV ENV MAIL MAILPATH
14491 do eval test x\
${$as_var+set} = xset \
14492 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14505 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14508 # as_fn_error ERROR [LINENO LOG_FD]
14509 # ---------------------------------
14510 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14511 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14512 # script with status $?, using 1 if that was 0.
14515 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14517 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14518 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14520 $as_echo "$as_me: error: $1" >&2
14521 as_fn_exit
$as_status
14525 # as_fn_set_status STATUS
14526 # -----------------------
14527 # Set $? to STATUS, without forking.
14528 as_fn_set_status
()
14531 } # as_fn_set_status
14533 # as_fn_exit STATUS
14534 # -----------------
14535 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14539 as_fn_set_status
$1
14545 # Portably unset VAR.
14548 { eval $1=; unset $1;}
14550 as_unset
=as_fn_unset
14551 # as_fn_append VAR VALUE
14552 # ----------------------
14553 # Append the text in VALUE to the end of the definition contained in VAR. Take
14554 # advantage of any shell optimizations that allow amortized linear growth over
14555 # repeated appends, instead of the typical quadratic growth present in naive
14557 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14558 eval 'as_fn_append ()
14569 # as_fn_arith ARG...
14570 # ------------------
14571 # Perform arithmetic evaluation on the ARGs, and store the result in the
14572 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14573 # must be portable across $(()) and expr.
14574 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14575 eval 'as_fn_arith ()
14582 as_val
=`expr "$@" || test $? -eq 1`
14587 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14588 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14594 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14595 as_basename
=basename
14600 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14606 as_me
=`$as_basename -- "$0" ||
14607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14608 X"$0" : 'X\(//\)$' \| \
14609 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14611 sed '/^.*\/\([^/][^/]*\)\/*$/{
14625 # Avoid depending upon Character Ranges.
14626 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14627 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14628 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14629 as_cr_digits
='0123456789'
14630 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14632 ECHO_C
= ECHO_N
= ECHO_T
=
14633 case `echo -n x` in #(((((
14635 case `echo 'xy\c'` in
14636 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14638 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14645 rm -f conf$$ conf$$.exe conf$$.
file
14646 if test -d conf$$.dir
; then
14647 rm -f conf$$.dir
/conf$$.
file
14650 mkdir conf$$.dir
2>/dev
/null
14652 if (echo >conf$$.
file) 2>/dev
/null
; then
14653 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14655 # ... but there are two gotchas:
14656 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14657 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14658 # In both cases, we have to default to `cp -p'.
14659 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14661 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14669 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14670 rmdir conf$$.dir
2>/dev
/null
14675 # Create "$as_dir" as a directory, including parents if necessary.
14680 -*) as_dir
=.
/$as_dir;;
14682 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14686 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14687 *) as_qdir
=$as_dir;;
14689 as_dirs
="'$as_qdir' $as_dirs"
14690 as_dir
=`$as_dirname -- "$as_dir" ||
14691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14692 X"$as_dir" : 'X\(//\)[^/]' \| \
14693 X"$as_dir" : 'X\(//\)$' \| \
14694 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14695 $as_echo X"$as_dir" |
14696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14700 /^X\(\/\/\)[^/].*/{
14713 test -d "$as_dir" && break
14715 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14716 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14720 if mkdir
-p .
2>/dev
/null
; then
14721 as_mkdir_p
='mkdir -p "$as_dir"'
14723 test -d .
/-p && rmdir .
/-p
14727 if test -x / >/dev
/null
2>&1; then
14728 as_test_x
='test -x'
14730 if ls -dL / >/dev
/null
2>&1; then
14737 if test -d "$1"; then
14743 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14744 ???[sx]*):;;*)false;;esac;fi
14748 as_executable_p
=$as_test_x
14750 # Sed expression to map a string onto a valid CPP name.
14751 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14753 # Sed expression to map a string onto a valid variable name.
14754 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14758 ## ----------------------------------- ##
14759 ## Main body of $CONFIG_STATUS script. ##
14760 ## ----------------------------------- ##
14762 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14765 # Save the log message, to keep $0 and so on meaningful, and to
14766 # report actual input values of CONFIG_FILES etc. instead of their
14767 # values after options handling.
14769 This file was extended by emacs $as_me 24.0.50, which was
14770 generated by GNU Autoconf 2.65. Invocation command line was
14772 CONFIG_FILES = $CONFIG_FILES
14773 CONFIG_HEADERS = $CONFIG_HEADERS
14774 CONFIG_LINKS = $CONFIG_LINKS
14775 CONFIG_COMMANDS = $CONFIG_COMMANDS
14778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14783 case $ac_config_files in *"
14784 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14787 case $ac_config_headers in *"
14788 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14793 # Files that config.status was made for.
14794 config_files="$ac_config_files"
14795 config_headers="$ac_config_headers"
14796 config_commands="$ac_config_commands"
14800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14802 \`$as_me' instantiates files and other configuration actions
14803 from templates according to the current configuration. Unless the files
14804 and actions are specified as TAGs, all are instantiated by default.
14806 Usage: $0 [OPTION]... [TAG]...
14808 -h, --help print this help, then exit
14809 -V, --version print version number and configuration settings, then exit
14810 --config print configuration, then exit
14811 -q, --quiet, --silent
14812 do not print progress messages
14813 -d, --debug don't remove temporary files
14814 --recheck update $as_me by reconfiguring in the same conditions
14815 --file=FILE[:TEMPLATE]
14816 instantiate the configuration file FILE
14817 --header=FILE[:TEMPLATE]
14818 instantiate the configuration header FILE
14820 Configuration files:
14823 Configuration headers:
14826 Configuration commands:
14829 Report bugs to the package provider."
14832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14835 emacs config.status 24.0.50
14836 configured by $0, generated by GNU Autoconf 2.65,
14837 with options \\"\$ac_cs_config\\"
14839 Copyright (C) 2009 Free Software Foundation, Inc.
14840 This config.status script is free software; the Free Software Foundation
14841 gives unlimited permission to copy, distribute and modify it."
14846 test -n "\$AWK" || AWK=awk
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14850 # The default lists apply if the user does not specify any file.
14856 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14857 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14868 # Handling of the options.
14869 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14871 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14872 $as_echo "$ac_cs_version"; exit ;;
14873 --config |
--confi |
--conf |
--con |
--co |
--c )
14874 $as_echo "$ac_cs_config"; exit ;;
14875 --debug |
--debu |
--deb |
--de |
--d |
-d )
14877 --file |
--fil |
--fi |
--f )
14880 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14882 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14883 ac_need_defaults
=false
;;
14884 --header |
--heade |
--head |
--hea )
14887 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14889 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14890 ac_need_defaults
=false
;;
14892 # Conflict between --help and --header
14893 as_fn_error
"ambiguous option: \`$1'
14894 Try \`$0 --help' for more information.";;
14895 --help |
--hel |
-h )
14896 $as_echo "$ac_cs_usage"; exit ;;
14897 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14898 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14901 # This is an error.
14902 -*) as_fn_error
"unrecognized option: \`$1'
14903 Try \`$0 --help' for more information." ;;
14905 *) as_fn_append ac_config_targets
" $1"
14906 ac_need_defaults
=false
;;
14912 ac_configure_extra_args
=
14914 if $ac_cs_silent; then
14916 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14921 if \$ac_cs_recheck; then
14922 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14924 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14925 CONFIG_SHELL='$SHELL'
14926 export CONFIG_SHELL
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14936 ## Running $as_me. ##
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14946 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
14950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14952 # Handling of arguments.
14953 for ac_config_target
in $ac_config_targets
14955 case $ac_config_target in
14956 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14957 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14958 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
14959 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14960 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14961 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14962 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14963 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14964 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14965 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14966 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14967 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14968 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14970 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14975 # If the user did not use the arguments to specify the items to instantiate,
14976 # then the envvar interface is used. Set only those that are not.
14977 # We use the long form for the default assignment because of an extremely
14978 # bizarre bug on SunOS 4.1.3.
14979 if $ac_need_defaults; then
14980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14985 # Have a temporary directory for convenience. Make it in the build tree
14986 # simply because there is no reason against having it here, and in addition,
14987 # creating and moving files from /tmp can sometimes cause problems.
14988 # Hook for its removal unless debugging.
14989 # Note that there is a small window in which the directory will not be cleaned:
14990 # after its creation but before its name has been assigned to `$tmp'.
14994 trap 'exit_status=$?
14995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14997 trap 'as_fn_exit 1' 1 2 13 15
14999 # Create a (secure) tmp directory for tmp files.
15002 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15003 test -n "$tmp" && test -d "$tmp"
15006 tmp
=.
/conf$$
-$RANDOM
15007 (umask 077 && mkdir
"$tmp")
15008 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15010 # Set up the scripts for CONFIG_FILES section.
15011 # No need to generate them if there are no CONFIG_FILES.
15012 # This happens for instance with `./config.status config.h'.
15013 if test -n "$CONFIG_FILES"; then
15015 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15016 ac_cs_awk_getline
=:
15017 ac_cs_awk_pipe_init
=
15018 ac_cs_awk_read_file
='
15019 while ((getline aline < (F[key])) > 0)
15022 ac_cs_awk_pipe_fini
=
15024 ac_cs_awk_getline
=false
15025 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15026 ac_cs_awk_read_file
='
15028 print "cat " F[key] " &&"
15029 '$ac_cs_awk_pipe_init
15030 # The final `:' finishes the AND list.
15031 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15033 ac_cr
=`echo X | tr X '\015'`
15034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15035 # But we know of no other shell where ac_cr would be empty at this
15036 # point, so we can use a bashism as a fallback.
15037 if test "x$ac_cr" = x
; then
15038 eval ac_cr
=\$
\'\\r
\'
15040 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15044 ac_cs_awk_cr
=$ac_cr
15047 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15050 # Create commands to substitute file output variables.
15052 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15053 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15054 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15057 } >conf$
$files.sh
&&
15058 . .
/conf$
$files.sh ||
15059 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15060 rm -f conf$
$files.sh
15063 echo "cat >conf$$subs.awk <<_ACEOF" &&
15064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15066 } >conf$$subs.sh ||
15067 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15070 for ac_last_try in false false false false false :; do
15071 . ./conf$$subs.sh ||
15072 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15074 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15075 if test $ac_delim_n = $ac_delim_num; then
15077 elif $ac_last_try; then
15078 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15080 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15083 rm -f conf$$subs.sh
15085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15086 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15090 s/^/S["/; s
/!.
*/"]=/
15100 s/\(.\{148\}\)..*/\1/
15102 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15107 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15114 s/\(.\{148\}\)..*/\1/
15116 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15120 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15125 ' <conf$$subs.awk | sed '
15130 ' >>$CONFIG_STATUS || ac_write_fail=1
15131 rm -f conf$$subs.awk
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15134 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15135 for (key in S) S_is_set[key] = 1
15137 \$ac_cs_awk_pipe_init
15141 nfields = split(line, field, "@
")
15143 len = length(field[1])
15144 for (i = 2; i < nfields; i++) {
15146 keylen = length(key)
15147 if (S_is_set[key]) {
15149 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15150 len += length(value) + length(field[++i])
15155 if (nfields == 3 && !substed) {
15157 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15158 \$ac_cs_awk_read_file
15164 \$ac_cs_awk_pipe_fini
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15169 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15172 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15173 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15176 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15177 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15178 # trailing colons and then remove the whole line if VPATH becomes empty
15179 # (actually we leave an empty line to preserve line numbers).
15180 if test "x
$srcdir" = x.; then
15181 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15182 s/:*\$(srcdir):*/:/
15183 s/:*\${srcdir}:*/:/
15185 s/^\([^=]*=[ ]*\):*/\1/
15191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15192 fi # test -n "$CONFIG_FILES"
15194 # Set up the scripts for CONFIG_HEADERS section.
15195 # No need to generate them if there are no CONFIG_HEADERS.
15196 # This happens for instance with `./config.status Makefile'.
15197 if test -n "$CONFIG_HEADERS"; then
15198 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15202 # Transform confdefs.h into an awk script `defines.awk', embedded as
15203 # here-document in config.status, that substitutes the proper values into
15204 # config.h.in to produce config.h.
15206 # Create a delimiter string that does not exist in confdefs.h, to ease
15207 # handling of long lines.
15209 for ac_last_try in false false :; do
15210 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15211 if test -z "$ac_t"; then
15213 elif $ac_last_try; then
15214 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15216 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15220 # For the awk script, D is an array of macro values keyed by name,
15221 # likewise P contains macro parameters if any. Preserve backslash
15222 # newline sequences.
15224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15226 s/.\{148\}/&'"$ac_delim"'/g
15229 s/^[ ]*#[ ]*define[ ][ ]*/ /
15236 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15238 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15243 D["\
1"]=" \
3\\\\\\n
"\\/p
15245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15250 s/.\{148\}/&'"$ac_delim"'/g
15255 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15258 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15260 ' <confdefs.h | sed '
15261 s/'"$ac_delim"'/"\\\
15262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 for (key in D) D_is_set[key] = 1
15268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15270 split(line, arg, " ")
15271 if (arg[1] == "#") {
15275 defundef
= substr
(arg
[1], 2)
15278 split(mac1
, mac2
, "(") #)
15280 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15281 if (D_is_set
[macro
]) {
15282 # Preserve the white space surrounding the "#".
15283 print prefix
"define", macro P
[macro
] D
[macro
]
15286 # Replace #undef with comments. This is necessary, for example,
15287 # in the case of _POSIX_SOURCE, which is predefined and required
15288 # on some systems where configure will not decide to define it.
15289 if (defundef
== "undef") {
15290 print
"/*", prefix defundef
, macro
, "*/"
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15299 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15300 fi # test -n "$CONFIG_HEADERS"
15303 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15308 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15310 case $ac_mode$ac_tag in
15312 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15313 :[FH
]-) ac_tag
=-:-;;
15314 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15331 -) ac_f
="$tmp/stdin";;
15332 *) # Look for the file first in the build tree, then in the source tree
15333 # (if the path is not absolute). The absolute path cannot be DOS-style,
15334 # because $ac_f cannot contain `:'.
15338 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15340 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15342 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15343 as_fn_append ac_file_inputs
" '$ac_f'"
15346 # Let's still pretend it is `configure' which instantiates (i.e., don't
15347 # use $as_me), people would be surprised to read:
15348 # /* config.h. Generated by config.status. */
15349 configure_input
='Generated from '`
15350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15352 if test x
"$ac_file" != x-
; then
15353 configure_input
="$ac_file. $configure_input"
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15355 $as_echo "$as_me: creating $ac_file" >&6;}
15357 # Neutralize special characters interpreted by sed in replacement strings.
15358 case $configure_input in #(
15359 *\
&* |
*\|
* |
*\\* )
15360 ac_sed_conf_input
=`$as_echo "$configure_input" |
15361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15362 *) ac_sed_conf_input
=$configure_input;;
15366 *:-:* |
*:-) cat >"$tmp/stdin" \
15367 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15372 ac_dir
=`$as_dirname -- "$ac_file" ||
15373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15374 X"$ac_file" : 'X\(//\)[^/]' \| \
15375 X"$ac_file" : 'X\(//\)$' \| \
15376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15377 $as_echo X"$ac_file" |
15378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15382 /^X\(\/\/\)[^/].*/{
15395 as_dir
="$ac_dir"; as_fn_mkdir_p
15399 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15401 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15402 # A ".." for each directory in $ac_dir_suffix.
15403 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15404 case $ac_top_builddir_sub in
15405 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15406 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15409 ac_abs_top_builddir
=$ac_pwd
15410 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15411 # for backward compatibility:
15412 ac_top_builddir
=$ac_top_build_prefix
15415 .
) # We are building in place.
15417 ac_top_srcdir
=$ac_top_builddir_sub
15418 ac_abs_top_srcdir
=$ac_pwd ;;
15419 [\\/]* | ?
:[\\/]* ) # Absolute name.
15420 ac_srcdir
=$srcdir$ac_dir_suffix;
15421 ac_top_srcdir
=$srcdir
15422 ac_abs_top_srcdir
=$srcdir ;;
15423 *) # Relative name.
15424 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15425 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15426 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15428 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15438 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15439 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15444 # If the template does not know about datarootdir, expand it.
15445 # FIXME: This hack should be removed a few years after 2.60.
15446 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15458 *datarootdir
*) ac_datarootdir_seen
=yes;;
15459 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464 ac_datarootdir_hack='
15465 s&@datadir@&$datadir&g
15466 s&@docdir@&$docdir&g
15467 s&@infodir@&$infodir&g
15468 s&@localedir@&$localedir&g
15469 s&@mandir@&$mandir&g
15470 s&\\\${datarootdir}&$datarootdir&g' ;;
15474 # Neutralize VPATH when `$srcdir' = `.'.
15475 # Shell code in configure.ac might set extrasub.
15476 # FIXME: do we really want to maintain this feature?
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 ac_sed_extra="$ac_vpsub
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15483 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15484 s|@configure_input@|
$ac_sed_conf_input|
;t t
15485 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15486 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15487 s
&@srcdir@
&$ac_srcdir&;t t
15488 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15489 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15490 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15491 s
&@builddir@
&$ac_builddir&;t t
15492 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15493 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15494 s
&@INSTALL@
&$ac_INSTALL&;t t
15495 $ac_datarootdir_hack
15497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15498 if $ac_cs_awk_getline; then
15499 $AWK -f "$tmp/subs.
awk"
15501 $AWK -f "$tmp/subs.
awk" | $SHELL
15503 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15509 which seems to be undefined. Please make sure it is defined." >&5
15510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15511 which seems to be undefined. Please make sure it is defined." >&2;}
15515 -) cat "$tmp/out" && rm -f "$tmp/out";;
15516 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15518 || as_fn_error "could not create $ac_file" "$LINENO" 5
15524 if test x"$ac_file" != x-; then
15526 $as_echo "/* $configure_input */" \
15527 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15528 } >"$tmp/config.h" \
15529 || as_fn_error "could not create $ac_file" "$LINENO" 5
15530 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15535 mv "$tmp/config.h" "$ac_file" \
15536 || as_fn_error "could not create $ac_file" "$LINENO" 5
15539 $as_echo "/* $configure_input */" \
15540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15541 || as_fn_error "could not create -" "$LINENO" 5
15545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15546 $as_echo "$as_me: executing $ac_file commands" >&6;}
15551 case $ac_file$ac_mode in
15554 ### Make the necessary directories, if they don't exist.
15555 for dir
in etc lisp
; do
15556 test -d ${dir} || mkdir
${dir}
15559 echo creating src
/epaths.h
15560 ${MAKE-make} epaths-force
15562 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
15563 echo creating src
/.gdbinit
15564 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
15575 ac_clean_files
=$ac_clean_files_save
15577 test $ac_write_fail = 0 ||
15578 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15581 # configure is writing to config.log, and then calls config.status.
15582 # config.status does its own redirection, appending to config.log.
15583 # Unfortunately, on DOS this fails, as config.log is still kept open
15584 # by configure, so config.status won't be able to write to it; its
15585 # output is simply discarded. So we exec the FD to /dev/null,
15586 # effectively closing config.log, so it can be properly (re)opened and
15587 # appended to by config.status. When coming back to configure, we
15588 # need to make the FD available again.
15589 if test "$no_create" != yes; then
15591 ac_config_status_args
=
15592 test "$silent" = yes &&
15593 ac_config_status_args
="$ac_config_status_args --quiet"
15595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15598 # would make configure fail if this is the last instruction.
15599 $ac_cs_success || as_fn_exit $?
15601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}