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
601 LIB_SRC_EXTRA_INSTALLABLES
603 GNUSTEP_SYSTEM_LIBRARIES
604 GNUSTEP_SYSTEM_HEADERS
623 x_default_search_path
737 program_transform_name
750 enable_option_checking
770 with_toolkit_scroll_bars
783 enable_ns_self_contained
785 enable_maintainer_mode
793 ac_precious_vars
='build_alias
805 # Initialize some variables set by options.
807 ac_init_version
=false
808 ac_unrecognized_opts
=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name
=s
,x
,x
,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir
='${exec_prefix}/bin'
834 sbindir
='${exec_prefix}/sbin'
835 libexecdir
='${exec_prefix}/libexec'
836 datarootdir
='${prefix}/share'
837 datadir
='${datarootdir}'
838 sysconfdir
='${prefix}/etc'
839 sharedstatedir
='${prefix}/com'
840 localstatedir
='${prefix}/var'
841 includedir
='${prefix}/include'
842 oldincludedir
='/usr/include'
843 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir
='${datarootdir}/info'
849 libdir
='${exec_prefix}/lib'
850 localedir
='${datarootdir}/locale'
851 mandir
='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\
$ac_option
865 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
877 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
880 -build |
--build |
--buil |
--bui |
--bu)
881 ac_prev
=build_alias
;;
882 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
883 build_alias
=$ac_optarg ;;
885 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
886 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
887 ac_prev
=cache_file
;;
888 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
889 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
890 cache_file
=$ac_optarg ;;
893 cache_file
=config.cache
;;
895 -datadir |
--datadir |
--datadi |
--datad)
897 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
898 datadir
=$ac_optarg ;;
900 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
901 |
--dataroo |
--dataro |
--datar)
902 ac_prev
=datarootdir
;;
903 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
904 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
905 datarootdir
=$ac_optarg ;;
907 -disable-* |
--disable-*)
908 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
911 as_fn_error
"invalid feature name: $ac_useropt"
912 ac_useropt_orig
=$ac_useropt
913 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep
=', ';;
921 eval enable_
$ac_useropt=no
;;
923 -docdir |
--docdir |
--docdi |
--doc |
--do)
925 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
928 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
930 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
933 -enable-* |
--enable-*)
934 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
937 as_fn_error
"invalid feature name: $ac_useropt"
938 ac_useropt_orig
=$ac_useropt
939 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep
=', ';;
947 eval enable_
$ac_useropt=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error
"invalid package name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval with_
$ac_useropt=\
$ac_optarg ;;
1153 -without-* |
--without-*)
1154 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error
"invalid package name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=no
;;
1170 # Obsolete; use --with-x.
1173 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1174 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1175 ac_prev
=x_includes
;;
1176 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1177 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1178 x_includes
=$ac_optarg ;;
1180 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1181 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1182 ac_prev
=x_libraries
;;
1183 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1184 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1185 x_libraries
=$ac_optarg ;;
1187 -*) as_fn_error
"unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information."
1192 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1196 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1198 eval $ac_envvar=\
$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 if test -n "$ac_prev"; then
1213 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error
"missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1220 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 # Check all directory arguments for consistency.
1226 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val
=\$
$ac_var
1232 # Remove trailing slashes.
1235 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\
$ac_val;;
1238 # Be sure to have absolute directory names.
1240 [\\/$
]* | ?
:[\\/]* ) continue;;
1241 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1243 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target
=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x
; then
1255 if test "x$build_alias" = x
; then
1256 cross_compiling
=maybe
1257 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used." >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1267 test "$silent" = yes && exec 6>/dev
/null
1270 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di
=`ls -di .` &&
1272 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error
"working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error
"pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted
=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir
=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted
=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1314 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var
in $ac_precious_vars; do
1331 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1333 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1407 --x-includes=DIR X include files are
in DIR
1408 --x-libraries=DIR X library files are
in DIR
1411 --build=BUILD configure
for building on BUILD
[guessed
]
1412 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1423 --disable-option-checking ignore unrecognized
--enable/--with options
1424 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1425 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1426 --disable-ns-self-contained
1427 disable self contained build under NeXTstep
1428 --enable-asserts compile code with asserts enabled
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful
(and
1431 sometimes confusing
) to the casual installer
1432 --enable-locallisppath=PATH
1433 directories Emacs should search
for lisp files
1434 specific to this site
1435 --enable-checking[=LIST
]
1436 enable expensive run-time checks. With LIST
, enable
1437 only specific categories of checks. Categories are
:
1438 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1439 stringfreelist
, xmallocoverrun
, conslist
1440 --enable-profiling build emacs with profiling support. This might not
1441 work on all platforms
1442 --enable-autodepend automatically generate dependencies to .h-files.
1443 Requires GNU Make and Gcc. Enabled
if GNU Make and
1445 --disable-largefile omit support
for large files
1448 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1449 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1450 --without-pop don
't support POP mail retrieval with movemail
1451 --with-kerberos support Kerberos-authenticated POP
1452 --with-kerberos5 support Kerberos version 5 authenticated POP
1453 --with-hesiod support Hesiod to get the POP server host
1454 --with-mmdf support MMDF mailboxes
1455 --with-mail-unlink unlink, rather than empty, mail spool after reading
1456 --with-mailhost=HOSTNAME
1457 string giving default POP mail host
1458 --without-sound don't compile with sound support
1459 --without-sync-input process async input synchronously
1460 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1462 --without-xpm don
't compile with XPM image support
1463 --without-jpeg don't compile with JPEG image support
1464 --without-tiff don
't compile with TIFF image support
1465 --without-gif don't compile with GIF image support
1466 --without-png don
't compile with PNG image support
1467 --without-rsvg don't compile with SVG image support
1468 --without-xft don
't use XFT for anti aliased fonts
1469 --without-libotf don't use libotf
for OpenType font support
1470 --without-m17n-flt don
't use m17n-flt for text shaping
1471 --without-toolkit-scroll-bars
1472 don't use Motif or Xaw3d scroll bars
1473 --without-xaw3d don
't use Xaw3d
1474 --without-xim don't use X11 XIM
1475 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1476 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1478 --without-dbus don't compile with D-Bus support
1479 --without-gconf don
't compile with GConf support
1480 --without-selinux don't compile with SELinux support
1481 --without-makeinfo don
't require makeinfo for building manuals
1483 --with-pkg-config-prog=PATH
1484 path to pkg-config for finding GTK and librsvg
1485 --with-gnustep-conf=PATH
1486 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1487 or /etc/GNUstep/GNUstep.conf
1488 --with-x use the X Window System
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1499 XMKMF Path to xmkmf, Makefile generator for X Window System
1501 Use these variables to override the choices made by `configure' or to
help
1502 it to
find libraries and programs with nonstandard names
/locations.
1504 Report bugs to the package provider.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1518 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1520 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1525 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir
=$ac_pwd
1529 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir
=$ac_top_build_prefix
1534 .
) # We are building in place.
1536 ac_top_srcdir
=$ac_top_builddir_sub
1537 ac_abs_top_srcdir
=$ac_pwd ;;
1538 [\\/]* | ?
:[\\/]* ) # Absolute name.
1539 ac_srcdir
=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir
=$srcdir
1541 ac_abs_top_srcdir
=$srcdir ;;
1543 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 emacs configure
24.0.50
1568 generated by GNU Autoconf
2.65
1570 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1571 This configure
script is free software
; the Free Software Foundation
1572 gives unlimited permission to copy
, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile
()
1586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1587 rm -f conftest.
$ac_objext
1588 if { { ac_try
="$ac_compile"
1590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1629 *) ac_try_echo
=$ac_try;;
1631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1635 if test -s conftest.err
; then
1636 grep -v '^ *+' conftest.err
>conftest.er1
1637 cat conftest.er1
>&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest
$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 $as_test_x conftest
$ac_exeext
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.
$ac_ext >&5
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1661 as_fn_set_status
$ac_retval
1663 } # ac_fn_c_try_link
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 as_fn_set_status $ac_retval
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1707 ac_fn_c_check_header_mongrel ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1731 ac_header_compiler=no
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1744 if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1747 ac_header_preproc=no
1749 rm -f conftest.err conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1779 eval "$3=\$ac_header_compiler"
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_c_check_header_mongrel
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1799 *) ac_try_echo
=$ac_try;;
1801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=$ac_status
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1848 if ac_fn_c_try_compile "$LINENO"; then :
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 } # ac_fn_c_check_header_compile
1862 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1863 # ----------------------------------------------
1864 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_preproc ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1882 rm -f conftest.err conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 } # ac_fn_c_check_header_preproc
1891 # ac_fn_c_check_decl LINENO SYMBOL VAR
1892 # ------------------------------------
1893 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1894 ac_fn_c_check_decl ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1898 $as_echo_n "checking whether $2 is declared... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 } # ac_fn_c_check_decl
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1955 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1965 if (sizeof ac_aggr.$3)
1971 if ac_fn_c_try_compile "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_member
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2010 # include <limits.h>
2012 # include <assert.h>
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2039 if ac_fn_c_try_link "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_func
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_type
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2111 It was created by emacs $as_me 24.0.50, which was
2112 generated by GNU Autoconf 2.65. Invocation command line was
2124 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2125 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2126 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2127 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2128 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2130 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2131 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2133 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2134 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2135 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2136 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2137 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2138 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2139 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2172 ac_must_keep_next=false
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2183 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 -* ) ac_must_keep_next=true ;;
2204 as_fn_append ac_configure_args " '$ac_arg'"
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2223 ## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##
2228 # The following way of writing the cache mishandles newlines in values,
2230 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2231 eval ac_val=\$$ac_var
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2246 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2270 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 $as_echo "$ac_var='\''$ac_val'\''"
2276 if test -n "$ac_subst_files"; then
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2283 for ac_var in $ac_subst_files
2285 eval ac_val=\$$ac_var
2287 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 $as_echo "$ac_var='\''$ac_val'\''"
2294 if test -s confdefs.h; then
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2353 if test -n "$CONFIG_SITE"; then
2354 ac_site_file1=$CONFIG_SITE
2355 elif test "x$prefix" != xNONE; then
2356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
2359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE && continue
2365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2390 as_fn_append ac_header_list " stdlib.h"
2391 as_fn_append ac_header_list " unistd.h"
2392 as_fn_append ac_header_list " sys/param.h"
2393 as_fn_append ac_header_list " sys/time.h"
2394 as_fn_append ac_func_list " alarm"
2395 # Check that the precious variables saved in the cache have kept the same
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2406 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2410 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x
$ac_old_val`
2417 ac_new_val_w=`echo x
$ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2421 ac_cache_corrupted=:
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472 # Double any \ or $.
2473 # By default was `s
,x
,x
', remove it if useless.
2474 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2478 lispdir='${datadir}/emacs
/${version}/lisp
'
2479 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2480 '${datadir}/emacs
/site-lisp
'
2481 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2482 etcdir='${datadir}/emacs
/${version}/etc
'
2483 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2484 docdir='${datadir}/emacs
/${version}/etc
'
2485 gamedir='${localstatedir}/games
/emacs
'
2492 # Check whether --with-pop was given.
2493 if test "${with_pop+set}" = set; then :
2499 if test "$with_pop" = yes; then
2500 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2505 # Check whether --with-kerberos was given.
2506 if test "${with_kerberos+set}" = set; then :
2507 withval=$with_kerberos;
2512 if test "$with_kerberos" != no; then
2513 $as_echo "#define KERBEROS 1" >>confdefs.h
2518 # Check whether --with-kerberos5 was given.
2519 if test "${with_kerberos5+set}" = set; then :
2520 withval=$with_kerberos5;
2525 if test "${with_kerberos5}" != no; then
2526 if test "${with_kerberos}" = no; then
2528 $as_echo "#define KERBEROS 1" >>confdefs.h
2532 $as_echo "#define KERBEROS5 1" >>confdefs.h
2537 # Check whether --with-hesiod was given.
2538 if test "${with_hesiod+set}" = set; then :
2539 withval=$with_hesiod;
2544 if test "$with_hesiod" != no; then
2546 $as_echo "#define HESIOD 1" >>confdefs.h
2551 # Check whether --with-mmdf was given.
2552 if test "${with_mmdf+set}" = set; then :
2558 if test "$with_mmdf" != no; then
2560 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2565 # Check whether --with-mail-unlink was given.
2566 if test "${with_mail_unlink+set}" = set; then :
2567 withval=$with_mail_unlink;
2572 if test "$with_mail_unlink" != no; then
2574 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2579 # Check whether --with-mailhost was given.
2580 if test "${with_mailhost+set}" = set; then :
2581 withval=$with_mailhost;
2582 cat >>confdefs.h <<_ACEOF
2583 #define MAILHOST "$withval"
2590 # Check whether --with-sound was given.
2591 if test "${with_sound+set}" = set; then :
2592 withval=$with_sound;
2599 # Check whether --with-sync-input was given.
2600 if test "${with_sync_input+set}" = set; then :
2601 withval=$with_sync_input;
2606 if test "$with_sync_input" = yes; then
2608 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2613 # Check whether --with-x-toolkit was given.
2614 if test "${with_x_toolkit+set}" = set; then :
2615 withval=$with_x_toolkit; case "${withval}" in
2616 y | ye | yes ) val=gtk ;;
2618 l | lu | luc | luci | lucid ) val=lucid ;;
2619 a | at | ath | athe | athen | athena ) val=athena ;;
2620 m | mo | mot | moti | motif ) val=motif ;;
2621 g | gt | gtk ) val=gtk ;;
2623 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2624 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2625 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" "$LINENO" 5
2634 # Check whether --with-xpm was given.
2635 if test "${with_xpm+set}" = set; then :
2642 # Check whether --with-jpeg was given.
2643 if test "${with_jpeg+set}" = set; then :
2650 # Check whether --with-tiff was given.
2651 if test "${with_tiff+set}" = set; then :
2658 # Check whether --with-gif was given.
2659 if test "${with_gif+set}" = set; then :
2666 # Check whether --with-png was given.
2667 if test "${with_png+set}" = set; then :
2674 # Check whether --with-rsvg was given.
2675 if test "${with_rsvg+set}" = set; then :
2683 # Check whether --with-xft was given.
2684 if test "${with_xft+set}" = set; then :
2691 # Check whether --with-libotf was given.
2692 if test "${with_libotf+set}" = set; then :
2693 withval=$with_libotf;
2699 # Check whether --with-m17n-flt was given.
2700 if test "${with_m17n_flt+set}" = set; then :
2701 withval=$with_m17n_flt;
2708 # Check whether --with-toolkit-scroll-bars was given.
2709 if test "${with_toolkit_scroll_bars+set}" = set; then :
2710 withval=$with_toolkit_scroll_bars;
2712 with_toolkit_scroll_bars=yes
2716 # Check whether --with-xaw3d was given.
2717 if test "${with_xaw3d+set}" = set; then :
2718 withval=$with_xaw3d;
2724 # Check whether --with-xim was given.
2725 if test "${with_xim+set}" = set; then :
2732 # Check whether --with-ns was given.
2733 if test "${with_ns+set}" = set; then :
2741 # Check whether --with-gpm was given.
2742 if test "${with_gpm+set}" = set; then :
2749 # Check whether --with-dbus was given.
2750 if test "${with_dbus+set}" = set; then :
2757 # Check whether --with-gconf was given.
2758 if test "${with_gconf+set}" = set; then :
2759 withval=$with_gconf;
2765 # Check whether --with-selinux was given.
2766 if test "${with_selinux+set}" = set; then :
2767 withval=$with_selinux;
2773 ## For the times when you want to build Emacs but don't have
2774 ## a suitable makeinfo, and can live without the manuals.
2776 # Check whether --with-makeinfo was given.
2777 if test "${with_makeinfo+set}" = set; then :
2778 withval=$with_makeinfo;
2785 # Check whether --with-gtk was given.
2786 if test "${with_gtk+set}" = set; then :
2787 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use
--with-x-toolkit to
2788 specify a toolkit.
" "$LINENO" 5
2793 # Check whether --with-gcc was given.
2794 if test "${with_gcc+set}" = set; then :
2795 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \
`CC' environment
2796 variable to specify a compiler." "$LINENO" 5
2801 # Check whether --with-pkg-config-prog was given.
2802 if test "${with_pkg_config_prog+set}" = set; then :
2803 withval=$with_pkg_config_prog;
2806 if test "X${with_pkg_config_prog}" != X; then
2807 if test "${with_pkg_config_prog}" != yes; then
2808 PKG_CONFIG="${with_pkg_config_prog}"
2813 # Check whether --with-gnustep-conf was given.
2814 if test "${with_gnustep_conf+set}" = set; then :
2815 withval=$with_gnustep_conf;
2818 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2819 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2820 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2821 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2823 # Check whether --enable-ns-self-contained was given.
2824 if test "${enable_ns_self_contained+set}" = set; then :
2825 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2827 EN_NS_SELF_CONTAINED=yes
2831 # Check whether --enable-asserts was given.
2832 if test "${enable_asserts+set}" = set; then :
2833 enableval=$enable_asserts; USE_XASSERTS=$enableval
2839 # Check whether --enable-maintainer-mode was given.
2840 if test "${enable_maintainer_mode+set}" = set; then :
2841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2843 USE_MAINTAINER_MODE=no
2846 if test $USE_MAINTAINER_MODE = yes; then
2853 # Check whether --enable-locallisppath was given.
2854 if test "${enable_locallisppath+set}" = set; then :
2855 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2857 elif test "${enableval}" != "yes"; then
2858 locallisppath=${enableval}
2863 # Check whether --enable-checking was given.
2864 if test "${enable_checking+set}" = set; then :
2865 enableval=$enable_checking; ac_checking_flags="${enableval}"
2868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2869 for check in $ac_checking_flags
2872 # these set all the flags to specific states
2873 yes) ac_enable_checking=1 ;;
2874 no) ac_enable_checking= ;
2875 ac_gc_check_stringbytes= ;
2876 ac_gc_check_string_overrun= ;
2877 ac_gc_check_string_free_list= ;
2878 ac_xmalloc_overrun= ;
2879 ac_gc_check_cons_list= ;;
2880 all) ac_enable_checking=1 ;
2881 ac_gc_check_stringbytes=1 ;
2882 ac_gc_check_string_overrun=1 ;
2883 ac_gc_check_string_free_list=1 ;
2884 ac_xmalloc_overrun=1 ;
2885 ac_gc_check_cons_list=1 ;;
2886 # these enable particular checks
2887 stringbytes) ac_gc_check_stringbytes=1 ;;
2888 stringoverrun) ac_gc_check_string_overrun=1 ;;
2889 stringfreelist) ac_gc_check_string_free_list=1 ;;
2890 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2891 conslist) ac_gc_check_cons_list=1 ;;
2892 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2897 if test x$ac_enable_checking != x ; then
2899 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2902 if test x$ac_gc_check_stringbytes != x ; then
2904 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2907 if test x$ac_gc_check_stringoverrun != x ; then
2909 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2912 if test x$ac_gc_check_string_free_list != x ; then
2914 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2917 if test x$ac_xmalloc_overrun != x ; then
2919 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2922 if test x$ac_gc_check_cons_list != x ; then
2924 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2928 # Check whether --enable-profiling was given.
2929 if test "${enable_profiling+set}" = set; then :
2930 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2933 if test x$ac_enable_profiling != x ; then
2934 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2935 PROFILING_LDFLAGS="-pg"
2941 # Check whether --enable-autodepend was given.
2942 if test "${enable_autodepend+set}" = set; then :
2943 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2945 ac_enable_autodepend=yes
2949 #### Make srcdir absolute, if it isn't already. It's important to
2950 #### avoid running the path through pwd unnecessarily, since pwd can
2951 #### give you automounter prefixes, which can go away. We do all this
2952 #### so Emacs can find its files when run uninstalled.
2953 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2958 ## We may be able to use the $PWD environment variable to make this
2959 ## absolute. But sometimes PWD is inaccurate.
2960 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2961 ## but that tested only for a well-formed and valid PWD,
2962 ## it did not object when PWD was well-formed and valid but just wrong.
2963 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
2967 srcdir="`(cd ${srcdir}; pwd)`"
2970 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2973 #### Check if the source directory already has a configured system in it.
2974 if test `pwd` != `(cd ${srcdir} && pwd)` \
2975 && test -f "${srcdir}/src/config.h" ; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2977 as a build directory right now; it has been configured in its own
2978 right. To configure in another directory as well, you MUST
2979 use GNU make. If you do not have GNU make, then you must
2980 now do \`make distclean' in ${srcdir},
2981 and
then run
$0 again.
" >&5
2982 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
2983 as a build directory right now; it has been configured in its own
2984 right. To configure in another directory as well, you MUST
2985 use GNU make. If you do not have GNU make, then you must
2986 now do \`make distclean
' in ${srcdir},
2987 and then run $0 again." >&2;}
2990 #### Given the configuration name, set machfile and opsysfile to the
2991 #### names of the m/*.h and s/*.h files we should use.
2993 ### Canonicalize the configuration name.
2996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2997 for ac_t in install-sh install.sh shtool; do
2998 if test -f "$ac_dir/$ac_t"; then
3000 ac_install_sh="$ac_aux_dir/$ac_t -c"
3005 if test -z "$ac_aux_dir"; then
3006 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3009 # These three variables are undocumented and unsupported,
3010 # and are intended to be withdrawn in a future Autoconf release.
3011 # They can cause serious problems if a builder's
source tree is
in a directory
3012 # whose full name contains unusual characters.
3013 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3014 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3015 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3018 # Make sure we can run config.sub.
3019 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3020 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3023 $as_echo_n "checking build system type... " >&6; }
3024 if test "${ac_cv_build+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 ac_build_alias
=$build_alias
3028 test "x$ac_build_alias" = x
&&
3029 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3030 test "x$ac_build_alias" = x
&&
3031 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3032 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3033 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3037 $as_echo "$ac_cv_build" >&6; }
3038 case $ac_cv_build in
3040 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3043 ac_save_IFS
=$IFS; IFS
='-'
3049 # Remember, the first character of IFS is used to create $*,
3050 # except with old shells:
3053 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3057 $as_echo_n "checking host system type... " >&6; }
3058 if test "${ac_cv_host+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test "x$host_alias" = x
; then
3062 ac_cv_host
=$ac_cv_build
3064 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3065 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3070 $as_echo "$ac_cv_host" >&6; }
3073 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3076 ac_save_IFS
=$IFS; IFS
='-'
3082 # Remember, the first character of IFS is used to create $*,
3083 # except with old shells:
3086 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3090 configuration
=${host_alias-${build_alias-$host}}
3094 ### If you add support for a new configuration, add code to this
3095 ### switch statement to recognize your configuration name and select
3096 ### the appropriate operating system and machine description files.
3098 ### You would hope that you could choose an m/*.h file pretty much
3099 ### based on the machine portion of the configuration name, and an s-
3100 ### file based on the operating system portion. However, it turns out
3101 ### that each m/*.h file is pretty manufacturer-specific - for
3102 ### example mips.h is MIPS
3103 ### So we basically have to have a special case for each
3104 ### configuration name.
3106 ### As far as handling version numbers on operating systems is
3107 ### concerned, make sure things will fail in a fixable way. If
3108 ### /etc/MACHINES doesn't say anything about version numbers, be
3109 ### prepared to handle anything reasonably. If version numbers
3110 ### matter, be sure /etc/MACHINES says something about it.
3112 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3113 ### "System V Release 4"; he writes, "The old convention encouraged
3114 ### confusion between `system' and `release' levels'."
3116 machine
='' opsys
='' unported
=no
3117 case "${canonical}" in
3122 case "${canonical}" in
3123 alpha
*-*-freebsd*) machine
=alpha
;;
3124 arm
*-*-freebsd*) machine
=arm
;;
3125 ia64-
*-freebsd*) machine
=ia64
;;
3126 sparc-
*-freebsd*) machine
=sparc
;;
3127 sparc64-
*-freebsd*) machine
=sparc
;;
3128 powerpc-
*-freebsd*) machine
=macppc
;;
3129 i
[3456]86-*-freebsd*) machine
=intel386
;;
3130 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3134 ## FreeBSD kernel + glibc based userland
3137 case "${canonical}" in
3138 alpha
*-*-kfreebsd*) machine
=alpha
;;
3139 ia64-
*-kfreebsd*) machine
=ia64
;;
3140 sparc-
*-kfreebsd*) machine
=sparc
;;
3141 sparc64-
*-kfreebsd*) machine
=sparc
;;
3142 powerpc-
*-kfreebsd*) machine
=macppc
;;
3143 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3144 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3151 if test -f /usr
/lib
/crti.o
; then
3153 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3157 case "${canonical}" in
3158 alpha
*-*-netbsd*) machine
=alpha
;;
3159 i
[3456]86-*-netbsd*) machine
=intel386
;;
3160 mips-
*-netbsd*) machine
=mips
;;
3161 mipsel-
*-netbsd*) machine
=mips
;;
3162 mipseb-
*-netbsd*) machine
=mips
;;
3163 powerpc-
*-netbsd*) machine
=macppc
;;
3164 sparc
*-*-netbsd*) machine
=sparc
;;
3165 vax-
*-netbsd*) machine
=vax
;;
3166 arm-
*-netbsd*) machine
=arm
;;
3167 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3168 hppa-
*-netbsd*) machine
=hp800
;;
3169 m68k-
*-netbsd*) machine
=m68k
;;
3176 case "${canonical}" in
3177 alpha
*-*-openbsd*) machine
=alpha
;;
3178 arm-
*-openbsd*) machine
=arm
;;
3179 i386-
*-openbsd*) machine
=intel386
;;
3180 powerpc-
*-openbsd*) machine
=macppc
;;
3181 sparc
*-*-openbsd*) machine
=sparc
;;
3182 vax-
*-openbsd*) machine
=vax
;;
3183 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3184 hppa-
*-openbsd*) machine
=hp800
;;
3188 alpha
*-*-linux-gnu* )
3189 machine
=alpha opsys
=gnu-linux
3193 machine
=arm opsys
=gnu-linux
3196 ## Apple Darwin / Mac OS X
3198 case "${canonical}" in
3199 i
[3456]86-* ) machine
=intel386
;;
3200 powerpc-
* ) machine
=macppc
;;
3201 x86_64-
* ) machine
=amdx86-64
;;
3205 # Define CPP as follows to make autoconf work correctly.
3206 CPP
="${CC-cc} -E -no-cpp-precomp"
3207 # Use fink packages if available.
3208 if test -d /sw
/include
&& test -d /sw
/lib
; then
3209 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3210 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3211 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3215 ## HP 9000 series 700 and 800, running HP/UX
3216 hppa
*-hp-hpux10.2
* )
3217 machine
=hp800 opsys
=hpux10-20
3219 hppa
*-hp-hpux1[1-9]* )
3220 machine
=hp800 opsys
=hpux11
3221 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3224 hppa
*-*-linux-gnu* )
3225 machine
=hp800 opsys
=gnu-linux
3230 machine
=ibms390 opsys
=gnu-linux
3232 s390x-
*-linux-gnu* )
3233 machine
=ibms390x opsys
=gnu-linux
3235 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3236 machine
=ibmrs6000 opsys
=aix4-2
3238 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3239 machine
=ibmrs6000 opsys
=aix4-2
3241 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3242 machine
=ibmrs6000 opsys
=aix4-2
3244 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3245 machine
=ibmrs6000 opsys
=aix4-2
3248 ## Macintosh PowerPC
3249 powerpc
*-*-linux-gnu* )
3250 machine
=macppc opsys
=gnu-linux
3253 ## Silicon Graphics machines
3256 machine
=iris4d opsys
=irix6-5
3257 # Without defining _LANGUAGE_C, things get masked out in the headers
3258 # so that, for instance, grepping for `free' in stdlib.h fails and
3259 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3260 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3261 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3265 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3266 machine
=sparc opsys
=gnu-linux
3270 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3271 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3272 case "${canonical}" in
3273 i
[3456]86-*-* ) machine
=intel386
;;
3274 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3275 sparc
* ) machine
=sparc
;;
3278 case "${canonical}" in
3279 *-sunos5.6
* |
*-solaris2.6
* )
3281 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3284 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3286 emacs_check_sunpro_c
=yes
3287 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3289 *-sunos5* |
*-solaris* )
3291 emacs_check_sunpro_c
=yes
3292 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3295 ## Watch out for a compiler that we know will not work.
3296 case "${canonical}" in
3297 *-solaris* |
*-sunos5* )
3298 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3299 ## /usr/ucb/cc doesn't work;
3300 ## we should find some other compiler that does work.
3310 machine
=ia64 opsys
=gnu-linux
3313 ## Intel 386 machines where we don't care about the manufacturer
3316 case "${canonical}" in
3317 *-cygwin ) opsys
=cygwin
;;
3318 *-darwin* ) opsys
=darwin
3319 CPP
="${CC-cc} -E -no-cpp-precomp"
3321 *-linux-gnu* ) opsys
=gnu-linux
;;
3322 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3323 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3324 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3325 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3329 ## m68k Linux-based GNU system
3331 machine
=m68k opsys
=gnu-linux
3334 ## Mips Linux-based GNU system
3335 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3336 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3337 machine
=mips opsys
=gnu-linux
3340 ## AMD x86-64 Linux-based GNU system
3341 x86_64-
*-linux-gnu* )
3342 machine
=amdx86-64 opsys
=gnu-linux
3345 ## Tensilica Xtensa Linux-based GNU system
3346 xtensa
*-*-linux-gnu* )
3347 machine
=xtensa opsys
=gnu-linux
3350 ## SuperH Linux-based GNU system
3351 sh
[34]*-*-linux-gnu* )
3352 machine
=sh3 opsys
=gnu-linux
3360 ### If the code above didn't choose an operating system, just choose
3361 ### an operating system based on the configuration name. You really
3362 ### only want to use this when you have no idea what the right
3363 ### operating system is; if you know what operating systems a machine
3364 ### runs, it's cleaner to make it explicit in the case statement
3366 if test x
"${opsys}" = x
; then
3367 case "${canonical}" in
3368 *-gnu* ) opsys
=gnu
;;
3377 if test $unported = yes; then
3378 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3379 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3382 machfile
="m/${machine}.h"
3383 opsysfile
="s/${opsys}.h"
3386 #### Choose a compiler.
3387 test -n "$CC" && cc_specified
=yes
3389 # Save the value of CFLAGS that the user specified.
3390 SPECIFIED_CFLAGS
="$CFLAGS"
3393 ac_cpp
='$CPP $CPPFLAGS'
3394 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3399 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC
="$CC" # Let the user override the test.
3408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir
=.
3413 for ac_exec_ext
in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3436 if test -z "$ac_cv_prog_CC"; then
3438 # Extract the first word of "gcc", so it can be a program name with args.
3439 set dummy gcc
; ac_word
=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$ac_ct_CC"; then
3446 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CC
="gcc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468 $as_echo "$ac_ct_CC" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3474 if test "x$ac_ct_CC" = x
; then
3477 case $cross_compiling:$ac_tool_warned in
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned
=yes ;;
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3492 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC
="$CC" # Let the user override the test.
3501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir
=.
3506 for ac_exec_ext
in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3530 if test -z "$CC"; then
3531 # Extract the first word of "cc", so it can be a program name with args.
3532 set dummy cc
; ac_word
=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$CC"; then
3539 ac_cv_prog_CC
="$CC" # Let the user override the test.
3542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir
=.
3547 for ac_exec_ext
in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3550 ac_prog_rejected
=yes
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test $ac_prog_rejected = yes; then
3562 # We found a bogon in the path, so make sure we never use it.
3563 set dummy
$ac_cv_prog_CC
3565 if test $# != 0; then
3566 # We chose a different compiler from the bogus one.
3567 # However, it has the same basename, so the bogon will be chosen
3568 # first if we set CC to just the basename; use the full file name.
3570 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 for ac_prog
in cl.exe
3590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3591 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC
="$CC" # Let the user override the test.
3600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir
=.
3605 for ac_exec_ext
in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$CC" && break
3630 if test -z "$CC"; then
3632 for ac_prog
in cl.exe
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy
$ac_prog; ac_word
=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$ac_ct_CC"; then
3642 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir
=.
3649 for ac_exec_ext
in '' $ac_executable_extensions; do
3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3651 ac_cv_prog_ac_ct_CC
="$ac_prog"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3662 if test -n "$ac_ct_CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3664 $as_echo "$ac_ct_CC" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3671 test -n "$ac_ct_CC" && break
3674 if test "x$ac_ct_CC" = x
; then
3677 case $cross_compiling:$ac_tool_warned in
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned
=yes ;;
3690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error
"no acceptable C compiler found in \$PATH
3693 See \`config.log' for more details." "$LINENO" 5; }
3695 # Provide some information about the compiler.
3696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3699 for ac_option
in --version -v -V -qversion; do
3700 { { ac_try
="$ac_compiler $ac_option >&5"
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709 if test -s conftest.err; then
3711 ... rest of stderr output deleted ...
3712 10q' conftest.err >conftest.er1
3713 cat conftest.er1 >&5
3715 rm -f conftest.er1 conftest.err
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 ac_clean_files_save=$ac_clean_files
3732 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3733 # Try to create an executable without -o first, disregard a.out.
3734 # It will help us diagnose broken compilers, and finding out an intuition
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737 $as_echo_n "checking whether the C compiler works... " >&6; }
3738 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3740 # The possible output files:
3741 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3744 for ac_file in $ac_files
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3753 if { { ac_try="$ac_link_default"
3755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3756 *) ac_try_echo
=$ac_try;;
3758 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_link_default") 2>&5
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3765 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3766 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3767 # so that the user can short-circuit this test for compilers unknown to
3769 for ac_file
in $ac_files ''
3771 test -f "$ac_file" ||
continue
3773 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3776 # We found the default executable, but exeext='' is most
3780 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3782 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784 # We set ac_cv_exeext here because the later test for it is not
3785 # safe: cross compilers may not add the suffix if given an `-o'
3786 # argument, so we may need to know it at that point already.
3787 # Even if this section looks crufty: it has the advantage of
3794 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3799 if test -z "$ac_file"; then :
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.
$ac_ext >&5
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 { as_fn_set_status
77
3808 as_fn_error
"C compiler cannot create executables
3809 See \`config.log' for more details." "$LINENO" 5; }; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815 $as_echo_n "checking for C compiler default output file name... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 $as_echo "$ac_file" >&6; }
3818 ac_exeext
=$ac_cv_exeext
3820 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3821 ac_clean_files
=$ac_clean_files_save
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3823 $as_echo_n "checking for suffix of executables... " >&6; }
3824 if { { ac_try
="$ac_link"
3826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link") 2>&5
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3836 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3837 # work properly (i.e., refer to `conftest.exe'), while it won't with
3839 for ac_file
in conftest.exe conftest conftest.
*; do
3840 test -f "$ac_file" ||
continue
3842 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3843 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3852 See \`config.log' for more details." "$LINENO" 5; }
3854 rm -f conftest conftest
$ac_cv_exeext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3856 $as_echo "$ac_cv_exeext" >&6; }
3858 rm -f conftest.
$ac_ext
3859 EXEEXT
=$ac_cv_exeext
3861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3867 FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3874 ac_clean_files
="$ac_clean_files conftest.out"
3875 # Check that the compiler produces executables we can run. If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878 $as_echo_n "checking whether we are cross compiling... " >&6; }
3879 if test "$cross_compiling" != yes; then
3880 { { ac_try
="$ac_link"
3882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 if { ac_try='./conftest$ac_cv_exeext'
3892 { { case "(($ac_try" in
3893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3894 *) ac_try_echo
=$ac_try;;
3896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; }; then
3904 if test "$cross_compiling" = maybe
; then
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error
"cannot run C compiled programs.
3910 If you meant to cross compile, use \`--host'.
3911 See \`config.log' for more details." "$LINENO" 5; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916 $as_echo "$cross_compiling" >&6; }
3918 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3919 ac_clean_files
=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3921 $as_echo_n "checking for suffix of object files... " >&6; }
3922 if test "${ac_cv_objext+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 rm -f conftest.o conftest.obj
3937 if { { ac_try
="$ac_compile"
3939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_compile") 2>&5
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 for ac_file in conftest.o conftest.obj conftest.*; do
3949 test -f "$ac_file" || continue;
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error "cannot compute suffix of object files
: cannot compile
3963 See \
`config.log' for more details." "$LINENO" 5; }
3965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968 $as_echo "$ac_cv_objext" >&6; }
3969 OBJEXT=$ac_cv_objext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4006 ac_test_CFLAGS=${CFLAGS+set}
4007 ac_save_CFLAGS=$CFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4010 if test "${ac_cv_prog_cc_g+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4043 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070 $as_echo "$ac_cv_prog_cc_g" >&6; }
4071 if test "$ac_test_CFLAGS" = set; then
4072 CFLAGS=$ac_save_CFLAGS
4073 elif test $ac_cv_prog_cc_g = yes; then
4074 if test "$GCC" = yes; then
4080 if test "$GCC" = yes; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 ac_cv_prog_cc_c89=no
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/stat.h>
4099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4100 struct buf { int x; };
4101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102 static char *e (p, i)
4108 static char *f (char * (*g) (char **, int), char **p, ...)
4113 s = g (p, va_arg (v,int));
4118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4119 function prototypes and stuff, but not '\xHH' hex character constants.
4120 These don't provoke an error unfortunately, instead are silently treated
4121 as 'x'. The following induces an error, until -std is added to get
4122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4123 array size at least. It's necessary to write '\x00'==0 to get something
4124 that's true only with -std. */
4125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128 inside strings and character constants. */
4130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132 int test (int i, double x);
4133 struct s1 {int (*f) (int a);};
4134 struct s2 {int (*f) (double a);};
4135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_c89=$ac_arg
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4156 rm -f conftest.$ac_ext
4161 case "x$ac_cv_prog_cc_c89" in
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;;
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 $as_echo "unsupported" >&6; } ;;
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4192 test x"$CPP" = x; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4194 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4196 if test "${emacs_cv_sunpro_c+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4213 if ac_fn_c_try_link "$LINENO"; then :
4214 emacs_cv_sunpro_c=yes
4216 emacs_cv_sunpro_c=no
4218 rm -f core conftest.err conftest.$ac_objext \
4219 conftest$ac_exeext conftest.$ac_ext
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4223 $as_echo "$emacs_cv_sunpro_c" >&6; }
4225 if test x"$emacs_cv_sunpro_c" = xyes; then
4226 NON_GNU_CPP="$CC -E -Xs"
4230 #### Some systems specify a CPP to use unless we are using GCC.
4231 #### Now that we know whether we are using GCC, we can decide whether
4232 #### to use that one.
4233 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4238 #### Some systems specify a CC to use unless we are using GCC.
4239 #### Now that we know whether we are using GCC, we can decide whether
4240 #### to use that one.
4241 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4242 test x$cc_specified != xyes
4247 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4249 CC="$CC $GCC_TEST_OPTIONS"
4252 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4254 CC="$CC $NON_GCC_TEST_OPTIONS"
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4264 # On Suns, sometimes $CPP names a directory.
4265 if test -n "$CPP" && test -d "$CPP"; then
4268 if test -z "$CPP"; then
4269 if test "${ac_cv_prog_CPP+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4272 # Double quotes because CPP needs to be expanded
4273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4276 for ac_c_preproc_warn_flag in '' yes
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4287 # include <limits.h>
4289 # include <assert.h>
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: fails on valid input.
4299 rm -f conftest.err conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ac_nonexistent.h>
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4311 # Passes both tests.
4315 rm -f conftest.err conftest.$ac_ext
4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319 rm -f conftest.err conftest.
$ac_ext
4320 if $ac_preproc_ok; then :
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4333 $as_echo "$CPP" >&6; }
4335 for ac_c_preproc_warn_flag
in '' yes
4337 # Use a header file that comes with gcc, so configuring glibc
4338 # with a fresh cross-compiler works.
4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 # <limits.h> exists even on freestanding compilers.
4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4342 # not just through cpp. "Syntax error" is here to catch this case.
4343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4346 # include <limits.h>
4348 # include <assert.h>
4352 if ac_fn_c_try_cpp
"$LINENO"; then :
4355 # Broken: fails on valid input.
4358 rm -f conftest.err conftest.
$ac_ext
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <ac_nonexistent.h>
4366 if ac_fn_c_try_cpp
"$LINENO"; then :
4367 # Broken: success on invalid input.
4370 # Passes both tests.
4374 rm -f conftest.err conftest.
$ac_ext
4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378 rm -f conftest.err conftest.
$ac_ext
4379 if $ac_preproc_ok; then :
4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." "$LINENO" 5; }
4389 ac_cpp
='$CPP $CPPFLAGS'
4390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4397 if test "${ac_cv_path_GREP+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -z "$GREP"; then
4401 ac_path_GREP_found
=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_prog
in grep ggrep
; do
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4416 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4419 $as_echo_n 0123456789 >"conftest.in"
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4428 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP
="$ac_path_GREP"
4432 ac_path_GREP_max
=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4440 $ac_path_GREP_found && break 3
4445 if test -z "$ac_cv_path_GREP"; then
4446 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4449 ac_cv_path_GREP
=$GREP
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4454 $as_echo "$ac_cv_path_GREP" >&6; }
4455 GREP
="$ac_cv_path_GREP"
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4459 $as_echo_n "checking for egrep... " >&6; }
4460 if test "${ac_cv_path_EGREP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4464 then ac_cv_path_EGREP
="$GREP -E"
4466 if test -z "$EGREP"; then
4467 ac_path_EGREP_found
=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4473 test -z "$as_dir" && as_dir
=.
4474 for ac_prog
in egrep; do
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4478 # Check for GNU ac_path_EGREP and select it if it is found.
4479 # Check for GNU $ac_path_EGREP
4480 case `"$ac_path_EGREP" --version 2>&1` in
4482 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4485 $as_echo_n 0123456789 >"conftest.in"
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'EGREP' >> "conftest.nl"
4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4493 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4494 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_EGREP
="$ac_path_EGREP"
4498 ac_path_EGREP_max
=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4503 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4506 $ac_path_EGREP_found && break 3
4511 if test -z "$ac_cv_path_EGREP"; then
4512 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4515 ac_cv_path_EGREP
=$EGREP
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4521 $as_echo "$ac_cv_path_EGREP" >&6; }
4522 EGREP
="$ac_cv_path_EGREP"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4526 $as_echo_n "checking for ANSI C header files... " >&6; }
4527 if test "${ac_cv_header_stdc+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4545 if ac_fn_c_try_compile
"$LINENO"; then :
4546 ac_cv_header_stdc
=yes
4548 ac_cv_header_stdc
=no
4550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4552 if test $ac_cv_header_stdc = yes; then
4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "memchr" >/dev
/null
2>&1; then :
4563 ac_cv_header_stdc
=no
4569 if test $ac_cv_header_stdc = yes; then
4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "free" >/dev
/null
2>&1; then :
4580 ac_cv_header_stdc
=no
4586 if test $ac_cv_header_stdc = yes; then
4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4588 if test "$cross_compiling" = yes; then :
4591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4595 #if ((' ' & 0x0FF) == 0x020)
4596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4599 # define ISLOWER(c) \
4600 (('a' <= (c) && (c) <= 'i') \
4601 || ('j' <= (c) && (c) <= 'r') \
4602 || ('s' <= (c) && (c) <= 'z'))
4603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4611 for (i = 0; i < 256; i++)
4612 if (XOR (islower (i), ISLOWER (i))
4613 || toupper (i) != TOUPPER (i))
4618 if ac_fn_c_try_run
"$LINENO"; then :
4621 ac_cv_header_stdc
=no
4623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4630 $as_echo "$ac_cv_header_stdc" >&6; }
4631 if test $ac_cv_header_stdc = yes; then
4633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4639 inttypes.h stdint.h unistd.h
4641 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4644 eval as_val
=\$
$as_ac_Header
4645 if test "x$as_val" = x
""yes; then :
4646 cat >>confdefs.h
<<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4657 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4664 if test "$MINIX" = yes; then
4666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4672 $as_echo "#define _MINIX 1" >>confdefs.h
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4679 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4685 # define __EXTENSIONS__ 1
4686 $ac_includes_default
4695 if ac_fn_c_try_compile
"$LINENO"; then :
4696 ac_cv_safe_to_define___extensions__
=yes
4698 ac_cv_safe_to_define___extensions__
=no
4700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4704 test $ac_cv_safe_to_define___extensions__ = yes &&
4705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4717 ### Use -Wno-pointer-sign if the compiler supports it
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4719 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4720 SAVE_CFLAGS
="$CFLAGS"
4721 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_c_try_compile
"$LINENO"; then :
4738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4739 if test $has_option = yes; then
4740 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4743 $as_echo "$has_option" >&6; }
4744 CFLAGS
="$SAVE_CFLAGS"
4748 ### Use -Wdeclaration-after-statement if the compiler supports it
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4750 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4751 SAVE_CFLAGS
="$CFLAGS"
4752 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4764 if ac_fn_c_try_compile
"$LINENO"; then :
4769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 if test $has_option = yes; then
4771 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4774 $as_echo "$has_option" >&6; }
4775 CFLAGS
="$SAVE_CFLAGS"
4779 #### Some other nice autoconf tests.
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4793 ac_cpp
='$CPP $CPPFLAGS'
4794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4798 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4799 # On Suns, sometimes $CPP names a directory.
4800 if test -n "$CPP" && test -d "$CPP"; then
4803 if test -z "$CPP"; then
4804 if test "${ac_cv_prog_CPP+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 # Double quotes because CPP needs to be expanded
4808 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811 for ac_c_preproc_warn_flag
in '' yes
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4822 # include <limits.h>
4824 # include <assert.h>
4828 if ac_fn_c_try_cpp
"$LINENO"; then :
4831 # Broken: fails on valid input.
4834 rm -f conftest.err conftest.
$ac_ext
4836 # OK, works on sane cases. Now check whether nonexistent headers
4837 # can be detected and how.
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4842 if ac_fn_c_try_cpp
"$LINENO"; then :
4843 # Broken: success on invalid input.
4846 # Passes both tests.
4850 rm -f conftest.err conftest.
$ac_ext
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.
$ac_ext
4855 if $ac_preproc_ok; then :
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4868 $as_echo "$CPP" >&6; }
4870 for ac_c_preproc_warn_flag
in '' yes
4872 # Use a header file that comes with gcc, so configuring glibc
4873 # with a fresh cross-compiler works.
4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 # <limits.h> exists even on freestanding compilers.
4876 # On the NeXT, cc -E runs the code through the compiler's parser,
4877 # not just through cpp. "Syntax error" is here to catch this case.
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4881 # include <limits.h>
4883 # include <assert.h>
4887 if ac_fn_c_try_cpp
"$LINENO"; then :
4890 # Broken: fails on valid input.
4893 rm -f conftest.err conftest.
$ac_ext
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4901 if ac_fn_c_try_cpp
"$LINENO"; then :
4902 # Broken: success on invalid input.
4905 # Passes both tests.
4909 rm -f conftest.err conftest.
$ac_ext
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.
$ac_ext
4914 if $ac_preproc_ok; then :
4917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4919 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." "$LINENO" 5; }
4924 ac_cpp
='$CPP $CPPFLAGS'
4925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4929 # Find a good install program. We prefer a C program (faster),
4930 # so one script is as good as another. But avoid the broken or
4931 # incompatible versions:
4932 # SysV /etc/install, /usr/sbin/install
4933 # SunOS /usr/etc/install
4934 # IRIX /sbin/install
4936 # AmigaOS /C/install, which installs bootblocks on floppy discs
4937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4940 # OS/2's system install, which has a completely different semantic
4941 # ./install, which can be erroneously created by make from ./install.sh.
4942 # Reject install programs that cannot install multiple files.
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4944 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 # Account for people who put trailing slashes in PATH elements.
4955 case $as_dir/ in #((
4956 .
/ | .
// |
/[cC
]/* | \
4957 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4958 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4964 for ac_prog
in ginstall scoinst
install; do
4965 for ac_exec_ext
in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4976 rm -rf conftest.one conftest.two conftest.dir
4977 echo one
> conftest.one
4978 echo two
> conftest.two
4980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4981 test -s conftest.one
&& test -s conftest.two
&&
4982 test -s conftest.dir
/conftest.one
&&
4983 test -s conftest.dir
/conftest.two
4985 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4998 rm -rf conftest.one conftest.two conftest.dir
5001 if test "${ac_cv_path_install+set}" = set; then
5002 INSTALL
=$ac_cv_path_install
5004 # As a last resort, use the slow shell script. Don't cache a
5005 # value for INSTALL within a source directory, because that will
5006 # break other packages using the cache if that directory is
5007 # removed, or if the value is a relative name.
5008 INSTALL
=$ac_install_sh
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5012 $as_echo "$INSTALL" >&6; }
5014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5015 # It thinks the first close brace ends the variable substitution.
5016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5020 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5022 if test "x$RANLIB" = x
; then
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5025 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 if test -n "$RANLIB"; then
5032 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir
=.
5039 for ac_exec_ext
in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 RANLIB
=$ac_cv_prog_RANLIB
5052 if test -n "$RANLIB"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5054 $as_echo "$RANLIB" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5062 if test -z "$ac_cv_prog_RANLIB"; then
5063 ac_ct_RANLIB
=$RANLIB
5064 # Extract the first word of "ranlib", so it can be a program name with args.
5065 set dummy ranlib
; ac_word
=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5071 if test -n "$ac_ct_RANLIB"; then
5072 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir
=.
5079 for ac_exec_ext
in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5092 if test -n "$ac_ct_RANLIB"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5094 $as_echo "$ac_ct_RANLIB" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5100 if test "x$ac_ct_RANLIB" = x
; then
5103 case $cross_compiling:$ac_tool_warned in
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned
=yes ;;
5109 RANLIB
=$ac_ct_RANLIB
5112 RANLIB
="$ac_cv_prog_RANLIB"
5116 # Extract the first word of "install-info", so it can be a program name with args.
5117 set dummy install-info
; ac_word
=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5123 case $INSTALL_INFO in
5125 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5132 test -z "$as_dir" && as_dir
=.
5133 for ac_exec_ext
in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5147 if test -n "$INSTALL_INFO"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5149 $as_echo "$INSTALL_INFO" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5156 # Extract the first word of "install-info", so it can be a program name with args.
5157 set dummy install-info
; ac_word
=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5163 case $INSTALL_INFO in
5165 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5169 for as_dir
in /usr
/sbin
5172 test -z "$as_dir" && as_dir
=.
5173 for ac_exec_ext
in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5187 if test -n "$INSTALL_INFO"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5189 $as_echo "$INSTALL_INFO" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 # Extract the first word of "install-info", so it can be a program name with args.
5197 set dummy install-info
; ac_word
=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5203 case $INSTALL_INFO in
5205 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir
=.
5213 for ac_exec_ext
in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5227 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5228 if test -n "$INSTALL_INFO"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5230 $as_echo "$INSTALL_INFO" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 # Extract the first word of "gzip", so it can be a program name with args.
5238 set dummy
gzip; ac_word
=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5246 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir
=.
5254 for ac_exec_ext
in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5268 if test -n "$GZIP_PROG"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5270 $as_echo "$GZIP_PROG" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5279 ## Need makeinfo >= 4.6 (?) to build the manuals.
5280 # Extract the first word of "makeinfo", so it can be a program name with args.
5281 set dummy makeinfo
; ac_word
=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5289 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir
=.
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5311 MAKEINFO
=$ac_cv_path_MAKEINFO
5312 if test -n "$MAKEINFO"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5314 $as_echo "$MAKEINFO" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 if test "$MAKEINFO" != "no" && \
5322 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
5326 ## Makeinfo is unusual. For a released Emacs, the manuals are
5327 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5328 ## therefore in the category of "special tools" not normally required, which
5329 ## configure does not have to check for (eg autoconf itself).
5330 ## In a Bazaar checkout on the other hand, the manuals are not included.
5331 ## So makeinfo is a requirement to build from Bazaar, and configure
5332 ## should test for it as it does for any other build requirement.
5333 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5334 ## with pre-built manuals, from a Bazaar checkout.
5335 if test "$MAKEINFO" = "no"; then
5336 if test "x${with_makeinfo}" = "xno"; then
5338 elif test ! -e $srcdir/info
/emacs
; then
5339 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5340 source tree does not seem to have pre-built manuals in the \`info' directory.
5341 Either install a suitable version of makeinfo, or re-run configure
5342 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5347 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5349 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5352 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5354 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5358 late_LDFLAGS
=$LDFLAGS
5359 if test "$GCC" = yes; then
5360 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5362 LDFLAGS
="$LDFLAGS -znocombreloc"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5366 $as_echo_n "checking for -znocombreloc... " >&6; }
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5371 if ac_fn_c_try_link
"$LINENO"; then :
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5375 LDFLAGS
=$late_LDFLAGS
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5379 rm -f core conftest.err conftest.
$ac_objext \
5380 conftest
$ac_exeext conftest.
$ac_ext
5382 #### Extract some information from the operating system and machine files.
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5385 - which libraries the lib-src programs will want, and
5386 - whether the GNU malloc routines are usable..." >&5
5387 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&6;}
5391 ### First figure out CFLAGS (which we use for running the compiler here)
5392 ### and REAL_CFLAGS (which we use for real compilation).
5393 ### The two are the same except on a few systems, where they are made
5394 ### different to work around various lossages. For example,
5395 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5396 ### as implying static linking.
5398 ### If the CFLAGS env var is specified, we use that value
5399 ### instead of the default.
5401 ### It's not important that this name contain the PID; you can't run
5402 ### two configures in the same directory and have anything work
5404 tempcname
="conftest.c"
5407 #include "'${srcdir}'/src/'${opsysfile}'"
5408 #include "'${srcdir}'/src/'${machfile}'"
5409 #ifndef LIBS_MACHINE
5410 #define LIBS_MACHINE
5415 #ifndef C_SWITCH_SYSTEM
5416 #define C_SWITCH_SYSTEM
5418 #ifndef C_SWITCH_MACHINE
5419 #define C_SWITCH_MACHINE
5421 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5422 configure___ c_switch_system=C_SWITCH_SYSTEM
5423 configure___ c_switch_machine=C_SWITCH_MACHINE
5426 #define LIB_X11_LIB -lX11
5429 configure___ LIBX=LIB_X11_LIB
5432 configure___ unexec=UNEXEC
5434 configure___ unexec=unexec.o
5437 #ifdef SYSTEM_MALLOC
5438 configure___ system_malloc=yes
5440 configure___ system_malloc=no
5443 #ifdef USE_MMAP_FOR_BUFFERS
5444 configure___ use_mmap_for_buffers=yes
5446 configure___ use_mmap_for_buffers=no
5449 #ifndef C_OPTIMIZE_SWITCH
5451 #define C_OPTIMIZE_SWITCH -O2
5453 #define C_OPTIMIZE_SWITCH -O
5457 #ifndef C_WARNINGS_SWITCH
5458 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5461 #ifndef LD_SWITCH_MACHINE
5462 #define LD_SWITCH_MACHINE
5465 #ifndef LD_SWITCH_SYSTEM
5466 #define LD_SWITCH_SYSTEM
5469 #ifndef LD_SWITCH_X_SITE_AUX
5470 #define LD_SWITCH_X_SITE_AUX
5473 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5474 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5476 #ifdef THIS_IS_CONFIGURE
5478 /* Get the CFLAGS for tests in configure. */
5480 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5482 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5485 #else /* not THIS_IS_CONFIGURE */
5487 /* Get the CFLAGS for real compilation. */
5489 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5491 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5494 #endif /* not THIS_IS_CONFIGURE */
5497 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5499 # The value of CPP is a quoted variable reference, so we need to do this
5500 # to get its actual value...
5501 CPP
=`eval "echo $CPP"`
5502 eval `${CPP} -Isrc ${tempcname} \
5503 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5504 if test "x$SPECIFIED_CFLAGS" = x
; then
5505 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5506 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5508 REAL_CFLAGS
="$CFLAGS"
5512 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
5514 ### Make sure subsequent tests use flags consistent with the build flags.
5516 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5517 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5519 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
5524 # Check whether --enable-largefile was given.
5525 if test "${enable_largefile+set}" = set; then :
5526 enableval
=$enable_largefile;
5529 if test "$enable_largefile" != no
; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5532 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5533 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5536 ac_cv_sys_largefile_CC
=no
5537 if test "$GCC" != yes; then
5540 # IRIX 6.2 and later do not support large files by default,
5541 # so use the C compiler's -n32 option if that helps.
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 /* Check that off_t can represent 2**63 - 1 correctly.
5546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5547 since some C++ compilers masquerading as C compilers
5548 incorrectly reject 9223372036854775807. */
5549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5551 && LARGE_OFF_T % 2147483647 == 1)
5561 if ac_fn_c_try_compile
"$LINENO"; then :
5564 rm -f core conftest.err conftest.
$ac_objext
5566 if ac_fn_c_try_compile
"$LINENO"; then :
5567 ac_cv_sys_largefile_CC
=' -n32'; break
5569 rm -f core conftest.err conftest.
$ac_objext
5573 rm -f conftest.
$ac_ext
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5577 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5578 if test "$ac_cv_sys_largefile_CC" != no
; then
5579 CC
=$CC$ac_cv_sys_largefile_CC
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5583 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 /* Check that off_t can represent 2**63 - 1 correctly.
5592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5593 since some C++ compilers masquerading as C compilers
5594 incorrectly reject 9223372036854775807. */
5595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5597 && LARGE_OFF_T % 2147483647 == 1)
5607 if ac_fn_c_try_compile
"$LINENO"; then :
5608 ac_cv_sys_file_offset_bits
=no
; break
5610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #define _FILE_OFFSET_BITS 64
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5631 if ac_fn_c_try_compile
"$LINENO"; then :
5632 ac_cv_sys_file_offset_bits
=64; break
5634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5635 ac_cv_sys_file_offset_bits
=unknown
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5640 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5641 case $ac_cv_sys_file_offset_bits in #(
5644 cat >>confdefs.h
<<_ACEOF
5645 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5650 if test $ac_cv_sys_file_offset_bits = unknown
; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5652 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5653 if test "${ac_cv_sys_large_files+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5676 if ac_fn_c_try_compile
"$LINENO"; then :
5677 ac_cv_sys_large_files
=no
; break
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #define _LARGE_FILES 1
5683 #include <sys/types.h>
5684 /* Check that off_t can represent 2**63 - 1 correctly.
5685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5686 since some C++ compilers masquerading as C compilers
5687 incorrectly reject 9223372036854775807. */
5688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5690 && LARGE_OFF_T % 2147483647 == 1)
5700 if ac_fn_c_try_compile
"$LINENO"; then :
5701 ac_cv_sys_large_files
=1; break
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5704 ac_cv_sys_large_files
=unknown
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5709 $as_echo "$ac_cv_sys_large_files" >&6; }
5710 case $ac_cv_sys_large_files in #(
5713 cat >>confdefs.h
<<_ACEOF
5714 #define _LARGE_FILES $ac_cv_sys_large_files
5724 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5725 ### be located in either /usr/lib64 or /usr/lib.
5726 ### In some rare cases, /usr/lib64 exists but does not contain the
5727 ### relevant files (bug#1287). Hence test for crtn.o.
5728 case "${canonical}" in
5729 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu* )
5730 if test -e /usr
/lib64
/crtn.o
; then
5732 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5740 if test "${with_sound}" != "no"; then
5741 # Sound support for GNU/Linux and the free BSDs.
5742 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5744 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5746 eval as_val
=\$
$as_ac_Header
5747 if test "x$as_val" = x
""yes; then :
5748 cat >>confdefs.h
<<_ACEOF
5749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756 # Emulation library used on NetBSD.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5758 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5759 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5762 ac_check_lib_save_LIBS
=$LIBS
5763 LIBS
="-lossaudio $LIBS"
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5767 /* Override any GCC internal prototype to avoid an error.
5768 Use char because int might match the return type of a GCC
5769 builtin and then its argument prototype would still apply. */
5777 return _oss_ioctl ();
5782 if ac_fn_c_try_link
"$LINENO"; then :
5783 ac_cv_lib_ossaudio__oss_ioctl
=yes
5785 ac_cv_lib_ossaudio__oss_ioctl
=no
5787 rm -f core conftest.err conftest.
$ac_objext \
5788 conftest
$ac_exeext conftest.
$ac_ext
5789 LIBS
=$ac_check_lib_save_LIBS
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5792 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5793 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5802 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5806 # Extract the first word of "pkg-config", so it can be a program name with args.
5807 set dummy pkg-config
; ac_word
=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5815 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir
=.
5823 for ac_exec_ext
in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5837 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5838 if test -n "$PKG_CONFIG"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5840 $as_echo "$PKG_CONFIG" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5848 if test "$PKG_CONFIG" = "no" ; then
5851 PKG_CONFIG_MIN_VERSION
=0.9.0
5852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5854 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5856 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858 $as_echo "yes" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5862 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5863 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5865 $as_echo "$ALSA_CFLAGS" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5868 $as_echo_n "checking ALSA_LIBS... " >&6; }
5869 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5871 $as_echo "$ALSA_LIBS" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5877 ## If we have a custom action on failure, don't print errors, but
5878 ## do set a variable so people can do so.
5879 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5891 if test $succeeded = yes; then
5897 if test $HAVE_ALSA = yes; then
5898 SAVE_CFLAGS
="$CFLAGS"
5899 SAVE_LDFLAGS
="$LDFLAGS"
5900 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
5901 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
5902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <asoundlib.h>
5908 snd_lib_error_set_handler (0);
5913 if ac_fn_c_try_compile
"$LINENO"; then :
5914 emacs_alsa_normal
=yes
5916 emacs_alsa_normal
=no
5918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5919 if test "$emacs_alsa_normal" != yes; then
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 #include <alsa/asoundlib.h>
5926 snd_lib_error_set_handler (0);
5931 if ac_fn_c_try_compile
"$LINENO"; then :
5932 emacs_alsa_subdir
=yes
5934 emacs_alsa_subdir
=no
5936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5937 if test "$emacs_alsa_subdir" != yes; then
5938 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5940 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5943 CFLAGS
="$SAVE_CFLAGS"
5944 LDFLAGS
="$SAVE_LDFLAGS"
5945 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5946 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5948 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5954 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5955 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5956 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5957 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5958 sys
/utsname.h
pwd.h utmp.h
5960 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5962 eval as_val
=\$
$as_ac_Header
5963 if test "x$as_val" = x
""yes; then :
5964 cat >>confdefs.h
<<_ACEOF
5965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5974 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977 #include <sys/personality.h>
5981 personality (PER_LINUX32)
5986 if ac_fn_c_try_compile
"$LINENO"; then :
5987 emacs_cv_personality_linux32
=yes
5989 emacs_cv_personality_linux32
=no
5991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5993 $as_echo "$emacs_cv_personality_linux32" >&6; }
5995 if test $emacs_cv_personality_linux32 = yes; then
5997 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6001 for ac_header
in term.h
6003 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6004 if test "x$ac_cv_header_term_h" = x
""yes; then :
6005 cat >>confdefs.h
<<_ACEOF
6006 #define HAVE_TERM_H 1
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6014 $as_echo_n "checking for ANSI C header files... " >&6; }
6015 if test "${ac_cv_header_stdc+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6033 if ac_fn_c_try_compile
"$LINENO"; then :
6034 ac_cv_header_stdc
=yes
6036 ac_cv_header_stdc
=no
6038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6040 if test $ac_cv_header_stdc = yes; then
6041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "memchr" >/dev
/null
2>&1; then :
6051 ac_cv_header_stdc
=no
6057 if test $ac_cv_header_stdc = yes; then
6058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev
/null
2>&1; then :
6068 ac_cv_header_stdc
=no
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then :
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6083 #if ((' ' & 0x0FF) == 0x020)
6084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6087 # define ISLOWER(c) \
6088 (('a' <= (c) && (c) <= 'i') \
6089 || ('j' <= (c) && (c) <= 'r') \
6090 || ('s' <= (c) && (c) <= 'z'))
6091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099 for (i = 0; i < 256; i++)
6100 if (XOR (islower (i), ISLOWER (i))
6101 || toupper (i) != TOUPPER (i))
6106 if ac_fn_c_try_run
"$LINENO"; then :
6109 ac_cv_header_stdc
=no
6111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6118 $as_echo "$ac_cv_header_stdc" >&6; }
6119 if test $ac_cv_header_stdc = yes; then
6121 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6126 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6127 if test "${ac_cv_header_time+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <sys/time.h>
6139 if ((struct tm *) 0)
6145 if ac_fn_c_try_compile
"$LINENO"; then :
6146 ac_cv_header_time
=yes
6148 ac_cv_header_time
=no
6150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6153 $as_echo "$ac_cv_header_time" >&6; }
6154 if test $ac_cv_header_time = yes; then
6156 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6160 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6161 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6167 cat >>confdefs.h
<<_ACEOF
6168 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6171 if test $ac_cv_have_decl_sys_siglist != yes; then
6172 # For Tru64, at least:
6173 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6174 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6180 cat >>confdefs.h
<<_ACEOF
6181 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6184 if test $ac_cv_have_decl___sys_siglist = yes; then
6186 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6191 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6192 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/wait.h>
6200 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6203 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6216 if ac_fn_c_try_compile
"$LINENO"; then :
6217 ac_cv_header_sys_wait_h
=yes
6219 ac_cv_header_sys_wait_h
=no
6221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6224 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6225 if test $ac_cv_header_sys_wait_h = yes; then
6227 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6233 $as_echo_n "checking for struct utimbuf... " >&6; }
6234 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #ifdef TIME_WITH_SYS_TIME
6240 #include <sys/time.h>
6243 #ifdef HAVE_SYS_TIME_H
6244 #include <sys/time.h>
6255 static struct utimbuf x; x.actime = x.modtime;
6260 if ac_fn_c_try_compile
"$LINENO"; then :
6261 emacs_cv_struct_utimbuf
=yes
6263 emacs_cv_struct_utimbuf
=no
6265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6268 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6269 if test $emacs_cv_struct_utimbuf = yes; then
6271 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6276 $as_echo_n "checking return type of signal handlers... " >&6; }
6277 if test "${ac_cv_type_signal+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 #include <sys/types.h>
6288 return *(signal (0, 0)) (0) == 1;
6293 if ac_fn_c_try_compile
"$LINENO"; then :
6294 ac_cv_type_signal
=int
6296 ac_cv_type_signal
=void
6298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6301 $as_echo "$ac_cv_type_signal" >&6; }
6303 cat >>confdefs.h
<<_ACEOF
6304 #define RETSIGTYPE $ac_cv_type_signal
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6310 $as_echo_n "checking for speed_t... " >&6; }
6311 if test "${emacs_cv_speed_t+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <termios.h>
6325 if ac_fn_c_try_compile
"$LINENO"; then :
6326 emacs_cv_speed_t
=yes
6330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6333 $as_echo "$emacs_cv_speed_t" >&6; }
6334 if test $emacs_cv_speed_t = yes; then
6336 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6341 $as_echo_n "checking for struct timeval... " >&6; }
6342 if test "${emacs_cv_struct_timeval+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #ifdef TIME_WITH_SYS_TIME
6348 #include <sys/time.h>
6351 #ifdef HAVE_SYS_TIME_H
6352 #include <sys/time.h>
6360 static struct timeval x; x.tv_sec = x.tv_usec;
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6366 emacs_cv_struct_timeval
=yes
6368 emacs_cv_struct_timeval
=no
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6373 $as_echo "$emacs_cv_struct_timeval" >&6; }
6374 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6375 if test $emacs_cv_struct_timeval = yes; then
6377 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6382 $as_echo_n "checking for struct exception... " >&6; }
6383 if test "${emacs_cv_struct_exception+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6392 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6397 if ac_fn_c_try_compile
"$LINENO"; then :
6398 emacs_cv_struct_exception
=yes
6400 emacs_cv_struct_exception
=no
6402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6405 $as_echo "$emacs_cv_struct_exception" >&6; }
6406 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6407 if test $emacs_cv_struct_exception != yes; then
6409 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6413 for ac_header
in sys
/socket.h
6415 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6416 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6417 cat >>confdefs.h
<<_ACEOF
6418 #define HAVE_SYS_SOCKET_H 1
6425 for ac_header
in net
/if.h
6427 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6428 #if HAVE_SYS_SOCKET_H
6429 #include <sys/socket.h>
6432 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6433 cat >>confdefs.h
<<_ACEOF
6434 #define HAVE_NET_IF_H 1
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6443 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6444 if test "${ac_cv_struct_tm+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <sys/types.h>
6456 int *p = &tm.tm_sec;
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 ac_cv_struct_tm
=time.h
6465 ac_cv_struct_tm
=sys
/time.h
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6470 $as_echo "$ac_cv_struct_tm" >&6; }
6471 if test $ac_cv_struct_tm = sys
/time.h
; then
6473 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6477 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6478 #include <$ac_cv_struct_tm>
6481 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6483 cat >>confdefs.h
<<_ACEOF
6484 #define HAVE_STRUCT_TM_TM_ZONE 1
6490 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6492 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6495 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6497 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6503 cat >>confdefs.h
<<_ACEOF
6504 #define HAVE_DECL_TZNAME $ac_have_decl
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6508 $as_echo_n "checking for tzname... " >&6; }
6509 if test "${ac_cv_var_tzname+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6515 #if !HAVE_DECL_TZNAME
6516 extern char *tzname[];
6522 return tzname[0][0];
6527 if ac_fn_c_try_link
"$LINENO"; then :
6528 ac_cv_var_tzname
=yes
6532 rm -f core conftest.err conftest.
$ac_objext \
6533 conftest
$ac_exeext conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6536 $as_echo "$ac_cv_var_tzname" >&6; }
6537 if test $ac_cv_var_tzname = yes; then
6539 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6544 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6546 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6548 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6552 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6553 #if HAVE_SYS_SOCKET_H
6554 #include <sys/socket.h>
6560 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6562 cat >>confdefs.h
<<_ACEOF
6563 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6568 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6569 #if HAVE_SYS_SOCKET_H
6570 #include <sys/socket.h>
6576 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6578 cat >>confdefs.h
<<_ACEOF
6579 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6584 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6585 #if HAVE_SYS_SOCKET_H
6586 #include <sys/socket.h>
6592 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6594 cat >>confdefs.h
<<_ACEOF
6595 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6600 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6601 #if HAVE_SYS_SOCKET_H
6602 #include <sys/socket.h>
6608 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6610 cat >>confdefs.h
<<_ACEOF
6611 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6616 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6617 #if HAVE_SYS_SOCKET_H
6618 #include <sys/socket.h>
6624 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6626 cat >>confdefs.h
<<_ACEOF
6627 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6636 $as_echo_n "checking for function prototypes... " >&6; }
6637 if test "$ac_cv_prog_cc_c89" != no
; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }
6641 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6644 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6652 $as_echo_n "checking for working volatile... " >&6; }
6653 if test "${ac_cv_c_volatile+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6664 int * volatile y = (int *) 0;
6670 if ac_fn_c_try_compile
"$LINENO"; then :
6671 ac_cv_c_volatile
=yes
6675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6678 $as_echo "$ac_cv_c_volatile" >&6; }
6679 if test $ac_cv_c_volatile = no
; then
6681 $as_echo "#define volatile /**/" >>confdefs.h
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6686 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6687 if test "${ac_cv_c_const+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6696 /* FIXME: Include the comments suggested by Paul. */
6698 /* Ultrix mips cc rejects this. */
6699 typedef int charset[2];
6701 /* SunOS 4.1.1 cc rejects this. */
6702 char const *const *pcpcc;
6704 /* NEC SVR4.0.2 mips cc rejects this. */
6705 struct point {int x, y;};
6706 static struct point const zero = {0,0};
6707 /* AIX XL C 1.02.0.0 rejects this.
6708 It does not let you subtract one const X* pointer from another in
6709 an arm of an if-expression whose if-part is not a constant
6711 const char *g = "string";
6712 pcpcc = &g + (g ? g-g : 0);
6713 /* HPUX 7.0 cc rejects these. */
6715 ppc = (char**) pcpcc;
6716 pcpcc = (char const *const *) ppc;
6717 { /* SCO 3.2v4 cc rejects this. */
6719 char const *s = 0 ? (char *) 0 : (char const *) 0;
6724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6726 const int *foo = &x[0];
6729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6730 typedef const int *iptr;
6734 { /* AIX XL C 1.02.0.0 rejects this saying
6735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6736 struct s { int j; const int *ap[3]; };
6737 struct s *b; b->j = 5;
6739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6743 return !cs[0] && !zero.x;
6750 if ac_fn_c_try_compile
"$LINENO"; then :
6755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6758 $as_echo "$ac_cv_c_const" >&6; }
6759 if test $ac_cv_c_const = no
; then
6761 $as_echo "#define const /**/" >>confdefs.h
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6766 $as_echo_n "checking for void * support... " >&6; }
6767 if test "${emacs_cv_void_star+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6781 if ac_fn_c_try_compile
"$LINENO"; then :
6782 emacs_cv_void_star
=yes
6784 emacs_cv_void_star
=no
6786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6789 $as_echo "$emacs_cv_void_star" >&6; }
6790 if test $emacs_cv_void_star = yes; then
6791 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6794 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6802 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6804 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6805 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6806 $as_echo_n "(cached) " >&6
6808 cat >conftest.
make <<\_ACEOF
6811 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6816 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6818 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6822 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6824 $as_echo "yes" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 SET_MAKE
="MAKE=${MAKE-make}"
6833 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6835 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6837 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
6838 if test "x$testval" != x
; then
6841 ac_enable_autodepend
=no
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6844 $as_echo "$HAVE_GNU_MAKE" >&6; }
6845 if test $HAVE_GNU_MAKE = yes; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6847 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6848 SAVE_CFLAGS
="$CFLAGS"
6849 CFLAGS
="$CFLAGS -MMD -MF deps.d"
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6861 if ac_fn_c_try_compile
"$LINENO"; then :
6864 ac_enable_autodepend
=no
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 CFLAGS
="$SAVE_CFLAGS"
6868 test -f deps.d || ac_enable_autodepend
=no
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6871 $as_echo "$ac_enable_autodepend" >&6; }
6873 if test $ac_enable_autodepend = yes; then
6875 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6881 $as_echo_n "checking for long file names... " >&6; }
6882 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6885 ac_cv_sys_long_file_names
=yes
6886 # Test for long file names in all the places we know might matter:
6887 # . the current directory, where building will happen
6888 # $prefix/lib where we will be installing things
6889 # $exec_prefix/lib likewise
6890 # $TMPDIR if set, where it might want to write temporary files
6891 # /tmp where it might want to write temporary files
6894 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
6895 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6896 # in the usual case where exec_prefix is '${prefix}'.
6898 . |
/* | ?
:[\\/]*) ;; #(
6901 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
6902 ac_xdir
=$ac_dir/cf$$
6903 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
6904 ac_tf1
=$ac_xdir/conftest9012345
6905 ac_tf2
=$ac_xdir/conftest9012346
6906 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6907 ac_cv_sys_long_file_names
=no
6908 rm -f -r "$ac_xdir" 2>/dev
/null
6909 test $ac_cv_sys_long_file_names = no
&& break
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6913 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6914 if test $ac_cv_sys_long_file_names = yes; then
6916 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6921 #### Choose a window system.
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6924 $as_echo_n "checking for X... " >&6; }
6927 # Check whether --with-x was given.
6928 if test "${with_x+set}" = set; then :
6932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6933 if test "x$with_x" = xno
; then
6934 # The user explicitly disabled X.
6937 case $x_includes,$x_libraries in #(
6938 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
6939 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6942 # One or both of the vars are not set, and there is no cached value.
6943 ac_x_includes
=no ac_x_libraries
=no
6944 rm -f -r conftest.dir
6945 if mkdir conftest.dir
; then
6947 cat >Imakefile
<<'_ACEOF'
6949 @echo incroot='${INCROOT}'
6951 @echo usrlibdir='${USRLIBDIR}'
6953 @echo libdir='${LIBDIR}'
6955 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6957 for ac_var
in incroot usrlibdir libdir
; do
6958 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6960 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6961 for ac_extension
in a so sl dylib la dll
; do
6962 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6963 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6964 ac_im_usrlibdir
=$ac_im_libdir; break
6967 # Screen out bogus values from the imake configuration. They are
6968 # bogus both because they are the default anyway, and because
6969 # using them would break gcc on systems where it needs fixed includes.
6970 case $ac_im_incroot in
6971 /usr
/include
) ac_x_includes
= ;;
6972 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6974 case $ac_im_usrlibdir in
6975 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6976 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6980 rm -f -r conftest.dir
6983 # Standard set of common directories for X headers.
6984 # Check X11 before X11Rn because it is often a symlink to the current release.
6998 /usr/local/X11/include
6999 /usr/local/X11R7/include
7000 /usr/local/X11R6/include
7001 /usr/local/X11R5/include
7002 /usr/local/X11R4/include
7004 /usr/local/include/X11
7005 /usr/local/include/X11R7
7006 /usr/local/include/X11R6
7007 /usr/local/include/X11R5
7008 /usr/local/include/X11R4
7012 /usr/XFree86/include/X11
7016 /usr/unsupported/include
7018 /usr/local/x11r5/include
7019 /usr/lpp/Xamples/include
7021 /usr/openwin/include
7022 /usr/openwin/share/include'
7024 if test "$ac_x_includes" = no
; then
7025 # Guess where to find include files, by looking for Xlib.h.
7026 # First, try using that file with no special directory specified.
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #include <X11/Xlib.h>
7031 if ac_fn_c_try_cpp
"$LINENO"; then :
7032 # We can compile using X headers with no special include directory.
7035 for ac_dir
in $ac_x_header_dirs; do
7036 if test -r "$ac_dir/X11/Xlib.h"; then
7037 ac_x_includes
=$ac_dir
7042 rm -f conftest.err conftest.
$ac_ext
7043 fi # $ac_x_includes = no
7045 if test "$ac_x_libraries" = no
; then
7046 # Check for the libraries.
7047 # See if we find them without any special options.
7048 # Don't add to $LIBS permanently.
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #include <X11/Xlib.h>
7062 if ac_fn_c_try_link
"$LINENO"; then :
7064 # We can link X programs with no special library path.
7068 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7070 # Don't even attempt the hair of trying to link an X program!
7071 for ac_extension
in a so sl dylib la dll
; do
7072 if test -r "$ac_dir/libX11.$ac_extension"; then
7073 ac_x_libraries
=$ac_dir
7079 rm -f core conftest.err conftest.
$ac_objext \
7080 conftest
$ac_exeext conftest.
$ac_ext
7081 fi # $ac_x_libraries = no
7083 case $ac_x_includes,$ac_x_libraries in #(
7085 # Didn't find X, or a directory has "'" in its name.
7086 ac_cv_have_x
="have_x=no";; #(
7088 # Record where we found X for the cache.
7089 ac_cv_have_x
="have_x=yes\
7090 ac_x_includes='$ac_x_includes'\
7091 ac_x_libraries='$ac_x_libraries'"
7097 eval "$ac_cv_have_x"
7100 if test "$have_x" != yes; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7102 $as_echo "$have_x" >&6; }
7105 # If each of the values was on the command line, it overrides each guess.
7106 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7107 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7108 # Update the cache value to reflect the command line values.
7109 ac_cv_have_x
="have_x=yes\
7110 ac_x_includes='$x_includes'\
7111 ac_x_libraries='$x_libraries'"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7113 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7116 if test "$no_x" = yes; then
7122 ## Workaround for bug in autoconf <= 2.62.
7123 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7124 ## No need to do anything special for these standard directories.
7125 ## This is an experiment, take it out if it causes problems.
7126 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7128 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7132 if test "${x_libraries}" != NONE
; then
7133 if test -n "${x_libraries}"; then
7134 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7135 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7137 x_default_search_path
=""
7138 x_search_path
=${x_libraries}
7139 if test -z "${x_search_path}"; then
7140 x_search_path
=/usr
/lib
7142 for x_library
in `echo ${x_search_path}: | \
7143 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7145 ${x_library}/X11/%L/%T/%N%C%S:\
7146 ${x_library}/X11/%l/%T/%N%C%S:\
7147 ${x_library}/X11/%T/%N%C%S:\
7148 ${x_library}/X11/%L/%T/%N%S:\
7149 ${x_library}/X11/%l/%T/%N%S:\
7150 ${x_library}/X11/%T/%N%S"
7151 if test x
"${x_default_search_path}" = x
; then
7152 x_default_search_path
=${x_search_path}
7154 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7158 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7159 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7162 if test x
"${x_includes}" = x
; then
7163 bitmapdir
=/usr
/include
/X11
/bitmaps
7165 # accumulate include directories that have X11 bitmap subdirectories
7167 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7168 if test -d "${bmd}/X11/bitmaps"; then
7169 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7171 if test -d "${bmd}/bitmaps"; then
7172 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7175 if test ${bmd_acc} != "dummyval"; then
7176 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7183 tmp_CPPFLAGS
="$CPPFLAGS"
7184 tmp_CFLAGS
="$CFLAGS"
7185 CPPFLAGS
="$CPPFLAGS -x objective-c"
7186 CFLAGS
="$CFLAGS -x objective-c"
7187 if test "${with_ns}" != no
; then
7188 if test "${opsys}" = darwin
; then
7190 ns_appdir
=`pwd`/nextstep
/Emacs.app
7191 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7192 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7193 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7194 elif test -f $GNUSTEP_CONFIG_FILE; then
7196 ns_appdir
=`pwd`/nextstep
/Emacs.app
7197 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7198 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7199 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7200 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7201 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7202 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7203 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7204 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7205 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7206 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7208 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7209 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7212 as_fn_error
"\`--with-ns' was specified, but the include
7213 files are missing or cannot be compiled." "$LINENO" 5
7217 NS_HAVE_NSINTEGER
=yes
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 #include <Foundation/NSObjCRuntime.h>
7229 if ac_fn_c_try_compile
"$LINENO"; then :
7230 ns_have_nsinteger
=yes
7232 ns_have_nsinteger
=no
7234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7235 if test $ns_have_nsinteger = no
; then
7236 NS_HAVE_NSINTEGER
=no
7239 if test "${HAVE_NS}" = yes; then
7240 window_system
=nextstep
7242 # set up packaging dirs
7243 exec_prefix
=${ns_appbindir}
7244 libexecdir
=${ns_appbindir}/libexec
7245 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7246 prefix
=${ns_appresdir}
7249 CFLAGS
="$tmp_CFLAGS"
7250 CPPFLAGS
="$tmp_CPPFLAGS"
7252 case "${window_system}" in
7256 case "${with_x_toolkit}" in
7257 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7258 motif
) USE_X_TOOLKIT
=MOTIF
;;
7260 USE_X_TOOLKIT
=none
;;
7261 no
) USE_X_TOOLKIT
=none
;;
7262 * ) USE_X_TOOLKIT
=maybe
;;
7272 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7273 # Extract the first word of "X", so it can be a program name with args.
7274 set dummy X
; ac_word
=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7280 if test -n "$HAVE_XSERVER"; then
7281 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir
=.
7288 for ac_exec_ext
in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_HAVE_XSERVER
="true"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7301 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7302 if test -n "$HAVE_XSERVER"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7304 $as_echo "$HAVE_XSERVER" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7311 if test "$HAVE_XSERVER" = true ||
7312 test -n "$DISPLAY" ||
7313 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7314 as_fn_error
"You seem to be running X, but no X development libraries
7315 were found. You should install the relevant development files for X
7316 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7317 sure you have development files for image handling, i.e.
7318 tiff, gif, jpeg, png and xpm.
7319 If you are sure you want Emacs compiled without X window support, pass
7321 to configure." "$LINENO" 5
7325 ### If we're using X11, we should use the X menu package.
7328 yes ) HAVE_MENUS
=yes ;;
7331 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7332 # Assume not, until told otherwise.
7335 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7336 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7342 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7343 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7350 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7351 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 extern void (* __after_morecore_hook)();
7360 __after_morecore_hook = 0
7365 if ac_fn_c_try_link
"$LINENO"; then :
7366 emacs_cv_var___after_morecore_hook
=yes
7368 emacs_cv_var___after_morecore_hook
=no
7370 rm -f core conftest.err conftest.
$ac_objext \
7371 conftest
$ac_exeext conftest.
$ac_ext
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7374 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7375 if test $emacs_cv_var___after_morecore_hook = no
; then
7378 if test "${system_malloc}" = "yes"; then
7381 (The GNU allocators don't work with this system configuration.)"
7383 if test "$doug_lea_malloc" = "yes" ; then
7384 if test "$GNU_MALLOC" = yes ; then
7386 (Using Doug Lea's new malloc from the GNU C Library.)"
7389 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7393 if test x
"${REL_ALLOC}" = x
; then
7394 REL_ALLOC
=${GNU_MALLOC}
7401 for ac_header
in $ac_header_list
7403 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7406 eval as_val
=\$
$as_ac_Header
7407 if test "x$as_val" = x
""yes; then :
7408 cat >>confdefs.h
<<_ACEOF
7409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423 for ac_func
in getpagesize
7425 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7426 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7427 cat >>confdefs.h
<<_ACEOF
7428 #define HAVE_GETPAGESIZE 1
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7435 $as_echo_n "checking for working mmap... " >&6; }
7436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7439 if test "$cross_compiling" = yes; then :
7440 ac_cv_func_mmap_fixed_mapped
=no
7442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 /* malloc might have been renamed as rpl_malloc. */
7448 /* Thanks to Mike Haertel and Jim Avera for this test.
7449 Here is a matrix of mmap possibilities:
7450 mmap private not fixed
7451 mmap private fixed at somewhere currently unmapped
7452 mmap private fixed at somewhere already mapped
7453 mmap shared not fixed
7454 mmap shared fixed at somewhere currently unmapped
7455 mmap shared fixed at somewhere already mapped
7456 For private mappings, we should verify that changes cannot be read()
7457 back from the file, nor mmap's back from the file at a different
7458 address. (There have been systems where private was not correctly
7459 implemented like the infamous i386 svr4.0, and systems where the
7460 VM page cache was not coherent with the file system buffer cache
7461 like early versions of FreeBSD and possibly contemporary NetBSD.)
7462 For shared mappings, we should conversely verify that changes get
7463 propagated back to all the places they're supposed to be.
7465 Grep wants private fixed already mapped.
7466 The main things grep needs to know about mmap are:
7467 * does it exist and is it safe to write into the mmap'd area
7468 * how to use it (BSD variants) */
7471 #include <sys/mman.h>
7473 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7477 /* This mess was copied from the GNU getpagesize.h. */
7478 #ifndef HAVE_GETPAGESIZE
7479 # ifdef _SC_PAGESIZE
7480 # define getpagesize() sysconf(_SC_PAGESIZE)
7481 # else /* no _SC_PAGESIZE */
7482 # ifdef HAVE_SYS_PARAM_H
7483 # include <sys/param.h>
7484 # ifdef EXEC_PAGESIZE
7485 # define getpagesize() EXEC_PAGESIZE
7486 # else /* no EXEC_PAGESIZE */
7488 # define getpagesize() NBPG * CLSIZE
7491 # endif /* no CLSIZE */
7492 # else /* no NBPG */
7494 # define getpagesize() NBPC
7495 # else /* no NBPC */
7497 # define getpagesize() PAGESIZE
7498 # endif /* PAGESIZE */
7499 # endif /* no NBPC */
7500 # endif /* no NBPG */
7501 # endif /* no EXEC_PAGESIZE */
7502 # else /* no HAVE_SYS_PARAM_H */
7503 # define getpagesize() 8192 /* punt totally */
7504 # endif /* no HAVE_SYS_PARAM_H */
7505 # endif /* no _SC_PAGESIZE */
7507 #endif /* no HAVE_GETPAGESIZE */
7512 char *data, *data2, *data3;
7516 pagesize = getpagesize ();
7518 /* First, make a file with some known garbage in it. */
7519 data = (char *) malloc (pagesize);
7522 for (i = 0; i < pagesize; ++i)
7523 *(data + i) = rand ();
7525 fd = creat ("conftest.mmap", 0600);
7528 if (write (fd, data, pagesize) != pagesize)
7532 /* Next, check that the tail of a page is zero-filled. File must have
7533 non-zero length, otherwise we risk SIGBUS for entire page. */
7534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7538 if (write (fd2, data2, 1) != 1)
7540 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7541 if (data2 == MAP_FAILED)
7543 for (i = 0; i < pagesize; ++i)
7547 if (munmap (data2, pagesize))
7550 /* Next, try to mmap the file at a fixed address which already has
7551 something else allocated at it. If we can, also make sure that
7552 we see the same garbage. */
7553 fd = open ("conftest.mmap", O_RDWR);
7556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7559 for (i = 0; i < pagesize; ++i)
7560 if (*(data + i) != *(data2 + i))
7563 /* Finally, make sure that changes to the mapped area do not
7564 percolate back to the file as seen by read(). (This is a bug on
7565 some variants of i386 svr4.0.) */
7566 for (i = 0; i < pagesize; ++i)
7567 *(data2 + i) = *(data2 + i) + 1;
7568 data3 = (char *) malloc (pagesize);
7571 if (read (fd, data3, pagesize) != pagesize)
7573 for (i = 0; i < pagesize; ++i)
7574 if (*(data + i) != *(data3 + i))
7580 if ac_fn_c_try_run
"$LINENO"; then :
7581 ac_cv_func_mmap_fixed_mapped
=yes
7583 ac_cv_func_mmap_fixed_mapped
=no
7585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7597 rm -f conftest.mmap conftest.txt
7599 if test $use_mmap_for_buffers = yes; then
7603 LIBS
="$libsrc_libs $LIBS"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7606 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7607 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7610 ac_check_lib_save_LIBS
=$LIBS
7612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7615 /* Override any GCC internal prototype to avoid an error.
7616 Use char because int might match the return type of a GCC
7617 builtin and then its argument prototype would still apply. */
7625 return dnet_ntoa ();
7630 if ac_fn_c_try_link
"$LINENO"; then :
7631 ac_cv_lib_dnet_dnet_ntoa
=yes
7633 ac_cv_lib_dnet_dnet_ntoa
=no
7635 rm -f core conftest.err conftest.
$ac_objext \
7636 conftest
$ac_exeext conftest.
$ac_ext
7637 LIBS
=$ac_check_lib_save_LIBS
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7640 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7641 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7642 cat >>confdefs.h
<<_ACEOF
7643 #define HAVE_LIBDNET 1
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7652 $as_echo_n "checking for main in -lXbsd... " >&6; }
7653 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 ac_check_lib_save_LIBS
=$LIBS
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7670 if ac_fn_c_try_link
"$LINENO"; then :
7671 ac_cv_lib_Xbsd_main
=yes
7673 ac_cv_lib_Xbsd_main
=no
7675 rm -f core conftest.err conftest.
$ac_objext \
7676 conftest
$ac_exeext conftest.
$ac_ext
7677 LIBS
=$ac_check_lib_save_LIBS
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7680 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7681 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7682 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7687 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7688 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 ac_check_lib_save_LIBS
=$LIBS
7692 LIBS
="-lpthreads $LIBS"
7693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7696 /* Override any GCC internal prototype to avoid an error.
7697 Use char because int might match the return type of a GCC
7698 builtin and then its argument prototype would still apply. */
7711 if ac_fn_c_try_link
"$LINENO"; then :
7712 ac_cv_lib_pthreads_cma_open
=yes
7714 ac_cv_lib_pthreads_cma_open
=no
7716 rm -f core conftest.err conftest.
$ac_objext \
7717 conftest
$ac_exeext conftest.
$ac_ext
7718 LIBS
=$ac_check_lib_save_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7721 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7722 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7723 cat >>confdefs.h
<<_ACEOF
7724 #define HAVE_LIBPTHREADS 1
7727 LIBS
="-lpthreads $LIBS"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7736 $as_echo_n "checking for -bbigtoc option... " >&6; }
7737 if test "${gdb_cv_bigtoc+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7742 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7743 *) gdb_cv_bigtoc
=-bbigtoc ;;
7746 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7758 if ac_fn_c_try_link
"$LINENO"; then :
7763 rm -f core conftest.err conftest.
$ac_objext \
7764 conftest
$ac_exeext conftest.
$ac_ext
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7768 $as_echo "$gdb_cv_bigtoc" >&6; }
7772 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7773 # used for the tests that follow. We set them back to REAL_CFLAGS and
7774 # REAL_CPPFLAGS later on.
7776 REAL_CPPFLAGS
="$CPPFLAGS"
7778 if test "${HAVE_X11}" = "yes"; then
7779 DEFS
="$C_SWITCH_X_SITE $DEFS"
7780 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7782 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7783 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7785 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7786 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7787 # but it's more convenient here to set LD_RUN_PATH
7788 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7789 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7790 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7794 if test "${opsys}" = "gnu-linux"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7796 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7803 XOpenDisplay ("foo");
7808 if ac_fn_c_try_link
"$LINENO"; then :
7809 xlinux_first_failure
=no
7811 xlinux_first_failure
=yes
7813 rm -f core conftest.err conftest.
$ac_objext \
7814 conftest
$ac_exeext conftest.
$ac_ext
7815 if test "${xlinux_first_failure}" = "yes"; then
7816 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7817 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7818 OLD_CPPFLAGS
="$CPPFLAGS"
7820 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7821 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7822 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7823 LIBS
="$LIBS -b i486-linuxaout"
7824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7830 XOpenDisplay ("foo");
7835 if ac_fn_c_try_link
"$LINENO"; then :
7836 xlinux_second_failure
=no
7838 xlinux_second_failure
=yes
7840 rm -f core conftest.err conftest.
$ac_objext \
7841 conftest
$ac_exeext conftest.
$ac_ext
7842 if test "${xlinux_second_failure}" = "yes"; then
7843 # If we get the same failure with -b, there is no use adding -b.
7844 # So take it out. This plays safe.
7845 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7846 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7847 CPPFLAGS
="$OLD_CPPFLAGS"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7853 $as_echo "yes" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7861 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7862 # header files included from there.
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7864 $as_echo_n "checking for Xkb... " >&6; }
7865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <X11/Xlib.h>
7868 #include <X11/XKBlib.h>
7872 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7877 if ac_fn_c_try_link
"$LINENO"; then :
7882 rm -f core conftest.err conftest.
$ac_objext \
7883 conftest
$ac_exeext conftest.
$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7885 $as_echo "$emacs_xkb" >&6; }
7886 if test $emacs_xkb = yes; then
7888 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7892 for ac_func
in XrmSetDatabase XScreenResourceString \
7893 XScreenNumberOfScreen XSetWMProtocols
7895 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7896 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7897 eval as_val
=\$
$as_ac_var
7898 if test "x$as_val" = x
""yes; then :
7899 cat >>confdefs.h
<<_ACEOF
7900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908 if test "${window_system}" = "x11"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7910 $as_echo_n "checking X11 version 6... " >&6; }
7911 if test "${emacs_cv_x11_version_6+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 #include <X11/Xlib.h>
7920 #if XlibSpecificationRelease < 6
7928 if ac_fn_c_try_link
"$LINENO"; then :
7929 emacs_cv_x11_version_6
=yes
7931 emacs_cv_x11_version_6
=no
7933 rm -f core conftest.err conftest.
$ac_objext \
7934 conftest
$ac_exeext conftest.
$ac_ext
7937 if test $emacs_cv_x11_version_6 = yes; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7939 $as_echo "6 or newer" >&6; }
7941 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7945 $as_echo "before 6" >&6; }
7950 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7952 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
7953 if test "${with_rsvg}" != "no"; then
7954 RSVG_REQUIRED
=2.11.0
7955 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
7960 # Extract the first word of "pkg-config", so it can be a program name with args.
7961 set dummy pkg-config
; ac_word
=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7969 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir
=.
7977 for ac_exec_ext
in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7991 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7992 if test -n "$PKG_CONFIG"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7994 $as_echo "$PKG_CONFIG" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8002 if test "$PKG_CONFIG" = "no" ; then
8005 PKG_CONFIG_MIN_VERSION
=0.9.0
8006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8008 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8010 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8012 $as_echo "yes" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8016 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8017 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8019 $as_echo "$RSVG_CFLAGS" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8022 $as_echo_n "checking RSVG_LIBS... " >&6; }
8023 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8025 $as_echo "$RSVG_LIBS" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8031 ## If we have a custom action on failure, don't print errors, but
8032 ## do set a variable so people can do so.
8033 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8045 if test $succeeded = yes; then
8054 if test ".${RSVG_CFLAGS}" != "."; then
8057 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8059 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8060 LIBS
="$RSVG_LIBS $LIBS"
8067 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8070 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8075 # Extract the first word of "pkg-config", so it can be a program name with args.
8076 set dummy pkg-config
; ac_word
=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8084 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8091 test -z "$as_dir" && as_dir
=.
8092 for ac_exec_ext
in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8106 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8107 if test -n "$PKG_CONFIG"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8109 $as_echo "$PKG_CONFIG" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8117 if test "$PKG_CONFIG" = "no" ; then
8120 PKG_CONFIG_MIN_VERSION
=0.9.0
8121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8123 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8125 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8131 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8132 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8134 $as_echo "$GTK_CFLAGS" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8137 $as_echo_n "checking GTK_LIBS... " >&6; }
8138 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8140 $as_echo "$GTK_LIBS" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8146 ## If we have a custom action on failure, don't print errors, but
8147 ## do set a variable so people can do so.
8148 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8160 if test $succeeded = yes; then
8166 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8167 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8173 if test x
"$pkg_check_gtk" = xyes
; then
8177 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8178 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8179 LIBS
="$GTK_LIBS $LIBS"
8181 for ac_func
in gtk_main
8183 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8184 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8185 cat >>confdefs.h
<<_ACEOF
8186 #define HAVE_GTK_MAIN 1
8192 if test "${GTK_COMPILES}" != "yes"; then
8193 if test "$USE_X_TOOLKIT" != "maybe"; then
8194 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8199 $as_echo "#define USE_GTK 1" >>confdefs.h
8203 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8207 closing open displays. This is no problem if you just use
8208 one display, but if you use more than one and close one of them
8209 Emacs may crash." >&5
8210 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8211 closing open displays. This is no problem if you just use
8212 one display, but if you use more than one and close one of them
8213 Emacs may crash." >&2;}
8222 if test "${HAVE_GTK}" = "yes"; then
8224 if test "$with_toolkit_scroll_bars" != no
; then
8225 with_toolkit_scroll_bars
=yes
8228 HAVE_GTK_MULTIDISPLAY
=no
8229 for ac_func
in gdk_display_open
8231 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8232 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8233 cat >>confdefs.h
<<_ACEOF
8234 #define HAVE_GDK_DISPLAY_OPEN 1
8236 HAVE_GTK_MULTIDISPLAY
=yes
8240 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8242 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8246 HAVE_GTK_FILE_SELECTION
=no
8247 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8248 #include <gtk/gtk.h>
8250 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8251 HAVE_GTK_FILE_SELECTION
=yes
8253 HAVE_GTK_FILE_SELECTION
=no
8256 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8257 for ac_func
in gtk_file_selection_new
8259 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8260 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8261 cat >>confdefs.h
<<_ACEOF
8262 #define HAVE_GTK_FILE_SELECTION_NEW 1
8264 HAVE_GTK_FILE_SELECTION
=yes
8266 HAVE_GTK_FILE_SELECTION
=no
8272 HAVE_GTK_FILE_CHOOSER
=no
8273 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8274 #include <gtk/gtk.h>
8276 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8277 HAVE_GTK_FILE_CHOOSER
=yes
8279 HAVE_GTK_FILE_CHOOSER
=no
8282 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8283 for ac_func
in gtk_file_chooser_dialog_new
8285 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8286 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8287 cat >>confdefs.h
<<_ACEOF
8288 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8290 HAVE_GTK_FILE_CHOOSER
=yes
8292 HAVE_GTK_FILE_CHOOSER
=no
8298 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8299 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8301 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8305 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8306 HAVE_GTK_AND_PTHREAD
=no
8307 for ac_header
in pthread.h
8309 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8310 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8311 cat >>confdefs.h
<<_ACEOF
8312 #define HAVE_PTHREAD_H 1
8319 if test "$ac_cv_header_pthread_h"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8321 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8322 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8325 ac_check_lib_save_LIBS
=$LIBS
8326 LIBS
="-lpthread $LIBS"
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8336 char pthread_self ();
8340 return pthread_self ();
8345 if ac_fn_c_try_link
"$LINENO"; then :
8346 ac_cv_lib_pthread_pthread_self
=yes
8348 ac_cv_lib_pthread_pthread_self
=no
8350 rm -f core conftest.err conftest.
$ac_objext \
8351 conftest
$ac_exeext conftest.
$ac_ext
8352 LIBS
=$ac_check_lib_save_LIBS
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8355 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8356 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8357 HAVE_GTK_AND_PTHREAD
=yes
8361 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8362 case "${canonical}" in
8364 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8367 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8375 if test "${with_dbus}" = "yes"; then
8379 # Extract the first word of "pkg-config", so it can be a program name with args.
8380 set dummy pkg-config
; ac_word
=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8388 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8395 test -z "$as_dir" && as_dir
=.
8396 for ac_exec_ext
in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8410 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8411 if test -n "$PKG_CONFIG"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8413 $as_echo "$PKG_CONFIG" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 if test "$PKG_CONFIG" = "no" ; then
8424 PKG_CONFIG_MIN_VERSION
=0.9.0
8425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8427 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8429 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8435 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8436 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8438 $as_echo "$DBUS_CFLAGS" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8441 $as_echo_n "checking DBUS_LIBS... " >&6; }
8442 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8444 $as_echo "$DBUS_LIBS" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8450 ## If we have a custom action on failure, don't print errors, but
8451 ## do set a variable so people can do so.
8452 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8464 if test $succeeded = yes; then
8470 if test "$HAVE_DBUS" = yes; then
8471 LIBS
="$LIBS $DBUS_LIBS"
8473 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8475 for ac_func
in dbus_watch_get_unix_fd
8477 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8478 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8479 cat >>confdefs.h
<<_ACEOF
8480 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8492 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8496 # Extract the first word of "pkg-config", so it can be a program name with args.
8497 set dummy pkg-config
; ac_word
=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8505 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir
=.
8513 for ac_exec_ext
in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8527 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8528 if test -n "$PKG_CONFIG"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8530 $as_echo "$PKG_CONFIG" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8538 if test "$PKG_CONFIG" = "no" ; then
8541 PKG_CONFIG_MIN_VERSION
=0.9.0
8542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8544 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8546 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8552 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8553 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8555 $as_echo "$GCONF_CFLAGS" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8558 $as_echo_n "checking GCONF_LIBS... " >&6; }
8559 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8561 $as_echo "$GCONF_LIBS" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 ## If we have a custom action on failure, don't print errors, but
8568 ## do set a variable so people can do so.
8569 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8581 if test $succeeded = yes; then
8587 if test "$HAVE_GCONF" = yes; then
8589 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8596 if test "${with_selinux}" = "yes"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8598 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8599 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8602 ac_check_lib_save_LIBS
=$LIBS
8603 LIBS
="-lselinux $LIBS"
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8613 char lgetfilecon ();
8617 return lgetfilecon ();
8622 if ac_fn_c_try_link
"$LINENO"; then :
8623 ac_cv_lib_selinux_lgetfilecon
=yes
8625 ac_cv_lib_selinux_lgetfilecon
=no
8627 rm -f core conftest.err conftest.
$ac_objext \
8628 conftest
$ac_exeext conftest.
$ac_ext
8629 LIBS
=$ac_check_lib_save_LIBS
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8632 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8633 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
8639 if test "$HAVE_LIBSELINUX" = yes; then
8641 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8643 LIBSELINUX_LIBS
=-lselinux
8649 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8650 if test "$with_xaw3d" != no
; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8652 $as_echo_n "checking for xaw3d... " >&6; }
8653 if test "${emacs_cv_xaw3d+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8659 #include <X11/Intrinsic.h>
8660 #include <X11/Xaw3d/Simple.h>
8669 if ac_fn_c_try_link
"$LINENO"; then :
8674 rm -f core conftest.err conftest.
$ac_objext \
8675 conftest
$ac_exeext conftest.
$ac_ext
8681 if test $emacs_cv_xaw3d = yes; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8683 $as_echo "yes; using Lucid toolkit" >&6; }
8687 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8693 $as_echo_n "checking for libXaw... " >&6; }
8694 if test "${emacs_cv_xaw+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8700 #include <X11/Intrinsic.h>
8701 #include <X11/Xaw/Simple.h>
8710 if ac_fn_c_try_link
"$LINENO"; then :
8715 rm -f core conftest.err conftest.
$ac_objext \
8716 conftest
$ac_exeext conftest.
$ac_ext
8719 if test $emacs_cv_xaw = yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8721 $as_echo "yes; using Lucid toolkit" >&6; }
8723 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8724 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8727 $as_echo "no; do not use toolkit by default" >&6; }
8733 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8735 if test "${USE_X_TOOLKIT}" != "none"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8737 $as_echo_n "checking X11 toolkit version... " >&6; }
8738 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <X11/Intrinsic.h>
8747 #if XtSpecificationRelease < 6
8755 if ac_fn_c_try_link
"$LINENO"; then :
8756 emacs_cv_x11_toolkit_version_6
=yes
8758 emacs_cv_x11_toolkit_version_6
=no
8760 rm -f core conftest.err conftest.
$ac_objext \
8761 conftest
$ac_exeext conftest.
$ac_ext
8764 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8765 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8767 $as_echo "6 or newer" >&6; }
8769 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8773 $as_echo "before 6" >&6; }
8777 if test x
$HAVE_X11XTR6 = xyes
; then
8778 LIBS
="-lXt -lSM -lICE $LIBS"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8783 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8784 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 ac_check_lib_save_LIBS
=$LIBS
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8798 char XmuConvertStandardSelection ();
8802 return XmuConvertStandardSelection ();
8807 if ac_fn_c_try_link
"$LINENO"; then :
8808 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8810 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8812 rm -f core conftest.err conftest.
$ac_objext \
8813 conftest
$ac_exeext conftest.
$ac_ext
8814 LIBS
=$ac_check_lib_save_LIBS
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8817 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8818 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
8819 cat >>confdefs.h
<<_ACEOF
8820 #define HAVE_LIBXMU 1
8827 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8830 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8831 if test "${HAVE_X11}" = "yes"; then
8832 if test "${USE_X_TOOLKIT}" != "none"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8834 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8835 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8838 ac_check_lib_save_LIBS
=$LIBS
8840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8849 char XShapeQueryExtension ();
8853 return XShapeQueryExtension ();
8858 if ac_fn_c_try_link
"$LINENO"; then :
8859 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8861 ac_cv_lib_Xext_XShapeQueryExtension
=no
8863 rm -f core conftest.err conftest.
$ac_objext \
8864 conftest
$ac_exeext conftest.
$ac_ext
8865 LIBS
=$ac_check_lib_save_LIBS
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8868 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8869 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
8870 cat >>confdefs.h
<<_ACEOF
8871 #define HAVE_LIBXEXT 1
8881 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8883 $as_echo_n "checking for Motif version 2.1... " >&6; }
8884 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8893 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8896 Motif version prior to 2.1.
8902 if ac_fn_c_try_compile
"$LINENO"; then :
8903 emacs_cv_motif_version_2_1
=yes
8905 emacs_cv_motif_version_2_1
=no
8907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8910 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8911 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8912 if test $emacs_cv_motif_version_2_1 = yes; then
8915 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8918 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8919 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8922 ac_check_lib_save_LIBS
=$LIBS
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8927 /* Override any GCC internal prototype to avoid an error.
8928 Use char because int might match the return type of a GCC
8929 builtin and then its argument prototype would still apply. */
8933 char XpCreateContext ();
8937 return XpCreateContext ();
8942 if ac_fn_c_try_link
"$LINENO"; then :
8943 ac_cv_lib_Xp_XpCreateContext
=yes
8945 ac_cv_lib_Xp_XpCreateContext
=no
8947 rm -f core conftest.err conftest.
$ac_objext \
8948 conftest
$ac_exeext conftest.
$ac_ext
8949 LIBS
=$ac_check_lib_save_LIBS
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8952 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8953 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
8957 if test ${HAVE_LIBXP} = yes; then
8959 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8964 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8965 if test "${emacs_cv_lesstif+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8968 # We put this in CFLAGS temporarily to precede other -I options
8969 # that might be in CFLAGS temporarily.
8970 # We put this in CPPFLAGS where it precedes the other -I options.
8971 OLD_CPPFLAGS
=$CPPFLAGS
8973 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8974 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8986 if ac_fn_c_try_compile
"$LINENO"; then :
8987 emacs_cv_lesstif
=yes
8991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8994 $as_echo "$emacs_cv_lesstif" >&6; }
8995 if test $emacs_cv_lesstif = yes; then
8996 # Make sure this -I option remains in CPPFLAGS after it is set
8997 # back to REAL_CPPFLAGS.
8998 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8999 # have those other -I options anyway. Ultimately, having this
9000 # directory ultimately in CPPFLAGS will be enough.
9001 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9002 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9005 CPPFLAGS
=$OLD_CPPFLAGS
9011 USE_TOOLKIT_SCROLL_BARS
=no
9012 if test "${with_toolkit_scroll_bars}" != "no"; then
9013 if test "${USE_X_TOOLKIT}" != "none"; then
9014 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9015 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9018 USE_TOOLKIT_SCROLL_BARS
=yes
9019 elif test "${HAVE_XAW3D}" = "yes"; then
9020 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9022 USE_TOOLKIT_SCROLL_BARS
=yes
9024 elif test "${HAVE_GTK}" = "yes"; then
9025 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9027 USE_TOOLKIT_SCROLL_BARS
=yes
9028 elif test "${HAVE_NS}" = "yes"; then
9029 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9031 USE_TOOLKIT_SCROLL_BARS
=yes
9035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9038 #include <X11/Xlib.h>
9039 #include <X11/Xresource.h>
9048 if ac_fn_c_try_compile
"$LINENO"; then :
9051 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9059 if test "${with_xim}" != "no"; then
9061 $as_echo "#define USE_XIM 1" >>confdefs.h
9066 if test "${HAVE_XIM}" != "no"; then
9068 if test "$GCC" = yes; then
9069 CFLAGS
="$CFLAGS --pedantic-errors"
9071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 #include <X11/Xlib.h>
9075 #include <X11/Xresource.h>
9084 XPointer *client_data;
9086 /* If we're not using GCC, it's probably not XFree86, and this is
9087 probably right, but we can't use something like --pedantic-errors. */
9088 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9089 char*, XIMProc, XPointer*);
9091 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9097 if ac_fn_c_try_compile
"$LINENO"; then :
9098 emacs_cv_arg6_star
=yes
9100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 if test "$emacs_cv_arg6_star" = yes; then
9102 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9105 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9111 ### Start of font-backend (under any platform) section.
9112 # (nothing here yet -- this is a placeholder)
9113 ### End of font-backend (under any platform) section.
9115 ### Start of font-backend (under X11) section.
9116 if test "${HAVE_X11}" = "yes"; then
9120 # Extract the first word of "pkg-config", so it can be a program name with args.
9121 set dummy pkg-config
; ac_word
=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9129 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9136 test -z "$as_dir" && as_dir
=.
9137 for ac_exec_ext
in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9151 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9152 if test -n "$PKG_CONFIG"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9154 $as_echo "$PKG_CONFIG" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9162 if test "$PKG_CONFIG" = "no" ; then
9165 PKG_CONFIG_MIN_VERSION
=0.9.0
9166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9168 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9170 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 $as_echo "yes" >&6; }
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9176 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9177 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9179 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9182 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9183 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9185 $as_echo "$FONTCONFIG_LIBS" >&6; }
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 FONTCONFIG_CFLAGS
=""
9191 ## If we have a custom action on failure, don't print errors, but
9192 ## do set a variable so people can do so.
9193 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9200 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9201 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9205 if test $succeeded = yes; then
9212 ## Use -lXft if available, unless `--with-xft=no'.
9214 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9217 if test "x${with_xft}" != "xno"; then
9222 # Extract the first word of "pkg-config", so it can be a program name with args.
9223 set dummy pkg-config
; ac_word
=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9231 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9238 test -z "$as_dir" && as_dir
=.
9239 for ac_exec_ext
in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9253 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9254 if test -n "$PKG_CONFIG"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9256 $as_echo "$PKG_CONFIG" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9264 if test "$PKG_CONFIG" = "no" ; then
9267 PKG_CONFIG_MIN_VERSION
=0.9.0
9268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9270 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9272 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9274 $as_echo "yes" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9278 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9279 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9281 $as_echo "$XFT_CFLAGS" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9284 $as_echo_n "checking XFT_LIBS... " >&6; }
9285 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9287 $as_echo "$XFT_LIBS" >&6; }
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9293 ## If we have a custom action on failure, don't print errors, but
9294 ## do set a variable so people can do so.
9295 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9307 if test $succeeded = yes; then
9313 ## Because xftfont.c uses XRenderQueryExtension, we also
9314 ## need to link to -lXrender.
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9317 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9318 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9321 ac_check_lib_save_LIBS
=$LIBS
9322 LIBS
="-lXrender $LIBS"
9323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9332 char XRenderQueryExtension ();
9336 return XRenderQueryExtension ();
9341 if ac_fn_c_try_link
"$LINENO"; then :
9342 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9344 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9346 rm -f core conftest.err conftest.
$ac_objext \
9347 conftest
$ac_exeext conftest.
$ac_ext
9348 LIBS
=$ac_check_lib_save_LIBS
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9351 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9352 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9356 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9357 OLD_CPPFLAGS
="$CPPFLAGS"
9358 OLD_CFLAGS
="$CFLAGS"
9360 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9361 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9362 XFT_LIBS
="-lXrender $XFT_LIBS"
9363 LIBS
="$XFT_LIBS $LIBS"
9364 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9365 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9367 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9368 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9371 ac_check_lib_save_LIBS
=$LIBS
9372 LIBS
="-lXft $XFT_LIBS $LIBS"
9373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9382 char XftFontOpen ();
9386 return XftFontOpen ();
9391 if ac_fn_c_try_link
"$LINENO"; then :
9392 ac_cv_lib_Xft_XftFontOpen
=yes
9394 ac_cv_lib_Xft_XftFontOpen
=no
9396 rm -f core conftest.err conftest.
$ac_objext \
9397 conftest
$ac_exeext conftest.
$ac_ext
9398 LIBS
=$ac_check_lib_save_LIBS
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9401 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9402 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9410 if test "${HAVE_XFT}" = "yes"; then
9412 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9415 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9417 CPPFLAGS
="$OLD_CPPFLAGS"
9418 CFLAGS
="$OLD_CFLAGS"
9420 fi # "${HAVE_XFT}" = "yes"
9421 fi # "$HAVE_XFT" != no
9422 fi # "x${with_xft}" != "xno"
9424 if test "$HAVE_XFT" != "yes"; then
9430 ## We used to allow building with FreeType and without Xft.
9431 ## However, the ftx font backend driver is not in good shape.
9432 if test "${HAVE_XFT}" = "yes"; then
9439 if test "${HAVE_FREETYPE}" = "yes"; then
9441 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9443 if test "${with_libotf}" != "no"; then
9447 # Extract the first word of "pkg-config", so it can be a program name with args.
9448 set dummy pkg-config
; ac_word
=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9456 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9463 test -z "$as_dir" && as_dir
=.
9464 for ac_exec_ext
in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9478 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9479 if test -n "$PKG_CONFIG"; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9481 $as_echo "$PKG_CONFIG" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9489 if test "$PKG_CONFIG" = "no" ; then
9492 PKG_CONFIG_MIN_VERSION
=0.9.0
9493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9495 $as_echo_n "checking for libotf... " >&6; }
9497 if $PKG_CONFIG --exists "libotf" 2>&5; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499 $as_echo "yes" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9503 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9504 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9506 $as_echo "$LIBOTF_CFLAGS" >&6; }
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9509 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9510 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9512 $as_echo "$LIBOTF_LIBS" >&6; }
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9518 ## If we have a custom action on failure, don't print errors, but
9519 ## do set a variable so people can do so.
9520 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9527 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9528 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9532 if test $succeeded = yes; then
9538 if test "$HAVE_LIBOTF" = "yes"; then
9540 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9543 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9544 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9547 ac_check_lib_save_LIBS
=$LIBS
9549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9558 char OTF_get_variation_glyphs ();
9562 return OTF_get_variation_glyphs ();
9567 if ac_fn_c_try_link
"$LINENO"; then :
9568 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9570 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9572 rm -f core conftest.err conftest.
$ac_objext \
9573 conftest
$ac_exeext conftest.
$ac_ext
9574 LIBS
=$ac_check_lib_save_LIBS
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9577 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9578 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9579 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9581 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9584 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9586 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9594 if test "${HAVE_LIBOTF}" = yes; then
9595 if test "${with_m17n_flt}" != "no"; then
9599 # Extract the first word of "pkg-config", so it can be a program name with args.
9600 set dummy pkg-config
; ac_word
=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9608 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9615 test -z "$as_dir" && as_dir
=.
9616 for ac_exec_ext
in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9630 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9631 if test -n "$PKG_CONFIG"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9633 $as_echo "$PKG_CONFIG" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9641 if test "$PKG_CONFIG" = "no" ; then
9644 PKG_CONFIG_MIN_VERSION
=0.9.0
9645 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9647 $as_echo_n "checking for m17n-flt... " >&6; }
9649 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9655 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9656 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9658 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9661 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9662 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9664 $as_echo "$M17N_FLT_LIBS" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9670 ## If we have a custom action on failure, don't print errors, but
9671 ## do set a variable so people can do so.
9672 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9684 if test $succeeded = yes; then
9690 if test "$HAVE_M17N_FLT" = "yes"; then
9692 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9703 ### End of font-backend (under X11) section.
9714 ### Use -lXpm if available, unless `--with-xpm=no'.
9717 if test "${HAVE_X11}" = "yes"; then
9718 if test "${with_xpm}" != "no"; then
9719 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9720 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9722 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9723 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9726 ac_check_lib_save_LIBS
=$LIBS
9727 LIBS
="-lXpm -lX11 $LIBS"
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9737 char XpmReadFileToPixmap ();
9741 return XpmReadFileToPixmap ();
9746 if ac_fn_c_try_link
"$LINENO"; then :
9747 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9749 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9751 rm -f core conftest.err conftest.
$ac_objext \
9752 conftest
$ac_exeext conftest.
$ac_ext
9753 LIBS
=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9756 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9757 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9764 if test "${HAVE_XPM}" = "yes"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9766 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include "X11/xpm.h"
9770 #ifndef XpmReturnAllocPixels
9771 no_return_alloc_pixels
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
9784 if test "${HAVE_XPM}" = "yes"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9794 if test "${HAVE_XPM}" = "yes"; then
9796 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9803 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9806 if test "${HAVE_X11}" = "yes"; then
9807 if test "${with_jpeg}" != "no"; then
9808 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9811 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9812 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9815 ac_check_lib_save_LIBS
=$LIBS
9817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9826 char jpeg_destroy_compress ();
9830 return jpeg_destroy_compress ();
9835 if ac_fn_c_try_link
"$LINENO"; then :
9836 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9838 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9840 rm -f core conftest.err conftest.
$ac_objext \
9841 conftest
$ac_exeext conftest.
$ac_ext
9842 LIBS
=$ac_check_lib_save_LIBS
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9845 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9846 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
9855 if test "${HAVE_JPEG}" = "yes"; then
9856 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 #include <jpeglib.h>
9861 version=JPEG_LIB_VERSION
9864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9865 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
9866 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9870 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9876 if test "${HAVE_JPEG}" = "yes"; then
9882 ### Use -lpng if available, unless `--with-png=no'.
9885 if test "${HAVE_X11}" = "yes"; then
9886 if test "${with_png}" != "no"; then
9887 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9888 # in /usr/include/libpng.
9889 for ac_header
in png.h libpng
/png.h
9891 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9893 eval as_val
=\$
$as_ac_Header
9894 if test "x$as_val" = x
""yes; then :
9895 cat >>confdefs.h
<<_ACEOF
9896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9903 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9905 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9906 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9909 ac_check_lib_save_LIBS
=$LIBS
9910 LIBS
="-lpng -lz -lm $LIBS"
9911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9920 char png_get_channels ();
9924 return png_get_channels ();
9929 if ac_fn_c_try_link
"$LINENO"; then :
9930 ac_cv_lib_png_png_get_channels
=yes
9932 ac_cv_lib_png_png_get_channels
=no
9934 rm -f core conftest.err conftest.
$ac_objext \
9935 conftest
$ac_exeext conftest.
$ac_ext
9936 LIBS
=$ac_check_lib_save_LIBS
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9939 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9940 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
9947 if test "${HAVE_PNG}" = "yes"; then
9949 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9951 LIBPNG
="-lpng -lz -lm"
9956 ### Use -ltiff if available, unless `--with-tiff=no'.
9959 if test "${HAVE_X11}" = "yes"; then
9960 if test "${with_tiff}" != "no"; then
9961 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9962 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
9964 # At least one tiff package requires the jpeg library.
9965 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9967 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9968 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9971 ac_check_lib_save_LIBS
=$LIBS
9972 LIBS
="-ltiff $tifflibs $LIBS"
9973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9982 char TIFFGetVersion ();
9986 return TIFFGetVersion ();
9991 if ac_fn_c_try_link
"$LINENO"; then :
9992 ac_cv_lib_tiff_TIFFGetVersion
=yes
9994 ac_cv_lib_tiff_TIFFGetVersion
=no
9996 rm -f core conftest.err conftest.
$ac_objext \
9997 conftest
$ac_exeext conftest.
$ac_ext
9998 LIBS
=$ac_check_lib_save_LIBS
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10001 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10002 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10011 if test "${HAVE_TIFF}" = "yes"; then
10013 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10020 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10023 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10024 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10025 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10026 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10027 # Earlier versions can crash Emacs.
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10029 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10030 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10033 ac_check_lib_save_LIBS
=$LIBS
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10044 char EGifPutExtensionLast ();
10048 return EGifPutExtensionLast ();
10053 if ac_fn_c_try_link
"$LINENO"; then :
10054 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10056 ac_cv_lib_gif_EGifPutExtensionLast
=no
10058 rm -f core conftest.err conftest.
$ac_objext \
10059 conftest
$ac_exeext conftest.
$ac_ext
10060 LIBS
=$ac_check_lib_save_LIBS
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10063 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10064 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10074 if test "$HAVE_GIF" = yes; then
10076 elif test "$HAVE_GIF" = maybe
; then
10077 # If gif_lib.h but no libgif, try libungif.
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10079 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10080 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10083 ac_check_lib_save_LIBS
=$LIBS
10084 LIBS
="-lungif $LIBS"
10085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10094 char EGifPutExtensionLast ();
10098 return EGifPutExtensionLast ();
10103 if ac_fn_c_try_link
"$LINENO"; then :
10104 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10106 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10108 rm -f core conftest.err conftest.
$ac_objext \
10109 conftest
$ac_exeext conftest.
$ac_ext
10110 LIBS
=$ac_check_lib_save_LIBS
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10113 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10114 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10120 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10123 if test "${HAVE_GIF}" = "yes"; then
10125 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10131 if test "${HAVE_X11}" = "yes"; then
10134 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10135 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10136 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10137 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10138 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10139 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10140 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10141 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10142 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10143 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10145 if test "X${MISSING}" != X
; then
10146 as_fn_error
"The following required libraries were not found:
10148 Maybe some development libraries/packages are missing?
10149 If you don't want to link with them give
10151 as options to configure" "$LINENO" 5
10155 ### Use -lgpm if available, unless `--with-gpm=no'.
10158 if test "${with_gpm}" != "no"; then
10159 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10160 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10162 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10163 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10164 $as_echo_n "(cached) " >&6
10166 ac_check_lib_save_LIBS
=$LIBS
10168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10171 /* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10181 return Gpm_Open ();
10186 if ac_fn_c_try_link
"$LINENO"; then :
10187 ac_cv_lib_gpm_Gpm_Open
=yes
10189 ac_cv_lib_gpm_Gpm_Open
=no
10191 rm -f core conftest.err conftest.
$ac_objext \
10192 conftest
$ac_exeext conftest.
$ac_ext
10193 LIBS
=$ac_check_lib_save_LIBS
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10196 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10197 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10205 if test "${HAVE_GPM}" = "yes"; then
10207 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10214 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10215 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10217 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10223 ### Use NeXTstep API to implement GUI.
10224 if test "${HAVE_NS}" = "yes"; then
10226 $as_echo "#define HAVE_NS 1" >>confdefs.h
10228 if test "${NS_IMPL_COCOA}" = "yes"; then
10230 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10234 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10236 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10238 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10240 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10242 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10245 # We also have mouse menus.
10251 ### Use session management (-lSM -lICE) if available
10254 if test "${HAVE_X11}" = "yes"; then
10255 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10256 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10258 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10259 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10262 ac_check_lib_save_LIBS
=$LIBS
10263 LIBS
="-lSM -lICE $LIBS"
10264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10273 char SmcOpenConnection ();
10277 return SmcOpenConnection ();
10282 if ac_fn_c_try_link
"$LINENO"; then :
10283 ac_cv_lib_SM_SmcOpenConnection
=yes
10285 ac_cv_lib_SM_SmcOpenConnection
=no
10287 rm -f core conftest.err conftest.
$ac_objext \
10288 conftest
$ac_exeext conftest.
$ac_ext
10289 LIBS
=$ac_check_lib_save_LIBS
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10292 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10293 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10301 if test "${HAVE_X_SM}" = "yes"; then
10303 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10305 LIBXSM
="-lSM -lICE"
10308 *) LIBS
="$LIBXSM $LIBS" ;;
10314 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10316 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10317 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10331 if ac_fn_c_try_link
"$LINENO"; then :
10332 emacs_cv_netdb_declares_h_errno
=yes
10334 emacs_cv_netdb_declares_h_errno
=no
10336 rm -f core conftest.err conftest.
$ac_objext \
10337 conftest
$ac_exeext conftest.
$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10340 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10341 if test $emacs_cv_netdb_declares_h_errno = yes; then
10343 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10348 # for constant arguments. Useless!
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10350 $as_echo_n "checking for working alloca.h... " >&6; }
10351 if test "${ac_cv_working_alloca_h+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <alloca.h>
10360 char *p = (char *) alloca (2 * sizeof (int));
10366 if ac_fn_c_try_link
"$LINENO"; then :
10367 ac_cv_working_alloca_h
=yes
10369 ac_cv_working_alloca_h
=no
10371 rm -f core conftest.err conftest.
$ac_objext \
10372 conftest
$ac_exeext conftest.
$ac_ext
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10375 $as_echo "$ac_cv_working_alloca_h" >&6; }
10376 if test $ac_cv_working_alloca_h = yes; then
10378 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10383 $as_echo_n "checking for alloca... " >&6; }
10384 if test "${ac_cv_func_alloca_works+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10390 # define alloca __builtin_alloca
10393 # include <malloc.h>
10394 # define alloca _alloca
10396 # ifdef HAVE_ALLOCA_H
10397 # include <alloca.h>
10402 # ifndef alloca /* predefined by HP cc +Olibcalls */
10413 char *p = (char *) alloca (1);
10419 if ac_fn_c_try_link
"$LINENO"; then :
10420 ac_cv_func_alloca_works
=yes
10422 ac_cv_func_alloca_works
=no
10424 rm -f core conftest.err conftest.
$ac_objext \
10425 conftest
$ac_exeext conftest.
$ac_ext
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10428 $as_echo "$ac_cv_func_alloca_works" >&6; }
10430 if test $ac_cv_func_alloca_works = yes; then
10432 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10436 # that cause trouble. Some versions do not even contain alloca or
10437 # contain a buggy version. If you still want to use their alloca,
10438 # use ar to extract alloca.o from them instead of compiling alloca.c.
10440 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10442 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10446 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10447 if test "${ac_cv_os_cray+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #if defined CRAY && ! defined CRAY2
10459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10460 $EGREP "webecray" >/dev
/null
2>&1; then :
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10469 $as_echo "$ac_cv_os_cray" >&6; }
10470 if test $ac_cv_os_cray = yes; then
10471 for ac_func
in _getb67 GETB67 getb67
; do
10472 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10474 eval as_val
=\$
$as_ac_var
10475 if test "x$as_val" = x
""yes; then :
10477 cat >>confdefs.h
<<_ACEOF
10478 #define CRAY_STACKSEG_END $ac_func
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10488 $as_echo_n "checking stack direction for C alloca... " >&6; }
10489 if test "${ac_cv_c_stack_direction+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10492 if test "$cross_compiling" = yes; then :
10493 ac_cv_c_stack_direction
=0
10495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 $ac_includes_default
10499 find_stack_direction ()
10501 static char *addr = 0;
10506 return find_stack_direction ();
10509 return (&dummy > addr) ? 1 : -1;
10515 return find_stack_direction () < 0;
10518 if ac_fn_c_try_run
"$LINENO"; then :
10519 ac_cv_c_stack_direction
=1
10521 ac_cv_c_stack_direction
=-1
10523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10529 $as_echo "$ac_cv_c_stack_direction" >&6; }
10530 cat >>confdefs.h
<<_ACEOF
10531 #define STACK_DIRECTION $ac_cv_c_stack_direction
10538 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10539 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10542 # fmod, logb, and frexp are found in -lm on most systems.
10543 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10545 $as_echo_n "checking for sqrt in -lm... " >&6; }
10546 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10549 ac_check_lib_save_LIBS
=$LIBS
10551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10569 if ac_fn_c_try_link
"$LINENO"; then :
10570 ac_cv_lib_m_sqrt
=yes
10572 ac_cv_lib_m_sqrt
=no
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 LIBS
=$ac_check_lib_save_LIBS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10579 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10580 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10581 cat >>confdefs.h
<<_ACEOF
10582 #define HAVE_LIBM 1
10590 # Check for mail-locking functions in a "mail" library. Probably this should
10591 # have the same check as for liblockfile below.
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10593 $as_echo_n "checking for maillock in -lmail... " >&6; }
10594 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10597 ac_check_lib_save_LIBS
=$LIBS
10598 LIBS
="-lmail $LIBS"
10599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10612 return maillock ();
10617 if ac_fn_c_try_link
"$LINENO"; then :
10618 ac_cv_lib_mail_maillock
=yes
10620 ac_cv_lib_mail_maillock
=no
10622 rm -f core conftest.err conftest.
$ac_objext \
10623 conftest
$ac_exeext conftest.
$ac_ext
10624 LIBS
=$ac_check_lib_save_LIBS
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10627 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10628 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10634 if test $have_mail = yes; then
10636 LIBS
="$LIBS_MAIL $LIBS"
10638 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10644 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10645 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10648 ac_check_lib_save_LIBS
=$LIBS
10649 LIBS
="-llockfile $LIBS"
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10663 return maillock ();
10668 if ac_fn_c_try_link
"$LINENO"; then :
10669 ac_cv_lib_lockfile_maillock
=yes
10671 ac_cv_lib_lockfile_maillock
=no
10673 rm -f core conftest.err conftest.
$ac_objext \
10674 conftest
$ac_exeext conftest.
$ac_ext
10675 LIBS
=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10678 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10679 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10685 if test $have_lockfile = yes; then
10686 LIBS_MAIL
=-llockfile
10687 LIBS
="$LIBS_MAIL $LIBS"
10689 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10692 # If we have the shared liblockfile, assume we must use it for mail
10693 # locking (e.g. Debian). If we couldn't link against liblockfile
10694 # (no liblockfile.a installed), ensure that we don't need to.
10695 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10696 set dummy liblockfile.so
; ac_word
=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10702 if test -n "$liblockfile"; then
10703 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10706 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10707 for as_dir
in $as_dummy
10710 test -z "$as_dir" && as_dir
=.
10711 for ac_exec_ext
in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_prog_liblockfile
="yes"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10724 liblockfile
=$ac_cv_prog_liblockfile
10725 if test -n "$liblockfile"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10727 $as_echo "$liblockfile" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10734 if test $ac_cv_prog_liblockfile = yes; then
10735 as_fn_error
"Shared liblockfile found but can't link against it.
10736 This probably means that movemail could lose mail.
10737 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10740 for ac_func
in touchlock
10742 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10743 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10744 cat >>confdefs.h
<<_ACEOF
10745 #define HAVE_TOUCHLOCK 1
10751 for ac_header
in maillock.h
10753 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10754 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10755 cat >>confdefs.h
<<_ACEOF
10756 #define HAVE_MAILLOCK_H 1
10765 for ac_func
in gethostname getdomainname dup2 \
10766 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
10767 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10768 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10769 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10770 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10771 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10772 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10773 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10774 cfmakeraw cfsetspeed
10776 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10778 eval as_val
=\$
$as_ac_var
10779 if test "x$as_val" = x
""yes; then :
10780 cat >>confdefs.h
<<_ACEOF
10781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788 for ac_header
in sys
/un.h
10790 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10791 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
10792 cat >>confdefs.h
<<_ACEOF
10793 #define HAVE_SYS_UN_H 1
10806 for ac_func
in $ac_func_list
10808 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10810 eval as_val
=\$
$as_ac_var
10811 if test "x$as_val" = x
""yes; then :
10812 cat >>confdefs.h
<<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10824 $as_echo_n "checking for working mktime... " >&6; }
10825 if test "${ac_cv_func_working_mktime+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10828 if test "$cross_compiling" = yes; then :
10829 ac_cv_func_working_mktime
=no
10831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 /* Test program from Paul Eggert and Tony Leneis. */
10834 #ifdef TIME_WITH_SYS_TIME
10835 # include <sys/time.h>
10838 # ifdef HAVE_SYS_TIME_H
10839 # include <sys/time.h>
10845 #include <limits.h>
10846 #include <stdlib.h>
10848 #ifdef HAVE_UNISTD_H
10849 # include <unistd.h>
10853 # define alarm(X) /* empty */
10856 /* Work around redefinition to rpl_putenv by other config tests. */
10859 static time_t time_t_max;
10860 static time_t time_t_min;
10862 /* Values we'll use to set the TZ environment variable. */
10863 static char *tz_strings[] = {
10864 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10865 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10867 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10869 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10870 Based on a problem report from Andreas Jaeger. */
10872 spring_forward_gap ()
10874 /* glibc (up to about 1998-10-07) failed this test. */
10877 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10878 instead of "TZ=America/Vancouver" in order to detect the bug even
10879 on systems that don't support the Olson extension, or don't have the
10880 full zoneinfo tables installed. */
10881 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10890 return mktime (&tm) != (time_t) -1;
10898 return ! (lt = localtime (&now)) || mktime (lt) == now;
10905 return (mktime_test1 (now)
10906 && mktime_test1 ((time_t) (time_t_max - now))
10907 && mktime_test1 ((time_t) (time_t_min + now)));
10913 /* Based on code from Ariel Faigon. */
10923 return tm.tm_mon == 2 && tm.tm_mday == 31;
10932 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10933 now = mktime (&tm);
10934 if (now != (time_t) -1)
10936 struct tm *lt = localtime (&now);
10938 && lt->tm_year == tm.tm_year
10939 && lt->tm_mon == tm.tm_mon
10940 && lt->tm_mday == tm.tm_mday
10941 && lt->tm_hour == tm.tm_hour
10942 && lt->tm_min == tm.tm_min
10943 && lt->tm_sec == tm.tm_sec
10944 && lt->tm_yday == tm.tm_yday
10945 && lt->tm_wday == tm.tm_wday
10946 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10947 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10956 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10957 ignoring leap seconds. */
10958 unsigned long int answer = 2527315200UL;
10962 tm.tm_year = 2050 - 1900;
10965 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10968 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10969 instead of "TZ=America/Vancouver" in order to detect the bug even
10970 on systems that don't support the Olson extension, or don't have the
10971 full zoneinfo tables installed. */
10972 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10976 /* Check that the result is either a failure, or close enough
10977 to the correct answer that we can assume the discrepancy is
10978 due to leap seconds. */
10979 return (t == (time_t) -1
10980 || (0 < t && answer - 120 <= t && t <= answer + 120));
10989 /* This test makes some buggy mktime implementations loop.
10990 Give up after 60 seconds; a mktime slower than that
10991 isn't worth using anyway. */
10996 t = (time_t_max << 1) + 1;
10997 if (t <= time_t_max)
11001 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11003 delta = time_t_max / 997; /* a suitable prime number */
11004 for (i = 0; i < N_STRINGS; i++)
11007 putenv (tz_strings[i]);
11009 for (t = 0; t <= time_t_max - delta; t += delta)
11010 if (! mktime_test (t))
11012 if (! (mktime_test ((time_t) 1)
11013 && mktime_test ((time_t) (60 * 60))
11014 && mktime_test ((time_t) (60 * 60 * 24))))
11017 for (j = 1; ; j <<= 1)
11018 if (! bigtime_test (j))
11020 else if (INT_MAX / 2 < j)
11022 if (! bigtime_test (INT_MAX))
11025 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11028 if ac_fn_c_try_run
"$LINENO"; then :
11029 ac_cv_func_working_mktime
=yes
11031 ac_cv_func_working_mktime
=no
11033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11034 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11039 $as_echo "$ac_cv_func_working_mktime" >&6; }
11040 if test $ac_cv_func_working_mktime = no
; then
11041 case " $LIBOBJS " in
11042 *" mktime.$ac_objext "* ) ;;
11043 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11049 if test "$ac_cv_func_working_mktime" = no
; then
11051 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11055 ac_have_func
=no
# yes means we've found a way to get the load average.
11057 # Make sure getloadavg.c is where it belongs, at configure-time.
11058 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11059 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11063 # Check for getloadavg, but be sure not to touch the cache variable.
11064 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11065 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11070 ) && ac_have_func
=yes
11072 # On HPUX9, an unprivileged user can get load averages through this function.
11073 for ac_func
in pstat_getdynamic
11075 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11076 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11077 cat >>confdefs.h
<<_ACEOF
11078 #define HAVE_PSTAT_GETDYNAMIC 1
11085 # Solaris has libkstat which does not require root.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11087 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11088 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11091 ac_check_lib_save_LIBS
=$LIBS
11092 LIBS
="-lkstat $LIBS"
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11102 char kstat_open ();
11106 return kstat_open ();
11111 if ac_fn_c_try_link
"$LINENO"; then :
11112 ac_cv_lib_kstat_kstat_open
=yes
11114 ac_cv_lib_kstat_kstat_open
=no
11116 rm -f core conftest.err conftest.
$ac_objext \
11117 conftest
$ac_exeext conftest.
$ac_ext
11118 LIBS
=$ac_check_lib_save_LIBS
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11121 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11122 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11123 cat >>confdefs.h
<<_ACEOF
11124 #define HAVE_LIBKSTAT 1
11127 LIBS
="-lkstat $LIBS"
11131 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11133 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11134 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11135 # to get the right answer into the cache.
11136 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11137 if test $ac_have_func = no
; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11139 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11140 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11143 ac_check_lib_save_LIBS
=$LIBS
11145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11158 return elf_begin ();
11163 if ac_fn_c_try_link
"$LINENO"; then :
11164 ac_cv_lib_elf_elf_begin
=yes
11166 ac_cv_lib_elf_elf_begin
=no
11168 rm -f core conftest.err conftest.
$ac_objext \
11169 conftest
$ac_exeext conftest.
$ac_ext
11170 LIBS
=$ac_check_lib_save_LIBS
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11173 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11174 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11179 if test $ac_have_func = no
; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11181 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11182 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11185 ac_check_lib_save_LIBS
=$LIBS
11187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11200 return kvm_open ();
11205 if ac_fn_c_try_link
"$LINENO"; then :
11206 ac_cv_lib_kvm_kvm_open
=yes
11208 ac_cv_lib_kvm_kvm_open
=no
11210 rm -f core conftest.err conftest.
$ac_objext \
11211 conftest
$ac_exeext conftest.
$ac_ext
11212 LIBS
=$ac_check_lib_save_LIBS
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11215 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11216 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11220 # Check for the 4.4BSD definition of getloadavg.
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11222 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11223 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11226 ac_check_lib_save_LIBS
=$LIBS
11227 LIBS
="-lutil $LIBS"
11228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11237 char getloadavg ();
11241 return getloadavg ();
11246 if ac_fn_c_try_link
"$LINENO"; then :
11247 ac_cv_lib_util_getloadavg
=yes
11249 ac_cv_lib_util_getloadavg
=no
11251 rm -f core conftest.err conftest.
$ac_objext \
11252 conftest
$ac_exeext conftest.
$ac_ext
11253 LIBS
=$ac_check_lib_save_LIBS
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11256 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11257 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11258 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11263 if test $ac_have_func = no
; then
11264 # There is a commonly available library for RS/6000 AIX.
11265 # Since it is not a standard part of AIX, it might be installed locally.
11266 ac_getloadavg_LIBS
=$LIBS
11267 LIBS
="-L/usr/local/lib $LIBS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11269 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11270 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 ac_check_lib_save_LIBS
=$LIBS
11274 LIBS
="-lgetloadavg $LIBS"
11275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11284 char getloadavg ();
11288 return getloadavg ();
11293 if ac_fn_c_try_link
"$LINENO"; then :
11294 ac_cv_lib_getloadavg_getloadavg
=yes
11296 ac_cv_lib_getloadavg_getloadavg
=no
11298 rm -f core conftest.err conftest.
$ac_objext \
11299 conftest
$ac_exeext conftest.
$ac_ext
11300 LIBS
=$ac_check_lib_save_LIBS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11303 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11304 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11305 LIBS
="-lgetloadavg $LIBS"
11307 LIBS
=$ac_getloadavg_LIBS
11312 # Make sure it is really in the library, if we think we found it,
11313 # otherwise set up the replacement function.
11314 for ac_func
in getloadavg
11316 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11317 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11318 cat >>confdefs.h
<<_ACEOF
11319 #define HAVE_GETLOADAVG 1
11323 case " $LIBOBJS " in
11324 *" getloadavg.$ac_objext "* ) ;;
11325 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11330 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11332 # Figure out what our getloadavg.c needs.
11334 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11335 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11338 $as_echo "#define DGUX 1" >>confdefs.h
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11341 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11342 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11345 ac_check_lib_save_LIBS
=$LIBS
11347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11356 char dg_sys_info ();
11360 return dg_sys_info ();
11365 if ac_fn_c_try_link
"$LINENO"; then :
11366 ac_cv_lib_dgc_dg_sys_info
=yes
11368 ac_cv_lib_dgc_dg_sys_info
=no
11370 rm -f core conftest.err conftest.
$ac_objext \
11371 conftest
$ac_exeext conftest.
$ac_ext
11372 LIBS
=$ac_check_lib_save_LIBS
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11375 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11376 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11377 cat >>confdefs.h
<<_ACEOF
11378 #define HAVE_LIBDGC 1
11389 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11390 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11395 for ac_func
in setlocale
11397 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11398 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11399 cat >>confdefs.h
<<_ACEOF
11400 #define HAVE_SETLOCALE 1
11407 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11408 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11409 # Irix 4.0.5F has the header but not the library.
11410 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11413 $as_echo "#define SVR4 1" >>confdefs.h
11417 if test $ac_have_func = no
; then
11418 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11419 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11422 $as_echo "#define UMAX 1" >>confdefs.h
11425 $as_echo "#define UMAX4_3 1" >>confdefs.h
11432 if test $ac_have_func = no
; then
11433 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11434 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11435 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11442 if test $ac_have_func = no
; then
11443 for ac_header
in mach
/mach.h
11445 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11446 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11447 cat >>confdefs.h
<<_ACEOF
11448 #define HAVE_MACH_MACH_H 1
11457 for ac_header
in nlist.h
11459 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11461 cat >>confdefs.h
<<_ACEOF
11462 #define HAVE_NLIST_H 1
11464 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11466 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11468 cat >>confdefs.h
<<_ACEOF
11469 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11473 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11486 # Some definitions of getloadavg require that the program be installed setgid.
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11488 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11489 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11495 #ifdef LDAV_PRIVILEGED
11496 Yowza Am I SETGID yet
11499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11500 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11501 ac_cv_func_getloadavg_setgid
=yes
11503 ac_cv_func_getloadavg_setgid
=no
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11509 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11510 if test $ac_cv_func_getloadavg_setgid = yes; then
11513 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11519 if test $ac_cv_func_getloadavg_setgid = yes; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11521 $as_echo_n "checking group of /dev/kmem... " >&6; }
11522 if test "${ac_cv_group_kmem+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11526 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11527 # If we got an error (system does not support symlinks), try without -L.
11528 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11529 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11530 | sed -ne 's/[ ][ ]*/ /g;
11531 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11536 $as_echo "$ac_cv_group_kmem" >&6; }
11537 KMEM_GROUP
=$ac_cv_group_kmem
11539 if test "x$ac_save_LIBS" = x
; then
11540 GETLOADAVG_LIBS
=$LIBS
11542 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11549 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11550 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 #include <sys/types.h> /* for off_t */
11561 int (*fp) (FILE *, off_t, int) = fseeko;
11562 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11567 if ac_fn_c_try_link
"$LINENO"; then :
11568 ac_cv_sys_largefile_source
=no
; break
11570 rm -f core conftest.err conftest.
$ac_objext \
11571 conftest
$ac_exeext conftest.
$ac_ext
11572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #define _LARGEFILE_SOURCE 1
11575 #include <sys/types.h> /* for off_t */
11580 int (*fp) (FILE *, off_t, int) = fseeko;
11581 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11586 if ac_fn_c_try_link
"$LINENO"; then :
11587 ac_cv_sys_largefile_source
=1; break
11589 rm -f core conftest.err conftest.
$ac_objext \
11590 conftest
$ac_exeext conftest.
$ac_ext
11591 ac_cv_sys_largefile_source
=unknown
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11596 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11597 case $ac_cv_sys_largefile_source in #(
11600 cat >>confdefs.h
<<_ACEOF
11601 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11607 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11608 # in glibc 2.1.3, but that breaks too many other things.
11609 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11610 if test $ac_cv_sys_largefile_source != unknown
; then
11612 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11617 # Configure getopt.
11618 # getopt.m4 serial 10
11620 # The getopt module assume you want GNU getopt, with getopt_long etc,
11621 # rather than vanilla POSIX getopt. This means your your code should
11622 # always include <getopt.h> for the getopt prototypes.
11634 # Prerequisites of lib/getopt*.
11640 for ac_header
in getopt.h
11642 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11643 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11644 cat >>confdefs.h
<<_ACEOF
11645 #define HAVE_GETOPT_H 1
11654 if test -z "$GETOPT_H"; then
11655 for ac_func
in getopt_long_only
11657 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11658 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11659 cat >>confdefs.h
<<_ACEOF
11660 #define HAVE_GETOPT_LONG_ONLY 1
11670 if test -z "$GETOPT_H"; then
11671 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11673 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11679 if test -z "$GETOPT_H"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11681 $as_echo_n "checking for working GNU getopt function... " >&6; }
11682 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11685 if test "$cross_compiling" = yes; then :
11686 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11688 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11689 gl_cv_func_gnu_getopt
=no
11691 gl_cv_func_gnu_getopt
=yes
11695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697 #include <getopt.h>
11703 myargv[0] = "conftest";
11706 return getopt (2, myargv, "+a") != '?';
11712 if ac_fn_c_try_run
"$LINENO"; then :
11713 gl_cv_func_gnu_getopt
=yes
11715 gl_cv_func_gnu_getopt
=no
11717 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11718 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11723 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11724 if test "$gl_cv_func_gnu_getopt" = "no"; then
11731 if test -n "$GETOPT_H"; then :
11736 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11741 GETOPTOBJS
='getopt.o getopt1.o'
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11748 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11749 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11752 # Use it with a single arg.
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 $ac_includes_default
11764 if ac_fn_c_try_compile
"$LINENO"; then :
11765 ac_cv_func_getpgrp_void
=no
11767 ac_cv_func_getpgrp_void
=yes
11769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11773 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11774 if test $ac_cv_func_getpgrp_void = yes; then
11776 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11781 for ac_func
in strftime
11783 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11784 if test "x$ac_cv_func_strftime" = x
""yes; then :
11785 cat >>confdefs.h
<<_ACEOF
11786 #define HAVE_STRFTIME 1
11790 # strftime is in -lintl on SCO UNIX.
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11792 $as_echo_n "checking for strftime in -lintl... " >&6; }
11793 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11796 ac_check_lib_save_LIBS
=$LIBS
11797 LIBS
="-lintl $LIBS"
11798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11811 return strftime ();
11816 if ac_fn_c_try_link
"$LINENO"; then :
11817 ac_cv_lib_intl_strftime
=yes
11819 ac_cv_lib_intl_strftime
=no
11821 rm -f core conftest.err conftest.
$ac_objext \
11822 conftest
$ac_exeext conftest.
$ac_ext
11823 LIBS
=$ac_check_lib_save_LIBS
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11826 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11827 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11828 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11830 LIBS
="-lintl $LIBS"
11838 for ac_func
in grantpt
11840 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
11841 if test "x$ac_cv_func_grantpt" = x
""yes; then :
11842 cat >>confdefs.h
<<_ACEOF
11843 #define HAVE_GRANTPT 1
11850 # PTY-related GNU extensions.
11851 for ac_func
in getpt
11853 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
11854 if test "x$ac_cv_func_getpt" = x
""yes; then :
11855 cat >>confdefs.h
<<_ACEOF
11856 #define HAVE_GETPT 1
11863 # Check this now, so that we will NOT find the above functions in ncurses.
11864 # That is because we have not set up to link ncurses in lib-src.
11865 # It's better to believe a function is not available
11866 # than to expect to find it in ncurses.
11867 # Also we need tputs and frieds to be able to build at all.
11868 have_tputs_et_al
=true
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
11870 $as_echo_n "checking for library containing tputs... " >&6; }
11871 if test "${ac_cv_search_tputs+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11874 ac_func_search_save_LIBS
=$LIBS
11875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11893 for ac_lib
in '' ncurses terminfo termcap
; do
11894 if test -z "$ac_lib"; then
11895 ac_res
="none required"
11898 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11900 if ac_fn_c_try_link
"$LINENO"; then :
11901 ac_cv_search_tputs
=$ac_res
11903 rm -f core conftest.err conftest.
$ac_objext \
11905 if test "${ac_cv_search_tputs+set}" = set; then :
11909 if test "${ac_cv_search_tputs+set}" = set; then :
11912 ac_cv_search_tputs
=no
11914 rm conftest.
$ac_ext
11915 LIBS
=$ac_func_search_save_LIBS
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
11918 $as_echo "$ac_cv_search_tputs" >&6; }
11919 ac_res
=$ac_cv_search_tputs
11920 if test "$ac_res" != no
; then :
11921 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11924 have_tputs_et_al
=false
11927 if test "$have_tputs_et_al" != true
; then
11928 as_fn_error
"I couldn't find termcap functions (tputs and friends).
11929 Maybe some development libraries/packages are missing? Try installing
11930 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
11932 # Must define this when any termcap library is found.
11934 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
11937 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #include <netinet/in.h>
11943 #include <arpa/nameser.h>
11944 #include <resolv.h>
11953 if ac_fn_c_try_link
"$LINENO"; then :
11958 rm -f core conftest.err conftest.
$ac_objext \
11959 conftest
$ac_exeext conftest.
$ac_ext
11960 if test "$have_res_init" = no
; then
11962 LIBS
="$LIBS -lresolv"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11964 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <netinet/in.h>
11968 #include <arpa/nameser.h>
11969 #include <resolv.h>
11978 if ac_fn_c_try_link
"$LINENO"; then :
11983 rm -f core conftest.err conftest.
$ac_objext \
11984 conftest
$ac_exeext conftest.
$ac_ext
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11986 $as_echo "$have_res_init" >&6; }
11987 if test "$have_res_init" = yes ; then
11993 if test "$have_res_init" = yes; then
11995 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11999 # Do we need the Hesiod library to provide the support routines?
12001 if test "$with_hesiod" != no
; then
12002 # Don't set $LIBS here -- see comments above. FIXME which comments?
12003 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12004 if test "x$ac_cv_func_res_send" = x
""yes; then :
12007 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12008 if test "x$ac_cv_func___res_send" = x
""yes; then :
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12012 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12013 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12016 ac_check_lib_save_LIBS
=$LIBS
12017 LIBS
="-lresolv $LIBS"
12018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12031 return res_send ();
12036 if ac_fn_c_try_link
"$LINENO"; then :
12037 ac_cv_lib_resolv_res_send
=yes
12039 ac_cv_lib_resolv_res_send
=no
12041 rm -f core conftest.err conftest.
$ac_objext \
12042 conftest
$ac_exeext conftest.
$ac_ext
12043 LIBS
=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12046 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12047 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12051 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12052 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12055 ac_check_lib_save_LIBS
=$LIBS
12056 LIBS
="-lresolv $LIBS"
12057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12066 char __res_send ();
12070 return __res_send ();
12075 if ac_fn_c_try_link
"$LINENO"; then :
12076 ac_cv_lib_resolv___res_send
=yes
12078 ac_cv_lib_resolv___res_send
=no
12080 rm -f core conftest.err conftest.
$ac_objext \
12081 conftest
$ac_exeext conftest.
$ac_ext
12082 LIBS
=$ac_check_lib_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12085 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12086 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12096 if test "$resolv" = yes ; then
12101 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12102 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12106 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12107 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12110 ac_check_lib_save_LIBS
=$LIBS
12111 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12121 char hes_getmailhost ();
12125 return hes_getmailhost ();
12130 if ac_fn_c_try_link
"$LINENO"; then :
12131 ac_cv_lib_hesiod_hes_getmailhost
=yes
12133 ac_cv_lib_hesiod_hes_getmailhost
=no
12135 rm -f core conftest.err conftest.
$ac_objext \
12136 conftest
$ac_exeext conftest.
$ac_ext
12137 LIBS
=$ac_check_lib_save_LIBS
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12140 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12141 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12150 if test x
"$hesiod" = xyes
; then
12152 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12159 # Do we need libresolv (due to res_init or Hesiod)?
12160 if test "$resolv" = yes ; then
12162 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12170 # These tell us which Kerberos-related libraries to use.
12177 if test "${with_kerberos}" != no
; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12179 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12180 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12183 ac_check_lib_save_LIBS
=$LIBS
12184 LIBS
="-lcom_err $LIBS"
12185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12203 if ac_fn_c_try_link
"$LINENO"; then :
12204 ac_cv_lib_com_err_com_err
=yes
12206 ac_cv_lib_com_err_com_err
=no
12208 rm -f core conftest.err conftest.
$ac_objext \
12209 conftest
$ac_exeext conftest.
$ac_ext
12210 LIBS
=$ac_check_lib_save_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12213 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12214 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12220 if test $have_com_err = yes; then
12221 COM_ERRLIB
=-lcom_err
12222 LIBS
="$COM_ERRLIB $LIBS"
12224 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12228 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12229 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12232 ac_check_lib_save_LIBS
=$LIBS
12233 LIBS
="-lcrypto $LIBS"
12234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12243 char mit_des_cbc_encrypt ();
12247 return mit_des_cbc_encrypt ();
12252 if ac_fn_c_try_link
"$LINENO"; then :
12253 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12255 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12257 rm -f core conftest.err conftest.
$ac_objext \
12258 conftest
$ac_exeext conftest.
$ac_ext
12259 LIBS
=$ac_check_lib_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12262 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12263 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12269 if test $have_crypto = yes; then
12271 LIBS
="$CRYPTOLIB $LIBS"
12273 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12277 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12278 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12281 ac_check_lib_save_LIBS
=$LIBS
12282 LIBS
="-lk5crypto $LIBS"
12283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12292 char mit_des_cbc_encrypt ();
12296 return mit_des_cbc_encrypt ();
12301 if ac_fn_c_try_link
"$LINENO"; then :
12302 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12304 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12306 rm -f core conftest.err conftest.
$ac_objext \
12307 conftest
$ac_exeext conftest.
$ac_ext
12308 LIBS
=$ac_check_lib_save_LIBS
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12311 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12312 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12318 if test $have_k5crypto = yes; then
12319 CRYPTOLIB
=-lk5crypto
12320 LIBS
="$CRYPTOLIB $LIBS"
12322 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12326 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12327 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 ac_check_lib_save_LIBS
=$LIBS
12331 LIBS
="-lkrb5 $LIBS"
12332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12335 /* Override any GCC internal prototype to avoid an error.
12336 Use char because int might match the return type of a GCC
12337 builtin and then its argument prototype would still apply. */
12341 char krb5_init_context ();
12345 return krb5_init_context ();
12350 if ac_fn_c_try_link
"$LINENO"; then :
12351 ac_cv_lib_krb5_krb5_init_context
=yes
12353 ac_cv_lib_krb5_krb5_init_context
=no
12355 rm -f core conftest.err conftest.
$ac_objext \
12356 conftest
$ac_exeext conftest.
$ac_ext
12357 LIBS
=$ac_check_lib_save_LIBS
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12360 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12361 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12367 if test $have_krb5=yes; then
12369 LIBS
="$KRB5LIB $LIBS"
12371 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12374 if test "${with_kerberos5}" = no
; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12376 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12377 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12380 ac_check_lib_save_LIBS
=$LIBS
12381 LIBS
="-ldes425 $LIBS"
12382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12391 char des_cbc_encrypt ();
12395 return des_cbc_encrypt ();
12400 if ac_fn_c_try_link
"$LINENO"; then :
12401 ac_cv_lib_des425_des_cbc_encrypt
=yes
12403 ac_cv_lib_des425_des_cbc_encrypt
=no
12405 rm -f core conftest.err conftest.
$ac_objext \
12406 conftest
$ac_exeext conftest.
$ac_ext
12407 LIBS
=$ac_check_lib_save_LIBS
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12410 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12411 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12417 if test $have_des425 = yes; then
12419 LIBS
="$DESLIB $LIBS"
12421 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12425 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12426 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_check_lib_save_LIBS
=$LIBS
12431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12440 char des_cbc_encrypt ();
12444 return des_cbc_encrypt ();
12449 if ac_fn_c_try_link
"$LINENO"; then :
12450 ac_cv_lib_des_des_cbc_encrypt
=yes
12452 ac_cv_lib_des_des_cbc_encrypt
=no
12454 rm -f core conftest.err conftest.
$ac_objext \
12455 conftest
$ac_exeext conftest.
$ac_ext
12456 LIBS
=$ac_check_lib_save_LIBS
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12459 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12460 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12466 if test $have_des = yes; then
12468 LIBS
="$DESLIB $LIBS"
12470 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12475 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12476 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12479 ac_check_lib_save_LIBS
=$LIBS
12480 LIBS
="-lkrb4 $LIBS"
12481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12490 char krb_get_cred ();
12494 return krb_get_cred ();
12499 if ac_fn_c_try_link
"$LINENO"; then :
12500 ac_cv_lib_krb4_krb_get_cred
=yes
12502 ac_cv_lib_krb4_krb_get_cred
=no
12504 rm -f core conftest.err conftest.
$ac_objext \
12505 conftest
$ac_exeext conftest.
$ac_ext
12506 LIBS
=$ac_check_lib_save_LIBS
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12509 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12510 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12516 if test $have_krb4 = yes; then
12518 LIBS
="$KRB4LIB $LIBS"
12520 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12524 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12525 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12528 ac_check_lib_save_LIBS
=$LIBS
12530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12539 char krb_get_cred ();
12543 return krb_get_cred ();
12548 if ac_fn_c_try_link
"$LINENO"; then :
12549 ac_cv_lib_krb_krb_get_cred
=yes
12551 ac_cv_lib_krb_krb_get_cred
=no
12553 rm -f core conftest.err conftest.
$ac_objext \
12554 conftest
$ac_exeext conftest.
$ac_ext
12555 LIBS
=$ac_check_lib_save_LIBS
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12558 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12559 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12565 if test $have_krb = yes; then
12567 LIBS
="$KRB4LIB $LIBS"
12569 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12575 if test "${with_kerberos5}" != no
; then
12576 for ac_header
in krb5.h
12578 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12579 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12580 cat >>confdefs.h
<<_ACEOF
12581 #define HAVE_KRB5_H 1
12583 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12585 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12587 cat >>confdefs.h
<<_ACEOF
12588 #define HAVE_KRB5_ERROR_TEXT 1
12593 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12595 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12597 cat >>confdefs.h
<<_ACEOF
12598 #define HAVE_KRB5_ERROR_E_TEXT 1
12609 for ac_header
in des.h
12611 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12612 if test "x$ac_cv_header_des_h" = x
""yes; then :
12613 cat >>confdefs.h
<<_ACEOF
12614 #define HAVE_DES_H 1
12618 for ac_header
in kerberosIV
/des.h
12620 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12621 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12622 cat >>confdefs.h
<<_ACEOF
12623 #define HAVE_KERBEROSIV_DES_H 1
12627 for ac_header
in kerberos
/des.h
12629 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12630 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12631 cat >>confdefs.h
<<_ACEOF
12632 #define HAVE_KERBEROS_DES_H 1
12647 for ac_header
in krb.h
12649 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12650 if test "x$ac_cv_header_krb_h" = x
""yes; then :
12651 cat >>confdefs.h
<<_ACEOF
12652 #define HAVE_KRB_H 1
12656 for ac_header
in kerberosIV
/krb.h
12658 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12659 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
12660 cat >>confdefs.h
<<_ACEOF
12661 #define HAVE_KERBEROSIV_KRB_H 1
12665 for ac_header
in kerberos
/krb.h
12667 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12668 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
12669 cat >>confdefs.h
<<_ACEOF
12670 #define HAVE_KERBEROS_KRB_H 1
12686 for ac_header
in com_err.h
12688 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12689 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
12690 cat >>confdefs.h
<<_ACEOF
12691 #define HAVE_COM_ERR_H 1
12706 # Solaris requires -lintl if you want strerror (which calls dgettext)
12707 # to return localized messages.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12709 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12710 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12713 ac_check_lib_save_LIBS
=$LIBS
12714 LIBS
="-lintl $LIBS"
12715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12718 /* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
12728 return dgettext ();
12733 if ac_fn_c_try_link
"$LINENO"; then :
12734 ac_cv_lib_intl_dgettext
=yes
12736 ac_cv_lib_intl_dgettext
=no
12738 rm -f core conftest.err conftest.
$ac_objext \
12739 conftest
$ac_exeext conftest.
$ac_ext
12740 LIBS
=$ac_check_lib_save_LIBS
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12743 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12744 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
12745 cat >>confdefs.h
<<_ACEOF
12746 #define HAVE_LIBINTL 1
12749 LIBS
="-lintl $LIBS"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12755 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12756 if test "${emacs_cv_localtime_cache+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12759 if test x
$ac_cv_func_tzset = xyes
; then
12760 if test "$cross_compiling" = yes; then :
12761 # If we have tzset, assume the worst when cross-compiling.
12762 emacs_cv_localtime_cache
=yes
12764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12767 extern char **environ;
12771 for (to = from = environ; (*to = *from); from++)
12772 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12775 char TZ_GMT0[] = "TZ=GMT0";
12776 char TZ_PST8[] = "TZ=PST8";
12779 time_t now = time ((time_t *) 0);
12780 int hour_GMT0, hour_unset;
12781 if (putenv (TZ_GMT0) != 0)
12783 hour_GMT0 = localtime (&now)->tm_hour;
12785 hour_unset = localtime (&now)->tm_hour;
12786 if (putenv (TZ_PST8) != 0)
12788 if (localtime (&now)->tm_hour == hour_GMT0)
12791 if (localtime (&now)->tm_hour != hour_unset)
12796 if ac_fn_c_try_run
"$LINENO"; then :
12797 emacs_cv_localtime_cache
=no
12799 emacs_cv_localtime_cache
=yes
12801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12806 # If we lack tzset, report that localtime does not cache TZ,
12807 # since we can't invalidate the cache if we don't have tzset.
12808 emacs_cv_localtime_cache
=no
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12812 $as_echo "$emacs_cv_localtime_cache" >&6; }
12813 if test $emacs_cv_localtime_cache = yes; then
12815 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12819 if test "x$HAVE_TIMEVAL" = xyes
; then
12820 for ac_func
in gettimeofday
12822 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12823 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
12824 cat >>confdefs.h
<<_ACEOF
12825 #define HAVE_GETTIMEOFDAY 1
12831 if test $ac_cv_func_gettimeofday = yes; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12833 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12834 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 #ifdef TIME_WITH_SYS_TIME
12841 #include <sys/time.h>
12844 #ifdef HAVE_SYS_TIME_H
12845 #include <sys/time.h>
12853 struct timeval time;
12854 gettimeofday (&time, 0);
12859 if ac_fn_c_try_compile
"$LINENO"; then :
12860 emacs_cv_gettimeofday_two_arguments
=yes
12862 emacs_cv_gettimeofday_two_arguments
=no
12864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12867 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12868 if test $emacs_cv_gettimeofday_two_arguments = no
; then
12870 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12877 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
12878 if test "x$ac_cv_func_socket" = x
""yes; then :
12884 if test $ok_so_far = yes; then
12885 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12886 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
12894 if test $ok_so_far = yes; then
12895 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
12904 if test $ok_so_far = yes; then
12906 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12910 for ac_header
in sys
/ioctl.h
12912 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12913 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
12914 cat >>confdefs.h
<<_ACEOF
12915 #define HAVE_SYS_IOCTL_H 1
12923 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12925 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12930 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12931 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933 $as_echo "yes" >&6; }
12935 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12942 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12943 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12947 cat >>confdefs.h
<<_ACEOF
12953 for ac_header
in vfork.h
12955 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12956 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12957 cat >>confdefs.h
<<_ACEOF
12958 #define HAVE_VFORK_H 1
12965 for ac_func
in fork vfork
12967 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12968 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12969 eval as_val
=\$
$as_ac_var
12970 if test "x$as_val" = x
""yes; then :
12971 cat >>confdefs.h
<<_ACEOF
12972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12978 if test "x$ac_cv_func_fork" = xyes
; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12980 $as_echo_n "checking for working fork... " >&6; }
12981 if test "${ac_cv_func_fork_works+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12984 if test "$cross_compiling" = yes; then :
12985 ac_cv_func_fork_works
=cross
12987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 $ac_includes_default
12994 /* By Ruediger Kuhlmann. */
12995 return fork () < 0;
13001 if ac_fn_c_try_run
"$LINENO"; then :
13002 ac_cv_func_fork_works
=yes
13004 ac_cv_func_fork_works
=no
13006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13007 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13012 $as_echo "$ac_cv_func_fork_works" >&6; }
13015 ac_cv_func_fork_works
=$ac_cv_func_fork
13017 if test "x$ac_cv_func_fork_works" = xcross
; then
13019 *-*-amigaos* |
*-*-msdosdjgpp*)
13020 # Override, as these systems have only a dummy fork() stub
13021 ac_cv_func_fork_works
=no
13024 ac_cv_func_fork_works
=yes
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13028 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13030 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13031 if test "x$ac_cv_func_vfork" = xyes
; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13033 $as_echo_n "checking for working vfork... " >&6; }
13034 if test "${ac_cv_func_vfork_works+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13037 if test "$cross_compiling" = yes; then :
13038 ac_cv_func_vfork_works
=cross
13040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 /* Thanks to Paul Eggert for this test. */
13043 $ac_includes_default
13044 #include <sys/wait.h>
13045 #ifdef HAVE_VFORK_H
13046 # include <vfork.h>
13048 /* On some sparc systems, changes by the child to local and incoming
13049 argument registers are propagated back to the parent. The compiler
13050 is told about this with #include <vfork.h>, but some compilers
13051 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13052 static variable whose address is put into a register that is
13053 clobbered by the vfork. */
13056 sparc_address_test (int arg)
13058 sparc_address_test (arg) int arg;
13061 static pid_t child;
13079 pid_t parent = getpid ();
13082 sparc_address_test (0);
13087 /* Here is another test for sparc vfork register problems. This
13088 test uses lots of local variables, at least as many local
13089 variables as main has allocated so far including compiler
13090 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13091 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13092 reuse the register of parent for one of the local variables,
13093 since it will think that parent can't possibly be used any more
13094 in this routine. Assigning to the local variable will thus
13095 munge parent in the parent process. */
13097 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13098 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13099 /* Convince the compiler that p..p7 are live; otherwise, it might
13100 use the same hardware register for all 8 local variables. */
13101 if (p != p1 || p != p2 || p != p3 || p != p4
13102 || p != p5 || p != p6 || p != p7)
13105 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13106 from child file descriptors. If the child closes a descriptor
13107 before it execs or exits, this munges the parent's descriptor
13108 as well. Test for this by closing stdout in the child. */
13109 _exit(close(fileno(stdout)) != 0);
13114 while (wait(&status) != child)
13117 /* Was there some problem with vforking? */
13120 /* Did the child fail? (This shouldn't happen.) */
13123 /* Did the vfork/compiler bug occur? */
13124 || parent != getpid()
13126 /* Did the file descriptor bug occur? */
13127 || fstat(fileno(stdout), &st) != 0
13132 if ac_fn_c_try_run
"$LINENO"; then :
13133 ac_cv_func_vfork_works
=yes
13135 ac_cv_func_vfork_works
=no
13137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13138 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13143 $as_echo "$ac_cv_func_vfork_works" >&6; }
13146 if test "x$ac_cv_func_fork_works" = xcross
; then
13147 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13149 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13152 if test "x$ac_cv_func_vfork_works" = xyes
; then
13154 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13158 $as_echo "#define vfork fork" >>confdefs.h
13161 if test "x$ac_cv_func_fork_works" = xyes
; then
13163 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13169 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13170 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <langinfo.h>
13179 char* cs = nl_langinfo(CODESET);
13184 if ac_fn_c_try_link
"$LINENO"; then :
13185 emacs_cv_langinfo_codeset
=yes
13187 emacs_cv_langinfo_codeset
=no
13189 rm -f core conftest.err conftest.
$ac_objext \
13190 conftest
$ac_exeext conftest.
$ac_ext
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13194 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13195 if test $emacs_cv_langinfo_codeset = yes; then
13197 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13201 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13202 if test "x$ac_cv_type_size_t" = x
""yes; then :
13204 cat >>confdefs.h
<<_ACEOF
13205 #define HAVE_SIZE_T 1
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13213 $as_echo_n "checking for mbstate_t... " >&6; }
13214 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 $ac_includes_default
13220 # include <wchar.h>
13224 mbstate_t x; return sizeof x;
13229 if ac_fn_c_try_compile
"$LINENO"; then :
13230 ac_cv_type_mbstate_t
=yes
13232 ac_cv_type_mbstate_t
=no
13234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13237 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13238 if test $ac_cv_type_mbstate_t = yes; then
13240 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13244 $as_echo "#define mbstate_t int" >>confdefs.h
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13249 $as_echo_n "checking for C restrict keyword... " >&6; }
13250 if test "${emacs_cv_c_restrict+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255 void fred (int *restrict x);
13264 if ac_fn_c_try_compile
"$LINENO"; then :
13265 emacs_cv_c_restrict
=yes
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 void fred (int *__restrict x);
13278 if ac_fn_c_try_compile
"$LINENO"; then :
13279 emacs_cv_c_restrict
=__restrict
13281 emacs_cv_c_restrict
=no
13283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13288 $as_echo "$emacs_cv_c_restrict" >&6; }
13289 case "$emacs_cv_c_restrict" in
13290 yes) emacs_restrict
=restrict
;;
13291 no
) emacs_restrict
="";;
13292 *) emacs_restrict
="$emacs_cv_c_restrict";;
13294 if test "$emacs_restrict" != __restrict
; then
13296 cat >>confdefs.h
<<_ACEOF
13297 #define __restrict $emacs_restrict
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13303 $as_echo_n "checking for C restricted array declarations... " >&6; }
13304 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 void fred (int x[__restrict]);
13318 if ac_fn_c_try_compile
"$LINENO"; then :
13319 emacs_cv_c_restrict_arr
=yes
13321 emacs_cv_c_restrict_arr
=no
13323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13326 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13327 if test "$emacs_cv_c_restrict_arr" = yes; then
13329 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13335 # Set up the CFLAGS for real compilation, so we can substitute it.
13336 CFLAGS
="$REAL_CFLAGS"
13337 CPPFLAGS
="$REAL_CPPFLAGS"
13339 #### Find out which version of Emacs this is.
13340 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13341 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13342 if test x
"${version}" = x
; then
13343 as_fn_error
"can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13345 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13347 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13350 ### Specify what sort of things we'll be editing into Makefile and config.h.
13351 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13396 cat >>confdefs.h <<_ACEOF
13397 #define EMACS_CONFIGURATION "${canonical}"
13401 cat >>confdefs.h <<_ACEOF
13402 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13406 cat >>confdefs.h <<_ACEOF
13407 #define config_machfile "${machfile}"
13411 cat >>confdefs.h <<_ACEOF
13412 #define config_opsysfile "${opsysfile}"
13416 cat >>confdefs.h <<_ACEOF
13417 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13421 cat >>confdefs.h <<_ACEOF
13422 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13426 cat >>confdefs.h <<_ACEOF
13427 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13431 cat >>confdefs.h <<_ACEOF
13432 #define UNEXEC_SRC ${UNEXEC_SRC}
13438 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13440 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13443 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13448 if test "${USE_X_TOOLKIT}" != "none" ; then
13450 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13452 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13454 $as_echo "#define USE_LUCID 1" >>confdefs.h
13456 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13458 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13462 if test "${HAVE_X11}" = "yes" ; then
13464 $as_echo "#define HAVE_X11 1" >>confdefs.h
13467 if test "${HAVE_MENUS}" = "yes" ; then
13469 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13472 if test "${GNU_MALLOC}" = "yes" ; then
13474 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13477 if test "${REL_ALLOC}" = "yes" ; then
13479 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13486 #### Report on what we decided to do.
13487 #### Report GTK as a toolkit, even if it doesn't use Xt.
13488 #### It makes printing result more understandable as using GTK sets
13489 #### toolkit_scroll_bars to yes by default.
13490 if test "${HAVE_GTK}" = "yes"; then
13495 Configured for \`${canonical}'.
13497 Where should the build process find the source code? ${srcdir}
13498 What operating system and machine description files should Emacs use?
13499 \`${opsysfile}' and \`${machfile}'
13500 What compiler should emacs be built with? ${CC} ${CFLAGS}
13501 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13502 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13503 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13504 What window system should Emacs use? ${window_system}
13505 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13507 if test -n "${x_includes}"; then
13508 echo " Where do we find X Windows header files? ${x_includes}"
13510 echo " Where do we find X Windows header files? Standard dirs"
13512 if test -n "${x_libraries}"; then
13513 echo " Where do we find X Windows libraries? ${x_libraries}"
13515 echo " Where do we find X Windows libraries? Standard dirs"
13518 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13519 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13520 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13521 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13522 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13523 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13524 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13525 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13526 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13527 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13528 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
13530 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13531 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13532 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13533 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13535 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13538 if test $USE_XASSERTS = yes; then
13539 echo " Compiling with asserts turned on."
13540 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
13545 if test "$HAVE_NS" = "yes"; then
13547 echo "You must run \"make install\" in order to test the built application.
13548 The installed application will go to nextstep/Emacs.app and can be
13549 run or moved from there."
13550 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13551 echo "The application will be fully self-contained."
13553 echo "The lisp resources for the application will be installed under ${prefix}.
13554 You may need to run \"make install\" with sudo. The application will fail
13555 to run if these resources are not installed."
13560 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13561 echo "D-Bus integration has been tested for GNU/Linux only."
13566 # Remove any trailing slashes in these variables.
13567 test "${prefix}" != NONE
&&
13568 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13569 test "${exec_prefix}" != NONE
&&
13570 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13572 # Now get this: Some word that is part of the ${srcdir} directory name
13573 # or the ${configuration} value might, just might, happen to be an
13574 # identifier like `sun4' or `i386' or something, and be predefined by
13575 # the C preprocessor to some helpful value like 1, or maybe the empty
13576 # string. Needless to say consequent macro substitutions are less
13577 # than conducive to the makefile finding the correct directory.
13578 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
13579 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13580 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13582 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13583 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13584 ## from Makefile.c can correctly provide the arg `-traditional' to the
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13592 $EGREP "yes..yes" >/dev
/null
2>&1; then :
13593 CPP_NEED_TRADITIONAL
=no
13595 CPP_NEED_TRADITIONAL
=yes
13600 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13602 ac_config_commands
="$ac_config_commands default"
13604 cat >confcache
<<\_ACEOF
13605 # This file is a shell script that caches the results of configure
13606 # tests run on this system so they can be shared between configure
13607 # scripts and configure runs, see configure's option --config-cache.
13608 # It is not useful on other systems. If it contains results you don't
13609 # want to keep, you may remove or edit it.
13611 # config.status only pays attention to the cache file if you give it
13612 # the --recheck option to rerun configure.
13614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13616 # following values.
13620 # The following way of writing the cache mishandles newlines in values,
13621 # but we know of no workaround that is simple, portable, and efficient.
13622 # So, we kill variables containing newlines.
13623 # Ultrix sh set writes to stderr and can't be redirected directly,
13624 # and sets the high bit in the cache file unless we assign to the vars.
13626 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13627 eval ac_val
=\$
$ac_var
13631 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13635 _ | IFS | as_nl
) ;; #(
13636 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13637 *) { eval $ac_var=; unset $ac_var;} ;;
13643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13644 *${as_nl}ac_space
=\
*)
13645 # `set' does not quote correctly, so add quotes: double-quote
13646 # substitution turns \\\\ into \\, and sed turns \\ into \.
13649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13652 # `set' quotes correctly as required by POSIX, so do not add quotes.
13653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13666 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13667 if test -w "$cache_file"; then
13668 test "x$cache_file" != "x/dev/null" &&
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13670 $as_echo "$as_me: updating cache $cache_file" >&6;}
13671 cat confcache
>$cache_file
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13680 # Let make expand exec_prefix.
13681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13683 DEFS
=-DHAVE_CONFIG_H
13687 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13688 # 1. Remove the extension, and $U if already installed.
13689 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13690 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13692 # will be set to the directory where LIBOBJS objects are built.
13693 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13694 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13696 LIBOBJS
=$ac_libobjs
13698 LTLIBOBJS
=$ac_ltlibobjs
13702 : ${CONFIG_STATUS=./config.status}
13704 ac_clean_files_save
=$ac_clean_files
13705 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13707 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13709 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13711 # Generated by $as_me.
13712 # Run this file to recreate the current configuration.
13713 # Compiler output produced by configure, useful for debugging
13714 # configure, is in config.log if it exists.
13717 ac_cs_recheck=false
13720 SHELL=\${CONFIG_SHELL-$SHELL}
13723 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13724 ## -------------------- ##
13725 ## M4sh Initialization. ##
13726 ## -------------------- ##
13728 # Be more Bourne compatible
13729 DUALCASE
=1; export DUALCASE
# for MKS sh
13730 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13734 # is contrary to our usage. Disable this feature.
13735 alias -g '${1+"$@"}'='"$@"'
13736 setopt NO_GLOB_SUBST
13738 case `(set -o) 2>/dev/null` in #(
13750 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13751 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13754 # Prefer a ksh shell builtin over an external printf program on Solaris,
13755 # but without wasting forks for bash or zsh.
13756 if test -z "$BASH_VERSION$ZSH_VERSION" \
13757 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13758 as_echo='print
-r --'
13759 as_echo_n='print
-rn --'
13760 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13761 as_echo='printf %s
\n'
13762 as_echo_n='printf %s
'
13764 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13765 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13766 as_echo_n='/usr
/ucb
/echo -n'
13768 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13769 as_echo_n_body='eval
13773 expr "X$arg" : "X\\(.*\\)$as_nl";
13774 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13776 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13778 export as_echo_n_body
13779 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13781 export as_echo_body
13782 as_echo='sh
-c $as_echo_body as_echo
'
13785 # The user is always right.
13786 if test "${PATH_SEPARATOR+set}" != set; then
13788 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13789 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13796 # We need space, tab and new line, in precisely that order. Quoting is
13797 # there to prevent editors from complaining about space-tab.
13798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13799 # splitting by setting IFS to empty value.)
13802 # Find who we are. Look in the path if we contain no directory separator.
13804 *[\\/]* ) as_myself=$0 ;;
13805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13809 test -z "$as_dir" && as_dir=.
13810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13816 # We did not find ourselves, most probably we were run as `sh COMMAND'
13817 # in which case we are not to be found in the path.
13818 if test "x$as_myself" = x
; then
13821 if test ! -f "$as_myself"; then
13822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13826 # Unset variables that we do not need and which cause bugs (e.g. in
13827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13828 # suppresses any "Segmentation fault" message there. '((' could
13829 # trigger a bug in pdksh 5.2.14.
13830 for as_var
in BASH_ENV ENV MAIL MAILPATH
13831 do eval test x\
${$as_var+set} = xset \
13832 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13845 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13848 # as_fn_error ERROR [LINENO LOG_FD]
13849 # ---------------------------------
13850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13852 # script with status $?, using 1 if that was 0.
13855 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13857 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13860 $as_echo "$as_me: error: $1" >&2
13861 as_fn_exit
$as_status
13865 # as_fn_set_status STATUS
13866 # -----------------------
13867 # Set $? to STATUS, without forking.
13868 as_fn_set_status
()
13871 } # as_fn_set_status
13873 # as_fn_exit STATUS
13874 # -----------------
13875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13879 as_fn_set_status
$1
13885 # Portably unset VAR.
13888 { eval $1=; unset $1;}
13890 as_unset
=as_fn_unset
13891 # as_fn_append VAR VALUE
13892 # ----------------------
13893 # Append the text in VALUE to the end of the definition contained in VAR. Take
13894 # advantage of any shell optimizations that allow amortized linear growth over
13895 # repeated appends, instead of the typical quadratic growth present in naive
13897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13898 eval 'as_fn_append ()
13909 # as_fn_arith ARG...
13910 # ------------------
13911 # Perform arithmetic evaluation on the ARGs, and store the result in the
13912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13913 # must be portable across $(()) and expr.
13914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13915 eval 'as_fn_arith ()
13922 as_val
=`expr "$@" || test $? -eq 1`
13927 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13928 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13934 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13935 as_basename
=basename
13940 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13946 as_me
=`$as_basename -- "$0" ||
13947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13948 X"$0" : 'X\(//\)$' \| \
13949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13951 sed '/^.*\/\([^/][^/]*\)\/*$/{
13965 # Avoid depending upon Character Ranges.
13966 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13967 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13968 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13969 as_cr_digits
='0123456789'
13970 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13972 ECHO_C
= ECHO_N
= ECHO_T
=
13973 case `echo -n x` in #(((((
13975 case `echo 'xy\c'` in
13976 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13978 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13985 rm -f conf$$ conf$$.exe conf$$.
file
13986 if test -d conf$$.dir
; then
13987 rm -f conf$$.dir
/conf$$.
file
13990 mkdir conf$$.dir
2>/dev
/null
13992 if (echo >conf$$.
file) 2>/dev
/null
; then
13993 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13995 # ... but there are two gotchas:
13996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13998 # In both cases, we have to default to `cp -p'.
13999 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14001 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14009 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14010 rmdir conf$$.dir
2>/dev
/null
14015 # Create "$as_dir" as a directory, including parents if necessary.
14020 -*) as_dir
=.
/$as_dir;;
14022 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14026 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14027 *) as_qdir
=$as_dir;;
14029 as_dirs
="'$as_qdir' $as_dirs"
14030 as_dir
=`$as_dirname -- "$as_dir" ||
14031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$as_dir" : 'X\(//\)[^/]' \| \
14033 X"$as_dir" : 'X\(//\)$' \| \
14034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14035 $as_echo X"$as_dir" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14040 /^X\(\/\/\)[^/].*/{
14053 test -d "$as_dir" && break
14055 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14056 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14060 if mkdir
-p .
2>/dev
/null
; then
14061 as_mkdir_p
='mkdir -p "$as_dir"'
14063 test -d .
/-p && rmdir .
/-p
14067 if test -x / >/dev
/null
2>&1; then
14068 as_test_x
='test -x'
14070 if ls -dL / >/dev
/null
2>&1; then
14077 if test -d "$1"; then
14083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14084 ???[sx]*):;;*)false;;esac;fi
14088 as_executable_p
=$as_test_x
14090 # Sed expression to map a string onto a valid CPP name.
14091 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14093 # Sed expression to map a string onto a valid variable name.
14094 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14098 ## ----------------------------------- ##
14099 ## Main body of $CONFIG_STATUS script. ##
14100 ## ----------------------------------- ##
14102 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14105 # Save the log message, to keep $0 and so on meaningful, and to
14106 # report actual input values of CONFIG_FILES etc. instead of their
14107 # values after options handling.
14109 This file was extended by emacs $as_me 24.0.50, which was
14110 generated by GNU Autoconf 2.65. Invocation command line was
14112 CONFIG_FILES = $CONFIG_FILES
14113 CONFIG_HEADERS = $CONFIG_HEADERS
14114 CONFIG_LINKS = $CONFIG_LINKS
14115 CONFIG_COMMANDS = $CONFIG_COMMANDS
14118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14123 case $ac_config_files in *"
14124 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14127 case $ac_config_headers in *"
14128 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133 # Files that config.status was made for.
14134 config_files="$ac_config_files"
14135 config_headers="$ac_config_headers"
14136 config_commands="$ac_config_commands"
14140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14142 \`$as_me' instantiates files and other configuration actions
14143 from templates according to the current configuration. Unless the files
14144 and actions are specified as TAGs, all are instantiated by default.
14146 Usage: $0 [OPTION]... [TAG]...
14148 -h, --help print this help, then exit
14149 -V, --version print version number and configuration settings, then exit
14150 --config print configuration, then exit
14151 -q, --quiet, --silent
14152 do not print progress messages
14153 -d, --debug don't remove temporary files
14154 --recheck update $as_me by reconfiguring in the same conditions
14155 --file=FILE[:TEMPLATE]
14156 instantiate the configuration file FILE
14157 --header=FILE[:TEMPLATE]
14158 instantiate the configuration header FILE
14160 Configuration files:
14163 Configuration headers:
14166 Configuration commands:
14169 Report bugs to the package provider."
14172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14173 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14175 emacs config.status 24.0.50
14176 configured by $0, generated by GNU Autoconf 2.65,
14177 with options \\"\$ac_cs_config\\"
14179 Copyright (C) 2009 Free Software Foundation, Inc.
14180 This config.status script is free software; the Free Software Foundation
14181 gives unlimited permission to copy, distribute and modify it."
14186 test -n "\$AWK" || AWK=awk
14189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14190 # The default lists apply if the user does not specify any file.
14196 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14197 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14208 # Handling of the options.
14209 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14211 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14212 $as_echo "$ac_cs_version"; exit ;;
14213 --config |
--confi |
--conf |
--con |
--co |
--c )
14214 $as_echo "$ac_cs_config"; exit ;;
14215 --debug |
--debu |
--deb |
--de |
--d |
-d )
14217 --file |
--fil |
--fi |
--f )
14220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14222 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14223 ac_need_defaults
=false
;;
14224 --header |
--heade |
--head |
--hea )
14227 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14229 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14230 ac_need_defaults
=false
;;
14232 # Conflict between --help and --header
14233 as_fn_error
"ambiguous option: \`$1'
14234 Try \`$0 --help' for more information.";;
14235 --help |
--hel |
-h )
14236 $as_echo "$ac_cs_usage"; exit ;;
14237 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14238 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14241 # This is an error.
14242 -*) as_fn_error
"unrecognized option: \`$1'
14243 Try \`$0 --help' for more information." ;;
14245 *) as_fn_append ac_config_targets
" $1"
14246 ac_need_defaults
=false
;;
14252 ac_configure_extra_args
=
14254 if $ac_cs_silent; then
14256 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 if \$ac_cs_recheck; then
14262 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14265 CONFIG_SHELL='$SHELL'
14266 export CONFIG_SHELL
14271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14276 ## Running $as_me. ##
14282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14292 # Handling of arguments.
14293 for ac_config_target
in $ac_config_targets
14295 case $ac_config_target in
14296 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14297 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14298 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14299 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14300 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14301 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14302 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14303 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14304 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14305 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14306 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14307 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14308 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14310 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14315 # If the user did not use the arguments to specify the items to instantiate,
14316 # then the envvar interface is used. Set only those that are not.
14317 # We use the long form for the default assignment because of an extremely
14318 # bizarre bug on SunOS 4.1.3.
14319 if $ac_need_defaults; then
14320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14325 # Have a temporary directory for convenience. Make it in the build tree
14326 # simply because there is no reason against having it here, and in addition,
14327 # creating and moving files from /tmp can sometimes cause problems.
14328 # Hook for its removal unless debugging.
14329 # Note that there is a small window in which the directory will not be cleaned:
14330 # after its creation but before its name has been assigned to `$tmp'.
14334 trap 'exit_status=$?
14335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14337 trap 'as_fn_exit 1' 1 2 13 15
14339 # Create a (secure) tmp directory for tmp files.
14342 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14343 test -n "$tmp" && test -d "$tmp"
14346 tmp
=.
/conf$$
-$RANDOM
14347 (umask 077 && mkdir
"$tmp")
14348 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14350 # Set up the scripts for CONFIG_FILES section.
14351 # No need to generate them if there are no CONFIG_FILES.
14352 # This happens for instance with `./config.status config.h'.
14353 if test -n "$CONFIG_FILES"; then
14356 ac_cr
=`echo X | tr X '\015'`
14357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14358 # But we know of no other shell where ac_cr would be empty at this
14359 # point, so we can use a bashism as a fallback.
14360 if test "x$ac_cr" = x
; then
14361 eval ac_cr
=\$
\'\\r
\'
14363 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14367 ac_cs_awk_cr
=$ac_cr
14370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14375 echo "cat >conf$$subs.awk <<_ACEOF" &&
14376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14378 } >conf$$subs.sh ||
14379 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14382 for ac_last_try in false false false false false :; do
14383 . ./conf$$subs.sh ||
14384 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14386 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14387 if test $ac_delim_n = $ac_delim_num; then
14389 elif $ac_last_try; then
14390 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14392 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14395 rm -f conf$$subs.sh
14397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14402 s/^/S["/; s
/!.
*/"]=/
14412 s/\(.\{148\}\)..*/\1/
14414 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14419 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14426 s/\(.\{148\}\)..*/\1/
14428 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14432 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14437 ' <conf$$subs.awk | sed '
14442 ' >>$CONFIG_STATUS || ac_write_fail=1
14443 rm -f conf$$subs.awk
14444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14447 for (key in S) S_is_set[key] = 1
14453 nfields = split(line, field, "@
")
14455 len = length(field[1])
14456 for (i = 2; i < nfields; i++) {
14458 keylen = length(key)
14459 if (S_is_set[key]) {
14461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14462 len += length(value) + length(field[++i])
14473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14474 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14475 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14478 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14479 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14484 # trailing colons and then remove the whole line if VPATH becomes empty
14485 # (actually we leave an empty line to preserve line numbers).
14486 if test "x
$srcdir" = x.; then
14487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14488 s/:*\$(srcdir):*/:/
14489 s/:*\${srcdir}:*/:/
14491 s/^\([^=]*=[ ]*\):*/\1/
14497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 fi # test -n "$CONFIG_FILES"
14500 # Set up the scripts for CONFIG_HEADERS section.
14501 # No need to generate them if there are no CONFIG_HEADERS.
14502 # This happens for instance with `./config.status Makefile'.
14503 if test -n "$CONFIG_HEADERS"; then
14504 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14508 # Transform confdefs.h into an awk script `defines.awk', embedded as
14509 # here-document in config.status, that substitutes the proper values into
14510 # config.h.in to produce config.h.
14512 # Create a delimiter string that does not exist in confdefs.h, to ease
14513 # handling of long lines.
14515 for ac_last_try in false false :; do
14516 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14517 if test -z "$ac_t"; then
14519 elif $ac_last_try; then
14520 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14522 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14526 # For the awk script, D is an array of macro values keyed by name,
14527 # likewise P contains macro parameters if any. Preserve backslash
14528 # newline sequences.
14530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14532 s/.\{148\}/&'"$ac_delim"'/g
14535 s/^[ ]*#[ ]*define[ ][ ]*/ /
14542 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14544 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14549 D["\
1"]=" \
3\\\\\\n
"\\/p
14551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14556 s/.\{148\}/&'"$ac_delim"'/g
14561 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14564 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14566 ' <confdefs.h | sed '
14567 s/'"$ac_delim"'/"\\\
14568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 for (key in D) D_is_set[key] = 1
14574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14576 split(line, arg, " ")
14577 if (arg[1] == "#") {
14581 defundef
= substr
(arg
[1], 2)
14584 split(mac1
, mac2
, "(") #)
14586 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14587 if (D_is_set
[macro
]) {
14588 # Preserve the white space surrounding the "#".
14589 print prefix
"define", macro P
[macro
] D
[macro
]
14592 # Replace #undef with comments. This is necessary, for example,
14593 # in the case of _POSIX_SOURCE, which is predefined and required
14594 # on some systems where configure will not decide to define it.
14595 if (defundef
== "undef") {
14596 print
"/*", prefix defundef
, macro
, "*/"
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14605 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14606 fi # test -n "$CONFIG_HEADERS"
14609 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14614 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14616 case $ac_mode$ac_tag in
14618 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14619 :[FH
]-) ac_tag
=-:-;;
14620 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14637 -) ac_f
="$tmp/stdin";;
14638 *) # Look for the file first in the build tree, then in the source tree
14639 # (if the path is not absolute). The absolute path cannot be DOS-style,
14640 # because $ac_f cannot contain `:'.
14644 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14646 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14648 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14649 as_fn_append ac_file_inputs
" '$ac_f'"
14652 # Let's still pretend it is `configure' which instantiates (i.e., don't
14653 # use $as_me), people would be surprised to read:
14654 # /* config.h. Generated by config.status. */
14655 configure_input
='Generated from '`
14656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14658 if test x
"$ac_file" != x-
; then
14659 configure_input
="$ac_file. $configure_input"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14661 $as_echo "$as_me: creating $ac_file" >&6;}
14663 # Neutralize special characters interpreted by sed in replacement strings.
14664 case $configure_input in #(
14665 *\
&* |
*\|
* |
*\\* )
14666 ac_sed_conf_input
=`$as_echo "$configure_input" |
14667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14668 *) ac_sed_conf_input
=$configure_input;;
14672 *:-:* |
*:-) cat >"$tmp/stdin" \
14673 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14678 ac_dir
=`$as_dirname -- "$ac_file" ||
14679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14680 X"$ac_file" : 'X\(//\)[^/]' \| \
14681 X"$ac_file" : 'X\(//\)$' \| \
14682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14683 $as_echo X"$ac_file" |
14684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14688 /^X\(\/\/\)[^/].*/{
14701 as_dir
="$ac_dir"; as_fn_mkdir_p
14705 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14707 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14708 # A ".." for each directory in $ac_dir_suffix.
14709 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14710 case $ac_top_builddir_sub in
14711 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14712 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14715 ac_abs_top_builddir
=$ac_pwd
14716 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14717 # for backward compatibility:
14718 ac_top_builddir
=$ac_top_build_prefix
14721 .
) # We are building in place.
14723 ac_top_srcdir
=$ac_top_builddir_sub
14724 ac_abs_top_srcdir
=$ac_pwd ;;
14725 [\\/]* | ?
:[\\/]* ) # Absolute name.
14726 ac_srcdir
=$srcdir$ac_dir_suffix;
14727 ac_top_srcdir
=$srcdir
14728 ac_abs_top_srcdir
=$srcdir ;;
14729 *) # Relative name.
14730 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14731 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14732 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14734 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14744 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14745 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14750 # If the template does not know about datarootdir, expand it.
14751 # FIXME: This hack should be removed a few years after 2.60.
14752 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14763 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14764 *datarootdir
*) ac_datarootdir_seen
=yes;;
14765 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14767 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14770 ac_datarootdir_hack='
14771 s&@datadir@&$datadir&g
14772 s&@docdir@&$docdir&g
14773 s&@infodir@&$infodir&g
14774 s&@localedir@&$localedir&g
14775 s&@mandir@&$mandir&g
14776 s&\\\${datarootdir}&$datarootdir&g' ;;
14780 # Neutralize VPATH when `$srcdir' = `.'.
14781 # Shell code in configure.ac might set extrasub.
14782 # FIXME: do we really want to maintain this feature?
14783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14784 ac_sed_extra="$ac_vpsub
14787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14789 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14790 s|@configure_input@|
$ac_sed_conf_input|
;t t
14791 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14792 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14793 s
&@srcdir@
&$ac_srcdir&;t t
14794 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14795 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14796 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14797 s
&@builddir@
&$ac_builddir&;t t
14798 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14799 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14800 s
&@INSTALL@
&$ac_INSTALL&;t t
14801 $ac_datarootdir_hack
14803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14804 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14810 which seems to be undefined. Please make sure it is defined." >&5
14811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14812 which seems to be undefined. Please make sure it is defined." >&2;}
14816 -) cat "$tmp/out" && rm -f "$tmp/out";;
14817 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14819 || as_fn_error "could not create $ac_file" "$LINENO" 5
14825 if test x"$ac_file" != x-; then
14827 $as_echo "/* $configure_input */" \
14828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14829 } >"$tmp/config.h" \
14830 || as_fn_error "could not create $ac_file" "$LINENO" 5
14831 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14836 mv "$tmp/config.h" "$ac_file" \
14837 || as_fn_error "could not create $ac_file" "$LINENO" 5
14840 $as_echo "/* $configure_input */" \
14841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14842 || as_fn_error "could not create -" "$LINENO" 5
14846 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14847 $as_echo "$as_me: executing $ac_file commands" >&6;}
14852 case $ac_file$ac_mode in
14855 ### Make the necessary directories, if they don't exist.
14856 for dir
in etc lisp
; do
14857 test -d ${dir} || mkdir
${dir}
14860 # Build src/Makefile from ${srcdir}/src/Makefile.c
14861 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14862 # This must be done after src/config.h is built, since we rely on that file.
14864 echo creating src
/epaths.h
14865 ${MAKE-make} epaths-force
14867 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14868 # `..' to `. .' unless invoked with -traditional
14870 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
14871 CPPFLAGS
="$CPPFLAGS -traditional"
14874 echo creating lib-src
/Makefile
14876 rm -f junk.c junk1.c junk2.c
14877 sed -e '/start of cpp stuff/q' \
14878 < Makefile.c
> junk1.c
14879 sed -e '1,/start of cpp stuff/d'\
14880 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14881 < Makefile.c
> junk.c
14882 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14883 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14884 cat junk1.c junk2.c
> Makefile.new
14885 rm -f junk.c junk1.c junk2.c
14886 chmod 444 Makefile.new
14887 mv -f Makefile.new Makefile
14890 echo creating src
/Makefile
14892 rm -f junk.c junk1.c junk2.c
14893 sed -e '/start of cpp stuff/q' \
14894 < Makefile.c
> junk1.c
14895 sed -e '1,/start of cpp stuff/d'\
14896 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14897 < Makefile.c
> junk.c
14898 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14899 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14900 cat junk1.c junk2.c
> Makefile.new
14901 rm -f junk.c junk1.c junk2.c
14902 chmod 444 Makefile.new
14903 mv -f Makefile.new Makefile
14906 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
14907 echo creating src
/.gdbinit
14908 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
14919 ac_clean_files
=$ac_clean_files_save
14921 test $ac_write_fail = 0 ||
14922 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14925 # configure is writing to config.log, and then calls config.status.
14926 # config.status does its own redirection, appending to config.log.
14927 # Unfortunately, on DOS this fails, as config.log is still kept open
14928 # by configure, so config.status won't be able to write to it; its
14929 # output is simply discarded. So we exec the FD to /dev/null,
14930 # effectively closing config.log, so it can be properly (re)opened and
14931 # appended to by config.status. When coming back to configure, we
14932 # need to make the FD available again.
14933 if test "$no_create" != yes; then
14935 ac_config_status_args
=
14936 test "$silent" = yes &&
14937 ac_config_status_args
="$ac_config_status_args --quiet"
14939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14942 # would make configure fail if this is the last instruction.
14943 $ac_cs_success || as_fn_exit $?
14945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}