| @@ -1,270 +1,273 @@ | | | @@ -1,270 +1,273 @@ |
1 | $NetBSD: patch-ab,v 1.6 2013/07/05 13:46:13 ryoon Exp $ | | 1 | $NetBSD: patch-ab,v 1.7 2013/07/05 13:47:02 ryoon Exp $ |
2 | | | 2 | |
3 | Caution: the extra cpp checking (the three hunks containing "Should be | | 3 | Caution: the extra cpp checking (the three hunks containing "Should be |
4 | one line") is manually hacked and not reflected in configure.in; do | | 4 | one line") is manually hacked and not reflected in configure.in; do |
5 | not regenerate configure with autoconf without merging it. This | | 5 | not regenerate configure with autoconf without merging it. This |
6 | checking is required because somewhere between gcc 4.1 and 4.5 cpp | | 6 | checking is required because somewhere between gcc 4.1 and 4.5 cpp |
7 | started doing regrettable things with backslash-escaped newlines. | | 7 | started doing regrettable things with backslash-escaped newlines. |
8 | | | 8 | |
| | | 9 | * Fix build on NetBSD 6.99.23, gcc -E -traditional-cpp with native X |
| | | 10 | results syntax error. Use -traditional-cpp for Makefile generation only. |
| | | 11 | |
9 | --- configure.orig 2000-06-12 20:05:56.000000000 +0000 | | 12 | --- configure.orig 2000-06-12 20:05:56.000000000 +0000 |
10 | +++ configure | | 13 | +++ configure |
11 | @@ -20,6 +20,8 @@ ac_help="$ac_help | | 14 | @@ -20,6 +20,8 @@ ac_help="$ac_help |
12 | ac_help="$ac_help | | 15 | ac_help="$ac_help |
13 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" | | 16 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" |
14 | ac_help="$ac_help | | 17 | ac_help="$ac_help |
15 | + --with-ipv6 support IPv6 stack" | | 18 | + --with-ipv6 support IPv6 stack" |
16 | +ac_help="$ac_help | | 19 | +ac_help="$ac_help |
17 | --with-x use the X Window System" | | 20 | --with-x use the X Window System" |
18 | | | 21 | |
19 | # Initialize some variables set by options. | | 22 | # Initialize some variables set by options. |
20 | @@ -584,6 +586,12 @@ Currently, \`yes', \`athena' and \`lucid | | 23 | @@ -584,6 +586,12 @@ Currently, \`yes', \`athena' and \`lucid |
21 | | | 24 | |
22 | fi | | 25 | fi |
23 | | | 26 | |
24 | +# Check whether --with-ipv6 or --without-ipv6 was given. | | 27 | +# Check whether --with-ipv6 or --without-ipv6 was given. |
25 | +if test "${with_ipv6+set}" = set; then | | 28 | +if test "${with_ipv6+set}" = set; then |
26 | + withval="$with_ipv6" | | 29 | + withval="$with_ipv6" |
27 | + : | | 30 | + : |
28 | +fi | | 31 | +fi |
29 | + | | 32 | + |
30 | | | 33 | |
31 | #### Make srcdir absolute, if it isn't already. It's important to | | 34 | #### Make srcdir absolute, if it isn't already. It's important to |
32 | #### avoid running the path through pwd unnecessary, since pwd can | | 35 | #### avoid running the path through pwd unnecessary, since pwd can |
33 | @@ -712,15 +720,20 @@ case "${canonical}" in | | 36 | @@ -712,15 +720,20 @@ case "${canonical}" in |
34 | opsys=netbsd | | 37 | opsys=netbsd |
35 | case "${canonical}" in | | 38 | case "${canonical}" in |
36 | alpha*-*-netbsd*) machine=alpha ;; | | 39 | alpha*-*-netbsd*) machine=alpha ;; |
37 | + hppa*-*-netbsd*) machine=hp800 ;; | | 40 | + hppa*-*-netbsd*) machine=hp800 ;; |
38 | i[3456]86-*-netbsd*) machine=intel386 ;; | | 41 | i[3456]86-*-netbsd*) machine=intel386 ;; |
39 | m68k-*-netbsd*) | | 42 | m68k-*-netbsd*) |
40 | # This is somewhat bogus. | | 43 | # This is somewhat bogus. |
41 | machine=hp9000s300 ;; | | 44 | machine=hp9000s300 ;; |
42 | - powerpc-apple-netbsd*) machine=macppc ;; | | 45 | - powerpc-apple-netbsd*) machine=macppc ;; |
43 | mips-*-netbsd*) machine=pmax ;; | | 46 | mips-*-netbsd*) machine=pmax ;; |
44 | + mipsel-*-netbsd*) machine=pmax ;; | | 47 | + mipsel-*-netbsd*) machine=pmax ;; |
45 | + mipsev-*-netbsd*) machine=mips ;; # HF: what else? | | 48 | + mipsev-*-netbsd*) machine=mips ;; # HF: what else? |
46 | ns32k-*-netbsd*) machine=ns32000 ;; | | 49 | ns32k-*-netbsd*) machine=ns32000 ;; |
47 | - sparc-*-netbsd*) machine=sparc ;; | | 50 | - sparc-*-netbsd*) machine=sparc ;; |
48 | + powerpc-*-netbsd*) machine=macppc ;; | | 51 | + powerpc-*-netbsd*) machine=macppc ;; |
49 | + sparc*-*-netbsd*) machine=sparc ;; | | 52 | + sparc*-*-netbsd*) machine=sparc ;; |
50 | vax-*-netbsd*) machine=vax ;; | | 53 | vax-*-netbsd*) machine=vax ;; |
51 | + arm*-*-netbsd*) machine=arm ;; | | 54 | + arm*-*-netbsd*) machine=arm ;; |
52 | + x86_64-*-netbsd*) machine=amd64 ;; | | 55 | + x86_64-*-netbsd*) machine=amd64 ;; |
53 | esac | | 56 | esac |
54 | ;; | | 57 | ;; |
55 | | | 58 | |
56 | @@ -1519,6 +1532,7 @@ case "${canonical}" in | | 59 | @@ -1519,6 +1532,7 @@ case "${canonical}" in |
57 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | | 60 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
58 | *-386bsd* ) opsys=386bsd ;; | | 61 | *-386bsd* ) opsys=386bsd ;; |
59 | *-freebsd* ) opsys=freebsd ;; | | 62 | *-freebsd* ) opsys=freebsd ;; |
60 | + *-dragonfly* ) opsys=dragonfly ;; | | 63 | + *-dragonfly* ) opsys=dragonfly ;; |
61 | *-nextstep* ) opsys=nextstep ;; | | 64 | *-nextstep* ) opsys=nextstep ;; |
62 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | | 65 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
63 | esac | | 66 | esac |
64 | @@ -1916,15 +1930,20 @@ else | | 67 | @@ -1916,15 +1930,20 @@ else |
65 | CPP="${CC-cc} -E" | | 68 | CPP="${CC-cc} -E" |
66 | # On the NeXT, cc -E runs the code through the compiler's parser, | | 69 | # On the NeXT, cc -E runs the code through the compiler's parser, |
67 | # not just through cpp. | | 70 | # not just through cpp. |
68 | + # And, gcc 4.5? and up does not preserve escaped newlines, which is | | 71 | + # And, gcc 4.5? and up does not preserve escaped newlines, which is |
69 | + # fatal for preprocessing makefiles. | | 72 | + # fatal for preprocessing makefiles. |
70 | cat > conftest.$ac_ext <<EOF | | 73 | cat > conftest.$ac_ext <<EOF |
71 | #line 1921 "configure" | | 74 | #line 1921 "configure" |
72 | #include "confdefs.h" | | 75 | #include "confdefs.h" |
73 | #include <assert.h> | | 76 | #include <assert.h> |
74 | Syntax Error | | 77 | Syntax Error |
75 | +Should be one line. | | 78 | +Should be one line. |
76 | EOF | | 79 | EOF |
77 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | | 80 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
78 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" | | 81 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" |
79 | { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | | 82 | { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
80 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | | 83 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
81 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ | | 84 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ |
82 | + grep -L "Should *be one line" conftest2.out \ | | 85 | + grep -L "Should *be one line" conftest2.out \ |
83 | + ` | | 86 | + ` |
84 | if test -z "$ac_err"; then | | 87 | if test -z "$ac_err"; then |
85 | : | | 88 | : |
86 | else | | 89 | else |
87 | @@ -1932,16 +1951,19 @@ else | | 90 | @@ -1932,16 +1951,19 @@ else |
88 | echo "configure: failed program was:" >&5 | | 91 | echo "configure: failed program was:" >&5 |
89 | cat conftest.$ac_ext >&5 | | 92 | cat conftest.$ac_ext >&5 |
90 | rm -rf conftest* | | 93 | rm -rf conftest* |
91 | - CPP="${CC-cc} -E -traditional-cpp" | | 94 | - CPP="${CC-cc} -E -traditional-cpp" |
92 | + CPP="${CC-cc} -E" | | 95 | + CPP="${CC-cc} -E" |
93 | cat > conftest.$ac_ext <<EOF | | 96 | cat > conftest.$ac_ext <<EOF |
94 | #line 1938 "configure" | | 97 | #line 1938 "configure" |
95 | #include "confdefs.h" | | 98 | #include "confdefs.h" |
96 | #include <assert.h> | | 99 | #include <assert.h> |
97 | Syntax Error | | 100 | Syntax Error |
98 | +Should be one line. | | 101 | +Should be one line. |
99 | EOF | | 102 | EOF |
100 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | | 103 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
101 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" | | 104 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" |
102 | { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | | 105 | { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
103 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | | 106 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
104 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ | | 107 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ |
105 | + grep -L "Should *be one line" conftest2.out \ | | 108 | + grep -L "Should *be one line" conftest2.out \ |
106 | + ` | | 109 | + ` |
107 | if test -z "$ac_err"; then | | 110 | if test -z "$ac_err"; then |
108 | : | | 111 | : |
109 | else | | 112 | else |
110 | @@ -1955,10 +1977,13 @@ else | | 113 | @@ -1955,10 +1977,13 @@ else |
111 | #include "confdefs.h" | | 114 | #include "confdefs.h" |
112 | #include <assert.h> | | 115 | #include <assert.h> |
113 | Syntax Error | | 116 | Syntax Error |
114 | +Should be one line. | | 117 | +Should be one line. |
115 | EOF | | 118 | EOF |
116 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | | 119 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
117 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" | | 120 | +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" |
118 | { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | | 121 | { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
119 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | | 122 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
120 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ | | 123 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"; \ |
121 | + grep -L "Should *be one line" conftest2.out \ | | 124 | + grep -L "Should *be one line" conftest2.out \ |
122 | + ` | | 125 | + ` |
123 | if test -z "$ac_err"; then | | 126 | if test -z "$ac_err"; then |
124 | : | | 127 | : |
125 | else | | 128 | else |
126 | @@ -3823,6 +3848,53 @@ else | | 129 | @@ -3823,6 +3848,53 @@ else |
127 | echo "$ac_t""no" 1>&6 | | 130 | echo "$ac_t""no" 1>&6 |
128 | fi | | 131 | fi |
129 | | | 132 | |
130 | + if test x$HAVE_X11XTR6 = xyes; then | | 133 | + if test x$HAVE_X11XTR6 = xyes; then |
131 | + LIBS="$LIBS -lXpm" | | 134 | + LIBS="$LIBS -lXpm" |
132 | + echo $ac_n "checking for XawPixmapsInitialize in -lXaw""... $ac_c" 1>&6 | | 135 | + echo $ac_n "checking for XawPixmapsInitialize in -lXaw""... $ac_c" 1>&6 |
133 | +echo "configure:3842: checking for XawPixmapsInitialize in -lXaw" >&5 | | 136 | +echo "configure:3842: checking for XawPixmapsInitialize in -lXaw" >&5 |
134 | +ac_lib_var=`echo Xaw'_'XawPixmapsInitialize | sed 'y%./+-%__p_%'` | | 137 | +ac_lib_var=`echo Xaw'_'XawPixmapsInitialize | sed 'y%./+-%__p_%'` |
135 | +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | | 138 | +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
136 | + echo $ac_n "(cached) $ac_c" 1>&6 | | 139 | + echo $ac_n "(cached) $ac_c" 1>&6 |
137 | +else | | 140 | +else |
138 | + ac_save_LIBS="$LIBS" | | 141 | + ac_save_LIBS="$LIBS" |
139 | +LIBS="-lXaw $LIBS" | | 142 | +LIBS="-lXaw $LIBS" |
140 | +cat > conftest.$ac_ext <<EOF | | 143 | +cat > conftest.$ac_ext <<EOF |
141 | +#line 3850 "configure" | | 144 | +#line 3850 "configure" |
142 | +#include "confdefs.h" | | 145 | +#include "confdefs.h" |
143 | +/* Override any gcc2 internal prototype to avoid an error. */ | | 146 | +/* Override any gcc2 internal prototype to avoid an error. */ |
144 | +/* We use char because int might match the return type of a gcc2 | | 147 | +/* We use char because int might match the return type of a gcc2 |
145 | + builtin and then its argument prototype would still apply. */ | | 148 | + builtin and then its argument prototype would still apply. */ |
146 | +char XawPixmapsInitialize(); | | 149 | +char XawPixmapsInitialize(); |
147 | + | | 150 | + |
148 | +int main() { | | 151 | +int main() { |
149 | +XawPixmapsInitialize() | | 152 | +XawPixmapsInitialize() |
150 | +; return 0; } | | 153 | +; return 0; } |
151 | +EOF | | 154 | +EOF |
152 | +if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | | 155 | +if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
153 | + rm -rf conftest* | | 156 | + rm -rf conftest* |
154 | + eval "ac_cv_lib_$ac_lib_var=yes" | | 157 | + eval "ac_cv_lib_$ac_lib_var=yes" |
155 | +else | | 158 | +else |
156 | + echo "configure: failed program was:" >&5 | | 159 | + echo "configure: failed program was:" >&5 |
157 | + cat conftest.$ac_ext >&5 | | 160 | + cat conftest.$ac_ext >&5 |
158 | + rm -rf conftest* | | 161 | + rm -rf conftest* |
159 | + eval "ac_cv_lib_$ac_lib_var=no" | | 162 | + eval "ac_cv_lib_$ac_lib_var=no" |
160 | +fi | | 163 | +fi |
161 | +rm -f conftest* | | 164 | +rm -f conftest* |
162 | +LIBS="$ac_save_LIBS" | | 165 | +LIBS="$ac_save_LIBS" |
163 | + | | 166 | + |
164 | +fi | | 167 | +fi |
165 | +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | | 168 | +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
166 | + echo "$ac_t""yes" 1>&6 | | 169 | + echo "$ac_t""yes" 1>&6 |
167 | + LIBXPM="-lXpm" | | 170 | + LIBXPM="-lXpm" |
168 | +else | | 171 | +else |
169 | + echo "$ac_t""no" 1>&6 | | 172 | + echo "$ac_t""no" 1>&6 |
170 | + LIBXPM="" | | 173 | + LIBXPM="" |
171 | +fi | | 174 | +fi |
172 | + | | 175 | + |
173 | + else | | 176 | + else |
174 | + LIBXPM="" | | 177 | + LIBXPM="" |
175 | + fi | | 178 | + fi |
176 | + | | 179 | + |
177 | LIBS="$OLDLIBS" | | 180 | LIBS="$OLDLIBS" |
178 | fi | | 181 | fi |
179 | | | 182 | |
180 | @@ -4906,6 +4978,64 @@ EOF | | 183 | @@ -4906,6 +4978,64 @@ EOF |
181 | | | 184 | |
182 | fi | | 185 | fi |
183 | | | 186 | |
184 | +if test "x$with_ipv6" = xyes; then | | 187 | +if test "x$with_ipv6" = xyes; then |
185 | + for ac_func in getaddrinfo | | 188 | + for ac_func in getaddrinfo |
186 | +do | | 189 | +do |
187 | +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | | 190 | +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
188 | +echo "configure:4973: checking for $ac_func" >&5 | | 191 | +echo "configure:4973: checking for $ac_func" >&5 |
189 | +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | | 192 | +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
190 | + echo $ac_n "(cached) $ac_c" 1>&6 | | 193 | + echo $ac_n "(cached) $ac_c" 1>&6 |
191 | +else | | 194 | +else |
192 | + cat > conftest.$ac_ext <<EOF | | 195 | + cat > conftest.$ac_ext <<EOF |
193 | +#line 4978 "configure" | | 196 | +#line 4978 "configure" |
194 | +#include "confdefs.h" | | 197 | +#include "confdefs.h" |
195 | +/* System header to define __stub macros and hopefully few prototypes, | | 198 | +/* System header to define __stub macros and hopefully few prototypes, |
196 | + which can conflict with char $ac_func(); below. */ | | 199 | + which can conflict with char $ac_func(); below. */ |
197 | +#include <assert.h> | | 200 | +#include <assert.h> |
198 | +/* Override any gcc2 internal prototype to avoid an error. */ | | 201 | +/* Override any gcc2 internal prototype to avoid an error. */ |
199 | +/* We use char because int might match the return type of a gcc2 | | 202 | +/* We use char because int might match the return type of a gcc2 |
200 | + builtin and then its argument prototype would still apply. */ | | 203 | + builtin and then its argument prototype would still apply. */ |
201 | +char $ac_func(); | | 204 | +char $ac_func(); |
202 | + | | 205 | + |
203 | +int main() { | | 206 | +int main() { |
204 | + | | 207 | + |
205 | +/* The GNU C library defines this for functions which it implements | | 208 | +/* The GNU C library defines this for functions which it implements |
206 | + to always fail with ENOSYS. Some functions are actually named | | 209 | + to always fail with ENOSYS. Some functions are actually named |
207 | + something starting with __ and the normal name is an alias. */ | | 210 | + something starting with __ and the normal name is an alias. */ |
208 | +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | | 211 | +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
209 | +choke me | | 212 | +choke me |
210 | +#else | | 213 | +#else |
211 | +$ac_func(); | | 214 | +$ac_func(); |
212 | +#endif | | 215 | +#endif |
213 | + | | 216 | + |
214 | +; return 0; } | | 217 | +; return 0; } |
215 | +EOF | | 218 | +EOF |
216 | +if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | | 219 | +if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
217 | + rm -rf conftest* | | 220 | + rm -rf conftest* |
218 | + eval "ac_cv_func_$ac_func=yes" | | 221 | + eval "ac_cv_func_$ac_func=yes" |
219 | +else | | 222 | +else |
220 | + echo "configure: failed program was:" >&5 | | 223 | + echo "configure: failed program was:" >&5 |
221 | + cat conftest.$ac_ext >&5 | | 224 | + cat conftest.$ac_ext >&5 |
222 | + rm -rf conftest* | | 225 | + rm -rf conftest* |
223 | + eval "ac_cv_func_$ac_func=no" | | 226 | + eval "ac_cv_func_$ac_func=no" |
224 | +fi | | 227 | +fi |
225 | +rm -f conftest* | | 228 | +rm -f conftest* |
226 | +fi | | 229 | +fi |
227 | + | | 230 | + |
228 | +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | | 231 | +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
229 | + echo "$ac_t""yes" 1>&6 | | 232 | + echo "$ac_t""yes" 1>&6 |
230 | + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | | 233 | + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
231 | + cat >> confdefs.h <<EOF | | 234 | + cat >> confdefs.h <<EOF |
232 | +#define $ac_tr_func 1 | | 235 | +#define $ac_tr_func 1 |
233 | +EOF | | 236 | +EOF |
234 | + | | 237 | + |
235 | +else | | 238 | +else |
236 | + echo "$ac_t""no" 1>&6 | | 239 | + echo "$ac_t""no" 1>&6 |
237 | +fi | | 240 | +fi |
238 | +done | | 241 | +done |
239 | + | | 242 | + |
240 | +fi | | 243 | +fi |
241 | + | | 244 | + |
242 | # Set up the CFLAGS for real compilation, so we can substitute it. | | 245 | # Set up the CFLAGS for real compilation, so we can substitute it. |
243 | CFLAGS="$REAL_CFLAGS" | | 246 | CFLAGS="$REAL_CFLAGS" |
244 | | | 247 | |
245 | @@ -5211,6 +5345,7 @@ s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | | 248 | @@ -5211,6 +5345,7 @@ s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
246 | s%@INSTALL_DATA@%$INSTALL_DATA%g | | 249 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
247 | s%@YACC@%$YACC%g | | 250 | s%@YACC@%$YACC%g |
248 | s%@SET_MAKE@%$SET_MAKE%g | | 251 | s%@SET_MAKE@%$SET_MAKE%g |
249 | +s%@LIBXPM@%$LIBXPM%g | | 252 | +s%@LIBXPM@%$LIBXPM%g |
250 | s%@ALLOCA@%$ALLOCA%g | | 253 | s%@ALLOCA@%$ALLOCA%g |
251 | s%@version@%$version%g | | 254 | s%@version@%$version%g |
252 | s%@configuration@%$configuration%g | | 255 | s%@configuration@%$configuration%g |
253 | @@ -5480,7 +5615,7 @@ echo creating lib-src/Makefile | | 256 | @@ -5480,7 +5615,7 @@ echo creating lib-src/Makefile |
254 | sed -e '1,/start of cpp stuff/d'\ | | 257 | sed -e '1,/start of cpp stuff/d'\ |
255 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | | 258 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ |
256 | < Makefile.c > junk.c | | 259 | < Makefile.c > junk.c |
257 | - $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | | 260 | - $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
258 | + $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | | 261 | + $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
259 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | | 262 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
260 | cat junk1.c junk2.c > Makefile.new | | 263 | cat junk1.c junk2.c > Makefile.new |
261 | rm -f junk.c junk1.c junk2.c | | 264 | rm -f junk.c junk1.c junk2.c |
262 | @@ -5496,7 +5631,7 @@ echo creating src/Makefile | | 265 | @@ -5496,7 +5631,7 @@ echo creating src/Makefile |
263 | sed -e '1,/start of cpp stuff/d'\ | | 266 | sed -e '1,/start of cpp stuff/d'\ |
264 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | | 267 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ |
265 | < Makefile.c > junk.c | | 268 | < Makefile.c > junk.c |
266 | - $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | | 269 | - $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
267 | + $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | | 270 | + $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ |
268 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | | 271 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
269 | cat junk1.c junk2.c > Makefile.new | | 272 | cat junk1.c junk2.c > Makefile.new |
270 | rm -f junk.c junk1.c junk2.c | | 273 | rm -f junk.c junk1.c junk2.c |