From bf153ff9e494edee35e29aa31c4d53cf5f394e5d Mon Sep 17 00:00:00 2001 From: bouyer Date: Sat, 26 Oct 2002 19:47:06 +0000 Subject: Xaw may need xpm, add support for this in configure. --- editors/emacs/distinfo | 8 +- editors/emacs/patches/patch-ab | 1541 +++++++++++++++++++++++++++++++++++++++- editors/emacs/patches/patch-af | 15 +- editors/emacs/patches/patch-bg | 31 +- 4 files changed, 1563 insertions(+), 32 deletions(-) (limited to 'editors/emacs') 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 < + 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 < + 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 < + 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 <&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 + 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 < + #include +@@ -2160,7 +2172,7 @@ + #include + 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 +@@ -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 +@@ -2216,7 +2228,7 @@ + : + else + cat > conftest.$ac_ext < + #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 < + #include +@@ -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 < + #include +@@ -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 < +@@ -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 < + #include +@@ -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 < +@@ -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 < + #include +@@ -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 < + #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 < + #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 <&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 + 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 <&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 <&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 <&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 <&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 <&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 <&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 <&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 <&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 <&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 <&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 < + 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 < + 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 < +@@ -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 < + 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 <&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 <&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 < + 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 <&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 < + 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 < + 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 <&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 <&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 <&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 <&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 <&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 <&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 <&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 + 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 <&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 <&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 <&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 <&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 <&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 < + #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 <&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 <&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 + 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 + 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 <&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" + -- cgit v1.2.3