2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 23.2.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='23.2.50'
553 PACKAGE_STRING
='emacs 23.2.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
599 LIB_SRC_EXTRA_INSTALLABLES
601 GNUSTEP_SYSTEM_LIBRARIES
602 GNUSTEP_SYSTEM_HEADERS
621 x_default_search_path
717 program_transform_name
730 enable_option_checking
747 with_toolkit_scroll_bars
759 enable_ns_self_contained
761 enable_maintainer_mode
769 ac_precious_vars
='build_alias
781 # Initialize some variables set by options.
783 ac_init_version
=false
784 ac_unrecognized_opts
=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name
=s
,x
,x
,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir
='${exec_prefix}/bin'
810 sbindir
='${exec_prefix}/sbin'
811 libexecdir
='${exec_prefix}/libexec'
812 datarootdir
='${prefix}/share'
813 datadir
='${datarootdir}'
814 sysconfdir
='${prefix}/etc'
815 sharedstatedir
='${prefix}/com'
816 localstatedir
='${prefix}/var'
817 includedir
='${prefix}/include'
818 oldincludedir
='/usr/include'
819 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir
='${datarootdir}/info'
825 libdir
='${exec_prefix}/lib'
826 localedir
='${datarootdir}/locale'
827 mandir
='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\
$ac_option
841 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error $?
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
910 -enable-* |
--enable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error $?
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=\
$ac_optarg ;;
926 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
927 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
928 |
--exec |
--exe |
--ex)
929 ac_prev
=exec_prefix
;;
930 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
931 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
932 |
--exec=* |
--exe=* |
--ex=*)
933 exec_prefix
=$ac_optarg ;;
935 -gas |
--gas |
--ga |
--g)
936 # Obsolete; use --with-gas.
939 -help |
--help |
--hel |
--he |
-h)
941 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
942 ac_init_help
=recursive
;;
943 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
944 ac_init_help
=short
;;
946 -host |
--host |
--hos |
--ho)
947 ac_prev
=host_alias
;;
948 -host=* |
--host=* |
--hos=* |
--ho=*)
949 host_alias
=$ac_optarg ;;
951 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
953 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
955 htmldir
=$ac_optarg ;;
957 -includedir |
--includedir |
--includedi |
--included |
--include \
958 |
--includ |
--inclu |
--incl |
--inc)
959 ac_prev
=includedir
;;
960 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
961 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
962 includedir
=$ac_optarg ;;
964 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
966 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
967 infodir
=$ac_optarg ;;
969 -libdir |
--libdir |
--libdi |
--libd)
971 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
974 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
975 |
--libexe |
--libex |
--libe)
976 ac_prev
=libexecdir
;;
977 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
978 |
--libexe=* |
--libex=* |
--libe=*)
979 libexecdir
=$ac_optarg ;;
981 -localedir |
--localedir |
--localedi |
--localed |
--locale)
983 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
984 localedir
=$ac_optarg ;;
986 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
987 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
988 ac_prev
=localstatedir
;;
989 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
990 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
991 localstatedir
=$ac_optarg ;;
993 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
995 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
999 # Obsolete; use --without-fp.
1002 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1003 |
--no-cr |
--no-c |
-n)
1006 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1007 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1010 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1011 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1012 |
--oldin |
--oldi |
--old |
--ol |
--o)
1013 ac_prev
=oldincludedir
;;
1014 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1015 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1016 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1017 oldincludedir
=$ac_optarg ;;
1019 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1021 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1022 prefix
=$ac_optarg ;;
1024 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1025 |
--program-pre |
--program-pr |
--program-p)
1026 ac_prev
=program_prefix
;;
1027 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1028 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1029 program_prefix
=$ac_optarg ;;
1031 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1032 |
--program-suf |
--program-su |
--program-s)
1033 ac_prev
=program_suffix
;;
1034 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1035 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1036 program_suffix
=$ac_optarg ;;
1038 -program-transform-name |
--program-transform-name \
1039 |
--program-transform-nam |
--program-transform-na \
1040 |
--program-transform-n |
--program-transform- \
1041 |
--program-transform |
--program-transfor \
1042 |
--program-transfo |
--program-transf \
1043 |
--program-trans |
--program-tran \
1044 |
--progr-tra |
--program-tr |
--program-t)
1045 ac_prev
=program_transform_name
;;
1046 -program-transform-name=* |
--program-transform-name=* \
1047 |
--program-transform-nam=* |
--program-transform-na=* \
1048 |
--program-transform-n=* |
--program-transform-=* \
1049 |
--program-transform=* |
--program-transfor=* \
1050 |
--program-transfo=* |
--program-transf=* \
1051 |
--program-trans=* |
--program-tran=* \
1052 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1053 program_transform_name
=$ac_optarg ;;
1055 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1057 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1058 pdfdir
=$ac_optarg ;;
1060 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1062 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1065 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1066 |
-silent |
--silent |
--silen |
--sile |
--sil)
1069 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1071 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1073 sbindir
=$ac_optarg ;;
1075 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1076 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1077 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1079 ac_prev
=sharedstatedir
;;
1080 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1081 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1082 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1084 sharedstatedir
=$ac_optarg ;;
1086 -site |
--site |
--sit)
1088 -site=* |
--site=* |
--sit=*)
1091 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1093 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1094 srcdir
=$ac_optarg ;;
1096 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1097 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1098 ac_prev
=sysconfdir
;;
1099 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1100 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1101 sysconfdir
=$ac_optarg ;;
1103 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1104 ac_prev
=target_alias
;;
1105 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1106 target_alias
=$ac_optarg ;;
1108 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1111 -version |
--version |
--versio |
--versi |
--vers |
-V)
1112 ac_init_version
=: ;;
1115 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error $?
"invalid package name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval with_
$ac_useropt=\
$ac_optarg ;;
1130 -without-* |
--without-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error $?
"invalid package name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=no
;;
1147 # Obsolete; use --with-x.
1150 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1151 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1152 ac_prev
=x_includes
;;
1153 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1154 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1155 x_includes
=$ac_optarg ;;
1157 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1158 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1159 ac_prev
=x_libraries
;;
1160 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1161 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1162 x_libraries
=$ac_optarg ;;
1164 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1169 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1173 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\
$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 if test -n "$ac_prev"; then
1190 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $?
"missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val
=\$
$ac_var
1209 # Remove trailing slashes.
1212 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\
$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$
]* | ?
:[\\/]* ) continue;;
1218 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1220 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target
=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x
; then
1232 if test "x$build_alias" = x
; then
1233 cross_compiling
=maybe
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1244 test "$silent" = yes && exec 6>/dev
/null
1247 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di
=`ls -di .` &&
1249 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $?
"working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $?
"pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted
=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir
=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted
=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1291 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures emacs 23.2.50 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1384 --x-includes=DIR X include files are
in DIR
1385 --x-libraries=DIR X library files are
in DIR
1388 --build=BUILD configure
for building on BUILD
[guessed
]
1389 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive
) echo "Configuration of emacs 23.2.50:";;
1400 --disable-option-checking ignore unrecognized
--enable/--with options
1401 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1402 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1403 --disable-ns-self-contained
1404 disable self contained build under NeXTstep
1405 --enable-asserts compile code with asserts enabled
1406 --enable-maintainer-mode
1407 enable make rules and dependencies not useful
(and
1408 sometimes confusing
) to the casual installer
1409 --enable-locallisppath=PATH
1410 directories Emacs should search
for lisp files
1411 specific to this site
1412 --enable-checking[=LIST
]
1413 enable expensive run-time checks. With LIST
, enable
1414 only specific categories of checks. Categories are
:
1415 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1416 stringfreelist
, xmallocoverrun
, conslist
1417 --enable-profiling build emacs with profiling support. This might not
1418 work on all platforms
1419 --enable-autodepend automatically generate dependencies to .h-files.
1420 Requires GNU Make and Gcc. Enabled
if GNU Make and
1422 --disable-largefile omit support
for large files
1425 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1426 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1427 --without-pop don
't support POP mail retrieval with movemail
1428 --with-kerberos support Kerberos-authenticated POP
1429 --with-kerberos5 support Kerberos version 5 authenticated POP
1430 --with-hesiod support Hesiod to get the POP server host
1431 --without-sound don't compile with sound support
1432 --without-sync-input process async input synchronously
1433 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1435 --without-xpm don
't compile with XPM image support
1436 --without-jpeg don't compile with JPEG image support
1437 --without-tiff don
't compile with TIFF image support
1438 --without-gif don't compile with GIF image support
1439 --without-png don
't compile with PNG image support
1440 --without-rsvg don't compile with SVG image support
1441 --without-xft don
't use XFT for anti aliased fonts
1442 --without-libotf don't use libotf
for OpenType font support
1443 --without-m17n-flt don
't use m17n-flt for text shaping
1444 --without-toolkit-scroll-bars
1445 don't use Motif or Xaw3d scroll bars
1446 --without-xaw3d don
't use Xaw3d
1447 --without-xim don't use X11 XIM
1448 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1449 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1451 --without-dbus don't compile with D-Bus support
1452 --without-gconf don
't compile with GConf support
1453 --without-makeinfo don't require makeinfo
for building manuals
1455 --with-pkg-config-prog=PATH
1456 path to pkg-config
for finding GTK and librsvg
1457 --with-gnustep-conf=PATH
1458 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1459 or
/etc
/GNUstep
/GNUstep.conf
1460 --with-x use the X Window System
1462 Some influential environment variables
:
1463 CC C compiler
command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1466 nonstandard directory
<lib dir
>
1467 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1468 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1469 you have headers
in a nonstandard directory
<include dir
>
1471 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1473 Use these variables to override the choices made by
`configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to the package provider.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1506 .) # We are building in place.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1539 emacs configure 23.2.50
1540 generated by GNU Autoconf 2.67
1542 Copyright (C) 2010 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1563 *) ac_try_echo
=$ac_try;;
1565 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1569 if test -s conftest.err
; then
1570 grep -v '^ *+' conftest.err
>conftest.er1
1571 cat conftest.er1
>&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.
$ac_objext; then :
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.
$ac_ext >&5
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1587 as_fn_set_status
$ac_retval
1589 } # ac_fn_c_try_compile
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1597 rm -f conftest.
$ac_objext conftest
$ac_exeext
1598 if { { ac_try
="$ac_link"
1600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest$ac_exeext && {
1617 test "$cross_compiling" = yes ||
1618 $as_test_x conftest$ac_exeext
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_link
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1646 *) ac_try_echo
=$ac_try;;
1648 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 if test -s conftest.err
; then
1653 grep -v '^ *+' conftest.err
>conftest.er1
1654 cat conftest.er1
>&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i
&& {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.
$ac_ext >&5
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1670 as_fn_set_status
$ac_retval
1674 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1677 # the include files in INCLUDES and setting the cache variable VAR
1679 ac_fn_c_check_header_mongrel
()
1681 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1682 if eval "test \"\${$3+set}\"" = set; then :
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval "test \"\${$3+set}\"" = set; then :
1686 $as_echo_n "(cached) " >&6
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1692 # Is the header compilable?
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1694 $as_echo_n "checking $2 usability... " >&6; }
1695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1700 if ac_fn_c_try_compile
"$LINENO"; then :
1701 ac_header_compiler
=yes
1703 ac_header_compiler
=no
1705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1707 $as_echo "$ac_header_compiler" >&6; }
1709 # Is the header present?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1711 $as_echo_n "checking $2 presence... " >&6; }
1712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1716 if ac_fn_c_try_cpp
"$LINENO"; then :
1717 ac_header_preproc
=yes
1719 ac_header_preproc
=no
1721 rm -f conftest.err conftest.i conftest.
$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1723 $as_echo "$ac_header_preproc" >&6; }
1725 # So? What about this header?
1726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1729 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1735 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1737 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1739 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1741 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval "test \"\${$3+set}\"" = set; then :
1749 $as_echo_n "(cached) " >&6
1751 eval "$3=\$ac_header_compiler"
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1759 } # ac_fn_c_check_header_mongrel
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1767 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1768 if { { ac_try
="$ac_link"
1770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1781 *) ac_try_echo
=$ac_try;;
1783 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }; then :
1791 $as_echo "$as_me: program exited with status $ac_status" >&5
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1795 ac_retval
=$ac_status
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1799 as_fn_set_status
$ac_retval
1803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists and can be compiled using the include files in
1806 # INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval "test \"\${$3+set}\"" = set; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1820 if ac_fn_c_try_compile
"$LINENO"; then :
1825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1832 } # ac_fn_c_check_header_compile
1834 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1835 # ----------------------------------------------
1836 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1837 ac_fn_c_check_header_preproc
()
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval "test \"\${$3+set}\"" = set; then :
1843 $as_echo_n "(cached) " >&6
1845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1849 if ac_fn_c_try_cpp
"$LINENO"; then :
1854 rm -f conftest.err conftest.i conftest.
$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1861 } # ac_fn_c_check_header_preproc
1863 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1864 # ---------------------------------------------
1865 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1867 ac_fn_c_check_decl
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1870 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1871 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1873 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1883 #ifndef $as_decl_name
1885 (void) $as_decl_use;
1887 (void) $as_decl_name;
1895 if ac_fn_c_try_compile
"$LINENO"; then :
1900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1907 } # ac_fn_c_check_decl
1909 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1910 # ----------------------------------------------------
1911 # Tries to find if the field MEMBER exists in type AGGR, after including
1912 # INCLUDES, setting cache variable VAR accordingly.
1913 ac_fn_c_check_member
()
1915 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1917 $as_echo_n "checking for $2.$3... " >&6; }
1918 if eval "test \"\${$4+set}\"" = set; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1934 if ac_fn_c_try_compile
"$LINENO"; then :
1937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1944 if (sizeof ac_aggr.$3)
1950 if ac_fn_c_try_compile
"$LINENO"; then :
1955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1964 } # ac_fn_c_check_member
1966 # ac_fn_c_check_func LINENO FUNC VAR
1967 # ----------------------------------
1968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1969 ac_fn_c_check_func
()
1971 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval "test \"\${$3+set}\"" = set; then :
1975 $as_echo_n "(cached) " >&6
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1981 #define $2 innocuous_$2
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $2 (); below.
1985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1986 <limits.h> exists even on freestanding compilers. */
1989 # include <limits.h>
1991 # include <assert.h>
1996 /* Override any GCC internal prototype to avoid an error.
1997 Use char because int might match the return type of a GCC
1998 builtin and then its argument prototype would still apply. */
2003 /* The GNU C library defines this for functions which it implements
2004 to always fail with ENOSYS. Some functions are actually named
2005 something starting with __ and the normal name is an alias. */
2006 #if defined __stub_$2 || defined __stub___$2
2018 if ac_fn_c_try_link
"$LINENO"; then :
2023 rm -f core conftest.err conftest.
$ac_objext \
2024 conftest
$ac_exeext conftest.
$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 } # ac_fn_c_check_func
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type
()
2039 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval "test \"\${$3+set}\"" = set; then :
2043 $as_echo_n "(cached) " >&6
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2058 if ac_fn_c_try_compile
"$LINENO"; then :
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2085 } # ac_fn_c_check_type
2086 cat >config.log
<<_ACEOF
2087 This file contains any messages produced by compilers while
2088 running configure, to aid debugging if configure makes a mistake.
2090 It was created by emacs $as_me 23.2.50, which was
2091 generated by GNU Autoconf 2.67. Invocation command line was
2103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2112 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir
=.
2127 $as_echo "PATH: $as_dir"
2143 # Keep a trace of the command line.
2144 # Strip out --no-create and --no-recursion so they do not pile up.
2145 # Strip out --silent because we don't want to record it for future runs.
2146 # Also quote any args containing shell meta-characters.
2147 # Make two passes to allow for proper duplicate-argument suppression.
2151 ac_must_keep_next
=false
2157 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2158 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2159 |
-silent |
--silent |
--silen |
--sile |
--sil)
2162 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2167 as_fn_append ac_configure_args1
" '$ac_arg'"
2168 if test $ac_must_keep_next = true
; then
2169 ac_must_keep_next
=false
# Got value, back to normal.
2172 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2173 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2174 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2175 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2176 case "$ac_configure_args0 " in
2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2180 -* ) ac_must_keep_next
=true
;;
2183 as_fn_append ac_configure_args
" '$ac_arg'"
2188 { ac_configure_args0
=; unset ac_configure_args0
;}
2189 { ac_configure_args1
=; unset ac_configure_args1
;}
2191 # When interrupted or exit'd, cleanup temporary files, and complete
2192 # config.log. We remove comments because anyway the quotes in there
2193 # would cause problems or look ugly.
2194 # WARNING: Use '\'' to represent an apostrophe within the trap.
2195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196 trap 'exit_status=$?
2197 # Save into config.log some information that might help in debugging.
2201 $as_echo "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2205 # The following way of writing the cache mishandles newlines in values,
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218 *) { eval $ac_var=; unset $ac_var;} ;;
2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 $as_echo "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2241 for ac_var in $ac_subst_vars
2243 eval ac_val=\$$ac_var
2245 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247 $as_echo "$ac_var='\''$ac_val'\''"
2251 if test -n "$ac_subst_files"; then
2252 $as_echo "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2256 for ac_var
in $ac_subst_files
2258 eval ac_val
=\$
$ac_var
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 $as_echo "$ac_var='\''$ac_val'\''"
2267 if test -s confdefs.h; then
2268 $as_echo "## ----------- ##
2275 test "$ac_signal" != 0 &&
2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2283 for ac_signal
in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest
* confdefs.h
2291 $as_echo "/* confdefs.h */" > confdefs.h
2293 # Predefined preprocessor variables.
2295 cat >>confdefs.h
<<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2299 cat >>confdefs.h
<<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2303 cat >>confdefs.h
<<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2324 if test -n "$CONFIG_SITE"; then
2325 # We do not want a PATH search for config.site.
2326 case $CONFIG_SITE in #((
2327 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2328 */*) ac_site_file1
=$CONFIG_SITE;;
2329 *) ac_site_file1
=.
/$CONFIG_SITE;;
2331 elif test "x$prefix" != xNONE
; then
2332 ac_site_file1
=$prefix/share
/config.site
2333 ac_site_file2
=$prefix/etc
/config.site
2335 ac_site_file1
=$ac_default_prefix/share
/config.site
2336 ac_site_file2
=$ac_default_prefix/etc
/config.site
2338 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2340 test "x$ac_site_file" = xNONE
&& continue
2341 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2344 sed 's/^/| /' "$ac_site_file" >&5
2346 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $?
"failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5; }
2353 if test -r "$cache_file"; then
2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 $as_echo "$as_me: loading cache $cache_file" >&6;}
2360 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2361 *) .
"./$cache_file";;
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 $as_echo "$as_me: creating cache $cache_file" >&6;}
2370 as_fn_append ac_header_list
" stdlib.h"
2371 as_fn_append ac_header_list
" unistd.h"
2372 as_fn_append ac_header_list
" sys/param.h"
2373 as_fn_append ac_header_list
" sys/time.h"
2374 as_fn_append ac_func_list
" alarm"
2375 # Check that the precious variables saved in the cache have kept the same
2377 ac_cache_corrupted
=false
2378 for ac_var
in $ac_precious_vars; do
2379 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2380 eval ac_new_set
=\
$ac_env_${ac_var}_set
2381 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2382 eval ac_new_val
=\
$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted
=: ;;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted
=: ;;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w
=`echo x $ac_old_val`
2397 ac_new_val_w
=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted
=:
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\
$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2416 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg
=$ac_var=$ac_new_val ;;
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2437 ac_cpp
='$CPP $CPPFLAGS'
2438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2443 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2447 test "$program_prefix" != NONE
&&
2448 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2449 # Use a double $ so make ignores it.
2450 test "$program_suffix" != NONE
&&
2451 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2452 # Double any \ or $.
2453 # By default was `s,x,x', remove it if useless.
2454 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2455 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2458 lispdir
='${datadir}/emacs/${version}/lisp'
2459 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2460 '${datadir}/emacs/site-lisp'
2461 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2462 etcdir
='${datadir}/emacs/${version}/etc'
2463 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2464 docdir
='${datadir}/emacs/${version}/etc'
2465 gamedir
='${localstatedir}/games/emacs'
2472 # Check whether --with-pop was given.
2473 if test "${with_pop+set}" = set; then :
2479 if test "$with_pop" = yes; then
2480 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2485 # Check whether --with-kerberos was given.
2486 if test "${with_kerberos+set}" = set; then :
2487 withval
=$with_kerberos;
2492 if test "$with_kerberos" != no
; then
2493 $as_echo "#define KERBEROS 1" >>confdefs.h
2498 # Check whether --with-kerberos5 was given.
2499 if test "${with_kerberos5+set}" = set; then :
2500 withval
=$with_kerberos5;
2505 if test "${with_kerberos5}" != no
; then
2506 if test "${with_kerberos}" = no
; then
2508 $as_echo "#define KERBEROS 1" >>confdefs.h
2512 $as_echo "#define KERBEROS5 1" >>confdefs.h
2517 # Check whether --with-hesiod was given.
2518 if test "${with_hesiod+set}" = set; then :
2519 withval
=$with_hesiod;
2524 if test "$with_hesiod" != no
; then
2526 $as_echo "#define HESIOD 1" >>confdefs.h
2531 # Check whether --with-sound was given.
2532 if test "${with_sound+set}" = set; then :
2533 withval
=$with_sound;
2540 # Check whether --with-sync-input was given.
2541 if test "${with_sync_input+set}" = set; then :
2542 withval
=$with_sync_input;
2547 if test "$with_sync_input" = yes; then
2549 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2554 # Check whether --with-x-toolkit was given.
2555 if test "${with_x_toolkit+set}" = set; then :
2556 withval
=$with_x_toolkit; case "${withval}" in
2557 y | ye |
yes ) val
=gtk
;;
2559 l | lu | luc | luci | lucid
) val
=lucid
;;
2560 a |
at | ath | athe | athen | athena
) val
=athena
;;
2561 m | mo | mot | moti | motif
) val
=motif
;;
2562 g | gt | gtk
) val
=gtk
;;
2564 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
2565 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2566 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2575 # Check whether --with-xpm was given.
2576 if test "${with_xpm+set}" = set; then :
2583 # Check whether --with-jpeg was given.
2584 if test "${with_jpeg+set}" = set; then :
2591 # Check whether --with-tiff was given.
2592 if test "${with_tiff+set}" = set; then :
2599 # Check whether --with-gif was given.
2600 if test "${with_gif+set}" = set; then :
2607 # Check whether --with-png was given.
2608 if test "${with_png+set}" = set; then :
2615 # Check whether --with-rsvg was given.
2616 if test "${with_rsvg+set}" = set; then :
2624 # Check whether --with-xft was given.
2625 if test "${with_xft+set}" = set; then :
2632 # Check whether --with-libotf was given.
2633 if test "${with_libotf+set}" = set; then :
2634 withval
=$with_libotf;
2640 # Check whether --with-m17n-flt was given.
2641 if test "${with_m17n_flt+set}" = set; then :
2642 withval
=$with_m17n_flt;
2649 # Check whether --with-toolkit-scroll-bars was given.
2650 if test "${with_toolkit_scroll_bars+set}" = set; then :
2651 withval
=$with_toolkit_scroll_bars;
2653 with_toolkit_scroll_bars
=yes
2657 # Check whether --with-xaw3d was given.
2658 if test "${with_xaw3d+set}" = set; then :
2659 withval
=$with_xaw3d;
2665 # Check whether --with-xim was given.
2666 if test "${with_xim+set}" = set; then :
2673 # Check whether --with-ns was given.
2674 if test "${with_ns+set}" = set; then :
2682 # Check whether --with-gpm was given.
2683 if test "${with_gpm+set}" = set; then :
2690 # Check whether --with-dbus was given.
2691 if test "${with_dbus+set}" = set; then :
2698 # Check whether --with-gconf was given.
2699 if test "${with_gconf+set}" = set; then :
2700 withval
=$with_gconf;
2706 ## For the times when you want to build Emacs but don't have
2707 ## a suitable makeinfo, and can live without the manuals.
2709 # Check whether --with-makeinfo was given.
2710 if test "${with_makeinfo+set}" = set; then :
2711 withval
=$with_makeinfo;
2718 # Check whether --with-gtk was given.
2719 if test "${with_gtk+set}" = set; then :
2720 withval
=$with_gtk; as_fn_error $?
"--with-gtk has been removed. Use --with-x-toolkit to
2721 specify a toolkit." "$LINENO" 5
2726 # Check whether --with-gcc was given.
2727 if test "${with_gcc+set}" = set; then :
2728 withval
=$with_gcc; as_fn_error $?
"--with-gcc has been removed. Set the \`CC' environment
2729 variable to specify a compiler." "$LINENO" 5
2734 # Check whether --with-pkg-config-prog was given.
2735 if test "${with_pkg_config_prog+set}" = set; then :
2736 withval
=$with_pkg_config_prog;
2739 if test "X${with_pkg_config_prog}" != X
; then
2740 if test "${with_pkg_config_prog}" != yes; then
2741 PKG_CONFIG
="${with_pkg_config_prog}"
2746 # Check whether --with-gnustep-conf was given.
2747 if test "${with_gnustep_conf+set}" = set; then :
2748 withval
=$with_gnustep_conf;
2751 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2752 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2753 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2754 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2756 # Check whether --enable-ns-self-contained was given.
2757 if test "${enable_ns_self_contained+set}" = set; then :
2758 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2760 EN_NS_SELF_CONTAINED
=yes
2764 # Check whether --enable-asserts was given.
2765 if test "${enable_asserts+set}" = set; then :
2766 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2772 # Check whether --enable-maintainer-mode was given.
2773 if test "${enable_maintainer_mode+set}" = set; then :
2774 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2776 USE_MAINTAINER_MODE
=no
2779 if test $USE_MAINTAINER_MODE = yes; then
2786 # Check whether --enable-locallisppath was given.
2787 if test "${enable_locallisppath+set}" = set; then :
2788 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2790 elif test "${enableval}" != "yes"; then
2791 locallisppath
=${enableval}
2796 # Check whether --enable-checking was given.
2797 if test "${enable_checking+set}" = set; then :
2798 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2801 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2802 for check
in $ac_checking_flags
2805 # these set all the flags to specific states
2806 yes) ac_enable_checking
=1 ;;
2807 no
) ac_enable_checking
= ;
2808 ac_gc_check_stringbytes
= ;
2809 ac_gc_check_string_overrun
= ;
2810 ac_gc_check_string_free_list
= ;
2811 ac_xmalloc_overrun
= ;
2812 ac_gc_check_cons_list
= ;;
2813 all
) ac_enable_checking
=1 ;
2814 ac_gc_check_stringbytes
=1 ;
2815 ac_gc_check_string_overrun
=1 ;
2816 ac_gc_check_string_free_list
=1 ;
2817 ac_xmalloc_overrun
=1 ;
2818 ac_gc_check_cons_list
=1 ;;
2819 # these enable particular checks
2820 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2821 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2822 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2823 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2824 conslist
) ac_gc_check_cons_list
=1 ;;
2825 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
2830 if test x
$ac_enable_checking != x
; then
2832 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2835 if test x
$ac_gc_check_stringbytes != x
; then
2837 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2840 if test x
$ac_gc_check_stringoverrun != x
; then
2842 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2845 if test x
$ac_gc_check_string_free_list != x
; then
2847 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2850 if test x
$ac_xmalloc_overrun != x
; then
2852 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2855 if test x
$ac_gc_check_cons_list != x
; then
2857 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2861 # Check whether --enable-profiling was given.
2862 if test "${enable_profiling+set}" = set; then :
2863 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2866 if test x
$ac_enable_profiling != x
; then
2867 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2868 PROFILING_LDFLAGS
="-pg"
2874 # Check whether --enable-autodepend was given.
2875 if test "${enable_autodepend+set}" = set; then :
2876 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2878 ac_enable_autodepend
=yes
2882 #### Make srcdir absolute, if it isn't already. It's important to
2883 #### avoid running the path through pwd unnecessarily, since pwd can
2884 #### give you automounter prefixes, which can go away. We do all this
2885 #### so Emacs can find its files when run uninstalled.
2886 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2891 ## We may be able to use the $PWD environment variable to make this
2892 ## absolute. But sometimes PWD is inaccurate.
2893 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2894 ## but that tested only for a well-formed and valid PWD,
2895 ## it did not object when PWD was well-formed and valid but just wrong.
2896 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2900 srcdir
="`(cd ${srcdir}; pwd)`"
2903 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2906 #### Check if the source directory already has a configured system in it.
2907 if test `pwd` != `(cd ${srcdir} && pwd)` \
2908 && test -f "${srcdir}/src/config.h" ; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2910 as a build directory right now; it has been configured in its own
2911 right. To configure in another directory as well, you MUST
2912 use GNU make. If you do not have GNU make, then you must
2913 now do \`make distclean' in ${srcdir},
2914 and then run $0 again." >&5
2915 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2916 as a build directory right now; it has been configured in its own
2917 right. To configure in another directory as well, you MUST
2918 use GNU make. If you do not have GNU make, then you must
2919 now do \`make distclean' in ${srcdir},
2920 and then run $0 again." >&2;}
2923 #### Given the configuration name, set machfile and opsysfile to the
2924 #### names of the m/*.h and s/*.h files we should use.
2926 ### Canonicalize the configuration name.
2929 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2930 if test -f "$ac_dir/install-sh"; then
2932 ac_install_sh
="$ac_aux_dir/install-sh -c"
2934 elif test -f "$ac_dir/install.sh"; then
2936 ac_install_sh
="$ac_aux_dir/install.sh -c"
2938 elif test -f "$ac_dir/shtool"; then
2940 ac_install_sh
="$ac_aux_dir/shtool install -c"
2944 if test -z "$ac_aux_dir"; then
2945 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2953 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2954 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2957 # Make sure we can run config.sub.
2958 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2959 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2962 $as_echo_n "checking build system type... " >&6; }
2963 if test "${ac_cv_build+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2966 ac_build_alias
=$build_alias
2967 test "x$ac_build_alias" = x
&&
2968 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2969 test "x$ac_build_alias" = x
&&
2970 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2971 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2972 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2976 $as_echo "$ac_cv_build" >&6; }
2977 case $ac_cv_build in
2979 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2982 ac_save_IFS
=$IFS; IFS
='-'
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2992 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2996 $as_echo_n "checking host system type... " >&6; }
2997 if test "${ac_cv_host+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 if test "x$host_alias" = x
; then
3001 ac_cv_host
=$ac_cv_build
3003 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3004 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3009 $as_echo "$ac_cv_host" >&6; }
3012 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3015 ac_save_IFS
=$IFS; IFS
='-'
3021 # Remember, the first character of IFS is used to create $*,
3022 # except with old shells:
3025 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3029 configuration
=${host_alias-${build_alias-$host}}
3033 ### If you add support for a new configuration, add code to this
3034 ### switch statement to recognize your configuration name and select
3035 ### the appropriate operating system and machine description files.
3037 ### You would hope that you could choose an m/*.h file pretty much
3038 ### based on the machine portion of the configuration name, and an s-
3039 ### file based on the operating system portion. However, it turns out
3040 ### that each m/*.h file is pretty manufacturer-specific - for
3041 ### example mips.h is MIPS
3042 ### So we basically have to have a special case for each
3043 ### configuration name.
3045 ### As far as handling version numbers on operating systems is
3046 ### concerned, make sure things will fail in a fixable way. If
3047 ### /etc/MACHINES doesn't say anything about version numbers, be
3048 ### prepared to handle anything reasonably. If version numbers
3049 ### matter, be sure /etc/MACHINES says something about it.
3051 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3052 ### "System V Release 4"; he writes, "The old convention encouraged
3053 ### confusion between `system' and `release' levels'."
3055 machine
='' opsys
='' unported
=no
3056 case "${canonical}" in
3061 case "${canonical}" in
3062 alpha
*-*-freebsd*) machine
=alpha
;;
3063 arm
*-*-freebsd*) machine
=arm
;;
3064 ia64-
*-freebsd*) machine
=ia64
;;
3065 sparc-
*-freebsd*) machine
=sparc
;;
3066 sparc64-
*-freebsd*) machine
=sparc
;;
3067 powerpc-
*-freebsd*) machine
=macppc
;;
3068 i
[3456]86-*-freebsd*) machine
=intel386
;;
3069 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3073 ## FreeBSD kernel + glibc based userland
3076 case "${canonical}" in
3077 alpha
*-*-kfreebsd*) machine
=alpha
;;
3078 ia64-
*-kfreebsd*) machine
=ia64
;;
3079 sparc-
*-kfreebsd*) machine
=sparc
;;
3080 sparc64-
*-kfreebsd*) machine
=sparc
;;
3081 powerpc-
*-kfreebsd*) machine
=macppc
;;
3082 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3083 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3090 if test -f /usr
/lib
/crti.o
; then
3092 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3096 case "${canonical}" in
3097 alpha
*-*-netbsd*) machine
=alpha
;;
3098 i
[3456]86-*-netbsd*) machine
=intel386
;;
3099 mips-
*-netbsd*) machine
=mips
;;
3100 mipsel-
*-netbsd*) machine
=mips
;;
3101 mipseb-
*-netbsd*) machine
=mips
;;
3102 powerpc-
*-netbsd*) machine
=macppc
;;
3103 sparc
*-*-netbsd*) machine
=sparc
;;
3104 vax-
*-netbsd*) machine
=vax
;;
3105 arm-
*-netbsd*) machine
=arm
;;
3106 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3107 hppa-
*-netbsd*) machine
=hp800
;;
3108 m68k-
*-netbsd*) machine
=m68k
;;
3115 case "${canonical}" in
3116 alpha
*-*-openbsd*) machine
=alpha
;;
3117 arm-
*-openbsd*) machine
=arm
;;
3118 i386-
*-openbsd*) machine
=intel386
;;
3119 powerpc-
*-openbsd*) machine
=macppc
;;
3120 sparc
*-*-openbsd*) machine
=sparc
;;
3121 vax-
*-openbsd*) machine
=vax
;;
3122 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3123 hppa-
*-openbsd*) machine
=hp800
;;
3130 case "${canonical}" in
3131 i
[3456]86-*-lynxos*) machine
=intel386
;;
3132 powerpc-
*-lynxos*) machine
=powerpc
;;
3136 alpha
*-*-linux-gnu* )
3137 machine
=alpha opsys
=gnu-linux
3141 machine
=arm opsys
=gnu-linux
3144 ## Apple Darwin / Mac OS X
3146 case "${canonical}" in
3147 i
[3456]86-* ) machine
=intel386
;;
3148 powerpc-
* ) machine
=macppc
;;
3149 x86_64-
* ) machine
=amdx86-64
;;
3153 # Define CPP as follows to make autoconf work correctly.
3154 CPP
="${CC-cc} -E -no-cpp-precomp"
3155 # Use fink packages if available.
3156 if test -d /sw
/include
&& test -d /sw
/lib
; then
3157 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3158 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3159 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3163 ## HP 9000 series 700 and 800, running HP/UX
3164 hppa
*-hp-hpux10.2
* )
3165 machine
=hp800 opsys
=hpux10-20
3167 hppa
*-hp-hpux1[1-9]* )
3168 machine
=hp800 opsys
=hpux11
3169 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3172 hppa
*-*-linux-gnu* )
3173 machine
=hp800 opsys
=gnu-linux
3178 machine
=ibms390 opsys
=gnu-linux
3180 s390x-
*-linux-gnu* )
3181 machine
=ibms390x opsys
=gnu-linux
3183 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3184 machine
=ibmrs6000 opsys
=aix4-2
3186 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3187 machine
=ibmrs6000 opsys
=aix4-2
3189 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3190 machine
=ibmrs6000 opsys
=aix4-2
3192 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3193 machine
=ibmrs6000 opsys
=aix4-2
3196 ## Macintosh PowerPC
3197 powerpc
*-*-linux-gnu* )
3198 machine
=macppc opsys
=gnu-linux
3201 ## Silicon Graphics machines
3204 machine
=iris4d opsys
=irix6-5
3205 # Without defining _LANGUAGE_C, things get masked out in the headers
3206 # so that, for instance, grepping for `free' in stdlib.h fails and
3207 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3208 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3209 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3213 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3214 machine
=sparc opsys
=gnu-linux
3218 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3219 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
3220 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
3221 case "${canonical}" in
3222 i
[3456]86-*-* ) machine
=intel386
;;
3223 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3224 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3225 sparc
* ) machine
=sparc
;;
3228 case "${canonical}" in
3229 *-sunos5.3
* |
*-solaris2.3
* )
3231 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3233 *-sunos5.4
* |
*-solaris2.4
* )
3235 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3238 *-sunos5.5
* |
*-solaris2.5
* )
3240 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3243 *-sunos5.6
* |
*-solaris2.6
* )
3245 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3248 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3250 emacs_check_sunpro_c
=yes
3251 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3253 *-sunos5* |
*-solaris* )
3255 emacs_check_sunpro_c
=yes
3256 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3259 ## Watch out for a compiler that we know will not work.
3260 case "${canonical}" in
3261 *-solaris* |
*-sunos5* )
3262 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3263 ## /usr/ucb/cc doesn't work;
3264 ## we should find some other compiler that does work.
3274 machine
=ia64 opsys
=gnu-linux
3277 ## Intel 386 machines where we don't care about the manufacturer
3280 case "${canonical}" in
3281 *-cygwin ) opsys
=cygwin
;;
3282 *-darwin* ) opsys
=darwin
3283 CPP
="${CC-cc} -E -no-cpp-precomp"
3285 *-linux-gnu* ) opsys
=gnu-linux
;;
3286 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3287 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3288 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3289 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3293 ## m68k Linux-based GNU system
3295 machine
=m68k opsys
=gnu-linux
3298 ## Mips Linux-based GNU system
3299 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3300 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3301 machine
=mips opsys
=gnu-linux
3304 ## AMD x86-64 Linux-based GNU system
3305 x86_64-
*-linux-gnu* )
3306 machine
=amdx86-64 opsys
=gnu-linux
3309 ## Tensilica Xtensa Linux-based GNU system
3310 xtensa
*-*-linux-gnu* )
3311 machine
=xtensa opsys
=gnu-linux
3314 ## SuperH Linux-based GNU system
3315 sh
[34]*-*-linux-gnu* )
3316 machine
=sh3 opsys
=gnu-linux
3324 ### If the code above didn't choose an operating system, just choose
3325 ### an operating system based on the configuration name. You really
3326 ### only want to use this when you have no idea what the right
3327 ### operating system is; if you know what operating systems a machine
3328 ### runs, it's cleaner to make it explicit in the case statement
3330 if test x
"${opsys}" = x
; then
3331 case "${canonical}" in
3332 *-gnu* ) opsys
=gnu
;;
3333 *-sysv4.2uw
* ) opsys
=unixware
;;
3334 *-sysv5uw* ) opsys
=unixware
;;
3335 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3336 *-sysv4.1
* |
*-sysvr4.1
* )
3337 NON_GNU_CPP
=/usr
/lib
/cpp
3339 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3340 if [ x
$NON_GNU_CPP = x
]; then
3341 if [ -f /usr
/ccs
/lib
/cpp
]; then
3342 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3344 NON_GNU_CPP
=/lib
/cpp
3348 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3357 if test $unported = yes; then
3358 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
3359 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3362 machfile
="m/${machine}.h"
3363 opsysfile
="s/${opsys}.h"
3366 #### Choose a compiler.
3367 test -n "$CC" && cc_specified
=yes
3369 # Save the value of CFLAGS that the user specified.
3370 SPECIFIED_CFLAGS
="$CFLAGS"
3373 ac_cpp
='$CPP $CPPFLAGS'
3374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3379 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC
="$CC" # Let the user override the test.
3388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir
=.
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$ac_cv_prog_CC"; then
3418 # Extract the first word of "gcc", so it can be a program name with args.
3419 set dummy gcc
; ac_word
=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$ac_ct_CC"; then
3426 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_ac_ct_CC
="gcc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3454 if test "x$ac_ct_CC" = x
; then
3457 case $cross_compiling:$ac_tool_warned in
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned
=yes ;;
3469 if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC
="$CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test -n "$CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc
; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC
="$CC" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected
=yes
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy
$ac_cv_prog_CC
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3550 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog
in cl.exe
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_CC+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC
="$CC" # Let the user override the test.
3580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir
=.
3585 for ac_exec_ext
in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$CC" && break
3610 if test -z "$CC"; then
3612 for ac_prog
in cl.exe
3614 # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy
$ac_prog; ac_word
=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_ac_ct_CC
="$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$ac_ct_CC" && break
3654 if test "x$ac_ct_CC" = x
; then
3657 case $cross_compiling:$ac_tool_warned in
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned
=yes ;;
3670 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $?
"no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details" "$LINENO" 5; }
3675 # Provide some information about the compiler.
3676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 for ac_option
in --version -v -V -qversion; do
3680 { { ac_try
="$ac_compiler $ac_option >&5"
3682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3689 if test -s conftest.err; then
3691 ... rest of stderr output deleted ...
3692 10q' conftest.err >conftest.er1
3693 cat conftest.er1 >&5
3695 rm -f conftest.er1 conftest.err
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 ac_clean_files_save=$ac_clean_files
3712 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3713 # Try to create an executable without -o first, disregard a.out.
3714 # It will help us diagnose broken compilers, and finding out an intuition
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3717 $as_echo_n "checking whether the C compiler works... " >&6; }
3718 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3720 # The possible output files:
3721 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3724 for ac_file in $ac_files
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3728 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3733 if { { ac_try="$ac_link_default"
3735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3736 *) ac_try_echo
=$ac_try;;
3738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_link_default") 2>&5
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3747 # so that the user can short-circuit this test for compilers unknown to
3749 for ac_file
in $ac_files ''
3751 test -f "$ac_file" ||
continue
3753 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3756 # We found the default executable, but exeext='' is most
3760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3762 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3764 # We set ac_cv_exeext here because the later test for it is not
3765 # safe: cross compilers may not add the suffix if given an `-o'
3766 # argument, so we may need to know it at that point already.
3767 # Even if this section looks crufty: it has the advantage of
3774 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3779 if test -z "$ac_file"; then :
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.
$ac_ext >&5
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error
77 "C compiler cannot create executables
3788 See \`config.log' for more details" "$LINENO" 5; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 $as_echo_n "checking for C compiler default output file name... " >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3796 $as_echo "$ac_file" >&6; }
3797 ac_exeext
=$ac_cv_exeext
3799 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3800 ac_clean_files
=$ac_clean_files_save
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3802 $as_echo_n "checking for suffix of executables... " >&6; }
3803 if { { ac_try
="$ac_link"
3805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_link") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then :
3814 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3815 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3816 # work properly (i.e., refer to `conftest.exe'), while it won't with
3818 for ac_file
in conftest.exe conftest conftest.
*; do
3819 test -f "$ac_file" ||
continue
3821 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3822 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 rm -f conftest conftest
$ac_cv_exeext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3835 $as_echo "$ac_cv_exeext" >&6; }
3837 rm -f conftest.
$ac_ext
3838 EXEEXT
=$ac_cv_exeext
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3846 FILE *f = fopen ("conftest.out", "w");
3847 return ferror (f) || fclose (f) != 0;
3853 ac_clean_files
="$ac_clean_files conftest.out"
3854 # Check that the compiler produces executables we can run. If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3857 $as_echo_n "checking whether we are cross compiling... " >&6; }
3858 if test "$cross_compiling" != yes; then
3859 { { ac_try
="$ac_link"
3861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_link") 2>&5
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3870 if { ac_try='./conftest$ac_cv_exeext'
3871 { { case "(($ac_try" in
3872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3873 *) ac_try_echo
=$ac_try;;
3875 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_try") 2>&5
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; }; then
3883 if test "$cross_compiling" = maybe
; then
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $?
"cannot run C compiled programs.
3889 If you meant to cross compile, use \`--host'.
3890 See \`config.log' for more details" "$LINENO" 5; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3895 $as_echo "$cross_compiling" >&6; }
3897 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3898 ac_clean_files
=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if test "${ac_cv_objext+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try
="$ac_compile"
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_compile") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 for ac_file in conftest.o conftest.obj conftest.*; do
3928 test -f "$ac_file" || continue;
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3936 $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3942 See \
`config.log' for more details" "$LINENO" 5; }
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if test "${ac_cv_prog_cc_g+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 if ac_fn_c_try_compile "$LINENO"; then :
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4059 if test "$GCC" = yes; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_cv_prog_cc_c89=no
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4076 #include <sys/types.h>
4077 #include <sys/stat.h>
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4092 s = g (p, va_arg (v,int));
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4098 function prototypes and stuff, but not '\xHH' hex character constants.
4099 These don't provoke an error unfortunately, instead are silently treated
4100 as 'x'. The following induces an error, until -std is added to get
4101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4102 array size at least. It's necessary to write '\x00'==0 to get something
4103 that's true only with -std. */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107 inside strings and character constants. */
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 CC="$ac_save_CC $ac_arg"
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_c89=$ac_arg
4132 rm -f core conftest.err conftest.$ac_objext
4133 test "x$ac_cv_prog_cc_c89" != "xno" && break
4135 rm -f conftest.$ac_ext
4140 case "x$ac_cv_prog_cc_c89" in
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4148 CC="$CC $ac_cv_prog_cc_c89"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4168 ## If not using gcc, and on Solaris, and no CPP specified, see if
4169 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4170 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4171 test x"$CPP" = x; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4173 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4175 if test "${emacs_cv_sunpro_c+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4192 if ac_fn_c_try_link "$LINENO"; then :
4193 emacs_cv_sunpro_c=yes
4195 emacs_cv_sunpro_c=no
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4202 $as_echo "$emacs_cv_sunpro_c" >&6; }
4204 if test x"$emacs_cv_sunpro_c" = xyes; then
4205 NON_GNU_CPP="$CC -E -Xs"
4209 #### Some systems specify a CPP to use unless we are using GCC.
4210 #### Now that we know whether we are using GCC, we can decide whether
4211 #### to use that one.
4212 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4217 #### Some systems specify a CC to use unless we are using GCC.
4218 #### Now that we know whether we are using GCC, we can decide whether
4219 #### to use that one.
4220 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4221 test x$cc_specified != xyes
4226 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4228 CC="$CC $GCC_TEST_OPTIONS"
4231 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4233 CC="$CC $NON_GCC_TEST_OPTIONS"
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4242 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4243 # On Suns, sometimes $CPP names a directory.
4244 if test -n "$CPP" && test -d "$CPP"; then
4247 if test -z "$CPP"; then
4248 if test "${ac_cv_prog_CPP+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4251 # Double quotes because CPP needs to be expanded
4252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255 for ac_c_preproc_warn_flag in '' yes
4257 # Use a header file that comes with gcc, so configuring glibc
4258 # with a fresh cross-compiler works.
4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 # <limits.h> exists even on freestanding compilers.
4261 # On the NeXT, cc -E runs the code through the compiler's parser,
4262 # not just through cpp. "Syntax error" is here to catch this case.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4266 # include <limits.h>
4268 # include <assert.h>
4272 if ac_fn_c_try_cpp "$LINENO"; then :
4275 # Broken: fails on valid input.
4278 rm -f conftest.err conftest.i conftest.$ac_ext
4280 # OK, works on sane cases. Now check whether nonexistent headers
4281 # can be detected and how.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <ac_nonexistent.h>
4286 if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: success on invalid input.
4290 # Passes both tests.
4294 rm -f conftest.err conftest.i conftest.$ac_ext
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.i conftest.err conftest.
$ac_ext
4299 if $ac_preproc_ok; then :
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4312 $as_echo "$CPP" >&6; }
4314 for ac_c_preproc_warn_flag
in '' yes
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error" is here to catch this case.
4322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4325 # include <limits.h>
4327 # include <assert.h>
4331 if ac_fn_c_try_cpp
"$LINENO"; then :
4334 # Broken: fails on valid input.
4337 rm -f conftest.err conftest.i conftest.
$ac_ext
4339 # OK, works on sane cases. Now check whether nonexistent headers
4340 # can be detected and how.
4341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <ac_nonexistent.h>
4345 if ac_fn_c_try_cpp
"$LINENO"; then :
4346 # Broken: success on invalid input.
4349 # Passes both tests.
4353 rm -f conftest.err conftest.i conftest.
$ac_ext
4356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357 rm -f conftest.i conftest.err conftest.
$ac_ext
4358 if $ac_preproc_ok; then :
4361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4364 See \`config.log' for more details" "$LINENO" 5; }
4368 ac_cpp
='$CPP $CPPFLAGS'
4369 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4375 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4376 if test "${ac_cv_path_GREP+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 if test -z "$GREP"; then
4380 ac_path_GREP_found
=false
4381 # Loop through the user's path and test for each of PROGNAME-LIST
4382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4383 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4386 test -z "$as_dir" && as_dir
=.
4387 for ac_prog
in grep ggrep
; do
4388 for ac_exec_ext
in '' $ac_executable_extensions; do
4389 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4390 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4391 # Check for GNU ac_path_GREP and select it if it is found.
4392 # Check for GNU $ac_path_GREP
4393 case `"$ac_path_GREP" --version 2>&1` in
4395 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4398 $as_echo_n 0123456789 >"conftest.in"
4401 cat "conftest.in" "conftest.in" >"conftest.tmp"
4402 mv "conftest.tmp" "conftest.in"
4403 cp "conftest.in" "conftest.nl"
4404 $as_echo 'GREP' >> "conftest.nl"
4405 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4406 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4407 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4408 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4409 # Best one so far, save it but keep looking for a better one
4410 ac_cv_path_GREP
="$ac_path_GREP"
4411 ac_path_GREP_max
=$ac_count
4413 # 10*(2^10) chars as input seems more than enough
4414 test $ac_count -gt 10 && break
4416 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4419 $ac_path_GREP_found && break 3
4424 if test -z "$ac_cv_path_GREP"; then
4425 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428 ac_cv_path_GREP
=$GREP
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4433 $as_echo "$ac_cv_path_GREP" >&6; }
4434 GREP
="$ac_cv_path_GREP"
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4438 $as_echo_n "checking for egrep... " >&6; }
4439 if test "${ac_cv_path_EGREP+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4442 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4443 then ac_cv_path_EGREP
="$GREP -E"
4445 if test -z "$EGREP"; then
4446 ac_path_EGREP_found
=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4449 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_prog
in egrep; do
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4456 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4457 # Check for GNU ac_path_EGREP and select it if it is found.
4458 # Check for GNU $ac_path_EGREP
4459 case `"$ac_path_EGREP" --version 2>&1` in
4461 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4464 $as_echo_n 0123456789 >"conftest.in"
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'EGREP' >> "conftest.nl"
4471 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4472 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4473 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4474 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_EGREP
="$ac_path_EGREP"
4477 ac_path_EGREP_max
=$ac_count
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4482 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4485 $ac_path_EGREP_found && break 3
4490 if test -z "$ac_cv_path_EGREP"; then
4491 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 ac_cv_path_EGREP
=$EGREP
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4500 $as_echo "$ac_cv_path_EGREP" >&6; }
4501 EGREP
="$ac_cv_path_EGREP"
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4505 $as_echo_n "checking for ANSI C header files... " >&6; }
4506 if test "${ac_cv_header_stdc+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4524 if ac_fn_c_try_compile
"$LINENO"; then :
4525 ac_cv_header_stdc
=yes
4527 ac_cv_header_stdc
=no
4529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 if test $ac_cv_header_stdc = yes; then
4532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "memchr" >/dev
/null
2>&1; then :
4542 ac_cv_header_stdc
=no
4548 if test $ac_cv_header_stdc = yes; then
4549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "free" >/dev
/null
2>&1; then :
4559 ac_cv_header_stdc
=no
4565 if test $ac_cv_header_stdc = yes; then
4566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567 if test "$cross_compiling" = yes; then :
4570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4574 #if ((' ' & 0x0FF) == 0x020)
4575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4578 # define ISLOWER(c) \
4579 (('a' <= (c) && (c) <= 'i') \
4580 || ('j' <= (c) && (c) <= 'r') \
4581 || ('s' <= (c) && (c) <= 'z'))
4582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4590 for (i = 0; i < 256; i++)
4591 if (XOR (islower (i), ISLOWER (i))
4592 || toupper (i) != TOUPPER (i))
4597 if ac_fn_c_try_run
"$LINENO"; then :
4600 ac_cv_header_stdc
=no
4602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4609 $as_echo "$ac_cv_header_stdc" >&6; }
4610 if test $ac_cv_header_stdc = yes; then
4612 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4617 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4618 inttypes.h stdint.h unistd.h
4620 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4623 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4624 cat >>confdefs.h
<<_ACEOF
4625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4635 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4642 if test "$MINIX" = yes; then
4644 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4647 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4650 $as_echo "#define _MINIX 1" >>confdefs.h
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4663 # define __EXTENSIONS__ 1
4664 $ac_includes_default
4673 if ac_fn_c_try_compile
"$LINENO"; then :
4674 ac_cv_safe_to_define___extensions__
=yes
4676 ac_cv_safe_to_define___extensions__
=no
4678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4681 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4682 test $ac_cv_safe_to_define___extensions__ = yes &&
4683 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4685 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4695 ### Use -Wno-pointer-sign if the compiler supports it
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4697 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4698 SAVE_CFLAGS
="$CFLAGS"
4699 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile
"$LINENO"; then :
4716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4717 if test $has_option = yes; then
4718 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4721 $as_echo "$has_option" >&6; }
4722 CFLAGS
="$SAVE_CFLAGS"
4726 ### Use -Wdeclaration-after-statement if the compiler supports it
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4728 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4729 SAVE_CFLAGS
="$CFLAGS"
4730 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 if ac_fn_c_try_compile
"$LINENO"; then :
4747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4752 $as_echo "$has_option" >&6; }
4753 CFLAGS
="$SAVE_CFLAGS"
4757 #### Some other nice autoconf tests.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4760 $as_echo_n "checking whether ln -s works... " >&6; }
4762 if test "$LN_S" = "ln -s"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764 $as_echo "yes" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4767 $as_echo "no, using $LN_S" >&6; }
4771 ac_cpp
='$CPP $CPPFLAGS'
4772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4785 # Double quotes because CPP needs to be expanded
4786 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4789 for ac_c_preproc_warn_flag
in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4800 # include <limits.h>
4802 # include <assert.h>
4806 if ac_fn_c_try_cpp
"$LINENO"; then :
4809 # Broken: fails on valid input.
4812 rm -f conftest.err conftest.i conftest.
$ac_ext
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4820 if ac_fn_c_try_cpp
"$LINENO"; then :
4821 # Broken: success on invalid input.
4824 # Passes both tests.
4828 rm -f conftest.err conftest.i conftest.
$ac_ext
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.i conftest.err conftest.
$ac_ext
4833 if $ac_preproc_ok; then :
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4846 $as_echo "$CPP" >&6; }
4848 for ac_c_preproc_warn_flag
in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4859 # include <limits.h>
4861 # include <assert.h>
4865 if ac_fn_c_try_cpp
"$LINENO"; then :
4868 # Broken: fails on valid input.
4871 rm -f conftest.err conftest.i conftest.
$ac_ext
4873 # OK, works on sane cases. Now check whether nonexistent headers
4874 # can be detected and how.
4875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4879 if ac_fn_c_try_cpp
"$LINENO"; then :
4880 # Broken: success on invalid input.
4883 # Passes both tests.
4887 rm -f conftest.err conftest.i conftest.
$ac_ext
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.i conftest.err conftest.
$ac_ext
4892 if $ac_preproc_ok; then :
4895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details" "$LINENO" 5; }
4902 ac_cpp
='$CPP $CPPFLAGS'
4903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4907 # Find a good install program. We prefer a C program (faster),
4908 # so one script is as good as another. But avoid the broken or
4909 # incompatible versions:
4910 # SysV /etc/install, /usr/sbin/install
4911 # SunOS /usr/etc/install
4912 # IRIX /sbin/install
4914 # AmigaOS /C/install, which installs bootblocks on floppy discs
4915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4918 # OS/2's system install, which has a completely different semantic
4919 # ./install, which can be erroneously created by make from ./install.sh.
4920 # Reject install programs that cannot install multiple files.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4923 if test -z "$INSTALL"; then
4924 if test "${ac_cv_path_install+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 # Account for people who put trailing slashes in PATH elements.
4933 case $as_dir/ in #((
4934 .
/ | .
// |
/[cC
]/* | \
4935 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4936 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4939 # OSF1 and SCO ODT 3.0 have their own names for install.
4940 # Don't use installbsd from OSF since it installs stuff as root
4942 for ac_prog
in ginstall scoinst
install; do
4943 for ac_exec_ext
in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4945 if test $ac_prog = install &&
4946 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4947 # AIX install. It has an incompatible calling convention.
4949 elif test $ac_prog = install &&
4950 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4951 # program-specific install script used by HP pwplus--don't use.
4954 rm -rf conftest.one conftest.two conftest.dir
4955 echo one
> conftest.one
4956 echo two
> conftest.two
4958 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4959 test -s conftest.one
&& test -s conftest.two
&&
4960 test -s conftest.dir
/conftest.one
&&
4961 test -s conftest.dir
/conftest.two
4963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4976 rm -rf conftest.one conftest.two conftest.dir
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL
=$ac_cv_path_install
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL
=$ac_install_sh
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4990 $as_echo "$INSTALL" >&6; }
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4998 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5000 if test "x$RANLIB" = x
; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5032 $as_echo "$RANLIB" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB
=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib
; ac_word
=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5072 $as_echo "$ac_ct_RANLIB" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5078 if test "x$ac_ct_RANLIB" = x
; then
5081 case $cross_compiling:$ac_tool_warned in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5127 $as_echo "$INSTALL_INFO" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5167 $as_echo "$INSTALL_INFO" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5208 $as_echo "$INSTALL_INFO" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5248 $as_echo "$GZIP_PROG" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo
; ac_word
=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5267 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5289 MAKEINFO
=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5292 $as_echo "$MAKEINFO" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 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
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a Bazaar checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from Bazaar, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a Bazaar checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5316 elif ! test -e $srcdir/info
/emacs
; then
5317 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5325 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5327 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5330 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5332 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5336 late_LDFLAGS
=$LDFLAGS
5337 if test "$GCC" = yes; then
5338 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5340 LDFLAGS
="$LDFLAGS -znocombreloc"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5344 $as_echo_n "checking for -znocombreloc... " >&6; }
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5349 if ac_fn_c_try_link
"$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 LDFLAGS
=$late_LDFLAGS
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5357 rm -f core conftest.err conftest.
$ac_objext \
5358 conftest
$ac_exeext conftest.
$ac_ext
5360 #### Extract some information from the operating system and machine files.
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5363 - which libraries the lib-src programs will want, and
5364 - whether the GNU malloc routines are usable..." >&5
5365 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5366 - which libraries the lib-src programs will want, and
5367 - whether the GNU malloc routines are usable..." >&6;}
5369 ### First figure out CFLAGS (which we use for running the compiler here)
5370 ### and REAL_CFLAGS (which we use for real compilation).
5371 ### The two are the same except on a few systems, where they are made
5372 ### different to work around various lossages. For example,
5373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5374 ### as implying static linking.
5376 ### If the CFLAGS env var is specified, we use that value
5377 ### instead of the default.
5379 ### It's not important that this name contain the PID; you can't run
5380 ### two configures in the same directory and have anything work
5382 tempcname
="conftest.c"
5385 #include "'${srcdir}'/src/'${opsysfile}'"
5386 #include "'${srcdir}'/src/'${machfile}'"
5387 #ifndef LIBS_MACHINE
5388 #define LIBS_MACHINE
5393 #ifndef C_SWITCH_SYSTEM
5394 #define C_SWITCH_SYSTEM
5396 #ifndef C_SWITCH_MACHINE
5397 #define C_SWITCH_MACHINE
5399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5400 configure___ c_switch_system=C_SWITCH_SYSTEM
5401 configure___ c_switch_machine=C_SWITCH_MACHINE
5404 #define LIB_X11_LIB -lX11
5407 #ifndef LIBX11_SYSTEM
5408 #define LIBX11_SYSTEM
5410 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5413 configure___ unexec=UNEXEC
5415 configure___ unexec=unexec.o
5418 #ifdef SYSTEM_MALLOC
5419 configure___ system_malloc=yes
5421 configure___ system_malloc=no
5424 #ifdef USE_MMAP_FOR_BUFFERS
5425 configure___ use_mmap_for_buffers=yes
5427 configure___ use_mmap_for_buffers=no
5430 #ifndef C_DEBUG_SWITCH
5431 #define C_DEBUG_SWITCH -g
5434 #ifndef C_OPTIMIZE_SWITCH
5436 #define C_OPTIMIZE_SWITCH -O2
5438 #define C_OPTIMIZE_SWITCH -O
5442 #ifndef C_WARNINGS_SWITCH
5443 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5446 #ifndef LD_SWITCH_MACHINE
5447 #define LD_SWITCH_MACHINE
5450 #ifndef LD_SWITCH_SYSTEM
5451 #define LD_SWITCH_SYSTEM
5454 #ifndef LD_SWITCH_X_SITE_AUX
5455 #define LD_SWITCH_X_SITE_AUX
5458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5461 #ifdef THIS_IS_CONFIGURE
5463 /* Get the CFLAGS for tests in configure. */
5465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5470 #else /* not THIS_IS_CONFIGURE */
5472 /* Get the CFLAGS for real compilation. */
5474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5479 #endif /* not THIS_IS_CONFIGURE */
5482 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5484 # The value of CPP is a quoted variable reference, so we need to do this
5485 # to get its actual value...
5486 CPP
=`eval "echo $CPP"`
5487 eval `${CPP} -Isrc ${tempcname} \
5488 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5489 if test "x$SPECIFIED_CFLAGS" = x
; then
5490 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5491 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5493 REAL_CFLAGS
="$CFLAGS"
5497 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
5499 ### Make sure subsequent tests use flags consistent with the build flags.
5501 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5502 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5504 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval
=$enable_largefile;
5514 if test "$enable_largefile" != no
; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_cv_sys_largefile_CC
=no
5522 if test "$GCC" != yes; then
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5549 rm -f core conftest.err conftest.
$ac_objext
5551 if ac_fn_c_try_compile
"$LINENO"; then :
5552 ac_cv_sys_largefile_CC
=' -n32'; break
5554 rm -f core conftest.err conftest.
$ac_objext
5558 rm -f conftest.
$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no
; then
5564 CC
=$CC$ac_cv_sys_largefile_CC
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 if ac_fn_c_try_compile
"$LINENO"; then :
5593 ac_cv_sys_file_offset_bits
=no
; break
5595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5616 if ac_fn_c_try_compile
"$LINENO"; then :
5617 ac_cv_sys_file_offset_bits
=64; break
5619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 ac_cv_sys_file_offset_bits
=unknown
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5629 cat >>confdefs.h
<<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5635 if test $ac_cv_sys_file_offset_bits = unknown
; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5661 if ac_fn_c_try_compile
"$LINENO"; then :
5662 ac_cv_sys_large_files
=no
; break
5664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5686 ac_cv_sys_large_files
=1; break
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 ac_cv_sys_large_files
=unknown
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5698 cat >>confdefs.h
<<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5709 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5710 ### be located in either /usr/lib64 or /usr/lib.
5711 ### In some rare cases, /usr/lib64 exists but does not contain the
5712 ### relevant files (bug#1287). Hence test for crtn.o.
5713 case "${canonical}" in
5714 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu* )
5715 if test -e /usr
/lib64
/crtn.o
; then
5717 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5725 if test "${with_sound}" != "no"; then
5726 # Sound support for GNU/Linux and the free BSDs.
5727 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5729 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5731 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5732 cat >>confdefs.h
<<_ACEOF
5733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5740 # Emulation library used on NetBSD.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5742 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5743 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 ac_check_lib_save_LIBS
=$LIBS
5747 LIBS
="-lossaudio $LIBS"
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5751 /* Override any GCC internal prototype to avoid an error.
5752 Use char because int might match the return type of a GCC
5753 builtin and then its argument prototype would still apply. */
5761 return _oss_ioctl ();
5766 if ac_fn_c_try_link
"$LINENO"; then :
5767 ac_cv_lib_ossaudio__oss_ioctl
=yes
5769 ac_cv_lib_ossaudio__oss_ioctl
=no
5771 rm -f core conftest.err conftest.
$ac_objext \
5772 conftest
$ac_exeext conftest.
$ac_ext
5773 LIBS
=$ac_check_lib_save_LIBS
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5776 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5777 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5786 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5790 # Extract the first word of "pkg-config", so it can be a program name with args.
5791 set dummy pkg-config
; ac_word
=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5799 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir
=.
5807 for ac_exec_ext
in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5821 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5822 if test -n "$PKG_CONFIG"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5824 $as_echo "$PKG_CONFIG" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 if test "$PKG_CONFIG" = "no" ; then
5835 PKG_CONFIG_MIN_VERSION
=0.9.0
5836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5838 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5840 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5842 $as_echo "yes" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5846 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5847 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5849 $as_echo "$ALSA_CFLAGS" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5852 $as_echo_n "checking ALSA_LIBS... " >&6; }
5853 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5855 $as_echo "$ALSA_LIBS" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5861 ## If we have a custom action on failure, don't print errors, but
5862 ## do set a variable so people can do so.
5863 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5875 if test $succeeded = yes; then
5881 if test $HAVE_ALSA = yes; then
5882 SAVE_CFLAGS
="$CFLAGS"
5883 SAVE_LDFLAGS
="$LDFLAGS"
5884 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
5885 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
5886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <asoundlib.h>
5892 snd_lib_error_set_handler (0);
5897 if ac_fn_c_try_compile
"$LINENO"; then :
5898 emacs_alsa_normal
=yes
5900 emacs_alsa_normal
=no
5902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5903 if test "$emacs_alsa_normal" != yes; then
5904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include <alsa/asoundlib.h>
5910 snd_lib_error_set_handler (0);
5915 if ac_fn_c_try_compile
"$LINENO"; then :
5916 emacs_alsa_subdir
=yes
5918 emacs_alsa_subdir
=no
5920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5921 if test "$emacs_alsa_subdir" != yes; then
5922 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5924 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5927 CFLAGS
="$SAVE_CFLAGS"
5928 LDFLAGS
="$SAVE_LDFLAGS"
5929 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5930 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5932 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5938 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5939 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5940 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5941 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5942 sys
/utsname.h
pwd.h utmp.h
5944 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5946 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5947 cat >>confdefs.h
<<_ACEOF
5948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5957 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <sys/personality.h>
5964 personality (PER_LINUX32)
5969 if ac_fn_c_try_compile
"$LINENO"; then :
5970 emacs_cv_personality_linux32
=yes
5972 emacs_cv_personality_linux32
=no
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5976 $as_echo "$emacs_cv_personality_linux32" >&6; }
5978 if test $emacs_cv_personality_linux32 = yes; then
5980 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5984 for ac_header
in term.h
5986 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
5987 if test "x$ac_cv_header_term_h" = x
""yes; then :
5988 cat >>confdefs.h
<<_ACEOF
5989 #define HAVE_TERM_H 1
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5997 $as_echo_n "checking for ANSI C header files... " >&6; }
5998 if test "${ac_cv_header_stdc+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6016 if ac_fn_c_try_compile
"$LINENO"; then :
6017 ac_cv_header_stdc
=yes
6019 ac_cv_header_stdc
=no
6021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 if test $ac_cv_header_stdc = yes; then
6024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "memchr" >/dev
/null
2>&1; then :
6034 ac_cv_header_stdc
=no
6040 if test $ac_cv_header_stdc = yes; then
6041 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
6051 ac_cv_header_stdc
=no
6057 if test $ac_cv_header_stdc = yes; then
6058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6059 if test "$cross_compiling" = yes; then :
6062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6066 #if ((' ' & 0x0FF) == 0x020)
6067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6070 # define ISLOWER(c) \
6071 (('a' <= (c) && (c) <= 'i') \
6072 || ('j' <= (c) && (c) <= 'r') \
6073 || ('s' <= (c) && (c) <= 'z'))
6074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6082 for (i = 0; i < 256; i++)
6083 if (XOR (islower (i), ISLOWER (i))
6084 || toupper (i) != TOUPPER (i))
6089 if ac_fn_c_try_run
"$LINENO"; then :
6092 ac_cv_header_stdc
=no
6094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6101 $as_echo "$ac_cv_header_stdc" >&6; }
6102 if test $ac_cv_header_stdc = yes; then
6104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6110 if test "${ac_cv_header_time+set}" = set; then :
6111 $as_echo_n "(cached) " >&6
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #include <sys/types.h>
6116 #include <sys/time.h>
6122 if ((struct tm *) 0)
6128 if ac_fn_c_try_compile
"$LINENO"; then :
6129 ac_cv_header_time
=yes
6131 ac_cv_header_time
=no
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6136 $as_echo "$ac_cv_header_time" >&6; }
6137 if test $ac_cv_header_time = yes; then
6139 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6143 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6144 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6150 cat >>confdefs.h
<<_ACEOF
6151 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6154 if test $ac_cv_have_decl_sys_siglist != yes; then
6155 # For Tru64, at least:
6156 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6157 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6163 cat >>confdefs.h
<<_ACEOF
6164 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6167 if test $ac_cv_have_decl___sys_siglist = yes; then
6169 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6174 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6175 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 #include <sys/types.h>
6181 #include <sys/wait.h>
6183 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6199 if ac_fn_c_try_compile
"$LINENO"; then :
6200 ac_cv_header_sys_wait_h
=yes
6202 ac_cv_header_sys_wait_h
=no
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6207 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6208 if test $ac_cv_header_sys_wait_h = yes; then
6210 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6216 $as_echo_n "checking for struct utimbuf... " >&6; }
6217 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #ifdef TIME_WITH_SYS_TIME
6223 #include <sys/time.h>
6226 #ifdef HAVE_SYS_TIME_H
6227 #include <sys/time.h>
6238 static struct utimbuf x; x.actime = x.modtime;
6243 if ac_fn_c_try_compile
"$LINENO"; then :
6244 emacs_cv_struct_utimbuf
=yes
6246 emacs_cv_struct_utimbuf
=no
6248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6251 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6252 if test $emacs_cv_struct_utimbuf = yes; then
6254 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6259 $as_echo_n "checking return type of signal handlers... " >&6; }
6260 if test "${ac_cv_type_signal+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <sys/types.h>
6271 return *(signal (0, 0)) (0) == 1;
6276 if ac_fn_c_try_compile
"$LINENO"; then :
6277 ac_cv_type_signal
=int
6279 ac_cv_type_signal
=void
6281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6284 $as_echo "$ac_cv_type_signal" >&6; }
6286 cat >>confdefs.h
<<_ACEOF
6287 #define RETSIGTYPE $ac_cv_type_signal
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6293 $as_echo_n "checking for speed_t... " >&6; }
6294 if test "${emacs_cv_speed_t+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <termios.h>
6308 if ac_fn_c_try_compile
"$LINENO"; then :
6309 emacs_cv_speed_t
=yes
6313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6316 $as_echo "$emacs_cv_speed_t" >&6; }
6317 if test $emacs_cv_speed_t = yes; then
6319 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6324 $as_echo_n "checking for struct timeval... " >&6; }
6325 if test "${emacs_cv_struct_timeval+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 #ifdef TIME_WITH_SYS_TIME
6331 #include <sys/time.h>
6334 #ifdef HAVE_SYS_TIME_H
6335 #include <sys/time.h>
6343 static struct timeval x; x.tv_sec = x.tv_usec;
6348 if ac_fn_c_try_compile
"$LINENO"; then :
6349 emacs_cv_struct_timeval
=yes
6351 emacs_cv_struct_timeval
=no
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6356 $as_echo "$emacs_cv_struct_timeval" >&6; }
6357 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6358 if test $emacs_cv_struct_timeval = yes; then
6360 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6365 $as_echo_n "checking for struct exception... " >&6; }
6366 if test "${emacs_cv_struct_exception+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6375 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6380 if ac_fn_c_try_compile
"$LINENO"; then :
6381 emacs_cv_struct_exception
=yes
6383 emacs_cv_struct_exception
=no
6385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6388 $as_echo "$emacs_cv_struct_exception" >&6; }
6389 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6390 if test $emacs_cv_struct_exception != yes; then
6392 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6396 for ac_header
in sys
/socket.h
6398 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6399 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6400 cat >>confdefs.h
<<_ACEOF
6401 #define HAVE_SYS_SOCKET_H 1
6408 for ac_header
in net
/if.h
6410 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6411 #if HAVE_SYS_SOCKET_H
6412 #include <sys/socket.h>
6415 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6416 cat >>confdefs.h
<<_ACEOF
6417 #define HAVE_NET_IF_H 1
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6426 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6427 if test "${ac_cv_struct_tm+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <sys/types.h>
6439 int *p = &tm.tm_sec;
6445 if ac_fn_c_try_compile
"$LINENO"; then :
6446 ac_cv_struct_tm
=time.h
6448 ac_cv_struct_tm
=sys
/time.h
6450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6453 $as_echo "$ac_cv_struct_tm" >&6; }
6454 if test $ac_cv_struct_tm = sys
/time.h
; then
6456 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6460 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6461 #include <$ac_cv_struct_tm>
6464 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6466 cat >>confdefs.h
<<_ACEOF
6467 #define HAVE_STRUCT_TM_TM_ZONE 1
6473 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6475 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6478 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6480 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6486 cat >>confdefs.h
<<_ACEOF
6487 #define HAVE_DECL_TZNAME $ac_have_decl
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6491 $as_echo_n "checking for tzname... " >&6; }
6492 if test "${ac_cv_var_tzname+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6498 #if !HAVE_DECL_TZNAME
6499 extern char *tzname[];
6505 return tzname[0][0];
6510 if ac_fn_c_try_link
"$LINENO"; then :
6511 ac_cv_var_tzname
=yes
6515 rm -f core conftest.err conftest.
$ac_objext \
6516 conftest
$ac_exeext conftest.
$ac_ext
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6519 $as_echo "$ac_cv_var_tzname" >&6; }
6520 if test $ac_cv_var_tzname = yes; then
6522 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6527 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6529 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6531 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6535 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6536 #if HAVE_SYS_SOCKET_H
6537 #include <sys/socket.h>
6543 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6545 cat >>confdefs.h
<<_ACEOF
6546 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6551 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6552 #if HAVE_SYS_SOCKET_H
6553 #include <sys/socket.h>
6559 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6561 cat >>confdefs.h
<<_ACEOF
6562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6567 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6568 #if HAVE_SYS_SOCKET_H
6569 #include <sys/socket.h>
6575 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6577 cat >>confdefs.h
<<_ACEOF
6578 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6583 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6584 #if HAVE_SYS_SOCKET_H
6585 #include <sys/socket.h>
6591 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6593 cat >>confdefs.h
<<_ACEOF
6594 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6599 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6600 #if HAVE_SYS_SOCKET_H
6601 #include <sys/socket.h>
6607 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6609 cat >>confdefs.h
<<_ACEOF
6610 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6619 $as_echo_n "checking for function prototypes... " >&6; }
6620 if test "$ac_cv_prog_cc_c89" != no
; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }
6624 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6627 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6635 $as_echo_n "checking for working volatile... " >&6; }
6636 if test "${ac_cv_c_volatile+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6647 int * volatile y = (int *) 0;
6653 if ac_fn_c_try_compile
"$LINENO"; then :
6654 ac_cv_c_volatile
=yes
6658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6661 $as_echo "$ac_cv_c_volatile" >&6; }
6662 if test $ac_cv_c_volatile = no
; then
6664 $as_echo "#define volatile /**/" >>confdefs.h
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6669 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6670 if test "${ac_cv_c_const+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6679 /* FIXME: Include the comments suggested by Paul. */
6681 /* Ultrix mips cc rejects this. */
6682 typedef int charset[2];
6684 /* SunOS 4.1.1 cc rejects this. */
6685 char const *const *pcpcc;
6687 /* NEC SVR4.0.2 mips cc rejects this. */
6688 struct point {int x, y;};
6689 static struct point const zero = {0,0};
6690 /* AIX XL C 1.02.0.0 rejects this.
6691 It does not let you subtract one const X* pointer from another in
6692 an arm of an if-expression whose if-part is not a constant
6694 const char *g = "string";
6695 pcpcc = &g + (g ? g-g : 0);
6696 /* HPUX 7.0 cc rejects these. */
6698 ppc = (char**) pcpcc;
6699 pcpcc = (char const *const *) ppc;
6700 { /* SCO 3.2v4 cc rejects this. */
6702 char const *s = 0 ? (char *) 0 : (char const *) 0;
6707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6709 const int *foo = &x[0];
6712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6713 typedef const int *iptr;
6717 { /* AIX XL C 1.02.0.0 rejects this saying
6718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6719 struct s { int j; const int *ap[3]; };
6720 struct s *b; b->j = 5;
6722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6726 return !cs[0] && !zero.x;
6733 if ac_fn_c_try_compile
"$LINENO"; then :
6738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6741 $as_echo "$ac_cv_c_const" >&6; }
6742 if test $ac_cv_c_const = no
; then
6744 $as_echo "#define const /**/" >>confdefs.h
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6749 $as_echo_n "checking for void * support... " >&6; }
6750 if test "${emacs_cv_void_star+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6764 if ac_fn_c_try_compile
"$LINENO"; then :
6765 emacs_cv_void_star
=yes
6767 emacs_cv_void_star
=no
6769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6772 $as_echo "$emacs_cv_void_star" >&6; }
6773 if test $emacs_cv_void_star = yes; then
6774 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6777 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6787 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6788 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6789 $as_echo_n "(cached) " >&6
6791 cat >conftest.
make <<\_ACEOF
6794 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6799 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6801 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6805 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6807 $as_echo "yes" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 SET_MAKE
="MAKE=${MAKE-make}"
6816 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6818 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6820 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
6821 if test "x$testval" != x
; then
6824 ac_enable_autodepend
=no
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6827 $as_echo "$HAVE_GNU_MAKE" >&6; }
6828 if test $HAVE_GNU_MAKE = yes; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6830 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6831 SAVE_CFLAGS
="$CFLAGS"
6832 CFLAGS
="$CFLAGS -MMD -MF deps.d"
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6844 if ac_fn_c_try_compile
"$LINENO"; then :
6847 ac_enable_autodepend
=no
6849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 CFLAGS
="$SAVE_CFLAGS"
6851 test -f deps.d || ac_enable_autodepend
=no
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6854 $as_echo "$ac_enable_autodepend" >&6; }
6856 if test $ac_enable_autodepend = yes; then
6858 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6864 $as_echo_n "checking for long file names... " >&6; }
6865 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6868 ac_cv_sys_long_file_names
=yes
6869 # Test for long file names in all the places we know might matter:
6870 # . the current directory, where building will happen
6871 # $prefix/lib where we will be installing things
6872 # $exec_prefix/lib likewise
6873 # $TMPDIR if set, where it might want to write temporary files
6874 # /tmp where it might want to write temporary files
6877 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
6878 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6879 # in the usual case where exec_prefix is '${prefix}'.
6881 . |
/* | ?
:[\\/]*) ;; #(
6884 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
6885 ac_xdir
=$ac_dir/cf$$
6886 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
6887 ac_tf1
=$ac_xdir/conftest9012345
6888 ac_tf2
=$ac_xdir/conftest9012346
6889 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6890 ac_cv_sys_long_file_names
=no
6891 rm -f -r "$ac_xdir" 2>/dev
/null
6892 test $ac_cv_sys_long_file_names = no
&& break
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6896 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6897 if test $ac_cv_sys_long_file_names = yes; then
6899 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6904 #### Choose a window system.
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6907 $as_echo_n "checking for X... " >&6; }
6910 # Check whether --with-x was given.
6911 if test "${with_x+set}" = set; then :
6915 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6916 if test "x$with_x" = xno
; then
6917 # The user explicitly disabled X.
6920 case $x_includes,$x_libraries in #(
6921 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
6922 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6925 # One or both of the vars are not set, and there is no cached value.
6926 ac_x_includes
=no ac_x_libraries
=no
6927 rm -f -r conftest.dir
6928 if mkdir conftest.dir
; then
6930 cat >Imakefile
<<'_ACEOF'
6932 @echo incroot='${INCROOT}'
6934 @echo usrlibdir='${USRLIBDIR}'
6936 @echo libdir='${LIBDIR}'
6938 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6939 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6940 for ac_var
in incroot usrlibdir libdir
; do
6941 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6944 for ac_extension
in a so sl dylib la dll
; do
6945 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6946 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6947 ac_im_usrlibdir
=$ac_im_libdir; break
6950 # Screen out bogus values from the imake configuration. They are
6951 # bogus both because they are the default anyway, and because
6952 # using them would break gcc on systems where it needs fixed includes.
6953 case $ac_im_incroot in
6954 /usr
/include
) ac_x_includes
= ;;
6955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6957 case $ac_im_usrlibdir in
6958 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6963 rm -f -r conftest.dir
6966 # Standard set of common directories for X headers.
6967 # Check X11 before X11Rn because it is often a symlink to the current release.
6981 /usr/local/X11/include
6982 /usr/local/X11R7/include
6983 /usr/local/X11R6/include
6984 /usr/local/X11R5/include
6985 /usr/local/X11R4/include
6987 /usr/local/include/X11
6988 /usr/local/include/X11R7
6989 /usr/local/include/X11R6
6990 /usr/local/include/X11R5
6991 /usr/local/include/X11R4
6995 /usr/XFree86/include/X11
6999 /usr/unsupported/include
7001 /usr/local/x11r5/include
7002 /usr/lpp/Xamples/include
7004 /usr/openwin/include
7005 /usr/openwin/share/include'
7007 if test "$ac_x_includes" = no
; then
7008 # Guess where to find include files, by looking for Xlib.h.
7009 # First, try using that file with no special directory specified.
7010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 #include <X11/Xlib.h>
7014 if ac_fn_c_try_cpp
"$LINENO"; then :
7015 # We can compile using X headers with no special include directory.
7018 for ac_dir
in $ac_x_header_dirs; do
7019 if test -r "$ac_dir/X11/Xlib.h"; then
7020 ac_x_includes
=$ac_dir
7025 rm -f conftest.err conftest.i conftest.
$ac_ext
7026 fi # $ac_x_includes = no
7028 if test "$ac_x_libraries" = no
; then
7029 # Check for the libraries.
7030 # See if we find them without any special options.
7031 # Don't add to $LIBS permanently.
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <X11/Xlib.h>
7045 if ac_fn_c_try_link
"$LINENO"; then :
7047 # We can link X programs with no special library path.
7051 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7053 # Don't even attempt the hair of trying to link an X program!
7054 for ac_extension
in a so sl dylib la dll
; do
7055 if test -r "$ac_dir/libX11.$ac_extension"; then
7056 ac_x_libraries
=$ac_dir
7062 rm -f core conftest.err conftest.
$ac_objext \
7063 conftest
$ac_exeext conftest.
$ac_ext
7064 fi # $ac_x_libraries = no
7066 case $ac_x_includes,$ac_x_libraries in #(
7068 # Didn't find X, or a directory has "'" in its name.
7069 ac_cv_have_x
="have_x=no";; #(
7071 # Record where we found X for the cache.
7072 ac_cv_have_x
="have_x=yes\
7073 ac_x_includes='$ac_x_includes'\
7074 ac_x_libraries='$ac_x_libraries'"
7080 eval "$ac_cv_have_x"
7083 if test "$have_x" != yes; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7085 $as_echo "$have_x" >&6; }
7088 # If each of the values was on the command line, it overrides each guess.
7089 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7090 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7091 # Update the cache value to reflect the command line values.
7092 ac_cv_have_x
="have_x=yes\
7093 ac_x_includes='$x_includes'\
7094 ac_x_libraries='$x_libraries'"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7096 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7099 if test "$no_x" = yes; then
7105 ## Workaround for bug in autoconf <= 2.62.
7106 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7107 ## No need to do anything special for these standard directories.
7108 ## This is an experiment, take it out if it causes problems.
7109 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7111 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7115 if test "${x_libraries}" != NONE
; then
7116 if test -n "${x_libraries}"; then
7117 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7118 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7120 x_default_search_path
=""
7121 x_search_path
=${x_libraries}
7122 if test -z "${x_search_path}"; then
7123 x_search_path
=/usr
/lib
7125 for x_library
in `echo ${x_search_path}: | \
7126 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7128 ${x_library}/X11/%L/%T/%N%C%S:\
7129 ${x_library}/X11/%l/%T/%N%C%S:\
7130 ${x_library}/X11/%T/%N%C%S:\
7131 ${x_library}/X11/%L/%T/%N%S:\
7132 ${x_library}/X11/%l/%T/%N%S:\
7133 ${x_library}/X11/%T/%N%S"
7134 if test x
"${x_default_search_path}" = x
; then
7135 x_default_search_path
=${x_search_path}
7137 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7141 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7142 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7145 if test x
"${x_includes}" = x
; then
7146 bitmapdir
=/usr
/include
/X11
/bitmaps
7148 # accumulate include directories that have X11 bitmap subdirectories
7150 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7151 if test -d "${bmd}/X11/bitmaps"; then
7152 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7154 if test -d "${bmd}/bitmaps"; then
7155 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7158 if test ${bmd_acc} != "dummyval"; then
7159 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7166 tmp_CPPFLAGS
="$CPPFLAGS"
7167 tmp_CFLAGS
="$CFLAGS"
7168 CPPFLAGS
="$CPPFLAGS -x objective-c"
7169 CFLAGS
="$CFLAGS -x objective-c"
7170 if test "${with_ns}" != no
; then
7171 if test "${opsys}" = darwin
; then
7173 ns_appdir
=`pwd`/nextstep
/Emacs.app
7174 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7175 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7176 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7177 elif test -f $GNUSTEP_CONFIG_FILE; then
7179 ns_appdir
=`pwd`/nextstep
/Emacs.app
7180 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7181 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7182 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7183 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7184 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7185 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7186 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7187 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7188 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7189 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7191 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7192 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7195 as_fn_error $?
"\`--with-ns' was specified, but the include
7196 files are missing or cannot be compiled." "$LINENO" 5
7200 NS_HAVE_NSINTEGER
=yes
7201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <Foundation/NSObjCRuntime.h>
7212 if ac_fn_c_try_compile
"$LINENO"; then :
7213 ns_have_nsinteger
=yes
7215 ns_have_nsinteger
=no
7217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 if test $ns_have_nsinteger = no
; then
7219 NS_HAVE_NSINTEGER
=no
7222 if test "${HAVE_NS}" = yes; then
7223 window_system
=nextstep
7225 # set up packaging dirs
7226 exec_prefix
=${ns_appbindir}
7227 libexecdir
=${ns_appbindir}/libexec
7228 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7229 prefix
=${ns_appresdir}
7232 CFLAGS
="$tmp_CFLAGS"
7233 CPPFLAGS
="$tmp_CPPFLAGS"
7235 case "${window_system}" in
7239 case "${with_x_toolkit}" in
7240 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7241 motif
) USE_X_TOOLKIT
=MOTIF
;;
7243 USE_X_TOOLKIT
=none
;;
7244 no
) USE_X_TOOLKIT
=none
;;
7245 * ) USE_X_TOOLKIT
=maybe
;;
7255 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7256 # Extract the first word of "X", so it can be a program name with args.
7257 set dummy X
; ac_word
=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7263 if test -n "$HAVE_XSERVER"; then
7264 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir
=.
7271 for ac_exec_ext
in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_prog_HAVE_XSERVER
="true"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7284 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7285 if test -n "$HAVE_XSERVER"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7287 $as_echo "$HAVE_XSERVER" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7294 if test "$HAVE_XSERVER" = true ||
7295 test -n "$DISPLAY" ||
7296 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7297 as_fn_error $?
"You seem to be running X, but no X development libraries
7298 were found. You should install the relevant development files for X
7299 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7300 sure you have development files for image handling, i.e.
7301 tiff, gif, jpeg, png and xpm.
7302 If you are sure you want Emacs compiled without X window support, pass
7304 to configure." "$LINENO" 5
7308 ### If we're using X11, we should use the X menu package.
7311 yes ) HAVE_MENUS
=yes ;;
7314 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7315 # Assume not, until told otherwise.
7318 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7319 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7325 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7326 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7333 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7334 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 extern void (* __after_morecore_hook)();
7343 __after_morecore_hook = 0
7348 if ac_fn_c_try_link
"$LINENO"; then :
7349 emacs_cv_var___after_morecore_hook
=yes
7351 emacs_cv_var___after_morecore_hook
=no
7353 rm -f core conftest.err conftest.
$ac_objext \
7354 conftest
$ac_exeext conftest.
$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7357 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7358 if test $emacs_cv_var___after_morecore_hook = no
; then
7361 if test "${system_malloc}" = "yes"; then
7364 (The GNU allocators don't work with this system configuration.)"
7366 if test "$doug_lea_malloc" = "yes" ; then
7367 if test "$GNU_MALLOC" = yes ; then
7369 (Using Doug Lea's new malloc from the GNU C Library.)"
7372 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7376 if test x
"${REL_ALLOC}" = x
; then
7377 REL_ALLOC
=${GNU_MALLOC}
7384 for ac_header
in $ac_header_list
7386 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7387 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7389 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7390 cat >>confdefs.h
<<_ACEOF
7391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 for ac_func
in getpagesize
7407 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7408 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7409 cat >>confdefs.h
<<_ACEOF
7410 #define HAVE_GETPAGESIZE 1
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7417 $as_echo_n "checking for working mmap... " >&6; }
7418 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7421 if test "$cross_compiling" = yes; then :
7422 ac_cv_func_mmap_fixed_mapped
=no
7424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 /* malloc might have been renamed as rpl_malloc. */
7430 /* Thanks to Mike Haertel and Jim Avera for this test.
7431 Here is a matrix of mmap possibilities:
7432 mmap private not fixed
7433 mmap private fixed at somewhere currently unmapped
7434 mmap private fixed at somewhere already mapped
7435 mmap shared not fixed
7436 mmap shared fixed at somewhere currently unmapped
7437 mmap shared fixed at somewhere already mapped
7438 For private mappings, we should verify that changes cannot be read()
7439 back from the file, nor mmap's back from the file at a different
7440 address. (There have been systems where private was not correctly
7441 implemented like the infamous i386 svr4.0, and systems where the
7442 VM page cache was not coherent with the file system buffer cache
7443 like early versions of FreeBSD and possibly contemporary NetBSD.)
7444 For shared mappings, we should conversely verify that changes get
7445 propagated back to all the places they're supposed to be.
7447 Grep wants private fixed already mapped.
7448 The main things grep needs to know about mmap are:
7449 * does it exist and is it safe to write into the mmap'd area
7450 * how to use it (BSD variants) */
7453 #include <sys/mman.h>
7455 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7459 /* This mess was copied from the GNU getpagesize.h. */
7460 #ifndef HAVE_GETPAGESIZE
7461 # ifdef _SC_PAGESIZE
7462 # define getpagesize() sysconf(_SC_PAGESIZE)
7463 # else /* no _SC_PAGESIZE */
7464 # ifdef HAVE_SYS_PARAM_H
7465 # include <sys/param.h>
7466 # ifdef EXEC_PAGESIZE
7467 # define getpagesize() EXEC_PAGESIZE
7468 # else /* no EXEC_PAGESIZE */
7470 # define getpagesize() NBPG * CLSIZE
7473 # endif /* no CLSIZE */
7474 # else /* no NBPG */
7476 # define getpagesize() NBPC
7477 # else /* no NBPC */
7479 # define getpagesize() PAGESIZE
7480 # endif /* PAGESIZE */
7481 # endif /* no NBPC */
7482 # endif /* no NBPG */
7483 # endif /* no EXEC_PAGESIZE */
7484 # else /* no HAVE_SYS_PARAM_H */
7485 # define getpagesize() 8192 /* punt totally */
7486 # endif /* no HAVE_SYS_PARAM_H */
7487 # endif /* no _SC_PAGESIZE */
7489 #endif /* no HAVE_GETPAGESIZE */
7494 char *data, *data2, *data3;
7499 pagesize = getpagesize ();
7501 /* First, make a file with some known garbage in it. */
7502 data = (char *) malloc (pagesize);
7505 for (i = 0; i < pagesize; ++i)
7506 *(data + i) = rand ();
7508 fd = creat ("conftest.mmap", 0600);
7511 if (write (fd, data, pagesize) != pagesize)
7515 /* Next, check that the tail of a page is zero-filled. File must have
7516 non-zero length, otherwise we risk SIGBUS for entire page. */
7517 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7521 if (write (fd2, cdata2, 1) != 1)
7523 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7524 if (data2 == MAP_FAILED)
7526 for (i = 0; i < pagesize; ++i)
7530 if (munmap (data2, pagesize))
7533 /* Next, try to mmap the file at a fixed address which already has
7534 something else allocated at it. If we can, also make sure that
7535 we see the same garbage. */
7536 fd = open ("conftest.mmap", O_RDWR);
7539 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7542 for (i = 0; i < pagesize; ++i)
7543 if (*(data + i) != *(data2 + i))
7546 /* Finally, make sure that changes to the mapped area do not
7547 percolate back to the file as seen by read(). (This is a bug on
7548 some variants of i386 svr4.0.) */
7549 for (i = 0; i < pagesize; ++i)
7550 *(data2 + i) = *(data2 + i) + 1;
7551 data3 = (char *) malloc (pagesize);
7554 if (read (fd, data3, pagesize) != pagesize)
7556 for (i = 0; i < pagesize; ++i)
7557 if (*(data + i) != *(data3 + i))
7563 if ac_fn_c_try_run
"$LINENO"; then :
7564 ac_cv_func_mmap_fixed_mapped
=yes
7566 ac_cv_func_mmap_fixed_mapped
=no
7568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7574 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7575 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7577 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7580 rm -f conftest.mmap conftest.txt
7582 if test $use_mmap_for_buffers = yes; then
7586 LIBS
="$libsrc_libs $LIBS"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7589 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7590 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 ac_check_lib_save_LIBS
=$LIBS
7595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7608 return dnet_ntoa ();
7613 if ac_fn_c_try_link
"$LINENO"; then :
7614 ac_cv_lib_dnet_dnet_ntoa
=yes
7616 ac_cv_lib_dnet_dnet_ntoa
=no
7618 rm -f core conftest.err conftest.
$ac_objext \
7619 conftest
$ac_exeext conftest.
$ac_ext
7620 LIBS
=$ac_check_lib_save_LIBS
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7623 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7624 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7625 cat >>confdefs.h
<<_ACEOF
7626 #define HAVE_LIBDNET 1
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7635 $as_echo_n "checking for main in -lXbsd... " >&6; }
7636 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7639 ac_check_lib_save_LIBS
=$LIBS
7641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7653 if ac_fn_c_try_link
"$LINENO"; then :
7654 ac_cv_lib_Xbsd_main
=yes
7656 ac_cv_lib_Xbsd_main
=no
7658 rm -f core conftest.err conftest.
$ac_objext \
7659 conftest
$ac_exeext conftest.
$ac_ext
7660 LIBS
=$ac_check_lib_save_LIBS
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7663 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7664 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7665 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7670 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7671 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 ac_check_lib_save_LIBS
=$LIBS
7675 LIBS
="-lpthreads $LIBS"
7676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7694 if ac_fn_c_try_link
"$LINENO"; then :
7695 ac_cv_lib_pthreads_cma_open
=yes
7697 ac_cv_lib_pthreads_cma_open
=no
7699 rm -f core conftest.err conftest.
$ac_objext \
7700 conftest
$ac_exeext conftest.
$ac_ext
7701 LIBS
=$ac_check_lib_save_LIBS
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7704 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7705 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7706 cat >>confdefs.h
<<_ACEOF
7707 #define HAVE_LIBPTHREADS 1
7710 LIBS
="-lpthreads $LIBS"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7719 $as_echo_n "checking for -bbigtoc option... " >&6; }
7720 if test "${gdb_cv_bigtoc+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7725 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7726 *) gdb_cv_bigtoc
=-bbigtoc ;;
7729 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7741 if ac_fn_c_try_link
"$LINENO"; then :
7746 rm -f core conftest.err conftest.
$ac_objext \
7747 conftest
$ac_exeext conftest.
$ac_ext
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7751 $as_echo "$gdb_cv_bigtoc" >&6; }
7755 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7756 # used for the tests that follow. We set them back to REAL_CFLAGS and
7757 # REAL_CPPFLAGS later on.
7759 REAL_CPPFLAGS
="$CPPFLAGS"
7761 if test "${HAVE_X11}" = "yes"; then
7762 DEFS
="$C_SWITCH_X_SITE $DEFS"
7763 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7765 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7766 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7768 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7769 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7770 # but it's more convenient here to set LD_RUN_PATH
7771 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7772 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7773 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7777 if test "${opsys}" = "gnu-linux"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7779 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7786 XOpenDisplay ("foo");
7791 if ac_fn_c_try_link
"$LINENO"; then :
7792 xlinux_first_failure
=no
7794 xlinux_first_failure
=yes
7796 rm -f core conftest.err conftest.
$ac_objext \
7797 conftest
$ac_exeext conftest.
$ac_ext
7798 if test "${xlinux_first_failure}" = "yes"; then
7799 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7800 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7801 OLD_CPPFLAGS
="$CPPFLAGS"
7803 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7804 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7805 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7806 LIBS
="$LIBS -b i486-linuxaout"
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7813 XOpenDisplay ("foo");
7818 if ac_fn_c_try_link
"$LINENO"; then :
7819 xlinux_second_failure
=no
7821 xlinux_second_failure
=yes
7823 rm -f core conftest.err conftest.
$ac_objext \
7824 conftest
$ac_exeext conftest.
$ac_ext
7825 if test "${xlinux_second_failure}" = "yes"; then
7826 # If we get the same failure with -b, there is no use adding -b.
7827 # So take it out. This plays safe.
7828 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7829 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7830 CPPFLAGS
="$OLD_CPPFLAGS"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7844 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7845 # header files included from there.
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7847 $as_echo_n "checking for Xkb... " >&6; }
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <X11/Xlib.h>
7851 #include <X11/XKBlib.h>
7855 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7860 if ac_fn_c_try_link
"$LINENO"; then :
7865 rm -f core conftest.err conftest.
$ac_objext \
7866 conftest
$ac_exeext conftest.
$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7868 $as_echo "$emacs_xkb" >&6; }
7869 if test $emacs_xkb = yes; then
7871 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7875 for ac_func
in XrmSetDatabase XScreenResourceString \
7876 XScreenNumberOfScreen XSetWMProtocols
7878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7880 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7881 cat >>confdefs.h
<<_ACEOF
7882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7890 if test "${window_system}" = "x11"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7892 $as_echo_n "checking X11 version 6... " >&6; }
7893 if test "${emacs_cv_x11_version_6+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <X11/Xlib.h>
7902 #if XlibSpecificationRelease < 6
7910 if ac_fn_c_try_link
"$LINENO"; then :
7911 emacs_cv_x11_version_6
=yes
7913 emacs_cv_x11_version_6
=no
7915 rm -f core conftest.err conftest.
$ac_objext \
7916 conftest
$ac_exeext conftest.
$ac_ext
7919 if test $emacs_cv_x11_version_6 = yes; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7921 $as_echo "6 or newer" >&6; }
7923 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7927 $as_echo "before 6" >&6; }
7932 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7934 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
7935 if test "${with_rsvg}" != "no"; then
7936 RSVG_REQUIRED
=2.11.0
7937 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
7942 # Extract the first word of "pkg-config", so it can be a program name with args.
7943 set dummy pkg-config
; ac_word
=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7951 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir
=.
7959 for ac_exec_ext
in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7973 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7974 if test -n "$PKG_CONFIG"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7976 $as_echo "$PKG_CONFIG" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7984 if test "$PKG_CONFIG" = "no" ; then
7987 PKG_CONFIG_MIN_VERSION
=0.9.0
7988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
7990 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7992 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
7998 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7999 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8001 $as_echo "$RSVG_CFLAGS" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8004 $as_echo_n "checking RSVG_LIBS... " >&6; }
8005 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8007 $as_echo "$RSVG_LIBS" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8013 ## If we have a custom action on failure, don't print errors, but
8014 ## do set a variable so people can do so.
8015 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8027 if test $succeeded = yes; then
8036 if test ".${RSVG_CFLAGS}" != "."; then
8039 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8041 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8042 LIBS
="$RSVG_LIBS $LIBS"
8049 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8052 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8057 # Extract the first word of "pkg-config", so it can be a program name with args.
8058 set dummy pkg-config
; ac_word
=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8066 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir
=.
8074 for ac_exec_ext
in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8088 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8089 if test -n "$PKG_CONFIG"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8091 $as_echo "$PKG_CONFIG" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8099 if test "$PKG_CONFIG" = "no" ; then
8102 PKG_CONFIG_MIN_VERSION
=0.9.0
8103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8105 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8107 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8109 $as_echo "yes" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8113 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8114 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8116 $as_echo "$GTK_CFLAGS" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8119 $as_echo_n "checking GTK_LIBS... " >&6; }
8120 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8122 $as_echo "$GTK_LIBS" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8128 ## If we have a custom action on failure, don't print errors, but
8129 ## do set a variable so people can do so.
8130 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8142 if test $succeeded = yes; then
8148 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8149 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8154 if test x
"$pkg_check_gtk" = xyes
; then
8158 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8159 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8160 LIBS
="$GTK_LIBS $LIBS"
8162 for ac_func
in gtk_main
8164 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8165 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8166 cat >>confdefs.h
<<_ACEOF
8167 #define HAVE_GTK_MAIN 1
8173 if test "${GTK_COMPILES}" != "yes"; then
8174 if test "$USE_X_TOOLKIT" != "maybe"; then
8175 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8180 $as_echo "#define USE_GTK 1" >>confdefs.h
8183 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8187 closing open displays. This is no problem if you just use
8188 one display, but if you use more than one and close one of them
8189 Emacs may crash." >&5
8190 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8191 closing open displays. This is no problem if you just use
8192 one display, but if you use more than one and close one of them
8193 Emacs may crash." >&2;}
8201 if test "${HAVE_GTK}" = "yes"; then
8203 if test "$with_toolkit_scroll_bars" != no
; then
8204 with_toolkit_scroll_bars
=yes
8207 HAVE_GTK_MULTIDISPLAY
=no
8208 for ac_func
in gdk_display_open
8210 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8211 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8212 cat >>confdefs.h
<<_ACEOF
8213 #define HAVE_GDK_DISPLAY_OPEN 1
8215 HAVE_GTK_MULTIDISPLAY
=yes
8219 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8221 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8225 HAVE_GTK_FILE_SELECTION
=no
8226 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8227 #include <gtk/gtk.h>
8229 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8230 HAVE_GTK_FILE_SELECTION
=yes
8232 HAVE_GTK_FILE_SELECTION
=no
8235 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8236 for ac_func
in gtk_file_selection_new
8238 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8239 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8240 cat >>confdefs.h
<<_ACEOF
8241 #define HAVE_GTK_FILE_SELECTION_NEW 1
8243 HAVE_GTK_FILE_SELECTION
=yes
8245 HAVE_GTK_FILE_SELECTION
=no
8251 HAVE_GTK_FILE_CHOOSER
=no
8252 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8253 #include <gtk/gtk.h>
8255 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8256 HAVE_GTK_FILE_CHOOSER
=yes
8258 HAVE_GTK_FILE_CHOOSER
=no
8261 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8262 for ac_func
in gtk_file_chooser_dialog_new
8264 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8265 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8266 cat >>confdefs.h
<<_ACEOF
8267 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8269 HAVE_GTK_FILE_CHOOSER
=yes
8271 HAVE_GTK_FILE_CHOOSER
=no
8277 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8278 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8280 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8284 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8285 HAVE_GTK_AND_PTHREAD
=no
8286 for ac_header
in pthread.h
8288 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8289 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8290 cat >>confdefs.h
<<_ACEOF
8291 #define HAVE_PTHREAD_H 1
8298 if test "$ac_cv_header_pthread_h"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8300 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8301 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 ac_check_lib_save_LIBS
=$LIBS
8305 LIBS
="-lpthread $LIBS"
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8309 /* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8315 char pthread_self ();
8319 return pthread_self ();
8324 if ac_fn_c_try_link
"$LINENO"; then :
8325 ac_cv_lib_pthread_pthread_self
=yes
8327 ac_cv_lib_pthread_pthread_self
=no
8329 rm -f core conftest.err conftest.
$ac_objext \
8330 conftest
$ac_exeext conftest.
$ac_ext
8331 LIBS
=$ac_check_lib_save_LIBS
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8334 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8335 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8336 HAVE_GTK_AND_PTHREAD
=yes
8340 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8341 case "${canonical}" in
8343 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8346 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8353 if test "${with_dbus}" = "yes"; then
8357 # Extract the first word of "pkg-config", so it can be a program name with args.
8358 set dummy pkg-config
; ac_word
=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8366 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir
=.
8374 for ac_exec_ext
in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8388 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8389 if test -n "$PKG_CONFIG"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8391 $as_echo "$PKG_CONFIG" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 if test "$PKG_CONFIG" = "no" ; then
8402 PKG_CONFIG_MIN_VERSION
=0.9.0
8403 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8405 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8407 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8409 $as_echo "yes" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8413 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8414 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8416 $as_echo "$DBUS_CFLAGS" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8419 $as_echo_n "checking DBUS_LIBS... " >&6; }
8420 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8422 $as_echo "$DBUS_LIBS" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8428 ## If we have a custom action on failure, don't print errors, but
8429 ## do set a variable so people can do so.
8430 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8442 if test $succeeded = yes; then
8448 if test "$HAVE_DBUS" = yes; then
8449 LIBS
="$LIBS $DBUS_LIBS"
8451 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8453 for ac_func
in dbus_watch_get_unix_fd
8455 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8456 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8457 cat >>confdefs.h
<<_ACEOF
8458 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8468 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8472 # Extract the first word of "pkg-config", so it can be a program name with args.
8473 set dummy pkg-config
; ac_word
=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8481 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir
=.
8489 for ac_exec_ext
in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8503 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8504 if test -n "$PKG_CONFIG"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8506 $as_echo "$PKG_CONFIG" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8514 if test "$PKG_CONFIG" = "no" ; then
8517 PKG_CONFIG_MIN_VERSION
=0.9.0
8518 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8520 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8522 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8524 $as_echo "yes" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8528 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8529 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8531 $as_echo "$GCONF_CFLAGS" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8534 $as_echo_n "checking GCONF_LIBS... " >&6; }
8535 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8537 $as_echo "$GCONF_LIBS" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8543 ## If we have a custom action on failure, don't print errors, but
8544 ## do set a variable so people can do so.
8545 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8557 if test $succeeded = yes; then
8563 if test "$HAVE_GCONF" = yes; then
8565 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8571 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8572 if test "$with_xaw3d" != no
; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8574 $as_echo_n "checking for xaw3d... " >&6; }
8575 if test "${emacs_cv_xaw3d+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 #include <X11/Intrinsic.h>
8582 #include <X11/Xaw3d/Simple.h>
8591 if ac_fn_c_try_link
"$LINENO"; then :
8596 rm -f core conftest.err conftest.
$ac_objext \
8597 conftest
$ac_exeext conftest.
$ac_ext
8603 if test $emacs_cv_xaw3d = yes; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8605 $as_echo "yes; using Lucid toolkit" >&6; }
8609 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8615 $as_echo_n "checking for libXaw... " >&6; }
8616 if test "${emacs_cv_xaw+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8622 #include <X11/Intrinsic.h>
8623 #include <X11/Xaw/Simple.h>
8632 if ac_fn_c_try_link
"$LINENO"; then :
8637 rm -f core conftest.err conftest.
$ac_objext \
8638 conftest
$ac_exeext conftest.
$ac_ext
8641 if test $emacs_cv_xaw = yes; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8643 $as_echo "yes; using Lucid toolkit" >&6; }
8645 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8646 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8649 $as_echo "no; do not use toolkit by default" >&6; }
8655 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8657 if test "${USE_X_TOOLKIT}" != "none"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8659 $as_echo_n "checking X11 toolkit version... " >&6; }
8660 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #include <X11/Intrinsic.h>
8669 #if XtSpecificationRelease < 6
8677 if ac_fn_c_try_link
"$LINENO"; then :
8678 emacs_cv_x11_toolkit_version_6
=yes
8680 emacs_cv_x11_toolkit_version_6
=no
8682 rm -f core conftest.err conftest.
$ac_objext \
8683 conftest
$ac_exeext conftest.
$ac_ext
8686 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8687 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8689 $as_echo "6 or newer" >&6; }
8691 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8695 $as_echo "before 6" >&6; }
8699 if test x
$HAVE_X11XTR6 = xyes
; then
8700 LIBS
="-lXt -lSM -lICE $LIBS"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8705 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8706 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8709 ac_check_lib_save_LIBS
=$LIBS
8711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8720 char XmuConvertStandardSelection ();
8724 return XmuConvertStandardSelection ();
8729 if ac_fn_c_try_link
"$LINENO"; then :
8730 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8732 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8734 rm -f core conftest.err conftest.
$ac_objext \
8735 conftest
$ac_exeext conftest.
$ac_ext
8736 LIBS
=$ac_check_lib_save_LIBS
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8739 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8740 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
8741 cat >>confdefs.h
<<_ACEOF
8742 #define HAVE_LIBXMU 1
8749 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8752 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8753 if test "${HAVE_X11}" = "yes"; then
8754 if test "${USE_X_TOOLKIT}" != "none"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8756 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8757 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8760 ac_check_lib_save_LIBS
=$LIBS
8762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8765 /* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
8771 char XShapeQueryExtension ();
8775 return XShapeQueryExtension ();
8780 if ac_fn_c_try_link
"$LINENO"; then :
8781 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8783 ac_cv_lib_Xext_XShapeQueryExtension
=no
8785 rm -f core conftest.err conftest.
$ac_objext \
8786 conftest
$ac_exeext conftest.
$ac_ext
8787 LIBS
=$ac_check_lib_save_LIBS
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8790 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8791 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
8792 cat >>confdefs.h
<<_ACEOF
8793 #define HAVE_LIBXEXT 1
8803 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8805 $as_echo_n "checking for Motif version 2.1... " >&6; }
8806 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8815 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8818 Motif version prior to 2.1.
8824 if ac_fn_c_try_compile
"$LINENO"; then :
8825 emacs_cv_motif_version_2_1
=yes
8827 emacs_cv_motif_version_2_1
=no
8829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8832 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8833 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8834 if test $emacs_cv_motif_version_2_1 = yes; then
8837 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8840 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8841 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8844 ac_check_lib_save_LIBS
=$LIBS
8846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8855 char XpCreateContext ();
8859 return XpCreateContext ();
8864 if ac_fn_c_try_link
"$LINENO"; then :
8865 ac_cv_lib_Xp_XpCreateContext
=yes
8867 ac_cv_lib_Xp_XpCreateContext
=no
8869 rm -f core conftest.err conftest.
$ac_objext \
8870 conftest
$ac_exeext conftest.
$ac_ext
8871 LIBS
=$ac_check_lib_save_LIBS
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8874 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8875 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
8879 if test ${HAVE_LIBXP} = yes; then
8881 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8886 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8887 if test "${emacs_cv_lesstif+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8890 # We put this in CFLAGS temporarily to precede other -I options
8891 # that might be in CFLAGS temporarily.
8892 # We put this in CPPFLAGS where it precedes the other -I options.
8893 OLD_CPPFLAGS
=$CPPFLAGS
8895 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8896 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8908 if ac_fn_c_try_compile
"$LINENO"; then :
8909 emacs_cv_lesstif
=yes
8913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8916 $as_echo "$emacs_cv_lesstif" >&6; }
8917 if test $emacs_cv_lesstif = yes; then
8918 # Make sure this -I option remains in CPPFLAGS after it is set
8919 # back to REAL_CPPFLAGS.
8920 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8921 # have those other -I options anyway. Ultimately, having this
8922 # directory ultimately in CPPFLAGS will be enough.
8923 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8924 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8927 CPPFLAGS
=$OLD_CPPFLAGS
8933 USE_TOOLKIT_SCROLL_BARS
=no
8934 if test "${with_toolkit_scroll_bars}" != "no"; then
8935 if test "${USE_X_TOOLKIT}" != "none"; then
8936 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8937 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8940 USE_TOOLKIT_SCROLL_BARS
=yes
8941 elif test "${HAVE_XAW3D}" = "yes"; then
8942 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8944 USE_TOOLKIT_SCROLL_BARS
=yes
8946 elif test "${HAVE_GTK}" = "yes"; then
8947 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8949 USE_TOOLKIT_SCROLL_BARS
=yes
8950 elif test "${HAVE_NS}" = "yes"; then
8951 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8953 USE_TOOLKIT_SCROLL_BARS
=yes
8957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8960 #include <X11/Xlib.h>
8961 #include <X11/Xresource.h>
8970 if ac_fn_c_try_compile
"$LINENO"; then :
8973 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8981 if test "${with_xim}" != "no"; then
8983 $as_echo "#define USE_XIM 1" >>confdefs.h
8988 if test "${HAVE_XIM}" != "no"; then
8990 if test "$GCC" = yes; then
8991 CFLAGS
="$CFLAGS --pedantic-errors"
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8996 #include <X11/Xlib.h>
8997 #include <X11/Xresource.h>
9006 XPointer *client_data;
9008 /* If we're not using GCC, it's probably not XFree86, and this is
9009 probably right, but we can't use something like --pedantic-errors. */
9010 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9011 char*, XIMProc, XPointer*);
9013 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9019 if ac_fn_c_try_compile
"$LINENO"; then :
9020 emacs_cv_arg6_star
=yes
9022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9023 if test "$emacs_cv_arg6_star" = yes; then
9024 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9027 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9033 ### Start of font-backend (under any platform) section.
9034 # (nothing here yet -- this is a placeholder)
9035 ### End of font-backend (under any platform) section.
9037 ### Start of font-backend (under X11) section.
9038 if test "${HAVE_X11}" = "yes"; then
9042 # Extract the first word of "pkg-config", so it can be a program name with args.
9043 set dummy pkg-config
; ac_word
=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9051 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9058 test -z "$as_dir" && as_dir
=.
9059 for ac_exec_ext
in '' $ac_executable_extensions; do
9060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9061 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9073 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9074 if test -n "$PKG_CONFIG"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9076 $as_echo "$PKG_CONFIG" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9084 if test "$PKG_CONFIG" = "no" ; then
9087 PKG_CONFIG_MIN_VERSION
=0.9.0
9088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9090 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9092 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9094 $as_echo "yes" >&6; }
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9098 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9099 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9101 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9104 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9105 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9107 $as_echo "$FONTCONFIG_LIBS" >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 FONTCONFIG_CFLAGS
=""
9113 ## If we have a custom action on failure, don't print errors, but
9114 ## do set a variable so people can do so.
9115 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9127 if test $succeeded = yes; then
9134 ## Use -lXft if available, unless `--with-xft=no'.
9136 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9139 if test "x${with_xft}" != "xno"; then
9144 # Extract the first word of "pkg-config", so it can be a program name with args.
9145 set dummy pkg-config
; ac_word
=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9153 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir
=.
9161 for ac_exec_ext
in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9175 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9176 if test -n "$PKG_CONFIG"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9178 $as_echo "$PKG_CONFIG" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test "$PKG_CONFIG" = "no" ; then
9189 PKG_CONFIG_MIN_VERSION
=0.9.0
9190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9192 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9194 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9196 $as_echo "yes" >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9200 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9201 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9203 $as_echo "$XFT_CFLAGS" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9206 $as_echo_n "checking XFT_LIBS... " >&6; }
9207 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9209 $as_echo "$XFT_LIBS" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9215 ## If we have a custom action on failure, don't print errors, but
9216 ## do set a variable so people can do so.
9217 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9229 if test $succeeded = yes; then
9235 ## Because xftfont.c uses XRenderQueryExtension, we also
9236 ## need to link to -lXrender.
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9239 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9240 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9243 ac_check_lib_save_LIBS
=$LIBS
9244 LIBS
="-lXrender $LIBS"
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9254 char XRenderQueryExtension ();
9258 return XRenderQueryExtension ();
9263 if ac_fn_c_try_link
"$LINENO"; then :
9264 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9266 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9268 rm -f core conftest.err conftest.
$ac_objext \
9269 conftest
$ac_exeext conftest.
$ac_ext
9270 LIBS
=$ac_check_lib_save_LIBS
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9273 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9274 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9278 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9279 OLD_CPPFLAGS
="$CPPFLAGS"
9280 OLD_CFLAGS
="$CFLAGS"
9282 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9283 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9284 XFT_LIBS
="-lXrender $XFT_LIBS"
9285 LIBS
="$XFT_LIBS $LIBS"
9286 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9287 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9289 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9290 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9293 ac_check_lib_save_LIBS
=$LIBS
9294 LIBS
="-lXft $XFT_LIBS $LIBS"
9295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9304 char XftFontOpen ();
9308 return XftFontOpen ();
9313 if ac_fn_c_try_link
"$LINENO"; then :
9314 ac_cv_lib_Xft_XftFontOpen
=yes
9316 ac_cv_lib_Xft_XftFontOpen
=no
9318 rm -f core conftest.err conftest.
$ac_objext \
9319 conftest
$ac_exeext conftest.
$ac_ext
9320 LIBS
=$ac_check_lib_save_LIBS
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9323 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9324 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9332 if test "${HAVE_XFT}" = "yes"; then
9334 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9337 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9339 CPPFLAGS
="$OLD_CPPFLAGS"
9340 CFLAGS
="$OLD_CFLAGS"
9342 fi # "${HAVE_XFT}" = "yes"
9343 fi # "$HAVE_XFT" != no
9344 fi # "x${with_xft}" != "xno"
9346 if test "$HAVE_XFT" != "yes"; then
9352 ## We used to allow building with FreeType and without Xft.
9353 ## However, the ftx font backend driver is not in good shape.
9354 if test "${HAVE_XFT}" = "yes"; then
9361 if test "${HAVE_FREETYPE}" = "yes"; then
9363 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9365 if test "${with_libotf}" != "no"; then
9369 # Extract the first word of "pkg-config", so it can be a program name with args.
9370 set dummy pkg-config
; ac_word
=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9378 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9385 test -z "$as_dir" && as_dir
=.
9386 for ac_exec_ext
in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9400 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9401 if test -n "$PKG_CONFIG"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9403 $as_echo "$PKG_CONFIG" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9411 if test "$PKG_CONFIG" = "no" ; then
9414 PKG_CONFIG_MIN_VERSION
=0.9.0
9415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9417 $as_echo_n "checking for libotf... " >&6; }
9419 if $PKG_CONFIG --exists "libotf" 2>&5; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421 $as_echo "yes" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9425 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9426 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9428 $as_echo "$LIBOTF_CFLAGS" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9431 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9432 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9434 $as_echo "$LIBOTF_LIBS" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9440 ## If we have a custom action on failure, don't print errors, but
9441 ## do set a variable so people can do so.
9442 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9454 if test $succeeded = yes; then
9460 if test "$HAVE_LIBOTF" = "yes"; then
9462 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9465 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9466 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 ac_check_lib_save_LIBS
=$LIBS
9471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9480 char OTF_get_variation_glyphs ();
9484 return OTF_get_variation_glyphs ();
9489 if ac_fn_c_try_link
"$LINENO"; then :
9490 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9492 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9494 rm -f core conftest.err conftest.
$ac_objext \
9495 conftest
$ac_exeext conftest.
$ac_ext
9496 LIBS
=$ac_check_lib_save_LIBS
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9499 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9500 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9501 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9503 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9506 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9508 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9516 if test "${HAVE_LIBOTF}" = yes; then
9517 if test "${with_m17n_flt}" != "no"; then
9521 # Extract the first word of "pkg-config", so it can be a program name with args.
9522 set dummy pkg-config
; ac_word
=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9530 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir
=.
9538 for ac_exec_ext
in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9552 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9553 if test -n "$PKG_CONFIG"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9555 $as_echo "$PKG_CONFIG" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 if test "$PKG_CONFIG" = "no" ; then
9566 PKG_CONFIG_MIN_VERSION
=0.9.0
9567 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9569 $as_echo_n "checking for m17n-flt... " >&6; }
9571 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9573 $as_echo "yes" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9577 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9578 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9580 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9583 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9584 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9586 $as_echo "$M17N_FLT_LIBS" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9592 ## If we have a custom action on failure, don't print errors, but
9593 ## do set a variable so people can do so.
9594 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9601 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9602 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9606 if test $succeeded = yes; then
9612 if test "$HAVE_M17N_FLT" = "yes"; then
9614 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9625 ### End of font-backend (under X11) section.
9636 ### Use -lXpm if available, unless `--with-xpm=no'.
9638 if test "${HAVE_X11}" = "yes"; then
9639 if test "${with_xpm}" != "no"; then
9640 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9641 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9643 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9644 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9647 ac_check_lib_save_LIBS
=$LIBS
9648 LIBS
="-lXpm -lX11 $LIBS"
9649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9658 char XpmReadFileToPixmap ();
9662 return XpmReadFileToPixmap ();
9667 if ac_fn_c_try_link
"$LINENO"; then :
9668 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9670 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9672 rm -f core conftest.err conftest.
$ac_objext \
9673 conftest
$ac_exeext conftest.
$ac_ext
9674 LIBS
=$ac_check_lib_save_LIBS
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9677 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9678 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9685 if test "${HAVE_XPM}" = "yes"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9687 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 #include "X11/xpm.h"
9691 #ifndef XpmReturnAllocPixels
9692 no_return_alloc_pixels
9696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9697 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
9705 if test "${HAVE_XPM}" = "yes"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707 $as_echo "yes" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test "${HAVE_XPM}" = "yes"; then
9717 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9722 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9724 if test "${HAVE_X11}" = "yes"; then
9725 if test "${with_jpeg}" != "no"; then
9726 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9727 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9729 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9730 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9731 $as_echo_n "(cached) " >&6
9733 ac_check_lib_save_LIBS
=$LIBS
9735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9744 char jpeg_destroy_compress ();
9748 return jpeg_destroy_compress ();
9753 if ac_fn_c_try_link
"$LINENO"; then :
9754 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9756 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9758 rm -f core conftest.err conftest.
$ac_objext \
9759 conftest
$ac_exeext conftest.
$ac_ext
9760 LIBS
=$ac_check_lib_save_LIBS
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9763 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9764 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
9773 if test "${HAVE_JPEG}" = "yes"; then
9774 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #include <jpeglib.h>
9779 version=JPEG_LIB_VERSION
9782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9783 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
9784 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9788 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9796 ### Use -lpng if available, unless `--with-png=no'.
9798 if test "${HAVE_X11}" = "yes"; then
9799 if test "${with_png}" != "no"; then
9800 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9801 # in /usr/include/libpng.
9802 for ac_header
in png.h libpng
/png.h
9804 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9805 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9806 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9807 cat >>confdefs.h
<<_ACEOF
9808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9815 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9817 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9818 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9821 ac_check_lib_save_LIBS
=$LIBS
9822 LIBS
="-lpng -lz -lm $LIBS"
9823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9832 char png_get_channels ();
9836 return png_get_channels ();
9841 if ac_fn_c_try_link
"$LINENO"; then :
9842 ac_cv_lib_png_png_get_channels
=yes
9844 ac_cv_lib_png_png_get_channels
=no
9846 rm -f core conftest.err conftest.
$ac_objext \
9847 conftest
$ac_exeext conftest.
$ac_ext
9848 LIBS
=$ac_check_lib_save_LIBS
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9851 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9852 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
9859 if test "${HAVE_PNG}" = "yes"; then
9861 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9866 ### Use -ltiff if available, unless `--with-tiff=no'.
9868 if test "${HAVE_X11}" = "yes"; then
9869 if test "${with_tiff}" != "no"; then
9870 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9871 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
9873 # At least one tiff package requires the jpeg library.
9874 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9876 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9877 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9880 ac_check_lib_save_LIBS
=$LIBS
9881 LIBS
="-ltiff $tifflibs $LIBS"
9882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9891 char TIFFGetVersion ();
9895 return TIFFGetVersion ();
9900 if ac_fn_c_try_link
"$LINENO"; then :
9901 ac_cv_lib_tiff_TIFFGetVersion
=yes
9903 ac_cv_lib_tiff_TIFFGetVersion
=no
9905 rm -f core conftest.err conftest.
$ac_objext \
9906 conftest
$ac_exeext conftest.
$ac_ext
9907 LIBS
=$ac_check_lib_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9910 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9911 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
9920 if test "${HAVE_TIFF}" = "yes"; then
9922 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9927 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9929 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9930 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9931 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
9932 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9933 # Earlier versions can crash Emacs.
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9935 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9936 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9939 ac_check_lib_save_LIBS
=$LIBS
9941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9950 char EGifPutExtensionLast ();
9954 return EGifPutExtensionLast ();
9959 if ac_fn_c_try_link
"$LINENO"; then :
9960 ac_cv_lib_gif_EGifPutExtensionLast
=yes
9962 ac_cv_lib_gif_EGifPutExtensionLast
=no
9964 rm -f core conftest.err conftest.
$ac_objext \
9965 conftest
$ac_exeext conftest.
$ac_ext
9966 LIBS
=$ac_check_lib_save_LIBS
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9969 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9970 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
9980 if test "$HAVE_GIF" = yes; then
9981 ac_gif_lib_name
="-lgif"
9984 # If gif_lib.h but no libgif, try libungif.
9985 if test x
"$try_libungif" = xyes
; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9987 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9988 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9991 ac_check_lib_save_LIBS
=$LIBS
9992 LIBS
="-lungif $LIBS"
9993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
10002 char EGifPutExtensionLast ();
10006 return EGifPutExtensionLast ();
10011 if ac_fn_c_try_link
"$LINENO"; then :
10012 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10014 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10016 rm -f core conftest.err conftest.
$ac_objext \
10017 conftest
$ac_exeext conftest.
$ac_ext
10018 LIBS
=$ac_check_lib_save_LIBS
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10021 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10022 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10027 if test "$HAVE_GIF" = yes; then
10029 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10031 ac_gif_lib_name
="-lungif"
10035 if test "${HAVE_GIF}" = "yes"; then
10037 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10042 if test "${HAVE_X11}" = "yes"; then
10045 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10046 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10047 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10048 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10049 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10050 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10051 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10052 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10053 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10054 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10056 if test "X${MISSING}" != X
; then
10057 as_fn_error $?
"The following required libraries were not found:
10059 Maybe some development libraries/packages are missing?
10060 If you don't want to link with them give
10062 as options to configure" "$LINENO" 5
10066 ### Use -lgpm if available, unless `--with-gpm=no'.
10068 if test "${with_gpm}" != "no"; then
10069 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10070 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10072 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10073 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10076 ac_check_lib_save_LIBS
=$LIBS
10078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10091 return Gpm_Open ();
10096 if ac_fn_c_try_link
"$LINENO"; then :
10097 ac_cv_lib_gpm_Gpm_Open
=yes
10099 ac_cv_lib_gpm_Gpm_Open
=no
10101 rm -f core conftest.err conftest.
$ac_objext \
10102 conftest
$ac_exeext conftest.
$ac_ext
10103 LIBS
=$ac_check_lib_save_LIBS
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10106 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10107 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10116 if test "${HAVE_GPM}" = "yes"; then
10118 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10122 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10123 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10125 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10131 ### Use NeXTstep API to implement GUI.
10132 if test "${HAVE_NS}" = "yes"; then
10134 $as_echo "#define HAVE_NS 1" >>confdefs.h
10136 if test "${NS_IMPL_COCOA}" = "yes"; then
10138 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10142 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10144 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10146 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10148 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10150 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10153 # We also have mouse menus.
10159 ### Use session management (-lSM -lICE) if available
10161 if test "${HAVE_X11}" = "yes"; then
10162 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10163 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10165 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10166 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10169 ac_check_lib_save_LIBS
=$LIBS
10170 LIBS
="-lSM -lICE $LIBS"
10171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10180 char SmcOpenConnection ();
10184 return SmcOpenConnection ();
10189 if ac_fn_c_try_link
"$LINENO"; then :
10190 ac_cv_lib_SM_SmcOpenConnection
=yes
10192 ac_cv_lib_SM_SmcOpenConnection
=no
10194 rm -f core conftest.err conftest.
$ac_objext \
10195 conftest
$ac_exeext conftest.
$ac_ext
10196 LIBS
=$ac_check_lib_save_LIBS
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10199 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10200 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10208 if test "${HAVE_X_SM}" = "yes"; then
10210 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10214 *) LIBS
="-lSM -lICE $LIBS" ;;
10219 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10221 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10222 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10236 if ac_fn_c_try_link
"$LINENO"; then :
10237 emacs_cv_netdb_declares_h_errno
=yes
10239 emacs_cv_netdb_declares_h_errno
=no
10241 rm -f core conftest.err conftest.
$ac_objext \
10242 conftest
$ac_exeext conftest.
$ac_ext
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10245 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10246 if test $emacs_cv_netdb_declares_h_errno = yes; then
10248 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10252 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10253 # for constant arguments. Useless!
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10255 $as_echo_n "checking for working alloca.h... " >&6; }
10256 if test "${ac_cv_working_alloca_h+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 #include <alloca.h>
10265 char *p = (char *) alloca (2 * sizeof (int));
10271 if ac_fn_c_try_link
"$LINENO"; then :
10272 ac_cv_working_alloca_h
=yes
10274 ac_cv_working_alloca_h
=no
10276 rm -f core conftest.err conftest.
$ac_objext \
10277 conftest
$ac_exeext conftest.
$ac_ext
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10280 $as_echo "$ac_cv_working_alloca_h" >&6; }
10281 if test $ac_cv_working_alloca_h = yes; then
10283 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10288 $as_echo_n "checking for alloca... " >&6; }
10289 if test "${ac_cv_func_alloca_works+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10295 # define alloca __builtin_alloca
10298 # include <malloc.h>
10299 # define alloca _alloca
10301 # ifdef HAVE_ALLOCA_H
10302 # include <alloca.h>
10307 # ifndef alloca /* predefined by HP cc +Olibcalls */
10318 char *p = (char *) alloca (1);
10324 if ac_fn_c_try_link
"$LINENO"; then :
10325 ac_cv_func_alloca_works
=yes
10327 ac_cv_func_alloca_works
=no
10329 rm -f core conftest.err conftest.
$ac_objext \
10330 conftest
$ac_exeext conftest.
$ac_ext
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10333 $as_echo "$ac_cv_func_alloca_works" >&6; }
10335 if test $ac_cv_func_alloca_works = yes; then
10337 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10341 # that cause trouble. Some versions do not even contain alloca or
10342 # contain a buggy version. If you still want to use their alloca,
10343 # use ar to extract alloca.o from them instead of compiling alloca.c.
10345 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10347 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10351 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10352 if test "${ac_cv_os_cray+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 #if defined CRAY && ! defined CRAY2
10364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10365 $EGREP "webecray" >/dev
/null
2>&1; then :
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10374 $as_echo "$ac_cv_os_cray" >&6; }
10375 if test $ac_cv_os_cray = yes; then
10376 for ac_func
in _getb67 GETB67 getb67
; do
10377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10379 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10381 cat >>confdefs.h
<<_ACEOF
10382 #define CRAY_STACKSEG_END $ac_func
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10392 $as_echo_n "checking stack direction for C alloca... " >&6; }
10393 if test "${ac_cv_c_stack_direction+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10396 if test "$cross_compiling" = yes; then :
10397 ac_cv_c_stack_direction
=0
10399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401 $ac_includes_default
10403 find_stack_direction ()
10405 static char *addr = 0;
10410 return find_stack_direction ();
10413 return (&dummy > addr) ? 1 : -1;
10419 return find_stack_direction () < 0;
10422 if ac_fn_c_try_run
"$LINENO"; then :
10423 ac_cv_c_stack_direction
=1
10425 ac_cv_c_stack_direction
=-1
10427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10433 $as_echo "$ac_cv_c_stack_direction" >&6; }
10434 cat >>confdefs.h
<<_ACEOF
10435 #define STACK_DIRECTION $ac_cv_c_stack_direction
10442 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10443 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
10446 # fmod, logb, and frexp are found in -lm on most systems.
10447 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10449 $as_echo_n "checking for sqrt in -lm... " >&6; }
10450 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10453 ac_check_lib_save_LIBS
=$LIBS
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10473 if ac_fn_c_try_link
"$LINENO"; then :
10474 ac_cv_lib_m_sqrt
=yes
10476 ac_cv_lib_m_sqrt
=no
10478 rm -f core conftest.err conftest.
$ac_objext \
10479 conftest
$ac_exeext conftest.
$ac_ext
10480 LIBS
=$ac_check_lib_save_LIBS
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10483 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10484 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10485 cat >>confdefs.h
<<_ACEOF
10486 #define HAVE_LIBM 1
10494 # Check for mail-locking functions in a "mail" library. Probably this should
10495 # have the same check as for liblockfile below.
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10497 $as_echo_n "checking for maillock in -lmail... " >&6; }
10498 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10501 ac_check_lib_save_LIBS
=$LIBS
10502 LIBS
="-lmail $LIBS"
10503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10516 return maillock ();
10521 if ac_fn_c_try_link
"$LINENO"; then :
10522 ac_cv_lib_mail_maillock
=yes
10524 ac_cv_lib_mail_maillock
=no
10526 rm -f core conftest.err conftest.
$ac_objext \
10527 conftest
$ac_exeext conftest.
$ac_ext
10528 LIBS
=$ac_check_lib_save_LIBS
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10531 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10532 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10533 cat >>confdefs.h
<<_ACEOF
10534 #define HAVE_LIBMAIL 1
10537 LIBS
="-lmail $LIBS"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10542 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10543 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10546 ac_check_lib_save_LIBS
=$LIBS
10547 LIBS
="-llockfile $LIBS"
10548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10561 return maillock ();
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 ac_cv_lib_lockfile_maillock
=yes
10569 ac_cv_lib_lockfile_maillock
=no
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 LIBS
=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10576 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10577 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10578 cat >>confdefs.h
<<_ACEOF
10579 #define HAVE_LIBLOCKFILE 1
10582 LIBS
="-llockfile $LIBS"
10586 # If we have the shared liblockfile, assume we must use it for mail
10587 # locking (e.g. Debian). If we couldn't link against liblockfile
10588 # (no liblockfile.a installed), ensure that we don't need to.
10589 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10590 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10591 set dummy liblockfile.so
; ac_word
=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10597 if test -n "$liblockfile"; then
10598 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10601 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10602 for as_dir
in $as_dummy
10605 test -z "$as_dir" && as_dir
=.
10606 for ac_exec_ext
in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_prog_liblockfile
="yes"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10619 liblockfile
=$ac_cv_prog_liblockfile
10620 if test -n "$liblockfile"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10622 $as_echo "$liblockfile" >&6; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10629 if test $ac_cv_prog_liblockfile = yes; then
10630 as_fn_error $?
"Shared liblockfile found but can't link against it.
10631 This probably means that movemail could lose mail.
10632 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10636 for ac_func
in touchlock
10638 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10639 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10640 cat >>confdefs.h
<<_ACEOF
10641 #define HAVE_TOUCHLOCK 1
10647 for ac_header
in maillock.h
10649 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10650 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10651 cat >>confdefs.h
<<_ACEOF
10652 #define HAVE_MAILLOCK_H 1
10660 for ac_func
in gethostname getdomainname dup2 \
10661 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
10662 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10663 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10664 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10665 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10666 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10667 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10668 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10669 cfmakeraw cfsetspeed
10671 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10673 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10674 cat >>confdefs.h
<<_ACEOF
10675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10682 for ac_header
in sys
/un.h
10684 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10685 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
10686 cat >>confdefs.h
<<_ACEOF
10687 #define HAVE_SYS_UN_H 1
10700 for ac_func
in $ac_func_list
10702 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10703 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10704 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10705 cat >>confdefs.h
<<_ACEOF
10706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10717 $as_echo_n "checking for working mktime... " >&6; }
10718 if test "${ac_cv_func_working_mktime+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10721 if test "$cross_compiling" = yes; then :
10722 ac_cv_func_working_mktime
=no
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 /* Test program from Paul Eggert and Tony Leneis. */
10727 #ifdef TIME_WITH_SYS_TIME
10728 # include <sys/time.h>
10731 # ifdef HAVE_SYS_TIME_H
10732 # include <sys/time.h>
10738 #include <limits.h>
10739 #include <stdlib.h>
10741 #ifdef HAVE_UNISTD_H
10742 # include <unistd.h>
10746 # define alarm(X) /* empty */
10749 /* Work around redefinition to rpl_putenv by other config tests. */
10752 static time_t time_t_max;
10753 static time_t time_t_min;
10755 /* Values we'll use to set the TZ environment variable. */
10756 static const char *tz_strings[] = {
10757 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10758 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10760 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10762 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10763 Based on a problem report from Andreas Jaeger. */
10765 spring_forward_gap ()
10767 /* glibc (up to about 1998-10-07) failed this test. */
10770 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10771 instead of "TZ=America/Vancouver" in order to detect the bug even
10772 on systems that don't support the Olson extension, or don't have the
10773 full zoneinfo tables installed. */
10774 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10783 return mktime (&tm) != (time_t) -1;
10787 mktime_test1 (time_t now)
10790 return ! (lt = localtime (&now)) || mktime (lt) == now;
10794 mktime_test (time_t now)
10796 return (mktime_test1 (now)
10797 && mktime_test1 ((time_t) (time_t_max - now))
10798 && mktime_test1 ((time_t) (time_t_min + now)));
10804 /* Based on code from Ariel Faigon. */
10814 return tm.tm_mon == 2 && tm.tm_mday == 31;
10818 bigtime_test (int j)
10822 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10823 now = mktime (&tm);
10824 if (now != (time_t) -1)
10826 struct tm *lt = localtime (&now);
10828 && lt->tm_year == tm.tm_year
10829 && lt->tm_mon == tm.tm_mon
10830 && lt->tm_mday == tm.tm_mday
10831 && lt->tm_hour == tm.tm_hour
10832 && lt->tm_min == tm.tm_min
10833 && lt->tm_sec == tm.tm_sec
10834 && lt->tm_yday == tm.tm_yday
10835 && lt->tm_wday == tm.tm_wday
10836 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10837 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10846 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10847 ignoring leap seconds. */
10848 unsigned long int answer = 2527315200UL;
10852 tm.tm_year = 2050 - 1900;
10855 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10858 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10859 instead of "TZ=America/Vancouver" in order to detect the bug even
10860 on systems that don't support the Olson extension, or don't have the
10861 full zoneinfo tables installed. */
10862 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10866 /* Check that the result is either a failure, or close enough
10867 to the correct answer that we can assume the discrepancy is
10868 due to leap seconds. */
10869 return (t == (time_t) -1
10870 || (0 < t && answer - 120 <= t && t <= answer + 120));
10879 /* This test makes some buggy mktime implementations loop.
10880 Give up after 60 seconds; a mktime slower than that
10881 isn't worth using anyway. */
10886 t = (time_t_max << 1) + 1;
10887 if (t <= time_t_max)
10891 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10893 delta = time_t_max / 997; /* a suitable prime number */
10894 for (i = 0; i < N_STRINGS; i++)
10897 putenv ((char*) tz_strings[i]);
10899 for (t = 0; t <= time_t_max - delta; t += delta)
10900 if (! mktime_test (t))
10902 if (! (mktime_test ((time_t) 1)
10903 && mktime_test ((time_t) (60 * 60))
10904 && mktime_test ((time_t) (60 * 60 * 24))))
10907 for (j = 1; ; j <<= 1)
10908 if (! bigtime_test (j))
10910 else if (INT_MAX / 2 < j)
10912 if (! bigtime_test (INT_MAX))
10915 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10918 if ac_fn_c_try_run
"$LINENO"; then :
10919 ac_cv_func_working_mktime
=yes
10921 ac_cv_func_working_mktime
=no
10923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10929 $as_echo "$ac_cv_func_working_mktime" >&6; }
10930 if test $ac_cv_func_working_mktime = no
; then
10931 case " $LIBOBJS " in
10932 *" mktime.$ac_objext "* ) ;;
10933 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10939 if test "$ac_cv_func_working_mktime" = no
; then
10941 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10945 ac_have_func
=no
# yes means we've found a way to get the load average.
10947 # Make sure getloadavg.c is where it belongs, at configure-time.
10948 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10949 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10953 # Check for getloadavg, but be sure not to touch the cache variable.
10954 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10955 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
10960 ) && ac_have_func
=yes
10962 # On HPUX9, an unprivileged user can get load averages through this function.
10963 for ac_func
in pstat_getdynamic
10965 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10966 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
10967 cat >>confdefs.h
<<_ACEOF
10968 #define HAVE_PSTAT_GETDYNAMIC 1
10975 # Solaris has libkstat which does not require root.
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10977 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10978 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS
=$LIBS
10982 LIBS
="-lkstat $LIBS"
10983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10992 char kstat_open ();
10996 return kstat_open ();
11001 if ac_fn_c_try_link
"$LINENO"; then :
11002 ac_cv_lib_kstat_kstat_open
=yes
11004 ac_cv_lib_kstat_kstat_open
=no
11006 rm -f core conftest.err conftest.
$ac_objext \
11007 conftest
$ac_exeext conftest.
$ac_ext
11008 LIBS
=$ac_check_lib_save_LIBS
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11011 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11012 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11013 cat >>confdefs.h
<<_ACEOF
11014 #define HAVE_LIBKSTAT 1
11017 LIBS
="-lkstat $LIBS"
11021 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11023 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11024 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11025 # to get the right answer into the cache.
11026 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11027 if test $ac_have_func = no
; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11029 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11030 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11033 ac_check_lib_save_LIBS
=$LIBS
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11048 return elf_begin ();
11053 if ac_fn_c_try_link
"$LINENO"; then :
11054 ac_cv_lib_elf_elf_begin
=yes
11056 ac_cv_lib_elf_elf_begin
=no
11058 rm -f core conftest.err conftest.
$ac_objext \
11059 conftest
$ac_exeext conftest.
$ac_ext
11060 LIBS
=$ac_check_lib_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11063 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11064 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11069 if test $ac_have_func = no
; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11071 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11072 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11075 ac_check_lib_save_LIBS
=$LIBS
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11090 return kvm_open ();
11095 if ac_fn_c_try_link
"$LINENO"; then :
11096 ac_cv_lib_kvm_kvm_open
=yes
11098 ac_cv_lib_kvm_kvm_open
=no
11100 rm -f core conftest.err conftest.
$ac_objext \
11101 conftest
$ac_exeext conftest.
$ac_ext
11102 LIBS
=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11105 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11106 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11110 # Check for the 4.4BSD definition of getloadavg.
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11112 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11113 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11116 ac_check_lib_save_LIBS
=$LIBS
11117 LIBS
="-lutil $LIBS"
11118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11127 char getloadavg ();
11131 return getloadavg ();
11136 if ac_fn_c_try_link
"$LINENO"; then :
11137 ac_cv_lib_util_getloadavg
=yes
11139 ac_cv_lib_util_getloadavg
=no
11141 rm -f core conftest.err conftest.
$ac_objext \
11142 conftest
$ac_exeext conftest.
$ac_ext
11143 LIBS
=$ac_check_lib_save_LIBS
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11146 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11147 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11148 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11153 if test $ac_have_func = no
; then
11154 # There is a commonly available library for RS/6000 AIX.
11155 # Since it is not a standard part of AIX, it might be installed locally.
11156 ac_getloadavg_LIBS
=$LIBS
11157 LIBS
="-L/usr/local/lib $LIBS"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11159 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11160 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11161 $as_echo_n "(cached) " >&6
11163 ac_check_lib_save_LIBS
=$LIBS
11164 LIBS
="-lgetloadavg $LIBS"
11165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11168 /* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11174 char getloadavg ();
11178 return getloadavg ();
11183 if ac_fn_c_try_link
"$LINENO"; then :
11184 ac_cv_lib_getloadavg_getloadavg
=yes
11186 ac_cv_lib_getloadavg_getloadavg
=no
11188 rm -f core conftest.err conftest.
$ac_objext \
11189 conftest
$ac_exeext conftest.
$ac_ext
11190 LIBS
=$ac_check_lib_save_LIBS
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11193 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11194 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11195 LIBS
="-lgetloadavg $LIBS"
11197 LIBS
=$ac_getloadavg_LIBS
11202 # Make sure it is really in the library, if we think we found it,
11203 # otherwise set up the replacement function.
11204 for ac_func
in getloadavg
11206 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11207 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11208 cat >>confdefs.h
<<_ACEOF
11209 #define HAVE_GETLOADAVG 1
11213 case " $LIBOBJS " in
11214 *" getloadavg.$ac_objext "* ) ;;
11215 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11220 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11222 # Figure out what our getloadavg.c needs.
11224 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11228 $as_echo "#define DGUX 1" >>confdefs.h
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11231 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11232 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 ac_check_lib_save_LIBS
=$LIBS
11237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11246 char dg_sys_info ();
11250 return dg_sys_info ();
11255 if ac_fn_c_try_link
"$LINENO"; then :
11256 ac_cv_lib_dgc_dg_sys_info
=yes
11258 ac_cv_lib_dgc_dg_sys_info
=no
11260 rm -f core conftest.err conftest.
$ac_objext \
11261 conftest
$ac_exeext conftest.
$ac_ext
11262 LIBS
=$ac_check_lib_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11265 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11266 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11267 cat >>confdefs.h
<<_ACEOF
11268 #define HAVE_LIBDGC 1
11279 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11280 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11285 for ac_func
in setlocale
11287 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11288 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11289 cat >>confdefs.h
<<_ACEOF
11290 #define HAVE_SETLOCALE 1
11297 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11298 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11299 # Irix 4.0.5F has the header but not the library.
11300 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11303 $as_echo "#define SVR4 1" >>confdefs.h
11307 if test $ac_have_func = no
; then
11308 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11309 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11312 $as_echo "#define UMAX 1" >>confdefs.h
11315 $as_echo "#define UMAX4_3 1" >>confdefs.h
11322 if test $ac_have_func = no
; then
11323 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11324 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11325 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11332 if test $ac_have_func = no
; then
11333 for ac_header
in mach
/mach.h
11335 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11336 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11337 cat >>confdefs.h
<<_ACEOF
11338 #define HAVE_MACH_MACH_H 1
11347 for ac_header
in nlist.h
11349 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11350 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11351 cat >>confdefs.h
<<_ACEOF
11352 #define HAVE_NLIST_H 1
11354 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11356 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11358 cat >>confdefs.h
<<_ACEOF
11359 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11363 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11376 # Some definitions of getloadavg require that the program be installed setgid.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11378 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11379 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11385 #ifdef LDAV_PRIVILEGED
11386 Yowza Am I SETGID yet
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11391 ac_cv_func_getloadavg_setgid
=yes
11393 ac_cv_func_getloadavg_setgid
=no
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11399 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11400 if test $ac_cv_func_getloadavg_setgid = yes; then
11403 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11409 if test $ac_cv_func_getloadavg_setgid = yes; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11411 $as_echo_n "checking group of /dev/kmem... " >&6; }
11412 if test "${ac_cv_group_kmem+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11415 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11416 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11417 # If we got an error (system does not support symlinks), try without -L.
11418 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11419 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11420 | sed -ne 's/[ ][ ]*/ /g;
11421 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11426 $as_echo "$ac_cv_group_kmem" >&6; }
11427 KMEM_GROUP
=$ac_cv_group_kmem
11429 if test "x$ac_save_LIBS" = x
; then
11430 GETLOADAVG_LIBS
=$LIBS
11432 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11439 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11440 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446 #include <sys/types.h> /* for off_t */
11451 int (*fp) (FILE *, off_t, int) = fseeko;
11452 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11457 if ac_fn_c_try_link
"$LINENO"; then :
11458 ac_cv_sys_largefile_source
=no
; break
11460 rm -f core conftest.err conftest.
$ac_objext \
11461 conftest
$ac_exeext conftest.
$ac_ext
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #define _LARGEFILE_SOURCE 1
11465 #include <sys/types.h> /* for off_t */
11470 int (*fp) (FILE *, off_t, int) = fseeko;
11471 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11476 if ac_fn_c_try_link
"$LINENO"; then :
11477 ac_cv_sys_largefile_source
=1; break
11479 rm -f core conftest.err conftest.
$ac_objext \
11480 conftest
$ac_exeext conftest.
$ac_ext
11481 ac_cv_sys_largefile_source
=unknown
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11486 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11487 case $ac_cv_sys_largefile_source in #(
11490 cat >>confdefs.h
<<_ACEOF
11491 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11497 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11498 # in glibc 2.1.3, but that breaks too many other things.
11499 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11500 if test $ac_cv_sys_largefile_source != unknown
; then
11502 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11507 # Configure getopt.
11508 # getopt.m4 serial 10
11510 # The getopt module assume you want GNU getopt, with getopt_long etc,
11511 # rather than vanilla POSIX getopt. This means your your code should
11512 # always include <getopt.h> for the getopt prototypes.
11524 # Prerequisites of lib/getopt*.
11530 for ac_header
in getopt.h
11532 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11533 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11534 cat >>confdefs.h
<<_ACEOF
11535 #define HAVE_GETOPT_H 1
11544 if test -z "$GETOPT_H"; then
11545 for ac_func
in getopt_long_only
11547 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11548 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11549 cat >>confdefs.h
<<_ACEOF
11550 #define HAVE_GETOPT_LONG_ONLY 1
11560 if test -z "$GETOPT_H"; then
11561 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11563 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11569 if test -z "$GETOPT_H"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11571 $as_echo_n "checking for working GNU getopt function... " >&6; }
11572 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 if test "$cross_compiling" = yes; then :
11576 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11578 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11579 gl_cv_func_gnu_getopt
=no
11581 gl_cv_func_gnu_getopt
=yes
11585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587 #include <getopt.h>
11593 myargv[0] = "conftest";
11596 return getopt (2, myargv, "+a") != '?';
11602 if ac_fn_c_try_run
"$LINENO"; then :
11603 gl_cv_func_gnu_getopt
=yes
11605 gl_cv_func_gnu_getopt
=no
11607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11613 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11614 if test "$gl_cv_func_gnu_getopt" = "no"; then
11621 if test -n "$GETOPT_H"; then :
11626 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11631 GETOPTOBJS
='getopt.o getopt1.o'
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11638 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11639 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11642 # Use it with a single arg.
11643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 $ac_includes_default
11654 if ac_fn_c_try_compile
"$LINENO"; then :
11655 ac_cv_func_getpgrp_void
=no
11657 ac_cv_func_getpgrp_void
=yes
11659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11663 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11664 if test $ac_cv_func_getpgrp_void = yes; then
11666 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11671 for ac_func
in strftime
11673 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11674 if test "x$ac_cv_func_strftime" = x
""yes; then :
11675 cat >>confdefs.h
<<_ACEOF
11676 #define HAVE_STRFTIME 1
11680 # strftime is in -lintl on SCO UNIX.
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11682 $as_echo_n "checking for strftime in -lintl... " >&6; }
11683 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11686 ac_check_lib_save_LIBS
=$LIBS
11687 LIBS
="-lintl $LIBS"
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11701 return strftime ();
11706 if ac_fn_c_try_link
"$LINENO"; then :
11707 ac_cv_lib_intl_strftime
=yes
11709 ac_cv_lib_intl_strftime
=no
11711 rm -f core conftest.err conftest.
$ac_objext \
11712 conftest
$ac_exeext conftest.
$ac_ext
11713 LIBS
=$ac_check_lib_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11716 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11717 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11718 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11720 LIBS
="-lintl $LIBS"
11728 for ac_func
in grantpt
11730 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
11731 if test "x$ac_cv_func_grantpt" = x
""yes; then :
11732 cat >>confdefs.h
<<_ACEOF
11733 #define HAVE_GRANTPT 1
11740 # PTY-related GNU extensions.
11741 for ac_func
in getpt
11743 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
11744 if test "x$ac_cv_func_getpt" = x
""yes; then :
11745 cat >>confdefs.h
<<_ACEOF
11746 #define HAVE_GETPT 1
11753 # Check this now, so that we will NOT find the above functions in ncurses.
11754 # That is because we have not set up to link ncurses in lib-src.
11755 # It's better to believe a function is not available
11756 # than to expect to find it in ncurses.
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11758 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11759 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11762 ac_check_lib_save_LIBS
=$LIBS
11763 LIBS
="-lncurses $LIBS"
11764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11782 if ac_fn_c_try_link
"$LINENO"; then :
11783 ac_cv_lib_ncurses_tparm
=yes
11785 ac_cv_lib_ncurses_tparm
=no
11787 rm -f core conftest.err conftest.
$ac_objext \
11788 conftest
$ac_exeext conftest.
$ac_ext
11789 LIBS
=$ac_check_lib_save_LIBS
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11792 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11793 if test "x$ac_cv_lib_ncurses_tparm" = x
""yes; then :
11794 cat >>confdefs.h
<<_ACEOF
11795 #define HAVE_LIBNCURSES 1
11798 LIBS
="-lncurses $LIBS"
11803 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #include <netinet/in.h>
11809 #include <arpa/nameser.h>
11810 #include <resolv.h>
11819 if ac_fn_c_try_link
"$LINENO"; then :
11824 rm -f core conftest.err conftest.
$ac_objext \
11825 conftest
$ac_exeext conftest.
$ac_ext
11826 if test "$have_res_init" = no
; then
11828 LIBS
="$LIBS -lresolv"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11830 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <netinet/in.h>
11834 #include <arpa/nameser.h>
11835 #include <resolv.h>
11844 if ac_fn_c_try_link
"$LINENO"; then :
11849 rm -f core conftest.err conftest.
$ac_objext \
11850 conftest
$ac_exeext conftest.
$ac_ext
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11852 $as_echo "$have_res_init" >&6; }
11853 if test "$have_res_init" = yes ; then
11859 if test "$have_res_init" = yes; then
11861 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11865 # Do we need the Hesiod library to provide the support routines?
11866 if test "$with_hesiod" != no
; then
11867 # Don't set $LIBS here -- see comments above.
11868 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
11869 if test "x$ac_cv_func_res_send" = x
""yes; then :
11872 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
11873 if test "x$ac_cv_func___res_send" = x
""yes; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11877 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11878 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11881 ac_check_lib_save_LIBS
=$LIBS
11882 LIBS
="-lresolv $LIBS"
11883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11896 return res_send ();
11901 if ac_fn_c_try_link
"$LINENO"; then :
11902 ac_cv_lib_resolv_res_send
=yes
11904 ac_cv_lib_resolv_res_send
=no
11906 rm -f core conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11908 LIBS
=$ac_check_lib_save_LIBS
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11911 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11912 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11916 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11917 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 ac_check_lib_save_LIBS
=$LIBS
11921 LIBS
="-lresolv $LIBS"
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11931 char __res_send ();
11935 return __res_send ();
11940 if ac_fn_c_try_link
"$LINENO"; then :
11941 ac_cv_lib_resolv___res_send
=yes
11943 ac_cv_lib_resolv___res_send
=no
11945 rm -f core conftest.err conftest.
$ac_objext \
11946 conftest
$ac_exeext conftest.
$ac_ext
11947 LIBS
=$ac_check_lib_save_LIBS
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11950 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11951 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
11961 if test "$resolv" = yes ; then
11966 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11967 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
11971 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11972 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11975 ac_check_lib_save_LIBS
=$LIBS
11976 LIBS
="-lhesiod $RESOLVLIB $LIBS"
11977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11980 /* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11986 char hes_getmailhost ();
11990 return hes_getmailhost ();
11995 if ac_fn_c_try_link
"$LINENO"; then :
11996 ac_cv_lib_hesiod_hes_getmailhost
=yes
11998 ac_cv_lib_hesiod_hes_getmailhost
=no
12000 rm -f core conftest.err conftest.
$ac_objext \
12001 conftest
$ac_exeext conftest.
$ac_ext
12002 LIBS
=$ac_check_lib_save_LIBS
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12005 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12006 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12008 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12018 # Do we need libresolv (due to res_init or Hesiod)?
12019 if test "$resolv" = yes ; then
12021 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12025 # These tell us which Kerberos-related libraries to use.
12026 if test "${with_kerberos}" != no
; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12028 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12029 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12032 ac_check_lib_save_LIBS
=$LIBS
12033 LIBS
="-lcom_err $LIBS"
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12052 if ac_fn_c_try_link
"$LINENO"; then :
12053 ac_cv_lib_com_err_com_err
=yes
12055 ac_cv_lib_com_err_com_err
=no
12057 rm -f core conftest.err conftest.
$ac_objext \
12058 conftest
$ac_exeext conftest.
$ac_ext
12059 LIBS
=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12062 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12063 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12064 cat >>confdefs.h
<<_ACEOF
12065 #define HAVE_LIBCOM_ERR 1
12068 LIBS
="-lcom_err $LIBS"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12073 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12074 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12077 ac_check_lib_save_LIBS
=$LIBS
12078 LIBS
="-lk5crypto $LIBS"
12079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12088 char mit_des_cbc_encrypt ();
12092 return mit_des_cbc_encrypt ();
12097 if ac_fn_c_try_link
"$LINENO"; then :
12098 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12100 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12102 rm -f core conftest.err conftest.
$ac_objext \
12103 conftest
$ac_exeext conftest.
$ac_ext
12104 LIBS
=$ac_check_lib_save_LIBS
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12107 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12108 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12109 cat >>confdefs.h
<<_ACEOF
12110 #define HAVE_LIBK5CRYPTO 1
12113 LIBS
="-lk5crypto $LIBS"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12118 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12119 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12122 ac_check_lib_save_LIBS
=$LIBS
12123 LIBS
="-lcrypto $LIBS"
12124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12133 char mit_des_cbc_encrypt ();
12137 return mit_des_cbc_encrypt ();
12142 if ac_fn_c_try_link
"$LINENO"; then :
12143 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12145 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12147 rm -f core conftest.err conftest.
$ac_objext \
12148 conftest
$ac_exeext conftest.
$ac_ext
12149 LIBS
=$ac_check_lib_save_LIBS
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12152 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12153 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12154 cat >>confdefs.h
<<_ACEOF
12155 #define HAVE_LIBCRYPTO 1
12158 LIBS
="-lcrypto $LIBS"
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12163 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12164 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
12167 ac_check_lib_save_LIBS
=$LIBS
12168 LIBS
="-lkrb5 $LIBS"
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12178 char krb5_init_context ();
12182 return krb5_init_context ();
12187 if ac_fn_c_try_link
"$LINENO"; then :
12188 ac_cv_lib_krb5_krb5_init_context
=yes
12190 ac_cv_lib_krb5_krb5_init_context
=no
12192 rm -f core conftest.err conftest.
$ac_objext \
12193 conftest
$ac_exeext conftest.
$ac_ext
12194 LIBS
=$ac_check_lib_save_LIBS
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12197 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12198 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12199 cat >>confdefs.h
<<_ACEOF
12200 #define HAVE_LIBKRB5 1
12203 LIBS
="-lkrb5 $LIBS"
12207 if test "${with_kerberos5}" = no
; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12209 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12210 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12213 ac_check_lib_save_LIBS
=$LIBS
12214 LIBS
="-ldes425 $LIBS"
12215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12224 char des_cbc_encrypt ();
12228 return des_cbc_encrypt ();
12233 if ac_fn_c_try_link
"$LINENO"; then :
12234 ac_cv_lib_des425_des_cbc_encrypt
=yes
12236 ac_cv_lib_des425_des_cbc_encrypt
=no
12238 rm -f core conftest.err conftest.
$ac_objext \
12239 conftest
$ac_exeext conftest.
$ac_ext
12240 LIBS
=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12243 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12244 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12245 cat >>confdefs.h
<<_ACEOF
12246 #define HAVE_LIBDES425 1
12249 LIBS
="-ldes425 $LIBS"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12253 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12254 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12257 ac_check_lib_save_LIBS
=$LIBS
12259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12268 char des_cbc_encrypt ();
12272 return des_cbc_encrypt ();
12277 if ac_fn_c_try_link
"$LINENO"; then :
12278 ac_cv_lib_des_des_cbc_encrypt
=yes
12280 ac_cv_lib_des_des_cbc_encrypt
=no
12282 rm -f core conftest.err conftest.
$ac_objext \
12283 conftest
$ac_exeext conftest.
$ac_ext
12284 LIBS
=$ac_check_lib_save_LIBS
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12287 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12288 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12289 cat >>confdefs.h
<<_ACEOF
12290 #define HAVE_LIBDES 1
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12300 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12301 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12304 ac_check_lib_save_LIBS
=$LIBS
12305 LIBS
="-lkrb4 $LIBS"
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12315 char krb_get_cred ();
12319 return krb_get_cred ();
12324 if ac_fn_c_try_link
"$LINENO"; then :
12325 ac_cv_lib_krb4_krb_get_cred
=yes
12327 ac_cv_lib_krb4_krb_get_cred
=no
12329 rm -f core conftest.err conftest.
$ac_objext \
12330 conftest
$ac_exeext conftest.
$ac_ext
12331 LIBS
=$ac_check_lib_save_LIBS
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12334 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12335 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12336 cat >>confdefs.h
<<_ACEOF
12337 #define HAVE_LIBKRB4 1
12340 LIBS
="-lkrb4 $LIBS"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12344 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12345 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12348 ac_check_lib_save_LIBS
=$LIBS
12350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12359 char krb_get_cred ();
12363 return krb_get_cred ();
12368 if ac_fn_c_try_link
"$LINENO"; then :
12369 ac_cv_lib_krb_krb_get_cred
=yes
12371 ac_cv_lib_krb_krb_get_cred
=no
12373 rm -f core conftest.err conftest.
$ac_objext \
12374 conftest
$ac_exeext conftest.
$ac_ext
12375 LIBS
=$ac_check_lib_save_LIBS
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12378 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12379 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12380 cat >>confdefs.h
<<_ACEOF
12381 #define HAVE_LIBKRB 1
12392 if test "${with_kerberos5}" != no
; then
12393 for ac_header
in krb5.h
12395 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12396 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12397 cat >>confdefs.h
<<_ACEOF
12398 #define HAVE_KRB5_H 1
12400 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12402 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define HAVE_KRB5_ERROR_TEXT 1
12410 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12412 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12414 cat >>confdefs.h
<<_ACEOF
12415 #define HAVE_KRB5_ERROR_E_TEXT 1
12426 for ac_header
in des.h
12428 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12429 if test "x$ac_cv_header_des_h" = x
""yes; then :
12430 cat >>confdefs.h
<<_ACEOF
12431 #define HAVE_DES_H 1
12435 for ac_header
in kerberosIV
/des.h
12437 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12438 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12439 cat >>confdefs.h
<<_ACEOF
12440 #define HAVE_KERBEROSIV_DES_H 1
12444 for ac_header
in kerberos
/des.h
12446 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12447 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12448 cat >>confdefs.h
<<_ACEOF
12449 #define HAVE_KERBEROS_DES_H 1
12464 for ac_header
in krb.h
12466 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12467 if test "x$ac_cv_header_krb_h" = x
""yes; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_KRB_H 1
12473 for ac_header
in kerberosIV
/krb.h
12475 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12476 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
12477 cat >>confdefs.h
<<_ACEOF
12478 #define HAVE_KERBEROSIV_KRB_H 1
12482 for ac_header
in kerberos
/krb.h
12484 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
12486 cat >>confdefs.h
<<_ACEOF
12487 #define HAVE_KERBEROS_KRB_H 1
12503 for ac_header
in com_err.h
12505 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_COM_ERR_H 1
12517 # Solaris requires -lintl if you want strerror (which calls dgettext)
12518 # to return localized messages.
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12520 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12521 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12524 ac_check_lib_save_LIBS
=$LIBS
12525 LIBS
="-lintl $LIBS"
12526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12539 return dgettext ();
12544 if ac_fn_c_try_link
"$LINENO"; then :
12545 ac_cv_lib_intl_dgettext
=yes
12547 ac_cv_lib_intl_dgettext
=no
12549 rm -f core conftest.err conftest.
$ac_objext \
12550 conftest
$ac_exeext conftest.
$ac_ext
12551 LIBS
=$ac_check_lib_save_LIBS
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12554 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12555 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
12556 cat >>confdefs.h
<<_ACEOF
12557 #define HAVE_LIBINTL 1
12560 LIBS
="-lintl $LIBS"
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12566 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12567 if test "${emacs_cv_localtime_cache+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12570 if test x
$ac_cv_func_tzset = xyes
; then
12571 if test "$cross_compiling" = yes; then :
12572 # If we have tzset, assume the worst when cross-compiling.
12573 emacs_cv_localtime_cache
=yes
12575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12578 extern char **environ;
12582 for (to = from = environ; (*to = *from); from++)
12583 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12586 char TZ_GMT0[] = "TZ=GMT0";
12587 char TZ_PST8[] = "TZ=PST8";
12590 time_t now = time ((time_t *) 0);
12591 int hour_GMT0, hour_unset;
12592 if (putenv (TZ_GMT0) != 0)
12594 hour_GMT0 = localtime (&now)->tm_hour;
12596 hour_unset = localtime (&now)->tm_hour;
12597 if (putenv (TZ_PST8) != 0)
12599 if (localtime (&now)->tm_hour == hour_GMT0)
12602 if (localtime (&now)->tm_hour != hour_unset)
12607 if ac_fn_c_try_run
"$LINENO"; then :
12608 emacs_cv_localtime_cache
=no
12610 emacs_cv_localtime_cache
=yes
12612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12617 # If we lack tzset, report that localtime does not cache TZ,
12618 # since we can't invalidate the cache if we don't have tzset.
12619 emacs_cv_localtime_cache
=no
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12623 $as_echo "$emacs_cv_localtime_cache" >&6; }
12624 if test $emacs_cv_localtime_cache = yes; then
12626 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12630 if test "x$HAVE_TIMEVAL" = xyes
; then
12631 for ac_func
in gettimeofday
12633 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12634 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
12635 cat >>confdefs.h
<<_ACEOF
12636 #define HAVE_GETTIMEOFDAY 1
12642 if test $ac_cv_func_gettimeofday = yes; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12644 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12645 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12651 #ifdef TIME_WITH_SYS_TIME
12652 #include <sys/time.h>
12655 #ifdef HAVE_SYS_TIME_H
12656 #include <sys/time.h>
12664 struct timeval time;
12665 gettimeofday (&time, 0);
12670 if ac_fn_c_try_compile
"$LINENO"; then :
12671 emacs_cv_gettimeofday_two_arguments
=yes
12673 emacs_cv_gettimeofday_two_arguments
=no
12675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12678 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12679 if test $emacs_cv_gettimeofday_two_arguments = no
; then
12681 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12688 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
12689 if test "x$ac_cv_func_socket" = x
""yes; then :
12695 if test $ok_so_far = yes; then
12696 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12697 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
12705 if test $ok_so_far = yes; then
12706 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12707 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
12715 if test $ok_so_far = yes; then
12717 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12721 for ac_header
in sys
/ioctl.h
12723 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12724 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
12725 cat >>confdefs.h
<<_ACEOF
12726 #define HAVE_SYS_IOCTL_H 1
12734 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12736 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12741 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12742 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12746 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12753 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12754 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12758 cat >>confdefs.h
<<_ACEOF
12764 for ac_header
in vfork.h
12766 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12767 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12768 cat >>confdefs.h
<<_ACEOF
12769 #define HAVE_VFORK_H 1
12776 for ac_func
in fork vfork
12778 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12779 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12780 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12781 cat >>confdefs.h
<<_ACEOF
12782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12788 if test "x$ac_cv_func_fork" = xyes
; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12790 $as_echo_n "checking for working fork... " >&6; }
12791 if test "${ac_cv_func_fork_works+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12794 if test "$cross_compiling" = yes; then :
12795 ac_cv_func_fork_works
=cross
12797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 $ac_includes_default
12804 /* By Ruediger Kuhlmann. */
12805 return fork () < 0;
12811 if ac_fn_c_try_run
"$LINENO"; then :
12812 ac_cv_func_fork_works
=yes
12814 ac_cv_func_fork_works
=no
12816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12822 $as_echo "$ac_cv_func_fork_works" >&6; }
12825 ac_cv_func_fork_works
=$ac_cv_func_fork
12827 if test "x$ac_cv_func_fork_works" = xcross
; then
12829 *-*-amigaos* |
*-*-msdosdjgpp*)
12830 # Override, as these systems have only a dummy fork() stub
12831 ac_cv_func_fork_works
=no
12834 ac_cv_func_fork_works
=yes
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12838 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12840 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12841 if test "x$ac_cv_func_vfork" = xyes
; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12843 $as_echo_n "checking for working vfork... " >&6; }
12844 if test "${ac_cv_func_vfork_works+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12847 if test "$cross_compiling" = yes; then :
12848 ac_cv_func_vfork_works
=cross
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 /* Thanks to Paul Eggert for this test. */
12853 $ac_includes_default
12854 #include <sys/wait.h>
12855 #ifdef HAVE_VFORK_H
12856 # include <vfork.h>
12858 /* On some sparc systems, changes by the child to local and incoming
12859 argument registers are propagated back to the parent. The compiler
12860 is told about this with #include <vfork.h>, but some compilers
12861 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12862 static variable whose address is put into a register that is
12863 clobbered by the vfork. */
12866 sparc_address_test (int arg)
12868 sparc_address_test (arg) int arg;
12871 static pid_t child;
12889 pid_t parent = getpid ();
12892 sparc_address_test (0);
12897 /* Here is another test for sparc vfork register problems. This
12898 test uses lots of local variables, at least as many local
12899 variables as main has allocated so far including compiler
12900 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12901 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12902 reuse the register of parent for one of the local variables,
12903 since it will think that parent can't possibly be used any more
12904 in this routine. Assigning to the local variable will thus
12905 munge parent in the parent process. */
12907 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12908 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12909 /* Convince the compiler that p..p7 are live; otherwise, it might
12910 use the same hardware register for all 8 local variables. */
12911 if (p != p1 || p != p2 || p != p3 || p != p4
12912 || p != p5 || p != p6 || p != p7)
12915 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12916 from child file descriptors. If the child closes a descriptor
12917 before it execs or exits, this munges the parent's descriptor
12918 as well. Test for this by closing stdout in the child. */
12919 _exit(close(fileno(stdout)) != 0);
12924 while (wait(&status) != child)
12927 /* Was there some problem with vforking? */
12930 /* Did the child fail? (This shouldn't happen.) */
12933 /* Did the vfork/compiler bug occur? */
12934 || parent != getpid()
12936 /* Did the file descriptor bug occur? */
12937 || fstat(fileno(stdout), &st) != 0
12942 if ac_fn_c_try_run
"$LINENO"; then :
12943 ac_cv_func_vfork_works
=yes
12945 ac_cv_func_vfork_works
=no
12947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12953 $as_echo "$ac_cv_func_vfork_works" >&6; }
12956 if test "x$ac_cv_func_fork_works" = xcross
; then
12957 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12959 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12962 if test "x$ac_cv_func_vfork_works" = xyes
; then
12964 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12968 $as_echo "#define vfork fork" >>confdefs.h
12971 if test "x$ac_cv_func_fork_works" = xyes
; then
12973 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12979 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12980 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <langinfo.h>
12989 char* cs = nl_langinfo(CODESET);
12994 if ac_fn_c_try_link
"$LINENO"; then :
12995 emacs_cv_langinfo_codeset
=yes
12997 emacs_cv_langinfo_codeset
=no
12999 rm -f core conftest.err conftest.
$ac_objext \
13000 conftest
$ac_exeext conftest.
$ac_ext
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13004 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13005 if test $emacs_cv_langinfo_codeset = yes; then
13007 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13011 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13012 if test "x$ac_cv_type_size_t" = x
""yes; then :
13014 cat >>confdefs.h
<<_ACEOF
13015 #define HAVE_SIZE_T 1
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13023 $as_echo_n "checking for mbstate_t... " >&6; }
13024 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 # include <wchar.h>
13034 mbstate_t x; return sizeof x;
13039 if ac_fn_c_try_compile
"$LINENO"; then :
13040 ac_cv_type_mbstate_t
=yes
13042 ac_cv_type_mbstate_t
=no
13044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13047 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13048 if test $ac_cv_type_mbstate_t = yes; then
13050 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13054 $as_echo "#define mbstate_t int" >>confdefs.h
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13059 $as_echo_n "checking for C restrict keyword... " >&6; }
13060 if test "${emacs_cv_c_restrict+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 void fred (int *restrict x);
13074 if ac_fn_c_try_compile
"$LINENO"; then :
13075 emacs_cv_c_restrict
=yes
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 void fred (int *__restrict x);
13088 if ac_fn_c_try_compile
"$LINENO"; then :
13089 emacs_cv_c_restrict
=__restrict
13091 emacs_cv_c_restrict
=no
13093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13098 $as_echo "$emacs_cv_c_restrict" >&6; }
13099 case "$emacs_cv_c_restrict" in
13100 yes) emacs_restrict
=restrict
;;
13101 no
) emacs_restrict
="";;
13102 *) emacs_restrict
="$emacs_cv_c_restrict";;
13104 if test "$emacs_restrict" != __restrict
; then
13106 cat >>confdefs.h
<<_ACEOF
13107 #define __restrict $emacs_restrict
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13113 $as_echo_n "checking for C restricted array declarations... " >&6; }
13114 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 void fred (int x[__restrict]);
13128 if ac_fn_c_try_compile
"$LINENO"; then :
13129 emacs_cv_c_restrict_arr
=yes
13131 emacs_cv_c_restrict_arr
=no
13133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13136 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13137 if test "$emacs_cv_c_restrict_arr" = yes; then
13139 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13145 # Set up the CFLAGS for real compilation, so we can substitute it.
13146 CFLAGS
="$REAL_CFLAGS"
13147 CPPFLAGS
="$REAL_CPPFLAGS"
13149 ## Hack to detect a buggy GCC version.
13150 if test "x$GCC" = xyes \
13151 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13152 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13153 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13154 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13157 #### Find out which version of Emacs this is.
13158 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13159 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13160 if test x
"${version}" = x
; then
13161 as_fn_error $?
"can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13163 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13165 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13168 ### Specify what sort of things we'll be editing into Makefile and config.h.
13169 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13214 cat >>confdefs.h <<_ACEOF
13215 #define EMACS_CONFIGURATION "${canonical}"
13219 cat >>confdefs.h <<_ACEOF
13220 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13224 cat >>confdefs.h <<_ACEOF
13225 #define config_machfile "${machfile}"
13229 cat >>confdefs.h <<_ACEOF
13230 #define config_opsysfile "${opsysfile}"
13234 cat >>confdefs.h <<_ACEOF
13235 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13239 cat >>confdefs.h <<_ACEOF
13240 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13244 cat >>confdefs.h <<_ACEOF
13245 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13249 cat >>confdefs.h <<_ACEOF
13250 #define UNEXEC_SRC ${UNEXEC_SRC}
13254 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13256 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13259 if test "${USE_X_TOOLKIT}" != "none" ; then
13261 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13263 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13265 $as_echo "#define USE_LUCID 1" >>confdefs.h
13267 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13269 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13273 if test "${HAVE_X11}" = "yes" ; then
13275 $as_echo "#define HAVE_X11 1" >>confdefs.h
13278 if test "${HAVE_MENUS}" = "yes" ; then
13280 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13283 if test "${GNU_MALLOC}" = "yes" ; then
13285 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13288 if test "${REL_ALLOC}" = "yes" ; then
13290 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13297 #### Report on what we decided to do.
13298 #### Report GTK as a toolkit, even if it doesn't use Xt.
13299 #### It makes printing result more understandable as using GTK sets
13300 #### toolkit_scroll_bars to yes by default.
13301 if test "${HAVE_GTK}" = "yes"; then
13306 Configured for \`${canonical}'.
13308 Where should the build process find the source code? ${srcdir}
13309 What operating system and machine description files should Emacs use?
13310 \`${opsysfile}' and \`${machfile}'
13311 What compiler should emacs be built with? ${CC} ${CFLAGS}
13312 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13313 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13314 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13315 What window system should Emacs use? ${window_system}
13316 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13318 if test -n "${x_includes}"; then
13319 echo " Where do we find X Windows header files? ${x_includes}"
13321 echo " Where do we find X Windows header files? Standard dirs"
13323 if test -n "${x_libraries}"; then
13324 echo " Where do we find X Windows libraries? ${x_libraries}"
13326 echo " Where do we find X Windows libraries? Standard dirs"
13329 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13330 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13331 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13332 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13333 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13334 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13335 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13336 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13337 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13338 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13340 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13341 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13342 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13343 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13345 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13348 if test $USE_XASSERTS = yes; then
13349 echo " Compiling with asserts turned on."
13350 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
13355 if test "$HAVE_NS" = "yes"; then
13357 echo "You must run \"make install\" in order to test the built application.
13358 The installed application will go to nextstep/Emacs.app and can be
13359 run or moved from there."
13360 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13361 echo "The application will be fully self-contained."
13363 echo "The lisp resources for the application will be installed under ${prefix}.
13364 You may need to run \"make install\" with sudo. The application will fail
13365 to run if these resources are not installed."
13370 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13371 echo "D-Bus integration has been tested for GNU/Linux only."
13376 # Remove any trailing slashes in these variables.
13377 test "${prefix}" != NONE
&&
13378 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13379 test "${exec_prefix}" != NONE
&&
13380 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13382 # Now get this: Some word that is part of the ${srcdir} directory name
13383 # or the ${configuration} value might, just might, happen to be an
13384 # identifier like `sun4' or `i386' or something, and be predefined by
13385 # the C preprocessor to some helpful value like 1, or maybe the empty
13386 # string. Needless to say consequent macro substitutions are less
13387 # than conducive to the makefile finding the correct directory.
13388 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
13389 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13390 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13392 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13393 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13394 ## from Makefile.c can correctly provide the arg `-traditional' to the
13397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13402 $EGREP "yes..yes" >/dev
/null
2>&1; then :
13403 CPP_NEED_TRADITIONAL
=no
13405 CPP_NEED_TRADITIONAL
=yes
13410 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"
13412 ac_config_commands
="$ac_config_commands default"
13414 cat >confcache
<<\_ACEOF
13415 # This file is a shell script that caches the results of configure
13416 # tests run on this system so they can be shared between configure
13417 # scripts and configure runs, see configure's option --config-cache.
13418 # It is not useful on other systems. If it contains results you don't
13419 # want to keep, you may remove or edit it.
13421 # config.status only pays attention to the cache file if you give it
13422 # the --recheck option to rerun configure.
13424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13426 # following values.
13430 # The following way of writing the cache mishandles newlines in values,
13431 # but we know of no workaround that is simple, portable, and efficient.
13432 # So, we kill variables containing newlines.
13433 # Ultrix sh set writes to stderr and can't be redirected directly,
13434 # and sets the high bit in the cache file unless we assign to the vars.
13436 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13437 eval ac_val
=\$
$ac_var
13441 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13445 _ | IFS | as_nl
) ;; #(
13446 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13447 *) { eval $ac_var=; unset $ac_var;} ;;
13453 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13454 *${as_nl}ac_space
=\
*)
13455 # `set' does not quote correctly, so add quotes: double-quote
13456 # substitution turns \\\\ into \\, and sed turns \\ into \.
13459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13462 # `set' quotes correctly as required by POSIX, so do not add quotes.
13463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13474 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13476 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13477 if test -w "$cache_file"; then
13478 test "x$cache_file" != "x/dev/null" &&
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13480 $as_echo "$as_me: updating cache $cache_file" >&6;}
13481 cat confcache
>$cache_file
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13489 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13490 # Let make expand exec_prefix.
13491 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13493 DEFS
=-DHAVE_CONFIG_H
13498 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13499 # 1. Remove the extension, and $U if already installed.
13500 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13501 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13503 # will be set to the directory where LIBOBJS objects are built.
13504 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13505 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13507 LIBOBJS
=$ac_libobjs
13509 LTLIBOBJS
=$ac_ltlibobjs
13513 : ${CONFIG_STATUS=./config.status}
13515 ac_clean_files_save
=$ac_clean_files
13516 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13522 # Generated by $as_me.
13523 # Run this file to recreate the current configuration.
13524 # Compiler output produced by configure, useful for debugging
13525 # configure, is in config.log if it exists.
13528 ac_cs_recheck=false
13531 SHELL=\${CONFIG_SHELL-$SHELL}
13534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13535 ## -------------------- ##
13536 ## M4sh Initialization. ##
13537 ## -------------------- ##
13539 # Be more Bourne compatible
13540 DUALCASE
=1; export DUALCASE
# for MKS sh
13541 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13545 # is contrary to our usage. Disable this feature.
13546 alias -g '${1+"$@"}'='"$@"'
13547 setopt NO_GLOB_SUBST
13549 case `(set -o) 2>/dev/null` in #(
13561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13562 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13565 # Prefer a ksh shell builtin over an external printf program on Solaris,
13566 # but without wasting forks for bash or zsh.
13567 if test -z "$BASH_VERSION$ZSH_VERSION" \
13568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13569 as_echo='print
-r --'
13570 as_echo_n='print
-rn --'
13571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13572 as_echo='printf %s
\n'
13573 as_echo_n='printf %s
'
13575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13576 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13577 as_echo_n='/usr
/ucb
/echo -n'
13579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13580 as_echo_n_body='eval
13584 expr "X$arg" : "X\\(.*\\)$as_nl";
13585 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13587 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13589 export as_echo_n_body
13590 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13592 export as_echo_body
13593 as_echo='sh
-c $as_echo_body as_echo
'
13596 # The user is always right.
13597 if test "${PATH_SEPARATOR+set}" != set; then
13599 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13600 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13607 # We need space, tab and new line, in precisely that order. Quoting is
13608 # there to prevent editors from complaining about space-tab.
13609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13610 # splitting by setting IFS to empty value.)
13613 # Find who we are. Look in the path if we contain no directory separator.
13615 *[\\/]* ) as_myself=$0 ;;
13616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13620 test -z "$as_dir" && as_dir=.
13621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13627 # We did not find ourselves, most probably we were run as `sh COMMAND'
13628 # in which case we are not to be found in the path.
13629 if test "x$as_myself" = x
; then
13632 if test ! -f "$as_myself"; then
13633 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13637 # Unset variables that we do not need and which cause bugs (e.g. in
13638 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13639 # suppresses any "Segmentation fault" message there. '((' could
13640 # trigger a bug in pdksh 5.2.14.
13641 for as_var
in BASH_ENV ENV MAIL MAILPATH
13642 do eval test x\
${$as_var+set} = xset \
13643 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13656 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13659 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13660 # ----------------------------------------
13661 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13662 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13663 # script with STATUS, using 1 if that was 0.
13666 as_status
=$1; test $as_status -eq 0 && as_status
=1
13668 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13669 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13671 $as_echo "$as_me: error: $2" >&2
13672 as_fn_exit
$as_status
13676 # as_fn_set_status STATUS
13677 # -----------------------
13678 # Set $? to STATUS, without forking.
13679 as_fn_set_status
()
13682 } # as_fn_set_status
13684 # as_fn_exit STATUS
13685 # -----------------
13686 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13690 as_fn_set_status
$1
13696 # Portably unset VAR.
13699 { eval $1=; unset $1;}
13701 as_unset
=as_fn_unset
13702 # as_fn_append VAR VALUE
13703 # ----------------------
13704 # Append the text in VALUE to the end of the definition contained in VAR. Take
13705 # advantage of any shell optimizations that allow amortized linear growth over
13706 # repeated appends, instead of the typical quadratic growth present in naive
13708 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13709 eval 'as_fn_append ()
13720 # as_fn_arith ARG...
13721 # ------------------
13722 # Perform arithmetic evaluation on the ARGs, and store the result in the
13723 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13724 # must be portable across $(()) and expr.
13725 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13726 eval 'as_fn_arith ()
13733 as_val
=`expr "$@" || test $? -eq 1`
13738 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13739 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13745 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13746 as_basename
=basename
13751 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13757 as_me
=`$as_basename -- "$0" ||
13758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13759 X"$0" : 'X\(//\)$' \| \
13760 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13762 sed '/^.*\/\([^/][^/]*\)\/*$/{
13776 # Avoid depending upon Character Ranges.
13777 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13778 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13779 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13780 as_cr_digits
='0123456789'
13781 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13783 ECHO_C
= ECHO_N
= ECHO_T
=
13784 case `echo -n x` in #(((((
13786 case `echo 'xy\c'` in
13787 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13789 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13796 rm -f conf$$ conf$$.exe conf$$.
file
13797 if test -d conf$$.dir
; then
13798 rm -f conf$$.dir
/conf$$.
file
13801 mkdir conf$$.dir
2>/dev
/null
13803 if (echo >conf$$.
file) 2>/dev
/null
; then
13804 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13806 # ... but there are two gotchas:
13807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13809 # In both cases, we have to default to `cp -p'.
13810 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13812 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13820 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13821 rmdir conf$$.dir
2>/dev
/null
13826 # Create "$as_dir" as a directory, including parents if necessary.
13831 -*) as_dir
=.
/$as_dir;;
13833 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13837 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13838 *) as_qdir
=$as_dir;;
13840 as_dirs
="'$as_qdir' $as_dirs"
13841 as_dir
=`$as_dirname -- "$as_dir" ||
13842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13843 X"$as_dir" : 'X\(//\)[^/]' \| \
13844 X"$as_dir" : 'X\(//\)$' \| \
13845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13846 $as_echo X"$as_dir" |
13847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13851 /^X\(\/\/\)[^/].*/{
13864 test -d "$as_dir" && break
13866 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13867 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13871 if mkdir
-p .
2>/dev
/null
; then
13872 as_mkdir_p
='mkdir -p "$as_dir"'
13874 test -d .
/-p && rmdir .
/-p
13878 if test -x / >/dev
/null
2>&1; then
13879 as_test_x
='test -x'
13881 if ls -dL / >/dev
/null
2>&1; then
13888 if test -d "$1"; then
13894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13895 ???[sx]*):;;*)false;;esac;fi
13899 as_executable_p
=$as_test_x
13901 # Sed expression to map a string onto a valid CPP name.
13902 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13904 # Sed expression to map a string onto a valid variable name.
13905 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13909 ## ----------------------------------- ##
13910 ## Main body of $CONFIG_STATUS script. ##
13911 ## ----------------------------------- ##
13913 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13916 # Save the log message, to keep $0 and so on meaningful, and to
13917 # report actual input values of CONFIG_FILES etc. instead of their
13918 # values after options handling.
13920 This file was extended by emacs $as_me 23.2.50, which was
13921 generated by GNU Autoconf 2.67. Invocation command line was
13923 CONFIG_FILES = $CONFIG_FILES
13924 CONFIG_HEADERS = $CONFIG_HEADERS
13925 CONFIG_LINKS = $CONFIG_LINKS
13926 CONFIG_COMMANDS = $CONFIG_COMMANDS
13929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13934 case $ac_config_files in *"
13935 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13938 case $ac_config_headers in *"
13939 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13944 # Files that config.status was made for.
13945 config_files="$ac_config_files"
13946 config_headers="$ac_config_headers"
13947 config_commands="$ac_config_commands"
13951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13953 \`$as_me' instantiates files and other configuration actions
13954 from templates according to the current configuration. Unless the files
13955 and actions are specified as TAGs, all are instantiated by default.
13957 Usage: $0 [OPTION]... [TAG]...
13959 -h, --help print this help, then exit
13960 -V, --version print version number and configuration settings, then exit
13961 --config print configuration, then exit
13962 -q, --quiet, --silent
13963 do not print progress messages
13964 -d, --debug don't remove temporary files
13965 --recheck update $as_me by reconfiguring in the same conditions
13966 --file=FILE[:TEMPLATE]
13967 instantiate the configuration file FILE
13968 --header=FILE[:TEMPLATE]
13969 instantiate the configuration header FILE
13971 Configuration files:
13974 Configuration headers:
13977 Configuration commands:
13980 Report bugs to the package provider."
13983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13984 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13986 emacs config.status 23.2.50
13987 configured by $0, generated by GNU Autoconf 2.67,
13988 with options \\"\$ac_cs_config\\"
13990 Copyright (C) 2010 Free Software Foundation, Inc.
13991 This config.status script is free software; the Free Software Foundation
13992 gives unlimited permission to copy, distribute and modify it."
13997 test -n "\$AWK" || AWK=awk
14000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14001 # The default lists apply if the user does not specify any file.
14007 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14008 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14012 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14024 # Handling of the options.
14025 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14027 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14028 $as_echo "$ac_cs_version"; exit ;;
14029 --config |
--confi |
--conf |
--con |
--co |
--c )
14030 $as_echo "$ac_cs_config"; exit ;;
14031 --debug |
--debu |
--deb |
--de |
--d |
-d )
14033 --file |
--fil |
--fi |
--f )
14036 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14037 '') as_fn_error $?
"missing file argument" ;;
14039 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14040 ac_need_defaults
=false
;;
14041 --header |
--heade |
--head |
--hea )
14044 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14046 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14047 ac_need_defaults
=false
;;
14049 # Conflict between --help and --header
14050 as_fn_error $?
"ambiguous option: \`$1'
14051 Try \`$0 --help' for more information.";;
14052 --help |
--hel |
-h )
14053 $as_echo "$ac_cs_usage"; exit ;;
14054 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14055 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14058 # This is an error.
14059 -*) as_fn_error $?
"unrecognized option: \`$1'
14060 Try \`$0 --help' for more information." ;;
14062 *) as_fn_append ac_config_targets
" $1"
14063 ac_need_defaults
=false
;;
14069 ac_configure_extra_args
=
14071 if $ac_cs_silent; then
14073 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 if \$ac_cs_recheck; then
14079 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14082 CONFIG_SHELL='$SHELL'
14083 export CONFIG_SHELL
14088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14093 ## Running $as_me. ##
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14103 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14109 # Handling of arguments.
14110 for ac_config_target
in $ac_config_targets
14112 case $ac_config_target in
14113 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14114 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14115 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14116 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14117 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14118 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14119 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14120 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14121 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14122 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14123 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14124 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14125 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14127 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14132 # If the user did not use the arguments to specify the items to instantiate,
14133 # then the envvar interface is used. Set only those that are not.
14134 # We use the long form for the default assignment because of an extremely
14135 # bizarre bug on SunOS 4.1.3.
14136 if $ac_need_defaults; then
14137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14142 # Have a temporary directory for convenience. Make it in the build tree
14143 # simply because there is no reason against having it here, and in addition,
14144 # creating and moving files from /tmp can sometimes cause problems.
14145 # Hook for its removal unless debugging.
14146 # Note that there is a small window in which the directory will not be cleaned:
14147 # after its creation but before its name has been assigned to `$tmp'.
14151 trap 'exit_status=$?
14152 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14154 trap 'as_fn_exit 1' 1 2 13 15
14156 # Create a (secure) tmp directory for tmp files.
14159 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14160 test -n "$tmp" && test -d "$tmp"
14163 tmp
=.
/conf$$
-$RANDOM
14164 (umask 077 && mkdir
"$tmp")
14165 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14167 # Set up the scripts for CONFIG_FILES section.
14168 # No need to generate them if there are no CONFIG_FILES.
14169 # This happens for instance with `./config.status config.h'.
14170 if test -n "$CONFIG_FILES"; then
14173 ac_cr
=`echo X | tr X '\015'`
14174 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14175 # But we know of no other shell where ac_cr would be empty at this
14176 # point, so we can use a bashism as a fallback.
14177 if test "x$ac_cr" = x
; then
14178 eval ac_cr
=\$
\'\\r
\'
14180 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14181 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14184 ac_cs_awk_cr
=$ac_cr
14187 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14192 echo "cat >conf$$subs.awk <<_ACEOF" &&
14193 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14195 } >conf$$subs.sh ||
14196 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14197 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14199 for ac_last_try in false false false false false :; do
14200 . ./conf$$subs.sh ||
14201 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14203 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14204 if test $ac_delim_n = $ac_delim_num; then
14206 elif $ac_last_try; then
14207 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14209 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14212 rm -f conf$$subs.sh
14214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14215 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14219 s/^/S["/; s
/!.
*/"]=/
14229 s/\(.\{148\}\)..*/\1/
14231 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14236 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14243 s/\(.\{148\}\)..*/\1/
14245 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14249 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14254 ' <conf$$subs.awk | sed '
14259 ' >>$CONFIG_STATUS || ac_write_fail=1
14260 rm -f conf$$subs.awk
14261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14263 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14264 for (key in S) S_is_set[key] = 1
14270 nfields = split(line, field, "@
")
14272 len = length(field[1])
14273 for (i = 2; i < nfields; i++) {
14275 keylen = length(key)
14276 if (S_is_set[key]) {
14278 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14279 len += length(value) + length(field[++i])
14290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14292 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14295 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14296 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14299 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14300 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14301 # trailing colons and then remove the whole line if VPATH becomes empty
14302 # (actually we leave an empty line to preserve line numbers).
14303 if test "x
$srcdir" = x.; then
14304 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 fi # test -n "$CONFIG_FILES"
14325 # Set up the scripts for CONFIG_HEADERS section.
14326 # No need to generate them if there are no CONFIG_HEADERS.
14327 # This happens for instance with `./config.status Makefile'.
14328 if test -n "$CONFIG_HEADERS"; then
14329 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14333 # Transform confdefs.h into an awk script `defines.awk', embedded as
14334 # here-document in config.status, that substitutes the proper values into
14335 # config.h.in to produce config.h.
14337 # Create a delimiter string that does not exist in confdefs.h, to ease
14338 # handling of long lines.
14340 for ac_last_try in false false :; do
14341 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14342 if test -z "$ac_t"; then
14344 elif $ac_last_try; then
14345 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14347 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14351 # For the awk script, D is an array of macro values keyed by name,
14352 # likewise P contains macro parameters if any. Preserve backslash
14353 # newline sequences.
14355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14357 s/.\{148\}/&'"$ac_delim"'/g
14360 s/^[ ]*#[ ]*define[ ][ ]*/ /
14367 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14369 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14374 D["\
1"]=" \
3\\\\\\n
"\\/p
14376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14381 s/.\{148\}/&'"$ac_delim"'/g
14386 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14389 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14391 ' <confdefs.h | sed '
14392 s/'"$ac_delim"'/"\\\
14393 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 for (key in D) D_is_set[key] = 1
14399 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14401 split(line, arg, " ")
14402 if (arg[1] == "#") {
14406 defundef
= substr
(arg
[1], 2)
14409 split(mac1
, mac2
, "(") #)
14411 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14412 if (D_is_set
[macro
]) {
14413 # Preserve the white space surrounding the "#".
14414 print prefix
"define", macro P
[macro
] D
[macro
]
14417 # Replace #undef with comments. This is necessary, for example,
14418 # in the case of _POSIX_SOURCE, which is predefined and required
14419 # on some systems where configure will not decide to define it.
14420 if (defundef
== "undef") {
14421 print
"/*", prefix defundef
, macro
, "*/"
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14430 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14431 fi # test -n "$CONFIG_HEADERS"
14434 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14439 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14441 case $ac_mode$ac_tag in
14443 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14444 :[FH
]-) ac_tag
=-:-;;
14445 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14462 -) ac_f
="$tmp/stdin";;
14463 *) # Look for the file first in the build tree, then in the source tree
14464 # (if the path is not absolute). The absolute path cannot be DOS-style,
14465 # because $ac_f cannot contain `:'.
14469 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14471 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14473 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14474 as_fn_append ac_file_inputs
" '$ac_f'"
14477 # Let's still pretend it is `configure' which instantiates (i.e., don't
14478 # use $as_me), people would be surprised to read:
14479 # /* config.h. Generated by config.status. */
14480 configure_input
='Generated from '`
14481 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14483 if test x
"$ac_file" != x-
; then
14484 configure_input
="$ac_file. $configure_input"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14486 $as_echo "$as_me: creating $ac_file" >&6;}
14488 # Neutralize special characters interpreted by sed in replacement strings.
14489 case $configure_input in #(
14490 *\
&* |
*\|
* |
*\\* )
14491 ac_sed_conf_input
=`$as_echo "$configure_input" |
14492 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14493 *) ac_sed_conf_input
=$configure_input;;
14497 *:-:* |
*:-) cat >"$tmp/stdin" \
14498 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
14503 ac_dir
=`$as_dirname -- "$ac_file" ||
14504 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14505 X"$ac_file" : 'X\(//\)[^/]' \| \
14506 X"$ac_file" : 'X\(//\)$' \| \
14507 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14508 $as_echo X"$ac_file" |
14509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14513 /^X\(\/\/\)[^/].*/{
14526 as_dir
="$ac_dir"; as_fn_mkdir_p
14530 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14532 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14533 # A ".." for each directory in $ac_dir_suffix.
14534 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14535 case $ac_top_builddir_sub in
14536 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14537 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14540 ac_abs_top_builddir
=$ac_pwd
14541 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14542 # for backward compatibility:
14543 ac_top_builddir
=$ac_top_build_prefix
14546 .
) # We are building in place.
14548 ac_top_srcdir
=$ac_top_builddir_sub
14549 ac_abs_top_srcdir
=$ac_pwd ;;
14550 [\\/]* | ?
:[\\/]* ) # Absolute name.
14551 ac_srcdir
=$srcdir$ac_dir_suffix;
14552 ac_top_srcdir
=$srcdir
14553 ac_abs_top_srcdir
=$srcdir ;;
14554 *) # Relative name.
14555 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14556 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14557 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14559 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14569 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14570 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14575 # If the template does not know about datarootdir, expand it.
14576 # FIXME: This hack should be removed a few years after 2.60.
14577 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14589 *datarootdir
*) ac_datarootdir_seen
=yes;;
14590 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 ac_datarootdir_hack='
14596 s&@datadir@&$datadir&g
14597 s&@docdir@&$docdir&g
14598 s&@infodir@&$infodir&g
14599 s&@localedir@&$localedir&g
14600 s&@mandir@&$mandir&g
14601 s&\\\${datarootdir}&$datarootdir&g' ;;
14605 # Neutralize VPATH when `$srcdir' = `.'.
14606 # Shell code in configure.ac might set extrasub.
14607 # FIXME: do we really want to maintain this feature?
14608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14609 ac_sed_extra="$ac_vpsub
14612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14614 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14615 s|@configure_input@|
$ac_sed_conf_input|
;t t
14616 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14617 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14618 s
&@srcdir@
&$ac_srcdir&;t t
14619 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14620 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14621 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14622 s
&@builddir@
&$ac_builddir&;t t
14623 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14624 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14625 s
&@INSTALL@
&$ac_INSTALL&;t t
14626 $ac_datarootdir_hack
14628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14629 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
14631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14635 which seems to be undefined. Please make sure it is defined" >&5
14636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14637 which seems to be undefined. Please make sure it is defined" >&2;}
14641 -) cat "$tmp/out" && rm -f "$tmp/out";;
14642 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14650 if test x"$ac_file" != x-; then
14652 $as_echo "/* $configure_input */" \
14653 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14654 } >"$tmp/config.h" \
14655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14656 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14658 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14661 mv "$tmp/config.h" "$ac_file" \
14662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14665 $as_echo "/* $configure_input */" \
14666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14667 || as_fn_error $? "could not create -" "$LINENO" 5
14671 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14672 $as_echo "$as_me: executing $ac_file commands" >&6;}
14677 case $ac_file$ac_mode in
14680 ### Make the necessary directories, if they don't exist.
14681 for dir
in etc lisp
; do
14682 test -d ${dir} || mkdir
${dir}
14685 # Build src/Makefile from ${srcdir}/src/Makefile.c
14686 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14687 # This must be done after src/config.h is built, since we rely on that file.
14689 echo creating src
/epaths.h
14690 ${MAKE-make} epaths-force
14692 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14693 # `..' to `. .' unless invoked with -traditional
14695 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
14696 CPPFLAGS
="$CPPFLAGS -traditional"
14699 echo creating lib-src
/Makefile
14701 rm -f junk.c junk1.c junk2.c
14702 sed -e '/start of cpp stuff/q' \
14703 < Makefile.c
> junk1.c
14704 sed -e '1,/start of cpp stuff/d'\
14705 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14706 < Makefile.c
> junk.c
14707 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14708 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14709 cat junk1.c junk2.c
> Makefile.new
14710 rm -f junk.c junk1.c junk2.c
14711 chmod 444 Makefile.new
14712 mv -f Makefile.new Makefile
14715 echo creating src
/Makefile
14717 rm -f junk.c junk1.c junk2.c
14718 sed -e '/start of cpp stuff/q' \
14719 < Makefile.c
> junk1.c
14720 sed -e '1,/start of cpp stuff/d'\
14721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14722 < Makefile.c
> junk.c
14723 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14725 cat junk1.c junk2.c
> Makefile.new
14726 rm -f junk.c junk1.c junk2.c
14727 chmod 444 Makefile.new
14728 mv -f Makefile.new Makefile
14731 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
14732 echo creating src
/.gdbinit
14733 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
14744 ac_clean_files
=$ac_clean_files_save
14746 test $ac_write_fail = 0 ||
14747 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14750 # configure is writing to config.log, and then calls config.status.
14751 # config.status does its own redirection, appending to config.log.
14752 # Unfortunately, on DOS this fails, as config.log is still kept open
14753 # by configure, so config.status won't be able to write to it; its
14754 # output is simply discarded. So we exec the FD to /dev/null,
14755 # effectively closing config.log, so it can be properly (re)opened and
14756 # appended to by config.status. When coming back to configure, we
14757 # need to make the FD available again.
14758 if test "$no_create" != yes; then
14760 ac_config_status_args
=
14761 test "$silent" = yes &&
14762 ac_config_status_args
="$ac_config_status_args --quiet"
14764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14767 # would make configure fail if this is the last instruction.
14768 $ac_cs_success || as_fn_exit
1
14770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}