summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2002-10-26 19:47:06 +0000
committerbouyer <bouyer@pkgsrc.org>2002-10-26 19:47:06 +0000
commitb4a6c42dfb4f9e8ea4df40bdb960d6cd81df2ac9 (patch)
tree4c95b4ed9ef00de88b12c31200f2ffcfa6627238 /editors/emacs
parent10d70b84235f59a7a8f0a6055022edead26403fb (diff)
downloadpkgsrc-b4a6c42dfb4f9e8ea4df40bdb960d6cd81df2ac9.tar.gz
Xaw may need xpm, add support for this in configure.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/distinfo8
-rw-r--r--editors/emacs/patches/patch-ab1541
-rw-r--r--editors/emacs/patches/patch-af15
-rw-r--r--editors/emacs/patches/patch-bg31
4 files changed, 1563 insertions, 32 deletions
diff --git a/editors/emacs/distinfo b/editors/emacs/distinfo
index c08a34bf97e..ca67b8b9cf1 100644
--- a/editors/emacs/distinfo
+++ b/editors/emacs/distinfo
@@ -1,13 +1,13 @@
-$NetBSD: distinfo,v 1.6 2002/09/01 13:41:46 tron Exp $
+$NetBSD: distinfo,v 1.7 2002/10/26 19:47:06 bouyer Exp $
SHA1 (emacs-20.7.tar.gz) = ef0168b927fb633bc9b14e2249431f26ff8b8452
Size (emacs-20.7.tar.gz) = 15043428 bytes
SHA1 (patch-aa) = 3b3fd76c058a0a46e0458338ce4c2327a238fb3d
-SHA1 (patch-ab) = cfcdda22c41f2080d31a2560550838ccb9b8935f
+SHA1 (patch-ab) = eb16c1ab30e8aac6e6877e8c0f9388961b8003b2
SHA1 (patch-ac) = 9586951e581271664b28d5e812ee14105de508cf
SHA1 (patch-ad) = dd21028a6360ccfb442ecced4c67717f60ea78a6
SHA1 (patch-ae) = 7aaca5409a71f8a292ac57f828ee5ec7a07e3880
-SHA1 (patch-af) = 185c8e045236eb87fafa585288610bbd7f8ca01c
+SHA1 (patch-af) = 778ae26ac31d0a37736c3aa89331a68229c2649d
SHA1 (patch-ag) = 14469c8907ea09395031594e7e0d0fe967b915d9
SHA1 (patch-ah) = 2cfb03c57fad97db9eaaf9cda610f5d6c906aa4a
SHA1 (patch-ai) = d1e5bb8fe797761f63fad42dbfb48834284f4533
@@ -20,7 +20,7 @@ SHA1 (patch-ay) = bc91b0759ce0b3f3c1be542c043748472cb8d8fc
SHA1 (patch-az) = 643f927b726d825238b14cd6a4b70e3a0722104e
SHA1 (patch-bc) = ce6240227e8a7af506c908e0c199e17ce73d7f27
SHA1 (patch-bf) = 8a55b30ec5992e0408b3693b4f31f7d9e931d731
-SHA1 (patch-bg) = 20b01848039dbf171f8fd4271efff4bccf0ee57a
+SHA1 (patch-bg) = f76d459f0fbcadb0b7df4991c1d5d244accc0748
SHA1 (patch-bh) = f59b14cc43d5977a5d80d5d1ab4e246df394d86a
SHA1 (patch-bi) = d97512603b313ee730687e3b5680d45002ade51c
SHA1 (patch-bj) = 6dba88723ee632b67fcf6a2dd2918e69034837e2
diff --git a/editors/emacs/patches/patch-ab b/editors/emacs/patches/patch-ab
index b6deccd5491..bd99c859075 100644
--- a/editors/emacs/patches/patch-ab
+++ b/editors/emacs/patches/patch-ab
@@ -1,23 +1,45 @@
-$NetBSD: patch-ab,v 1.13 2001/10/06 22:04:22 hubertf Exp $
+$NetBSD: patch-ab,v 1.14 2002/10/26 19:47:07 bouyer Exp $
--- configure.orig Mon Jun 12 22:05:56 2000
-+++ configure
-@@ -21,6 +21,9 @@
++++ configure Tue Oct 22 16:07:48 2002
+@@ -20,6 +20,8 @@
+ ac_help="$ac_help
--with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
ac_help="$ac_help
- --with-x use the X Window System"
++ --with-ipv6 support IPv6 stack"
+ac_help="$ac_help
-+ --without-ipv6 disable IPv6 support"
-+
+ --with-x use the X Window System"
# Initialize some variables set by options.
- # The variables have the same names as the options, with
-@@ -718,9 +721,13 @@
+@@ -584,7 +586,13 @@
+
+ fi
+
++# Check whether --with-ipv6 or --without-ipv6 was given.
++if test "${with_ipv6+set}" = set; then
++ withval="$with_ipv6"
++ :
++fi
+
++
+ #### Make srcdir absolute, if it isn't already. It's important to
+ #### avoid running the path through pwd unnecessary, since pwd can
+ #### give you automounter prefixes, which can go away. We do all this
+@@ -657,7 +665,7 @@
+ fi
+
+ echo $ac_n "checking host system type""... $ac_c" 1>&6
+-echo "configure:661: checking host system type" >&5
++echo "configure:669: checking host system type" >&5
+
+ host_alias=$host
+ case "$host_alias" in
+@@ -718,9 +726,13 @@
machine=hp9000s300 ;;
powerpc-apple-netbsd*) machine=macppc ;;
mips-*-netbsd*) machine=pmax ;;
+ mipsel-*-netbsd*) machine=pmax ;;
-+ mipseb-*-netbsd*) machine=mips ;; # HF what else?
++ mipsev-*-netbsd*) machine=mips ;; # HF: what else?
ns32k-*-netbsd*) machine=ns32000 ;;
- sparc-*-netbsd*) machine=sparc ;;
+ powerpc-*-netbsd*) machine=macppc ;;
@@ -27,23 +49,1497 @@ $NetBSD: patch-ab,v 1.13 2001/10/06 22:04:22 hubertf Exp $
esac
;;
-@@ -4903,6 +4910,64 @@
- cat >> confdefs.h <<\EOF
- #define HAVE_AIX_SMT_EXP 1
+@@ -1613,7 +1625,7 @@
+ * ) # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:1617: checking for $ac_word" >&5
++echo "configure:1629: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1643,7 +1655,7 @@
+ # Extract the first word of "cc", so it can be a program name with args.
+ set dummy cc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:1647: checking for $ac_word" >&5
++echo "configure:1659: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1694,7 +1706,7 @@
+ # Extract the first word of "cl", so it can be a program name with args.
+ set dummy cl; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:1698: checking for $ac_word" >&5
++echo "configure:1710: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1726,7 +1738,7 @@
+ fi
+
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+-echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
++echo "configure:1742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+@@ -1737,12 +1749,12 @@
+
+ cat > conftest.$ac_ext << EOF
+
+-#line 1741 "configure"
++#line 1753 "configure"
+ #include "confdefs.h"
+
+ main(){return(0);}
+ EOF
+-if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ ac_cv_prog_cc_works=yes
+ # If we can't run a trivial program, we are probably using a cross compiler.
+ if (./conftest; exit) 2>/dev/null; then
+@@ -1768,12 +1780,12 @@
+ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
+-echo "configure:1772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
++echo "configure:1784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+ echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ cross_compiling=$ac_cv_prog_cc_cross
+
+ echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+-echo "configure:1777: checking whether we are using GNU C" >&5
++echo "configure:1789: checking whether we are using GNU C" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1782,7 +1794,7 @@
+ yes;
+ #endif
+ EOF
+-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
++if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+ ac_cv_prog_gcc=yes
+ else
+ ac_cv_prog_gcc=no
+@@ -1801,7 +1813,7 @@
+ ac_save_CFLAGS="$CFLAGS"
+ CFLAGS=
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+-echo "configure:1805: checking whether ${CC-cc} accepts -g" >&5
++echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1881,7 +1893,7 @@
+ #### #undef clause to src/config.h.in for autoconf to modify.
+
+ echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+-echo "configure:1885: checking whether ln -s works" >&5
++echo "configure:1897: checking whether ln -s works" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1902,7 +1914,7 @@
+ fi
+
+ echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+-echo "configure:1906: checking how to run the C preprocessor" >&5
++echo "configure:1918: checking how to run the C preprocessor" >&5
+ # On Suns, sometimes $CPP names a directory.
+ if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+@@ -1917,13 +1929,13 @@
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp.
+ cat > conftest.$ac_ext <<EOF
+-#line 1921 "configure"
++#line 1933 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ :
+@@ -1934,13 +1946,13 @@
+ rm -rf conftest*
+ CPP="${CC-cc} -E -traditional-cpp"
+ cat > conftest.$ac_ext <<EOF
+-#line 1938 "configure"
++#line 1950 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ :
+@@ -1951,13 +1963,13 @@
+ rm -rf conftest*
+ CPP="${CC-cc} -nologo -E"
+ cat > conftest.$ac_ext <<EOF
+-#line 1955 "configure"
++#line 1967 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ :
+@@ -1993,7 +2005,7 @@
+ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+-echo "configure:1997: checking for a BSD compatible install" >&5
++echo "configure:2009: checking for a BSD compatible install" >&5
+ if test -z "$INSTALL"; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2050,7 +2062,7 @@
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:2054: checking for $ac_word" >&5
++echo "configure:2066: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -2082,9 +2094,9 @@
+
+
+ echo $ac_n "checking for AIX""... $ac_c" 1>&6
+-echo "configure:2086: checking for AIX" >&5
++echo "configure:2098: checking for AIX" >&5
+ cat > conftest.$ac_ext <<EOF
+-#line 2088 "configure"
++#line 2100 "configure"
+ #include "confdefs.h"
+ #ifdef _AIX
+ yes
+@@ -2110,17 +2122,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:2114: checking for $ac_hdr" >&5
++echo "configure:2126: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2119 "configure"
++#line 2131 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -2147,12 +2159,12 @@
+ done
+
+ echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+-echo "configure:2151: checking for ANSI C header files" >&5
++echo "configure:2163: checking for ANSI C header files" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2156 "configure"
++#line 2168 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ #include <stdarg.h>
+@@ -2160,7 +2172,7 @@
+ #include <float.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -2177,7 +2189,7 @@
+ if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+-#line 2181 "configure"
++#line 2193 "configure"
+ #include "confdefs.h"
+ #include <string.h>
+ EOF
+@@ -2195,7 +2207,7 @@
+ if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+-#line 2199 "configure"
++#line 2211 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ EOF
+@@ -2216,7 +2228,7 @@
+ :
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2220 "configure"
++#line 2232 "configure"
+ #include "confdefs.h"
+ #include <ctype.h>
+ #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+@@ -2227,7 +2239,7 @@
+ exit (0); }
+
+ EOF
+-if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ :
+ else
+@@ -2251,12 +2263,12 @@
+ fi
+
+ echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
+-echo "configure:2255: checking whether time.h and sys/time.h may both be included" >&5
++echo "configure:2267: checking whether time.h and sys/time.h may both be included" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2260 "configure"
++#line 2272 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/time.h>
+@@ -2265,7 +2277,7 @@
+ struct tm *tp;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_header_time=yes
+ else
+@@ -2286,12 +2298,12 @@
+ fi
+
+ echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
+-echo "configure:2290: checking for sys_siglist declaration in signal.h or unistd.h" >&5
++echo "configure:2302: checking for sys_siglist declaration in signal.h or unistd.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2295 "configure"
++#line 2307 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <signal.h>
+@@ -2303,7 +2315,7 @@
+ char *msg = *(sys_siglist + 1);
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_decl_sys_siglist=yes
+ else
+@@ -2325,12 +2337,12 @@
+
+
+ echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
+-echo "configure:2329: checking for struct utimbuf" >&5
++echo "configure:2341: checking for struct utimbuf" >&5
+ if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2334 "configure"
++#line 2346 "configure"
+ #include "confdefs.h"
+ #ifdef TIME_WITH_SYS_TIME
+ #include <sys/time.h>
+@@ -2349,7 +2361,7 @@
+ static struct utimbuf x; x.actime = x.modtime;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ emacs_cv_struct_utimbuf=yes
+ else
+@@ -2370,12 +2382,12 @@
+ fi
+
+ echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+-echo "configure:2374: checking return type of signal handlers" >&5
++echo "configure:2386: checking return type of signal handlers" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2379 "configure"
++#line 2391 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <signal.h>
+@@ -2392,7 +2404,7 @@
+ int i;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_type_signal=void
+ else
+@@ -2412,12 +2424,12 @@
+
+
+ echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
+-echo "configure:2416: checking for struct timeval" >&5
++echo "configure:2428: checking for struct timeval" >&5
+ if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2421 "configure"
++#line 2433 "configure"
+ #include "confdefs.h"
+ #ifdef TIME_WITH_SYS_TIME
+ #include <sys/time.h>
+@@ -2433,7 +2445,7 @@
+ static struct timeval x; x.tv_sec = x.tv_usec;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ emacs_cv_struct_timeval=yes
+ else
+@@ -2455,12 +2467,12 @@
+ fi
+
+ echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+-echo "configure:2459: checking whether struct tm is in sys/time.h or time.h" >&5
++echo "configure:2471: checking whether struct tm is in sys/time.h or time.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2464 "configure"
++#line 2476 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <time.h>
+@@ -2468,7 +2480,7 @@
+ struct tm *tp; tp->tm_sec;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_struct_tm=time.h
+ else
+@@ -2489,12 +2501,12 @@
+ fi
+
+ echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
+-echo "configure:2493: checking for tm_zone in struct tm" >&5
++echo "configure:2505: checking for tm_zone in struct tm" >&5
+ if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2498 "configure"
++#line 2510 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <$ac_cv_struct_tm>
+@@ -2502,7 +2514,7 @@
+ struct tm tm; tm.tm_zone;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_struct_tm_zone=yes
+ else
+@@ -2522,12 +2534,12 @@
+
+ else
+ echo $ac_n "checking for tzname""... $ac_c" 1>&6
+-echo "configure:2526: checking for tzname" >&5
++echo "configure:2538: checking for tzname" >&5
+ if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2531 "configure"
++#line 2543 "configure"
+ #include "confdefs.h"
+ #include <time.h>
+ #ifndef tzname /* For SGI. */
+@@ -2537,7 +2549,7 @@
+ atoi(*tzname);
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_var_tzname=yes
+ else
+@@ -2560,12 +2572,12 @@
+
+
+ echo $ac_n "checking for working const""... $ac_c" 1>&6
+-echo "configure:2564: checking for working const" >&5
++echo "configure:2576: checking for working const" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2569 "configure"
++#line 2581 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -2614,7 +2626,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_const=yes
+ else
+@@ -2636,7 +2648,7 @@
+
+
+ echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
+-echo "configure:2640: checking whether ${MAKE-make} sets \${MAKE}" >&5
++echo "configure:2652: checking whether ${MAKE-make} sets \${MAKE}" >&5
+ set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2664,7 +2676,7 @@
+
+
+ echo $ac_n "checking for long file names""... $ac_c" 1>&6
+-echo "configure:2668: checking for long file names" >&5
++echo "configure:2680: checking for long file names" >&5
+ if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -2715,7 +2727,7 @@
+ # Uses ac_ vars as temps to allow command line to override cache and checks.
+ # --without-x overrides everything else, but does not touch the cache.
+ echo $ac_n "checking for X""... $ac_c" 1>&6
+-echo "configure:2719: checking for X" >&5
++echo "configure:2731: checking for X" >&5
+
+ # Check whether --with-x or --without-x was given.
+ if test "${with_x+set}" = set; then
+@@ -2777,12 +2789,12 @@
+
+ # First, try using that file with no special directory specified.
+ cat > conftest.$ac_ext <<EOF
+-#line 2781 "configure"
++#line 2793 "configure"
+ #include "confdefs.h"
+ #include <$x_direct_test_include>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -2851,7 +2863,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-l$x_direct_test_library $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 2855 "configure"
++#line 2867 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -2858,7 +2870,7 @@
+ ${x_direct_test_function}()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ LIBS="$ac_save_LIBS"
+ # We can link X programs with no special library path.
+@@ -3033,7 +3045,7 @@
+ echo "checking the machine- and system-dependent files to find out
+ - which libraries the lib-src programs will want, and
+ - whether the GNU malloc routines are usable" 1>&6
+-echo "configure:3037: checking the machine- and system-dependent files to find out
++echo "configure:3049: checking the machine- and system-dependent files to find out
+ - which libraries the lib-src programs will want, and
+ - whether the GNU malloc routines are usable" >&5
+
+@@ -3163,12 +3175,12 @@
+ GNU_MALLOC=yes
+ doug_lea_malloc=yes
+ echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
+-echo "configure:3167: checking for malloc_get_state" >&5
++echo "configure:3179: checking for malloc_get_state" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3172 "configure"
++#line 3184 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char malloc_get_state(); below. */
+@@ -3191,7 +3203,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_malloc_get_state=yes"
+ else
+@@ -3212,12 +3224,12 @@
+ fi
+
+ echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
+-echo "configure:3216: checking for malloc_set_state" >&5
++echo "configure:3228: checking for malloc_set_state" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3221 "configure"
++#line 3233 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char malloc_set_state(); below. */
+@@ -3240,7 +3252,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_malloc_set_state=yes"
+ else
+@@ -3261,12 +3273,12 @@
+ fi
+
+ echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
+-echo "configure:3265: checking whether __after_morecore_hook exists" >&5
++echo "configure:3277: checking whether __after_morecore_hook exists" >&5
+ if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3270 "configure"
++#line 3282 "configure"
+ #include "confdefs.h"
+ extern void (* __after_morecore_hook)();
+ int main() {
+@@ -3273,7 +3285,7 @@
+ __after_morecore_hook = 0
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_var___after_morecore_hook=yes
+ else
+@@ -3323,7 +3335,7 @@
+ LIBS="$libsrc_libs $LIBS"
+
+ echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
+-echo "configure:3327: checking for dnet_ntoa in -ldnet" >&5
++echo "configure:3339: checking for dnet_ntoa in -ldnet" >&5
+ ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3331,7 +3343,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-ldnet $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3335 "configure"
++#line 3347 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3342,7 +3354,7 @@
+ dnet_ntoa()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3371,7 +3383,7 @@
+
+
+ echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
+-echo "configure:3375: checking for main in -lXbsd" >&5
++echo "configure:3387: checking for main in -lXbsd" >&5
+ ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3379,7 +3391,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lXbsd $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3383 "configure"
++#line 3395 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -3386,7 +3398,7 @@
+ main()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3408,7 +3420,7 @@
+
+
+ echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
+-echo "configure:3412: checking for cma_open in -lpthreads" >&5
++echo "configure:3424: checking for cma_open in -lpthreads" >&5
+ ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3416,7 +3428,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lpthreads $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3420 "configure"
++#line 3432 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3427,7 +3439,7 @@
+ cma_open()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3456,7 +3468,7 @@
+
+
+ echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
+-echo "configure:3460: checking for XFree86 in /usr/X386" >&5
++echo "configure:3472: checking for XFree86 in /usr/X386" >&5
+ if test -d /usr/X386/include; then
+ HAVE_XFREE386=yes
+ : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
+@@ -3485,9 +3497,9 @@
+
+ if test "${opsys}" = "gnu-linux"; then
+ echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
+-echo "configure:3489: checking whether X on GNU/Linux needs -b to link" >&5
++echo "configure:3501: checking whether X on GNU/Linux needs -b to link" >&5
+ cat > conftest.$ac_ext <<EOF
+-#line 3491 "configure"
++#line 3503 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -3494,7 +3506,7 @@
+ XOpenDisplay ("foo");
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ xlinux_first_failure=no
+ else
+@@ -3514,7 +3526,7 @@
+ CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
+ LIBS="$LIBS -b i486-linuxaout"
+ cat > conftest.$ac_ext <<EOF
+-#line 3518 "configure"
++#line 3530 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -3521,7 +3533,7 @@
+ XOpenDisplay ("foo");
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ xlinux_second_failure=no
+ else
+@@ -3551,12 +3563,12 @@
+ XScreenNumberOfScreen XSetWMProtocols
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:3555: checking for $ac_func" >&5
++echo "configure:3567: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3560 "configure"
++#line 3572 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -3579,7 +3591,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -3607,12 +3619,12 @@
+
+ if test "${window_system}" = "x11"; then
+ echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
+-echo "configure:3611: checking X11 version 6" >&5
++echo "configure:3623: checking X11 version 6" >&5
+ if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3616 "configure"
++#line 3628 "configure"
+ #include "confdefs.h"
+ #include <X11/Xlib.h>
+ int main() {
+@@ -3622,7 +3634,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_x11_version_6=yes
+ else
+@@ -3647,12 +3659,12 @@
+
+ if test "${window_system}" = "x11"; then
+ echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
+-echo "configure:3651: checking X11 version 5" >&5
++echo "configure:3663: checking X11 version 5" >&5
+ if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3656 "configure"
++#line 3668 "configure"
+ #include "confdefs.h"
+ #include <X11/Xlib.h>
+ int main() {
+@@ -3662,7 +3674,7 @@
+
+ ; return 0; }
EOF
+-if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_x11_version_5=yes
+ else
+@@ -3690,12 +3702,12 @@
+ if test x"${USE_X_TOOLKIT}" = xmaybe; then
+ if test x"${HAVE_X11R5}" = xyes; then
+ echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
+-echo "configure:3694: checking X11 version 5 with Xaw" >&5
++echo "configure:3706: checking X11 version 5 with Xaw" >&5
+ if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3699 "configure"
++#line 3711 "configure"
+ #include "confdefs.h"
+
+ #include <X11/Intrinsic.h>
+@@ -3704,7 +3716,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_x11_version_5_with_xaw=yes
+ else
+@@ -3732,12 +3744,12 @@
+
+ if test "${USE_X_TOOLKIT}" != "none"; then
+ echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
+-echo "configure:3736: checking X11 toolkit version" >&5
++echo "configure:3748: checking X11 toolkit version" >&5
+ if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3741 "configure"
++#line 3753 "configure"
+ #include "confdefs.h"
+ #include <X11/Intrinsic.h>
+ int main() {
+@@ -3747,7 +3759,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_x11_toolkit_version_6=yes
+ else
+@@ -3777,7 +3789,7 @@
+ LIBS="-lXt $LIBS"
+ fi
+ echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
+-echo "configure:3781: checking for XmuConvertStandardSelection in -lXmu" >&5
++echo "configure:3793: checking for XmuConvertStandardSelection in -lXmu" >&5
+ ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3785,7 +3797,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lXmu $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3789 "configure"
++#line 3801 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3796,7 +3808,7 @@
+ XmuConvertStandardSelection()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3823,17 +3835,64 @@
+ echo "$ac_t""no" 1>&6
+ fi
+
++ if test x$HAVE_X11XTR6 = xyes; then
++ LIBS="$LIBS -lXpm"
++ echo $ac_n "checking for XawPixmapsInitialize in -lXaw""... $ac_c" 1>&6
++echo "configure:3842: checking for XawPixmapsInitialize in -lXaw" >&5
++ac_lib_var=`echo Xaw'_'XawPixmapsInitialize | sed 'y%./+-%__p_%'`
++if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ ac_save_LIBS="$LIBS"
++LIBS="-lXaw $LIBS"
++cat > conftest.$ac_ext <<EOF
++#line 3850 "configure"
++#include "confdefs.h"
++/* Override any gcc2 internal prototype to avoid an error. */
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char XawPixmapsInitialize();
++
++int main() {
++XawPixmapsInitialize()
++; return 0; }
++EOF
++if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++ rm -rf conftest*
++ eval "ac_cv_lib_$ac_lib_var=yes"
++else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_lib_$ac_lib_var=no"
++fi
++rm -f conftest*
++LIBS="$ac_save_LIBS"
+
+fi
++if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ LIBXPM="-lXpm"
++else
++ echo "$ac_t""no" 1>&6
++ LIBXPM=""
++fi
+
++ else
++ LIBXPM=""
++ fi
++
+ LIBS="$OLDLIBS"
+ fi
+
+ if test "${USE_X_TOOLKIT}" = "MOTIF"; then
+ echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
+-echo "configure:3832: checking for Motif version 2.1" >&5
++echo "configure:3891: checking for Motif version 2.1" >&5
+ if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3837 "configure"
++#line 3896 "configure"
+ #include "confdefs.h"
+ #include <Xm/Xm.h>
+ int main() {
+@@ -3844,7 +3903,7 @@
+ #endif
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ emacs_cv_motif_version_2_1=yes
+ else
+@@ -3864,7 +3923,7 @@
+ EOF
+
+ echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
+-echo "configure:3868: checking for XpCreateContext in -lXp" >&5
++echo "configure:3927: checking for XpCreateContext in -lXp" >&5
+ ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3872,7 +3931,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lXp $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3876 "configure"
++#line 3935 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3883,7 +3942,7 @@
+ XpCreateContext()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3915,12 +3974,12 @@
+
+ # If netdb.h doesn't declare h_errno, we must declare it by hand.
+ echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
+-echo "configure:3919: checking whether netdb declares h_errno" >&5
++echo "configure:3978: checking whether netdb declares h_errno" >&5
+ if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3924 "configure"
++#line 3983 "configure"
+ #include "confdefs.h"
+ #include <netdb.h>
+ int main() {
+@@ -3927,7 +3986,7 @@
+ return h_errno;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_netdb_declares_h_errno=yes
+ else
+@@ -3950,12 +4009,12 @@
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
+-echo "configure:3954: checking for working alloca.h" >&5
++echo "configure:4013: checking for working alloca.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3959 "configure"
++#line 4018 "configure"
+ #include "confdefs.h"
+ #include <alloca.h>
+ int main() {
+@@ -3962,7 +4021,7 @@
+ char *p = alloca(2 * sizeof(int));
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_header_alloca_h=yes
+ else
+@@ -3983,12 +4042,12 @@
+ fi
+
+ echo $ac_n "checking for alloca""... $ac_c" 1>&6
+-echo "configure:3987: checking for alloca" >&5
++echo "configure:4046: checking for alloca" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3992 "configure"
++#line 4051 "configure"
+ #include "confdefs.h"
+
+ #ifdef __GNUC__
+@@ -4016,7 +4075,7 @@
+ char *p = (char *) alloca(1);
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_func_alloca_works=yes
+ else
+@@ -4048,12 +4107,12 @@
+
+
+ echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
+-echo "configure:4052: checking whether alloca needs Cray hooks" >&5
++echo "configure:4111: checking whether alloca needs Cray hooks" >&5
+ if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4057 "configure"
++#line 4116 "configure"
+ #include "confdefs.h"
+ #if defined(CRAY) && ! defined(CRAY2)
+ webecray
+@@ -4078,12 +4137,12 @@
+ if test $ac_cv_os_cray = yes; then
+ for ac_func in _getb67 GETB67 getb67; do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4082: checking for $ac_func" >&5
++echo "configure:4141: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4087 "configure"
++#line 4146 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4106,7 +4165,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4133,7 +4192,7 @@
+ fi
+
+ echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
+-echo "configure:4137: checking stack direction for C alloca" >&5
++echo "configure:4196: checking stack direction for C alloca" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4141,7 +4200,7 @@
+ ac_cv_c_stack_direction=0
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4145 "configure"
++#line 4204 "configure"
+ #include "confdefs.h"
+ find_stack_direction ()
+ {
+@@ -4160,7 +4219,7 @@
+ exit (find_stack_direction() < 0);
+ }
+ EOF
+-if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ ac_cv_c_stack_direction=1
+ else
+@@ -4185,7 +4244,7 @@
+ # fmod, logb, and frexp are found in -lm on most systems.
+ # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
+ echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
+-echo "configure:4189: checking for sqrt in -lm" >&5
++echo "configure:4248: checking for sqrt in -lm" >&5
+ ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4193,7 +4252,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lm $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4197 "configure"
++#line 4256 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4204,7 +4263,7 @@
+ sqrt()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4234,7 +4293,7 @@
+
+ # Check for mail-locking functions in a "mail" library
+ echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
+-echo "configure:4238: checking for maillock in -lmail" >&5
++echo "configure:4297: checking for maillock in -lmail" >&5
+ ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4242,7 +4301,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lmail $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4246 "configure"
++#line 4305 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4253,7 +4312,7 @@
+ maillock()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4275,12 +4334,12 @@
+ for ac_func in touchlock
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4279: checking for $ac_func" >&5
++echo "configure:4338: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4284 "configure"
++#line 4343 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4303,7 +4362,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4331,17 +4390,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:4335: checking for $ac_hdr" >&5
++echo "configure:4394: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4340 "configure"
++#line 4399 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4379,12 +4438,12 @@
+ utimes setrlimit setpgid getcwd shutdown strftime
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4383: checking for $ac_func" >&5
++echo "configure:4442: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4388 "configure"
++#line 4447 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4407,7 +4466,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4436,12 +4495,12 @@
+ for ac_func in grantpt
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4440: checking for $ac_func" >&5
++echo "configure:4499: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4445 "configure"
++#line 4504 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4464,7 +4523,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4493,12 +4552,12 @@
+ for ac_func in getpt
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4497: checking for $ac_func" >&5
++echo "configure:4556: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4502 "configure"
++#line 4561 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4521,7 +4580,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4551,7 +4610,7 @@
+ # It's better to believe a function is not available
+ # than to expect to find it in ncurses.
+ echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
+-echo "configure:4555: checking for tparm in -lncurses" >&5
++echo "configure:4614: checking for tparm in -lncurses" >&5
+ ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4559,7 +4618,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lncurses $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4563 "configure"
++#line 4622 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4570,7 +4629,7 @@
+ tparm()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4601,7 +4660,7 @@
+ # Solaris requires -lintl if you want strerror (which calls dgettext)
+ # to return localized messages.
+ echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
+-echo "configure:4605: checking for dgettext in -lintl" >&5
++echo "configure:4664: checking for dgettext in -lintl" >&5
+ ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4609,7 +4668,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lintl $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4613 "configure"
++#line 4672 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4620,7 +4679,7 @@
+ dgettext()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4649,7 +4708,7 @@
+
+
+ echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
+-echo "configure:4653: checking whether localtime caches TZ" >&5
++echo "configure:4712: checking whether localtime caches TZ" >&5
+ if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4659,7 +4718,7 @@
+ emacs_cv_localtime_cache=yes
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4663 "configure"
++#line 4722 "configure"
+ #include "confdefs.h"
+ #include <time.h>
+ #if STDC_HEADERS
+@@ -4694,7 +4753,7 @@
+ exit (0);
+ }
+ EOF
+-if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ emacs_cv_localtime_cache=no
+ else
+@@ -4722,12 +4781,12 @@
+
+ if test "x$HAVE_TIMEVAL" = xyes; then
+ echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
+-echo "configure:4726: checking whether gettimeofday can accept two arguments" >&5
++echo "configure:4785: checking whether gettimeofday can accept two arguments" >&5
+ if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4731 "configure"
++#line 4790 "configure"
+ #include "confdefs.h"
+
+ #ifdef TIME_WITH_SYS_TIME
+@@ -4749,7 +4808,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ emacs_cv_gettimeofday_two_arguments=yes
+ else
+@@ -4772,12 +4831,12 @@
+
+ ok_so_far=yes
+ echo $ac_n "checking for socket""... $ac_c" 1>&6
+-echo "configure:4776: checking for socket" >&5
++echo "configure:4835: checking for socket" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4781 "configure"
++#line 4840 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char socket(); below. */
+@@ -4800,7 +4859,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_socket=yes"
+ else
+@@ -4823,17 +4882,17 @@
+ if test $ok_so_far = yes; then
+ ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
+-echo "configure:4827: checking for netinet/in.h" >&5
++echo "configure:4886: checking for netinet/in.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4832 "configure"
++#line 4891 "configure"
+ #include "confdefs.h"
+ #include <netinet/in.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4859,17 +4918,17 @@
+ if test $ok_so_far = yes; then
+ ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
+-echo "configure:4863: checking for arpa/inet.h" >&5
++echo "configure:4922: checking for arpa/inet.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4868 "configure"
++#line 4927 "configure"
+ #include "confdefs.h"
+ #include <arpa/inet.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4906,6 +4965,64 @@
+
+ fi
+
+if test "x$with_ipv6" = xyes; then
+ for ac_func in getaddrinfo
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-+echo "configure:4796: checking for $ac_func" >&5
++echo "configure:4973: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
-+#line 4801 "configure"
++#line 4978 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
@@ -66,7 +1562,7 @@ $NetBSD: patch-ab,v 1.13 2001/10/06 22:04:22 hubertf Exp $
+
+; return 0; }
+EOF
-+if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+else
@@ -89,6 +1585,17 @@ $NetBSD: patch-ab,v 1.13 2001/10/06 22:04:22 hubertf Exp $
+ echo "$ac_t""no" 1>&6
+fi
+done
++
++fi
++
+ # Set up the CFLAGS for real compilation, so we can substitute it.
+ CFLAGS="$REAL_CFLAGS"
- fi
-
+@@ -5211,6 +5328,7 @@
+ s%@INSTALL_DATA@%$INSTALL_DATA%g
+ s%@YACC@%$YACC%g
+ s%@SET_MAKE@%$SET_MAKE%g
++s%@LIBXPM@%$LIBXPM%g
+ s%@ALLOCA@%$ALLOCA%g
+ s%@version@%$version%g
+ s%@configuration@%$configuration%g
diff --git a/editors/emacs/patches/patch-af b/editors/emacs/patches/patch-af
index 47bfd66bc97..b8e38c006e4 100644
--- a/editors/emacs/patches/patch-af
+++ b/editors/emacs/patches/patch-af
@@ -1,7 +1,16 @@
-$NetBSD: patch-af,v 1.5 1999/02/04 14:54:25 frueauf Exp $
+$NetBSD: patch-af,v 1.6 2002/10/26 19:47:07 bouyer Exp $
---- src/Makefile.in.orig Sun Aug 2 02:29:21 1998
-+++ src/Makefile.in Sun Jan 31 14:36:49 1999
+--- src/Makefile.in.orig Mon Apr 26 07:19:42 1999
++++ src/Makefile.in Tue Oct 22 15:55:06 2002
+@@ -329,7 +329,7 @@
+ #ifdef USE_X_TOOLKIT
+ #define @X_TOOLKIT_TYPE@
+ #if defined (LUCID) || defined (ATHENA)
+-LIBW= -lXaw
++LIBW= -lXaw @LIBXPM@
+ #endif
+ #ifdef MOTIF
+ #if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
@@ -402,7 +402,7 @@
ask GCC explicitly where to find libgcc.a. */
diff --git a/editors/emacs/patches/patch-bg b/editors/emacs/patches/patch-bg
index ec22b1ff8e5..3426d791316 100644
--- a/editors/emacs/patches/patch-bg
+++ b/editors/emacs/patches/patch-bg
@@ -1,7 +1,7 @@
-$NetBSD: patch-bg,v 1.4 2001/10/06 22:04:22 hubertf Exp $
+$NetBSD: patch-bg,v 1.5 2002/10/26 19:47:07 bouyer Exp $
--- configure.in.orig Mon Jun 5 17:42:49 2000
-+++ configure.in
++++ configure.in Tue Oct 22 15:59:01 2002
@@ -66,6 +66,8 @@
esac
with_x_toolkit=$val
@@ -26,14 +26,29 @@ $NetBSD: patch-bg,v 1.4 2001/10/06 22:04:22 hubertf Exp $
esac
;;
-@@ -1745,6 +1751,10 @@
+@@ -1594,6 +1600,14 @@
+ LIBS="-lXt $LIBS"
+ fi
+ AC_CHECK_LIB(Xmu, XmuConvertStandardSelection)
++ if test x$HAVE_X11XTR6 = xyes; then
++dnl Check if Xaw needs Xpm
++ LIBS="$LIBS -lXpm"
++ AC_CHECK_LIB(Xaw, XawPixmapsInitialize, [ LIBXPM="-lXpm" ], [ LIBXPM=""])
++ else
++ LIBXPM=""
++ fi
++ AC_SUBST(LIBXPM)
+ LIBS="$OLDLIBS"
+ fi
- if test -f /usr/lpp/X11/bin/smt.exp; then
+@@ -1747,6 +1761,10 @@
AC_DEFINE(HAVE_AIX_SMT_EXP)
-+fi
-+
-+if test "x$with_ipv6" = xyes; then
-+ AC_CHECK_FUNCS(getaddrinfo)
fi
++if test "x$with_ipv6" = xyes; then
++ AC_CHECK_FUNCS(getaddrinfo)
++fi
++
# Set up the CFLAGS for real compilation, so we can substitute it.
+ CFLAGS="$REAL_CFLAGS"
+