1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59. |
3 | # Generated by GNU Autoconf 2.61. |
4 | # |
4 | # |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
6 | # This configure script is free software; the Free Software Foundation |
7 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. |
8 | # gives unlimited permission to copy, distribute and modify it. |
8 | ## --------------------- ## |
9 | ## --------------------- ## |
9 | ## M4sh Initialization. ## |
10 | ## M4sh Initialization. ## |
10 | ## --------------------- ## |
11 | ## --------------------- ## |
11 | |
12 | |
12 | # Be Bourne compatible |
13 | # Be more Bourne compatible |
|
|
14 | DUALCASE=1; export DUALCASE # for MKS sh |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 | emulate sh |
16 | emulate sh |
15 | NULLCMD=: |
17 | NULLCMD=: |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 | # is contrary to our usage. Disable this feature. |
19 | # is contrary to our usage. Disable this feature. |
18 | alias -g '${1+"$@"}'='"$@"' |
20 | alias -g '${1+"$@"}'='"$@"' |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 | setopt NO_GLOB_SUBST |
20 | set -o posix |
|
|
21 | fi |
|
|
22 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
23 | |
|
|
24 | # Support unset when possible. |
|
|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
26 | as_unset=unset |
|
|
27 | else |
|
|
28 | as_unset=false |
|
|
29 | fi |
|
|
30 | |
|
|
31 | |
|
|
32 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
33 | $as_unset ENV MAIL MAILPATH |
|
|
34 | PS1='$ ' |
|
|
35 | PS2='> ' |
|
|
36 | PS4='+ ' |
|
|
37 | |
|
|
38 | # NLS nuisances. |
|
|
39 | for as_var in \ |
|
|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
42 | LC_TELEPHONE LC_TIME |
|
|
43 | do |
|
|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
45 | eval $as_var=C; export $as_var |
|
|
46 | else |
22 | else |
47 | $as_unset $as_var |
23 | case `(set -o) 2>/dev/null` in |
48 | fi |
24 | *posix*) set -o posix ;; |
49 | done |
25 | esac |
50 | |
26 | |
51 | # Required to use basename. |
|
|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
53 | as_expr=expr |
|
|
54 | else |
|
|
55 | as_expr=false |
|
|
56 | fi |
27 | fi |
57 | |
28 | |
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
|
59 | as_basename=basename |
|
|
60 | else |
|
|
61 | as_basename=false |
|
|
62 | fi |
|
|
63 | |
29 | |
64 | |
30 | |
65 | # Name of the executable. |
|
|
66 | as_me=`$as_basename "$0" || |
|
|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
68 | X"$0" : 'X\(//\)$' \| \ |
|
|
69 | X"$0" : 'X\(/\)$' \| \ |
|
|
70 | . : '\(.\)' 2>/dev/null || |
|
|
71 | echo X/"$0" | |
|
|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
74 | /^X\/\(\/\).*/{ s//\1/; q; } |
|
|
75 | s/.*/./; q'` |
|
|
76 | |
31 | |
77 | |
32 | # PATH needs CR |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
|
|
79 | # Avoid depending upon Character Ranges. |
33 | # Avoid depending upon Character Ranges. |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 | as_cr_digits='0123456789' |
37 | as_cr_digits='0123456789' |
… | |
… | |
94 | PATH_SEPARATOR=: |
48 | PATH_SEPARATOR=: |
95 | fi |
49 | fi |
96 | rm -f conf$$.sh |
50 | rm -f conf$$.sh |
97 | fi |
51 | fi |
98 | |
52 | |
|
|
53 | # Support unset when possible. |
|
|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
55 | as_unset=unset |
|
|
56 | else |
|
|
57 | as_unset=false |
|
|
58 | fi |
99 | |
59 | |
100 | as_lineno_1=$LINENO |
60 | |
101 | as_lineno_2=$LINENO |
61 | # IFS |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
62 | # We need space, tab and new line, in precisely that order. Quoting is |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
63 | # there to prevent editors from complaining about space-tab. |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
65 | # splitting by setting IFS to empty value.) |
|
|
66 | as_nl=' |
|
|
67 | ' |
|
|
68 | IFS=" "" $as_nl" |
|
|
69 | |
105 | # Find who we are. Look in the path if we contain no path at all |
70 | # Find who we are. Look in the path if we contain no directory separator. |
106 | # relative or not. |
|
|
107 | case $0 in |
71 | case $0 in |
108 | *[\\/]* ) as_myself=$0 ;; |
72 | *[\\/]* ) as_myself=$0 ;; |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 | for as_dir in $PATH |
74 | for as_dir in $PATH |
111 | do |
75 | do |
112 | IFS=$as_save_IFS |
76 | IFS=$as_save_IFS |
113 | test -z "$as_dir" && as_dir=. |
77 | test -z "$as_dir" && as_dir=. |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 | done |
79 | done |
|
|
80 | IFS=$as_save_IFS |
116 | |
81 | |
117 | ;; |
82 | ;; |
118 | esac |
83 | esac |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
120 | # in which case we are not to be found in the path. |
85 | # in which case we are not to be found in the path. |
121 | if test "x$as_myself" = x; then |
86 | if test "x$as_myself" = x; then |
122 | as_myself=$0 |
87 | as_myself=$0 |
|
|
88 | fi |
|
|
89 | if test ! -f "$as_myself"; then |
|
|
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
|
91 | { (exit 1); exit 1; } |
|
|
92 | fi |
|
|
93 | |
|
|
94 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
95 | for as_var in ENV MAIL MAILPATH |
|
|
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
97 | done |
|
|
98 | PS1='$ ' |
|
|
99 | PS2='> ' |
|
|
100 | PS4='+ ' |
|
|
101 | |
|
|
102 | # NLS nuisances. |
|
|
103 | for as_var in \ |
|
|
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
106 | LC_TELEPHONE LC_TIME |
|
|
107 | do |
|
|
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
109 | eval $as_var=C; export $as_var |
|
|
110 | else |
|
|
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
123 | fi |
112 | fi |
124 | if test ! -f "$as_myself"; then |
113 | done |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
114 | |
126 | { (exit 1); exit 1; }; } |
115 | # Required to use basename. |
127 | fi |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
128 | case $CONFIG_SHELL in |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
129 | '') |
118 | as_expr=expr |
|
|
119 | else |
|
|
120 | as_expr=false |
|
|
121 | fi |
|
|
122 | |
|
|
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
|
124 | as_basename=basename |
|
|
125 | else |
|
|
126 | as_basename=false |
|
|
127 | fi |
|
|
128 | |
|
|
129 | |
|
|
130 | # Name of the executable. |
|
|
131 | as_me=`$as_basename -- "$0" || |
|
|
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
133 | X"$0" : 'X\(//\)$' \| \ |
|
|
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
|
135 | echo X/"$0" | |
|
|
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
|
137 | s//\1/ |
|
|
138 | q |
|
|
139 | } |
|
|
140 | /^X\/\(\/\/\)$/{ |
|
|
141 | s//\1/ |
|
|
142 | q |
|
|
143 | } |
|
|
144 | /^X\/\(\/\).*/{ |
|
|
145 | s//\1/ |
|
|
146 | q |
|
|
147 | } |
|
|
148 | s/.*/./; q'` |
|
|
149 | |
|
|
150 | # CDPATH. |
|
|
151 | $as_unset CDPATH |
|
|
152 | |
|
|
153 | |
|
|
154 | if test "x$CONFIG_SHELL" = x; then |
|
|
155 | if (eval ":") 2>/dev/null; then |
|
|
156 | as_have_required=yes |
|
|
157 | else |
|
|
158 | as_have_required=no |
|
|
159 | fi |
|
|
160 | |
|
|
161 | if test $as_have_required = yes && (eval ": |
|
|
162 | (as_func_return () { |
|
|
163 | (exit \$1) |
|
|
164 | } |
|
|
165 | as_func_success () { |
|
|
166 | as_func_return 0 |
|
|
167 | } |
|
|
168 | as_func_failure () { |
|
|
169 | as_func_return 1 |
|
|
170 | } |
|
|
171 | as_func_ret_success () { |
|
|
172 | return 0 |
|
|
173 | } |
|
|
174 | as_func_ret_failure () { |
|
|
175 | return 1 |
|
|
176 | } |
|
|
177 | |
|
|
178 | exitcode=0 |
|
|
179 | if as_func_success; then |
|
|
180 | : |
|
|
181 | else |
|
|
182 | exitcode=1 |
|
|
183 | echo as_func_success failed. |
|
|
184 | fi |
|
|
185 | |
|
|
186 | if as_func_failure; then |
|
|
187 | exitcode=1 |
|
|
188 | echo as_func_failure succeeded. |
|
|
189 | fi |
|
|
190 | |
|
|
191 | if as_func_ret_success; then |
|
|
192 | : |
|
|
193 | else |
|
|
194 | exitcode=1 |
|
|
195 | echo as_func_ret_success failed. |
|
|
196 | fi |
|
|
197 | |
|
|
198 | if as_func_ret_failure; then |
|
|
199 | exitcode=1 |
|
|
200 | echo as_func_ret_failure succeeded. |
|
|
201 | fi |
|
|
202 | |
|
|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
204 | : |
|
|
205 | else |
|
|
206 | exitcode=1 |
|
|
207 | echo positional parameters were not saved. |
|
|
208 | fi |
|
|
209 | |
|
|
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
|
|
211 | |
|
|
212 | ( |
|
|
213 | as_lineno_1=\$LINENO |
|
|
214 | as_lineno_2=\$LINENO |
|
|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
|
217 | ") 2> /dev/null; then |
|
|
218 | : |
|
|
219 | else |
|
|
220 | as_candidate_shells= |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 | do |
223 | do |
133 | IFS=$as_save_IFS |
224 | IFS=$as_save_IFS |
134 | test -z "$as_dir" && as_dir=. |
225 | test -z "$as_dir" && as_dir=. |
135 | for as_base in sh bash ksh sh5; do |
|
|
136 | case $as_dir in |
226 | case $as_dir in |
137 | /*) |
227 | /*) |
138 | if ("$as_dir/$as_base" -c ' |
228 | for as_base in sh bash ksh sh5; do |
|
|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
|
230 | done;; |
|
|
231 | esac |
|
|
232 | done |
|
|
233 | IFS=$as_save_IFS |
|
|
234 | |
|
|
235 | |
|
|
236 | for as_shell in $as_candidate_shells $SHELL; do |
|
|
237 | # Try only shells that exist, to save several forks. |
|
|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
|
|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
241 | emulate sh |
|
|
242 | NULLCMD=: |
|
|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
244 | # is contrary to our usage. Disable this feature. |
|
|
245 | alias -g '${1+"$@"}'='"$@"' |
|
|
246 | setopt NO_GLOB_SUBST |
|
|
247 | else |
|
|
248 | case `(set -o) 2>/dev/null` in |
|
|
249 | *posix*) set -o posix ;; |
|
|
250 | esac |
|
|
251 | |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | : |
|
|
256 | _ASEOF |
|
|
257 | }; then |
|
|
258 | CONFIG_SHELL=$as_shell |
|
|
259 | as_have_required=yes |
|
|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
262 | emulate sh |
|
|
263 | NULLCMD=: |
|
|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
265 | # is contrary to our usage. Disable this feature. |
|
|
266 | alias -g '${1+"$@"}'='"$@"' |
|
|
267 | setopt NO_GLOB_SUBST |
|
|
268 | else |
|
|
269 | case `(set -o) 2>/dev/null` in |
|
|
270 | *posix*) set -o posix ;; |
|
|
271 | esac |
|
|
272 | |
|
|
273 | fi |
|
|
274 | |
|
|
275 | |
|
|
276 | : |
|
|
277 | (as_func_return () { |
|
|
278 | (exit $1) |
|
|
279 | } |
|
|
280 | as_func_success () { |
|
|
281 | as_func_return 0 |
|
|
282 | } |
|
|
283 | as_func_failure () { |
|
|
284 | as_func_return 1 |
|
|
285 | } |
|
|
286 | as_func_ret_success () { |
|
|
287 | return 0 |
|
|
288 | } |
|
|
289 | as_func_ret_failure () { |
|
|
290 | return 1 |
|
|
291 | } |
|
|
292 | |
|
|
293 | exitcode=0 |
|
|
294 | if as_func_success; then |
|
|
295 | : |
|
|
296 | else |
|
|
297 | exitcode=1 |
|
|
298 | echo as_func_success failed. |
|
|
299 | fi |
|
|
300 | |
|
|
301 | if as_func_failure; then |
|
|
302 | exitcode=1 |
|
|
303 | echo as_func_failure succeeded. |
|
|
304 | fi |
|
|
305 | |
|
|
306 | if as_func_ret_success; then |
|
|
307 | : |
|
|
308 | else |
|
|
309 | exitcode=1 |
|
|
310 | echo as_func_ret_success failed. |
|
|
311 | fi |
|
|
312 | |
|
|
313 | if as_func_ret_failure; then |
|
|
314 | exitcode=1 |
|
|
315 | echo as_func_ret_failure succeeded. |
|
|
316 | fi |
|
|
317 | |
|
|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
|
319 | : |
|
|
320 | else |
|
|
321 | exitcode=1 |
|
|
322 | echo positional parameters were not saved. |
|
|
323 | fi |
|
|
324 | |
|
|
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
|
|
326 | |
|
|
327 | ( |
139 | as_lineno_1=$LINENO |
328 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO |
329 | as_lineno_2=$LINENO |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
332 | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
333 | _ASEOF |
146 | CONFIG_SHELL=$as_dir/$as_base |
334 | }; then |
147 | export CONFIG_SHELL |
335 | break |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
336 | fi |
149 | fi;; |
337 | |
150 | esac |
338 | fi |
|
|
339 | |
|
|
340 | done |
|
|
341 | |
|
|
342 | if test "x$CONFIG_SHELL" != x; then |
|
|
343 | for as_var in BASH_ENV ENV |
|
|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
151 | done |
345 | done |
152 | done |
346 | export CONFIG_SHELL |
153 | ;; |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
154 | esac |
348 | fi |
|
|
349 | |
|
|
350 | |
|
|
351 | if test $as_have_required = no; then |
|
|
352 | echo This script requires a shell more modern than all the |
|
|
353 | echo shells that I found on your system. Please install a |
|
|
354 | echo modern shell, or manually run the script under such a |
|
|
355 | echo shell if you do have one. |
|
|
356 | { (exit 1); exit 1; } |
|
|
357 | fi |
|
|
358 | |
|
|
359 | |
|
|
360 | fi |
|
|
361 | |
|
|
362 | fi |
|
|
363 | |
|
|
364 | |
|
|
365 | |
|
|
366 | (eval "as_func_return () { |
|
|
367 | (exit \$1) |
|
|
368 | } |
|
|
369 | as_func_success () { |
|
|
370 | as_func_return 0 |
|
|
371 | } |
|
|
372 | as_func_failure () { |
|
|
373 | as_func_return 1 |
|
|
374 | } |
|
|
375 | as_func_ret_success () { |
|
|
376 | return 0 |
|
|
377 | } |
|
|
378 | as_func_ret_failure () { |
|
|
379 | return 1 |
|
|
380 | } |
|
|
381 | |
|
|
382 | exitcode=0 |
|
|
383 | if as_func_success; then |
|
|
384 | : |
|
|
385 | else |
|
|
386 | exitcode=1 |
|
|
387 | echo as_func_success failed. |
|
|
388 | fi |
|
|
389 | |
|
|
390 | if as_func_failure; then |
|
|
391 | exitcode=1 |
|
|
392 | echo as_func_failure succeeded. |
|
|
393 | fi |
|
|
394 | |
|
|
395 | if as_func_ret_success; then |
|
|
396 | : |
|
|
397 | else |
|
|
398 | exitcode=1 |
|
|
399 | echo as_func_ret_success failed. |
|
|
400 | fi |
|
|
401 | |
|
|
402 | if as_func_ret_failure; then |
|
|
403 | exitcode=1 |
|
|
404 | echo as_func_ret_failure succeeded. |
|
|
405 | fi |
|
|
406 | |
|
|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
408 | : |
|
|
409 | else |
|
|
410 | exitcode=1 |
|
|
411 | echo positional parameters were not saved. |
|
|
412 | fi |
|
|
413 | |
|
|
414 | test \$exitcode = 0") || { |
|
|
415 | echo No shell found that supports shell functions. |
|
|
416 | echo Please tell autoconf@gnu.org about your system, |
|
|
417 | echo including any error possibly output before this |
|
|
418 | echo message |
|
|
419 | } |
|
|
420 | |
|
|
421 | |
|
|
422 | |
|
|
423 | as_lineno_1=$LINENO |
|
|
424 | as_lineno_2=$LINENO |
|
|
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
155 | |
427 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 | # uniformly replaced by the line number. The first 'sed' inserts a |
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
158 | # line-number line before each line; the second 'sed' does the real |
430 | # line-number line after each line using $LINENO; the second 'sed' |
159 | # work. The second script uses 'N' to pair each line-number line |
431 | # does the real work. The second script uses 'N' to pair each |
160 | # with the numbered line, and appends trailing '-' during |
432 | # line-number line with the line containing $LINENO, and appends |
161 | # substitution so that $LINENO is not a special case at line end. |
433 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
434 | # case at line end. |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
438 | sed -n ' |
|
|
439 | p |
|
|
440 | /[$]LINENO/= |
164 | sed '=' <$as_myself | |
441 | ' <$as_myself | |
165 | sed ' |
442 | sed ' |
|
|
443 | s/[$]LINENO.*/&-/ |
|
|
444 | t lineno |
|
|
445 | b |
|
|
446 | :lineno |
166 | N |
447 | N |
167 | s,$,-, |
|
|
168 | : loop |
448 | :loop |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
170 | t loop |
450 | t loop |
171 | s,-$,, |
451 | s/-\n.*// |
172 | s,^['$as_cr_digits']*\n,, |
|
|
173 | ' >$as_me.lineno && |
452 | ' >$as_me.lineno && |
174 | chmod +x $as_me.lineno || |
453 | chmod +x "$as_me.lineno" || |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 | { (exit 1); exit 1; }; } |
455 | { (exit 1); exit 1; }; } |
177 | |
456 | |
178 | # Don't try to exec as it changes $[0], causing all sort of problems |
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
179 | # (the dirname of $[0] is not the place where we might find the |
458 | # (the dirname of $[0] is not the place where we might find the |
180 | # original and so on. Autoconf is especially sensible to this). |
459 | # original and so on. Autoconf is especially sensitive to this). |
181 | . ./$as_me.lineno |
460 | . "./$as_me.lineno" |
182 | # Exit status is that of the last command. |
461 | # Exit status is that of the last command. |
183 | exit |
462 | exit |
184 | } |
463 | } |
185 | |
464 | |
186 | |
465 | |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
188 | *c*,-n*) ECHO_N= ECHO_C=' |
467 | as_dirname=dirname |
189 | ' ECHO_T=' ' ;; |
468 | else |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
469 | as_dirname=false |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
470 | fi |
192 | esac |
|
|
193 | |
471 | |
|
|
472 | ECHO_C= ECHO_N= ECHO_T= |
|
|
473 | case `echo -n x` in |
|
|
474 | -n*) |
|
|
475 | case `echo 'x\c'` in |
|
|
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
|
477 | *) ECHO_C='\c';; |
|
|
478 | esac;; |
|
|
479 | *) |
|
|
480 | ECHO_N='-n';; |
|
|
481 | esac |
|
|
482 | |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|
|
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
195 | as_expr=expr |
485 | as_expr=expr |
196 | else |
486 | else |
197 | as_expr=false |
487 | as_expr=false |
198 | fi |
488 | fi |
199 | |
489 | |
200 | rm -f conf$$ conf$$.exe conf$$.file |
490 | rm -f conf$$ conf$$.exe conf$$.file |
|
|
491 | if test -d conf$$.dir; then |
|
|
492 | rm -f conf$$.dir/conf$$.file |
|
|
493 | else |
|
|
494 | rm -f conf$$.dir |
|
|
495 | mkdir conf$$.dir |
|
|
496 | fi |
201 | echo >conf$$.file |
497 | echo >conf$$.file |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
499 | as_ln_s='ln -s' |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
500 | # ... but there are two gotchas: |
205 | if test -f conf$$.exe; then |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
206 | # Don't use ln at all; we don't have any links |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
|
503 | # In both cases, we have to default to `cp -p'. |
|
|
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
207 | as_ln_s='cp -p' |
505 | as_ln_s='cp -p' |
208 | else |
|
|
209 | as_ln_s='ln -s' |
|
|
210 | fi |
|
|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln |
507 | as_ln_s=ln |
213 | else |
508 | else |
214 | as_ln_s='cp -p' |
509 | as_ln_s='cp -p' |
215 | fi |
510 | fi |
216 | rm -f conf$$ conf$$.exe conf$$.file |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
|
512 | rmdir conf$$.dir 2>/dev/null |
217 | |
513 | |
218 | if mkdir -p . 2>/dev/null; then |
514 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: |
515 | as_mkdir_p=: |
220 | else |
516 | else |
221 | test -d ./-p && rmdir ./-p |
517 | test -d ./-p && rmdir ./-p |
222 | as_mkdir_p=false |
518 | as_mkdir_p=false |
223 | fi |
519 | fi |
224 | |
520 | |
|
|
521 | if test -x / >/dev/null 2>&1; then |
|
|
522 | as_test_x='test -x' |
|
|
523 | else |
|
|
524 | if ls -dL / >/dev/null 2>&1; then |
|
|
525 | as_ls_L_option=L |
|
|
526 | else |
|
|
527 | as_ls_L_option= |
|
|
528 | fi |
|
|
529 | as_test_x=' |
|
|
530 | eval sh -c '\'' |
|
|
531 | if test -d "$1"; then |
|
|
532 | test -d "$1/."; |
|
|
533 | else |
|
|
534 | case $1 in |
|
|
535 | -*)set "./$1";; |
|
|
536 | esac; |
|
|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
538 | ???[sx]*):;;*)false;;esac;fi |
|
|
539 | '\'' sh |
|
|
540 | ' |
|
|
541 | fi |
225 | as_executable_p="test -f" |
542 | as_executable_p=$as_test_x |
226 | |
543 | |
227 | # Sed expression to map a string onto a valid CPP name. |
544 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
229 | |
546 | |
230 | # Sed expression to map a string onto a valid variable name. |
547 | # Sed expression to map a string onto a valid variable name. |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
232 | |
549 | |
233 | |
550 | |
234 | # IFS |
|
|
235 | # We need space, tab and new line, in precisely that order. |
|
|
236 | as_nl=' |
|
|
237 | ' |
|
|
238 | IFS=" $as_nl" |
|
|
239 | |
551 | |
240 | # CDPATH. |
552 | exec 7<&0 </dev/null 6>&1 |
241 | $as_unset CDPATH |
|
|
242 | |
|
|
243 | |
553 | |
244 | # Name of the host. |
554 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
246 | # so uname gets run too. |
556 | # so uname gets run too. |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
248 | |
558 | |
249 | exec 6>&1 |
|
|
250 | |
|
|
251 | # |
559 | # |
252 | # Initializations. |
560 | # Initializations. |
253 | # |
561 | # |
254 | ac_default_prefix=/usr/local |
562 | ac_default_prefix=/usr/local |
|
|
563 | ac_clean_files= |
255 | ac_config_libobj_dir=. |
564 | ac_config_libobj_dir=. |
|
|
565 | LIBOBJS= |
256 | cross_compiling=no |
566 | cross_compiling=no |
257 | subdirs= |
567 | subdirs= |
258 | MFLAGS= |
568 | MFLAGS= |
259 | MAKEFLAGS= |
569 | MAKEFLAGS= |
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
261 | |
|
|
262 | # Maximum number of lines to put in a shell here document. |
|
|
263 | # This variable seems obsolete. It should probably be removed, and |
|
|
264 | # only ac_max_sed_lines should be used. |
|
|
265 | : ${ac_max_here_lines=38} |
|
|
266 | |
571 | |
267 | # Identity of this package. |
572 | # Identity of this package. |
268 | PACKAGE_NAME= |
573 | PACKAGE_NAME= |
269 | PACKAGE_TARNAME= |
574 | PACKAGE_TARNAME= |
270 | PACKAGE_VERSION= |
575 | PACKAGE_VERSION= |
… | |
… | |
273 | |
578 | |
274 | ac_unique_file="src/feature.h" |
579 | ac_unique_file="src/feature.h" |
275 | # Factoring default headers for most tests. |
580 | # Factoring default headers for most tests. |
276 | ac_includes_default="\ |
581 | ac_includes_default="\ |
277 | #include <stdio.h> |
582 | #include <stdio.h> |
278 | #if HAVE_SYS_TYPES_H |
583 | #ifdef HAVE_SYS_TYPES_H |
279 | # include <sys/types.h> |
584 | # include <sys/types.h> |
280 | #endif |
585 | #endif |
281 | #if HAVE_SYS_STAT_H |
586 | #ifdef HAVE_SYS_STAT_H |
282 | # include <sys/stat.h> |
587 | # include <sys/stat.h> |
283 | #endif |
588 | #endif |
284 | #if STDC_HEADERS |
589 | #ifdef STDC_HEADERS |
285 | # include <stdlib.h> |
590 | # include <stdlib.h> |
286 | # include <stddef.h> |
591 | # include <stddef.h> |
287 | #else |
592 | #else |
288 | # if HAVE_STDLIB_H |
593 | # ifdef HAVE_STDLIB_H |
289 | # include <stdlib.h> |
594 | # include <stdlib.h> |
290 | # endif |
595 | # endif |
291 | #endif |
596 | #endif |
292 | #if HAVE_STRING_H |
597 | #ifdef HAVE_STRING_H |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
294 | # include <memory.h> |
599 | # include <memory.h> |
295 | # endif |
600 | # endif |
296 | # include <string.h> |
601 | # include <string.h> |
297 | #endif |
602 | #endif |
298 | #if HAVE_STRINGS_H |
603 | #ifdef HAVE_STRINGS_H |
299 | # include <strings.h> |
604 | # include <strings.h> |
300 | #endif |
605 | #endif |
301 | #if HAVE_INTTYPES_H |
606 | #ifdef HAVE_INTTYPES_H |
302 | # include <inttypes.h> |
607 | # include <inttypes.h> |
303 | #else |
|
|
304 | # if HAVE_STDINT_H |
|
|
305 | # include <stdint.h> |
|
|
306 | # endif |
|
|
307 | #endif |
608 | #endif |
|
|
609 | #ifdef HAVE_STDINT_H |
|
|
610 | # include <stdint.h> |
|
|
611 | #endif |
308 | #if HAVE_UNISTD_H |
612 | #ifdef HAVE_UNISTD_H |
309 | # include <unistd.h> |
613 | # include <unistd.h> |
310 | #endif" |
614 | #endif" |
311 | |
615 | |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
616 | ac_subst_vars='SHELL |
|
|
617 | PATH_SEPARATOR |
|
|
618 | PACKAGE_NAME |
|
|
619 | PACKAGE_TARNAME |
|
|
620 | PACKAGE_VERSION |
|
|
621 | PACKAGE_STRING |
|
|
622 | PACKAGE_BUGREPORT |
|
|
623 | exec_prefix |
|
|
624 | prefix |
|
|
625 | program_transform_name |
|
|
626 | bindir |
|
|
627 | sbindir |
|
|
628 | libexecdir |
|
|
629 | datarootdir |
|
|
630 | datadir |
|
|
631 | sysconfdir |
|
|
632 | sharedstatedir |
|
|
633 | localstatedir |
|
|
634 | includedir |
|
|
635 | oldincludedir |
|
|
636 | docdir |
|
|
637 | infodir |
|
|
638 | htmldir |
|
|
639 | dvidir |
|
|
640 | pdfdir |
|
|
641 | psdir |
|
|
642 | libdir |
|
|
643 | localedir |
|
|
644 | mandir |
|
|
645 | DEFS |
|
|
646 | ECHO_C |
|
|
647 | ECHO_N |
|
|
648 | ECHO_T |
|
|
649 | LIBS |
|
|
650 | build_alias |
|
|
651 | host_alias |
|
|
652 | target_alias |
|
|
653 | build |
|
|
654 | build_cpu |
|
|
655 | build_vendor |
|
|
656 | build_os |
|
|
657 | host |
|
|
658 | host_cpu |
|
|
659 | host_vendor |
|
|
660 | host_os |
|
|
661 | VERSION |
|
|
662 | DATE |
|
|
663 | CC |
|
|
664 | CFLAGS |
|
|
665 | LDFLAGS |
|
|
666 | CPPFLAGS |
|
|
667 | ac_ct_CC |
|
|
668 | EXEEXT |
|
|
669 | OBJEXT |
|
|
670 | CXX |
|
|
671 | CXXFLAGS |
|
|
672 | ac_ct_CXX |
|
|
673 | CPP |
|
|
674 | INSTALL_PROGRAM |
|
|
675 | INSTALL_SCRIPT |
|
|
676 | INSTALL_DATA |
|
|
677 | GREP |
|
|
678 | EGREP |
|
|
679 | LINKER |
|
|
680 | RXVTNAME |
|
|
681 | CXXCPP |
|
|
682 | TIC |
|
|
683 | XMKMF |
|
|
684 | X_CFLAGS |
|
|
685 | X_PRE_LIBS |
|
|
686 | X_LIBS |
|
|
687 | X_EXTRA_LIBS |
|
|
688 | afterimage_config |
|
|
689 | PKG_CONFIG |
|
|
690 | XFT_CONFIG |
|
|
691 | PERL |
|
|
692 | PERLLIB |
|
|
693 | PERLFLAGS |
|
|
694 | PERLPRIVLIBEXP |
|
|
695 | IF_PERL |
|
|
696 | PERL_O |
|
|
697 | AFTERIMAGE_CFLAGS |
|
|
698 | AFTERIMAGE_LIBS |
|
|
699 | LIBOBJS |
|
|
700 | LTLIBOBJS' |
313 | ac_subst_files='' |
701 | ac_subst_files='' |
|
|
702 | ac_precious_vars='build_alias |
|
|
703 | host_alias |
|
|
704 | target_alias |
|
|
705 | CC |
|
|
706 | CFLAGS |
|
|
707 | LDFLAGS |
|
|
708 | LIBS |
|
|
709 | CPPFLAGS |
|
|
710 | CXX |
|
|
711 | CXXFLAGS |
|
|
712 | CCC |
|
|
713 | CPP |
|
|
714 | CXXCPP |
|
|
715 | XMKMF' |
|
|
716 | |
314 | |
717 | |
315 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
316 | ac_init_help= |
719 | ac_init_help= |
317 | ac_init_version=false |
720 | ac_init_version=false |
318 | # The variables have the same names as the options, with |
721 | # The variables have the same names as the options, with |
… | |
… | |
335 | # Installation directory options. |
738 | # Installation directory options. |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
739 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
337 | # and all the variables that are supposed to be based on exec_prefix |
740 | # and all the variables that are supposed to be based on exec_prefix |
338 | # by default will actually change. |
741 | # by default will actually change. |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
742 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|
|
743 | # (The list follows the same order as the GNU Coding Standards.) |
340 | bindir='${exec_prefix}/bin' |
744 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' |
745 | sbindir='${exec_prefix}/sbin' |
342 | libexecdir='${exec_prefix}/libexec' |
746 | libexecdir='${exec_prefix}/libexec' |
343 | datadir='${prefix}/share' |
747 | datarootdir='${prefix}/share' |
|
|
748 | datadir='${datarootdir}' |
344 | sysconfdir='${prefix}/etc' |
749 | sysconfdir='${prefix}/etc' |
345 | sharedstatedir='${prefix}/com' |
750 | sharedstatedir='${prefix}/com' |
346 | localstatedir='${prefix}/var' |
751 | localstatedir='${prefix}/var' |
347 | libdir='${exec_prefix}/lib' |
|
|
348 | includedir='${prefix}/include' |
752 | includedir='${prefix}/include' |
349 | oldincludedir='/usr/include' |
753 | oldincludedir='/usr/include' |
|
|
754 | docdir='${datarootdir}/doc/${PACKAGE}' |
350 | infodir='${prefix}/info' |
755 | infodir='${datarootdir}/info' |
351 | mandir='${prefix}/man' |
756 | htmldir='${docdir}' |
|
|
757 | dvidir='${docdir}' |
|
|
758 | pdfdir='${docdir}' |
|
|
759 | psdir='${docdir}' |
|
|
760 | libdir='${exec_prefix}/lib' |
|
|
761 | localedir='${datarootdir}/locale' |
|
|
762 | mandir='${datarootdir}/man' |
352 | |
763 | |
353 | ac_prev= |
764 | ac_prev= |
|
|
765 | ac_dashdash= |
354 | for ac_option |
766 | for ac_option |
355 | do |
767 | do |
356 | # If the previous option needs an argument, assign it. |
768 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then |
769 | if test -n "$ac_prev"; then |
358 | eval "$ac_prev=\$ac_option" |
770 | eval $ac_prev=\$ac_option |
359 | ac_prev= |
771 | ac_prev= |
360 | continue |
772 | continue |
361 | fi |
773 | fi |
362 | |
774 | |
|
|
775 | case $ac_option in |
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
776 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
|
777 | *) ac_optarg=yes ;; |
|
|
778 | esac |
364 | |
779 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
780 | # Accept the important Cygnus configure options, so we can diagnose typos. |
366 | |
781 | |
367 | case $ac_option in |
782 | case $ac_dashdash$ac_option in |
|
|
783 | --) |
|
|
784 | ac_dashdash=yes ;; |
368 | |
785 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
786 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
370 | ac_prev=bindir ;; |
787 | ac_prev=bindir ;; |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
788 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
372 | bindir=$ac_optarg ;; |
789 | bindir=$ac_optarg ;; |
… | |
… | |
384 | cache_file=$ac_optarg ;; |
801 | cache_file=$ac_optarg ;; |
385 | |
802 | |
386 | --config-cache | -C) |
803 | --config-cache | -C) |
387 | cache_file=config.cache ;; |
804 | cache_file=config.cache ;; |
388 | |
805 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
806 | -datadir | --datadir | --datadi | --datad) |
390 | ac_prev=datadir ;; |
807 | ac_prev=datadir ;; |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
808 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
392 | | --da=*) |
|
|
393 | datadir=$ac_optarg ;; |
809 | datadir=$ac_optarg ;; |
|
|
810 | |
|
|
811 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
|
812 | | --dataroo | --dataro | --datar) |
|
|
813 | ac_prev=datarootdir ;; |
|
|
814 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
|
815 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
|
816 | datarootdir=$ac_optarg ;; |
394 | |
817 | |
395 | -disable-* | --disable-*) |
818 | -disable-* | --disable-*) |
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
819 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
397 | # Reject names that are not valid shell variable names. |
820 | # Reject names that are not valid shell variable names. |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
821 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
822 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
400 | { (exit 1); exit 1; }; } |
823 | { (exit 1); exit 1; }; } |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
824 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
402 | eval "enable_$ac_feature=no" ;; |
825 | eval enable_$ac_feature=no ;; |
|
|
826 | |
|
|
827 | -docdir | --docdir | --docdi | --doc | --do) |
|
|
828 | ac_prev=docdir ;; |
|
|
829 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
|
830 | docdir=$ac_optarg ;; |
|
|
831 | |
|
|
832 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
|
833 | ac_prev=dvidir ;; |
|
|
834 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
|
835 | dvidir=$ac_optarg ;; |
403 | |
836 | |
404 | -enable-* | --enable-*) |
837 | -enable-* | --enable-*) |
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
838 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
406 | # Reject names that are not valid shell variable names. |
839 | # Reject names that are not valid shell variable names. |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
840 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
409 | { (exit 1); exit 1; }; } |
842 | { (exit 1); exit 1; }; } |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
843 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
411 | case $ac_option in |
|
|
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
|
413 | *) ac_optarg=yes ;; |
|
|
414 | esac |
|
|
415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
844 | eval enable_$ac_feature=\$ac_optarg ;; |
416 | |
845 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
846 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
847 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
419 | | --exec | --exe | --ex) |
848 | | --exec | --exe | --ex) |
420 | ac_prev=exec_prefix ;; |
849 | ac_prev=exec_prefix ;; |
… | |
… | |
437 | -host | --host | --hos | --ho) |
866 | -host | --host | --hos | --ho) |
438 | ac_prev=host_alias ;; |
867 | ac_prev=host_alias ;; |
439 | -host=* | --host=* | --hos=* | --ho=*) |
868 | -host=* | --host=* | --hos=* | --ho=*) |
440 | host_alias=$ac_optarg ;; |
869 | host_alias=$ac_optarg ;; |
441 | |
870 | |
|
|
871 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
|
872 | ac_prev=htmldir ;; |
|
|
873 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
|
874 | | --ht=*) |
|
|
875 | htmldir=$ac_optarg ;; |
|
|
876 | |
442 | -includedir | --includedir | --includedi | --included | --include \ |
877 | -includedir | --includedir | --includedi | --included | --include \ |
443 | | --includ | --inclu | --incl | --inc) |
878 | | --includ | --inclu | --incl | --inc) |
444 | ac_prev=includedir ;; |
879 | ac_prev=includedir ;; |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
880 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
881 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
… | |
… | |
461 | ac_prev=libexecdir ;; |
896 | ac_prev=libexecdir ;; |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
897 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
463 | | --libexe=* | --libex=* | --libe=*) |
898 | | --libexe=* | --libex=* | --libe=*) |
464 | libexecdir=$ac_optarg ;; |
899 | libexecdir=$ac_optarg ;; |
465 | |
900 | |
|
|
901 | -localedir | --localedir | --localedi | --localed | --locale) |
|
|
902 | ac_prev=localedir ;; |
|
|
903 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
|
904 | localedir=$ac_optarg ;; |
|
|
905 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
906 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
467 | | --localstate | --localstat | --localsta | --localst \ |
907 | | --localstate | --localstat | --localsta | --localst | --locals) |
468 | | --locals | --local | --loca | --loc | --lo) |
|
|
469 | ac_prev=localstatedir ;; |
908 | ac_prev=localstatedir ;; |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
909 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
910 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|
|
473 | localstatedir=$ac_optarg ;; |
911 | localstatedir=$ac_optarg ;; |
474 | |
912 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
913 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
476 | ac_prev=mandir ;; |
914 | ac_prev=mandir ;; |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
915 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
… | |
… | |
532 | | --program-transfo=* | --program-transf=* \ |
970 | | --program-transfo=* | --program-transf=* \ |
533 | | --program-trans=* | --program-tran=* \ |
971 | | --program-trans=* | --program-tran=* \ |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
972 | | --progr-tra=* | --program-tr=* | --program-t=*) |
535 | program_transform_name=$ac_optarg ;; |
973 | program_transform_name=$ac_optarg ;; |
536 | |
974 | |
|
|
975 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
|
976 | ac_prev=pdfdir ;; |
|
|
977 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
|
978 | pdfdir=$ac_optarg ;; |
|
|
979 | |
|
|
980 | -psdir | --psdir | --psdi | --psd | --ps) |
|
|
981 | ac_prev=psdir ;; |
|
|
982 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
|
983 | psdir=$ac_optarg ;; |
|
|
984 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
985 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
538 | | -silent | --silent | --silen | --sile | --sil) |
986 | | -silent | --silent | --silen | --sile | --sil) |
539 | silent=yes ;; |
987 | silent=yes ;; |
540 | |
988 | |
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
989 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
… | |
… | |
584 | ac_init_version=: ;; |
1032 | ac_init_version=: ;; |
585 | |
1033 | |
586 | -with-* | --with-*) |
1034 | -with-* | --with-*) |
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1035 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
588 | # Reject names that are not valid shell variable names. |
1036 | # Reject names that are not valid shell variable names. |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1037 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1038 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
591 | { (exit 1); exit 1; }; } |
1039 | { (exit 1); exit 1; }; } |
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1040 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
593 | case $ac_option in |
|
|
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|
|
595 | *) ac_optarg=yes ;; |
|
|
596 | esac |
|
|
597 | eval "with_$ac_package='$ac_optarg'" ;; |
1041 | eval with_$ac_package=\$ac_optarg ;; |
598 | |
1042 | |
599 | -without-* | --without-*) |
1043 | -without-* | --without-*) |
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1044 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
601 | # Reject names that are not valid shell variable names. |
1045 | # Reject names that are not valid shell variable names. |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1046 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1047 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
604 | { (exit 1); exit 1; }; } |
1048 | { (exit 1); exit 1; }; } |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
1049 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
606 | eval "with_$ac_package=no" ;; |
1050 | eval with_$ac_package=no ;; |
607 | |
1051 | |
608 | --x) |
1052 | --x) |
609 | # Obsolete; use --with-x. |
1053 | # Obsolete; use --with-x. |
610 | with_x=yes ;; |
1054 | with_x=yes ;; |
611 | |
1055 | |
… | |
… | |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1076 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
633 | # Reject names that are not valid shell variable names. |
1077 | # Reject names that are not valid shell variable names. |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1078 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1079 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
636 | { (exit 1); exit 1; }; } |
1080 | { (exit 1); exit 1; }; } |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
|
|
638 | eval "$ac_envvar='$ac_optarg'" |
1081 | eval $ac_envvar=\$ac_optarg |
639 | export $ac_envvar ;; |
1082 | export $ac_envvar ;; |
640 | |
1083 | |
641 | *) |
1084 | *) |
642 | # FIXME: should be removed in autoconf 3.0. |
1085 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1086 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
… | |
… | |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1096 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1097 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
655 | { (exit 1); exit 1; }; } |
1098 | { (exit 1); exit 1; }; } |
656 | fi |
1099 | fi |
657 | |
1100 | |
658 | # Be sure to have absolute paths. |
1101 | # Be sure to have absolute directory names. |
659 | for ac_var in exec_prefix prefix |
1102 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
|
1103 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
|
1104 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
|
1105 | libdir localedir mandir |
660 | do |
1106 | do |
661 | eval ac_val=$`echo $ac_var` |
1107 | eval ac_val=\$$ac_var |
662 | case $ac_val in |
1108 | case $ac_val in |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
1109 | [\\/$]* | ?:[\\/]* ) continue;; |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1110 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
665 | { (exit 1); exit 1; }; };; |
|
|
666 | esac |
1111 | esac |
667 | done |
|
|
668 | |
|
|
669 | # Be sure to have absolute paths. |
|
|
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
|
|
671 | localstatedir libdir includedir oldincludedir infodir mandir |
|
|
672 | do |
|
|
673 | eval ac_val=$`echo $ac_var` |
|
|
674 | case $ac_val in |
|
|
675 | [\\/$]* | ?:[\\/]* ) ;; |
|
|
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1112 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
677 | { (exit 1); exit 1; }; };; |
1113 | { (exit 1); exit 1; }; } |
678 | esac |
|
|
679 | done |
1114 | done |
680 | |
1115 | |
681 | # There might be people who depend on the old broken behavior: `$host' |
1116 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. |
1117 | # used to hold the argument of --host etc. |
683 | # FIXME: To remove some day. |
1118 | # FIXME: To remove some day. |
… | |
… | |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1135 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
701 | |
1136 | |
702 | test "$silent" = yes && exec 6>/dev/null |
1137 | test "$silent" = yes && exec 6>/dev/null |
703 | |
1138 | |
704 | |
1139 | |
|
|
1140 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
|
1141 | ac_ls_di=`ls -di .` && |
|
|
1142 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
|
1143 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
|
|
1144 | { (exit 1); exit 1; }; } |
|
|
1145 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
|
1146 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
|
|
1147 | { (exit 1); exit 1; }; } |
|
|
1148 | |
|
|
1149 | |
705 | # Find the source files, if location was not specified. |
1150 | # Find the source files, if location was not specified. |
706 | if test -z "$srcdir"; then |
1151 | if test -z "$srcdir"; then |
707 | ac_srcdir_defaulted=yes |
1152 | ac_srcdir_defaulted=yes |
708 | # Try the directory containing this script, then its parent. |
1153 | # Try the directory containing this script, then the parent directory. |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
1154 | ac_confdir=`$as_dirname -- "$0" || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1155 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
1156 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ |
1157 | X"$0" : 'X\(//\)$' \| \ |
713 | X"$0" : 'X\(/\)' \| \ |
1158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
714 | . : '\(.\)' 2>/dev/null || |
|
|
715 | echo X"$0" | |
1159 | echo X"$0" | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
1160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
1161 | s//\1/ |
718 | /^X\(\/\/\)$/{ s//\1/; q; } |
1162 | q |
719 | /^X\(\/\).*/{ s//\1/; q; } |
1163 | } |
|
|
1164 | /^X\(\/\/\)[^/].*/{ |
|
|
1165 | s//\1/ |
|
|
1166 | q |
|
|
1167 | } |
|
|
1168 | /^X\(\/\/\)$/{ |
|
|
1169 | s//\1/ |
|
|
1170 | q |
|
|
1171 | } |
|
|
1172 | /^X\(\/\).*/{ |
|
|
1173 | s//\1/ |
|
|
1174 | q |
|
|
1175 | } |
720 | s/.*/./; q'` |
1176 | s/.*/./; q'` |
721 | srcdir=$ac_confdir |
1177 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then |
1178 | if test ! -r "$srcdir/$ac_unique_file"; then |
723 | srcdir=.. |
1179 | srcdir=.. |
724 | fi |
1180 | fi |
725 | else |
1181 | else |
726 | ac_srcdir_defaulted=no |
1182 | ac_srcdir_defaulted=no |
727 | fi |
1183 | fi |
728 | if test ! -r $srcdir/$ac_unique_file; then |
1184 | if test ! -r "$srcdir/$ac_unique_file"; then |
729 | if test "$ac_srcdir_defaulted" = yes; then |
1185 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
1186 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
731 | { (exit 1); exit 1; }; } |
1187 | { (exit 1); exit 1; }; } |
732 | else |
1188 | fi |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1189 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
|
1190 | ac_abs_confdir=`( |
|
|
1191 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
734 | { (exit 1); exit 1; }; } |
1192 | { (exit 1); exit 1; }; } |
735 | fi |
1193 | pwd)` |
|
|
1194 | # When building in place, set srcdir=. |
|
|
1195 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
|
1196 | srcdir=. |
736 | fi |
1197 | fi |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
1198 | # Remove unnecessary trailing slashes from srcdir. |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
1199 | # Double slashes in file names in object file debugging info |
739 | { (exit 1); exit 1; }; } |
1200 | # mess up M-x gdb in Emacs. |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
1201 | case $srcdir in |
741 | ac_env_build_alias_set=${build_alias+set} |
1202 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
742 | ac_env_build_alias_value=$build_alias |
1203 | esac |
743 | ac_cv_env_build_alias_set=${build_alias+set} |
1204 | for ac_var in $ac_precious_vars; do |
744 | ac_cv_env_build_alias_value=$build_alias |
1205 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
745 | ac_env_host_alias_set=${host_alias+set} |
1206 | eval ac_env_${ac_var}_value=\$${ac_var} |
746 | ac_env_host_alias_value=$host_alias |
1207 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
747 | ac_cv_env_host_alias_set=${host_alias+set} |
1208 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
748 | ac_cv_env_host_alias_value=$host_alias |
1209 | done |
749 | ac_env_target_alias_set=${target_alias+set} |
|
|
750 | ac_env_target_alias_value=$target_alias |
|
|
751 | ac_cv_env_target_alias_set=${target_alias+set} |
|
|
752 | ac_cv_env_target_alias_value=$target_alias |
|
|
753 | ac_env_CC_set=${CC+set} |
|
|
754 | ac_env_CC_value=$CC |
|
|
755 | ac_cv_env_CC_set=${CC+set} |
|
|
756 | ac_cv_env_CC_value=$CC |
|
|
757 | ac_env_CFLAGS_set=${CFLAGS+set} |
|
|
758 | ac_env_CFLAGS_value=$CFLAGS |
|
|
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
|
760 | ac_cv_env_CFLAGS_value=$CFLAGS |
|
|
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
762 | ac_env_LDFLAGS_value=$LDFLAGS |
|
|
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
|
|
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
|
|
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
769 | ac_env_CXX_set=${CXX+set} |
|
|
770 | ac_env_CXX_value=$CXX |
|
|
771 | ac_cv_env_CXX_set=${CXX+set} |
|
|
772 | ac_cv_env_CXX_value=$CXX |
|
|
773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
|
774 | ac_env_CXXFLAGS_value=$CXXFLAGS |
|
|
775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
|
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
|
|
777 | ac_env_CPP_set=${CPP+set} |
|
|
778 | ac_env_CPP_value=$CPP |
|
|
779 | ac_cv_env_CPP_set=${CPP+set} |
|
|
780 | ac_cv_env_CPP_value=$CPP |
|
|
781 | ac_env_CXXCPP_set=${CXXCPP+set} |
|
|
782 | ac_env_CXXCPP_value=$CXXCPP |
|
|
783 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
|
784 | ac_cv_env_CXXCPP_value=$CXXCPP |
|
|
785 | |
1210 | |
786 | # |
1211 | # |
787 | # Report the --help message. |
1212 | # Report the --help message. |
788 | # |
1213 | # |
789 | if test "$ac_init_help" = "long"; then |
1214 | if test "$ac_init_help" = "long"; then |
… | |
… | |
808 | --cache-file=FILE cache test results in FILE [disabled] |
1233 | --cache-file=FILE cache test results in FILE [disabled] |
809 | -C, --config-cache alias for \`--cache-file=config.cache' |
1234 | -C, --config-cache alias for \`--cache-file=config.cache' |
810 | -n, --no-create do not create output files |
1235 | -n, --no-create do not create output files |
811 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1236 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
812 | |
1237 | |
813 | _ACEOF |
|
|
814 | |
|
|
815 | cat <<_ACEOF |
|
|
816 | Installation directories: |
1238 | Installation directories: |
817 | --prefix=PREFIX install architecture-independent files in PREFIX |
1239 | --prefix=PREFIX install architecture-independent files in PREFIX |
818 | [$ac_default_prefix] |
1240 | [$ac_default_prefix] |
819 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1241 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
820 | [PREFIX] |
1242 | [PREFIX] |
… | |
… | |
828 | |
1250 | |
829 | Fine tuning of the installation directories: |
1251 | Fine tuning of the installation directories: |
830 | --bindir=DIR user executables [EPREFIX/bin] |
1252 | --bindir=DIR user executables [EPREFIX/bin] |
831 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1253 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
832 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1254 | --libexecdir=DIR program executables [EPREFIX/libexec] |
833 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
|
|
834 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1255 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
835 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1256 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
836 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1257 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
837 | --libdir=DIR object code libraries [EPREFIX/lib] |
1258 | --libdir=DIR object code libraries [EPREFIX/lib] |
838 | --includedir=DIR C header files [PREFIX/include] |
1259 | --includedir=DIR C header files [PREFIX/include] |
839 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1260 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
|
1261 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
|
1262 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
840 | --infodir=DIR info documentation [PREFIX/info] |
1263 | --infodir=DIR info documentation [DATAROOTDIR/info] |
|
|
1264 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
841 | --mandir=DIR man documentation [PREFIX/man] |
1265 | --mandir=DIR man documentation [DATAROOTDIR/man] |
|
|
1266 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
|
1267 | --htmldir=DIR html documentation [DOCDIR] |
|
|
1268 | --dvidir=DIR dvi documentation [DOCDIR] |
|
|
1269 | --pdfdir=DIR pdf documentation [DOCDIR] |
|
|
1270 | --psdir=DIR ps documentation [DOCDIR] |
842 | _ACEOF |
1271 | _ACEOF |
843 | |
1272 | |
844 | cat <<\_ACEOF |
1273 | cat <<\_ACEOF |
845 | |
1274 | |
846 | X features: |
1275 | X features: |
… | |
… | |
864 | |
1293 | |
865 | Optional Features: |
1294 | Optional Features: |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
868 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
869 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
870 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-assert enable assertions |
|
|
1300 | --enable-warnings turn on g++ warnings |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1301 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
872 | --enable-combining enable composition of base and combining characters |
1302 | --enable-combining enable composition of base and combining characters |
873 | --enable-xft enable xft support on systems that have it |
1303 | --enable-xft enable xft support on systems that have it |
874 | --enable-font-styles enable bold and italic support |
1304 | --enable-font-styles enable bold and italic support |
875 | --enable-utmp enable utmp (utmpx) support |
1305 | --enable-afterimage enable integration with libAfterImage for background images |
876 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
878 | --enable-xpm-background enable XPM background pixmaps |
|
|
879 | --enable-transparency enable transparent backgrounds |
1306 | --enable-transparency enable transparent backgrounds |
880 | --enable-tinting enable tinting of transparent bg |
|
|
881 | --enable-fading enable colors fading when off focus |
1307 | --enable-fading enable colors fading when off focus |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
1308 | --enable-rxvt-scroll enable rxvt style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
1309 | --enable-next-scroll enable NeXT style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
1310 | --enable-xterm-scroll enable Xterm style scrollbar |
885 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
886 | --enable-plain-scroll enable plain style scrollbar |
|
|
887 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
888 | --enable-ttygid enable tty setting to group named "tty" |
|
|
889 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
890 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
891 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1317 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
894 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
896 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
897 | --enable-24bit enable support for using 24bit visuals if available |
|
|
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
899 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
900 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
901 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
902 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
|
|
903 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
|
|
904 | NOTE: enable only one malloc package |
|
|
905 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
906 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
907 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
|
|
1328 | --enable-utmp enable utmp (utmpx) support |
|
|
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1330 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
908 | |
1331 | |
909 | Optional Packages: |
1332 | Optional Packages: |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1335 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
912 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1336 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
913 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1337 | --with-res-name=NAME use this as default resource name (default: urxvt) |
914 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1338 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
915 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1339 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
916 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
917 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1341 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
918 | --with-x use the X Window System |
1342 | --with-x use the X Window System |
919 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
920 | --with-xpm-library=DIR use XPM library in DIR |
|
|
921 | --with-xpm use XPM |
|
|
922 | |
1343 | |
923 | Some influential environment variables: |
1344 | Some influential environment variables: |
924 | CC C compiler command |
1345 | CC C compiler command |
925 | CFLAGS C compiler flags |
1346 | CFLAGS C compiler flags |
926 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1347 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
927 | nonstandard directory <lib dir> |
1348 | nonstandard directory <lib dir> |
|
|
1349 | LIBS libraries to pass to the linker, e.g. -l<library> |
928 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1350 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
929 | headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
930 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
931 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
932 | CPP C preprocessor |
1354 | CPP C preprocessor |
933 | CXXCPP C++ preprocessor |
1355 | CXXCPP C++ preprocessor |
|
|
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
934 | |
1357 | |
935 | Use these variables to override the choices made by `configure' or to help |
1358 | Use these variables to override the choices made by `configure' or to help |
936 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
937 | |
1360 | |
938 | _ACEOF |
1361 | _ACEOF |
|
|
1362 | ac_status=$? |
939 | fi |
1363 | fi |
940 | |
1364 | |
941 | if test "$ac_init_help" = "recursive"; then |
1365 | if test "$ac_init_help" = "recursive"; then |
942 | # If there are subdirs, report their specific --help. |
1366 | # If there are subdirs, report their specific --help. |
943 | ac_popdir=`pwd` |
|
|
944 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1367 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
945 | test -d $ac_dir || continue |
1368 | test -d "$ac_dir" || continue |
946 | ac_builddir=. |
1369 | ac_builddir=. |
947 | |
1370 | |
948 | if test "$ac_dir" != .; then |
1371 | case "$ac_dir" in |
|
|
1372 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
1373 | *) |
949 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1374 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
950 | # A "../" for each directory in $ac_dir_suffix. |
1375 | # A ".." for each directory in $ac_dir_suffix. |
951 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1376 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
952 | else |
1377 | case $ac_top_builddir_sub in |
953 | ac_dir_suffix= ac_top_builddir= |
1378 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
954 | fi |
1379 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
|
1380 | esac ;; |
|
|
1381 | esac |
|
|
1382 | ac_abs_top_builddir=$ac_pwd |
|
|
1383 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
|
1384 | # for backward compatibility: |
|
|
1385 | ac_top_builddir=$ac_top_build_prefix |
955 | |
1386 | |
956 | case $srcdir in |
1387 | case $srcdir in |
957 | .) # No --srcdir option. We are building in place. |
1388 | .) # We are building in place. |
958 | ac_srcdir=. |
1389 | ac_srcdir=. |
959 | if test -z "$ac_top_builddir"; then |
1390 | ac_top_srcdir=$ac_top_builddir_sub |
960 | ac_top_srcdir=. |
1391 | ac_abs_top_srcdir=$ac_pwd ;; |
961 | else |
|
|
962 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
963 | fi ;; |
|
|
964 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1392 | [\\/]* | ?:[\\/]* ) # Absolute name. |
965 | ac_srcdir=$srcdir$ac_dir_suffix; |
1393 | ac_srcdir=$srcdir$ac_dir_suffix; |
966 | ac_top_srcdir=$srcdir ;; |
1394 | ac_top_srcdir=$srcdir |
|
|
1395 | ac_abs_top_srcdir=$srcdir ;; |
967 | *) # Relative path. |
1396 | *) # Relative name. |
968 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1397 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
969 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1398 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
970 | esac |
|
|
971 | |
|
|
972 | # Do not use `cd foo && pwd` to compute absolute paths, because |
|
|
973 | # the directories may not exist. |
|
|
974 | case `pwd` in |
|
|
975 | .) ac_abs_builddir="$ac_dir";; |
|
|
976 | *) |
|
|
977 | case "$ac_dir" in |
|
|
978 | .) ac_abs_builddir=`pwd`;; |
|
|
979 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
|
980 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
|
981 | esac;; |
|
|
982 | esac |
|
|
983 | case $ac_abs_builddir in |
|
|
984 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
985 | *) |
|
|
986 | case ${ac_top_builddir}. in |
|
|
987 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
|
|
988 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
989 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
|
990 | esac;; |
|
|
991 | esac |
|
|
992 | case $ac_abs_builddir in |
|
|
993 | .) ac_abs_srcdir=$ac_srcdir;; |
|
|
994 | *) |
|
|
995 | case $ac_srcdir in |
|
|
996 | .) ac_abs_srcdir=$ac_abs_builddir;; |
|
|
997 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
|
998 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
|
999 | esac;; |
|
|
1000 | esac |
|
|
1001 | case $ac_abs_builddir in |
|
|
1002 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1399 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1003 | *) |
|
|
1004 | case $ac_top_srcdir in |
|
|
1005 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
|
1006 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
|
1007 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
|
1008 | esac;; |
|
|
1009 | esac |
1400 | esac |
|
|
1401 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1010 | |
1402 | |
1011 | cd $ac_dir |
1403 | cd "$ac_dir" || { ac_status=$?; continue; } |
1012 | # Check for guested configure; otherwise get Cygnus style configure. |
1404 | # Check for guested configure. |
1013 | if test -f $ac_srcdir/configure.gnu; then |
1405 | if test -f "$ac_srcdir/configure.gnu"; then |
1014 | echo |
1406 | echo && |
1015 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1407 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1016 | elif test -f $ac_srcdir/configure; then |
1408 | elif test -f "$ac_srcdir/configure"; then |
1017 | echo |
1409 | echo && |
1018 | $SHELL $ac_srcdir/configure --help=recursive |
1410 | $SHELL "$ac_srcdir/configure" --help=recursive |
1019 | elif test -f $ac_srcdir/configure.ac || |
|
|
1020 | test -f $ac_srcdir/configure.in; then |
|
|
1021 | echo |
|
|
1022 | $ac_configure --help |
|
|
1023 | else |
1411 | else |
1024 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1412 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1025 | fi |
1413 | fi || ac_status=$? |
1026 | cd "$ac_popdir" |
1414 | cd "$ac_pwd" || { ac_status=$?; break; } |
1027 | done |
1415 | done |
1028 | fi |
1416 | fi |
1029 | |
1417 | |
1030 | test -n "$ac_init_help" && exit 0 |
1418 | test -n "$ac_init_help" && exit $ac_status |
1031 | if $ac_init_version; then |
1419 | if $ac_init_version; then |
1032 | cat <<\_ACEOF |
1420 | cat <<\_ACEOF |
|
|
1421 | configure |
|
|
1422 | generated by GNU Autoconf 2.61 |
1033 | |
1423 | |
1034 | Copyright (C) 2003 Free Software Foundation, Inc. |
1424 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
|
1425 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1035 | This configure script is free software; the Free Software Foundation |
1426 | This configure script is free software; the Free Software Foundation |
1036 | gives unlimited permission to copy, distribute and modify it. |
1427 | gives unlimited permission to copy, distribute and modify it. |
1037 | _ACEOF |
1428 | _ACEOF |
1038 | exit 0 |
1429 | exit |
1039 | fi |
1430 | fi |
1040 | exec 5>config.log |
1431 | cat >config.log <<_ACEOF |
1041 | cat >&5 <<_ACEOF |
|
|
1042 | This file contains any messages produced by compilers while |
1432 | This file contains any messages produced by compilers while |
1043 | running configure, to aid debugging if configure makes a mistake. |
1433 | running configure, to aid debugging if configure makes a mistake. |
1044 | |
1434 | |
1045 | It was created by $as_me, which was |
1435 | It was created by $as_me, which was |
1046 | generated by GNU Autoconf 2.59. Invocation command line was |
1436 | generated by GNU Autoconf 2.61. Invocation command line was |
1047 | |
1437 | |
1048 | $ $0 $@ |
1438 | $ $0 $@ |
1049 | |
1439 | |
1050 | _ACEOF |
1440 | _ACEOF |
|
|
1441 | exec 5>>config.log |
1051 | { |
1442 | { |
1052 | cat <<_ASUNAME |
1443 | cat <<_ASUNAME |
1053 | ## --------- ## |
1444 | ## --------- ## |
1054 | ## Platform. ## |
1445 | ## Platform. ## |
1055 | ## --------- ## |
1446 | ## --------- ## |
… | |
… | |
1064 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1455 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1065 | |
1456 | |
1066 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1457 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1067 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1458 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1068 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1459 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1069 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1460 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1070 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1461 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1071 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1462 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1072 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1463 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1073 | |
1464 | |
1074 | _ASUNAME |
1465 | _ASUNAME |
… | |
… | |
1078 | do |
1469 | do |
1079 | IFS=$as_save_IFS |
1470 | IFS=$as_save_IFS |
1080 | test -z "$as_dir" && as_dir=. |
1471 | test -z "$as_dir" && as_dir=. |
1081 | echo "PATH: $as_dir" |
1472 | echo "PATH: $as_dir" |
1082 | done |
1473 | done |
|
|
1474 | IFS=$as_save_IFS |
1083 | |
1475 | |
1084 | } >&5 |
1476 | } >&5 |
1085 | |
1477 | |
1086 | cat >&5 <<_ACEOF |
1478 | cat >&5 <<_ACEOF |
1087 | |
1479 | |
… | |
… | |
1099 | # Also quote any args containing shell meta-characters. |
1491 | # Also quote any args containing shell meta-characters. |
1100 | # Make two passes to allow for proper duplicate-argument suppression. |
1492 | # Make two passes to allow for proper duplicate-argument suppression. |
1101 | ac_configure_args= |
1493 | ac_configure_args= |
1102 | ac_configure_args0= |
1494 | ac_configure_args0= |
1103 | ac_configure_args1= |
1495 | ac_configure_args1= |
1104 | ac_sep= |
|
|
1105 | ac_must_keep_next=false |
1496 | ac_must_keep_next=false |
1106 | for ac_pass in 1 2 |
1497 | for ac_pass in 1 2 |
1107 | do |
1498 | do |
1108 | for ac_arg |
1499 | for ac_arg |
1109 | do |
1500 | do |
1110 | case $ac_arg in |
1501 | case $ac_arg in |
1111 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1502 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1112 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1503 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1113 | | -silent | --silent | --silen | --sile | --sil) |
1504 | | -silent | --silent | --silen | --sile | --sil) |
1114 | continue ;; |
1505 | continue ;; |
1115 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1506 | *\'*) |
1116 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1507 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1117 | esac |
1508 | esac |
1118 | case $ac_pass in |
1509 | case $ac_pass in |
1119 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1510 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1120 | 2) |
1511 | 2) |
… | |
… | |
1132 | esac |
1523 | esac |
1133 | ;; |
1524 | ;; |
1134 | -* ) ac_must_keep_next=true ;; |
1525 | -* ) ac_must_keep_next=true ;; |
1135 | esac |
1526 | esac |
1136 | fi |
1527 | fi |
1137 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1528 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1138 | # Get rid of the leading space. |
|
|
1139 | ac_sep=" " |
|
|
1140 | ;; |
1529 | ;; |
1141 | esac |
1530 | esac |
1142 | done |
1531 | done |
1143 | done |
1532 | done |
1144 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1533 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1145 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1534 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1146 | |
1535 | |
1147 | # When interrupted or exit'd, cleanup temporary files, and complete |
1536 | # When interrupted or exit'd, cleanup temporary files, and complete |
1148 | # config.log. We remove comments because anyway the quotes in there |
1537 | # config.log. We remove comments because anyway the quotes in there |
1149 | # would cause problems or look ugly. |
1538 | # would cause problems or look ugly. |
1150 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1539 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1151 | # such as our DU 5.0 friend, will then `close' the trap. |
1540 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1152 | trap 'exit_status=$? |
1541 | trap 'exit_status=$? |
1153 | # Save into config.log some information that might help in debugging. |
1542 | # Save into config.log some information that might help in debugging. |
1154 | { |
1543 | { |
1155 | echo |
1544 | echo |
1156 | |
1545 | |
… | |
… | |
1159 | ## Cache variables. ## |
1548 | ## Cache variables. ## |
1160 | ## ---------------- ## |
1549 | ## ---------------- ## |
1161 | _ASBOX |
1550 | _ASBOX |
1162 | echo |
1551 | echo |
1163 | # The following way of writing the cache mishandles newlines in values, |
1552 | # The following way of writing the cache mishandles newlines in values, |
1164 | { |
1553 | ( |
|
|
1554 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
|
1555 | eval ac_val=\$$ac_var |
|
|
1556 | case $ac_val in #( |
|
|
1557 | *${as_nl}*) |
|
|
1558 | case $ac_var in #( |
|
|
1559 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
|
1560 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
|
1561 | esac |
|
|
1562 | case $ac_var in #( |
|
|
1563 | _ | IFS | as_nl) ;; #( |
|
|
1564 | *) $as_unset $ac_var ;; |
|
|
1565 | esac ;; |
|
|
1566 | esac |
|
|
1567 | done |
1165 | (set) 2>&1 | |
1568 | (set) 2>&1 | |
1166 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1569 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1167 | *ac_space=\ *) |
1570 | *${as_nl}ac_space=\ *) |
1168 | sed -n \ |
1571 | sed -n \ |
1169 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1572 | "s/'\''/'\''\\\\'\'''\''/g; |
1170 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1573 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
|
1574 | ;; #( |
|
|
1575 | *) |
|
|
1576 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1171 | ;; |
1577 | ;; |
1172 | *) |
|
|
1173 | sed -n \ |
|
|
1174 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
|
1175 | ;; |
|
|
1176 | esac; |
1578 | esac | |
1177 | } |
1579 | sort |
|
|
1580 | ) |
1178 | echo |
1581 | echo |
1179 | |
1582 | |
1180 | cat <<\_ASBOX |
1583 | cat <<\_ASBOX |
1181 | ## ----------------- ## |
1584 | ## ----------------- ## |
1182 | ## Output variables. ## |
1585 | ## Output variables. ## |
1183 | ## ----------------- ## |
1586 | ## ----------------- ## |
1184 | _ASBOX |
1587 | _ASBOX |
1185 | echo |
1588 | echo |
1186 | for ac_var in $ac_subst_vars |
1589 | for ac_var in $ac_subst_vars |
1187 | do |
1590 | do |
1188 | eval ac_val=$`echo $ac_var` |
1591 | eval ac_val=\$$ac_var |
|
|
1592 | case $ac_val in |
|
|
1593 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
|
1594 | esac |
1189 | echo "$ac_var='"'"'$ac_val'"'"'" |
1595 | echo "$ac_var='\''$ac_val'\''" |
1190 | done | sort |
1596 | done | sort |
1191 | echo |
1597 | echo |
1192 | |
1598 | |
1193 | if test -n "$ac_subst_files"; then |
1599 | if test -n "$ac_subst_files"; then |
1194 | cat <<\_ASBOX |
1600 | cat <<\_ASBOX |
1195 | ## ------------- ## |
1601 | ## ------------------- ## |
1196 | ## Output files. ## |
1602 | ## File substitutions. ## |
1197 | ## ------------- ## |
1603 | ## ------------------- ## |
1198 | _ASBOX |
1604 | _ASBOX |
1199 | echo |
1605 | echo |
1200 | for ac_var in $ac_subst_files |
1606 | for ac_var in $ac_subst_files |
1201 | do |
1607 | do |
1202 | eval ac_val=$`echo $ac_var` |
1608 | eval ac_val=\$$ac_var |
|
|
1609 | case $ac_val in |
|
|
1610 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
|
1611 | esac |
1203 | echo "$ac_var='"'"'$ac_val'"'"'" |
1612 | echo "$ac_var='\''$ac_val'\''" |
1204 | done | sort |
1613 | done | sort |
1205 | echo |
1614 | echo |
1206 | fi |
1615 | fi |
1207 | |
1616 | |
1208 | if test -s confdefs.h; then |
1617 | if test -s confdefs.h; then |
… | |
… | |
1210 | ## ----------- ## |
1619 | ## ----------- ## |
1211 | ## confdefs.h. ## |
1620 | ## confdefs.h. ## |
1212 | ## ----------- ## |
1621 | ## ----------- ## |
1213 | _ASBOX |
1622 | _ASBOX |
1214 | echo |
1623 | echo |
1215 | sed "/^$/d" confdefs.h | sort |
1624 | cat confdefs.h |
1216 | echo |
1625 | echo |
1217 | fi |
1626 | fi |
1218 | test "$ac_signal" != 0 && |
1627 | test "$ac_signal" != 0 && |
1219 | echo "$as_me: caught signal $ac_signal" |
1628 | echo "$as_me: caught signal $ac_signal" |
1220 | echo "$as_me: exit $exit_status" |
1629 | echo "$as_me: exit $exit_status" |
1221 | } >&5 |
1630 | } >&5 |
1222 | rm -f core *.core && |
1631 | rm -f core *.core core.conftest.* && |
1223 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1632 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1224 | exit $exit_status |
1633 | exit $exit_status |
1225 | ' 0 |
1634 | ' 0 |
1226 | for ac_signal in 1 2 13 15; do |
1635 | for ac_signal in 1 2 13 15; do |
1227 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1636 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1228 | done |
1637 | done |
1229 | ac_signal=0 |
1638 | ac_signal=0 |
1230 | |
1639 | |
1231 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1640 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1232 | rm -rf conftest* confdefs.h |
1641 | rm -f -r conftest* confdefs.h |
1233 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|
|
1234 | echo >confdefs.h |
|
|
1235 | |
1642 | |
1236 | # Predefined preprocessor variables. |
1643 | # Predefined preprocessor variables. |
1237 | |
1644 | |
1238 | cat >>confdefs.h <<_ACEOF |
1645 | cat >>confdefs.h <<_ACEOF |
1239 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1646 | #define PACKAGE_NAME "$PACKAGE_NAME" |
… | |
… | |
1260 | _ACEOF |
1667 | _ACEOF |
1261 | |
1668 | |
1262 | |
1669 | |
1263 | # Let the site file select an alternate cache file if it wants to. |
1670 | # Let the site file select an alternate cache file if it wants to. |
1264 | # Prefer explicitly selected file to automatically selected ones. |
1671 | # Prefer explicitly selected file to automatically selected ones. |
1265 | if test -z "$CONFIG_SITE"; then |
1672 | if test -n "$CONFIG_SITE"; then |
|
|
1673 | set x "$CONFIG_SITE" |
1266 | if test "x$prefix" != xNONE; then |
1674 | elif test "x$prefix" != xNONE; then |
1267 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1675 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1268 | else |
1676 | else |
1269 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1677 | set x "$ac_default_prefix/share/config.site" \ |
1270 | fi |
1678 | "$ac_default_prefix/etc/config.site" |
1271 | fi |
1679 | fi |
1272 | for ac_site_file in $CONFIG_SITE; do |
1680 | shift |
|
|
1681 | for ac_site_file |
|
|
1682 | do |
1273 | if test -r "$ac_site_file"; then |
1683 | if test -r "$ac_site_file"; then |
1274 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1684 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1275 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1685 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1276 | sed 's/^/| /' "$ac_site_file" >&5 |
1686 | sed 's/^/| /' "$ac_site_file" >&5 |
1277 | . "$ac_site_file" |
1687 | . "$ac_site_file" |
… | |
… | |
1283 | # files actually), so we avoid doing that. |
1693 | # files actually), so we avoid doing that. |
1284 | if test -f "$cache_file"; then |
1694 | if test -f "$cache_file"; then |
1285 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1695 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1286 | echo "$as_me: loading cache $cache_file" >&6;} |
1696 | echo "$as_me: loading cache $cache_file" >&6;} |
1287 | case $cache_file in |
1697 | case $cache_file in |
1288 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1698 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1289 | *) . ./$cache_file;; |
1699 | *) . "./$cache_file";; |
1290 | esac |
1700 | esac |
1291 | fi |
1701 | fi |
1292 | else |
1702 | else |
1293 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1703 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1294 | echo "$as_me: creating cache $cache_file" >&6;} |
1704 | echo "$as_me: creating cache $cache_file" >&6;} |
… | |
… | |
1296 | fi |
1706 | fi |
1297 | |
1707 | |
1298 | # Check that the precious variables saved in the cache have kept the same |
1708 | # Check that the precious variables saved in the cache have kept the same |
1299 | # value. |
1709 | # value. |
1300 | ac_cache_corrupted=false |
1710 | ac_cache_corrupted=false |
1301 | for ac_var in `(set) 2>&1 | |
1711 | for ac_var in $ac_precious_vars; do |
1302 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
|
|
1303 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1712 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1304 | eval ac_new_set=\$ac_env_${ac_var}_set |
1713 | eval ac_new_set=\$ac_env_${ac_var}_set |
1305 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1714 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1306 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1715 | eval ac_new_val=\$ac_env_${ac_var}_value |
1307 | case $ac_old_set,$ac_new_set in |
1716 | case $ac_old_set,$ac_new_set in |
1308 | set,) |
1717 | set,) |
1309 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1718 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1310 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1719 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1311 | ac_cache_corrupted=: ;; |
1720 | ac_cache_corrupted=: ;; |
… | |
… | |
1326 | fi;; |
1735 | fi;; |
1327 | esac |
1736 | esac |
1328 | # Pass precious variables to config.status. |
1737 | # Pass precious variables to config.status. |
1329 | if test "$ac_new_set" = set; then |
1738 | if test "$ac_new_set" = set; then |
1330 | case $ac_new_val in |
1739 | case $ac_new_val in |
1331 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
|
1332 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1740 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1333 | *) ac_arg=$ac_var=$ac_new_val ;; |
1741 | *) ac_arg=$ac_var=$ac_new_val ;; |
1334 | esac |
1742 | esac |
1335 | case " $ac_configure_args " in |
1743 | case " $ac_configure_args " in |
1336 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1744 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1337 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1745 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
… | |
… | |
1344 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1752 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1345 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1753 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1346 | { (exit 1); exit 1; }; } |
1754 | { (exit 1); exit 1; }; } |
1347 | fi |
1755 | fi |
1348 | |
1756 | |
|
|
1757 | |
|
|
1758 | |
|
|
1759 | |
|
|
1760 | |
|
|
1761 | |
|
|
1762 | |
|
|
1763 | |
|
|
1764 | |
|
|
1765 | |
|
|
1766 | |
|
|
1767 | |
|
|
1768 | |
|
|
1769 | |
|
|
1770 | |
|
|
1771 | |
|
|
1772 | |
1349 | ac_ext=c |
1773 | ac_ext=c |
1350 | ac_cpp='$CPP $CPPFLAGS' |
1774 | ac_cpp='$CPP $CPPFLAGS' |
1351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1354 | |
1778 | |
1355 | |
1779 | |
1356 | |
1780 | |
1357 | |
1781 | |
1358 | |
|
|
1359 | |
|
|
1360 | |
|
|
1361 | |
|
|
1362 | |
|
|
1363 | |
|
|
1364 | |
|
|
1365 | |
|
|
1366 | |
|
|
1367 | |
|
|
1368 | |
|
|
1369 | |
|
|
1370 | |
|
|
1371 | |
|
|
1372 | |
|
|
1373 | |
|
|
1374 | |
|
|
1375 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1782 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1376 | |
1783 | |
1377 | |
1784 | |
1378 | ac_aux_dir= |
1785 | ac_aux_dir= |
1379 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1786 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1380 | if test -f $ac_dir/install-sh; then |
1787 | if test -f "$ac_dir/install-sh"; then |
1381 | ac_aux_dir=$ac_dir |
1788 | ac_aux_dir=$ac_dir |
1382 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1789 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1383 | break |
1790 | break |
1384 | elif test -f $ac_dir/install.sh; then |
1791 | elif test -f "$ac_dir/install.sh"; then |
1385 | ac_aux_dir=$ac_dir |
1792 | ac_aux_dir=$ac_dir |
1386 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1793 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1387 | break |
1794 | break |
1388 | elif test -f $ac_dir/shtool; then |
1795 | elif test -f "$ac_dir/shtool"; then |
1389 | ac_aux_dir=$ac_dir |
1796 | ac_aux_dir=$ac_dir |
1390 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1797 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1391 | break |
1798 | break |
1392 | fi |
1799 | fi |
1393 | done |
1800 | done |
1394 | if test -z "$ac_aux_dir"; then |
1801 | if test -z "$ac_aux_dir"; then |
1395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1802 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1396 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1803 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
1397 | { (exit 1); exit 1; }; } |
1804 | { (exit 1); exit 1; }; } |
1398 | fi |
1805 | fi |
|
|
1806 | |
|
|
1807 | # These three variables are undocumented and unsupported, |
|
|
1808 | # and are intended to be withdrawn in a future Autoconf release. |
|
|
1809 | # They can cause serious problems if a builder's source tree is in a directory |
|
|
1810 | # whose full name contains unusual characters. |
1399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1811 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1812 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1401 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1813 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
|
1814 | |
1402 | |
1815 | |
1403 | # Make sure we can run config.sub. |
1816 | # Make sure we can run config.sub. |
1404 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1817 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1405 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1818 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1406 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1819 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
1407 | { (exit 1); exit 1; }; } |
1820 | { (exit 1); exit 1; }; } |
1408 | |
1821 | |
1409 | echo "$as_me:$LINENO: checking build system type" >&5 |
1822 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1410 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1823 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
1411 | if test "${ac_cv_build+set}" = set; then |
1824 | if test "${ac_cv_build+set}" = set; then |
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1413 | else |
1826 | else |
1414 | ac_cv_build_alias=$build_alias |
1827 | ac_build_alias=$build_alias |
1415 | test -z "$ac_cv_build_alias" && |
1828 | test "x$ac_build_alias" = x && |
1416 | ac_cv_build_alias=`$ac_config_guess` |
1829 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
1417 | test -z "$ac_cv_build_alias" && |
1830 | test "x$ac_build_alias" = x && |
1418 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1831 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1419 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1832 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1420 | { (exit 1); exit 1; }; } |
1833 | { (exit 1); exit 1; }; } |
1421 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1834 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1422 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1835 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1423 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1836 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
1424 | { (exit 1); exit 1; }; } |
1837 | { (exit 1); exit 1; }; } |
1425 | |
1838 | |
1426 | fi |
1839 | fi |
1427 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1840 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1428 | echo "${ECHO_T}$ac_cv_build" >&6 |
1841 | echo "${ECHO_T}$ac_cv_build" >&6; } |
|
|
1842 | case $ac_cv_build in |
|
|
1843 | *-*-*) ;; |
|
|
1844 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
|
1845 | echo "$as_me: error: invalid value of canonical build" >&2;} |
|
|
1846 | { (exit 1); exit 1; }; };; |
|
|
1847 | esac |
1429 | build=$ac_cv_build |
1848 | build=$ac_cv_build |
1430 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1849 | ac_save_IFS=$IFS; IFS='-' |
1431 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1850 | set x $ac_cv_build |
1432 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1851 | shift |
|
|
1852 | build_cpu=$1 |
|
|
1853 | build_vendor=$2 |
|
|
1854 | shift; shift |
|
|
1855 | # Remember, the first character of IFS is used to create $*, |
|
|
1856 | # except with old shells: |
|
|
1857 | build_os=$* |
|
|
1858 | IFS=$ac_save_IFS |
|
|
1859 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
1433 | |
1860 | |
1434 | |
1861 | |
1435 | echo "$as_me:$LINENO: checking host system type" >&5 |
1862 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1436 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1863 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
1437 | if test "${ac_cv_host+set}" = set; then |
1864 | if test "${ac_cv_host+set}" = set; then |
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1439 | else |
1866 | else |
1440 | ac_cv_host_alias=$host_alias |
1867 | if test "x$host_alias" = x; then |
1441 | test -z "$ac_cv_host_alias" && |
|
|
1442 | ac_cv_host_alias=$ac_cv_build_alias |
1868 | ac_cv_host=$ac_cv_build |
|
|
1869 | else |
1443 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1870 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
1444 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1871 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1445 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1872 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
1446 | { (exit 1); exit 1; }; } |
1873 | { (exit 1); exit 1; }; } |
1447 | |
|
|
1448 | fi |
1874 | fi |
|
|
1875 | |
|
|
1876 | fi |
1449 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1877 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1450 | echo "${ECHO_T}$ac_cv_host" >&6 |
1878 | echo "${ECHO_T}$ac_cv_host" >&6; } |
|
|
1879 | case $ac_cv_host in |
|
|
1880 | *-*-*) ;; |
|
|
1881 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
|
1882 | echo "$as_me: error: invalid value of canonical host" >&2;} |
|
|
1883 | { (exit 1); exit 1; }; };; |
|
|
1884 | esac |
1451 | host=$ac_cv_host |
1885 | host=$ac_cv_host |
1452 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1886 | ac_save_IFS=$IFS; IFS='-' |
1453 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1887 | set x $ac_cv_host |
1454 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1888 | shift |
|
|
1889 | host_cpu=$1 |
|
|
1890 | host_vendor=$2 |
|
|
1891 | shift; shift |
|
|
1892 | # Remember, the first character of IFS is used to create $*, |
|
|
1893 | # except with old shells: |
|
|
1894 | host_os=$* |
|
|
1895 | IFS=$ac_save_IFS |
|
|
1896 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
1455 | |
1897 | |
1456 | |
1898 | |
1457 | |
1899 | |
1458 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1459 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1901 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1902 | |
1460 | echo "" |
1903 | echo "" |
1461 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1462 | echo "" |
1905 | echo "" |
1463 | |
1906 | |
1464 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1465 | |
|
|
1466 | |
1908 | |
1467 | ac_ext=c |
1909 | ac_ext=c |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1472 | if test -n "$ac_tool_prefix"; then |
1914 | if test -n "$ac_tool_prefix"; then |
1473 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1915 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1474 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1916 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1917 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1477 | if test "${ac_cv_prog_CC+set}" = set; then |
1919 | if test "${ac_cv_prog_CC+set}" = set; then |
1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1479 | else |
1921 | else |
1480 | if test -n "$CC"; then |
1922 | if test -n "$CC"; then |
1481 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1923 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1484 | for as_dir in $PATH |
1926 | for as_dir in $PATH |
1485 | do |
1927 | do |
1486 | IFS=$as_save_IFS |
1928 | IFS=$as_save_IFS |
1487 | test -z "$as_dir" && as_dir=. |
1929 | test -z "$as_dir" && as_dir=. |
1488 | for ac_exec_ext in '' $ac_executable_extensions; do |
1930 | for ac_exec_ext in '' $ac_executable_extensions; do |
1489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1490 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1932 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1492 | break 2 |
1934 | break 2 |
1493 | fi |
1935 | fi |
1494 | done |
1936 | done |
1495 | done |
1937 | done |
|
|
1938 | IFS=$as_save_IFS |
1496 | |
1939 | |
1497 | fi |
1940 | fi |
1498 | fi |
1941 | fi |
1499 | CC=$ac_cv_prog_CC |
1942 | CC=$ac_cv_prog_CC |
1500 | if test -n "$CC"; then |
1943 | if test -n "$CC"; then |
1501 | echo "$as_me:$LINENO: result: $CC" >&5 |
1944 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1502 | echo "${ECHO_T}$CC" >&6 |
1945 | echo "${ECHO_T}$CC" >&6; } |
1503 | else |
1946 | else |
1504 | echo "$as_me:$LINENO: result: no" >&5 |
1947 | { echo "$as_me:$LINENO: result: no" >&5 |
1505 | echo "${ECHO_T}no" >&6 |
1948 | echo "${ECHO_T}no" >&6; } |
1506 | fi |
1949 | fi |
|
|
1950 | |
1507 | |
1951 | |
1508 | fi |
1952 | fi |
1509 | if test -z "$ac_cv_prog_CC"; then |
1953 | if test -z "$ac_cv_prog_CC"; then |
1510 | ac_ct_CC=$CC |
1954 | ac_ct_CC=$CC |
1511 | # Extract the first word of "gcc", so it can be a program name with args. |
1955 | # Extract the first word of "gcc", so it can be a program name with args. |
1512 | set dummy gcc; ac_word=$2 |
1956 | set dummy gcc; ac_word=$2 |
1513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1515 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1959 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1517 | else |
1961 | else |
1518 | if test -n "$ac_ct_CC"; then |
1962 | if test -n "$ac_ct_CC"; then |
1519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1963 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
… | |
… | |
1522 | for as_dir in $PATH |
1966 | for as_dir in $PATH |
1523 | do |
1967 | do |
1524 | IFS=$as_save_IFS |
1968 | IFS=$as_save_IFS |
1525 | test -z "$as_dir" && as_dir=. |
1969 | test -z "$as_dir" && as_dir=. |
1526 | for ac_exec_ext in '' $ac_executable_extensions; do |
1970 | for ac_exec_ext in '' $ac_executable_extensions; do |
1527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1528 | ac_cv_prog_ac_ct_CC="gcc" |
1972 | ac_cv_prog_ac_ct_CC="gcc" |
1529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1530 | break 2 |
1974 | break 2 |
1531 | fi |
1975 | fi |
1532 | done |
1976 | done |
1533 | done |
1977 | done |
|
|
1978 | IFS=$as_save_IFS |
1534 | |
1979 | |
1535 | fi |
1980 | fi |
1536 | fi |
1981 | fi |
1537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1982 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1538 | if test -n "$ac_ct_CC"; then |
1983 | if test -n "$ac_ct_CC"; then |
1539 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1984 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1540 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1985 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
1541 | else |
1986 | else |
1542 | echo "$as_me:$LINENO: result: no" >&5 |
1987 | { echo "$as_me:$LINENO: result: no" >&5 |
1543 | echo "${ECHO_T}no" >&6 |
1988 | echo "${ECHO_T}no" >&6; } |
1544 | fi |
1989 | fi |
1545 | |
1990 | |
|
|
1991 | if test "x$ac_ct_CC" = x; then |
|
|
1992 | CC="" |
|
|
1993 | else |
|
|
1994 | case $cross_compiling:$ac_tool_warned in |
|
|
1995 | yes:) |
|
|
1996 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
1997 | whose name does not start with the host triplet. If you think this |
|
|
1998 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
1999 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2000 | whose name does not start with the host triplet. If you think this |
|
|
2001 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2002 | ac_tool_warned=yes ;; |
|
|
2003 | esac |
1546 | CC=$ac_ct_CC |
2004 | CC=$ac_ct_CC |
|
|
2005 | fi |
1547 | else |
2006 | else |
1548 | CC="$ac_cv_prog_CC" |
2007 | CC="$ac_cv_prog_CC" |
1549 | fi |
2008 | fi |
1550 | |
2009 | |
1551 | if test -z "$CC"; then |
2010 | if test -z "$CC"; then |
1552 | if test -n "$ac_tool_prefix"; then |
2011 | if test -n "$ac_tool_prefix"; then |
1553 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2012 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1554 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2013 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1557 | if test "${ac_cv_prog_CC+set}" = set; then |
2016 | if test "${ac_cv_prog_CC+set}" = set; then |
1558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1559 | else |
2018 | else |
1560 | if test -n "$CC"; then |
2019 | if test -n "$CC"; then |
1561 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2020 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1564 | for as_dir in $PATH |
2023 | for as_dir in $PATH |
1565 | do |
2024 | do |
1566 | IFS=$as_save_IFS |
2025 | IFS=$as_save_IFS |
1567 | test -z "$as_dir" && as_dir=. |
2026 | test -z "$as_dir" && as_dir=. |
1568 | for ac_exec_ext in '' $ac_executable_extensions; do |
2027 | for ac_exec_ext in '' $ac_executable_extensions; do |
1569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1570 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2029 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1572 | break 2 |
2031 | break 2 |
1573 | fi |
2032 | fi |
1574 | done |
2033 | done |
1575 | done |
2034 | done |
|
|
2035 | IFS=$as_save_IFS |
1576 | |
2036 | |
1577 | fi |
2037 | fi |
1578 | fi |
2038 | fi |
1579 | CC=$ac_cv_prog_CC |
2039 | CC=$ac_cv_prog_CC |
1580 | if test -n "$CC"; then |
2040 | if test -n "$CC"; then |
1581 | echo "$as_me:$LINENO: result: $CC" >&5 |
2041 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1582 | echo "${ECHO_T}$CC" >&6 |
2042 | echo "${ECHO_T}$CC" >&6; } |
1583 | else |
2043 | else |
1584 | echo "$as_me:$LINENO: result: no" >&5 |
2044 | { echo "$as_me:$LINENO: result: no" >&5 |
1585 | echo "${ECHO_T}no" >&6 |
2045 | echo "${ECHO_T}no" >&6; } |
1586 | fi |
2046 | fi |
1587 | |
2047 | |
1588 | fi |
2048 | |
1589 | if test -z "$ac_cv_prog_CC"; then |
|
|
1590 | ac_ct_CC=$CC |
|
|
1591 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
1592 | set dummy cc; ac_word=$2 |
|
|
1593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
1595 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1597 | else |
|
|
1598 | if test -n "$ac_ct_CC"; then |
|
|
1599 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
1600 | else |
|
|
1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
1602 | for as_dir in $PATH |
|
|
1603 | do |
|
|
1604 | IFS=$as_save_IFS |
|
|
1605 | test -z "$as_dir" && as_dir=. |
|
|
1606 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
1608 | ac_cv_prog_ac_ct_CC="cc" |
|
|
1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
1610 | break 2 |
|
|
1611 | fi |
2049 | fi |
1612 | done |
|
|
1613 | done |
|
|
1614 | |
|
|
1615 | fi |
|
|
1616 | fi |
|
|
1617 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
1618 | if test -n "$ac_ct_CC"; then |
|
|
1619 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
1620 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
1621 | else |
|
|
1622 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
1623 | echo "${ECHO_T}no" >&6 |
|
|
1624 | fi |
|
|
1625 | |
|
|
1626 | CC=$ac_ct_CC |
|
|
1627 | else |
|
|
1628 | CC="$ac_cv_prog_CC" |
|
|
1629 | fi |
|
|
1630 | |
|
|
1631 | fi |
2050 | fi |
1632 | if test -z "$CC"; then |
2051 | if test -z "$CC"; then |
1633 | # Extract the first word of "cc", so it can be a program name with args. |
2052 | # Extract the first word of "cc", so it can be a program name with args. |
1634 | set dummy cc; ac_word=$2 |
2053 | set dummy cc; ac_word=$2 |
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2054 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1637 | if test "${ac_cv_prog_CC+set}" = set; then |
2056 | if test "${ac_cv_prog_CC+set}" = set; then |
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1639 | else |
2058 | else |
1640 | if test -n "$CC"; then |
2059 | if test -n "$CC"; then |
1641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2060 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1645 | for as_dir in $PATH |
2064 | for as_dir in $PATH |
1646 | do |
2065 | do |
1647 | IFS=$as_save_IFS |
2066 | IFS=$as_save_IFS |
1648 | test -z "$as_dir" && as_dir=. |
2067 | test -z "$as_dir" && as_dir=. |
1649 | for ac_exec_ext in '' $ac_executable_extensions; do |
2068 | for ac_exec_ext in '' $ac_executable_extensions; do |
1650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2070 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1652 | ac_prog_rejected=yes |
2071 | ac_prog_rejected=yes |
1653 | continue |
2072 | continue |
1654 | fi |
2073 | fi |
1655 | ac_cv_prog_CC="cc" |
2074 | ac_cv_prog_CC="cc" |
1656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1657 | break 2 |
2076 | break 2 |
1658 | fi |
2077 | fi |
1659 | done |
2078 | done |
1660 | done |
2079 | done |
|
|
2080 | IFS=$as_save_IFS |
1661 | |
2081 | |
1662 | if test $ac_prog_rejected = yes; then |
2082 | if test $ac_prog_rejected = yes; then |
1663 | # We found a bogon in the path, so make sure we never use it. |
2083 | # We found a bogon in the path, so make sure we never use it. |
1664 | set dummy $ac_cv_prog_CC |
2084 | set dummy $ac_cv_prog_CC |
1665 | shift |
2085 | shift |
… | |
… | |
1673 | fi |
2093 | fi |
1674 | fi |
2094 | fi |
1675 | fi |
2095 | fi |
1676 | CC=$ac_cv_prog_CC |
2096 | CC=$ac_cv_prog_CC |
1677 | if test -n "$CC"; then |
2097 | if test -n "$CC"; then |
1678 | echo "$as_me:$LINENO: result: $CC" >&5 |
2098 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1679 | echo "${ECHO_T}$CC" >&6 |
2099 | echo "${ECHO_T}$CC" >&6; } |
1680 | else |
2100 | else |
1681 | echo "$as_me:$LINENO: result: no" >&5 |
2101 | { echo "$as_me:$LINENO: result: no" >&5 |
1682 | echo "${ECHO_T}no" >&6 |
2102 | echo "${ECHO_T}no" >&6; } |
1683 | fi |
2103 | fi |
|
|
2104 | |
1684 | |
2105 | |
1685 | fi |
2106 | fi |
1686 | if test -z "$CC"; then |
2107 | if test -z "$CC"; then |
1687 | if test -n "$ac_tool_prefix"; then |
2108 | if test -n "$ac_tool_prefix"; then |
1688 | for ac_prog in cl |
2109 | for ac_prog in cl.exe |
1689 | do |
2110 | do |
1690 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1691 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2113 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1694 | if test "${ac_cv_prog_CC+set}" = set; then |
2115 | if test "${ac_cv_prog_CC+set}" = set; then |
1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1696 | else |
2117 | else |
1697 | if test -n "$CC"; then |
2118 | if test -n "$CC"; then |
1698 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2119 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1701 | for as_dir in $PATH |
2122 | for as_dir in $PATH |
1702 | do |
2123 | do |
1703 | IFS=$as_save_IFS |
2124 | IFS=$as_save_IFS |
1704 | test -z "$as_dir" && as_dir=. |
2125 | test -z "$as_dir" && as_dir=. |
1705 | for ac_exec_ext in '' $ac_executable_extensions; do |
2126 | for ac_exec_ext in '' $ac_executable_extensions; do |
1706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1707 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2128 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1709 | break 2 |
2130 | break 2 |
1710 | fi |
2131 | fi |
1711 | done |
2132 | done |
1712 | done |
2133 | done |
|
|
2134 | IFS=$as_save_IFS |
1713 | |
2135 | |
1714 | fi |
2136 | fi |
1715 | fi |
2137 | fi |
1716 | CC=$ac_cv_prog_CC |
2138 | CC=$ac_cv_prog_CC |
1717 | if test -n "$CC"; then |
2139 | if test -n "$CC"; then |
1718 | echo "$as_me:$LINENO: result: $CC" >&5 |
2140 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1719 | echo "${ECHO_T}$CC" >&6 |
2141 | echo "${ECHO_T}$CC" >&6; } |
1720 | else |
2142 | else |
1721 | echo "$as_me:$LINENO: result: no" >&5 |
2143 | { echo "$as_me:$LINENO: result: no" >&5 |
1722 | echo "${ECHO_T}no" >&6 |
2144 | echo "${ECHO_T}no" >&6; } |
1723 | fi |
2145 | fi |
|
|
2146 | |
1724 | |
2147 | |
1725 | test -n "$CC" && break |
2148 | test -n "$CC" && break |
1726 | done |
2149 | done |
1727 | fi |
2150 | fi |
1728 | if test -z "$CC"; then |
2151 | if test -z "$CC"; then |
1729 | ac_ct_CC=$CC |
2152 | ac_ct_CC=$CC |
1730 | for ac_prog in cl |
2153 | for ac_prog in cl.exe |
1731 | do |
2154 | do |
1732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1733 | set dummy $ac_prog; ac_word=$2 |
2156 | set dummy $ac_prog; ac_word=$2 |
1734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2159 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1738 | else |
2161 | else |
1739 | if test -n "$ac_ct_CC"; then |
2162 | if test -n "$ac_ct_CC"; then |
1740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2163 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
… | |
… | |
1743 | for as_dir in $PATH |
2166 | for as_dir in $PATH |
1744 | do |
2167 | do |
1745 | IFS=$as_save_IFS |
2168 | IFS=$as_save_IFS |
1746 | test -z "$as_dir" && as_dir=. |
2169 | test -z "$as_dir" && as_dir=. |
1747 | for ac_exec_ext in '' $ac_executable_extensions; do |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do |
1748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1749 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2172 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1751 | break 2 |
2174 | break 2 |
1752 | fi |
2175 | fi |
1753 | done |
2176 | done |
1754 | done |
2177 | done |
|
|
2178 | IFS=$as_save_IFS |
1755 | |
2179 | |
1756 | fi |
2180 | fi |
1757 | fi |
2181 | fi |
1758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1759 | if test -n "$ac_ct_CC"; then |
2183 | if test -n "$ac_ct_CC"; then |
1760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2184 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1761 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2185 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
1762 | else |
2186 | else |
1763 | echo "$as_me:$LINENO: result: no" >&5 |
2187 | { echo "$as_me:$LINENO: result: no" >&5 |
1764 | echo "${ECHO_T}no" >&6 |
2188 | echo "${ECHO_T}no" >&6; } |
1765 | fi |
2189 | fi |
|
|
2190 | |
1766 | |
2191 | |
1767 | test -n "$ac_ct_CC" && break |
2192 | test -n "$ac_ct_CC" && break |
1768 | done |
2193 | done |
1769 | |
2194 | |
|
|
2195 | if test "x$ac_ct_CC" = x; then |
|
|
2196 | CC="" |
|
|
2197 | else |
|
|
2198 | case $cross_compiling:$ac_tool_warned in |
|
|
2199 | yes:) |
|
|
2200 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2201 | whose name does not start with the host triplet. If you think this |
|
|
2202 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2203 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2204 | whose name does not start with the host triplet. If you think this |
|
|
2205 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2206 | ac_tool_warned=yes ;; |
|
|
2207 | esac |
1770 | CC=$ac_ct_CC |
2208 | CC=$ac_ct_CC |
|
|
2209 | fi |
1771 | fi |
2210 | fi |
1772 | |
2211 | |
1773 | fi |
2212 | fi |
1774 | |
2213 | |
1775 | |
2214 | |
… | |
… | |
1778 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2217 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
1779 | See \`config.log' for more details." >&2;} |
2218 | See \`config.log' for more details." >&2;} |
1780 | { (exit 1); exit 1; }; } |
2219 | { (exit 1); exit 1; }; } |
1781 | |
2220 | |
1782 | # Provide some information about the compiler. |
2221 | # Provide some information about the compiler. |
1783 | echo "$as_me:$LINENO:" \ |
|
|
1784 | "checking for C compiler version" >&5 |
2222 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
1785 | ac_compiler=`set X $ac_compile; echo $2` |
2223 | ac_compiler=`set X $ac_compile; echo $2` |
1786 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2224 | { (ac_try="$ac_compiler --version >&5" |
|
|
2225 | case "(($ac_try" in |
|
|
2226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2227 | *) ac_try_echo=$ac_try;; |
|
|
2228 | esac |
|
|
2229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1787 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2230 | (eval "$ac_compiler --version >&5") 2>&5 |
1788 | ac_status=$? |
2231 | ac_status=$? |
1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1790 | (exit $ac_status); } |
2233 | (exit $ac_status); } |
1791 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2234 | { (ac_try="$ac_compiler -v >&5" |
|
|
2235 | case "(($ac_try" in |
|
|
2236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2237 | *) ac_try_echo=$ac_try;; |
|
|
2238 | esac |
|
|
2239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1792 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2240 | (eval "$ac_compiler -v >&5") 2>&5 |
1793 | ac_status=$? |
2241 | ac_status=$? |
1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1795 | (exit $ac_status); } |
2243 | (exit $ac_status); } |
1796 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2244 | { (ac_try="$ac_compiler -V >&5" |
|
|
2245 | case "(($ac_try" in |
|
|
2246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2247 | *) ac_try_echo=$ac_try;; |
|
|
2248 | esac |
|
|
2249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1797 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2250 | (eval "$ac_compiler -V >&5") 2>&5 |
1798 | ac_status=$? |
2251 | ac_status=$? |
1799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1800 | (exit $ac_status); } |
2253 | (exit $ac_status); } |
1801 | |
2254 | |
1802 | cat >conftest.$ac_ext <<_ACEOF |
2255 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
1817 | ac_clean_files_save=$ac_clean_files |
2270 | ac_clean_files_save=$ac_clean_files |
1818 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2271 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1819 | # Try to create an executable without -o first, disregard a.out. |
2272 | # Try to create an executable without -o first, disregard a.out. |
1820 | # It will help us diagnose broken compilers, and finding out an intuition |
2273 | # It will help us diagnose broken compilers, and finding out an intuition |
1821 | # of exeext. |
2274 | # of exeext. |
1822 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2275 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1823 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2276 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
1824 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2277 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2278 | # |
|
|
2279 | # List of possible output files, starting from the most likely. |
|
|
2280 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
|
2281 | # only as a last resort. b.out is created by i960 compilers. |
|
|
2282 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
|
2283 | # |
|
|
2284 | # The IRIX 6 linker writes into existing files which may not be |
|
|
2285 | # executable, retaining their permissions. Remove them first so a |
|
|
2286 | # subsequent execution test works. |
|
|
2287 | ac_rmfiles= |
|
|
2288 | for ac_file in $ac_files |
|
|
2289 | do |
|
|
2290 | case $ac_file in |
|
|
2291 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
|
2292 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2293 | esac |
|
|
2294 | done |
|
|
2295 | rm -f $ac_rmfiles |
|
|
2296 | |
|
|
2297 | if { (ac_try="$ac_link_default" |
|
|
2298 | case "(($ac_try" in |
|
|
2299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2300 | *) ac_try_echo=$ac_try;; |
|
|
2301 | esac |
1825 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1826 | (eval $ac_link_default) 2>&5 |
2303 | (eval "$ac_link_default") 2>&5 |
1827 | ac_status=$? |
2304 | ac_status=$? |
1828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1829 | (exit $ac_status); }; then |
2306 | (exit $ac_status); }; then |
1830 | # Find the output, starting from the most likely. This scheme is |
2307 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
1831 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2308 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
1832 | # resort. |
2309 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
1833 | |
2310 | # so that the user can short-circuit this test for compilers unknown to |
1834 | # Be careful to initialize this variable, since it used to be cached. |
2311 | # Autoconf. |
1835 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2312 | for ac_file in $ac_files '' |
1836 | ac_cv_exeext= |
|
|
1837 | # b.out is created by i960 compilers. |
|
|
1838 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|
|
1839 | do |
2313 | do |
1840 | test -f "$ac_file" || continue |
2314 | test -f "$ac_file" || continue |
1841 | case $ac_file in |
2315 | case $ac_file in |
1842 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2316 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
1843 | ;; |
|
|
1844 | conftest.$ac_ext ) |
|
|
1845 | # This is the source file. |
|
|
1846 | ;; |
2317 | ;; |
1847 | [ab].out ) |
2318 | [ab].out ) |
1848 | # We found the default executable, but exeext='' is most |
2319 | # We found the default executable, but exeext='' is most |
1849 | # certainly right. |
2320 | # certainly right. |
1850 | break;; |
2321 | break;; |
1851 | *.* ) |
2322 | *.* ) |
|
|
2323 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
|
2324 | then :; else |
1852 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2325 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1853 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2326 | fi |
1854 | # but it would be cool to find out if it's true. Does anybody |
2327 | # We set ac_cv_exeext here because the later test for it is not |
1855 | # maintain Libtool? --akim. |
2328 | # safe: cross compilers may not add the suffix if given an `-o' |
1856 | export ac_cv_exeext |
2329 | # argument, so we may need to know it at that point already. |
|
|
2330 | # Even if this section looks crufty: it has the advantage of |
|
|
2331 | # actually working. |
1857 | break;; |
2332 | break;; |
1858 | * ) |
2333 | * ) |
1859 | break;; |
2334 | break;; |
1860 | esac |
2335 | esac |
1861 | done |
2336 | done |
|
|
2337 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
|
2338 | |
1862 | else |
2339 | else |
|
|
2340 | ac_file='' |
|
|
2341 | fi |
|
|
2342 | |
|
|
2343 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
2344 | echo "${ECHO_T}$ac_file" >&6; } |
|
|
2345 | if test -z "$ac_file"; then |
1863 | echo "$as_me: failed program was:" >&5 |
2346 | echo "$as_me: failed program was:" >&5 |
1864 | sed 's/^/| /' conftest.$ac_ext >&5 |
2347 | sed 's/^/| /' conftest.$ac_ext >&5 |
1865 | |
2348 | |
1866 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2349 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1867 | See \`config.log' for more details." >&5 |
2350 | See \`config.log' for more details." >&5 |
… | |
… | |
1869 | See \`config.log' for more details." >&2;} |
2352 | See \`config.log' for more details." >&2;} |
1870 | { (exit 77); exit 77; }; } |
2353 | { (exit 77); exit 77; }; } |
1871 | fi |
2354 | fi |
1872 | |
2355 | |
1873 | ac_exeext=$ac_cv_exeext |
2356 | ac_exeext=$ac_cv_exeext |
1874 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
1875 | echo "${ECHO_T}$ac_file" >&6 |
|
|
1876 | |
2357 | |
1877 | # Check the compiler produces executables we can run. If not, either |
2358 | # Check that the compiler produces executables we can run. If not, either |
1878 | # the compiler is broken, or we cross compile. |
2359 | # the compiler is broken, or we cross compile. |
1879 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2360 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2361 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
1881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2362 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1882 | # If not cross compiling, check that we can run a simple program. |
2363 | # If not cross compiling, check that we can run a simple program. |
1883 | if test "$cross_compiling" != yes; then |
2364 | if test "$cross_compiling" != yes; then |
1884 | if { ac_try='./$ac_file' |
2365 | if { ac_try='./$ac_file' |
|
|
2366 | { (case "(($ac_try" in |
|
|
2367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2368 | *) ac_try_echo=$ac_try;; |
|
|
2369 | esac |
1885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1886 | (eval $ac_try) 2>&5 |
2371 | (eval "$ac_try") 2>&5 |
1887 | ac_status=$? |
2372 | ac_status=$? |
1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1889 | (exit $ac_status); }; }; then |
2374 | (exit $ac_status); }; }; then |
1890 | cross_compiling=no |
2375 | cross_compiling=no |
1891 | else |
2376 | else |
… | |
… | |
1900 | See \`config.log' for more details." >&2;} |
2385 | See \`config.log' for more details." >&2;} |
1901 | { (exit 1); exit 1; }; } |
2386 | { (exit 1); exit 1; }; } |
1902 | fi |
2387 | fi |
1903 | fi |
2388 | fi |
1904 | fi |
2389 | fi |
1905 | echo "$as_me:$LINENO: result: yes" >&5 |
2390 | { echo "$as_me:$LINENO: result: yes" >&5 |
1906 | echo "${ECHO_T}yes" >&6 |
2391 | echo "${ECHO_T}yes" >&6; } |
1907 | |
2392 | |
1908 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2393 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1909 | ac_clean_files=$ac_clean_files_save |
2394 | ac_clean_files=$ac_clean_files_save |
1910 | # Check the compiler produces executables we can run. If not, either |
2395 | # Check that the compiler produces executables we can run. If not, either |
1911 | # the compiler is broken, or we cross compile. |
2396 | # the compiler is broken, or we cross compile. |
1912 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2397 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1913 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2398 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
1914 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2399 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1915 | echo "${ECHO_T}$cross_compiling" >&6 |
2400 | echo "${ECHO_T}$cross_compiling" >&6; } |
1916 | |
2401 | |
1917 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2402 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1918 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2403 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
|
|
2404 | if { (ac_try="$ac_link" |
|
|
2405 | case "(($ac_try" in |
|
|
2406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2407 | *) ac_try_echo=$ac_try;; |
|
|
2408 | esac |
1919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1920 | (eval $ac_link) 2>&5 |
2410 | (eval "$ac_link") 2>&5 |
1921 | ac_status=$? |
2411 | ac_status=$? |
1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1923 | (exit $ac_status); }; then |
2413 | (exit $ac_status); }; then |
1924 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2414 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1925 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2415 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1926 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2416 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
1927 | # `rm'. |
2417 | # `rm'. |
1928 | for ac_file in conftest.exe conftest conftest.*; do |
2418 | for ac_file in conftest.exe conftest conftest.*; do |
1929 | test -f "$ac_file" || continue |
2419 | test -f "$ac_file" || continue |
1930 | case $ac_file in |
2420 | case $ac_file in |
1931 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2421 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
1932 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2422 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1933 | export ac_cv_exeext |
|
|
1934 | break;; |
2423 | break;; |
1935 | * ) break;; |
2424 | * ) break;; |
1936 | esac |
2425 | esac |
1937 | done |
2426 | done |
1938 | else |
2427 | else |
… | |
… | |
1942 | See \`config.log' for more details." >&2;} |
2431 | See \`config.log' for more details." >&2;} |
1943 | { (exit 1); exit 1; }; } |
2432 | { (exit 1); exit 1; }; } |
1944 | fi |
2433 | fi |
1945 | |
2434 | |
1946 | rm -f conftest$ac_cv_exeext |
2435 | rm -f conftest$ac_cv_exeext |
1947 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2436 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1948 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2437 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
1949 | |
2438 | |
1950 | rm -f conftest.$ac_ext |
2439 | rm -f conftest.$ac_ext |
1951 | EXEEXT=$ac_cv_exeext |
2440 | EXEEXT=$ac_cv_exeext |
1952 | ac_exeext=$EXEEXT |
2441 | ac_exeext=$EXEEXT |
1953 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2442 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1954 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2443 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
1955 | if test "${ac_cv_objext+set}" = set; then |
2444 | if test "${ac_cv_objext+set}" = set; then |
1956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1957 | else |
2446 | else |
1958 | cat >conftest.$ac_ext <<_ACEOF |
2447 | cat >conftest.$ac_ext <<_ACEOF |
1959 | /* confdefs.h. */ |
2448 | /* confdefs.h. */ |
… | |
… | |
1969 | ; |
2458 | ; |
1970 | return 0; |
2459 | return 0; |
1971 | } |
2460 | } |
1972 | _ACEOF |
2461 | _ACEOF |
1973 | rm -f conftest.o conftest.obj |
2462 | rm -f conftest.o conftest.obj |
|
|
2463 | if { (ac_try="$ac_compile" |
|
|
2464 | case "(($ac_try" in |
|
|
2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2466 | *) ac_try_echo=$ac_try;; |
|
|
2467 | esac |
1974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
1975 | (eval $ac_compile) 2>&5 |
2469 | (eval "$ac_compile") 2>&5 |
1976 | ac_status=$? |
2470 | ac_status=$? |
1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1978 | (exit $ac_status); }; then |
2472 | (exit $ac_status); }; then |
1979 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2473 | for ac_file in conftest.o conftest.obj conftest.*; do |
|
|
2474 | test -f "$ac_file" || continue; |
1980 | case $ac_file in |
2475 | case $ac_file in |
1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
1982 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2477 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1983 | break;; |
2478 | break;; |
1984 | esac |
2479 | esac |
1985 | done |
2480 | done |
1986 | else |
2481 | else |
… | |
… | |
1994 | { (exit 1); exit 1; }; } |
2489 | { (exit 1); exit 1; }; } |
1995 | fi |
2490 | fi |
1996 | |
2491 | |
1997 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2492 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1998 | fi |
2493 | fi |
1999 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2494 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2000 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2495 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
2001 | OBJEXT=$ac_cv_objext |
2496 | OBJEXT=$ac_cv_objext |
2002 | ac_objext=$OBJEXT |
2497 | ac_objext=$OBJEXT |
2003 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2498 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2004 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2499 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2005 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2500 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2007 | else |
2502 | else |
2008 | cat >conftest.$ac_ext <<_ACEOF |
2503 | cat >conftest.$ac_ext <<_ACEOF |
2009 | /* confdefs.h. */ |
2504 | /* confdefs.h. */ |
… | |
… | |
2022 | ; |
2517 | ; |
2023 | return 0; |
2518 | return 0; |
2024 | } |
2519 | } |
2025 | _ACEOF |
2520 | _ACEOF |
2026 | rm -f conftest.$ac_objext |
2521 | rm -f conftest.$ac_objext |
|
|
2522 | if { (ac_try="$ac_compile" |
|
|
2523 | case "(($ac_try" in |
|
|
2524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2525 | *) ac_try_echo=$ac_try;; |
|
|
2526 | esac |
2027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2028 | (eval $ac_compile) 2>conftest.er1 |
2528 | (eval "$ac_compile") 2>conftest.er1 |
2029 | ac_status=$? |
2529 | ac_status=$? |
2030 | grep -v '^ *+' conftest.er1 >conftest.err |
2530 | grep -v '^ *+' conftest.er1 >conftest.err |
2031 | rm -f conftest.er1 |
2531 | rm -f conftest.er1 |
2032 | cat conftest.err >&5 |
2532 | cat conftest.err >&5 |
2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2034 | (exit $ac_status); } && |
2534 | (exit $ac_status); } && { |
2035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2535 | test -z "$ac_c_werror_flag" || |
2036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2536 | test ! -s conftest.err |
2037 | (eval $ac_try) 2>&5 |
2537 | } && test -s conftest.$ac_objext; then |
2038 | ac_status=$? |
|
|
2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2040 | (exit $ac_status); }; } && |
|
|
2041 | { ac_try='test -s conftest.$ac_objext' |
|
|
2042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2043 | (eval $ac_try) 2>&5 |
|
|
2044 | ac_status=$? |
|
|
2045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2046 | (exit $ac_status); }; }; then |
|
|
2047 | ac_compiler_gnu=yes |
2538 | ac_compiler_gnu=yes |
2048 | else |
2539 | else |
2049 | echo "$as_me: failed program was:" >&5 |
2540 | echo "$as_me: failed program was:" >&5 |
2050 | sed 's/^/| /' conftest.$ac_ext >&5 |
2541 | sed 's/^/| /' conftest.$ac_ext >&5 |
2051 | |
2542 | |
2052 | ac_compiler_gnu=no |
2543 | ac_compiler_gnu=no |
2053 | fi |
2544 | fi |
|
|
2545 | |
2054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2055 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2547 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2056 | |
2548 | |
2057 | fi |
2549 | fi |
2058 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2550 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2059 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2551 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2060 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2552 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2061 | ac_test_CFLAGS=${CFLAGS+set} |
2553 | ac_test_CFLAGS=${CFLAGS+set} |
2062 | ac_save_CFLAGS=$CFLAGS |
2554 | ac_save_CFLAGS=$CFLAGS |
2063 | CFLAGS="-g" |
|
|
2064 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2555 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2065 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2556 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2066 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2557 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2068 | else |
2559 | else |
|
|
2560 | ac_save_c_werror_flag=$ac_c_werror_flag |
|
|
2561 | ac_c_werror_flag=yes |
|
|
2562 | ac_cv_prog_cc_g=no |
|
|
2563 | CFLAGS="-g" |
2069 | cat >conftest.$ac_ext <<_ACEOF |
2564 | cat >conftest.$ac_ext <<_ACEOF |
2070 | /* confdefs.h. */ |
2565 | /* confdefs.h. */ |
2071 | _ACEOF |
2566 | _ACEOF |
2072 | cat confdefs.h >>conftest.$ac_ext |
2567 | cat confdefs.h >>conftest.$ac_ext |
2073 | cat >>conftest.$ac_ext <<_ACEOF |
2568 | cat >>conftest.$ac_ext <<_ACEOF |
2074 | /* end confdefs.h. */ |
2569 | /* end confdefs.h. */ |
… | |
… | |
2080 | ; |
2575 | ; |
2081 | return 0; |
2576 | return 0; |
2082 | } |
2577 | } |
2083 | _ACEOF |
2578 | _ACEOF |
2084 | rm -f conftest.$ac_objext |
2579 | rm -f conftest.$ac_objext |
|
|
2580 | if { (ac_try="$ac_compile" |
|
|
2581 | case "(($ac_try" in |
|
|
2582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2583 | *) ac_try_echo=$ac_try;; |
|
|
2584 | esac |
2085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2086 | (eval $ac_compile) 2>conftest.er1 |
2586 | (eval "$ac_compile") 2>conftest.er1 |
2087 | ac_status=$? |
2587 | ac_status=$? |
2088 | grep -v '^ *+' conftest.er1 >conftest.err |
2588 | grep -v '^ *+' conftest.er1 >conftest.err |
2089 | rm -f conftest.er1 |
2589 | rm -f conftest.er1 |
2090 | cat conftest.err >&5 |
2590 | cat conftest.err >&5 |
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2092 | (exit $ac_status); } && |
2592 | (exit $ac_status); } && { |
2093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2593 | test -z "$ac_c_werror_flag" || |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2594 | test ! -s conftest.err |
2095 | (eval $ac_try) 2>&5 |
2595 | } && test -s conftest.$ac_objext; then |
2096 | ac_status=$? |
|
|
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2098 | (exit $ac_status); }; } && |
|
|
2099 | { ac_try='test -s conftest.$ac_objext' |
|
|
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2101 | (eval $ac_try) 2>&5 |
|
|
2102 | ac_status=$? |
|
|
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2104 | (exit $ac_status); }; }; then |
|
|
2105 | ac_cv_prog_cc_g=yes |
2596 | ac_cv_prog_cc_g=yes |
2106 | else |
2597 | else |
2107 | echo "$as_me: failed program was:" >&5 |
2598 | echo "$as_me: failed program was:" >&5 |
2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
2599 | sed 's/^/| /' conftest.$ac_ext >&5 |
2109 | |
2600 | |
|
|
2601 | CFLAGS="" |
|
|
2602 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2603 | /* confdefs.h. */ |
|
|
2604 | _ACEOF |
|
|
2605 | cat confdefs.h >>conftest.$ac_ext |
|
|
2606 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2607 | /* end confdefs.h. */ |
|
|
2608 | |
|
|
2609 | int |
|
|
2610 | main () |
|
|
2611 | { |
|
|
2612 | |
|
|
2613 | ; |
|
|
2614 | return 0; |
|
|
2615 | } |
|
|
2616 | _ACEOF |
|
|
2617 | rm -f conftest.$ac_objext |
|
|
2618 | if { (ac_try="$ac_compile" |
|
|
2619 | case "(($ac_try" in |
|
|
2620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2621 | *) ac_try_echo=$ac_try;; |
|
|
2622 | esac |
|
|
2623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2624 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2625 | ac_status=$? |
|
|
2626 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2627 | rm -f conftest.er1 |
|
|
2628 | cat conftest.err >&5 |
|
|
2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2630 | (exit $ac_status); } && { |
|
|
2631 | test -z "$ac_c_werror_flag" || |
|
|
2632 | test ! -s conftest.err |
|
|
2633 | } && test -s conftest.$ac_objext; then |
|
|
2634 | : |
|
|
2635 | else |
|
|
2636 | echo "$as_me: failed program was:" >&5 |
|
|
2637 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2638 | |
|
|
2639 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
2640 | CFLAGS="-g" |
|
|
2641 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2642 | /* confdefs.h. */ |
|
|
2643 | _ACEOF |
|
|
2644 | cat confdefs.h >>conftest.$ac_ext |
|
|
2645 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2646 | /* end confdefs.h. */ |
|
|
2647 | |
|
|
2648 | int |
|
|
2649 | main () |
|
|
2650 | { |
|
|
2651 | |
|
|
2652 | ; |
|
|
2653 | return 0; |
|
|
2654 | } |
|
|
2655 | _ACEOF |
|
|
2656 | rm -f conftest.$ac_objext |
|
|
2657 | if { (ac_try="$ac_compile" |
|
|
2658 | case "(($ac_try" in |
|
|
2659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2660 | *) ac_try_echo=$ac_try;; |
|
|
2661 | esac |
|
|
2662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2663 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2664 | ac_status=$? |
|
|
2665 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2666 | rm -f conftest.er1 |
|
|
2667 | cat conftest.err >&5 |
|
|
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2669 | (exit $ac_status); } && { |
|
|
2670 | test -z "$ac_c_werror_flag" || |
|
|
2671 | test ! -s conftest.err |
|
|
2672 | } && test -s conftest.$ac_objext; then |
2110 | ac_cv_prog_cc_g=no |
2673 | ac_cv_prog_cc_g=yes |
|
|
2674 | else |
|
|
2675 | echo "$as_me: failed program was:" >&5 |
|
|
2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2677 | |
|
|
2678 | |
2111 | fi |
2679 | fi |
|
|
2680 | |
2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2113 | fi |
2682 | fi |
|
|
2683 | |
|
|
2684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2685 | fi |
|
|
2686 | |
|
|
2687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2688 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
2689 | fi |
2114 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2690 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2115 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2691 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
2116 | if test "$ac_test_CFLAGS" = set; then |
2692 | if test "$ac_test_CFLAGS" = set; then |
2117 | CFLAGS=$ac_save_CFLAGS |
2693 | CFLAGS=$ac_save_CFLAGS |
2118 | elif test $ac_cv_prog_cc_g = yes; then |
2694 | elif test $ac_cv_prog_cc_g = yes; then |
2119 | if test "$GCC" = yes; then |
2695 | if test "$GCC" = yes; then |
2120 | CFLAGS="-g -O2" |
2696 | CFLAGS="-g -O2" |
… | |
… | |
2126 | CFLAGS="-O2" |
2702 | CFLAGS="-O2" |
2127 | else |
2703 | else |
2128 | CFLAGS= |
2704 | CFLAGS= |
2129 | fi |
2705 | fi |
2130 | fi |
2706 | fi |
2131 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2707 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2132 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2708 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2133 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2709 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2135 | else |
2711 | else |
2136 | ac_cv_prog_cc_stdc=no |
2712 | ac_cv_prog_cc_c89=no |
2137 | ac_save_CC=$CC |
2713 | ac_save_CC=$CC |
2138 | cat >conftest.$ac_ext <<_ACEOF |
2714 | cat >conftest.$ac_ext <<_ACEOF |
2139 | /* confdefs.h. */ |
2715 | /* confdefs.h. */ |
2140 | _ACEOF |
2716 | _ACEOF |
2141 | cat confdefs.h >>conftest.$ac_ext |
2717 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
2165 | } |
2741 | } |
2166 | |
2742 | |
2167 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2743 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2168 | function prototypes and stuff, but not '\xHH' hex character constants. |
2744 | function prototypes and stuff, but not '\xHH' hex character constants. |
2169 | These don't provoke an error unfortunately, instead are silently treated |
2745 | These don't provoke an error unfortunately, instead are silently treated |
2170 | as 'x'. The following induces an error, until -std1 is added to get |
2746 | as 'x'. The following induces an error, until -std is added to get |
2171 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2747 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2172 | array size at least. It's necessary to write '\x00'==0 to get something |
2748 | array size at least. It's necessary to write '\x00'==0 to get something |
2173 | that's true only with -std1. */ |
2749 | that's true only with -std. */ |
2174 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2750 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2751 | |
|
|
2752 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2753 | inside strings and character constants. */ |
|
|
2754 | #define FOO(x) 'x' |
|
|
2755 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
2175 | |
2756 | |
2176 | int test (int i, double x); |
2757 | int test (int i, double x); |
2177 | struct s1 {int (*f) (int a);}; |
2758 | struct s1 {int (*f) (int a);}; |
2178 | struct s2 {int (*f) (double a);}; |
2759 | struct s2 {int (*f) (double a);}; |
2179 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2760 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
… | |
… | |
2185 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2766 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2186 | ; |
2767 | ; |
2187 | return 0; |
2768 | return 0; |
2188 | } |
2769 | } |
2189 | _ACEOF |
2770 | _ACEOF |
2190 | # Don't try gcc -ansi; that turns off useful extensions and |
2771 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2191 | # breaks some systems' header files. |
2772 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2192 | # AIX -qlanglvl=ansi |
|
|
2193 | # Ultrix and OSF/1 -std1 |
|
|
2194 | # HP-UX 10.20 and later -Ae |
|
|
2195 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
|
|
2196 | # SVR4 -Xc -D__EXTENSIONS__ |
|
|
2197 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2198 | do |
2773 | do |
2199 | CC="$ac_save_CC $ac_arg" |
2774 | CC="$ac_save_CC $ac_arg" |
2200 | rm -f conftest.$ac_objext |
2775 | rm -f conftest.$ac_objext |
|
|
2776 | if { (ac_try="$ac_compile" |
|
|
2777 | case "(($ac_try" in |
|
|
2778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2779 | *) ac_try_echo=$ac_try;; |
|
|
2780 | esac |
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2202 | (eval $ac_compile) 2>conftest.er1 |
2782 | (eval "$ac_compile") 2>conftest.er1 |
2203 | ac_status=$? |
2783 | ac_status=$? |
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
2784 | grep -v '^ *+' conftest.er1 >conftest.err |
2205 | rm -f conftest.er1 |
2785 | rm -f conftest.er1 |
2206 | cat conftest.err >&5 |
2786 | cat conftest.err >&5 |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2208 | (exit $ac_status); } && |
2788 | (exit $ac_status); } && { |
2209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2789 | test -z "$ac_c_werror_flag" || |
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2790 | test ! -s conftest.err |
2211 | (eval $ac_try) 2>&5 |
2791 | } && test -s conftest.$ac_objext; then |
2212 | ac_status=$? |
|
|
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2214 | (exit $ac_status); }; } && |
|
|
2215 | { ac_try='test -s conftest.$ac_objext' |
|
|
2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2217 | (eval $ac_try) 2>&5 |
|
|
2218 | ac_status=$? |
|
|
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2220 | (exit $ac_status); }; }; then |
|
|
2221 | ac_cv_prog_cc_stdc=$ac_arg |
2792 | ac_cv_prog_cc_c89=$ac_arg |
2222 | break |
|
|
2223 | else |
2793 | else |
2224 | echo "$as_me: failed program was:" >&5 |
2794 | echo "$as_me: failed program was:" >&5 |
2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
2795 | sed 's/^/| /' conftest.$ac_ext >&5 |
2226 | |
2796 | |
|
|
2797 | |
2227 | fi |
2798 | fi |
|
|
2799 | |
2228 | rm -f conftest.err conftest.$ac_objext |
2800 | rm -f core conftest.err conftest.$ac_objext |
|
|
2801 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2229 | done |
2802 | done |
2230 | rm -f conftest.$ac_ext conftest.$ac_objext |
2803 | rm -f conftest.$ac_ext |
2231 | CC=$ac_save_CC |
2804 | CC=$ac_save_CC |
2232 | |
2805 | |
2233 | fi |
2806 | fi |
2234 | |
2807 | # AC_CACHE_VAL |
2235 | case "x$ac_cv_prog_cc_stdc" in |
2808 | case "x$ac_cv_prog_cc_c89" in |
2236 | x|xno) |
2809 | x) |
2237 | echo "$as_me:$LINENO: result: none needed" >&5 |
2810 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2238 | echo "${ECHO_T}none needed" >&6 ;; |
2811 | echo "${ECHO_T}none needed" >&6; } ;; |
|
|
2812 | xno) |
|
|
2813 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
|
|
2814 | echo "${ECHO_T}unsupported" >&6; } ;; |
2239 | *) |
2815 | *) |
|
|
2816 | CC="$CC $ac_cv_prog_cc_c89" |
2240 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2817 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2241 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2818 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2242 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
|
2243 | esac |
2819 | esac |
2244 | |
2820 | |
2245 | # Some people use a C++ compiler to compile C. Since we use `exit', |
|
|
2246 | # in C++ we need to declare it. In case someone uses the same compiler |
|
|
2247 | # for both compiling C and C++ we need to have the C++ compiler decide |
|
|
2248 | # the declaration of exit, since it's the most demanding environment. |
|
|
2249 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2250 | #ifndef __cplusplus |
|
|
2251 | choke me |
|
|
2252 | #endif |
|
|
2253 | _ACEOF |
|
|
2254 | rm -f conftest.$ac_objext |
|
|
2255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2256 | (eval $ac_compile) 2>conftest.er1 |
|
|
2257 | ac_status=$? |
|
|
2258 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2259 | rm -f conftest.er1 |
|
|
2260 | cat conftest.err >&5 |
|
|
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2262 | (exit $ac_status); } && |
|
|
2263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2265 | (eval $ac_try) 2>&5 |
|
|
2266 | ac_status=$? |
|
|
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2268 | (exit $ac_status); }; } && |
|
|
2269 | { ac_try='test -s conftest.$ac_objext' |
|
|
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2271 | (eval $ac_try) 2>&5 |
|
|
2272 | ac_status=$? |
|
|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2274 | (exit $ac_status); }; }; then |
|
|
2275 | for ac_declaration in \ |
|
|
2276 | '' \ |
|
|
2277 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
2278 | 'extern "C" void std::exit (int); using std::exit;' \ |
|
|
2279 | 'extern "C" void exit (int) throw ();' \ |
|
|
2280 | 'extern "C" void exit (int);' \ |
|
|
2281 | 'void exit (int);' |
|
|
2282 | do |
|
|
2283 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2284 | /* confdefs.h. */ |
|
|
2285 | _ACEOF |
|
|
2286 | cat confdefs.h >>conftest.$ac_ext |
|
|
2287 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2288 | /* end confdefs.h. */ |
|
|
2289 | $ac_declaration |
|
|
2290 | #include <stdlib.h> |
|
|
2291 | int |
|
|
2292 | main () |
|
|
2293 | { |
|
|
2294 | exit (42); |
|
|
2295 | ; |
|
|
2296 | return 0; |
|
|
2297 | } |
|
|
2298 | _ACEOF |
|
|
2299 | rm -f conftest.$ac_objext |
|
|
2300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2301 | (eval $ac_compile) 2>conftest.er1 |
|
|
2302 | ac_status=$? |
|
|
2303 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2304 | rm -f conftest.er1 |
|
|
2305 | cat conftest.err >&5 |
|
|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2307 | (exit $ac_status); } && |
|
|
2308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2310 | (eval $ac_try) 2>&5 |
|
|
2311 | ac_status=$? |
|
|
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2313 | (exit $ac_status); }; } && |
|
|
2314 | { ac_try='test -s conftest.$ac_objext' |
|
|
2315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2316 | (eval $ac_try) 2>&5 |
|
|
2317 | ac_status=$? |
|
|
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2319 | (exit $ac_status); }; }; then |
|
|
2320 | : |
|
|
2321 | else |
|
|
2322 | echo "$as_me: failed program was:" >&5 |
|
|
2323 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2324 | |
2821 | |
2325 | continue |
|
|
2326 | fi |
|
|
2327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2328 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2329 | /* confdefs.h. */ |
|
|
2330 | _ACEOF |
|
|
2331 | cat confdefs.h >>conftest.$ac_ext |
|
|
2332 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2333 | /* end confdefs.h. */ |
|
|
2334 | $ac_declaration |
|
|
2335 | int |
|
|
2336 | main () |
|
|
2337 | { |
|
|
2338 | exit (42); |
|
|
2339 | ; |
|
|
2340 | return 0; |
|
|
2341 | } |
|
|
2342 | _ACEOF |
|
|
2343 | rm -f conftest.$ac_objext |
|
|
2344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2345 | (eval $ac_compile) 2>conftest.er1 |
|
|
2346 | ac_status=$? |
|
|
2347 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2348 | rm -f conftest.er1 |
|
|
2349 | cat conftest.err >&5 |
|
|
2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2351 | (exit $ac_status); } && |
|
|
2352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2354 | (eval $ac_try) 2>&5 |
|
|
2355 | ac_status=$? |
|
|
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2357 | (exit $ac_status); }; } && |
|
|
2358 | { ac_try='test -s conftest.$ac_objext' |
|
|
2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2360 | (eval $ac_try) 2>&5 |
|
|
2361 | ac_status=$? |
|
|
2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2363 | (exit $ac_status); }; }; then |
|
|
2364 | break |
|
|
2365 | else |
|
|
2366 | echo "$as_me: failed program was:" >&5 |
|
|
2367 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2368 | |
|
|
2369 | fi |
|
|
2370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2371 | done |
|
|
2372 | rm -f conftest* |
|
|
2373 | if test -n "$ac_declaration"; then |
|
|
2374 | echo '#ifdef __cplusplus' >>confdefs.h |
|
|
2375 | echo $ac_declaration >>confdefs.h |
|
|
2376 | echo '#endif' >>confdefs.h |
|
|
2377 | fi |
|
|
2378 | |
|
|
2379 | else |
|
|
2380 | echo "$as_me: failed program was:" >&5 |
|
|
2381 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2382 | |
|
|
2383 | fi |
|
|
2384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2385 | ac_ext=c |
2822 | ac_ext=c |
2386 | ac_cpp='$CPP $CPPFLAGS' |
2823 | ac_cpp='$CPP $CPPFLAGS' |
2387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2390 | |
2827 | |
2391 | ac_ext=cc |
2828 | ac_ext=cpp |
2392 | ac_cpp='$CXXCPP $CPPFLAGS' |
2829 | ac_cpp='$CXXCPP $CPPFLAGS' |
2393 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2394 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2395 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
2833 | if test -z "$CXX"; then |
|
|
2834 | if test -n "$CCC"; then |
|
|
2835 | CXX=$CCC |
|
|
2836 | else |
2396 | if test -n "$ac_tool_prefix"; then |
2837 | if test -n "$ac_tool_prefix"; then |
2397 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2838 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2398 | do |
2839 | do |
2399 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2840 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2400 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2841 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2403 | if test "${ac_cv_prog_CXX+set}" = set; then |
2844 | if test "${ac_cv_prog_CXX+set}" = set; then |
2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2405 | else |
2846 | else |
2406 | if test -n "$CXX"; then |
2847 | if test -n "$CXX"; then |
2407 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2848 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
… | |
… | |
2410 | for as_dir in $PATH |
2851 | for as_dir in $PATH |
2411 | do |
2852 | do |
2412 | IFS=$as_save_IFS |
2853 | IFS=$as_save_IFS |
2413 | test -z "$as_dir" && as_dir=. |
2854 | test -z "$as_dir" && as_dir=. |
2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
2415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2416 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2857 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2418 | break 2 |
2859 | break 2 |
2419 | fi |
2860 | fi |
2420 | done |
2861 | done |
2421 | done |
2862 | done |
|
|
2863 | IFS=$as_save_IFS |
2422 | |
2864 | |
2423 | fi |
2865 | fi |
2424 | fi |
2866 | fi |
2425 | CXX=$ac_cv_prog_CXX |
2867 | CXX=$ac_cv_prog_CXX |
2426 | if test -n "$CXX"; then |
2868 | if test -n "$CXX"; then |
2427 | echo "$as_me:$LINENO: result: $CXX" >&5 |
2869 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
2428 | echo "${ECHO_T}$CXX" >&6 |
2870 | echo "${ECHO_T}$CXX" >&6; } |
2429 | else |
2871 | else |
2430 | echo "$as_me:$LINENO: result: no" >&5 |
2872 | { echo "$as_me:$LINENO: result: no" >&5 |
2431 | echo "${ECHO_T}no" >&6 |
2873 | echo "${ECHO_T}no" >&6; } |
2432 | fi |
2874 | fi |
|
|
2875 | |
2433 | |
2876 | |
2434 | test -n "$CXX" && break |
2877 | test -n "$CXX" && break |
2435 | done |
2878 | done |
2436 | fi |
2879 | fi |
2437 | if test -z "$CXX"; then |
2880 | if test -z "$CXX"; then |
2438 | ac_ct_CXX=$CXX |
2881 | ac_ct_CXX=$CXX |
2439 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2882 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2440 | do |
2883 | do |
2441 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2884 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2442 | set dummy $ac_prog; ac_word=$2 |
2885 | set dummy $ac_prog; ac_word=$2 |
2443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2886 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2445 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2888 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2447 | else |
2890 | else |
2448 | if test -n "$ac_ct_CXX"; then |
2891 | if test -n "$ac_ct_CXX"; then |
2449 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2892 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
… | |
… | |
2452 | for as_dir in $PATH |
2895 | for as_dir in $PATH |
2453 | do |
2896 | do |
2454 | IFS=$as_save_IFS |
2897 | IFS=$as_save_IFS |
2455 | test -z "$as_dir" && as_dir=. |
2898 | test -z "$as_dir" && as_dir=. |
2456 | for ac_exec_ext in '' $ac_executable_extensions; do |
2899 | for ac_exec_ext in '' $ac_executable_extensions; do |
2457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2458 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2901 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2460 | break 2 |
2903 | break 2 |
2461 | fi |
2904 | fi |
2462 | done |
2905 | done |
2463 | done |
2906 | done |
|
|
2907 | IFS=$as_save_IFS |
2464 | |
2908 | |
2465 | fi |
2909 | fi |
2466 | fi |
2910 | fi |
2467 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2911 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2468 | if test -n "$ac_ct_CXX"; then |
2912 | if test -n "$ac_ct_CXX"; then |
2469 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2913 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2470 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
2914 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
2471 | else |
2915 | else |
2472 | echo "$as_me:$LINENO: result: no" >&5 |
2916 | { echo "$as_me:$LINENO: result: no" >&5 |
2473 | echo "${ECHO_T}no" >&6 |
2917 | echo "${ECHO_T}no" >&6; } |
2474 | fi |
2918 | fi |
|
|
2919 | |
2475 | |
2920 | |
2476 | test -n "$ac_ct_CXX" && break |
2921 | test -n "$ac_ct_CXX" && break |
2477 | done |
2922 | done |
2478 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
|
|
2479 | |
2923 | |
|
|
2924 | if test "x$ac_ct_CXX" = x; then |
|
|
2925 | CXX="g++" |
|
|
2926 | else |
|
|
2927 | case $cross_compiling:$ac_tool_warned in |
|
|
2928 | yes:) |
|
|
2929 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2930 | whose name does not start with the host triplet. If you think this |
|
|
2931 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2932 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2933 | whose name does not start with the host triplet. If you think this |
|
|
2934 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2935 | ac_tool_warned=yes ;; |
|
|
2936 | esac |
2480 | CXX=$ac_ct_CXX |
2937 | CXX=$ac_ct_CXX |
|
|
2938 | fi |
2481 | fi |
2939 | fi |
2482 | |
2940 | |
2483 | |
2941 | fi |
|
|
2942 | fi |
2484 | # Provide some information about the compiler. |
2943 | # Provide some information about the compiler. |
2485 | echo "$as_me:$LINENO:" \ |
|
|
2486 | "checking for C++ compiler version" >&5 |
2944 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
2487 | ac_compiler=`set X $ac_compile; echo $2` |
2945 | ac_compiler=`set X $ac_compile; echo $2` |
2488 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2946 | { (ac_try="$ac_compiler --version >&5" |
|
|
2947 | case "(($ac_try" in |
|
|
2948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2949 | *) ac_try_echo=$ac_try;; |
|
|
2950 | esac |
|
|
2951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2489 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2952 | (eval "$ac_compiler --version >&5") 2>&5 |
2490 | ac_status=$? |
2953 | ac_status=$? |
2491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2492 | (exit $ac_status); } |
2955 | (exit $ac_status); } |
2493 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2956 | { (ac_try="$ac_compiler -v >&5" |
|
|
2957 | case "(($ac_try" in |
|
|
2958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2959 | *) ac_try_echo=$ac_try;; |
|
|
2960 | esac |
|
|
2961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2494 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2962 | (eval "$ac_compiler -v >&5") 2>&5 |
2495 | ac_status=$? |
2963 | ac_status=$? |
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2497 | (exit $ac_status); } |
2965 | (exit $ac_status); } |
2498 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2966 | { (ac_try="$ac_compiler -V >&5" |
|
|
2967 | case "(($ac_try" in |
|
|
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2969 | *) ac_try_echo=$ac_try;; |
|
|
2970 | esac |
|
|
2971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2499 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2972 | (eval "$ac_compiler -V >&5") 2>&5 |
2500 | ac_status=$? |
2973 | ac_status=$? |
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2502 | (exit $ac_status); } |
2975 | (exit $ac_status); } |
2503 | |
2976 | |
2504 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2977 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2505 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2978 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
2506 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2979 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2508 | else |
2981 | else |
2509 | cat >conftest.$ac_ext <<_ACEOF |
2982 | cat >conftest.$ac_ext <<_ACEOF |
2510 | /* confdefs.h. */ |
2983 | /* confdefs.h. */ |
… | |
… | |
2523 | ; |
2996 | ; |
2524 | return 0; |
2997 | return 0; |
2525 | } |
2998 | } |
2526 | _ACEOF |
2999 | _ACEOF |
2527 | rm -f conftest.$ac_objext |
3000 | rm -f conftest.$ac_objext |
|
|
3001 | if { (ac_try="$ac_compile" |
|
|
3002 | case "(($ac_try" in |
|
|
3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3004 | *) ac_try_echo=$ac_try;; |
|
|
3005 | esac |
2528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2529 | (eval $ac_compile) 2>conftest.er1 |
3007 | (eval "$ac_compile") 2>conftest.er1 |
2530 | ac_status=$? |
3008 | ac_status=$? |
2531 | grep -v '^ *+' conftest.er1 >conftest.err |
3009 | grep -v '^ *+' conftest.er1 >conftest.err |
2532 | rm -f conftest.er1 |
3010 | rm -f conftest.er1 |
2533 | cat conftest.err >&5 |
3011 | cat conftest.err >&5 |
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2535 | (exit $ac_status); } && |
3013 | (exit $ac_status); } && { |
2536 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3014 | test -z "$ac_cxx_werror_flag" || |
2537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3015 | test ! -s conftest.err |
2538 | (eval $ac_try) 2>&5 |
3016 | } && test -s conftest.$ac_objext; then |
2539 | ac_status=$? |
|
|
2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2541 | (exit $ac_status); }; } && |
|
|
2542 | { ac_try='test -s conftest.$ac_objext' |
|
|
2543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2544 | (eval $ac_try) 2>&5 |
|
|
2545 | ac_status=$? |
|
|
2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2547 | (exit $ac_status); }; }; then |
|
|
2548 | ac_compiler_gnu=yes |
3017 | ac_compiler_gnu=yes |
2549 | else |
3018 | else |
2550 | echo "$as_me: failed program was:" >&5 |
3019 | echo "$as_me: failed program was:" >&5 |
2551 | sed 's/^/| /' conftest.$ac_ext >&5 |
3020 | sed 's/^/| /' conftest.$ac_ext >&5 |
2552 | |
3021 | |
2553 | ac_compiler_gnu=no |
3022 | ac_compiler_gnu=no |
2554 | fi |
3023 | fi |
|
|
3024 | |
2555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2556 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3026 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2557 | |
3027 | |
2558 | fi |
3028 | fi |
2559 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3029 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2560 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
3030 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
2561 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
3031 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
2562 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3032 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
2563 | ac_save_CXXFLAGS=$CXXFLAGS |
3033 | ac_save_CXXFLAGS=$CXXFLAGS |
2564 | CXXFLAGS="-g" |
|
|
2565 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3034 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2566 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
3035 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
2567 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
3036 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2569 | else |
3038 | else |
|
|
3039 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
|
3040 | ac_cxx_werror_flag=yes |
|
|
3041 | ac_cv_prog_cxx_g=no |
|
|
3042 | CXXFLAGS="-g" |
2570 | cat >conftest.$ac_ext <<_ACEOF |
3043 | cat >conftest.$ac_ext <<_ACEOF |
2571 | /* confdefs.h. */ |
3044 | /* confdefs.h. */ |
2572 | _ACEOF |
3045 | _ACEOF |
2573 | cat confdefs.h >>conftest.$ac_ext |
3046 | cat confdefs.h >>conftest.$ac_ext |
2574 | cat >>conftest.$ac_ext <<_ACEOF |
3047 | cat >>conftest.$ac_ext <<_ACEOF |
2575 | /* end confdefs.h. */ |
3048 | /* end confdefs.h. */ |
… | |
… | |
2581 | ; |
3054 | ; |
2582 | return 0; |
3055 | return 0; |
2583 | } |
3056 | } |
2584 | _ACEOF |
3057 | _ACEOF |
2585 | rm -f conftest.$ac_objext |
3058 | rm -f conftest.$ac_objext |
|
|
3059 | if { (ac_try="$ac_compile" |
|
|
3060 | case "(($ac_try" in |
|
|
3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3062 | *) ac_try_echo=$ac_try;; |
|
|
3063 | esac |
2586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2587 | (eval $ac_compile) 2>conftest.er1 |
3065 | (eval "$ac_compile") 2>conftest.er1 |
2588 | ac_status=$? |
3066 | ac_status=$? |
2589 | grep -v '^ *+' conftest.er1 >conftest.err |
3067 | grep -v '^ *+' conftest.er1 >conftest.err |
2590 | rm -f conftest.er1 |
3068 | rm -f conftest.er1 |
2591 | cat conftest.err >&5 |
3069 | cat conftest.err >&5 |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2593 | (exit $ac_status); } && |
3071 | (exit $ac_status); } && { |
2594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3072 | test -z "$ac_cxx_werror_flag" || |
2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3073 | test ! -s conftest.err |
2596 | (eval $ac_try) 2>&5 |
3074 | } && test -s conftest.$ac_objext; then |
2597 | ac_status=$? |
|
|
2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2599 | (exit $ac_status); }; } && |
|
|
2600 | { ac_try='test -s conftest.$ac_objext' |
|
|
2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2602 | (eval $ac_try) 2>&5 |
|
|
2603 | ac_status=$? |
|
|
2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2605 | (exit $ac_status); }; }; then |
|
|
2606 | ac_cv_prog_cxx_g=yes |
3075 | ac_cv_prog_cxx_g=yes |
2607 | else |
3076 | else |
2608 | echo "$as_me: failed program was:" >&5 |
3077 | echo "$as_me: failed program was:" >&5 |
2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 |
2610 | |
3079 | |
|
|
3080 | CXXFLAGS="" |
|
|
3081 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3082 | /* confdefs.h. */ |
|
|
3083 | _ACEOF |
|
|
3084 | cat confdefs.h >>conftest.$ac_ext |
|
|
3085 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3086 | /* end confdefs.h. */ |
|
|
3087 | |
|
|
3088 | int |
|
|
3089 | main () |
|
|
3090 | { |
|
|
3091 | |
|
|
3092 | ; |
|
|
3093 | return 0; |
|
|
3094 | } |
|
|
3095 | _ACEOF |
|
|
3096 | rm -f conftest.$ac_objext |
|
|
3097 | if { (ac_try="$ac_compile" |
|
|
3098 | case "(($ac_try" in |
|
|
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3100 | *) ac_try_echo=$ac_try;; |
|
|
3101 | esac |
|
|
3102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3103 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3104 | ac_status=$? |
|
|
3105 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3106 | rm -f conftest.er1 |
|
|
3107 | cat conftest.err >&5 |
|
|
3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3109 | (exit $ac_status); } && { |
|
|
3110 | test -z "$ac_cxx_werror_flag" || |
|
|
3111 | test ! -s conftest.err |
|
|
3112 | } && test -s conftest.$ac_objext; then |
|
|
3113 | : |
|
|
3114 | else |
|
|
3115 | echo "$as_me: failed program was:" >&5 |
|
|
3116 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3117 | |
|
|
3118 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
|
3119 | CXXFLAGS="-g" |
|
|
3120 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3121 | /* confdefs.h. */ |
|
|
3122 | _ACEOF |
|
|
3123 | cat confdefs.h >>conftest.$ac_ext |
|
|
3124 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3125 | /* end confdefs.h. */ |
|
|
3126 | |
|
|
3127 | int |
|
|
3128 | main () |
|
|
3129 | { |
|
|
3130 | |
|
|
3131 | ; |
|
|
3132 | return 0; |
|
|
3133 | } |
|
|
3134 | _ACEOF |
|
|
3135 | rm -f conftest.$ac_objext |
|
|
3136 | if { (ac_try="$ac_compile" |
|
|
3137 | case "(($ac_try" in |
|
|
3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3139 | *) ac_try_echo=$ac_try;; |
|
|
3140 | esac |
|
|
3141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3142 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3143 | ac_status=$? |
|
|
3144 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3145 | rm -f conftest.er1 |
|
|
3146 | cat conftest.err >&5 |
|
|
3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3148 | (exit $ac_status); } && { |
|
|
3149 | test -z "$ac_cxx_werror_flag" || |
|
|
3150 | test ! -s conftest.err |
|
|
3151 | } && test -s conftest.$ac_objext; then |
2611 | ac_cv_prog_cxx_g=no |
3152 | ac_cv_prog_cxx_g=yes |
|
|
3153 | else |
|
|
3154 | echo "$as_me: failed program was:" >&5 |
|
|
3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3156 | |
|
|
3157 | |
2612 | fi |
3158 | fi |
|
|
3159 | |
2613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2614 | fi |
3161 | fi |
|
|
3162 | |
|
|
3163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3164 | fi |
|
|
3165 | |
|
|
3166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3167 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
|
3168 | fi |
2615 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3169 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2616 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
3170 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
2617 | if test "$ac_test_CXXFLAGS" = set; then |
3171 | if test "$ac_test_CXXFLAGS" = set; then |
2618 | CXXFLAGS=$ac_save_CXXFLAGS |
3172 | CXXFLAGS=$ac_save_CXXFLAGS |
2619 | elif test $ac_cv_prog_cxx_g = yes; then |
3173 | elif test $ac_cv_prog_cxx_g = yes; then |
2620 | if test "$GXX" = yes; then |
3174 | if test "$GXX" = yes; then |
2621 | CXXFLAGS="-g -O2" |
3175 | CXXFLAGS="-g -O2" |
… | |
… | |
2627 | CXXFLAGS="-O2" |
3181 | CXXFLAGS="-O2" |
2628 | else |
3182 | else |
2629 | CXXFLAGS= |
3183 | CXXFLAGS= |
2630 | fi |
3184 | fi |
2631 | fi |
3185 | fi |
2632 | for ac_declaration in \ |
|
|
2633 | '' \ |
|
|
2634 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
2635 | 'extern "C" void std::exit (int); using std::exit;' \ |
|
|
2636 | 'extern "C" void exit (int) throw ();' \ |
|
|
2637 | 'extern "C" void exit (int);' \ |
|
|
2638 | 'void exit (int);' |
|
|
2639 | do |
|
|
2640 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2641 | /* confdefs.h. */ |
|
|
2642 | _ACEOF |
|
|
2643 | cat confdefs.h >>conftest.$ac_ext |
|
|
2644 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2645 | /* end confdefs.h. */ |
|
|
2646 | $ac_declaration |
|
|
2647 | #include <stdlib.h> |
|
|
2648 | int |
|
|
2649 | main () |
|
|
2650 | { |
|
|
2651 | exit (42); |
|
|
2652 | ; |
|
|
2653 | return 0; |
|
|
2654 | } |
|
|
2655 | _ACEOF |
|
|
2656 | rm -f conftest.$ac_objext |
|
|
2657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2658 | (eval $ac_compile) 2>conftest.er1 |
|
|
2659 | ac_status=$? |
|
|
2660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2661 | rm -f conftest.er1 |
|
|
2662 | cat conftest.err >&5 |
|
|
2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2664 | (exit $ac_status); } && |
|
|
2665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2667 | (eval $ac_try) 2>&5 |
|
|
2668 | ac_status=$? |
|
|
2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2670 | (exit $ac_status); }; } && |
|
|
2671 | { ac_try='test -s conftest.$ac_objext' |
|
|
2672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2673 | (eval $ac_try) 2>&5 |
|
|
2674 | ac_status=$? |
|
|
2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2676 | (exit $ac_status); }; }; then |
|
|
2677 | : |
|
|
2678 | else |
|
|
2679 | echo "$as_me: failed program was:" >&5 |
|
|
2680 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2681 | |
|
|
2682 | continue |
|
|
2683 | fi |
|
|
2684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2685 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2686 | /* confdefs.h. */ |
|
|
2687 | _ACEOF |
|
|
2688 | cat confdefs.h >>conftest.$ac_ext |
|
|
2689 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2690 | /* end confdefs.h. */ |
|
|
2691 | $ac_declaration |
|
|
2692 | int |
|
|
2693 | main () |
|
|
2694 | { |
|
|
2695 | exit (42); |
|
|
2696 | ; |
|
|
2697 | return 0; |
|
|
2698 | } |
|
|
2699 | _ACEOF |
|
|
2700 | rm -f conftest.$ac_objext |
|
|
2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2702 | (eval $ac_compile) 2>conftest.er1 |
|
|
2703 | ac_status=$? |
|
|
2704 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2705 | rm -f conftest.er1 |
|
|
2706 | cat conftest.err >&5 |
|
|
2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2708 | (exit $ac_status); } && |
|
|
2709 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2711 | (eval $ac_try) 2>&5 |
|
|
2712 | ac_status=$? |
|
|
2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2714 | (exit $ac_status); }; } && |
|
|
2715 | { ac_try='test -s conftest.$ac_objext' |
|
|
2716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2717 | (eval $ac_try) 2>&5 |
|
|
2718 | ac_status=$? |
|
|
2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2720 | (exit $ac_status); }; }; then |
|
|
2721 | break |
|
|
2722 | else |
|
|
2723 | echo "$as_me: failed program was:" >&5 |
|
|
2724 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2725 | |
|
|
2726 | fi |
|
|
2727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2728 | done |
|
|
2729 | rm -f conftest* |
|
|
2730 | if test -n "$ac_declaration"; then |
|
|
2731 | echo '#ifdef __cplusplus' >>confdefs.h |
|
|
2732 | echo $ac_declaration >>confdefs.h |
|
|
2733 | echo '#endif' >>confdefs.h |
|
|
2734 | fi |
|
|
2735 | |
|
|
2736 | ac_ext=c |
3186 | ac_ext=c |
2737 | ac_cpp='$CPP $CPPFLAGS' |
3187 | ac_cpp='$CPP $CPPFLAGS' |
2738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
… | |
… | |
2742 | ac_ext=c |
3192 | ac_ext=c |
2743 | ac_cpp='$CPP $CPPFLAGS' |
3193 | ac_cpp='$CPP $CPPFLAGS' |
2744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2747 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3197 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2748 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3198 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
2749 | # On Suns, sometimes $CPP names a directory. |
3199 | # On Suns, sometimes $CPP names a directory. |
2750 | if test -n "$CPP" && test -d "$CPP"; then |
3200 | if test -n "$CPP" && test -d "$CPP"; then |
2751 | CPP= |
3201 | CPP= |
2752 | fi |
3202 | fi |
2753 | if test -z "$CPP"; then |
3203 | if test -z "$CPP"; then |
… | |
… | |
2777 | #else |
3227 | #else |
2778 | # include <assert.h> |
3228 | # include <assert.h> |
2779 | #endif |
3229 | #endif |
2780 | Syntax error |
3230 | Syntax error |
2781 | _ACEOF |
3231 | _ACEOF |
2782 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3232 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3233 | case "(($ac_try" in |
|
|
3234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3235 | *) ac_try_echo=$ac_try;; |
|
|
3236 | esac |
|
|
3237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2783 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3238 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2784 | ac_status=$? |
3239 | ac_status=$? |
2785 | grep -v '^ *+' conftest.er1 >conftest.err |
3240 | grep -v '^ *+' conftest.er1 >conftest.err |
2786 | rm -f conftest.er1 |
3241 | rm -f conftest.er1 |
2787 | cat conftest.err >&5 |
3242 | cat conftest.err >&5 |
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2789 | (exit $ac_status); } >/dev/null; then |
3244 | (exit $ac_status); } >/dev/null && { |
|
|
3245 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2790 | if test -s conftest.err; then |
3246 | test ! -s conftest.err |
2791 | ac_cpp_err=$ac_c_preproc_warn_flag |
3247 | }; then |
2792 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
2793 | else |
|
|
2794 | ac_cpp_err= |
|
|
2795 | fi |
|
|
2796 | else |
|
|
2797 | ac_cpp_err=yes |
|
|
2798 | fi |
|
|
2799 | if test -z "$ac_cpp_err"; then |
|
|
2800 | : |
3248 | : |
2801 | else |
3249 | else |
2802 | echo "$as_me: failed program was:" >&5 |
3250 | echo "$as_me: failed program was:" >&5 |
2803 | sed 's/^/| /' conftest.$ac_ext >&5 |
3251 | sed 's/^/| /' conftest.$ac_ext >&5 |
2804 | |
3252 | |
2805 | # Broken: fails on valid input. |
3253 | # Broken: fails on valid input. |
2806 | continue |
3254 | continue |
2807 | fi |
3255 | fi |
|
|
3256 | |
2808 | rm -f conftest.err conftest.$ac_ext |
3257 | rm -f conftest.err conftest.$ac_ext |
2809 | |
3258 | |
2810 | # OK, works on sane cases. Now check whether non-existent headers |
3259 | # OK, works on sane cases. Now check whether nonexistent headers |
2811 | # can be detected and how. |
3260 | # can be detected and how. |
2812 | cat >conftest.$ac_ext <<_ACEOF |
3261 | cat >conftest.$ac_ext <<_ACEOF |
2813 | /* confdefs.h. */ |
3262 | /* confdefs.h. */ |
2814 | _ACEOF |
3263 | _ACEOF |
2815 | cat confdefs.h >>conftest.$ac_ext |
3264 | cat confdefs.h >>conftest.$ac_ext |
2816 | cat >>conftest.$ac_ext <<_ACEOF |
3265 | cat >>conftest.$ac_ext <<_ACEOF |
2817 | /* end confdefs.h. */ |
3266 | /* end confdefs.h. */ |
2818 | #include <ac_nonexistent.h> |
3267 | #include <ac_nonexistent.h> |
2819 | _ACEOF |
3268 | _ACEOF |
2820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3270 | case "(($ac_try" in |
|
|
3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3272 | *) ac_try_echo=$ac_try;; |
|
|
3273 | esac |
|
|
3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2822 | ac_status=$? |
3276 | ac_status=$? |
2823 | grep -v '^ *+' conftest.er1 >conftest.err |
3277 | grep -v '^ *+' conftest.er1 >conftest.err |
2824 | rm -f conftest.er1 |
3278 | rm -f conftest.er1 |
2825 | cat conftest.err >&5 |
3279 | cat conftest.err >&5 |
2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2827 | (exit $ac_status); } >/dev/null; then |
3281 | (exit $ac_status); } >/dev/null && { |
|
|
3282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2828 | if test -s conftest.err; then |
3283 | test ! -s conftest.err |
2829 | ac_cpp_err=$ac_c_preproc_warn_flag |
3284 | }; then |
2830 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
2831 | else |
|
|
2832 | ac_cpp_err= |
|
|
2833 | fi |
|
|
2834 | else |
|
|
2835 | ac_cpp_err=yes |
|
|
2836 | fi |
|
|
2837 | if test -z "$ac_cpp_err"; then |
|
|
2838 | # Broken: success on invalid input. |
3285 | # Broken: success on invalid input. |
2839 | continue |
3286 | continue |
2840 | else |
3287 | else |
2841 | echo "$as_me: failed program was:" >&5 |
3288 | echo "$as_me: failed program was:" >&5 |
2842 | sed 's/^/| /' conftest.$ac_ext >&5 |
3289 | sed 's/^/| /' conftest.$ac_ext >&5 |
2843 | |
3290 | |
2844 | # Passes both tests. |
3291 | # Passes both tests. |
2845 | ac_preproc_ok=: |
3292 | ac_preproc_ok=: |
2846 | break |
3293 | break |
2847 | fi |
3294 | fi |
|
|
3295 | |
2848 | rm -f conftest.err conftest.$ac_ext |
3296 | rm -f conftest.err conftest.$ac_ext |
2849 | |
3297 | |
2850 | done |
3298 | done |
2851 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3299 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2852 | rm -f conftest.err conftest.$ac_ext |
3300 | rm -f conftest.err conftest.$ac_ext |
… | |
… | |
2860 | fi |
3308 | fi |
2861 | CPP=$ac_cv_prog_CPP |
3309 | CPP=$ac_cv_prog_CPP |
2862 | else |
3310 | else |
2863 | ac_cv_prog_CPP=$CPP |
3311 | ac_cv_prog_CPP=$CPP |
2864 | fi |
3312 | fi |
2865 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3313 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
2866 | echo "${ECHO_T}$CPP" >&6 |
3314 | echo "${ECHO_T}$CPP" >&6; } |
2867 | ac_preproc_ok=false |
3315 | ac_preproc_ok=false |
2868 | for ac_c_preproc_warn_flag in '' yes |
3316 | for ac_c_preproc_warn_flag in '' yes |
2869 | do |
3317 | do |
2870 | # Use a header file that comes with gcc, so configuring glibc |
3318 | # Use a header file that comes with gcc, so configuring glibc |
2871 | # with a fresh cross-compiler works. |
3319 | # with a fresh cross-compiler works. |
… | |
… | |
2884 | #else |
3332 | #else |
2885 | # include <assert.h> |
3333 | # include <assert.h> |
2886 | #endif |
3334 | #endif |
2887 | Syntax error |
3335 | Syntax error |
2888 | _ACEOF |
3336 | _ACEOF |
2889 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3337 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3338 | case "(($ac_try" in |
|
|
3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3340 | *) ac_try_echo=$ac_try;; |
|
|
3341 | esac |
|
|
3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2890 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3343 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2891 | ac_status=$? |
3344 | ac_status=$? |
2892 | grep -v '^ *+' conftest.er1 >conftest.err |
3345 | grep -v '^ *+' conftest.er1 >conftest.err |
2893 | rm -f conftest.er1 |
3346 | rm -f conftest.er1 |
2894 | cat conftest.err >&5 |
3347 | cat conftest.err >&5 |
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2896 | (exit $ac_status); } >/dev/null; then |
3349 | (exit $ac_status); } >/dev/null && { |
|
|
3350 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2897 | if test -s conftest.err; then |
3351 | test ! -s conftest.err |
2898 | ac_cpp_err=$ac_c_preproc_warn_flag |
3352 | }; then |
2899 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
2900 | else |
|
|
2901 | ac_cpp_err= |
|
|
2902 | fi |
|
|
2903 | else |
|
|
2904 | ac_cpp_err=yes |
|
|
2905 | fi |
|
|
2906 | if test -z "$ac_cpp_err"; then |
|
|
2907 | : |
3353 | : |
2908 | else |
3354 | else |
2909 | echo "$as_me: failed program was:" >&5 |
3355 | echo "$as_me: failed program was:" >&5 |
2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
3356 | sed 's/^/| /' conftest.$ac_ext >&5 |
2911 | |
3357 | |
2912 | # Broken: fails on valid input. |
3358 | # Broken: fails on valid input. |
2913 | continue |
3359 | continue |
2914 | fi |
3360 | fi |
|
|
3361 | |
2915 | rm -f conftest.err conftest.$ac_ext |
3362 | rm -f conftest.err conftest.$ac_ext |
2916 | |
3363 | |
2917 | # OK, works on sane cases. Now check whether non-existent headers |
3364 | # OK, works on sane cases. Now check whether nonexistent headers |
2918 | # can be detected and how. |
3365 | # can be detected and how. |
2919 | cat >conftest.$ac_ext <<_ACEOF |
3366 | cat >conftest.$ac_ext <<_ACEOF |
2920 | /* confdefs.h. */ |
3367 | /* confdefs.h. */ |
2921 | _ACEOF |
3368 | _ACEOF |
2922 | cat confdefs.h >>conftest.$ac_ext |
3369 | cat confdefs.h >>conftest.$ac_ext |
2923 | cat >>conftest.$ac_ext <<_ACEOF |
3370 | cat >>conftest.$ac_ext <<_ACEOF |
2924 | /* end confdefs.h. */ |
3371 | /* end confdefs.h. */ |
2925 | #include <ac_nonexistent.h> |
3372 | #include <ac_nonexistent.h> |
2926 | _ACEOF |
3373 | _ACEOF |
2927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3374 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3375 | case "(($ac_try" in |
|
|
3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3377 | *) ac_try_echo=$ac_try;; |
|
|
3378 | esac |
|
|
3379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3380 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2929 | ac_status=$? |
3381 | ac_status=$? |
2930 | grep -v '^ *+' conftest.er1 >conftest.err |
3382 | grep -v '^ *+' conftest.er1 >conftest.err |
2931 | rm -f conftest.er1 |
3383 | rm -f conftest.er1 |
2932 | cat conftest.err >&5 |
3384 | cat conftest.err >&5 |
2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2934 | (exit $ac_status); } >/dev/null; then |
3386 | (exit $ac_status); } >/dev/null && { |
|
|
3387 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2935 | if test -s conftest.err; then |
3388 | test ! -s conftest.err |
2936 | ac_cpp_err=$ac_c_preproc_warn_flag |
3389 | }; then |
2937 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
2938 | else |
|
|
2939 | ac_cpp_err= |
|
|
2940 | fi |
|
|
2941 | else |
|
|
2942 | ac_cpp_err=yes |
|
|
2943 | fi |
|
|
2944 | if test -z "$ac_cpp_err"; then |
|
|
2945 | # Broken: success on invalid input. |
3390 | # Broken: success on invalid input. |
2946 | continue |
3391 | continue |
2947 | else |
3392 | else |
2948 | echo "$as_me: failed program was:" >&5 |
3393 | echo "$as_me: failed program was:" >&5 |
2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
2950 | |
3395 | |
2951 | # Passes both tests. |
3396 | # Passes both tests. |
2952 | ac_preproc_ok=: |
3397 | ac_preproc_ok=: |
2953 | break |
3398 | break |
2954 | fi |
3399 | fi |
|
|
3400 | |
2955 | rm -f conftest.err conftest.$ac_ext |
3401 | rm -f conftest.err conftest.$ac_ext |
2956 | |
3402 | |
2957 | done |
3403 | done |
2958 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3404 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2959 | rm -f conftest.err conftest.$ac_ext |
3405 | rm -f conftest.err conftest.$ac_ext |
… | |
… | |
2984 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3430 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2985 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3431 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2986 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3432 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2987 | # OS/2's system install, which has a completely different semantic |
3433 | # OS/2's system install, which has a completely different semantic |
2988 | # ./install, which can be erroneously created by make from ./install.sh. |
3434 | # ./install, which can be erroneously created by make from ./install.sh. |
2989 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3435 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2990 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3436 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
2991 | if test -z "$INSTALL"; then |
3437 | if test -z "$INSTALL"; then |
2992 | if test "${ac_cv_path_install+set}" = set; then |
3438 | if test "${ac_cv_path_install+set}" = set; then |
2993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2994 | else |
3440 | else |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
… | |
… | |
3007 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3453 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3008 | # Don't use installbsd from OSF since it installs stuff as root |
3454 | # Don't use installbsd from OSF since it installs stuff as root |
3009 | # by default. |
3455 | # by default. |
3010 | for ac_prog in ginstall scoinst install; do |
3456 | for ac_prog in ginstall scoinst install; do |
3011 | for ac_exec_ext in '' $ac_executable_extensions; do |
3457 | for ac_exec_ext in '' $ac_executable_extensions; do |
3012 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3458 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3013 | if test $ac_prog = install && |
3459 | if test $ac_prog = install && |
3014 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3460 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3015 | # AIX install. It has an incompatible calling convention. |
3461 | # AIX install. It has an incompatible calling convention. |
3016 | : |
3462 | : |
3017 | elif test $ac_prog = install && |
3463 | elif test $ac_prog = install && |
… | |
… | |
3026 | done |
3472 | done |
3027 | done |
3473 | done |
3028 | ;; |
3474 | ;; |
3029 | esac |
3475 | esac |
3030 | done |
3476 | done |
|
|
3477 | IFS=$as_save_IFS |
3031 | |
3478 | |
3032 | |
3479 | |
3033 | fi |
3480 | fi |
3034 | if test "${ac_cv_path_install+set}" = set; then |
3481 | if test "${ac_cv_path_install+set}" = set; then |
3035 | INSTALL=$ac_cv_path_install |
3482 | INSTALL=$ac_cv_path_install |
3036 | else |
3483 | else |
3037 | # As a last resort, use the slow shell script. We don't cache a |
3484 | # As a last resort, use the slow shell script. Don't cache a |
3038 | # path for INSTALL within a source directory, because that will |
3485 | # value for INSTALL within a source directory, because that will |
3039 | # break other packages using the cache if that directory is |
3486 | # break other packages using the cache if that directory is |
3040 | # removed, or if the path is relative. |
3487 | # removed, or if the value is a relative name. |
3041 | INSTALL=$ac_install_sh |
3488 | INSTALL=$ac_install_sh |
3042 | fi |
3489 | fi |
3043 | fi |
3490 | fi |
3044 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3491 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3045 | echo "${ECHO_T}$INSTALL" >&6 |
3492 | echo "${ECHO_T}$INSTALL" >&6; } |
3046 | |
3493 | |
3047 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3494 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3048 | # It thinks the first close brace ends the variable substitution. |
3495 | # It thinks the first close brace ends the variable substitution. |
3049 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3496 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3050 | |
3497 | |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3498 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3052 | |
3499 | |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3500 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3054 | |
3501 | |
3055 | for ac_prog in gawk mawk nawk awk |
3502 | |
3056 | do |
3503 | |
3057 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3504 | |
3058 | set dummy $ac_prog; ac_word=$2 |
3505 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3506 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3061 | if test "${ac_cv_prog_AWK+set}" = set; then |
3507 | if test "${ac_cv_path_GREP+set}" = set; then |
3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3063 | else |
3509 | else |
|
|
3510 | # Extract the first word of "grep ggrep" to use in msg output |
3064 | if test -n "$AWK"; then |
3511 | if test -z "$GREP"; then |
3065 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
3512 | set dummy grep ggrep; ac_prog_name=$2 |
|
|
3513 | if test "${ac_cv_path_GREP+set}" = set; then |
|
|
3514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3066 | else |
3515 | else |
|
|
3516 | ac_path_GREP_found=false |
|
|
3517 | # Loop through the user's path and test for each of PROGNAME-LIST |
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3068 | for as_dir in $PATH |
3519 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3069 | do |
3520 | do |
3070 | IFS=$as_save_IFS |
3521 | IFS=$as_save_IFS |
3071 | test -z "$as_dir" && as_dir=. |
3522 | test -z "$as_dir" && as_dir=. |
|
|
3523 | for ac_prog in grep ggrep; do |
3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
3524 | for ac_exec_ext in '' $ac_executable_extensions; do |
3073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3525 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3074 | ac_cv_prog_AWK="$ac_prog" |
3526 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3527 | # Check for GNU ac_path_GREP and select it if it is found. |
3076 | break 2 |
3528 | # Check for GNU $ac_path_GREP |
|
|
3529 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
3530 | *GNU*) |
|
|
3531 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
3532 | *) |
|
|
3533 | ac_count=0 |
|
|
3534 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3535 | while : |
|
|
3536 | do |
|
|
3537 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3538 | mv "conftest.tmp" "conftest.in" |
|
|
3539 | cp "conftest.in" "conftest.nl" |
|
|
3540 | echo 'GREP' >> "conftest.nl" |
|
|
3541 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3542 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3543 | ac_count=`expr $ac_count + 1` |
|
|
3544 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
3545 | # Best one so far, save it but keep looking for a better one |
|
|
3546 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
3547 | ac_path_GREP_max=$ac_count |
3077 | fi |
3548 | fi |
|
|
3549 | # 10*(2^10) chars as input seems more than enough |
|
|
3550 | test $ac_count -gt 10 && break |
|
|
3551 | done |
|
|
3552 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3553 | esac |
|
|
3554 | |
|
|
3555 | |
|
|
3556 | $ac_path_GREP_found && break 3 |
|
|
3557 | done |
3078 | done |
3558 | done |
|
|
3559 | |
3079 | done |
3560 | done |
|
|
3561 | IFS=$as_save_IFS |
3080 | |
3562 | |
|
|
3563 | |
3081 | fi |
3564 | fi |
3082 | fi |
3565 | |
3083 | AWK=$ac_cv_prog_AWK |
3566 | GREP="$ac_cv_path_GREP" |
3084 | if test -n "$AWK"; then |
3567 | if test -z "$GREP"; then |
|
|
3568 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3569 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3570 | { (exit 1); exit 1; }; } |
|
|
3571 | fi |
|
|
3572 | |
|
|
3573 | else |
|
|
3574 | ac_cv_path_GREP=$GREP |
|
|
3575 | fi |
|
|
3576 | |
|
|
3577 | |
|
|
3578 | fi |
3085 | echo "$as_me:$LINENO: result: $AWK" >&5 |
3579 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3086 | echo "${ECHO_T}$AWK" >&6 |
3580 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3087 | else |
3581 | GREP="$ac_cv_path_GREP" |
3088 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3089 | echo "${ECHO_T}no" >&6 |
|
|
3090 | fi |
|
|
3091 | |
3582 | |
3092 | test -n "$AWK" && break |
3583 | |
|
|
3584 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3585 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
|
3586 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3588 | else |
|
|
3589 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
3590 | then ac_cv_path_EGREP="$GREP -E" |
|
|
3591 | else |
|
|
3592 | # Extract the first word of "egrep" to use in msg output |
|
|
3593 | if test -z "$EGREP"; then |
|
|
3594 | set dummy egrep; ac_prog_name=$2 |
|
|
3595 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3597 | else |
|
|
3598 | ac_path_EGREP_found=false |
|
|
3599 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3601 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3602 | do |
|
|
3603 | IFS=$as_save_IFS |
|
|
3604 | test -z "$as_dir" && as_dir=. |
|
|
3605 | for ac_prog in egrep; do |
|
|
3606 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3607 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3608 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
|
3609 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3610 | # Check for GNU $ac_path_EGREP |
|
|
3611 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3612 | *GNU*) |
|
|
3613 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3614 | *) |
|
|
3615 | ac_count=0 |
|
|
3616 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3617 | while : |
|
|
3618 | do |
|
|
3619 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3620 | mv "conftest.tmp" "conftest.in" |
|
|
3621 | cp "conftest.in" "conftest.nl" |
|
|
3622 | echo 'EGREP' >> "conftest.nl" |
|
|
3623 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3624 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3625 | ac_count=`expr $ac_count + 1` |
|
|
3626 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3627 | # Best one so far, save it but keep looking for a better one |
|
|
3628 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3629 | ac_path_EGREP_max=$ac_count |
|
|
3630 | fi |
|
|
3631 | # 10*(2^10) chars as input seems more than enough |
|
|
3632 | test $ac_count -gt 10 && break |
|
|
3633 | done |
|
|
3634 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3635 | esac |
|
|
3636 | |
|
|
3637 | |
|
|
3638 | $ac_path_EGREP_found && break 3 |
|
|
3639 | done |
3093 | done |
3640 | done |
3094 | |
3641 | |
|
|
3642 | done |
|
|
3643 | IFS=$as_save_IFS |
3095 | |
3644 | |
3096 | ac_ext=c |
|
|
3097 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3101 | |
3645 | |
|
|
3646 | fi |
3102 | |
3647 | |
3103 | if test -z "$orig_CXXFLAGS"; then |
3648 | EGREP="$ac_cv_path_EGREP" |
3104 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3649 | if test -z "$EGREP"; then |
3105 | CXXFLAGS="-g -O3" |
3650 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3651 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3652 | { (exit 1); exit 1; }; } |
|
|
3653 | fi |
|
|
3654 | |
3106 | else |
3655 | else |
3107 | CXXFLAGS="-O" |
3656 | ac_cv_path_EGREP=$EGREP |
|
|
3657 | fi |
|
|
3658 | |
|
|
3659 | |
3108 | fi |
3660 | fi |
3109 | CFLAGS="$CXXFLAGS" |
|
|
3110 | fi |
3661 | fi |
|
|
3662 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
|
3663 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
|
|
3664 | EGREP="$ac_cv_path_EGREP" |
3111 | |
3665 | |
3112 | LINKER="$CXX" |
|
|
3113 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3114 | |
3666 | |
|
|
3667 | |
3115 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
3668 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
3116 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
3669 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
3117 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3119 | else |
|
|
3120 | ac_check_lib_save_LIBS=$LIBS |
|
|
3121 | LIBS="-lsupc++ $LIBS" |
|
|
3122 | cat >conftest.$ac_ext <<_ACEOF |
3670 | cat >conftest.$ac_ext <<_ACEOF |
3123 | /* confdefs.h. */ |
3671 | /* confdefs.h. */ |
3124 | _ACEOF |
3672 | _ACEOF |
3125 | cat confdefs.h >>conftest.$ac_ext |
3673 | cat confdefs.h >>conftest.$ac_ext |
3126 | cat >>conftest.$ac_ext <<_ACEOF |
3674 | cat >>conftest.$ac_ext <<_ACEOF |
3127 | /* end confdefs.h. */ |
3675 | /* end confdefs.h. */ |
|
|
3676 | #ifdef _AIX |
|
|
3677 | yes |
|
|
3678 | #endif |
3128 | |
3679 | |
|
|
3680 | _ACEOF |
|
|
3681 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3682 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3683 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3684 | echo "${ECHO_T}yes" >&6; } |
|
|
3685 | cat >>confdefs.h <<\_ACEOF |
|
|
3686 | #define _ALL_SOURCE 1 |
|
|
3687 | _ACEOF |
3129 | |
3688 | |
|
|
3689 | else |
|
|
3690 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
3691 | echo "${ECHO_T}no" >&6; } |
|
|
3692 | fi |
|
|
3693 | rm -f conftest* |
|
|
3694 | |
|
|
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
|
|
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
|
|
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3706 | else |
|
|
3707 | ac_func_search_save_LIBS=$LIBS |
|
|
3708 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3709 | /* confdefs.h. */ |
|
|
3710 | _ACEOF |
|
|
3711 | cat confdefs.h >>conftest.$ac_ext |
|
|
3712 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3713 | /* end confdefs.h. */ |
|
|
3714 | |
|
|
3715 | /* Override any GCC internal prototype to avoid an error. |
|
|
3716 | Use char because int might match the return type of a GCC |
|
|
3717 | builtin and then its argument prototype would still apply. */ |
|
|
3718 | #ifdef __cplusplus |
|
|
3719 | extern "C" |
|
|
3720 | #endif |
|
|
3721 | char strerror (); |
3130 | int |
3722 | int |
3131 | main () |
3723 | main () |
3132 | { |
3724 | { |
3133 | main (); |
3725 | return strerror (); |
3134 | ; |
3726 | ; |
3135 | return 0; |
3727 | return 0; |
3136 | } |
3728 | } |
3137 | _ACEOF |
3729 | _ACEOF |
|
|
3730 | for ac_lib in '' cposix; do |
|
|
3731 | if test -z "$ac_lib"; then |
|
|
3732 | ac_res="none required" |
|
|
3733 | else |
|
|
3734 | ac_res=-l$ac_lib |
|
|
3735 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
3736 | fi |
3138 | rm -f conftest.$ac_objext conftest$ac_exeext |
3737 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3738 | if { (ac_try="$ac_link" |
|
|
3739 | case "(($ac_try" in |
|
|
3740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3741 | *) ac_try_echo=$ac_try;; |
|
|
3742 | esac |
3139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3140 | (eval $ac_link) 2>conftest.er1 |
3744 | (eval "$ac_link") 2>conftest.er1 |
3141 | ac_status=$? |
3745 | ac_status=$? |
3142 | grep -v '^ *+' conftest.er1 >conftest.err |
3746 | grep -v '^ *+' conftest.er1 >conftest.err |
3143 | rm -f conftest.er1 |
3747 | rm -f conftest.er1 |
3144 | cat conftest.err >&5 |
3748 | cat conftest.err >&5 |
3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3146 | (exit $ac_status); } && |
3750 | (exit $ac_status); } && { |
3147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3751 | test -z "$ac_c_werror_flag" || |
3148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3752 | test ! -s conftest.err |
3149 | (eval $ac_try) 2>&5 |
3753 | } && test -s conftest$ac_exeext && |
3150 | ac_status=$? |
3754 | $as_test_x conftest$ac_exeext; then |
3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3755 | ac_cv_search_strerror=$ac_res |
3152 | (exit $ac_status); }; } && |
|
|
3153 | { ac_try='test -s conftest$ac_exeext' |
|
|
3154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3155 | (eval $ac_try) 2>&5 |
|
|
3156 | ac_status=$? |
|
|
3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3158 | (exit $ac_status); }; }; then |
|
|
3159 | ac_cv_lib_supcpp_main=yes |
|
|
3160 | else |
3756 | else |
3161 | echo "$as_me: failed program was:" >&5 |
3757 | echo "$as_me: failed program was:" >&5 |
3162 | sed 's/^/| /' conftest.$ac_ext >&5 |
3758 | sed 's/^/| /' conftest.$ac_ext >&5 |
3163 | |
3759 | |
3164 | ac_cv_lib_supcpp_main=no |
3760 | |
3165 | fi |
3761 | fi |
3166 | rm -f conftest.err conftest.$ac_objext \ |
3762 | |
3167 | conftest$ac_exeext conftest.$ac_ext |
3763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3168 | LIBS=$ac_check_lib_save_LIBS |
3764 | conftest$ac_exeext |
|
|
3765 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3766 | break |
3169 | fi |
3767 | fi |
|
|
3768 | done |
|
|
3769 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3770 | : |
|
|
3771 | else |
|
|
3772 | ac_cv_search_strerror=no |
|
|
3773 | fi |
|
|
3774 | rm conftest.$ac_ext |
|
|
3775 | LIBS=$ac_func_search_save_LIBS |
|
|
3776 | fi |
3170 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
3777 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3171 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
3778 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3172 | if test $ac_cv_lib_supcpp_main = yes; then |
3779 | ac_res=$ac_cv_search_strerror |
|
|
3780 | if test "$ac_res" != no; then |
|
|
3781 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3173 | |
3782 | |
3174 | LINKER="$CC" |
|
|
3175 | LIBS="$LIBS -lsupc++" |
|
|
3176 | |
|
|
3177 | fi |
3783 | fi |
3178 | |
3784 | |
3179 | fi |
|
|
3180 | LINKER=$LINKER |
|
|
3181 | |
|
|
3182 | |
|
|
3183 | |
|
|
3184 | cat >>confdefs.h <<\_ACEOF |
|
|
3185 | #define _GNU_SOURCE 1 |
|
|
3186 | _ACEOF |
|
|
3187 | |
|
|
3188 | |
|
|
3189 | case $host in |
|
|
3190 | *-*-solaris* ) |
|
|
3191 | |
|
|
3192 | cat >>confdefs.h <<\_ACEOF |
|
|
3193 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3194 | _ACEOF |
|
|
3195 | |
|
|
3196 | |
|
|
3197 | cat >>confdefs.h <<\_ACEOF |
|
|
3198 | #define _XOPEN_SOURCE 2 |
|
|
3199 | _ACEOF |
|
|
3200 | |
|
|
3201 | |
|
|
3202 | cat >>confdefs.h <<\_ACEOF |
|
|
3203 | #define __EXTENSIONS__ 1 |
|
|
3204 | _ACEOF |
|
|
3205 | |
|
|
3206 | ;; |
|
|
3207 | esac |
|
|
3208 | |
|
|
3209 | |
|
|
3210 | ac_ext=cc |
3785 | ac_ext=cpp |
3211 | ac_cpp='$CXXCPP $CPPFLAGS' |
3786 | ac_cpp='$CXXCPP $CPPFLAGS' |
3212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3215 | |
3790 | |
3216 | |
3791 | |
|
|
3792 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3793 | { echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3794 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } |
|
|
3795 | save_CXX="$CXX" |
|
|
3796 | save_LIBS="$LIBS" |
|
|
3797 | CXX="$CC" |
|
|
3798 | LIBS="$LIBS -lsupc++" |
|
|
3799 | LINKER="$CC" |
3217 | |
3800 | |
|
|
3801 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3802 | /* confdefs.h. */ |
|
|
3803 | _ACEOF |
|
|
3804 | cat confdefs.h >>conftest.$ac_ext |
|
|
3805 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3806 | /* end confdefs.h. */ |
|
|
3807 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3808 | int |
|
|
3809 | main () |
|
|
3810 | { |
|
|
3811 | |
|
|
3812 | ; |
|
|
3813 | return 0; |
|
|
3814 | } |
|
|
3815 | _ACEOF |
|
|
3816 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3817 | if { (ac_try="$ac_link" |
|
|
3818 | case "(($ac_try" in |
|
|
3819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3820 | *) ac_try_echo=$ac_try;; |
|
|
3821 | esac |
|
|
3822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3823 | (eval "$ac_link") 2>conftest.er1 |
|
|
3824 | ac_status=$? |
|
|
3825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3826 | rm -f conftest.er1 |
|
|
3827 | cat conftest.err >&5 |
|
|
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3829 | (exit $ac_status); } && { |
|
|
3830 | test -z "$ac_cxx_werror_flag" || |
|
|
3831 | test ! -s conftest.err |
|
|
3832 | } && test -s conftest$ac_exeext && |
|
|
3833 | $as_test_x conftest$ac_exeext; then |
|
|
3834 | { echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3835 | echo "${ECHO_T}ok" >&6; } |
|
|
3836 | else |
|
|
3837 | echo "$as_me: failed program was:" >&5 |
|
|
3838 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3839 | |
|
|
3840 | |
|
|
3841 | { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3842 | echo "${ECHO_T}no, making everything bigger and slower" >&6; } |
|
|
3843 | LIBS="$save_LIBS" |
|
|
3844 | LINKER="$save_CXX" |
|
|
3845 | |
|
|
3846 | |
|
|
3847 | fi |
|
|
3848 | |
|
|
3849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
3850 | conftest$ac_exeext conftest.$ac_ext |
|
|
3851 | CXX="$save_CXX" |
|
|
3852 | fi |
|
|
3853 | LINKER=$LINKER |
|
|
3854 | |
|
|
3855 | |
|
|
3856 | if test -z "$orig_CXXFLAGS"; then |
|
|
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3858 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3860 | /* confdefs.h. */ |
|
|
3861 | _ACEOF |
|
|
3862 | cat confdefs.h >>conftest.$ac_ext |
|
|
3863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3864 | /* end confdefs.h. */ |
|
|
3865 | |
|
|
3866 | int |
|
|
3867 | main () |
|
|
3868 | { |
|
|
3869 | |
|
|
3870 | ; |
|
|
3871 | return 0; |
|
|
3872 | } |
|
|
3873 | _ACEOF |
|
|
3874 | rm -f conftest.$ac_objext |
|
|
3875 | if { (ac_try="$ac_compile" |
|
|
3876 | case "(($ac_try" in |
|
|
3877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3878 | *) ac_try_echo=$ac_try;; |
|
|
3879 | esac |
|
|
3880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3881 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3882 | ac_status=$? |
|
|
3883 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3884 | rm -f conftest.er1 |
|
|
3885 | cat conftest.err >&5 |
|
|
3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3887 | (exit $ac_status); } && { |
|
|
3888 | test -z "$ac_cxx_werror_flag" || |
|
|
3889 | test ! -s conftest.err |
|
|
3890 | } && test -s conftest.$ac_objext; then |
|
|
3891 | : |
|
|
3892 | else |
|
|
3893 | echo "$as_me: failed program was:" >&5 |
|
|
3894 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3895 | |
|
|
3896 | CXXFLAGS="-g -O3" |
|
|
3897 | fi |
|
|
3898 | |
|
|
3899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3900 | else |
|
|
3901 | CXXFLAGS="-O" |
|
|
3902 | fi |
|
|
3903 | CFLAGS="$CXXFLAGS" |
|
|
3904 | fi |
|
|
3905 | |
|
|
3906 | case $host in |
|
|
3907 | *-*-solaris* ) |
|
|
3908 | |
|
|
3909 | cat >>confdefs.h <<\_ACEOF |
|
|
3910 | #define _XOPEN_SOURCE 500 |
|
|
3911 | _ACEOF |
|
|
3912 | |
|
|
3913 | ;; |
|
|
3914 | esac |
|
|
3915 | |
|
|
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
|
|
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3920 | else |
|
|
3921 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3922 | /* confdefs.h. */ |
|
|
3923 | _ACEOF |
|
|
3924 | cat confdefs.h >>conftest.$ac_ext |
|
|
3925 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3926 | /* end confdefs.h. */ |
|
|
3927 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3929 | #define setlocale innocuous_setlocale |
|
|
3930 | |
|
|
3931 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3932 | which can conflict with char setlocale (); below. |
|
|
3933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3934 | <limits.h> exists even on freestanding compilers. */ |
|
|
3935 | |
|
|
3936 | #ifdef __STDC__ |
|
|
3937 | # include <limits.h> |
|
|
3938 | #else |
|
|
3939 | # include <assert.h> |
|
|
3940 | #endif |
|
|
3941 | |
|
|
3942 | #undef setlocale |
|
|
3943 | |
|
|
3944 | /* Override any GCC internal prototype to avoid an error. |
|
|
3945 | Use char because int might match the return type of a GCC |
|
|
3946 | builtin and then its argument prototype would still apply. */ |
|
|
3947 | #ifdef __cplusplus |
|
|
3948 | extern "C" |
|
|
3949 | #endif |
|
|
3950 | char setlocale (); |
|
|
3951 | /* The GNU C library defines this for functions which it implements |
|
|
3952 | to always fail with ENOSYS. Some functions are actually named |
|
|
3953 | something starting with __ and the normal name is an alias. */ |
|
|
3954 | #if defined __stub_setlocale || defined __stub___setlocale |
|
|
3955 | choke me |
|
|
3956 | #endif |
|
|
3957 | |
|
|
3958 | int |
|
|
3959 | main () |
|
|
3960 | { |
|
|
3961 | return setlocale (); |
|
|
3962 | ; |
|
|
3963 | return 0; |
|
|
3964 | } |
|
|
3965 | _ACEOF |
|
|
3966 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3967 | if { (ac_try="$ac_link" |
|
|
3968 | case "(($ac_try" in |
|
|
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3970 | *) ac_try_echo=$ac_try;; |
|
|
3971 | esac |
|
|
3972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3973 | (eval "$ac_link") 2>conftest.er1 |
|
|
3974 | ac_status=$? |
|
|
3975 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3976 | rm -f conftest.er1 |
|
|
3977 | cat conftest.err >&5 |
|
|
3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3979 | (exit $ac_status); } && { |
|
|
3980 | test -z "$ac_cxx_werror_flag" || |
|
|
3981 | test ! -s conftest.err |
|
|
3982 | } && test -s conftest$ac_exeext && |
|
|
3983 | $as_test_x conftest$ac_exeext; then |
|
|
3984 | ac_cv_func_setlocale=yes |
|
|
3985 | else |
|
|
3986 | echo "$as_me: failed program was:" >&5 |
|
|
3987 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3988 | |
|
|
3989 | ac_cv_func_setlocale=no |
|
|
3990 | fi |
|
|
3991 | |
|
|
3992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
3993 | conftest$ac_exeext conftest.$ac_ext |
|
|
3994 | fi |
|
|
3995 | { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3996 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6; } |
|
|
3997 | if test $ac_cv_func_setlocale = yes; then |
|
|
3998 | : |
|
|
3999 | else |
|
|
4000 | { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
4001 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; } |
|
|
4002 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
4003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4004 | else |
|
|
4005 | ac_check_lib_save_LIBS=$LIBS |
|
|
4006 | LIBS="-lxpg4 $LIBS" |
|
|
4007 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4008 | /* confdefs.h. */ |
|
|
4009 | _ACEOF |
|
|
4010 | cat confdefs.h >>conftest.$ac_ext |
|
|
4011 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4012 | /* end confdefs.h. */ |
|
|
4013 | |
|
|
4014 | /* Override any GCC internal prototype to avoid an error. |
|
|
4015 | Use char because int might match the return type of a GCC |
|
|
4016 | builtin and then its argument prototype would still apply. */ |
|
|
4017 | #ifdef __cplusplus |
|
|
4018 | extern "C" |
|
|
4019 | #endif |
|
|
4020 | char setlocale (); |
|
|
4021 | int |
|
|
4022 | main () |
|
|
4023 | { |
|
|
4024 | return setlocale (); |
|
|
4025 | ; |
|
|
4026 | return 0; |
|
|
4027 | } |
|
|
4028 | _ACEOF |
|
|
4029 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4030 | if { (ac_try="$ac_link" |
|
|
4031 | case "(($ac_try" in |
|
|
4032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4033 | *) ac_try_echo=$ac_try;; |
|
|
4034 | esac |
|
|
4035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4036 | (eval "$ac_link") 2>conftest.er1 |
|
|
4037 | ac_status=$? |
|
|
4038 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4039 | rm -f conftest.er1 |
|
|
4040 | cat conftest.err >&5 |
|
|
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4042 | (exit $ac_status); } && { |
|
|
4043 | test -z "$ac_cxx_werror_flag" || |
|
|
4044 | test ! -s conftest.err |
|
|
4045 | } && test -s conftest$ac_exeext && |
|
|
4046 | $as_test_x conftest$ac_exeext; then |
|
|
4047 | ac_cv_lib_xpg4_setlocale=yes |
|
|
4048 | else |
|
|
4049 | echo "$as_me: failed program was:" >&5 |
|
|
4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4051 | |
|
|
4052 | ac_cv_lib_xpg4_setlocale=no |
|
|
4053 | fi |
|
|
4054 | |
|
|
4055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4056 | conftest$ac_exeext conftest.$ac_ext |
|
|
4057 | LIBS=$ac_check_lib_save_LIBS |
|
|
4058 | fi |
|
|
4059 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
4060 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } |
|
|
4061 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
4062 | LIBS="$LIBS -lxpg4" |
|
|
4063 | fi |
|
|
4064 | |
|
|
4065 | fi |
|
|
4066 | |
|
|
4067 | |
|
|
4068 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
4069 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
|
|
4070 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
4071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4072 | else |
|
|
4073 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4074 | /* confdefs.h. */ |
|
|
4075 | _ACEOF |
|
|
4076 | cat confdefs.h >>conftest.$ac_ext |
|
|
4077 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4078 | /* end confdefs.h. */ |
|
|
4079 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
4080 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4081 | #define gethostbyname innocuous_gethostbyname |
|
|
4082 | |
|
|
4083 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4084 | which can conflict with char gethostbyname (); below. |
|
|
4085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4086 | <limits.h> exists even on freestanding compilers. */ |
|
|
4087 | |
|
|
4088 | #ifdef __STDC__ |
|
|
4089 | # include <limits.h> |
|
|
4090 | #else |
|
|
4091 | # include <assert.h> |
|
|
4092 | #endif |
|
|
4093 | |
|
|
4094 | #undef gethostbyname |
|
|
4095 | |
|
|
4096 | /* Override any GCC internal prototype to avoid an error. |
|
|
4097 | Use char because int might match the return type of a GCC |
|
|
4098 | builtin and then its argument prototype would still apply. */ |
|
|
4099 | #ifdef __cplusplus |
|
|
4100 | extern "C" |
|
|
4101 | #endif |
|
|
4102 | char gethostbyname (); |
|
|
4103 | /* The GNU C library defines this for functions which it implements |
|
|
4104 | to always fail with ENOSYS. Some functions are actually named |
|
|
4105 | something starting with __ and the normal name is an alias. */ |
|
|
4106 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
4107 | choke me |
|
|
4108 | #endif |
|
|
4109 | |
|
|
4110 | int |
|
|
4111 | main () |
|
|
4112 | { |
|
|
4113 | return gethostbyname (); |
|
|
4114 | ; |
|
|
4115 | return 0; |
|
|
4116 | } |
|
|
4117 | _ACEOF |
|
|
4118 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4119 | if { (ac_try="$ac_link" |
|
|
4120 | case "(($ac_try" in |
|
|
4121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4122 | *) ac_try_echo=$ac_try;; |
|
|
4123 | esac |
|
|
4124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4125 | (eval "$ac_link") 2>conftest.er1 |
|
|
4126 | ac_status=$? |
|
|
4127 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4128 | rm -f conftest.er1 |
|
|
4129 | cat conftest.err >&5 |
|
|
4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4131 | (exit $ac_status); } && { |
|
|
4132 | test -z "$ac_cxx_werror_flag" || |
|
|
4133 | test ! -s conftest.err |
|
|
4134 | } && test -s conftest$ac_exeext && |
|
|
4135 | $as_test_x conftest$ac_exeext; then |
|
|
4136 | ac_cv_func_gethostbyname=yes |
|
|
4137 | else |
|
|
4138 | echo "$as_me: failed program was:" >&5 |
|
|
4139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4140 | |
|
|
4141 | ac_cv_func_gethostbyname=no |
|
|
4142 | fi |
|
|
4143 | |
|
|
4144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4145 | conftest$ac_exeext conftest.$ac_ext |
|
|
4146 | fi |
|
|
4147 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
4148 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
|
|
4149 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
4150 | : |
|
|
4151 | else |
|
|
4152 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
4153 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
|
|
4154 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4156 | else |
|
|
4157 | ac_check_lib_save_LIBS=$LIBS |
|
|
4158 | LIBS="-lnsl $LIBS" |
|
|
4159 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4160 | /* confdefs.h. */ |
|
|
4161 | _ACEOF |
|
|
4162 | cat confdefs.h >>conftest.$ac_ext |
|
|
4163 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4164 | /* end confdefs.h. */ |
|
|
4165 | |
|
|
4166 | /* Override any GCC internal prototype to avoid an error. |
|
|
4167 | Use char because int might match the return type of a GCC |
|
|
4168 | builtin and then its argument prototype would still apply. */ |
|
|
4169 | #ifdef __cplusplus |
|
|
4170 | extern "C" |
|
|
4171 | #endif |
|
|
4172 | char gethostbyname (); |
|
|
4173 | int |
|
|
4174 | main () |
|
|
4175 | { |
|
|
4176 | return gethostbyname (); |
|
|
4177 | ; |
|
|
4178 | return 0; |
|
|
4179 | } |
|
|
4180 | _ACEOF |
|
|
4181 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4182 | if { (ac_try="$ac_link" |
|
|
4183 | case "(($ac_try" in |
|
|
4184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4185 | *) ac_try_echo=$ac_try;; |
|
|
4186 | esac |
|
|
4187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4188 | (eval "$ac_link") 2>conftest.er1 |
|
|
4189 | ac_status=$? |
|
|
4190 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4191 | rm -f conftest.er1 |
|
|
4192 | cat conftest.err >&5 |
|
|
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4194 | (exit $ac_status); } && { |
|
|
4195 | test -z "$ac_cxx_werror_flag" || |
|
|
4196 | test ! -s conftest.err |
|
|
4197 | } && test -s conftest$ac_exeext && |
|
|
4198 | $as_test_x conftest$ac_exeext; then |
|
|
4199 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
4200 | else |
|
|
4201 | echo "$as_me: failed program was:" >&5 |
|
|
4202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4203 | |
|
|
4204 | ac_cv_lib_nsl_gethostbyname=no |
|
|
4205 | fi |
|
|
4206 | |
|
|
4207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4208 | conftest$ac_exeext conftest.$ac_ext |
|
|
4209 | LIBS=$ac_check_lib_save_LIBS |
|
|
4210 | fi |
|
|
4211 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
4212 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
4213 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
4214 | LIBS="$LIBS -lnsl" |
|
|
4215 | fi |
|
|
4216 | |
|
|
4217 | fi |
|
|
4218 | |
|
|
4219 | { echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
4220 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } |
|
|
4221 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
4222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4223 | else |
|
|
4224 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4225 | /* confdefs.h. */ |
|
|
4226 | _ACEOF |
|
|
4227 | cat confdefs.h >>conftest.$ac_ext |
|
|
4228 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4229 | /* end confdefs.h. */ |
|
|
4230 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
4231 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4232 | #define socket innocuous_socket |
|
|
4233 | |
|
|
4234 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4235 | which can conflict with char socket (); below. |
|
|
4236 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4237 | <limits.h> exists even on freestanding compilers. */ |
|
|
4238 | |
|
|
4239 | #ifdef __STDC__ |
|
|
4240 | # include <limits.h> |
|
|
4241 | #else |
|
|
4242 | # include <assert.h> |
|
|
4243 | #endif |
|
|
4244 | |
|
|
4245 | #undef socket |
|
|
4246 | |
|
|
4247 | /* Override any GCC internal prototype to avoid an error. |
|
|
4248 | Use char because int might match the return type of a GCC |
|
|
4249 | builtin and then its argument prototype would still apply. */ |
|
|
4250 | #ifdef __cplusplus |
|
|
4251 | extern "C" |
|
|
4252 | #endif |
|
|
4253 | char socket (); |
|
|
4254 | /* The GNU C library defines this for functions which it implements |
|
|
4255 | to always fail with ENOSYS. Some functions are actually named |
|
|
4256 | something starting with __ and the normal name is an alias. */ |
|
|
4257 | #if defined __stub_socket || defined __stub___socket |
|
|
4258 | choke me |
|
|
4259 | #endif |
|
|
4260 | |
|
|
4261 | int |
|
|
4262 | main () |
|
|
4263 | { |
|
|
4264 | return socket (); |
|
|
4265 | ; |
|
|
4266 | return 0; |
|
|
4267 | } |
|
|
4268 | _ACEOF |
|
|
4269 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4270 | if { (ac_try="$ac_link" |
|
|
4271 | case "(($ac_try" in |
|
|
4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4273 | *) ac_try_echo=$ac_try;; |
|
|
4274 | esac |
|
|
4275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4276 | (eval "$ac_link") 2>conftest.er1 |
|
|
4277 | ac_status=$? |
|
|
4278 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4279 | rm -f conftest.er1 |
|
|
4280 | cat conftest.err >&5 |
|
|
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4282 | (exit $ac_status); } && { |
|
|
4283 | test -z "$ac_cxx_werror_flag" || |
|
|
4284 | test ! -s conftest.err |
|
|
4285 | } && test -s conftest$ac_exeext && |
|
|
4286 | $as_test_x conftest$ac_exeext; then |
|
|
4287 | ac_cv_func_socket=yes |
|
|
4288 | else |
|
|
4289 | echo "$as_me: failed program was:" >&5 |
|
|
4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4291 | |
|
|
4292 | ac_cv_func_socket=no |
|
|
4293 | fi |
|
|
4294 | |
|
|
4295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4296 | conftest$ac_exeext conftest.$ac_ext |
|
|
4297 | fi |
|
|
4298 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
4299 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } |
|
|
4300 | if test $ac_cv_func_socket = yes; then |
|
|
4301 | : |
|
|
4302 | else |
|
|
4303 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
|
|
4304 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
|
|
4305 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
4306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4307 | else |
|
|
4308 | ac_check_lib_save_LIBS=$LIBS |
|
|
4309 | LIBS="-lsocket $LIBS" |
|
|
4310 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4311 | /* confdefs.h. */ |
|
|
4312 | _ACEOF |
|
|
4313 | cat confdefs.h >>conftest.$ac_ext |
|
|
4314 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4315 | /* end confdefs.h. */ |
|
|
4316 | |
|
|
4317 | /* Override any GCC internal prototype to avoid an error. |
|
|
4318 | Use char because int might match the return type of a GCC |
|
|
4319 | builtin and then its argument prototype would still apply. */ |
|
|
4320 | #ifdef __cplusplus |
|
|
4321 | extern "C" |
|
|
4322 | #endif |
|
|
4323 | char socket (); |
|
|
4324 | int |
|
|
4325 | main () |
|
|
4326 | { |
|
|
4327 | return socket (); |
|
|
4328 | ; |
|
|
4329 | return 0; |
|
|
4330 | } |
|
|
4331 | _ACEOF |
|
|
4332 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4333 | if { (ac_try="$ac_link" |
|
|
4334 | case "(($ac_try" in |
|
|
4335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4336 | *) ac_try_echo=$ac_try;; |
|
|
4337 | esac |
|
|
4338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4339 | (eval "$ac_link") 2>conftest.er1 |
|
|
4340 | ac_status=$? |
|
|
4341 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4342 | rm -f conftest.er1 |
|
|
4343 | cat conftest.err >&5 |
|
|
4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4345 | (exit $ac_status); } && { |
|
|
4346 | test -z "$ac_cxx_werror_flag" || |
|
|
4347 | test ! -s conftest.err |
|
|
4348 | } && test -s conftest$ac_exeext && |
|
|
4349 | $as_test_x conftest$ac_exeext; then |
|
|
4350 | ac_cv_lib_socket_socket=yes |
|
|
4351 | else |
|
|
4352 | echo "$as_me: failed program was:" >&5 |
|
|
4353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4354 | |
|
|
4355 | ac_cv_lib_socket_socket=no |
|
|
4356 | fi |
|
|
4357 | |
|
|
4358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4359 | conftest$ac_exeext conftest.$ac_ext |
|
|
4360 | LIBS=$ac_check_lib_save_LIBS |
|
|
4361 | fi |
|
|
4362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
4363 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
|
|
4364 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
4365 | LIBS="$LIBS -lsocket" |
|
|
4366 | fi |
|
|
4367 | |
|
|
4368 | fi |
|
|
4369 | |
|
|
4370 | |
|
|
4371 | support_frills=yes |
|
|
4372 | support_inheritpixmap=yes |
|
|
4373 | support_fading=yes |
|
|
4374 | support_keepscrolling=yes |
|
|
4375 | support_selectionscrolling=yes |
|
|
4376 | support_mousewheel=yes |
|
|
4377 | support_mouseslipwheel=yes |
|
|
4378 | support_text_blink=yes |
|
|
4379 | support_pointer_blank=yes |
|
|
4380 | support_scroll_rxvt=yes |
|
|
4381 | support_scroll_next=yes |
|
|
4382 | support_scroll_xterm=yes |
|
|
4383 | support_xim=yes |
|
|
4384 | support_afterimage=yes |
|
|
4385 | support_afterstep=yes |
|
|
4386 | support_xft=yes |
|
|
4387 | support_unicode3=no |
|
|
4388 | support_combining=yes |
|
|
4389 | support_8bitctrls=no |
|
|
4390 | support_iso14755=yes |
|
|
4391 | support_styles=yes |
|
|
4392 | support_perl=yes |
|
|
4393 | codesets=all |
|
|
4394 | |
|
|
4395 | |
|
|
4396 | # Check whether --enable-everything was given. |
|
|
4397 | if test "${enable_everything+set}" = set; then |
|
|
4398 | enableval=$enable_everything; |
|
|
4399 | if test x$enableval = xno; then |
|
|
4400 | support_frills=no |
|
|
4401 | support_inheritpixmap=no |
|
|
4402 | support_fading=no |
|
|
4403 | support_keepscrolling=no |
|
|
4404 | support_selectionscrolling=no |
|
|
4405 | support_lastlog=no |
|
|
4406 | support_mousewheel=no |
|
|
4407 | support_mouseslipwheel=no |
|
|
4408 | support_text_blink=no |
|
|
4409 | support_pointer_blank=no |
|
|
4410 | support_scroll_rxvt=no |
|
|
4411 | support_scroll_next=no |
|
|
4412 | support_scroll_xterm=no |
|
|
4413 | support_utmp=no |
|
|
4414 | support_wtmp=no |
|
|
4415 | support_xim=no |
|
|
4416 | support_afterimage=no |
|
|
4417 | support_afterstep=no |
|
|
4418 | support_xft=no |
|
|
4419 | support_unicode3=no |
|
|
4420 | support_combining=no |
|
|
4421 | support_8bitctrls=no |
|
|
4422 | support_iso14755=no |
|
|
4423 | support_styles=no |
|
|
4424 | support_perl=no |
|
|
4425 | codesets= |
|
|
4426 | fi |
|
|
4427 | if test x$enableval = xyes; then |
|
|
4428 | support_frills=yes |
|
|
4429 | support_inheritpixmap=yes |
|
|
4430 | support_fading=yes |
|
|
4431 | support_keepscrolling=yes |
|
|
4432 | support_selectionscrolling=yes |
|
|
4433 | support_lastlog=yes |
|
|
4434 | support_mousewheel=yes |
|
|
4435 | support_mouseslipwheel=yes |
|
|
4436 | support_text_blink=yes |
|
|
4437 | support_pointer_blank=yes |
|
|
4438 | support_scroll_rxvt=yes |
|
|
4439 | support_scroll_next=yes |
|
|
4440 | support_scroll_xterm=yes |
|
|
4441 | support_utmp=yes |
|
|
4442 | support_wtmp=yes |
|
|
4443 | support_xim=yes |
|
|
4444 | support_afterimage=yes |
|
|
4445 | support_afterstep=yes |
|
|
4446 | support_xft=yes |
|
|
4447 | support_unicode3=yes |
|
|
4448 | support_combining=yes |
|
|
4449 | #support_8bitctrls=yes |
|
|
4450 | support_iso14755=yes |
|
|
4451 | support_styles=yes |
|
|
4452 | support_perl=yes |
|
|
4453 | codesets=all |
|
|
4454 | fi |
|
|
4455 | |
|
|
4456 | fi |
|
|
4457 | |
|
|
4458 | |
|
|
4459 | ASSERTIONS=no |
|
|
4460 | # Check whether --enable-assert was given. |
|
|
4461 | if test "${enable_assert+set}" = set; then |
|
|
4462 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
4463 | ASSERTIONS=yes |
|
|
4464 | fi |
|
|
4465 | fi |
|
|
4466 | |
|
|
4467 | if test x$ASSERTIONS = xno; then |
|
|
4468 | |
|
|
4469 | cat >>confdefs.h <<\_ACEOF |
|
|
4470 | #define NDEBUG 1 |
|
|
4471 | _ACEOF |
|
|
4472 | |
|
|
4473 | fi |
|
|
4474 | |
|
|
4475 | WARNINGS=no |
|
|
4476 | # Check whether --enable-warnings was given. |
|
|
4477 | if test "${enable_warnings+set}" = set; then |
|
|
4478 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4479 | WARNINGS=yes |
|
|
4480 | fi |
|
|
4481 | fi |
|
|
4482 | |
|
|
4483 | if test x$GXX = xyes; then |
|
|
4484 | if test $WARNINGS = yes; then |
|
|
4485 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4486 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4487 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4488 | /* confdefs.h. */ |
|
|
4489 | _ACEOF |
|
|
4490 | cat confdefs.h >>conftest.$ac_ext |
|
|
4491 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4492 | /* end confdefs.h. */ |
|
|
4493 | |
|
|
4494 | int |
|
|
4495 | main () |
|
|
4496 | { |
|
|
4497 | |
|
|
4498 | ; |
|
|
4499 | return 0; |
|
|
4500 | } |
|
|
4501 | _ACEOF |
|
|
4502 | rm -f conftest.$ac_objext |
|
|
4503 | if { (ac_try="$ac_compile" |
|
|
4504 | case "(($ac_try" in |
|
|
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4506 | *) ac_try_echo=$ac_try;; |
|
|
4507 | esac |
|
|
4508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4509 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4510 | ac_status=$? |
|
|
4511 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4512 | rm -f conftest.er1 |
|
|
4513 | cat conftest.err >&5 |
|
|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4515 | (exit $ac_status); } && { |
|
|
4516 | test -z "$ac_cxx_werror_flag" || |
|
|
4517 | test ! -s conftest.err |
|
|
4518 | } && test -s conftest.$ac_objext; then |
|
|
4519 | : |
|
|
4520 | else |
|
|
4521 | echo "$as_me: failed program was:" >&5 |
|
|
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4523 | |
|
|
4524 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4525 | fi |
|
|
4526 | |
|
|
4527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4528 | else |
|
|
4529 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4530 | fi |
|
|
4531 | fi |
|
|
4532 | |
|
|
4533 | # Check whether --enable-unicode3 was given. |
|
|
4534 | if test "${enable_unicode3+set}" = set; then |
|
|
4535 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4536 | support_unicode3=$enableval |
|
|
4537 | fi |
|
|
4538 | fi |
|
|
4539 | |
|
|
4540 | |
|
|
4541 | # Check whether --enable-combining was given. |
|
|
4542 | if test "${enable_combining+set}" = set; then |
|
|
4543 | enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4544 | support_combining=$enableval |
|
|
4545 | fi |
|
|
4546 | fi |
|
|
4547 | |
|
|
4548 | |
|
|
4549 | # Check whether --enable-xft was given. |
|
|
4550 | if test "${enable_xft+set}" = set; then |
|
|
4551 | enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4552 | support_xft=$enableval |
|
|
4553 | fi |
|
|
4554 | fi |
|
|
4555 | |
|
|
4556 | |
|
|
4557 | # Check whether --enable-font-styles was given. |
|
|
4558 | if test "${enable_font_styles+set}" = set; then |
|
|
4559 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4560 | support_styles=$enableval |
|
|
4561 | fi |
|
|
4562 | fi |
|
|
4563 | |
|
|
4564 | |
|
|
4565 | # Check whether --enable-afterimage was given. |
|
|
4566 | if test "${enable_afterimage+set}" = set; then |
|
|
4567 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4568 | support_afterimage=$enableval |
|
|
4569 | fi |
|
|
4570 | fi |
|
|
4571 | |
|
|
4572 | |
|
|
4573 | |
|
|
4574 | # Check whether --with-afterimage_config was given. |
|
|
4575 | if test "${with_afterimage_config+set}" = set; then |
|
|
4576 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4577 | afterimage_config=$withval/afterimage-config |
|
|
4578 | fi |
|
|
4579 | fi |
|
|
4580 | |
|
|
4581 | |
|
|
4582 | |
|
|
4583 | # Check whether --enable-transparency was given. |
|
|
4584 | if test "${enable_transparency+set}" = set; then |
|
|
4585 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4586 | support_inheritpixmap=$enableval |
|
|
4587 | fi |
|
|
4588 | fi |
|
|
4589 | |
|
|
4590 | |
|
|
4591 | # Check whether --enable-fading was given. |
|
|
4592 | if test "${enable_fading+set}" = set; then |
|
|
4593 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4594 | support_fading=$enableval |
|
|
4595 | fi |
|
|
4596 | fi |
|
|
4597 | |
|
|
4598 | |
|
|
4599 | # Check whether --enable-rxvt-scroll was given. |
|
|
4600 | if test "${enable_rxvt_scroll+set}" = set; then |
|
|
4601 | enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4602 | support_scroll_rxvt=$enableval |
|
|
4603 | fi |
|
|
4604 | fi |
|
|
4605 | |
|
|
4606 | |
|
|
4607 | # Check whether --enable-next-scroll was given. |
|
|
4608 | if test "${enable_next_scroll+set}" = set; then |
|
|
4609 | enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4610 | support_scroll_next=$enableval |
|
|
4611 | fi |
|
|
4612 | fi |
|
|
4613 | |
|
|
4614 | |
|
|
4615 | # Check whether --enable-xterm-scroll was given. |
|
|
4616 | if test "${enable_xterm_scroll+set}" = set; then |
|
|
4617 | enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4618 | support_scroll_xterm=$enableval |
|
|
4619 | fi |
|
|
4620 | fi |
|
|
4621 | |
|
|
4622 | |
|
|
4623 | # Check whether --enable-perl was given. |
|
|
4624 | if test "${enable_perl+set}" = set; then |
|
|
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4626 | support_perl=$enableval |
|
|
4627 | fi |
|
|
4628 | fi |
|
|
4629 | |
|
|
4630 | |
|
|
4631 | |
|
|
4632 | # Check whether --with-codesets was given. |
|
|
4633 | if test "${with_codesets+set}" = set; then |
|
|
4634 | withval=$with_codesets; codesets="$withval" |
|
|
4635 | fi |
|
|
4636 | |
|
|
4637 | |
|
|
4638 | # Check whether --enable-xim was given. |
|
|
4639 | if test "${enable_xim+set}" = set; then |
|
|
4640 | enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4641 | support_xim=$enableval |
|
|
4642 | fi |
|
|
4643 | fi |
|
|
4644 | |
|
|
4645 | |
|
|
4646 | # Check whether --enable-backspace-key was given. |
|
|
4647 | if test "${enable_backspace_key+set}" = set; then |
|
|
4648 | enableval=$enable_backspace_key; if test x$enableval = xno; then |
|
|
4649 | |
|
|
4650 | cat >>confdefs.h <<\_ACEOF |
|
|
4651 | #define NO_BACKSPACE_KEY 1 |
|
|
4652 | _ACEOF |
|
|
4653 | |
|
|
4654 | fi |
|
|
4655 | fi |
|
|
4656 | |
|
|
4657 | |
|
|
4658 | # Check whether --enable-delete-key was given. |
|
|
4659 | if test "${enable_delete_key+set}" = set; then |
|
|
4660 | enableval=$enable_delete_key; if test x$enableval = xno; then |
|
|
4661 | |
|
|
4662 | cat >>confdefs.h <<\_ACEOF |
|
|
4663 | #define NO_DELETE_KEY 1 |
|
|
4664 | _ACEOF |
|
|
4665 | |
|
|
4666 | fi |
|
|
4667 | fi |
|
|
4668 | |
|
|
4669 | |
|
|
4670 | # Check whether --enable-resources was given. |
|
|
4671 | if test "${enable_resources+set}" = set; then |
|
|
4672 | enableval=$enable_resources; if test x$enableval = xno; then |
|
|
4673 | |
|
|
4674 | cat >>confdefs.h <<\_ACEOF |
|
|
4675 | #define NO_RESOURCES 1 |
|
|
4676 | _ACEOF |
|
|
4677 | |
|
|
4678 | fi |
|
|
4679 | fi |
|
|
4680 | |
|
|
4681 | |
|
|
4682 | # Check whether --enable-8bitctrls was given. |
|
|
4683 | if test "${enable_8bitctrls+set}" = set; then |
|
|
4684 | enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4685 | support_8bitctrls=$enableval |
|
|
4686 | fi |
|
|
4687 | fi |
|
|
4688 | |
|
|
4689 | |
|
|
4690 | RESFALLBACK=Rxvt |
|
|
4691 | # Check whether --enable-fallback was given. |
|
|
4692 | if test "${enable_fallback+set}" = set; then |
|
|
4693 | enableval=$enable_fallback; |
|
|
4694 | test x$enableval = xyes && enableval=Rxvt |
|
|
4695 | test x$enableval = xno && enableval= |
|
|
4696 | RESFALLBACK="$enableval" |
|
|
4697 | |
|
|
4698 | fi |
|
|
4699 | |
|
|
4700 | |
|
|
4701 | if test x$RESFALLBACK != x; then |
|
|
4702 | |
|
|
4703 | cat >>confdefs.h <<_ACEOF |
|
|
4704 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4705 | _ACEOF |
|
|
4706 | |
|
|
4707 | fi |
|
|
4708 | |
|
|
4709 | RESNAME=urxvt |
|
|
4710 | |
|
|
4711 | # Check whether --with-res-name was given. |
|
|
4712 | if test "${with_res_name+set}" = set; then |
|
|
4713 | withval=$with_res_name; RESNAME="$withval" |
|
|
4714 | fi |
|
|
4715 | |
|
|
4716 | |
|
|
4717 | cat >>confdefs.h <<_ACEOF |
|
|
4718 | #define RESNAME "$RESNAME" |
|
|
4719 | _ACEOF |
|
|
4720 | |
|
|
4721 | |
|
|
4722 | RESCLASS=URxvt |
|
|
4723 | |
|
|
4724 | # Check whether --with-res-class was given. |
|
|
4725 | if test "${with_res_class+set}" = set; then |
|
|
4726 | withval=$with_res_class; RESCLASS="$withval" |
|
|
4727 | fi |
|
|
4728 | |
|
|
4729 | |
|
|
4730 | cat >>confdefs.h <<_ACEOF |
|
|
4731 | #define RESCLASS "$RESCLASS" |
|
|
4732 | _ACEOF |
|
|
4733 | |
|
|
4734 | |
|
|
4735 | RXVTNAME=urxvt |
|
|
4736 | |
|
|
4737 | # Check whether --with-name was given. |
|
|
4738 | if test "${with_name+set}" = set; then |
|
|
4739 | withval=$with_name; RXVTNAME="$withval" |
|
|
4740 | fi |
|
|
4741 | |
|
|
4742 | |
|
|
4743 | cat >>confdefs.h <<_ACEOF |
|
|
4744 | #define RXVTNAME "$RXVTNAME" |
|
|
4745 | _ACEOF |
|
|
4746 | |
|
|
4747 | |
|
|
4748 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4749 | |
|
|
4750 | |
|
|
4751 | # Check whether --enable-swapscreen was given. |
|
|
4752 | if test "${enable_swapscreen+set}" = set; then |
|
|
4753 | enableval=$enable_swapscreen; if test x$enableval = xno; then |
|
|
4754 | |
|
|
4755 | cat >>confdefs.h <<\_ACEOF |
|
|
4756 | #define NO_SECONDARY_SCREEN 1 |
|
|
4757 | _ACEOF |
|
|
4758 | |
|
|
4759 | fi |
|
|
4760 | fi |
|
|
4761 | |
|
|
4762 | |
|
|
4763 | # Check whether --enable-iso14755 was given. |
|
|
4764 | if test "${enable_iso14755+set}" = set; then |
|
|
4765 | enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4766 | support_iso14755=$enableval |
|
|
4767 | fi |
|
|
4768 | fi |
|
|
4769 | |
|
|
4770 | |
|
|
4771 | # Check whether --enable-frills was given. |
|
|
4772 | if test "${enable_frills+set}" = set; then |
|
|
4773 | enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4774 | support_frills=$enableval |
|
|
4775 | fi |
|
|
4776 | fi |
|
|
4777 | |
|
|
4778 | |
|
|
4779 | # Check whether --enable-keepscrolling was given. |
|
|
4780 | if test "${enable_keepscrolling+set}" = set; then |
|
|
4781 | enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4782 | support_keepscrolling=$enableval |
|
|
4783 | fi |
|
|
4784 | fi |
|
|
4785 | |
|
|
4786 | |
|
|
4787 | # Check whether --enable-selectionscrolling was given. |
|
|
4788 | if test "${enable_selectionscrolling+set}" = set; then |
|
|
4789 | enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4790 | support_selectionscrolling=$enableval |
|
|
4791 | fi |
|
|
4792 | fi |
|
|
4793 | |
|
|
4794 | |
|
|
4795 | # Check whether --enable-mousewheel was given. |
|
|
4796 | if test "${enable_mousewheel+set}" = set; then |
|
|
4797 | enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4798 | support_mousewheel=$enableval |
|
|
4799 | fi |
|
|
4800 | fi |
|
|
4801 | |
|
|
4802 | |
|
|
4803 | # Check whether --enable-slipwheeling was given. |
|
|
4804 | if test "${enable_slipwheeling+set}" = set; then |
|
|
4805 | enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4806 | support_mouseslipwheel=$enableval |
|
|
4807 | fi |
|
|
4808 | fi |
|
|
4809 | |
|
|
4810 | |
|
|
4811 | # Check whether --enable-smart-resize was given. |
|
|
4812 | if test "${enable_smart_resize+set}" = set; then |
|
|
4813 | enableval=$enable_smart_resize; if test x$enableval = xyes; then |
|
|
4814 | |
|
|
4815 | cat >>confdefs.h <<\_ACEOF |
|
|
4816 | #define SMART_RESIZE 1 |
|
|
4817 | _ACEOF |
|
|
4818 | |
|
|
4819 | fi |
|
|
4820 | fi |
|
|
4821 | |
|
|
4822 | |
|
|
4823 | # Check whether --enable-text-blink was given. |
|
|
4824 | if test "${enable_text_blink+set}" = set; then |
|
|
4825 | enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4826 | support_text_blink=$enableval |
|
|
4827 | fi |
|
|
4828 | fi |
|
|
4829 | |
|
|
4830 | |
|
|
4831 | # Check whether --enable-pointer-blank was given. |
|
|
4832 | if test "${enable_pointer_blank+set}" = set; then |
|
|
4833 | enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4834 | support_pointer_blank=$enableval |
|
|
4835 | fi |
|
|
4836 | fi |
|
|
4837 | |
|
|
4838 | |
|
|
4839 | |
|
|
4840 | # Check whether --with-term was given. |
|
|
4841 | if test "${with_term+set}" = set; then |
|
|
4842 | withval=$with_term; if test x$withval != x; then |
|
|
4843 | |
|
|
4844 | cat >>confdefs.h <<_ACEOF |
|
|
4845 | #define TERMENV "$withval" |
|
|
4846 | _ACEOF |
|
|
4847 | term="$withval" |
|
|
4848 | fi |
|
|
4849 | fi |
|
|
4850 | |
|
|
4851 | |
|
|
4852 | |
|
|
4853 | # Check whether --with-terminfo was given. |
|
|
4854 | if test "${with_terminfo+set}" = set; then |
|
|
4855 | withval=$with_terminfo; if test x$withval != x; then |
|
|
4856 | |
|
|
4857 | cat >>confdefs.h <<_ACEOF |
|
|
4858 | #define RXVT_TERMINFO "$withval" |
|
|
4859 | _ACEOF |
|
|
4860 | terminfo="$withval" |
|
|
4861 | fi |
|
|
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
3218 | ac_ext=cc |
4868 | ac_ext=cpp |
3219 | ac_cpp='$CXXCPP $CPPFLAGS' |
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
3220 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3221 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3222 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3223 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
3224 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
3225 | if test -z "$CXXCPP"; then |
4875 | if test -z "$CXXCPP"; then |
3226 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
3227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3228 | else |
4878 | else |
3229 | # Double quotes because CXXCPP needs to be expanded |
4879 | # Double quotes because CXXCPP needs to be expanded |
… | |
… | |
3249 | #else |
4899 | #else |
3250 | # include <assert.h> |
4900 | # include <assert.h> |
3251 | #endif |
4901 | #endif |
3252 | Syntax error |
4902 | Syntax error |
3253 | _ACEOF |
4903 | _ACEOF |
3254 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3255 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3256 | ac_status=$? |
4911 | ac_status=$? |
3257 | grep -v '^ *+' conftest.er1 >conftest.err |
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
3258 | rm -f conftest.er1 |
4913 | rm -f conftest.er1 |
3259 | cat conftest.err >&5 |
4914 | cat conftest.err >&5 |
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3261 | (exit $ac_status); } >/dev/null; then |
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
3262 | if test -s conftest.err; then |
4918 | test ! -s conftest.err |
3263 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4919 | }; then |
3264 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3265 | else |
|
|
3266 | ac_cpp_err= |
|
|
3267 | fi |
|
|
3268 | else |
|
|
3269 | ac_cpp_err=yes |
|
|
3270 | fi |
|
|
3271 | if test -z "$ac_cpp_err"; then |
|
|
3272 | : |
4920 | : |
3273 | else |
4921 | else |
3274 | echo "$as_me: failed program was:" >&5 |
4922 | echo "$as_me: failed program was:" >&5 |
3275 | sed 's/^/| /' conftest.$ac_ext >&5 |
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
3276 | |
4924 | |
3277 | # Broken: fails on valid input. |
4925 | # Broken: fails on valid input. |
3278 | continue |
4926 | continue |
3279 | fi |
4927 | fi |
|
|
4928 | |
3280 | rm -f conftest.err conftest.$ac_ext |
4929 | rm -f conftest.err conftest.$ac_ext |
3281 | |
4930 | |
3282 | # OK, works on sane cases. Now check whether non-existent headers |
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
3283 | # can be detected and how. |
4932 | # can be detected and how. |
3284 | cat >conftest.$ac_ext <<_ACEOF |
4933 | cat >conftest.$ac_ext <<_ACEOF |
3285 | /* confdefs.h. */ |
4934 | /* confdefs.h. */ |
3286 | _ACEOF |
4935 | _ACEOF |
3287 | cat confdefs.h >>conftest.$ac_ext |
4936 | cat confdefs.h >>conftest.$ac_ext |
3288 | cat >>conftest.$ac_ext <<_ACEOF |
4937 | cat >>conftest.$ac_ext <<_ACEOF |
3289 | /* end confdefs.h. */ |
4938 | /* end confdefs.h. */ |
3290 | #include <ac_nonexistent.h> |
4939 | #include <ac_nonexistent.h> |
3291 | _ACEOF |
4940 | _ACEOF |
3292 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3293 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3294 | ac_status=$? |
4948 | ac_status=$? |
3295 | grep -v '^ *+' conftest.er1 >conftest.err |
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
3296 | rm -f conftest.er1 |
4950 | rm -f conftest.er1 |
3297 | cat conftest.err >&5 |
4951 | cat conftest.err >&5 |
3298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3299 | (exit $ac_status); } >/dev/null; then |
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
3300 | if test -s conftest.err; then |
4955 | test ! -s conftest.err |
3301 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
4956 | }; then |
3302 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3303 | else |
|
|
3304 | ac_cpp_err= |
|
|
3305 | fi |
|
|
3306 | else |
|
|
3307 | ac_cpp_err=yes |
|
|
3308 | fi |
|
|
3309 | if test -z "$ac_cpp_err"; then |
|
|
3310 | # Broken: success on invalid input. |
4957 | # Broken: success on invalid input. |
3311 | continue |
4958 | continue |
3312 | else |
4959 | else |
3313 | echo "$as_me: failed program was:" >&5 |
4960 | echo "$as_me: failed program was:" >&5 |
3314 | sed 's/^/| /' conftest.$ac_ext >&5 |
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
3315 | |
4962 | |
3316 | # Passes both tests. |
4963 | # Passes both tests. |
3317 | ac_preproc_ok=: |
4964 | ac_preproc_ok=: |
3318 | break |
4965 | break |
3319 | fi |
4966 | fi |
|
|
4967 | |
3320 | rm -f conftest.err conftest.$ac_ext |
4968 | rm -f conftest.err conftest.$ac_ext |
3321 | |
4969 | |
3322 | done |
4970 | done |
3323 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3324 | rm -f conftest.err conftest.$ac_ext |
4972 | rm -f conftest.err conftest.$ac_ext |
… | |
… | |
3332 | fi |
4980 | fi |
3333 | CXXCPP=$ac_cv_prog_CXXCPP |
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
3334 | else |
4982 | else |
3335 | ac_cv_prog_CXXCPP=$CXXCPP |
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
3336 | fi |
4984 | fi |
3337 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
3338 | echo "${ECHO_T}$CXXCPP" >&6 |
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
3339 | ac_preproc_ok=false |
4987 | ac_preproc_ok=false |
3340 | for ac_cxx_preproc_warn_flag in '' yes |
4988 | for ac_cxx_preproc_warn_flag in '' yes |
3341 | do |
4989 | do |
3342 | # Use a header file that comes with gcc, so configuring glibc |
4990 | # Use a header file that comes with gcc, so configuring glibc |
3343 | # with a fresh cross-compiler works. |
4991 | # with a fresh cross-compiler works. |
… | |
… | |
3356 | #else |
5004 | #else |
3357 | # include <assert.h> |
5005 | # include <assert.h> |
3358 | #endif |
5006 | #endif |
3359 | Syntax error |
5007 | Syntax error |
3360 | _ACEOF |
5008 | _ACEOF |
3361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3363 | ac_status=$? |
5016 | ac_status=$? |
3364 | grep -v '^ *+' conftest.er1 >conftest.err |
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
3365 | rm -f conftest.er1 |
5018 | rm -f conftest.er1 |
3366 | cat conftest.err >&5 |
5019 | cat conftest.err >&5 |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3368 | (exit $ac_status); } >/dev/null; then |
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
3369 | if test -s conftest.err; then |
5023 | test ! -s conftest.err |
3370 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5024 | }; then |
3371 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3372 | else |
|
|
3373 | ac_cpp_err= |
|
|
3374 | fi |
|
|
3375 | else |
|
|
3376 | ac_cpp_err=yes |
|
|
3377 | fi |
|
|
3378 | if test -z "$ac_cpp_err"; then |
|
|
3379 | : |
5025 | : |
3380 | else |
5026 | else |
3381 | echo "$as_me: failed program was:" >&5 |
5027 | echo "$as_me: failed program was:" >&5 |
3382 | sed 's/^/| /' conftest.$ac_ext >&5 |
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
3383 | |
5029 | |
3384 | # Broken: fails on valid input. |
5030 | # Broken: fails on valid input. |
3385 | continue |
5031 | continue |
3386 | fi |
5032 | fi |
|
|
5033 | |
3387 | rm -f conftest.err conftest.$ac_ext |
5034 | rm -f conftest.err conftest.$ac_ext |
3388 | |
5035 | |
3389 | # OK, works on sane cases. Now check whether non-existent headers |
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
3390 | # can be detected and how. |
5037 | # can be detected and how. |
3391 | cat >conftest.$ac_ext <<_ACEOF |
5038 | cat >conftest.$ac_ext <<_ACEOF |
3392 | /* confdefs.h. */ |
5039 | /* confdefs.h. */ |
3393 | _ACEOF |
5040 | _ACEOF |
3394 | cat confdefs.h >>conftest.$ac_ext |
5041 | cat confdefs.h >>conftest.$ac_ext |
3395 | cat >>conftest.$ac_ext <<_ACEOF |
5042 | cat >>conftest.$ac_ext <<_ACEOF |
3396 | /* end confdefs.h. */ |
5043 | /* end confdefs.h. */ |
3397 | #include <ac_nonexistent.h> |
5044 | #include <ac_nonexistent.h> |
3398 | _ACEOF |
5045 | _ACEOF |
3399 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3401 | ac_status=$? |
5053 | ac_status=$? |
3402 | grep -v '^ *+' conftest.er1 >conftest.err |
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
3403 | rm -f conftest.er1 |
5055 | rm -f conftest.er1 |
3404 | cat conftest.err >&5 |
5056 | cat conftest.err >&5 |
3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3406 | (exit $ac_status); } >/dev/null; then |
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
3407 | if test -s conftest.err; then |
5060 | test ! -s conftest.err |
3408 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5061 | }; then |
3409 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3410 | else |
|
|
3411 | ac_cpp_err= |
|
|
3412 | fi |
|
|
3413 | else |
|
|
3414 | ac_cpp_err=yes |
|
|
3415 | fi |
|
|
3416 | if test -z "$ac_cpp_err"; then |
|
|
3417 | # Broken: success on invalid input. |
5062 | # Broken: success on invalid input. |
3418 | continue |
5063 | continue |
3419 | else |
5064 | else |
3420 | echo "$as_me: failed program was:" >&5 |
5065 | echo "$as_me: failed program was:" >&5 |
3421 | sed 's/^/| /' conftest.$ac_ext >&5 |
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
3422 | |
5067 | |
3423 | # Passes both tests. |
5068 | # Passes both tests. |
3424 | ac_preproc_ok=: |
5069 | ac_preproc_ok=: |
3425 | break |
5070 | break |
3426 | fi |
5071 | fi |
|
|
5072 | |
3427 | rm -f conftest.err conftest.$ac_ext |
5073 | rm -f conftest.err conftest.$ac_ext |
3428 | |
5074 | |
3429 | done |
5075 | done |
3430 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3431 | rm -f conftest.err conftest.$ac_ext |
5077 | rm -f conftest.err conftest.$ac_ext |
… | |
… | |
3437 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
3438 | See \`config.log' for more details." >&2;} |
5084 | See \`config.log' for more details." >&2;} |
3439 | { (exit 1); exit 1; }; } |
5085 | { (exit 1); exit 1; }; } |
3440 | fi |
5086 | fi |
3441 | |
5087 | |
3442 | ac_ext=cc |
5088 | ac_ext=cpp |
3443 | ac_cpp='$CXXCPP $CPPFLAGS' |
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
3444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3447 | |
5093 | |
3448 | |
5094 | |
3449 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3450 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
3451 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3453 | else |
|
|
3454 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
3455 | then ac_cv_prog_egrep='grep -E' |
|
|
3456 | else ac_cv_prog_egrep='egrep' |
|
|
3457 | fi |
|
|
3458 | fi |
|
|
3459 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
3460 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
3461 | EGREP=$ac_cv_prog_egrep |
|
|
3462 | |
|
|
3463 | |
|
|
3464 | |
|
|
3465 | echo "$as_me:$LINENO: checking for AIX" >&5 |
|
|
3466 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
|
|
3467 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3468 | /* confdefs.h. */ |
|
|
3469 | _ACEOF |
|
|
3470 | cat confdefs.h >>conftest.$ac_ext |
|
|
3471 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3472 | /* end confdefs.h. */ |
|
|
3473 | #ifdef _AIX |
|
|
3474 | yes |
|
|
3475 | #endif |
|
|
3476 | |
|
|
3477 | _ACEOF |
|
|
3478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3479 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3480 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3481 | echo "${ECHO_T}yes" >&6 |
|
|
3482 | cat >>confdefs.h <<\_ACEOF |
|
|
3483 | #define _ALL_SOURCE 1 |
|
|
3484 | _ACEOF |
|
|
3485 | |
|
|
3486 | else |
|
|
3487 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3488 | echo "${ECHO_T}no" >&6 |
|
|
3489 | fi |
|
|
3490 | rm -f conftest* |
|
|
3491 | |
|
|
3492 | |
|
|
3493 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3494 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
|
|
3495 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3497 | else |
|
|
3498 | ac_func_search_save_LIBS=$LIBS |
|
|
3499 | ac_cv_search_strerror=no |
|
|
3500 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3501 | /* confdefs.h. */ |
|
|
3502 | _ACEOF |
|
|
3503 | cat confdefs.h >>conftest.$ac_ext |
|
|
3504 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3505 | /* end confdefs.h. */ |
|
|
3506 | |
|
|
3507 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3508 | #ifdef __cplusplus |
|
|
3509 | extern "C" |
|
|
3510 | #endif |
|
|
3511 | /* We use char because int might match the return type of a gcc2 |
|
|
3512 | builtin and then its argument prototype would still apply. */ |
|
|
3513 | char strerror (); |
|
|
3514 | int |
|
|
3515 | main () |
|
|
3516 | { |
|
|
3517 | strerror (); |
|
|
3518 | ; |
|
|
3519 | return 0; |
|
|
3520 | } |
|
|
3521 | _ACEOF |
|
|
3522 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3524 | (eval $ac_link) 2>conftest.er1 |
|
|
3525 | ac_status=$? |
|
|
3526 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3527 | rm -f conftest.er1 |
|
|
3528 | cat conftest.err >&5 |
|
|
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3530 | (exit $ac_status); } && |
|
|
3531 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3533 | (eval $ac_try) 2>&5 |
|
|
3534 | ac_status=$? |
|
|
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3536 | (exit $ac_status); }; } && |
|
|
3537 | { ac_try='test -s conftest$ac_exeext' |
|
|
3538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3539 | (eval $ac_try) 2>&5 |
|
|
3540 | ac_status=$? |
|
|
3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3542 | (exit $ac_status); }; }; then |
|
|
3543 | ac_cv_search_strerror="none required" |
|
|
3544 | else |
|
|
3545 | echo "$as_me: failed program was:" >&5 |
|
|
3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3547 | |
|
|
3548 | fi |
|
|
3549 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3550 | conftest$ac_exeext conftest.$ac_ext |
|
|
3551 | if test "$ac_cv_search_strerror" = no; then |
|
|
3552 | for ac_lib in cposix; do |
|
|
3553 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
3554 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3555 | /* confdefs.h. */ |
|
|
3556 | _ACEOF |
|
|
3557 | cat confdefs.h >>conftest.$ac_ext |
|
|
3558 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3559 | /* end confdefs.h. */ |
|
|
3560 | |
|
|
3561 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3562 | #ifdef __cplusplus |
|
|
3563 | extern "C" |
|
|
3564 | #endif |
|
|
3565 | /* We use char because int might match the return type of a gcc2 |
|
|
3566 | builtin and then its argument prototype would still apply. */ |
|
|
3567 | char strerror (); |
|
|
3568 | int |
|
|
3569 | main () |
|
|
3570 | { |
|
|
3571 | strerror (); |
|
|
3572 | ; |
|
|
3573 | return 0; |
|
|
3574 | } |
|
|
3575 | _ACEOF |
|
|
3576 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3578 | (eval $ac_link) 2>conftest.er1 |
|
|
3579 | ac_status=$? |
|
|
3580 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3581 | rm -f conftest.er1 |
|
|
3582 | cat conftest.err >&5 |
|
|
3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3584 | (exit $ac_status); } && |
|
|
3585 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3587 | (eval $ac_try) 2>&5 |
|
|
3588 | ac_status=$? |
|
|
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3590 | (exit $ac_status); }; } && |
|
|
3591 | { ac_try='test -s conftest$ac_exeext' |
|
|
3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3593 | (eval $ac_try) 2>&5 |
|
|
3594 | ac_status=$? |
|
|
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3596 | (exit $ac_status); }; }; then |
|
|
3597 | ac_cv_search_strerror="-l$ac_lib" |
|
|
3598 | break |
|
|
3599 | else |
|
|
3600 | echo "$as_me: failed program was:" >&5 |
|
|
3601 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3602 | |
|
|
3603 | fi |
|
|
3604 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3605 | conftest$ac_exeext conftest.$ac_ext |
|
|
3606 | done |
|
|
3607 | fi |
|
|
3608 | LIBS=$ac_func_search_save_LIBS |
|
|
3609 | fi |
|
|
3610 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
|
|
3611 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
|
|
3612 | if test "$ac_cv_search_strerror" != no; then |
|
|
3613 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
|
|
3614 | |
|
|
3615 | fi |
|
|
3616 | |
|
|
3617 | |
|
|
3618 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3619 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3620 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3622 | else |
|
|
3623 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3624 | /* confdefs.h. */ |
|
|
3625 | _ACEOF |
|
|
3626 | cat confdefs.h >>conftest.$ac_ext |
|
|
3627 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3628 | /* end confdefs.h. */ |
|
|
3629 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3631 | #define setlocale innocuous_setlocale |
|
|
3632 | |
|
|
3633 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3634 | which can conflict with char setlocale (); below. |
|
|
3635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3636 | <limits.h> exists even on freestanding compilers. */ |
|
|
3637 | |
|
|
3638 | #ifdef __STDC__ |
|
|
3639 | # include <limits.h> |
|
|
3640 | #else |
|
|
3641 | # include <assert.h> |
|
|
3642 | #endif |
|
|
3643 | |
|
|
3644 | #undef setlocale |
|
|
3645 | |
|
|
3646 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3647 | #ifdef __cplusplus |
|
|
3648 | extern "C" |
|
|
3649 | { |
|
|
3650 | #endif |
|
|
3651 | /* We use char because int might match the return type of a gcc2 |
|
|
3652 | builtin and then its argument prototype would still apply. */ |
|
|
3653 | char setlocale (); |
|
|
3654 | /* The GNU C library defines this for functions which it implements |
|
|
3655 | to always fail with ENOSYS. Some functions are actually named |
|
|
3656 | something starting with __ and the normal name is an alias. */ |
|
|
3657 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3658 | choke me |
|
|
3659 | #else |
|
|
3660 | char (*f) () = setlocale; |
|
|
3661 | #endif |
|
|
3662 | #ifdef __cplusplus |
|
|
3663 | } |
|
|
3664 | #endif |
|
|
3665 | |
|
|
3666 | int |
|
|
3667 | main () |
|
|
3668 | { |
|
|
3669 | return f != setlocale; |
|
|
3670 | ; |
|
|
3671 | return 0; |
|
|
3672 | } |
|
|
3673 | _ACEOF |
|
|
3674 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3676 | (eval $ac_link) 2>conftest.er1 |
|
|
3677 | ac_status=$? |
|
|
3678 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3679 | rm -f conftest.er1 |
|
|
3680 | cat conftest.err >&5 |
|
|
3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3682 | (exit $ac_status); } && |
|
|
3683 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3685 | (eval $ac_try) 2>&5 |
|
|
3686 | ac_status=$? |
|
|
3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3688 | (exit $ac_status); }; } && |
|
|
3689 | { ac_try='test -s conftest$ac_exeext' |
|
|
3690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3691 | (eval $ac_try) 2>&5 |
|
|
3692 | ac_status=$? |
|
|
3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3694 | (exit $ac_status); }; }; then |
|
|
3695 | ac_cv_func_setlocale=yes |
|
|
3696 | else |
|
|
3697 | echo "$as_me: failed program was:" >&5 |
|
|
3698 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3699 | |
|
|
3700 | ac_cv_func_setlocale=no |
|
|
3701 | fi |
|
|
3702 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3703 | conftest$ac_exeext conftest.$ac_ext |
|
|
3704 | fi |
|
|
3705 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3706 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3707 | if test $ac_cv_func_setlocale = yes; then |
|
|
3708 | : |
|
|
3709 | else |
|
|
3710 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
3711 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
|
|
3712 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
3713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3714 | else |
|
|
3715 | ac_check_lib_save_LIBS=$LIBS |
|
|
3716 | LIBS="-lxpg4 $LIBS" |
|
|
3717 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3718 | /* confdefs.h. */ |
|
|
3719 | _ACEOF |
|
|
3720 | cat confdefs.h >>conftest.$ac_ext |
|
|
3721 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3722 | /* end confdefs.h. */ |
|
|
3723 | |
|
|
3724 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3725 | #ifdef __cplusplus |
|
|
3726 | extern "C" |
|
|
3727 | #endif |
|
|
3728 | /* We use char because int might match the return type of a gcc2 |
|
|
3729 | builtin and then its argument prototype would still apply. */ |
|
|
3730 | char setlocale (); |
|
|
3731 | int |
|
|
3732 | main () |
|
|
3733 | { |
|
|
3734 | setlocale (); |
|
|
3735 | ; |
|
|
3736 | return 0; |
|
|
3737 | } |
|
|
3738 | _ACEOF |
|
|
3739 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3741 | (eval $ac_link) 2>conftest.er1 |
|
|
3742 | ac_status=$? |
|
|
3743 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3744 | rm -f conftest.er1 |
|
|
3745 | cat conftest.err >&5 |
|
|
3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3747 | (exit $ac_status); } && |
|
|
3748 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3750 | (eval $ac_try) 2>&5 |
|
|
3751 | ac_status=$? |
|
|
3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3753 | (exit $ac_status); }; } && |
|
|
3754 | { ac_try='test -s conftest$ac_exeext' |
|
|
3755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3756 | (eval $ac_try) 2>&5 |
|
|
3757 | ac_status=$? |
|
|
3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3759 | (exit $ac_status); }; }; then |
|
|
3760 | ac_cv_lib_xpg4_setlocale=yes |
|
|
3761 | else |
|
|
3762 | echo "$as_me: failed program was:" >&5 |
|
|
3763 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3764 | |
|
|
3765 | ac_cv_lib_xpg4_setlocale=no |
|
|
3766 | fi |
|
|
3767 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3768 | conftest$ac_exeext conftest.$ac_ext |
|
|
3769 | LIBS=$ac_check_lib_save_LIBS |
|
|
3770 | fi |
|
|
3771 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
3772 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
|
|
3773 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
3774 | LIBS="$LIBS -lxpg4" |
|
|
3775 | fi |
|
|
3776 | |
|
|
3777 | fi |
|
|
3778 | |
|
|
3779 | |
|
|
3780 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3781 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3782 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3784 | else |
|
|
3785 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3786 | /* confdefs.h. */ |
|
|
3787 | _ACEOF |
|
|
3788 | cat confdefs.h >>conftest.$ac_ext |
|
|
3789 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3790 | /* end confdefs.h. */ |
|
|
3791 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3792 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3793 | #define gethostbyname innocuous_gethostbyname |
|
|
3794 | |
|
|
3795 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3796 | which can conflict with char gethostbyname (); below. |
|
|
3797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3798 | <limits.h> exists even on freestanding compilers. */ |
|
|
3799 | |
|
|
3800 | #ifdef __STDC__ |
|
|
3801 | # include <limits.h> |
|
|
3802 | #else |
|
|
3803 | # include <assert.h> |
|
|
3804 | #endif |
|
|
3805 | |
|
|
3806 | #undef gethostbyname |
|
|
3807 | |
|
|
3808 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3809 | #ifdef __cplusplus |
|
|
3810 | extern "C" |
|
|
3811 | { |
|
|
3812 | #endif |
|
|
3813 | /* We use char because int might match the return type of a gcc2 |
|
|
3814 | builtin and then its argument prototype would still apply. */ |
|
|
3815 | char gethostbyname (); |
|
|
3816 | /* The GNU C library defines this for functions which it implements |
|
|
3817 | to always fail with ENOSYS. Some functions are actually named |
|
|
3818 | something starting with __ and the normal name is an alias. */ |
|
|
3819 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3820 | choke me |
|
|
3821 | #else |
|
|
3822 | char (*f) () = gethostbyname; |
|
|
3823 | #endif |
|
|
3824 | #ifdef __cplusplus |
|
|
3825 | } |
|
|
3826 | #endif |
|
|
3827 | |
|
|
3828 | int |
|
|
3829 | main () |
|
|
3830 | { |
|
|
3831 | return f != gethostbyname; |
|
|
3832 | ; |
|
|
3833 | return 0; |
|
|
3834 | } |
|
|
3835 | _ACEOF |
|
|
3836 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3838 | (eval $ac_link) 2>conftest.er1 |
|
|
3839 | ac_status=$? |
|
|
3840 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3841 | rm -f conftest.er1 |
|
|
3842 | cat conftest.err >&5 |
|
|
3843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3844 | (exit $ac_status); } && |
|
|
3845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3847 | (eval $ac_try) 2>&5 |
|
|
3848 | ac_status=$? |
|
|
3849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3850 | (exit $ac_status); }; } && |
|
|
3851 | { ac_try='test -s conftest$ac_exeext' |
|
|
3852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3853 | (eval $ac_try) 2>&5 |
|
|
3854 | ac_status=$? |
|
|
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3856 | (exit $ac_status); }; }; then |
|
|
3857 | ac_cv_func_gethostbyname=yes |
|
|
3858 | else |
|
|
3859 | echo "$as_me: failed program was:" >&5 |
|
|
3860 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3861 | |
|
|
3862 | ac_cv_func_gethostbyname=no |
|
|
3863 | fi |
|
|
3864 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3865 | conftest$ac_exeext conftest.$ac_ext |
|
|
3866 | fi |
|
|
3867 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3868 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3869 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3870 | : |
|
|
3871 | else |
|
|
3872 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
3873 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
|
|
3874 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
3875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3876 | else |
|
|
3877 | ac_check_lib_save_LIBS=$LIBS |
|
|
3878 | LIBS="-lnsl $LIBS" |
|
|
3879 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3880 | /* confdefs.h. */ |
|
|
3881 | _ACEOF |
|
|
3882 | cat confdefs.h >>conftest.$ac_ext |
|
|
3883 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3884 | /* end confdefs.h. */ |
|
|
3885 | |
|
|
3886 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3887 | #ifdef __cplusplus |
|
|
3888 | extern "C" |
|
|
3889 | #endif |
|
|
3890 | /* We use char because int might match the return type of a gcc2 |
|
|
3891 | builtin and then its argument prototype would still apply. */ |
|
|
3892 | char gethostbyname (); |
|
|
3893 | int |
|
|
3894 | main () |
|
|
3895 | { |
|
|
3896 | gethostbyname (); |
|
|
3897 | ; |
|
|
3898 | return 0; |
|
|
3899 | } |
|
|
3900 | _ACEOF |
|
|
3901 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3903 | (eval $ac_link) 2>conftest.er1 |
|
|
3904 | ac_status=$? |
|
|
3905 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3906 | rm -f conftest.er1 |
|
|
3907 | cat conftest.err >&5 |
|
|
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3909 | (exit $ac_status); } && |
|
|
3910 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3912 | (eval $ac_try) 2>&5 |
|
|
3913 | ac_status=$? |
|
|
3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3915 | (exit $ac_status); }; } && |
|
|
3916 | { ac_try='test -s conftest$ac_exeext' |
|
|
3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3918 | (eval $ac_try) 2>&5 |
|
|
3919 | ac_status=$? |
|
|
3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3921 | (exit $ac_status); }; }; then |
|
|
3922 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
3923 | else |
|
|
3924 | echo "$as_me: failed program was:" >&5 |
|
|
3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3926 | |
|
|
3927 | ac_cv_lib_nsl_gethostbyname=no |
|
|
3928 | fi |
|
|
3929 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3930 | conftest$ac_exeext conftest.$ac_ext |
|
|
3931 | LIBS=$ac_check_lib_save_LIBS |
|
|
3932 | fi |
|
|
3933 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
3934 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
|
|
3935 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
3936 | LIBS="$LIBS -lnsl" |
|
|
3937 | fi |
|
|
3938 | |
|
|
3939 | fi |
|
|
3940 | |
|
|
3941 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3942 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3943 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3945 | else |
|
|
3946 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3947 | /* confdefs.h. */ |
|
|
3948 | _ACEOF |
|
|
3949 | cat confdefs.h >>conftest.$ac_ext |
|
|
3950 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3951 | /* end confdefs.h. */ |
|
|
3952 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3954 | #define socket innocuous_socket |
|
|
3955 | |
|
|
3956 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3957 | which can conflict with char socket (); below. |
|
|
3958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3959 | <limits.h> exists even on freestanding compilers. */ |
|
|
3960 | |
|
|
3961 | #ifdef __STDC__ |
|
|
3962 | # include <limits.h> |
|
|
3963 | #else |
|
|
3964 | # include <assert.h> |
|
|
3965 | #endif |
|
|
3966 | |
|
|
3967 | #undef socket |
|
|
3968 | |
|
|
3969 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3970 | #ifdef __cplusplus |
|
|
3971 | extern "C" |
|
|
3972 | { |
|
|
3973 | #endif |
|
|
3974 | /* We use char because int might match the return type of a gcc2 |
|
|
3975 | builtin and then its argument prototype would still apply. */ |
|
|
3976 | char socket (); |
|
|
3977 | /* The GNU C library defines this for functions which it implements |
|
|
3978 | to always fail with ENOSYS. Some functions are actually named |
|
|
3979 | something starting with __ and the normal name is an alias. */ |
|
|
3980 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3981 | choke me |
|
|
3982 | #else |
|
|
3983 | char (*f) () = socket; |
|
|
3984 | #endif |
|
|
3985 | #ifdef __cplusplus |
|
|
3986 | } |
|
|
3987 | #endif |
|
|
3988 | |
|
|
3989 | int |
|
|
3990 | main () |
|
|
3991 | { |
|
|
3992 | return f != socket; |
|
|
3993 | ; |
|
|
3994 | return 0; |
|
|
3995 | } |
|
|
3996 | _ACEOF |
|
|
3997 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3999 | (eval $ac_link) 2>conftest.er1 |
|
|
4000 | ac_status=$? |
|
|
4001 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4002 | rm -f conftest.er1 |
|
|
4003 | cat conftest.err >&5 |
|
|
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4005 | (exit $ac_status); } && |
|
|
4006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4008 | (eval $ac_try) 2>&5 |
|
|
4009 | ac_status=$? |
|
|
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4011 | (exit $ac_status); }; } && |
|
|
4012 | { ac_try='test -s conftest$ac_exeext' |
|
|
4013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4014 | (eval $ac_try) 2>&5 |
|
|
4015 | ac_status=$? |
|
|
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4017 | (exit $ac_status); }; }; then |
|
|
4018 | ac_cv_func_socket=yes |
|
|
4019 | else |
|
|
4020 | echo "$as_me: failed program was:" >&5 |
|
|
4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4022 | |
|
|
4023 | ac_cv_func_socket=no |
|
|
4024 | fi |
|
|
4025 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4026 | conftest$ac_exeext conftest.$ac_ext |
|
|
4027 | fi |
|
|
4028 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
4029 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
4030 | if test $ac_cv_func_socket = yes; then |
|
|
4031 | : |
|
|
4032 | else |
|
|
4033 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
|
|
4034 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
|
|
4035 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
4036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4037 | else |
|
|
4038 | ac_check_lib_save_LIBS=$LIBS |
|
|
4039 | LIBS="-lsocket $LIBS" |
|
|
4040 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4041 | /* confdefs.h. */ |
|
|
4042 | _ACEOF |
|
|
4043 | cat confdefs.h >>conftest.$ac_ext |
|
|
4044 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4045 | /* end confdefs.h. */ |
|
|
4046 | |
|
|
4047 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4048 | #ifdef __cplusplus |
|
|
4049 | extern "C" |
|
|
4050 | #endif |
|
|
4051 | /* We use char because int might match the return type of a gcc2 |
|
|
4052 | builtin and then its argument prototype would still apply. */ |
|
|
4053 | char socket (); |
|
|
4054 | int |
|
|
4055 | main () |
|
|
4056 | { |
|
|
4057 | socket (); |
|
|
4058 | ; |
|
|
4059 | return 0; |
|
|
4060 | } |
|
|
4061 | _ACEOF |
|
|
4062 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4064 | (eval $ac_link) 2>conftest.er1 |
|
|
4065 | ac_status=$? |
|
|
4066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4067 | rm -f conftest.er1 |
|
|
4068 | cat conftest.err >&5 |
|
|
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4070 | (exit $ac_status); } && |
|
|
4071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4073 | (eval $ac_try) 2>&5 |
|
|
4074 | ac_status=$? |
|
|
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4076 | (exit $ac_status); }; } && |
|
|
4077 | { ac_try='test -s conftest$ac_exeext' |
|
|
4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4079 | (eval $ac_try) 2>&5 |
|
|
4080 | ac_status=$? |
|
|
4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4082 | (exit $ac_status); }; }; then |
|
|
4083 | ac_cv_lib_socket_socket=yes |
|
|
4084 | else |
|
|
4085 | echo "$as_me: failed program was:" >&5 |
|
|
4086 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4087 | |
|
|
4088 | ac_cv_lib_socket_socket=no |
|
|
4089 | fi |
|
|
4090 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4091 | conftest$ac_exeext conftest.$ac_ext |
|
|
4092 | LIBS=$ac_check_lib_save_LIBS |
|
|
4093 | fi |
|
|
4094 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
4095 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
|
|
4096 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
4097 | LIBS="$LIBS -lsocket" |
|
|
4098 | fi |
|
|
4099 | |
|
|
4100 | fi |
|
|
4101 | |
|
|
4102 | |
|
|
4103 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
|
|
4104 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
|
|
4105 | if test "${ac_cv_func_sched_yield+set}" = set; then |
|
|
4106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4107 | else |
|
|
4108 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4109 | /* confdefs.h. */ |
|
|
4110 | _ACEOF |
|
|
4111 | cat confdefs.h >>conftest.$ac_ext |
|
|
4112 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4113 | /* end confdefs.h. */ |
|
|
4114 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
|
|
4115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4116 | #define sched_yield innocuous_sched_yield |
|
|
4117 | |
|
|
4118 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4119 | which can conflict with char sched_yield (); below. |
|
|
4120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4121 | <limits.h> exists even on freestanding compilers. */ |
|
|
4122 | |
|
|
4123 | #ifdef __STDC__ |
|
|
4124 | # include <limits.h> |
|
|
4125 | #else |
|
|
4126 | # include <assert.h> |
|
|
4127 | #endif |
|
|
4128 | |
|
|
4129 | #undef sched_yield |
|
|
4130 | |
|
|
4131 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4132 | #ifdef __cplusplus |
|
|
4133 | extern "C" |
|
|
4134 | { |
|
|
4135 | #endif |
|
|
4136 | /* We use char because int might match the return type of a gcc2 |
|
|
4137 | builtin and then its argument prototype would still apply. */ |
|
|
4138 | char sched_yield (); |
|
|
4139 | /* The GNU C library defines this for functions which it implements |
|
|
4140 | to always fail with ENOSYS. Some functions are actually named |
|
|
4141 | something starting with __ and the normal name is an alias. */ |
|
|
4142 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
|
|
4143 | choke me |
|
|
4144 | #else |
|
|
4145 | char (*f) () = sched_yield; |
|
|
4146 | #endif |
|
|
4147 | #ifdef __cplusplus |
|
|
4148 | } |
|
|
4149 | #endif |
|
|
4150 | |
|
|
4151 | int |
|
|
4152 | main () |
|
|
4153 | { |
|
|
4154 | return f != sched_yield; |
|
|
4155 | ; |
|
|
4156 | return 0; |
|
|
4157 | } |
|
|
4158 | _ACEOF |
|
|
4159 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4161 | (eval $ac_link) 2>conftest.er1 |
|
|
4162 | ac_status=$? |
|
|
4163 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4164 | rm -f conftest.er1 |
|
|
4165 | cat conftest.err >&5 |
|
|
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4167 | (exit $ac_status); } && |
|
|
4168 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4170 | (eval $ac_try) 2>&5 |
|
|
4171 | ac_status=$? |
|
|
4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4173 | (exit $ac_status); }; } && |
|
|
4174 | { ac_try='test -s conftest$ac_exeext' |
|
|
4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4176 | (eval $ac_try) 2>&5 |
|
|
4177 | ac_status=$? |
|
|
4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4179 | (exit $ac_status); }; }; then |
|
|
4180 | ac_cv_func_sched_yield=yes |
|
|
4181 | else |
|
|
4182 | echo "$as_me: failed program was:" >&5 |
|
|
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4184 | |
|
|
4185 | ac_cv_func_sched_yield=no |
|
|
4186 | fi |
|
|
4187 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4188 | conftest$ac_exeext conftest.$ac_ext |
|
|
4189 | fi |
|
|
4190 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
|
|
4191 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
|
|
4192 | if test $ac_cv_func_sched_yield = yes; then |
|
|
4193 | : |
|
|
4194 | else |
|
|
4195 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
|
|
4196 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
|
|
4197 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
|
|
4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4199 | else |
|
|
4200 | ac_check_lib_save_LIBS=$LIBS |
|
|
4201 | LIBS="-lrt $LIBS" |
|
|
4202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4203 | /* confdefs.h. */ |
|
|
4204 | _ACEOF |
|
|
4205 | cat confdefs.h >>conftest.$ac_ext |
|
|
4206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4207 | /* end confdefs.h. */ |
|
|
4208 | |
|
|
4209 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4210 | #ifdef __cplusplus |
|
|
4211 | extern "C" |
|
|
4212 | #endif |
|
|
4213 | /* We use char because int might match the return type of a gcc2 |
|
|
4214 | builtin and then its argument prototype would still apply. */ |
|
|
4215 | char sched_yield (); |
|
|
4216 | int |
|
|
4217 | main () |
|
|
4218 | { |
|
|
4219 | sched_yield (); |
|
|
4220 | ; |
|
|
4221 | return 0; |
|
|
4222 | } |
|
|
4223 | _ACEOF |
|
|
4224 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4226 | (eval $ac_link) 2>conftest.er1 |
|
|
4227 | ac_status=$? |
|
|
4228 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4229 | rm -f conftest.er1 |
|
|
4230 | cat conftest.err >&5 |
|
|
4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4232 | (exit $ac_status); } && |
|
|
4233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4235 | (eval $ac_try) 2>&5 |
|
|
4236 | ac_status=$? |
|
|
4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4238 | (exit $ac_status); }; } && |
|
|
4239 | { ac_try='test -s conftest$ac_exeext' |
|
|
4240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4241 | (eval $ac_try) 2>&5 |
|
|
4242 | ac_status=$? |
|
|
4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4244 | (exit $ac_status); }; }; then |
|
|
4245 | ac_cv_lib_rt_sched_yield=yes |
|
|
4246 | else |
|
|
4247 | echo "$as_me: failed program was:" >&5 |
|
|
4248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4249 | |
|
|
4250 | ac_cv_lib_rt_sched_yield=no |
|
|
4251 | fi |
|
|
4252 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4253 | conftest$ac_exeext conftest.$ac_ext |
|
|
4254 | LIBS=$ac_check_lib_save_LIBS |
|
|
4255 | fi |
|
|
4256 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
|
|
4257 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
|
|
4258 | if test $ac_cv_lib_rt_sched_yield = yes; then |
|
|
4259 | LIBS="$LIBS -lrt" |
|
|
4260 | fi |
|
|
4261 | |
|
|
4262 | fi |
|
|
4263 | |
|
|
4264 | |
|
|
4265 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
|
|
4266 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
|
|
4267 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4268 | /* confdefs.h. */ |
|
|
4269 | _ACEOF |
|
|
4270 | cat confdefs.h >>conftest.$ac_ext |
|
|
4271 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4272 | /* end confdefs.h. */ |
|
|
4273 | #include <sched.h> |
|
|
4274 | int |
|
|
4275 | main () |
|
|
4276 | { |
|
|
4277 | sched_yield () |
|
|
4278 | ; |
|
|
4279 | return 0; |
|
|
4280 | } |
|
|
4281 | _ACEOF |
|
|
4282 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4284 | (eval $ac_link) 2>conftest.er1 |
|
|
4285 | ac_status=$? |
|
|
4286 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4287 | rm -f conftest.er1 |
|
|
4288 | cat conftest.err >&5 |
|
|
4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4290 | (exit $ac_status); } && |
|
|
4291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4293 | (eval $ac_try) 2>&5 |
|
|
4294 | ac_status=$? |
|
|
4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4296 | (exit $ac_status); }; } && |
|
|
4297 | { ac_try='test -s conftest$ac_exeext' |
|
|
4298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4299 | (eval $ac_try) 2>&5 |
|
|
4300 | ac_status=$? |
|
|
4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4302 | (exit $ac_status); }; }; then |
|
|
4303 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4304 | echo "${ECHO_T}yes" >&6 |
|
|
4305 | |
|
|
4306 | cat >>confdefs.h <<\_ACEOF |
|
|
4307 | #define HAVE_SCHED_YIELD 1 |
|
|
4308 | _ACEOF |
|
|
4309 | |
|
|
4310 | else |
|
|
4311 | echo "$as_me: failed program was:" >&5 |
|
|
4312 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4313 | |
|
|
4314 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4315 | echo "${ECHO_T}no" >&6 |
|
|
4316 | fi |
|
|
4317 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4318 | conftest$ac_exeext conftest.$ac_ext |
|
|
4319 | |
|
|
4320 | |
|
|
4321 | MALLOC_TYPE=S |
|
|
4322 | |
|
|
4323 | support_frills=yes |
|
|
4324 | support_inheritpixmap=yes |
|
|
4325 | support_tinting=yes |
|
|
4326 | support_fading=yes |
|
|
4327 | support_keepscrolling=yes |
|
|
4328 | support_selectionscrolling=yes |
|
|
4329 | support_mousewheel=yes |
|
|
4330 | support_mouseslipwheel=yes |
|
|
4331 | support_utmp=yes |
|
|
4332 | support_wtmp=yes |
|
|
4333 | support_lastlog=yes |
|
|
4334 | support_text_blink=yes |
|
|
4335 | support_pointer_blank=yes |
|
|
4336 | support_scroll_rxvt=yes |
|
|
4337 | support_scroll_next=yes |
|
|
4338 | support_scroll_xterm=yes |
|
|
4339 | support_scroll_plain=yes |
|
|
4340 | support_xim=yes |
|
|
4341 | support_xpm=yes |
|
|
4342 | support_xft=yes |
|
|
4343 | support_unicode3=no |
|
|
4344 | support_combining=yes |
|
|
4345 | support_8bitctrls=no |
|
|
4346 | support_iso14755=yes |
|
|
4347 | support_styles=yes |
|
|
4348 | support_perl=yes |
|
|
4349 | codesets=all |
|
|
4350 | |
|
|
4351 | |
|
|
4352 | if test "x$enable_shared" = xyes; then |
|
|
4353 | |
|
|
4354 | cat >>confdefs.h <<\_ACEOF |
|
|
4355 | #define LIBRXVT 1 |
|
|
4356 | _ACEOF |
|
|
4357 | |
|
|
4358 | INSTALL_LIBRXVT=yes |
|
|
4359 | fi |
|
|
4360 | |
|
|
4361 | |
|
|
4362 | # Check whether --enable-everything or --disable-everything was given. |
|
|
4363 | if test "${enable_everything+set}" = set; then |
|
|
4364 | enableval="$enable_everything" |
|
|
4365 | |
|
|
4366 | if test x$enableval = xno; then |
|
|
4367 | support_24bit=no |
|
|
4368 | support_frills=no |
|
|
4369 | support_inheritpixmap=no |
|
|
4370 | support_tinting=no |
|
|
4371 | support_fading=no |
|
|
4372 | support_keepscrolling=no |
|
|
4373 | support_selectionscrolling=no |
|
|
4374 | support_lastlog=no |
|
|
4375 | support_mousewheel=no |
|
|
4376 | support_mouseslipwheel=no |
|
|
4377 | support_text_blink=no |
|
|
4378 | support_pointer_blank=no |
|
|
4379 | support_scroll_rxvt=no |
|
|
4380 | support_scroll_next=no |
|
|
4381 | support_scroll_xterm=no |
|
|
4382 | support_scroll_plain=no |
|
|
4383 | support_utmp=no |
|
|
4384 | support_wtmp=no |
|
|
4385 | support_xim=no |
|
|
4386 | support_xpm=no |
|
|
4387 | support_xft=no |
|
|
4388 | support_unicode3=no |
|
|
4389 | support_combining=no |
|
|
4390 | support_8bitctrls=no |
|
|
4391 | support_iso14755=no |
|
|
4392 | support_styles=no |
|
|
4393 | support_perl=no |
|
|
4394 | codesets= |
|
|
4395 | fi |
|
|
4396 | if test x$enableval = xyes; then |
|
|
4397 | support_24bit=yes |
|
|
4398 | support_frills=yes |
|
|
4399 | support_inheritpixmap=yes |
|
|
4400 | support_tinting=yes |
|
|
4401 | support_fading=yes |
|
|
4402 | support_keepscrolling=yes |
|
|
4403 | support_selectionscrolling=yes |
|
|
4404 | support_lastlog=yes |
|
|
4405 | support_mousewheel=yes |
|
|
4406 | support_mouseslipwheel=yes |
|
|
4407 | support_text_blink=yes |
|
|
4408 | support_pointer_blank=yes |
|
|
4409 | support_scroll_rxvt=yes |
|
|
4410 | support_scroll_next=yes |
|
|
4411 | support_scroll_xterm=yes |
|
|
4412 | support_scroll_plain=yes |
|
|
4413 | support_utmp=yes |
|
|
4414 | support_wtmp=yes |
|
|
4415 | support_xim=yes |
|
|
4416 | support_xpm=yes |
|
|
4417 | support_xft=yes |
|
|
4418 | support_unicode3=yes |
|
|
4419 | support_combining=yes |
|
|
4420 | #support_8bitctrls=yes |
|
|
4421 | support_iso14755=yes |
|
|
4422 | support_styles=yes |
|
|
4423 | support_perl=yes |
|
|
4424 | codesets=all |
|
|
4425 | fi |
|
|
4426 | |
|
|
4427 | fi; |
|
|
4428 | |
|
|
4429 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
|
|
4430 | if test "${enable_unicode3+set}" = set; then |
|
|
4431 | enableval="$enable_unicode3" |
|
|
4432 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4433 | support_unicode3=$enableval |
|
|
4434 | fi |
|
|
4435 | fi; |
|
|
4436 | |
|
|
4437 | # Check whether --enable-combining or --disable-combining was given. |
|
|
4438 | if test "${enable_combining+set}" = set; then |
|
|
4439 | enableval="$enable_combining" |
|
|
4440 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4441 | support_combining=$enableval |
|
|
4442 | fi |
|
|
4443 | fi; |
|
|
4444 | |
|
|
4445 | # Check whether --enable-xft or --disable-xft was given. |
|
|
4446 | if test "${enable_xft+set}" = set; then |
|
|
4447 | enableval="$enable_xft" |
|
|
4448 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4449 | support_xft=$enableval |
|
|
4450 | fi |
|
|
4451 | fi; |
|
|
4452 | |
|
|
4453 | # Check whether --enable-font-styles or --disable-font-styles was given. |
|
|
4454 | if test "${enable_font_styles+set}" = set; then |
|
|
4455 | enableval="$enable_font_styles" |
|
|
4456 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4457 | support_styles=$enableval |
|
|
4458 | fi |
|
|
4459 | fi; |
|
|
4460 | |
|
|
4461 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
4462 | if test "${enable_utmp+set}" = set; then |
|
|
4463 | enableval="$enable_utmp" |
|
|
4464 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4465 | support_utmp=$enableval |
|
|
4466 | fi |
|
|
4467 | fi; |
|
|
4468 | |
|
|
4469 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
4470 | if test "${enable_wtmp+set}" = set; then |
|
|
4471 | enableval="$enable_wtmp" |
|
|
4472 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4473 | support_wtmp=$enableval |
|
|
4474 | fi |
|
|
4475 | fi; |
|
|
4476 | |
|
|
4477 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
4478 | if test "${enable_lastlog+set}" = set; then |
|
|
4479 | enableval="$enable_lastlog" |
|
|
4480 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4481 | support_lastlog=$enableval |
|
|
4482 | fi |
|
|
4483 | fi; |
|
|
4484 | |
|
|
4485 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
|
|
4486 | if test "${enable_xpm_background+set}" = set; then |
|
|
4487 | enableval="$enable_xpm_background" |
|
|
4488 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4489 | support_xpm=$enableval |
|
|
4490 | fi |
|
|
4491 | fi; |
|
|
4492 | |
|
|
4493 | # Check whether --enable-transparency or --disable-transparency was given. |
|
|
4494 | if test "${enable_transparency+set}" = set; then |
|
|
4495 | enableval="$enable_transparency" |
|
|
4496 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4497 | support_inheritpixmap=$enableval |
|
|
4498 | fi |
|
|
4499 | fi; |
|
|
4500 | |
|
|
4501 | # Check whether --enable-tinting or --disable-tinting was given. |
|
|
4502 | if test "${enable_tinting+set}" = set; then |
|
|
4503 | enableval="$enable_tinting" |
|
|
4504 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4505 | support_tinting=$enableval |
|
|
4506 | fi |
|
|
4507 | fi; |
|
|
4508 | |
|
|
4509 | # Check whether --enable-fading or --disable-fading was given. |
|
|
4510 | if test "${enable_fading+set}" = set; then |
|
|
4511 | enableval="$enable_fading" |
|
|
4512 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4513 | support_fading=$enableval |
|
|
4514 | fi |
|
|
4515 | fi; |
|
|
4516 | |
|
|
4517 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
|
|
4518 | if test "${enable_rxvt_scroll+set}" = set; then |
|
|
4519 | enableval="$enable_rxvt_scroll" |
|
|
4520 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4521 | support_scroll_rxvt=$enableval |
|
|
4522 | fi |
|
|
4523 | fi; |
|
|
4524 | |
|
|
4525 | # Check whether --enable-next-scroll or --disable-next-scroll was given. |
|
|
4526 | if test "${enable_next_scroll+set}" = set; then |
|
|
4527 | enableval="$enable_next_scroll" |
|
|
4528 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4529 | support_scroll_next=$enableval |
|
|
4530 | fi |
|
|
4531 | fi; |
|
|
4532 | |
|
|
4533 | # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. |
|
|
4534 | if test "${enable_xterm_scroll+set}" = set; then |
|
|
4535 | enableval="$enable_xterm_scroll" |
|
|
4536 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4537 | support_scroll_xterm=$enableval |
|
|
4538 | fi |
|
|
4539 | fi; |
|
|
4540 | |
|
|
4541 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4542 | if test "${enable_perl+set}" = set; then |
|
|
4543 | enableval="$enable_perl" |
|
|
4544 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4545 | support_perl=$enableval |
|
|
4546 | fi |
|
|
4547 | fi; |
|
|
4548 | |
|
|
4549 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
|
|
4550 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4551 | enableval="$enable_plain_scroll" |
|
|
4552 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4553 | support_scroll_plain=$enableval |
|
|
4554 | fi |
|
|
4555 | fi; |
|
|
4556 | |
|
|
4557 | |
|
|
4558 | |
|
|
4559 | # Check whether --with-codesets or --without-codesets was given. |
|
|
4560 | if test "${with_codesets+set}" = set; then |
|
|
4561 | withval="$with_codesets" |
|
|
4562 | codesets="$withval" |
|
|
4563 | fi; |
|
|
4564 | |
|
|
4565 | # Check whether --enable-xim or --disable-xim was given. |
|
|
4566 | if test "${enable_xim+set}" = set; then |
|
|
4567 | enableval="$enable_xim" |
|
|
4568 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4569 | support_xim=$enableval |
|
|
4570 | fi |
|
|
4571 | fi; |
|
|
4572 | |
|
|
4573 | # Check whether --enable-ttygid or --disable-ttygid was given. |
|
|
4574 | if test "${enable_ttygid+set}" = set; then |
|
|
4575 | enableval="$enable_ttygid" |
|
|
4576 | if test x$enableval = xyes; then |
|
|
4577 | |
|
|
4578 | cat >>confdefs.h <<\_ACEOF |
|
|
4579 | #define TTY_GID_SUPPORT 1 |
|
|
4580 | _ACEOF |
|
|
4581 | |
|
|
4582 | fi |
|
|
4583 | fi; |
|
|
4584 | |
|
|
4585 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
|
|
4586 | if test "${enable_backspace_key+set}" = set; then |
|
|
4587 | enableval="$enable_backspace_key" |
|
|
4588 | if test x$enableval = xno; then |
|
|
4589 | |
|
|
4590 | cat >>confdefs.h <<\_ACEOF |
|
|
4591 | #define NO_BACKSPACE_KEY 1 |
|
|
4592 | _ACEOF |
|
|
4593 | |
|
|
4594 | fi |
|
|
4595 | fi; |
|
|
4596 | |
|
|
4597 | # Check whether --enable-delete-key or --disable-delete-key was given. |
|
|
4598 | if test "${enable_delete_key+set}" = set; then |
|
|
4599 | enableval="$enable_delete_key" |
|
|
4600 | if test x$enableval = xno; then |
|
|
4601 | |
|
|
4602 | cat >>confdefs.h <<\_ACEOF |
|
|
4603 | #define NO_DELETE_KEY 1 |
|
|
4604 | _ACEOF |
|
|
4605 | |
|
|
4606 | fi |
|
|
4607 | fi; |
|
|
4608 | |
|
|
4609 | # Check whether --enable-resources or --disable-resources was given. |
|
|
4610 | if test "${enable_resources+set}" = set; then |
|
|
4611 | enableval="$enable_resources" |
|
|
4612 | if test x$enableval = xno; then |
|
|
4613 | |
|
|
4614 | cat >>confdefs.h <<\_ACEOF |
|
|
4615 | #define NO_RESOURCES 1 |
|
|
4616 | _ACEOF |
|
|
4617 | |
|
|
4618 | fi |
|
|
4619 | fi; |
|
|
4620 | |
|
|
4621 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
|
|
4622 | if test "${enable_8bitctrls+set}" = set; then |
|
|
4623 | enableval="$enable_8bitctrls" |
|
|
4624 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4625 | support_8bitctrls=$enableval |
|
|
4626 | fi |
|
|
4627 | fi; |
|
|
4628 | |
|
|
4629 | RESFALLBACK=Rxvt |
|
|
4630 | # Check whether --enable-fallback or --disable-fallback was given. |
|
|
4631 | if test "${enable_fallback+set}" = set; then |
|
|
4632 | enableval="$enable_fallback" |
|
|
4633 | |
|
|
4634 | test x$enableval = xyes && enableval=Rxvt |
|
|
4635 | test x$enableval = xno && enableval= |
|
|
4636 | RESFALLBACK="$enableval" |
|
|
4637 | |
|
|
4638 | fi; |
|
|
4639 | |
|
|
4640 | if test x$RESFALLBACK != x; then |
|
|
4641 | |
|
|
4642 | cat >>confdefs.h <<_ACEOF |
|
|
4643 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4644 | _ACEOF |
|
|
4645 | |
|
|
4646 | fi |
|
|
4647 | |
|
|
4648 | RESNAME=urxvt |
|
|
4649 | |
|
|
4650 | # Check whether --with-res-name or --without-res-name was given. |
|
|
4651 | if test "${with_res_name+set}" = set; then |
|
|
4652 | withval="$with_res_name" |
|
|
4653 | RESNAME="$withval" |
|
|
4654 | fi; |
|
|
4655 | |
|
|
4656 | cat >>confdefs.h <<_ACEOF |
|
|
4657 | #define RESNAME "$RESNAME" |
|
|
4658 | _ACEOF |
|
|
4659 | |
|
|
4660 | |
|
|
4661 | RESCLASS=URxvt |
|
|
4662 | |
|
|
4663 | # Check whether --with-res-class or --without-res-class was given. |
|
|
4664 | if test "${with_res_class+set}" = set; then |
|
|
4665 | withval="$with_res_class" |
|
|
4666 | RESCLASS="$withval" |
|
|
4667 | fi; |
|
|
4668 | |
|
|
4669 | cat >>confdefs.h <<_ACEOF |
|
|
4670 | #define RESCLASS "$RESCLASS" |
|
|
4671 | _ACEOF |
|
|
4672 | |
|
|
4673 | |
|
|
4674 | RXVTNAME=urxvt |
|
|
4675 | |
|
|
4676 | # Check whether --with-name or --without-name was given. |
|
|
4677 | if test "${with_name+set}" = set; then |
|
|
4678 | withval="$with_name" |
|
|
4679 | RXVTNAME="$withval" |
|
|
4680 | fi; |
|
|
4681 | |
|
|
4682 | cat >>confdefs.h <<_ACEOF |
|
|
4683 | #define RXVTNAME "$RXVTNAME" |
|
|
4684 | _ACEOF |
|
|
4685 | |
|
|
4686 | |
|
|
4687 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4688 | |
|
|
4689 | |
|
|
4690 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
|
|
4691 | if test "${enable_swapscreen+set}" = set; then |
|
|
4692 | enableval="$enable_swapscreen" |
|
|
4693 | if test x$enableval = xno; then |
|
|
4694 | |
|
|
4695 | cat >>confdefs.h <<\_ACEOF |
|
|
4696 | #define NO_SECONDARY_SCREEN 1 |
|
|
4697 | _ACEOF |
|
|
4698 | |
|
|
4699 | fi |
|
|
4700 | fi; |
|
|
4701 | |
|
|
4702 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4703 | if test "${enable_iso14755+set}" = set; then |
|
|
4704 | enableval="$enable_iso14755" |
|
|
4705 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4706 | support_iso14755=$enableval |
|
|
4707 | fi |
|
|
4708 | fi; |
|
|
4709 | |
|
|
4710 | # Check whether --enable-frills or --disable-frills was given. |
|
|
4711 | if test "${enable_frills+set}" = set; then |
|
|
4712 | enableval="$enable_frills" |
|
|
4713 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4714 | support_frills=$enableval |
|
|
4715 | fi |
|
|
4716 | fi; |
|
|
4717 | |
|
|
4718 | # Check whether --enable-24bit or --disable-24bit was given. |
|
|
4719 | if test "${enable_24bit+set}" = set; then |
|
|
4720 | enableval="$enable_24bit" |
|
|
4721 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4722 | support_24bit=$enableval |
|
|
4723 | fi |
|
|
4724 | fi; |
|
|
4725 | |
|
|
4726 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
|
|
4727 | if test "${enable_keepscrolling+set}" = set; then |
|
|
4728 | enableval="$enable_keepscrolling" |
|
|
4729 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4730 | support_keepscrolling=$enableval |
|
|
4731 | fi |
|
|
4732 | fi; |
|
|
4733 | |
|
|
4734 | # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. |
|
|
4735 | if test "${enable_selectionscrolling+set}" = set; then |
|
|
4736 | enableval="$enable_selectionscrolling" |
|
|
4737 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4738 | support_selectionscrolling=$enableval |
|
|
4739 | fi |
|
|
4740 | fi; |
|
|
4741 | |
|
|
4742 | # Check whether --enable-mousewheel or --disable-mousewheel was given. |
|
|
4743 | if test "${enable_mousewheel+set}" = set; then |
|
|
4744 | enableval="$enable_mousewheel" |
|
|
4745 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4746 | support_mousewheel=$enableval |
|
|
4747 | fi |
|
|
4748 | fi; |
|
|
4749 | |
|
|
4750 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
|
|
4751 | if test "${enable_slipwheeling+set}" = set; then |
|
|
4752 | enableval="$enable_slipwheeling" |
|
|
4753 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4754 | support_mouseslipwheel=$enableval |
|
|
4755 | fi |
|
|
4756 | fi; |
|
|
4757 | |
|
|
4758 | # Check whether --enable-dmalloc or --disable-dmalloc was given. |
|
|
4759 | if test "${enable_dmalloc+set}" = set; then |
|
|
4760 | enableval="$enable_dmalloc" |
|
|
4761 | if test x$enableval = xyes; then |
|
|
4762 | MALLOC_TYPE=G |
|
|
4763 | DEBUG=-DDEBUG_MALLOC |
|
|
4764 | DLIB="-L/usr/local/lib -ldmalloc" |
|
|
4765 | DINCLUDE=-I/usr/local/include |
|
|
4766 | fi |
|
|
4767 | fi; |
|
|
4768 | |
|
|
4769 | # Check whether --enable-dlmalloc or --disable-dlmalloc was given. |
|
|
4770 | if test "${enable_dlmalloc+set}" = set; then |
|
|
4771 | enableval="$enable_dlmalloc" |
|
|
4772 | if test x$enableval = xyes; then |
|
|
4773 | MALLOC_TYPE=D |
|
|
4774 | DEBUG= |
|
|
4775 | DLIB="-L/usr/local/lib -ldlmalloc" |
|
|
4776 | DINCLUDE= |
|
|
4777 | fi |
|
|
4778 | fi; |
|
|
4779 | |
|
|
4780 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
|
|
4781 | if test "${enable_smart_resize+set}" = set; then |
|
|
4782 | enableval="$enable_smart_resize" |
|
|
4783 | if test x$enableval = xyes; then |
|
|
4784 | |
|
|
4785 | cat >>confdefs.h <<\_ACEOF |
|
|
4786 | #define SMART_RESIZE 1 |
|
|
4787 | _ACEOF |
|
|
4788 | |
|
|
4789 | fi |
|
|
4790 | fi; |
|
|
4791 | |
|
|
4792 | # Check whether --enable-text-blink or --disable-text-blink was given. |
|
|
4793 | if test "${enable_text_blink+set}" = set; then |
|
|
4794 | enableval="$enable_text_blink" |
|
|
4795 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4796 | support_text_blink=$enableval |
|
|
4797 | fi |
|
|
4798 | fi; |
|
|
4799 | |
|
|
4800 | # Check whether --enable-pointer-blank or --disable-pointer-blank was given. |
|
|
4801 | if test "${enable_pointer_blank+set}" = set; then |
|
|
4802 | enableval="$enable_pointer_blank" |
|
|
4803 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4804 | support_pointer_blank=$enableval |
|
|
4805 | fi |
|
|
4806 | fi; |
|
|
4807 | |
|
|
4808 | |
|
|
4809 | # Check whether --with-term or --without-term was given. |
|
|
4810 | if test "${with_term+set}" = set; then |
|
|
4811 | withval="$with_term" |
|
|
4812 | if test x$withval != x; then |
|
|
4813 | |
|
|
4814 | cat >>confdefs.h <<_ACEOF |
|
|
4815 | #define TERMENV "$withval" |
|
|
4816 | _ACEOF |
|
|
4817 | term="$withval" |
|
|
4818 | fi |
|
|
4819 | fi; |
|
|
4820 | |
|
|
4821 | |
|
|
4822 | # Check whether --with-terminfo or --without-terminfo was given. |
|
|
4823 | if test "${with_terminfo+set}" = set; then |
|
|
4824 | withval="$with_terminfo" |
|
|
4825 | if test x$withval != x; then |
|
|
4826 | |
|
|
4827 | cat >>confdefs.h <<_ACEOF |
|
|
4828 | #define RXVT_TERMINFO "$withval" |
|
|
4829 | _ACEOF |
|
|
4830 | terminfo="$withval" |
|
|
4831 | fi |
|
|
4832 | fi; |
|
|
4833 | |
|
|
4834 | |
|
|
4835 | |
|
|
4836 | cat >>confdefs.h <<\_ACEOF |
|
|
4837 | #define PROTOTYPES 1 |
|
|
4838 | _ACEOF |
|
|
4839 | |
|
|
4840 | |
|
|
4841 | # Extract the first word of "mv", so it can be a program name with args. |
|
|
4842 | set dummy mv; ac_word=$2 |
|
|
4843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4845 | if test "${ac_cv_path_MV+set}" = set; then |
|
|
4846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4847 | else |
|
|
4848 | case $MV in |
|
|
4849 | [\\/]* | ?:[\\/]*) |
|
|
4850 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
|
|
4851 | ;; |
|
|
4852 | *) |
|
|
4853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4854 | for as_dir in $PATH |
|
|
4855 | do |
|
|
4856 | IFS=$as_save_IFS |
|
|
4857 | test -z "$as_dir" && as_dir=. |
|
|
4858 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4860 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
|
|
4861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4862 | break 2 |
|
|
4863 | fi |
|
|
4864 | done |
|
|
4865 | done |
|
|
4866 | |
|
|
4867 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
|
|
4868 | ;; |
|
|
4869 | esac |
|
|
4870 | fi |
|
|
4871 | MV=$ac_cv_path_MV |
|
|
4872 | |
|
|
4873 | if test -n "$MV"; then |
|
|
4874 | echo "$as_me:$LINENO: result: $MV" >&5 |
|
|
4875 | echo "${ECHO_T}$MV" >&6 |
|
|
4876 | else |
|
|
4877 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4878 | echo "${ECHO_T}no" >&6 |
|
|
4879 | fi |
|
|
4880 | |
|
|
4881 | # Extract the first word of "rm", so it can be a program name with args. |
|
|
4882 | set dummy rm; ac_word=$2 |
|
|
4883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4885 | if test "${ac_cv_path_RM+set}" = set; then |
|
|
4886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4887 | else |
|
|
4888 | case $RM in |
|
|
4889 | [\\/]* | ?:[\\/]*) |
|
|
4890 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
|
|
4891 | ;; |
|
|
4892 | *) |
|
|
4893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4894 | for as_dir in $PATH |
|
|
4895 | do |
|
|
4896 | IFS=$as_save_IFS |
|
|
4897 | test -z "$as_dir" && as_dir=. |
|
|
4898 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4900 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
|
|
4901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4902 | break 2 |
|
|
4903 | fi |
|
|
4904 | done |
|
|
4905 | done |
|
|
4906 | |
|
|
4907 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
|
|
4908 | ;; |
|
|
4909 | esac |
|
|
4910 | fi |
|
|
4911 | RM=$ac_cv_path_RM |
|
|
4912 | |
|
|
4913 | if test -n "$RM"; then |
|
|
4914 | echo "$as_me:$LINENO: result: $RM" >&5 |
|
|
4915 | echo "${ECHO_T}$RM" >&6 |
|
|
4916 | else |
|
|
4917 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4918 | echo "${ECHO_T}no" >&6 |
|
|
4919 | fi |
|
|
4920 | |
|
|
4921 | # Extract the first word of "cp", so it can be a program name with args. |
|
|
4922 | set dummy cp; ac_word=$2 |
|
|
4923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4925 | if test "${ac_cv_path_CP+set}" = set; then |
|
|
4926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4927 | else |
|
|
4928 | case $CP in |
|
|
4929 | [\\/]* | ?:[\\/]*) |
|
|
4930 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
|
|
4931 | ;; |
|
|
4932 | *) |
|
|
4933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4934 | for as_dir in $PATH |
|
|
4935 | do |
|
|
4936 | IFS=$as_save_IFS |
|
|
4937 | test -z "$as_dir" && as_dir=. |
|
|
4938 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4940 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
|
|
4941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4942 | break 2 |
|
|
4943 | fi |
|
|
4944 | done |
|
|
4945 | done |
|
|
4946 | |
|
|
4947 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
4948 | ;; |
|
|
4949 | esac |
|
|
4950 | fi |
|
|
4951 | CP=$ac_cv_path_CP |
|
|
4952 | |
|
|
4953 | if test -n "$CP"; then |
|
|
4954 | echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
4955 | echo "${ECHO_T}$CP" >&6 |
|
|
4956 | else |
|
|
4957 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4958 | echo "${ECHO_T}no" >&6 |
|
|
4959 | fi |
|
|
4960 | |
|
|
4961 | # Extract the first word of "ln", so it can be a program name with args. |
|
|
4962 | set dummy ln; ac_word=$2 |
|
|
4963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4965 | if test "${ac_cv_path_LN+set}" = set; then |
|
|
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4967 | else |
|
|
4968 | case $LN in |
|
|
4969 | [\\/]* | ?:[\\/]*) |
|
|
4970 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
|
|
4971 | ;; |
|
|
4972 | *) |
|
|
4973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4974 | for as_dir in $PATH |
|
|
4975 | do |
|
|
4976 | IFS=$as_save_IFS |
|
|
4977 | test -z "$as_dir" && as_dir=. |
|
|
4978 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4980 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
|
|
4981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4982 | break 2 |
|
|
4983 | fi |
|
|
4984 | done |
|
|
4985 | done |
|
|
4986 | |
|
|
4987 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
|
|
4988 | ;; |
|
|
4989 | esac |
|
|
4990 | fi |
|
|
4991 | LN=$ac_cv_path_LN |
|
|
4992 | |
|
|
4993 | if test -n "$LN"; then |
|
|
4994 | echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
4995 | echo "${ECHO_T}$LN" >&6 |
|
|
4996 | else |
|
|
4997 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4998 | echo "${ECHO_T}no" >&6 |
|
|
4999 | fi |
|
|
5000 | |
|
|
5001 | # Extract the first word of "sed", so it can be a program name with args. |
|
|
5002 | set dummy sed; ac_word=$2 |
|
|
5003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5005 | if test "${ac_cv_path_SED+set}" = set; then |
|
|
5006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5007 | else |
|
|
5008 | case $SED in |
|
|
5009 | [\\/]* | ?:[\\/]*) |
|
|
5010 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
|
|
5011 | ;; |
|
|
5012 | *) |
|
|
5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5014 | for as_dir in $PATH |
|
|
5015 | do |
|
|
5016 | IFS=$as_save_IFS |
|
|
5017 | test -z "$as_dir" && as_dir=. |
|
|
5018 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5020 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
5021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5022 | break 2 |
|
|
5023 | fi |
|
|
5024 | done |
|
|
5025 | done |
|
|
5026 | |
|
|
5027 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
5028 | ;; |
|
|
5029 | esac |
|
|
5030 | fi |
|
|
5031 | SED=$ac_cv_path_SED |
|
|
5032 | |
|
|
5033 | if test -n "$SED"; then |
|
|
5034 | echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
5035 | echo "${ECHO_T}$SED" >&6 |
|
|
5036 | else |
|
|
5037 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5038 | echo "${ECHO_T}no" >&6 |
|
|
5039 | fi |
|
|
5040 | |
|
|
5041 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
5042 | set dummy echo; ac_word=$2 |
|
|
5043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5045 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5047 | else |
|
|
5048 | case $ECHO in |
|
|
5049 | [\\/]* | ?:[\\/]*) |
|
|
5050 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
5051 | ;; |
|
|
5052 | *) |
|
|
5053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5054 | for as_dir in $PATH |
|
|
5055 | do |
|
|
5056 | IFS=$as_save_IFS |
|
|
5057 | test -z "$as_dir" && as_dir=. |
|
|
5058 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5060 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
5061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5062 | break 2 |
|
|
5063 | fi |
|
|
5064 | done |
|
|
5065 | done |
|
|
5066 | |
|
|
5067 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
5068 | ;; |
|
|
5069 | esac |
|
|
5070 | fi |
|
|
5071 | ECHO=$ac_cv_path_ECHO |
|
|
5072 | |
|
|
5073 | if test -n "$ECHO"; then |
|
|
5074 | echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
5075 | echo "${ECHO_T}$ECHO" >&6 |
|
|
5076 | else |
|
|
5077 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5078 | echo "${ECHO_T}no" >&6 |
|
|
5079 | fi |
|
|
5080 | |
|
|
5081 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
5082 | set dummy cmp; ac_word=$2 |
|
|
5083 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5085 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
5086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5087 | else |
|
|
5088 | case $CMP in |
|
|
5089 | [\\/]* | ?:[\\/]*) |
|
|
5090 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
5091 | ;; |
|
|
5092 | *) |
|
|
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5094 | for as_dir in $PATH |
|
|
5095 | do |
|
|
5096 | IFS=$as_save_IFS |
|
|
5097 | test -z "$as_dir" && as_dir=. |
|
|
5098 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5099 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5100 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
5101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5102 | break 2 |
|
|
5103 | fi |
|
|
5104 | done |
|
|
5105 | done |
|
|
5106 | |
|
|
5107 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
|
|
5108 | ;; |
|
|
5109 | esac |
|
|
5110 | fi |
|
|
5111 | CMP=$ac_cv_path_CMP |
|
|
5112 | |
|
|
5113 | if test -n "$CMP"; then |
|
|
5114 | echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
5115 | echo "${ECHO_T}$CMP" >&6 |
|
|
5116 | else |
|
|
5117 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5118 | echo "${ECHO_T}no" >&6 |
|
|
5119 | fi |
|
|
5120 | |
|
|
5121 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
5122 | set dummy tbl; ac_word=$2 |
|
|
5123 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5125 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5127 | else |
|
|
5128 | case $TBL in |
|
|
5129 | [\\/]* | ?:[\\/]*) |
|
|
5130 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
5131 | ;; |
|
|
5132 | *) |
|
|
5133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5134 | for as_dir in $PATH |
|
|
5135 | do |
|
|
5136 | IFS=$as_save_IFS |
|
|
5137 | test -z "$as_dir" && as_dir=. |
|
|
5138 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5140 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
5141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5142 | break 2 |
|
|
5143 | fi |
|
|
5144 | done |
|
|
5145 | done |
|
|
5146 | |
|
|
5147 | ;; |
|
|
5148 | esac |
|
|
5149 | fi |
|
|
5150 | TBL=$ac_cv_path_TBL |
|
|
5151 | |
|
|
5152 | if test -n "$TBL"; then |
|
|
5153 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
5154 | echo "${ECHO_T}$TBL" >&6 |
|
|
5155 | else |
|
|
5156 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5157 | echo "${ECHO_T}no" >&6 |
|
|
5158 | fi |
|
|
5159 | |
|
|
5160 | # Extract the first word of "tic", so it can be a program name with args. |
|
|
5161 | set dummy tic; ac_word=$2 |
|
|
5162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5164 | if test "${ac_cv_path_TIC+set}" = set; then |
|
|
5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5166 | else |
|
|
5167 | case $TIC in |
|
|
5168 | [\\/]* | ?:[\\/]*) |
|
|
5169 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
|
|
5170 | ;; |
|
|
5171 | *) |
|
|
5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5173 | for as_dir in $PATH |
|
|
5174 | do |
|
|
5175 | IFS=$as_save_IFS |
|
|
5176 | test -z "$as_dir" && as_dir=. |
|
|
5177 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5179 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
|
|
5180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5181 | break 2 |
|
|
5182 | fi |
|
|
5183 | done |
|
|
5184 | done |
|
|
5185 | |
|
|
5186 | ;; |
|
|
5187 | esac |
|
|
5188 | fi |
|
|
5189 | TIC=$ac_cv_path_TIC |
|
|
5190 | |
|
|
5191 | if test -n "$TIC"; then |
|
|
5192 | echo "$as_me:$LINENO: result: $TIC" >&5 |
|
|
5193 | echo "${ECHO_T}$TIC" >&6 |
|
|
5194 | else |
|
|
5195 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5196 | echo "${ECHO_T}no" >&6 |
|
|
5197 | fi |
|
|
5198 | |
|
|
5199 | |
|
|
5200 | |
|
|
5201 | |
|
|
5202 | |
|
|
5203 | if test "x$ac_path_x_has_been_run" != xyes; then |
|
|
5204 | echo "$as_me:$LINENO: checking for X" >&5 |
|
|
5205 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
|
|
5206 | |
|
|
5207 | ac_path_x_has_been_run=yes |
|
|
5208 | |
|
|
5209 | # Check whether --with-x or --without-x was given. |
|
|
5210 | if test "${with_x+set}" = set; then |
|
|
5211 | withval="$with_x" |
|
|
5212 | |
|
|
5213 | fi; |
|
|
5214 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
|
|
5215 | if test "x$with_x" = xno; then |
|
|
5216 | # The user explicitly disabled X. |
|
|
5217 | have_x=disabled |
|
|
5218 | else |
|
|
5219 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
|
|
5220 | # Both variables are already set. |
|
|
5221 | have_x=yes |
|
|
5222 | else |
|
|
5223 | if test "${ac_cv_have_x+set}" = set; then |
|
|
5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5225 | else |
|
|
5226 | # One or both of the vars are not set, and there is no cached value. |
|
|
5227 | ac_x_includes=no ac_x_libraries=no |
|
|
5228 | rm -fr conftest.dir |
|
|
5229 | if mkdir conftest.dir; then |
|
|
5230 | cd conftest.dir |
|
|
5231 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
|
|
5232 | cat >Imakefile <<'_ACEOF' |
|
|
5233 | acfindx: |
|
|
5234 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
|
|
5235 | _ACEOF |
|
|
5236 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
|
|
5237 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
|
5238 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
|
|
5239 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
|
|
5240 | for ac_extension in a so sl; do |
|
|
5241 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
|
|
5242 | test -f $ac_im_libdir/libX11.$ac_extension; then |
|
|
5243 | ac_im_usrlibdir=$ac_im_libdir; break |
|
|
5244 | fi |
|
|
5245 | done |
|
|
5246 | # Screen out bogus values from the imake configuration. They are |
|
|
5247 | # bogus both because they are the default anyway, and because |
|
|
5248 | # using them would break gcc on systems where it needs fixed includes. |
|
|
5249 | case $ac_im_incroot in |
|
|
5250 | /usr/include) ;; |
|
|
5251 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
|
|
5252 | esac |
|
|
5253 | case $ac_im_usrlibdir in |
|
|
5254 | /usr/lib | /lib) ;; |
|
|
5255 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
|
|
5256 | esac |
|
|
5257 | fi |
|
|
5258 | cd .. |
|
|
5259 | rm -fr conftest.dir |
|
|
5260 | fi |
|
|
5261 | |
|
|
5262 | # Standard set of common directories for X headers. |
|
|
5263 | # Check X11 before X11Rn because it is often a symlink to the current release. |
|
|
5264 | ac_x_header_dirs=' |
|
|
5265 | /usr/X11/include |
|
|
5266 | /usr/X11R6/include |
|
|
5267 | /usr/X11R5/include |
|
|
5268 | /usr/X11R4/include |
|
|
5269 | |
|
|
5270 | /usr/include/X11 |
|
|
5271 | /usr/include/X11R6 |
|
|
5272 | /usr/include/X11R5 |
|
|
5273 | /usr/include/X11R4 |
|
|
5274 | |
|
|
5275 | /usr/local/X11/include |
|
|
5276 | /usr/local/X11R6/include |
|
|
5277 | /usr/local/X11R5/include |
|
|
5278 | /usr/local/X11R4/include |
|
|
5279 | |
|
|
5280 | /usr/local/include/X11 |
|
|
5281 | /usr/local/include/X11R6 |
|
|
5282 | /usr/local/include/X11R5 |
|
|
5283 | /usr/local/include/X11R4 |
|
|
5284 | |
|
|
5285 | /usr/X386/include |
|
|
5286 | /usr/x386/include |
|
|
5287 | /usr/XFree86/include/X11 |
|
|
5288 | |
|
|
5289 | /usr/include |
|
|
5290 | /usr/local/include |
|
|
5291 | /usr/unsupported/include |
|
|
5292 | /usr/athena/include |
|
|
5293 | /usr/local/x11r5/include |
|
|
5294 | /usr/lpp/Xamples/include |
|
|
5295 | |
|
|
5296 | /usr/openwin/include |
|
|
5297 | /usr/openwin/share/include' |
|
|
5298 | |
|
|
5299 | if test "$ac_x_includes" = no; then |
|
|
5300 | # Guess where to find include files, by looking for a specified header file. |
|
|
5301 | # First, try using that file with no special directory specified. |
|
|
5302 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5303 | /* confdefs.h. */ |
|
|
5304 | _ACEOF |
|
|
5305 | cat confdefs.h >>conftest.$ac_ext |
|
|
5306 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5307 | /* end confdefs.h. */ |
|
|
5308 | #include <X11/Xlib.h> |
|
|
5309 | _ACEOF |
|
|
5310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5312 | ac_status=$? |
|
|
5313 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5314 | rm -f conftest.er1 |
|
|
5315 | cat conftest.err >&5 |
|
|
5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5317 | (exit $ac_status); } >/dev/null; then |
|
|
5318 | if test -s conftest.err; then |
|
|
5319 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5320 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5321 | else |
|
|
5322 | ac_cpp_err= |
|
|
5323 | fi |
|
|
5324 | else |
|
|
5325 | ac_cpp_err=yes |
|
|
5326 | fi |
|
|
5327 | if test -z "$ac_cpp_err"; then |
|
|
5328 | # We can compile using X headers with no special include directory. |
|
|
5329 | ac_x_includes= |
|
|
5330 | else |
|
|
5331 | echo "$as_me: failed program was:" >&5 |
|
|
5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5333 | |
|
|
5334 | for ac_dir in $ac_x_header_dirs; do |
|
|
5335 | if test -r "$ac_dir/X11/Xlib.h"; then |
|
|
5336 | ac_x_includes=$ac_dir |
|
|
5337 | break |
|
|
5338 | fi |
|
|
5339 | done |
|
|
5340 | fi |
|
|
5341 | rm -f conftest.err conftest.$ac_ext |
|
|
5342 | fi # $ac_x_includes = no |
|
|
5343 | |
|
|
5344 | if test "$ac_x_libraries" = no; then |
|
|
5345 | # Check for the libraries. |
|
|
5346 | # See if we find them without any special options. |
|
|
5347 | # Don't add to $LIBS permanently. |
|
|
5348 | ac_save_LIBS=$LIBS |
|
|
5349 | LIBS="-lX11 $LIBS" |
|
|
5350 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5351 | /* confdefs.h. */ |
|
|
5352 | _ACEOF |
|
|
5353 | cat confdefs.h >>conftest.$ac_ext |
|
|
5354 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5355 | /* end confdefs.h. */ |
|
|
5356 | #include <X11/Xlib.h> |
|
|
5357 | int |
|
|
5358 | main () |
|
|
5359 | { |
|
|
5360 | XrmInitialize () |
|
|
5361 | ; |
|
|
5362 | return 0; |
|
|
5363 | } |
|
|
5364 | _ACEOF |
|
|
5365 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5367 | (eval $ac_link) 2>conftest.er1 |
|
|
5368 | ac_status=$? |
|
|
5369 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5370 | rm -f conftest.er1 |
|
|
5371 | cat conftest.err >&5 |
|
|
5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5373 | (exit $ac_status); } && |
|
|
5374 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5376 | (eval $ac_try) 2>&5 |
|
|
5377 | ac_status=$? |
|
|
5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5379 | (exit $ac_status); }; } && |
|
|
5380 | { ac_try='test -s conftest$ac_exeext' |
|
|
5381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5382 | (eval $ac_try) 2>&5 |
|
|
5383 | ac_status=$? |
|
|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5385 | (exit $ac_status); }; }; then |
|
|
5386 | LIBS=$ac_save_LIBS |
|
|
5387 | # We can link X programs with no special library path. |
|
|
5388 | ac_x_libraries= |
|
|
5389 | else |
|
|
5390 | echo "$as_me: failed program was:" >&5 |
|
|
5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5392 | |
|
|
5393 | LIBS=$ac_save_LIBS |
|
|
5394 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
|
|
5395 | do |
|
|
5396 | # Don't even attempt the hair of trying to link an X program! |
|
|
5397 | for ac_extension in a so sl; do |
|
|
5398 | if test -r $ac_dir/libX11.$ac_extension; then |
|
|
5399 | ac_x_libraries=$ac_dir |
|
|
5400 | break 2 |
|
|
5401 | fi |
|
|
5402 | done |
|
|
5403 | done |
|
|
5404 | fi |
|
|
5405 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5406 | conftest$ac_exeext conftest.$ac_ext |
|
|
5407 | fi # $ac_x_libraries = no |
|
|
5408 | |
|
|
5409 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
|
|
5410 | # Didn't find X anywhere. Cache the known absence of X. |
|
|
5411 | ac_cv_have_x="have_x=no" |
|
|
5412 | else |
|
|
5413 | # Record where we found X for the cache. |
|
|
5414 | ac_cv_have_x="have_x=yes \ |
|
|
5415 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
|
|
5416 | fi |
|
|
5417 | fi |
|
|
5418 | |
|
|
5419 | fi |
|
|
5420 | eval "$ac_cv_have_x" |
|
|
5421 | fi # $with_x != no |
|
|
5422 | |
|
|
5423 | if test "$have_x" != yes; then |
|
|
5424 | echo "$as_me:$LINENO: result: $have_x" >&5 |
|
|
5425 | echo "${ECHO_T}$have_x" >&6 |
|
|
5426 | no_x=yes |
|
|
5427 | else |
|
|
5428 | # If each of the values was on the command line, it overrides each guess. |
|
|
5429 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
|
|
5430 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
|
|
5431 | # Update the cache value to reflect the command line values. |
|
|
5432 | ac_cv_have_x="have_x=yes \ |
|
|
5433 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
|
|
5434 | # It might be that x_includes is empty (headers are found in the |
|
|
5435 | # standard search path. Then output the corresponding message |
|
|
5436 | ac_out_x_includes=$x_includes |
|
|
5437 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
|
|
5438 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
|
|
5439 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
|
|
5440 | fi |
|
|
5441 | |
|
|
5442 | fi |
|
|
5443 | if test "$no_x" = yes; then |
|
|
5444 | # Not all programs may use this symbol, but it does not hurt to define it. |
|
|
5445 | |
|
|
5446 | cat >>confdefs.h <<\_ACEOF |
|
|
5447 | #define X_DISPLAY_MISSING 1 |
|
|
5448 | _ACEOF |
|
|
5449 | |
|
|
5450 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
|
|
5451 | else |
|
|
5452 | if test -n "$x_includes"; then |
|
|
5453 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
|
|
5454 | fi |
|
|
5455 | |
|
|
5456 | # It would also be nice to do this for all -L options, not just this one. |
|
|
5457 | if test -n "$x_libraries"; then |
|
|
5458 | X_LIBS="$X_LIBS -L$x_libraries" |
|
|
5459 | # For Solaris; some versions of Sun CC require a space after -R and |
|
|
5460 | # others require no space. Words are not sufficient . . . . |
|
|
5461 | case `(uname -sr) 2>/dev/null` in |
|
|
5462 | "SunOS 5"*) |
|
|
5463 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
|
|
5464 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
|
|
5465 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
|
|
5466 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5467 | /* confdefs.h. */ |
|
|
5468 | _ACEOF |
|
|
5469 | cat confdefs.h >>conftest.$ac_ext |
|
|
5470 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5471 | /* end confdefs.h. */ |
|
|
5472 | |
|
|
5473 | int |
|
|
5474 | main () |
|
|
5475 | { |
|
|
5476 | |
|
|
5477 | ; |
|
|
5478 | return 0; |
|
|
5479 | } |
|
|
5480 | _ACEOF |
|
|
5481 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5483 | (eval $ac_link) 2>conftest.er1 |
|
|
5484 | ac_status=$? |
|
|
5485 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5486 | rm -f conftest.er1 |
|
|
5487 | cat conftest.err >&5 |
|
|
5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5489 | (exit $ac_status); } && |
|
|
5490 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5492 | (eval $ac_try) 2>&5 |
|
|
5493 | ac_status=$? |
|
|
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5495 | (exit $ac_status); }; } && |
|
|
5496 | { ac_try='test -s conftest$ac_exeext' |
|
|
5497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5498 | (eval $ac_try) 2>&5 |
|
|
5499 | ac_status=$? |
|
|
5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5501 | (exit $ac_status); }; }; then |
|
|
5502 | ac_R_nospace=yes |
|
|
5503 | else |
|
|
5504 | echo "$as_me: failed program was:" >&5 |
|
|
5505 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5506 | |
|
|
5507 | ac_R_nospace=no |
|
|
5508 | fi |
|
|
5509 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5510 | conftest$ac_exeext conftest.$ac_ext |
|
|
5511 | if test $ac_R_nospace = yes; then |
|
|
5512 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5513 | echo "${ECHO_T}no" >&6 |
|
|
5514 | X_LIBS="$X_LIBS -R$x_libraries" |
|
|
5515 | else |
|
|
5516 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
|
|
5517 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5518 | /* confdefs.h. */ |
|
|
5519 | _ACEOF |
|
|
5520 | cat confdefs.h >>conftest.$ac_ext |
|
|
5521 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5522 | /* end confdefs.h. */ |
|
|
5523 | |
|
|
5524 | int |
|
|
5525 | main () |
|
|
5526 | { |
|
|
5527 | |
|
|
5528 | ; |
|
|
5529 | return 0; |
|
|
5530 | } |
|
|
5531 | _ACEOF |
|
|
5532 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5534 | (eval $ac_link) 2>conftest.er1 |
|
|
5535 | ac_status=$? |
|
|
5536 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5537 | rm -f conftest.er1 |
|
|
5538 | cat conftest.err >&5 |
|
|
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5540 | (exit $ac_status); } && |
|
|
5541 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5543 | (eval $ac_try) 2>&5 |
|
|
5544 | ac_status=$? |
|
|
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5546 | (exit $ac_status); }; } && |
|
|
5547 | { ac_try='test -s conftest$ac_exeext' |
|
|
5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5549 | (eval $ac_try) 2>&5 |
|
|
5550 | ac_status=$? |
|
|
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5552 | (exit $ac_status); }; }; then |
|
|
5553 | ac_R_space=yes |
|
|
5554 | else |
|
|
5555 | echo "$as_me: failed program was:" >&5 |
|
|
5556 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5557 | |
|
|
5558 | ac_R_space=no |
|
|
5559 | fi |
|
|
5560 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5561 | conftest$ac_exeext conftest.$ac_ext |
|
|
5562 | if test $ac_R_space = yes; then |
|
|
5563 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5564 | echo "${ECHO_T}yes" >&6 |
|
|
5565 | X_LIBS="$X_LIBS -R $x_libraries" |
|
|
5566 | else |
|
|
5567 | echo "$as_me:$LINENO: result: neither works" >&5 |
|
|
5568 | echo "${ECHO_T}neither works" >&6 |
|
|
5569 | fi |
|
|
5570 | fi |
|
|
5571 | LIBS=$ac_xsave_LIBS |
|
|
5572 | esac |
|
|
5573 | fi |
|
|
5574 | |
|
|
5575 | # Check for system-dependent libraries X programs must link with. |
|
|
5576 | # Do this before checking for the system-independent R6 libraries |
|
|
5577 | # (-lICE), since we may need -lsocket or whatever for X linking. |
|
|
5578 | |
|
|
5579 | if test "$ISC" = yes; then |
|
|
5580 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
|
|
5581 | else |
|
|
5582 | # Martyn Johnson says this is needed for Ultrix, if the X |
|
|
5583 | # libraries were built with DECnet support. And Karl Berry says |
|
|
5584 | # the Alpha needs dnet_stub (dnet does not exist). |
|
|
5585 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
|
|
5586 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5587 | /* confdefs.h. */ |
|
|
5588 | _ACEOF |
|
|
5589 | cat confdefs.h >>conftest.$ac_ext |
|
|
5590 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5591 | /* end confdefs.h. */ |
|
|
5592 | |
|
|
5593 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5594 | #ifdef __cplusplus |
|
|
5595 | extern "C" |
|
|
5596 | #endif |
|
|
5597 | /* We use char because int might match the return type of a gcc2 |
|
|
5598 | builtin and then its argument prototype would still apply. */ |
|
|
5599 | char XOpenDisplay (); |
|
|
5600 | int |
|
|
5601 | main () |
|
|
5602 | { |
|
|
5603 | XOpenDisplay (); |
|
|
5604 | ; |
|
|
5605 | return 0; |
|
|
5606 | } |
|
|
5607 | _ACEOF |
|
|
5608 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5610 | (eval $ac_link) 2>conftest.er1 |
|
|
5611 | ac_status=$? |
|
|
5612 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5613 | rm -f conftest.er1 |
|
|
5614 | cat conftest.err >&5 |
|
|
5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5616 | (exit $ac_status); } && |
|
|
5617 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5619 | (eval $ac_try) 2>&5 |
|
|
5620 | ac_status=$? |
|
|
5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5622 | (exit $ac_status); }; } && |
|
|
5623 | { ac_try='test -s conftest$ac_exeext' |
|
|
5624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5625 | (eval $ac_try) 2>&5 |
|
|
5626 | ac_status=$? |
|
|
5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5628 | (exit $ac_status); }; }; then |
|
|
5629 | : |
|
|
5630 | else |
|
|
5631 | echo "$as_me: failed program was:" >&5 |
|
|
5632 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5633 | |
|
|
5634 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
|
|
5635 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
|
|
5636 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
|
|
5637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5638 | else |
|
|
5639 | ac_check_lib_save_LIBS=$LIBS |
|
|
5640 | LIBS="-ldnet $LIBS" |
|
|
5641 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5642 | /* confdefs.h. */ |
|
|
5643 | _ACEOF |
|
|
5644 | cat confdefs.h >>conftest.$ac_ext |
|
|
5645 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5646 | /* end confdefs.h. */ |
|
|
5647 | |
|
|
5648 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5649 | #ifdef __cplusplus |
|
|
5650 | extern "C" |
|
|
5651 | #endif |
|
|
5652 | /* We use char because int might match the return type of a gcc2 |
|
|
5653 | builtin and then its argument prototype would still apply. */ |
|
|
5654 | char dnet_ntoa (); |
|
|
5655 | int |
|
|
5656 | main () |
|
|
5657 | { |
|
|
5658 | dnet_ntoa (); |
|
|
5659 | ; |
|
|
5660 | return 0; |
|
|
5661 | } |
|
|
5662 | _ACEOF |
|
|
5663 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5665 | (eval $ac_link) 2>conftest.er1 |
|
|
5666 | ac_status=$? |
|
|
5667 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5668 | rm -f conftest.er1 |
|
|
5669 | cat conftest.err >&5 |
|
|
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5671 | (exit $ac_status); } && |
|
|
5672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5674 | (eval $ac_try) 2>&5 |
|
|
5675 | ac_status=$? |
|
|
5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5677 | (exit $ac_status); }; } && |
|
|
5678 | { ac_try='test -s conftest$ac_exeext' |
|
|
5679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5680 | (eval $ac_try) 2>&5 |
|
|
5681 | ac_status=$? |
|
|
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5683 | (exit $ac_status); }; }; then |
|
|
5684 | ac_cv_lib_dnet_dnet_ntoa=yes |
|
|
5685 | else |
|
|
5686 | echo "$as_me: failed program was:" >&5 |
|
|
5687 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5688 | |
|
|
5689 | ac_cv_lib_dnet_dnet_ntoa=no |
|
|
5690 | fi |
|
|
5691 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5692 | conftest$ac_exeext conftest.$ac_ext |
|
|
5693 | LIBS=$ac_check_lib_save_LIBS |
|
|
5694 | fi |
|
|
5695 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
|
|
5696 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
|
|
5697 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
|
|
5698 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
|
|
5699 | fi |
|
|
5700 | |
|
|
5701 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
|
|
5702 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
|
|
5703 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
|
|
5704 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
|
|
5705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5706 | else |
|
|
5707 | ac_check_lib_save_LIBS=$LIBS |
|
|
5708 | LIBS="-ldnet_stub $LIBS" |
|
|
5709 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5710 | /* confdefs.h. */ |
|
|
5711 | _ACEOF |
|
|
5712 | cat confdefs.h >>conftest.$ac_ext |
|
|
5713 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5714 | /* end confdefs.h. */ |
|
|
5715 | |
|
|
5716 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5717 | #ifdef __cplusplus |
|
|
5718 | extern "C" |
|
|
5719 | #endif |
|
|
5720 | /* We use char because int might match the return type of a gcc2 |
|
|
5721 | builtin and then its argument prototype would still apply. */ |
|
|
5722 | char dnet_ntoa (); |
|
|
5723 | int |
|
|
5724 | main () |
|
|
5725 | { |
|
|
5726 | dnet_ntoa (); |
|
|
5727 | ; |
|
|
5728 | return 0; |
|
|
5729 | } |
|
|
5730 | _ACEOF |
|
|
5731 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5733 | (eval $ac_link) 2>conftest.er1 |
|
|
5734 | ac_status=$? |
|
|
5735 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5736 | rm -f conftest.er1 |
|
|
5737 | cat conftest.err >&5 |
|
|
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5739 | (exit $ac_status); } && |
|
|
5740 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5742 | (eval $ac_try) 2>&5 |
|
|
5743 | ac_status=$? |
|
|
5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5745 | (exit $ac_status); }; } && |
|
|
5746 | { ac_try='test -s conftest$ac_exeext' |
|
|
5747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5748 | (eval $ac_try) 2>&5 |
|
|
5749 | ac_status=$? |
|
|
5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5751 | (exit $ac_status); }; }; then |
|
|
5752 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
|
|
5753 | else |
|
|
5754 | echo "$as_me: failed program was:" >&5 |
|
|
5755 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5756 | |
|
|
5757 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
|
|
5758 | fi |
|
|
5759 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5760 | conftest$ac_exeext conftest.$ac_ext |
|
|
5761 | LIBS=$ac_check_lib_save_LIBS |
|
|
5762 | fi |
|
|
5763 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
|
|
5764 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
|
|
5765 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
|
|
5766 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
|
|
5767 | fi |
|
|
5768 | |
|
|
5769 | fi |
|
|
5770 | fi |
|
|
5771 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5772 | conftest$ac_exeext conftest.$ac_ext |
|
|
5773 | LIBS="$ac_xsave_LIBS" |
|
|
5774 | |
|
|
5775 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
|
|
5776 | # to get the SysV transport functions. |
|
|
5777 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
|
|
5778 | # needs -lnsl. |
|
|
5779 | # The nsl library prevents programs from opening the X display |
|
|
5780 | # on Irix 5.2, according to T.E. Dickey. |
|
|
5781 | # The functions gethostbyname, getservbyname, and inet_addr are |
|
|
5782 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
|
|
5783 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
5784 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
5785 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5787 | else |
|
|
5788 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5789 | /* confdefs.h. */ |
|
|
5790 | _ACEOF |
|
|
5791 | cat confdefs.h >>conftest.$ac_ext |
|
|
5792 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5793 | /* end confdefs.h. */ |
|
|
5794 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
5795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5796 | #define gethostbyname innocuous_gethostbyname |
|
|
5797 | |
|
|
5798 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5799 | which can conflict with char gethostbyname (); below. |
|
|
5800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5801 | <limits.h> exists even on freestanding compilers. */ |
|
|
5802 | |
|
|
5803 | #ifdef __STDC__ |
|
|
5804 | # include <limits.h> |
|
|
5805 | #else |
|
|
5806 | # include <assert.h> |
|
|
5807 | #endif |
|
|
5808 | |
|
|
5809 | #undef gethostbyname |
|
|
5810 | |
|
|
5811 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5812 | #ifdef __cplusplus |
|
|
5813 | extern "C" |
|
|
5814 | { |
|
|
5815 | #endif |
|
|
5816 | /* We use char because int might match the return type of a gcc2 |
|
|
5817 | builtin and then its argument prototype would still apply. */ |
|
|
5818 | char gethostbyname (); |
|
|
5819 | /* The GNU C library defines this for functions which it implements |
|
|
5820 | to always fail with ENOSYS. Some functions are actually named |
|
|
5821 | something starting with __ and the normal name is an alias. */ |
|
|
5822 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
5823 | choke me |
|
|
5824 | #else |
|
|
5825 | char (*f) () = gethostbyname; |
|
|
5826 | #endif |
|
|
5827 | #ifdef __cplusplus |
|
|
5828 | } |
|
|
5829 | #endif |
|
|
5830 | |
|
|
5831 | int |
|
|
5832 | main () |
|
|
5833 | { |
|
|
5834 | return f != gethostbyname; |
|
|
5835 | ; |
|
|
5836 | return 0; |
|
|
5837 | } |
|
|
5838 | _ACEOF |
|
|
5839 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5841 | (eval $ac_link) 2>conftest.er1 |
|
|
5842 | ac_status=$? |
|
|
5843 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5844 | rm -f conftest.er1 |
|
|
5845 | cat conftest.err >&5 |
|
|
5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5847 | (exit $ac_status); } && |
|
|
5848 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5850 | (eval $ac_try) 2>&5 |
|
|
5851 | ac_status=$? |
|
|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5853 | (exit $ac_status); }; } && |
|
|
5854 | { ac_try='test -s conftest$ac_exeext' |
|
|
5855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5856 | (eval $ac_try) 2>&5 |
|
|
5857 | ac_status=$? |
|
|
5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5859 | (exit $ac_status); }; }; then |
|
|
5860 | ac_cv_func_gethostbyname=yes |
|
|
5861 | else |
|
|
5862 | echo "$as_me: failed program was:" >&5 |
|
|
5863 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5864 | |
|
|
5865 | ac_cv_func_gethostbyname=no |
|
|
5866 | fi |
|
|
5867 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5868 | conftest$ac_exeext conftest.$ac_ext |
|
|
5869 | fi |
|
|
5870 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
5871 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
5872 | |
|
|
5873 | if test $ac_cv_func_gethostbyname = no; then |
|
|
5874 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
5875 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
|
|
5876 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5878 | else |
|
|
5879 | ac_check_lib_save_LIBS=$LIBS |
|
|
5880 | LIBS="-lnsl $LIBS" |
|
|
5881 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5882 | /* confdefs.h. */ |
|
|
5883 | _ACEOF |
|
|
5884 | cat confdefs.h >>conftest.$ac_ext |
|
|
5885 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5886 | /* end confdefs.h. */ |
|
|
5887 | |
|
|
5888 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5889 | #ifdef __cplusplus |
|
|
5890 | extern "C" |
|
|
5891 | #endif |
|
|
5892 | /* We use char because int might match the return type of a gcc2 |
|
|
5893 | builtin and then its argument prototype would still apply. */ |
|
|
5894 | char gethostbyname (); |
|
|
5895 | int |
|
|
5896 | main () |
|
|
5897 | { |
|
|
5898 | gethostbyname (); |
|
|
5899 | ; |
|
|
5900 | return 0; |
|
|
5901 | } |
|
|
5902 | _ACEOF |
|
|
5903 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5905 | (eval $ac_link) 2>conftest.er1 |
|
|
5906 | ac_status=$? |
|
|
5907 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5908 | rm -f conftest.er1 |
|
|
5909 | cat conftest.err >&5 |
|
|
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5911 | (exit $ac_status); } && |
|
|
5912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5914 | (eval $ac_try) 2>&5 |
|
|
5915 | ac_status=$? |
|
|
5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5917 | (exit $ac_status); }; } && |
|
|
5918 | { ac_try='test -s conftest$ac_exeext' |
|
|
5919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5920 | (eval $ac_try) 2>&5 |
|
|
5921 | ac_status=$? |
|
|
5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5923 | (exit $ac_status); }; }; then |
|
|
5924 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
5925 | else |
|
|
5926 | echo "$as_me: failed program was:" >&5 |
|
|
5927 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5928 | |
|
|
5929 | ac_cv_lib_nsl_gethostbyname=no |
|
|
5930 | fi |
|
|
5931 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5932 | conftest$ac_exeext conftest.$ac_ext |
|
|
5933 | LIBS=$ac_check_lib_save_LIBS |
|
|
5934 | fi |
|
|
5935 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
5936 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
|
|
5937 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
5938 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
5939 | fi |
|
|
5940 | |
|
|
5941 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
|
|
5942 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
|
|
5943 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
|
|
5944 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
|
|
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5946 | else |
|
|
5947 | ac_check_lib_save_LIBS=$LIBS |
|
|
5948 | LIBS="-lbsd $LIBS" |
|
|
5949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5950 | /* confdefs.h. */ |
|
|
5951 | _ACEOF |
|
|
5952 | cat confdefs.h >>conftest.$ac_ext |
|
|
5953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5954 | /* end confdefs.h. */ |
|
|
5955 | |
|
|
5956 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5957 | #ifdef __cplusplus |
|
|
5958 | extern "C" |
|
|
5959 | #endif |
|
|
5960 | /* We use char because int might match the return type of a gcc2 |
|
|
5961 | builtin and then its argument prototype would still apply. */ |
|
|
5962 | char gethostbyname (); |
|
|
5963 | int |
|
|
5964 | main () |
|
|
5965 | { |
|
|
5966 | gethostbyname (); |
|
|
5967 | ; |
|
|
5968 | return 0; |
|
|
5969 | } |
|
|
5970 | _ACEOF |
|
|
5971 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5973 | (eval $ac_link) 2>conftest.er1 |
|
|
5974 | ac_status=$? |
|
|
5975 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5976 | rm -f conftest.er1 |
|
|
5977 | cat conftest.err >&5 |
|
|
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5979 | (exit $ac_status); } && |
|
|
5980 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5982 | (eval $ac_try) 2>&5 |
|
|
5983 | ac_status=$? |
|
|
5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5985 | (exit $ac_status); }; } && |
|
|
5986 | { ac_try='test -s conftest$ac_exeext' |
|
|
5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5988 | (eval $ac_try) 2>&5 |
|
|
5989 | ac_status=$? |
|
|
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5991 | (exit $ac_status); }; }; then |
|
|
5992 | ac_cv_lib_bsd_gethostbyname=yes |
|
|
5993 | else |
|
|
5994 | echo "$as_me: failed program was:" >&5 |
|
|
5995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5996 | |
|
|
5997 | ac_cv_lib_bsd_gethostbyname=no |
|
|
5998 | fi |
|
|
5999 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6000 | conftest$ac_exeext conftest.$ac_ext |
|
|
6001 | LIBS=$ac_check_lib_save_LIBS |
|
|
6002 | fi |
|
|
6003 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
|
|
6004 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
|
|
6005 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
|
|
6006 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
|
|
6007 | fi |
|
|
6008 | |
|
|
6009 | fi |
|
|
6010 | fi |
|
|
6011 | |
|
|
6012 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
|
|
6013 | # socket/setsockopt and other routines are undefined under SCO ODT |
|
|
6014 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
|
|
6015 | # on later versions), says Simon Leinen: it contains gethostby* |
|
|
6016 | # variants that don't use the name server (or something). -lsocket |
|
|
6017 | # must be given before -lnsl if both are needed. We assume that |
|
|
6018 | # if connect needs -lnsl, so does gethostbyname. |
|
|
6019 | echo "$as_me:$LINENO: checking for connect" >&5 |
|
|
6020 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
|
|
6021 | if test "${ac_cv_func_connect+set}" = set; then |
|
|
6022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6023 | else |
|
|
6024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6025 | /* confdefs.h. */ |
|
|
6026 | _ACEOF |
|
|
6027 | cat confdefs.h >>conftest.$ac_ext |
|
|
6028 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6029 | /* end confdefs.h. */ |
|
|
6030 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
|
|
6031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6032 | #define connect innocuous_connect |
|
|
6033 | |
|
|
6034 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6035 | which can conflict with char connect (); below. |
|
|
6036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6037 | <limits.h> exists even on freestanding compilers. */ |
|
|
6038 | |
|
|
6039 | #ifdef __STDC__ |
|
|
6040 | # include <limits.h> |
|
|
6041 | #else |
|
|
6042 | # include <assert.h> |
|
|
6043 | #endif |
|
|
6044 | |
|
|
6045 | #undef connect |
|
|
6046 | |
|
|
6047 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6048 | #ifdef __cplusplus |
|
|
6049 | extern "C" |
|
|
6050 | { |
|
|
6051 | #endif |
|
|
6052 | /* We use char because int might match the return type of a gcc2 |
|
|
6053 | builtin and then its argument prototype would still apply. */ |
|
|
6054 | char connect (); |
|
|
6055 | /* The GNU C library defines this for functions which it implements |
|
|
6056 | to always fail with ENOSYS. Some functions are actually named |
|
|
6057 | something starting with __ and the normal name is an alias. */ |
|
|
6058 | #if defined (__stub_connect) || defined (__stub___connect) |
|
|
6059 | choke me |
|
|
6060 | #else |
|
|
6061 | char (*f) () = connect; |
|
|
6062 | #endif |
|
|
6063 | #ifdef __cplusplus |
|
|
6064 | } |
|
|
6065 | #endif |
|
|
6066 | |
|
|
6067 | int |
|
|
6068 | main () |
|
|
6069 | { |
|
|
6070 | return f != connect; |
|
|
6071 | ; |
|
|
6072 | return 0; |
|
|
6073 | } |
|
|
6074 | _ACEOF |
|
|
6075 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6077 | (eval $ac_link) 2>conftest.er1 |
|
|
6078 | ac_status=$? |
|
|
6079 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6080 | rm -f conftest.er1 |
|
|
6081 | cat conftest.err >&5 |
|
|
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6083 | (exit $ac_status); } && |
|
|
6084 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6086 | (eval $ac_try) 2>&5 |
|
|
6087 | ac_status=$? |
|
|
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6089 | (exit $ac_status); }; } && |
|
|
6090 | { ac_try='test -s conftest$ac_exeext' |
|
|
6091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6092 | (eval $ac_try) 2>&5 |
|
|
6093 | ac_status=$? |
|
|
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6095 | (exit $ac_status); }; }; then |
|
|
6096 | ac_cv_func_connect=yes |
|
|
6097 | else |
|
|
6098 | echo "$as_me: failed program was:" >&5 |
|
|
6099 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6100 | |
|
|
6101 | ac_cv_func_connect=no |
|
|
6102 | fi |
|
|
6103 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6104 | conftest$ac_exeext conftest.$ac_ext |
|
|
6105 | fi |
|
|
6106 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
6107 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
|
6108 | |
|
|
6109 | if test $ac_cv_func_connect = no; then |
|
|
6110 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
|
|
6111 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
|
|
6112 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
|
|
6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6114 | else |
|
|
6115 | ac_check_lib_save_LIBS=$LIBS |
|
|
6116 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
|
|
6117 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6118 | /* confdefs.h. */ |
|
|
6119 | _ACEOF |
|
|
6120 | cat confdefs.h >>conftest.$ac_ext |
|
|
6121 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6122 | /* end confdefs.h. */ |
|
|
6123 | |
|
|
6124 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6125 | #ifdef __cplusplus |
|
|
6126 | extern "C" |
|
|
6127 | #endif |
|
|
6128 | /* We use char because int might match the return type of a gcc2 |
|
|
6129 | builtin and then its argument prototype would still apply. */ |
|
|
6130 | char connect (); |
|
|
6131 | int |
|
|
6132 | main () |
|
|
6133 | { |
|
|
6134 | connect (); |
|
|
6135 | ; |
|
|
6136 | return 0; |
|
|
6137 | } |
|
|
6138 | _ACEOF |
|
|
6139 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6141 | (eval $ac_link) 2>conftest.er1 |
|
|
6142 | ac_status=$? |
|
|
6143 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6144 | rm -f conftest.er1 |
|
|
6145 | cat conftest.err >&5 |
|
|
6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6147 | (exit $ac_status); } && |
|
|
6148 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6150 | (eval $ac_try) 2>&5 |
|
|
6151 | ac_status=$? |
|
|
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6153 | (exit $ac_status); }; } && |
|
|
6154 | { ac_try='test -s conftest$ac_exeext' |
|
|
6155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6156 | (eval $ac_try) 2>&5 |
|
|
6157 | ac_status=$? |
|
|
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6159 | (exit $ac_status); }; }; then |
|
|
6160 | ac_cv_lib_socket_connect=yes |
|
|
6161 | else |
|
|
6162 | echo "$as_me: failed program was:" >&5 |
|
|
6163 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6164 | |
|
|
6165 | ac_cv_lib_socket_connect=no |
|
|
6166 | fi |
|
|
6167 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6168 | conftest$ac_exeext conftest.$ac_ext |
|
|
6169 | LIBS=$ac_check_lib_save_LIBS |
|
|
6170 | fi |
|
|
6171 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
|
|
6172 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
|
|
6173 | if test $ac_cv_lib_socket_connect = yes; then |
|
|
6174 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
|
6175 | fi |
|
|
6176 | |
|
|
6177 | fi |
|
|
6178 | |
|
|
6179 | # Guillermo Gomez says -lposix is necessary on A/UX. |
|
|
6180 | echo "$as_me:$LINENO: checking for remove" >&5 |
|
|
6181 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
|
|
6182 | if test "${ac_cv_func_remove+set}" = set; then |
|
|
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6184 | else |
|
|
6185 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6186 | /* confdefs.h. */ |
|
|
6187 | _ACEOF |
|
|
6188 | cat confdefs.h >>conftest.$ac_ext |
|
|
6189 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6190 | /* end confdefs.h. */ |
|
|
6191 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
|
|
6192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6193 | #define remove innocuous_remove |
|
|
6194 | |
|
|
6195 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6196 | which can conflict with char remove (); below. |
|
|
6197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6198 | <limits.h> exists even on freestanding compilers. */ |
|
|
6199 | |
|
|
6200 | #ifdef __STDC__ |
|
|
6201 | # include <limits.h> |
|
|
6202 | #else |
|
|
6203 | # include <assert.h> |
|
|
6204 | #endif |
|
|
6205 | |
|
|
6206 | #undef remove |
|
|
6207 | |
|
|
6208 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6209 | #ifdef __cplusplus |
|
|
6210 | extern "C" |
|
|
6211 | { |
|
|
6212 | #endif |
|
|
6213 | /* We use char because int might match the return type of a gcc2 |
|
|
6214 | builtin and then its argument prototype would still apply. */ |
|
|
6215 | char remove (); |
|
|
6216 | /* The GNU C library defines this for functions which it implements |
|
|
6217 | to always fail with ENOSYS. Some functions are actually named |
|
|
6218 | something starting with __ and the normal name is an alias. */ |
|
|
6219 | #if defined (__stub_remove) || defined (__stub___remove) |
|
|
6220 | choke me |
|
|
6221 | #else |
|
|
6222 | char (*f) () = remove; |
|
|
6223 | #endif |
|
|
6224 | #ifdef __cplusplus |
|
|
6225 | } |
|
|
6226 | #endif |
|
|
6227 | |
|
|
6228 | int |
|
|
6229 | main () |
|
|
6230 | { |
|
|
6231 | return f != remove; |
|
|
6232 | ; |
|
|
6233 | return 0; |
|
|
6234 | } |
|
|
6235 | _ACEOF |
|
|
6236 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6238 | (eval $ac_link) 2>conftest.er1 |
|
|
6239 | ac_status=$? |
|
|
6240 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6241 | rm -f conftest.er1 |
|
|
6242 | cat conftest.err >&5 |
|
|
6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6244 | (exit $ac_status); } && |
|
|
6245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6247 | (eval $ac_try) 2>&5 |
|
|
6248 | ac_status=$? |
|
|
6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6250 | (exit $ac_status); }; } && |
|
|
6251 | { ac_try='test -s conftest$ac_exeext' |
|
|
6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6253 | (eval $ac_try) 2>&5 |
|
|
6254 | ac_status=$? |
|
|
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6256 | (exit $ac_status); }; }; then |
|
|
6257 | ac_cv_func_remove=yes |
|
|
6258 | else |
|
|
6259 | echo "$as_me: failed program was:" >&5 |
|
|
6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6261 | |
|
|
6262 | ac_cv_func_remove=no |
|
|
6263 | fi |
|
|
6264 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6265 | conftest$ac_exeext conftest.$ac_ext |
|
|
6266 | fi |
|
|
6267 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
6268 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
|
|
6269 | |
|
|
6270 | if test $ac_cv_func_remove = no; then |
|
|
6271 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
|
|
6272 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
|
|
6273 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
|
|
6274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6275 | else |
|
|
6276 | ac_check_lib_save_LIBS=$LIBS |
|
|
6277 | LIBS="-lposix $LIBS" |
|
|
6278 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6279 | /* confdefs.h. */ |
|
|
6280 | _ACEOF |
|
|
6281 | cat confdefs.h >>conftest.$ac_ext |
|
|
6282 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6283 | /* end confdefs.h. */ |
|
|
6284 | |
|
|
6285 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6286 | #ifdef __cplusplus |
|
|
6287 | extern "C" |
|
|
6288 | #endif |
|
|
6289 | /* We use char because int might match the return type of a gcc2 |
|
|
6290 | builtin and then its argument prototype would still apply. */ |
|
|
6291 | char remove (); |
|
|
6292 | int |
|
|
6293 | main () |
|
|
6294 | { |
|
|
6295 | remove (); |
|
|
6296 | ; |
|
|
6297 | return 0; |
|
|
6298 | } |
|
|
6299 | _ACEOF |
|
|
6300 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6302 | (eval $ac_link) 2>conftest.er1 |
|
|
6303 | ac_status=$? |
|
|
6304 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6305 | rm -f conftest.er1 |
|
|
6306 | cat conftest.err >&5 |
|
|
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6308 | (exit $ac_status); } && |
|
|
6309 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6311 | (eval $ac_try) 2>&5 |
|
|
6312 | ac_status=$? |
|
|
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6314 | (exit $ac_status); }; } && |
|
|
6315 | { ac_try='test -s conftest$ac_exeext' |
|
|
6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6317 | (eval $ac_try) 2>&5 |
|
|
6318 | ac_status=$? |
|
|
6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6320 | (exit $ac_status); }; }; then |
|
|
6321 | ac_cv_lib_posix_remove=yes |
|
|
6322 | else |
|
|
6323 | echo "$as_me: failed program was:" >&5 |
|
|
6324 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6325 | |
|
|
6326 | ac_cv_lib_posix_remove=no |
|
|
6327 | fi |
|
|
6328 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6329 | conftest$ac_exeext conftest.$ac_ext |
|
|
6330 | LIBS=$ac_check_lib_save_LIBS |
|
|
6331 | fi |
|
|
6332 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
|
6333 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
|
|
6334 | if test $ac_cv_lib_posix_remove = yes; then |
|
|
6335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
|
6336 | fi |
|
|
6337 | |
|
|
6338 | fi |
|
|
6339 | |
|
|
6340 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
|
|
6341 | echo "$as_me:$LINENO: checking for shmat" >&5 |
|
|
6342 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
|
|
6343 | if test "${ac_cv_func_shmat+set}" = set; then |
|
|
6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6345 | else |
|
|
6346 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6347 | /* confdefs.h. */ |
|
|
6348 | _ACEOF |
|
|
6349 | cat confdefs.h >>conftest.$ac_ext |
|
|
6350 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6351 | /* end confdefs.h. */ |
|
|
6352 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
|
|
6353 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6354 | #define shmat innocuous_shmat |
|
|
6355 | |
|
|
6356 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6357 | which can conflict with char shmat (); below. |
|
|
6358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6359 | <limits.h> exists even on freestanding compilers. */ |
|
|
6360 | |
|
|
6361 | #ifdef __STDC__ |
|
|
6362 | # include <limits.h> |
|
|
6363 | #else |
|
|
6364 | # include <assert.h> |
|
|
6365 | #endif |
|
|
6366 | |
|
|
6367 | #undef shmat |
|
|
6368 | |
|
|
6369 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6370 | #ifdef __cplusplus |
|
|
6371 | extern "C" |
|
|
6372 | { |
|
|
6373 | #endif |
|
|
6374 | /* We use char because int might match the return type of a gcc2 |
|
|
6375 | builtin and then its argument prototype would still apply. */ |
|
|
6376 | char shmat (); |
|
|
6377 | /* The GNU C library defines this for functions which it implements |
|
|
6378 | to always fail with ENOSYS. Some functions are actually named |
|
|
6379 | something starting with __ and the normal name is an alias. */ |
|
|
6380 | #if defined (__stub_shmat) || defined (__stub___shmat) |
|
|
6381 | choke me |
|
|
6382 | #else |
|
|
6383 | char (*f) () = shmat; |
|
|
6384 | #endif |
|
|
6385 | #ifdef __cplusplus |
|
|
6386 | } |
|
|
6387 | #endif |
|
|
6388 | |
|
|
6389 | int |
|
|
6390 | main () |
|
|
6391 | { |
|
|
6392 | return f != shmat; |
|
|
6393 | ; |
|
|
6394 | return 0; |
|
|
6395 | } |
|
|
6396 | _ACEOF |
|
|
6397 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6399 | (eval $ac_link) 2>conftest.er1 |
|
|
6400 | ac_status=$? |
|
|
6401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6402 | rm -f conftest.er1 |
|
|
6403 | cat conftest.err >&5 |
|
|
6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6405 | (exit $ac_status); } && |
|
|
6406 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6408 | (eval $ac_try) 2>&5 |
|
|
6409 | ac_status=$? |
|
|
6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6411 | (exit $ac_status); }; } && |
|
|
6412 | { ac_try='test -s conftest$ac_exeext' |
|
|
6413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6414 | (eval $ac_try) 2>&5 |
|
|
6415 | ac_status=$? |
|
|
6416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6417 | (exit $ac_status); }; }; then |
|
|
6418 | ac_cv_func_shmat=yes |
|
|
6419 | else |
|
|
6420 | echo "$as_me: failed program was:" >&5 |
|
|
6421 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6422 | |
|
|
6423 | ac_cv_func_shmat=no |
|
|
6424 | fi |
|
|
6425 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6426 | conftest$ac_exeext conftest.$ac_ext |
|
|
6427 | fi |
|
|
6428 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
6429 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
|
|
6430 | |
|
|
6431 | if test $ac_cv_func_shmat = no; then |
|
|
6432 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
|
|
6433 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
|
|
6434 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
|
|
6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6436 | else |
|
|
6437 | ac_check_lib_save_LIBS=$LIBS |
|
|
6438 | LIBS="-lipc $LIBS" |
|
|
6439 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6440 | /* confdefs.h. */ |
|
|
6441 | _ACEOF |
|
|
6442 | cat confdefs.h >>conftest.$ac_ext |
|
|
6443 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6444 | /* end confdefs.h. */ |
|
|
6445 | |
|
|
6446 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6447 | #ifdef __cplusplus |
|
|
6448 | extern "C" |
|
|
6449 | #endif |
|
|
6450 | /* We use char because int might match the return type of a gcc2 |
|
|
6451 | builtin and then its argument prototype would still apply. */ |
|
|
6452 | char shmat (); |
|
|
6453 | int |
|
|
6454 | main () |
|
|
6455 | { |
|
|
6456 | shmat (); |
|
|
6457 | ; |
|
|
6458 | return 0; |
|
|
6459 | } |
|
|
6460 | _ACEOF |
|
|
6461 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6463 | (eval $ac_link) 2>conftest.er1 |
|
|
6464 | ac_status=$? |
|
|
6465 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6466 | rm -f conftest.er1 |
|
|
6467 | cat conftest.err >&5 |
|
|
6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6469 | (exit $ac_status); } && |
|
|
6470 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6472 | (eval $ac_try) 2>&5 |
|
|
6473 | ac_status=$? |
|
|
6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6475 | (exit $ac_status); }; } && |
|
|
6476 | { ac_try='test -s conftest$ac_exeext' |
|
|
6477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6478 | (eval $ac_try) 2>&5 |
|
|
6479 | ac_status=$? |
|
|
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6481 | (exit $ac_status); }; }; then |
|
|
6482 | ac_cv_lib_ipc_shmat=yes |
|
|
6483 | else |
|
|
6484 | echo "$as_me: failed program was:" >&5 |
|
|
6485 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6486 | |
|
|
6487 | ac_cv_lib_ipc_shmat=no |
|
|
6488 | fi |
|
|
6489 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6490 | conftest$ac_exeext conftest.$ac_ext |
|
|
6491 | LIBS=$ac_check_lib_save_LIBS |
|
|
6492 | fi |
|
|
6493 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
|
|
6494 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
|
|
6495 | if test $ac_cv_lib_ipc_shmat = yes; then |
|
|
6496 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
|
|
6497 | fi |
|
|
6498 | |
|
|
6499 | fi |
|
|
6500 | fi |
|
|
6501 | |
|
|
6502 | # Check for libraries that X11R6 Xt/Xaw programs need. |
|
|
6503 | ac_save_LDFLAGS=$LDFLAGS |
|
|
6504 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
|
|
6505 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
|
|
6506 | # check for ICE first), but we must link in the order -lSM -lICE or |
|
|
6507 | # we get undefined symbols. So assume we have SM if we have ICE. |
|
|
6508 | # These have to be linked with before -lX11, unlike the other |
|
|
6509 | # libraries we check for below, so use a different variable. |
|
|
6510 | # John Interrante, Karl Berry |
|
|
6511 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
|
|
6512 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
|
|
6513 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
|
|
6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6515 | else |
|
|
6516 | ac_check_lib_save_LIBS=$LIBS |
|
|
6517 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
|
|
6518 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6519 | /* confdefs.h. */ |
|
|
6520 | _ACEOF |
|
|
6521 | cat confdefs.h >>conftest.$ac_ext |
|
|
6522 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6523 | /* end confdefs.h. */ |
|
|
6524 | |
|
|
6525 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6526 | #ifdef __cplusplus |
|
|
6527 | extern "C" |
|
|
6528 | #endif |
|
|
6529 | /* We use char because int might match the return type of a gcc2 |
|
|
6530 | builtin and then its argument prototype would still apply. */ |
|
|
6531 | char IceConnectionNumber (); |
|
|
6532 | int |
|
|
6533 | main () |
|
|
6534 | { |
|
|
6535 | IceConnectionNumber (); |
|
|
6536 | ; |
|
|
6537 | return 0; |
|
|
6538 | } |
|
|
6539 | _ACEOF |
|
|
6540 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6542 | (eval $ac_link) 2>conftest.er1 |
|
|
6543 | ac_status=$? |
|
|
6544 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6545 | rm -f conftest.er1 |
|
|
6546 | cat conftest.err >&5 |
|
|
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6548 | (exit $ac_status); } && |
|
|
6549 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6551 | (eval $ac_try) 2>&5 |
|
|
6552 | ac_status=$? |
|
|
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6554 | (exit $ac_status); }; } && |
|
|
6555 | { ac_try='test -s conftest$ac_exeext' |
|
|
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6557 | (eval $ac_try) 2>&5 |
|
|
6558 | ac_status=$? |
|
|
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6560 | (exit $ac_status); }; }; then |
|
|
6561 | ac_cv_lib_ICE_IceConnectionNumber=yes |
|
|
6562 | else |
|
|
6563 | echo "$as_me: failed program was:" >&5 |
|
|
6564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6565 | |
|
|
6566 | ac_cv_lib_ICE_IceConnectionNumber=no |
|
|
6567 | fi |
|
|
6568 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6569 | conftest$ac_exeext conftest.$ac_ext |
|
|
6570 | LIBS=$ac_check_lib_save_LIBS |
|
|
6571 | fi |
|
|
6572 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
|
|
6573 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
|
|
6574 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
|
|
6575 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
|
|
6576 | fi |
|
|
6577 | |
|
|
6578 | LDFLAGS=$ac_save_LDFLAGS |
|
|
6579 | |
|
|
6580 | fi |
|
|
6581 | |
|
|
6582 | |
|
|
6583 | |
|
|
6584 | if test x$support_xpm = xyes; then |
|
|
6585 | |
|
|
6586 | |
|
|
6587 | |
|
|
6588 | # Initialize some more variables set by options. |
|
|
6589 | # The variables have the same names as the options, with |
|
|
6590 | # dashes changed to underlines. |
|
|
6591 | |
|
|
6592 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6593 | # paths, otherwise set no_xpm=yes. |
|
|
6594 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6595 | echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6596 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6 |
|
|
6597 | |
|
|
6598 | |
|
|
6599 | # Check whether --with-xpm_includes or --without-xpm_includes was given. |
|
|
6600 | if test "${with_xpm_includes+set}" = set; then |
|
|
6601 | withval="$with_xpm_includes" |
|
|
6602 | xpm_includes="$withval" |
|
|
6603 | else |
|
|
6604 | xpm_includes=NO |
|
|
6605 | fi; |
|
|
6606 | |
|
|
6607 | # Check whether --with-xpm_library or --without-xpm_library was given. |
|
|
6608 | if test "${with_xpm_library+set}" = set; then |
|
|
6609 | withval="$with_xpm_library" |
|
|
6610 | xpm_libraries="$withval" |
|
|
6611 | else |
|
|
6612 | xpm_libraries=NO |
|
|
6613 | fi; |
|
|
6614 | |
|
|
6615 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6616 | |
|
|
6617 | # Check whether --with-xpm or --without-xpm was given. |
|
|
6618 | if test "${with_xpm+set}" = set; then |
|
|
6619 | withval="$with_xpm" |
|
|
6620 | |
|
|
6621 | fi; |
|
|
6622 | if test "$with_xpm" = no; then |
|
|
6623 | have_xpm=disabled |
|
|
6624 | else |
|
|
6625 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6627 | else |
|
|
6628 | |
|
|
6629 | vt_xpm_include_X11=no |
|
|
6630 | if test -n "$xpm_includes"; then |
|
|
6631 | vt_xpm_includes=$xpm_includes |
|
|
6632 | else |
|
|
6633 | vt_xpm_includes=NO |
|
|
6634 | fi |
|
|
6635 | if test -n "$xpm_libraries"; then |
|
|
6636 | vt_xpm_libraries=$xpm_libraries |
|
|
6637 | else |
|
|
6638 | vt_xpm_libraries=NO |
|
|
6639 | fi |
|
|
6640 | |
|
|
6641 | if test "$vt_xpm_includes" = NO; then |
|
|
6642 | # Guess where to find xpm.h |
|
|
6643 | |
|
|
6644 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6645 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6646 | |
|
|
6647 | # First, try using that file with no special directory specified. |
|
|
6648 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6649 | /* confdefs.h. */ |
|
|
6650 | _ACEOF |
|
|
6651 | cat confdefs.h >>conftest.$ac_ext |
|
|
6652 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6653 | /* end confdefs.h. */ |
|
|
6654 | #include <X11/xpm.h> |
|
|
6655 | _ACEOF |
|
|
6656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
6657 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
6658 | ac_status=$? |
|
|
6659 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6660 | rm -f conftest.er1 |
|
|
6661 | cat conftest.err >&5 |
|
|
6662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6663 | (exit $ac_status); } >/dev/null; then |
|
|
6664 | if test -s conftest.err; then |
|
|
6665 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
6666 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
6667 | else |
|
|
6668 | ac_cpp_err= |
|
|
6669 | fi |
|
|
6670 | else |
|
|
6671 | ac_cpp_err=yes |
|
|
6672 | fi |
|
|
6673 | if test -z "$ac_cpp_err"; then |
|
|
6674 | # We can compile using X headers with no special include directory. |
|
|
6675 | vt_xpm_includes= |
|
|
6676 | vt_xpm_include_X11=yes |
|
|
6677 | else |
|
|
6678 | echo "$as_me: failed program was:" >&5 |
|
|
6679 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6680 | |
|
|
6681 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6682 | # Look for the header file in a standard set of common directories. |
|
|
6683 | for ac_dir in \ |
|
|
6684 | /usr/X11/include \ |
|
|
6685 | /usr/X11R6/include \ |
|
|
6686 | /usr/X11R5/include \ |
|
|
6687 | /usr/X11R4/include \ |
|
|
6688 | \ |
|
|
6689 | /usr/include/X11 \ |
|
|
6690 | /usr/include/X11R6 \ |
|
|
6691 | /usr/include/X11R5 \ |
|
|
6692 | /usr/include/X11R4 \ |
|
|
6693 | \ |
|
|
6694 | /usr/local/X11/include \ |
|
|
6695 | /usr/local/X11R6/include \ |
|
|
6696 | /usr/local/X11R5/include \ |
|
|
6697 | /usr/local/X11R4/include \ |
|
|
6698 | \ |
|
|
6699 | /usr/local/include/X11 \ |
|
|
6700 | /usr/local/include/X11R6 \ |
|
|
6701 | /usr/local/include/X11R5 \ |
|
|
6702 | /usr/local/include/X11R4 \ |
|
|
6703 | \ |
|
|
6704 | /usr/X386/include \ |
|
|
6705 | /usr/x386/include \ |
|
|
6706 | /usr/XFree86/include/X11 \ |
|
|
6707 | \ |
|
|
6708 | /usr/include \ |
|
|
6709 | /usr/local/include \ |
|
|
6710 | /usr/unsupported/include \ |
|
|
6711 | /usr/athena/include \ |
|
|
6712 | /usr/local/x11r5/include \ |
|
|
6713 | /usr/lpp/Xamples/include \ |
|
|
6714 | \ |
|
|
6715 | /usr/openwin/include \ |
|
|
6716 | /usr/openwin/share/include \ |
|
|
6717 | ; \ |
|
|
6718 | do |
|
|
6719 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6720 | vt_xpm_includes="$ac_dir" |
|
|
6721 | vt_xpm_include_X11=yes |
|
|
6722 | break |
|
|
6723 | else |
|
|
6724 | if test -r "$ac_dir/xpm.h"; then |
|
|
6725 | vt_xpm_includes=$ac_dir |
|
|
6726 | break |
|
|
6727 | fi |
|
|
6728 | fi |
|
|
6729 | done |
|
|
6730 | fi |
|
|
6731 | rm -f conftest.err conftest.$ac_ext |
|
|
6732 | fi |
|
|
6733 | |
|
|
6734 | if test "$vt_xpm_libraries" = NO; then |
|
|
6735 | # Check for the libraries. |
|
|
6736 | |
|
|
6737 | # See if we find them without any special options. |
|
|
6738 | # Don't add to $LIBS permanently. |
|
|
6739 | ac_save_LIBS="$LIBS" |
|
|
6740 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6741 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6742 | /* confdefs.h. */ |
|
|
6743 | _ACEOF |
|
|
6744 | cat confdefs.h >>conftest.$ac_ext |
|
|
6745 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6746 | /* end confdefs.h. */ |
|
|
6747 | |
|
|
6748 | int |
|
|
6749 | main () |
|
|
6750 | { |
|
|
6751 | XpmReadFileToPixmap() |
|
|
6752 | ; |
|
|
6753 | return 0; |
|
|
6754 | } |
|
|
6755 | _ACEOF |
|
|
6756 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6758 | (eval $ac_link) 2>conftest.er1 |
|
|
6759 | ac_status=$? |
|
|
6760 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6761 | rm -f conftest.er1 |
|
|
6762 | cat conftest.err >&5 |
|
|
6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6764 | (exit $ac_status); } && |
|
|
6765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6767 | (eval $ac_try) 2>&5 |
|
|
6768 | ac_status=$? |
|
|
6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6770 | (exit $ac_status); }; } && |
|
|
6771 | { ac_try='test -s conftest$ac_exeext' |
|
|
6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6773 | (eval $ac_try) 2>&5 |
|
|
6774 | ac_status=$? |
|
|
6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6776 | (exit $ac_status); }; }; then |
|
|
6777 | LIBS="$ac_save_LIBS" |
|
|
6778 | # We can link libXpm with no special library path. |
|
|
6779 | vt_xpm_libraries= |
|
|
6780 | else |
|
|
6781 | echo "$as_me: failed program was:" >&5 |
|
|
6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6783 | |
|
|
6784 | LIBS="$ac_save_LIBS" |
|
|
6785 | # First see if replacing the include by lib works. |
|
|
6786 | for ac_dir in \ |
|
|
6787 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6788 | /usr/X11/lib \ |
|
|
6789 | /usr/X11R6/lib \ |
|
|
6790 | /usr/X11R5/lib \ |
|
|
6791 | /usr/X11R4/lib \ |
|
|
6792 | \ |
|
|
6793 | /usr/lib/X11 \ |
|
|
6794 | /usr/lib/X11R6 \ |
|
|
6795 | /usr/lib/X11R5 \ |
|
|
6796 | /usr/lib/X11R4 \ |
|
|
6797 | \ |
|
|
6798 | /usr/local/X11/lib \ |
|
|
6799 | /usr/local/X11R6/lib \ |
|
|
6800 | /usr/local/X11R5/lib \ |
|
|
6801 | /usr/local/X11R4/lib \ |
|
|
6802 | \ |
|
|
6803 | /usr/local/lib/X11 \ |
|
|
6804 | /usr/local/lib/X11R6 \ |
|
|
6805 | /usr/local/lib/X11R5 \ |
|
|
6806 | /usr/local/lib/X11R4 \ |
|
|
6807 | \ |
|
|
6808 | /usr/X386/lib \ |
|
|
6809 | /usr/x386/lib \ |
|
|
6810 | /usr/XFree86/lib/X11 \ |
|
|
6811 | \ |
|
|
6812 | /usr/lib \ |
|
|
6813 | /usr/local/lib \ |
|
|
6814 | /usr/unsupported/lib \ |
|
|
6815 | /usr/athena/lib \ |
|
|
6816 | /usr/local/x11r5/lib \ |
|
|
6817 | /usr/lpp/Xamples/lib \ |
|
|
6818 | \ |
|
|
6819 | /usr/openwin/lib \ |
|
|
6820 | /usr/openwin/share/lib \ |
|
|
6821 | ; \ |
|
|
6822 | do |
|
|
6823 | for ac_extension in a so sl; do |
|
|
6824 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6825 | vt_xpm_libraries=$ac_dir |
|
|
6826 | break 2 |
|
|
6827 | fi |
|
|
6828 | done |
|
|
6829 | done |
|
|
6830 | fi |
|
|
6831 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6832 | conftest$ac_exeext conftest.$ac_ext |
|
|
6833 | fi |
|
|
6834 | |
|
|
6835 | |
|
|
6836 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6837 | ac_cv_have_xpm="have_xpm=no" |
|
|
6838 | else |
|
|
6839 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6840 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6841 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6842 | fi |
|
|
6843 | fi |
|
|
6844 | eval "$ac_cv_have_xpm" |
|
|
6845 | fi |
|
|
6846 | |
|
|
6847 | if test "$have_xpm" != yes; then |
|
|
6848 | echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6849 | echo "${ECHO_T}$have_xpm" >&6 |
|
|
6850 | no_xpm=yes |
|
|
6851 | else |
|
|
6852 | if test "$xpm_includes" != NO; then |
|
|
6853 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6854 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6855 | vt_xpm_include_X11=yes |
|
|
6856 | fi |
|
|
6857 | else |
|
|
6858 | vt_xpm_include_X11=no |
|
|
6859 | if test -z "$xpm_includes"; then |
|
|
6860 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6861 | /* confdefs.h. */ |
|
|
6862 | _ACEOF |
|
|
6863 | cat confdefs.h >>conftest.$ac_ext |
|
|
6864 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6865 | /* end confdefs.h. */ |
|
|
6866 | #include <X11/xpm.h> |
|
|
6867 | _ACEOF |
|
|
6868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
6869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
6870 | ac_status=$? |
|
|
6871 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6872 | rm -f conftest.er1 |
|
|
6873 | cat conftest.err >&5 |
|
|
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6875 | (exit $ac_status); } >/dev/null; then |
|
|
6876 | if test -s conftest.err; then |
|
|
6877 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
6878 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
6879 | else |
|
|
6880 | ac_cpp_err= |
|
|
6881 | fi |
|
|
6882 | else |
|
|
6883 | ac_cpp_err=yes |
|
|
6884 | fi |
|
|
6885 | if test -z "$ac_cpp_err"; then |
|
|
6886 | vt_xpm_include_X11=yes |
|
|
6887 | else |
|
|
6888 | echo "$as_me: failed program was:" >&5 |
|
|
6889 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6890 | |
|
|
6891 | |
|
|
6892 | fi |
|
|
6893 | rm -f conftest.err conftest.$ac_ext |
|
|
6894 | else |
|
|
6895 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6896 | vt_xpm_include_X11=yes |
|
|
6897 | fi |
|
|
6898 | fi |
|
|
6899 | fi |
|
|
6900 | vt_xpm_includes=$xpm_includes |
|
|
6901 | fi |
|
|
6902 | if test "x$xpm_libraries" != xNO; then |
|
|
6903 | vt_xpm_libraries=$xpm_libraries |
|
|
6904 | fi |
|
|
6905 | # Update the cache value to reflect the command line values. |
|
|
6906 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6907 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6908 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6909 | eval "$ac_cv_have_xpm" |
|
|
6910 | echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6911 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6 |
|
|
6912 | if test -n "$vt_xpm_includes"; then |
|
|
6913 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6914 | fi |
|
|
6915 | if test -n "$vt_xpm_includes"; then |
|
|
6916 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6917 | fi |
|
|
6918 | XPM_LIBS="-lXpm" |
|
|
6919 | if test -n "$vt_xpm_libraries"; then |
|
|
6920 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6921 | fi |
|
|
6922 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6923 | |
|
|
6924 | cat >>confdefs.h <<\_ACEOF |
|
|
6925 | #define XPM_INC_X11 1 |
|
|
6926 | _ACEOF |
|
|
6927 | |
|
|
6928 | fi |
|
|
6929 | fi |
|
|
6930 | |
|
|
6931 | |
|
|
6932 | |
|
|
6933 | |
|
|
6934 | |
|
|
6935 | if test x$no_xpm = xyes; then |
|
|
6936 | support_xpm=needsmanualspecification |
|
|
6937 | fi |
|
|
6938 | fi |
|
|
6939 | |
|
|
6940 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6941 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
|
|
6942 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6944 | else |
|
|
6945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6946 | /* confdefs.h. */ |
|
|
6947 | _ACEOF |
|
|
6948 | cat confdefs.h >>conftest.$ac_ext |
|
|
6949 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6950 | /* end confdefs.h. */ |
|
|
6951 | #include <sys/types.h> |
|
|
6952 | #include <sys/wait.h> |
|
|
6953 | #ifndef WEXITSTATUS |
|
|
6954 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
|
|
6955 | #endif |
|
|
6956 | #ifndef WIFEXITED |
|
|
6957 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6958 | #endif |
|
|
6959 | |
|
|
6960 | int |
|
|
6961 | main () |
|
|
6962 | { |
|
|
6963 | int s; |
|
|
6964 | wait (&s); |
|
|
6965 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6966 | ; |
|
|
6967 | return 0; |
|
|
6968 | } |
|
|
6969 | _ACEOF |
|
|
6970 | rm -f conftest.$ac_objext |
|
|
6971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6972 | (eval $ac_compile) 2>conftest.er1 |
|
|
6973 | ac_status=$? |
|
|
6974 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6975 | rm -f conftest.er1 |
|
|
6976 | cat conftest.err >&5 |
|
|
6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6978 | (exit $ac_status); } && |
|
|
6979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6981 | (eval $ac_try) 2>&5 |
|
|
6982 | ac_status=$? |
|
|
6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6984 | (exit $ac_status); }; } && |
|
|
6985 | { ac_try='test -s conftest.$ac_objext' |
|
|
6986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6987 | (eval $ac_try) 2>&5 |
|
|
6988 | ac_status=$? |
|
|
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6990 | (exit $ac_status); }; }; then |
|
|
6991 | ac_cv_header_sys_wait_h=yes |
|
|
6992 | else |
|
|
6993 | echo "$as_me: failed program was:" >&5 |
|
|
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6995 | |
|
|
6996 | ac_cv_header_sys_wait_h=no |
|
|
6997 | fi |
|
|
6998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6999 | fi |
|
|
7000 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7001 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
|
|
7002 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7003 | |
|
|
7004 | cat >>confdefs.h <<\_ACEOF |
|
|
7005 | #define HAVE_SYS_WAIT_H 1 |
|
|
7006 | _ACEOF |
|
|
7007 | |
|
|
7008 | fi |
|
|
7009 | |
|
|
7010 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7011 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
7012 | if test "${ac_cv_header_stdc+set}" = set; then |
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7014 | else |
5099 | else |
7015 | cat >conftest.$ac_ext <<_ACEOF |
5100 | cat >conftest.$ac_ext <<_ACEOF |
7016 | /* confdefs.h. */ |
5101 | /* confdefs.h. */ |
… | |
… | |
7030 | ; |
5115 | ; |
7031 | return 0; |
5116 | return 0; |
7032 | } |
5117 | } |
7033 | _ACEOF |
5118 | _ACEOF |
7034 | rm -f conftest.$ac_objext |
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
7035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7036 | (eval $ac_compile) 2>conftest.er1 |
5126 | (eval "$ac_compile") 2>conftest.er1 |
7037 | ac_status=$? |
5127 | ac_status=$? |
7038 | grep -v '^ *+' conftest.er1 >conftest.err |
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
7039 | rm -f conftest.er1 |
5129 | rm -f conftest.er1 |
7040 | cat conftest.err >&5 |
5130 | cat conftest.err >&5 |
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7042 | (exit $ac_status); } && |
5132 | (exit $ac_status); } && { |
7043 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5133 | test -z "$ac_cxx_werror_flag" || |
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5134 | test ! -s conftest.err |
7045 | (eval $ac_try) 2>&5 |
5135 | } && test -s conftest.$ac_objext; then |
7046 | ac_status=$? |
|
|
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7048 | (exit $ac_status); }; } && |
|
|
7049 | { ac_try='test -s conftest.$ac_objext' |
|
|
7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7051 | (eval $ac_try) 2>&5 |
|
|
7052 | ac_status=$? |
|
|
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7054 | (exit $ac_status); }; }; then |
|
|
7055 | ac_cv_header_stdc=yes |
5136 | ac_cv_header_stdc=yes |
7056 | else |
5137 | else |
7057 | echo "$as_me: failed program was:" >&5 |
5138 | echo "$as_me: failed program was:" >&5 |
7058 | sed 's/^/| /' conftest.$ac_ext >&5 |
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
7059 | |
5140 | |
7060 | ac_cv_header_stdc=no |
5141 | ac_cv_header_stdc=no |
7061 | fi |
5142 | fi |
|
|
5143 | |
7062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7063 | |
5145 | |
7064 | if test $ac_cv_header_stdc = yes; then |
5146 | if test $ac_cv_header_stdc = yes; then |
7065 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7066 | cat >conftest.$ac_ext <<_ACEOF |
5148 | cat >conftest.$ac_ext <<_ACEOF |
7067 | /* confdefs.h. */ |
5149 | /* confdefs.h. */ |
… | |
… | |
7113 | _ACEOF |
5195 | _ACEOF |
7114 | cat confdefs.h >>conftest.$ac_ext |
5196 | cat confdefs.h >>conftest.$ac_ext |
7115 | cat >>conftest.$ac_ext <<_ACEOF |
5197 | cat >>conftest.$ac_ext <<_ACEOF |
7116 | /* end confdefs.h. */ |
5198 | /* end confdefs.h. */ |
7117 | #include <ctype.h> |
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
7118 | #if ((' ' & 0x0FF) == 0x020) |
5201 | #if ((' ' & 0x0FF) == 0x020) |
7119 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7120 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7121 | #else |
5204 | #else |
7122 | # define ISLOWER(c) \ |
5205 | # define ISLOWER(c) \ |
… | |
… | |
7132 | { |
5215 | { |
7133 | int i; |
5216 | int i; |
7134 | for (i = 0; i < 256; i++) |
5217 | for (i = 0; i < 256; i++) |
7135 | if (XOR (islower (i), ISLOWER (i)) |
5218 | if (XOR (islower (i), ISLOWER (i)) |
7136 | || toupper (i) != TOUPPER (i)) |
5219 | || toupper (i) != TOUPPER (i)) |
7137 | exit(2); |
5220 | return 2; |
7138 | exit (0); |
5221 | return 0; |
7139 | } |
5222 | } |
7140 | _ACEOF |
5223 | _ACEOF |
7141 | rm -f conftest$ac_exeext |
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
7142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7143 | (eval $ac_link) 2>&5 |
5231 | (eval "$ac_link") 2>&5 |
7144 | ac_status=$? |
5232 | ac_status=$? |
7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7146 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
7147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7148 | (eval $ac_try) 2>&5 |
5240 | (eval "$ac_try") 2>&5 |
7149 | ac_status=$? |
5241 | ac_status=$? |
7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7151 | (exit $ac_status); }; }; then |
5243 | (exit $ac_status); }; }; then |
7152 | : |
5244 | : |
7153 | else |
5245 | else |
… | |
… | |
7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
7157 | |
5249 | |
7158 | ( exit $ac_status ) |
5250 | ( exit $ac_status ) |
7159 | ac_cv_header_stdc=no |
5251 | ac_cv_header_stdc=no |
7160 | fi |
5252 | fi |
7161 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7162 | fi |
5254 | fi |
|
|
5255 | |
|
|
5256 | |
7163 | fi |
5257 | fi |
7164 | fi |
5258 | fi |
7165 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7166 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
7167 | if test $ac_cv_header_stdc = yes; then |
5261 | if test $ac_cv_header_stdc = yes; then |
7168 | |
5262 | |
7169 | cat >>confdefs.h <<\_ACEOF |
5263 | cat >>confdefs.h <<\_ACEOF |
7170 | #define STDC_HEADERS 1 |
5264 | #define STDC_HEADERS 1 |
7171 | _ACEOF |
5265 | _ACEOF |
… | |
… | |
7184 | |
5278 | |
7185 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7186 | inttypes.h stdint.h unistd.h |
5280 | inttypes.h stdint.h unistd.h |
7187 | do |
5281 | do |
7188 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7193 | else |
5287 | else |
7194 | cat >conftest.$ac_ext <<_ACEOF |
5288 | cat >conftest.$ac_ext <<_ACEOF |
7195 | /* confdefs.h. */ |
5289 | /* confdefs.h. */ |
7196 | _ACEOF |
5290 | _ACEOF |
… | |
… | |
7200 | $ac_includes_default |
5294 | $ac_includes_default |
7201 | |
5295 | |
7202 | #include <$ac_header> |
5296 | #include <$ac_header> |
7203 | _ACEOF |
5297 | _ACEOF |
7204 | rm -f conftest.$ac_objext |
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
7205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7206 | (eval $ac_compile) 2>conftest.er1 |
5305 | (eval "$ac_compile") 2>conftest.er1 |
7207 | ac_status=$? |
5306 | ac_status=$? |
7208 | grep -v '^ *+' conftest.er1 >conftest.err |
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
7209 | rm -f conftest.er1 |
5308 | rm -f conftest.er1 |
7210 | cat conftest.err >&5 |
5309 | cat conftest.err >&5 |
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7212 | (exit $ac_status); } && |
5311 | (exit $ac_status); } && { |
7213 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5312 | test -z "$ac_cxx_werror_flag" || |
7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5313 | test ! -s conftest.err |
7215 | (eval $ac_try) 2>&5 |
5314 | } && test -s conftest.$ac_objext; then |
7216 | ac_status=$? |
|
|
7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7218 | (exit $ac_status); }; } && |
|
|
7219 | { ac_try='test -s conftest.$ac_objext' |
|
|
7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7221 | (eval $ac_try) 2>&5 |
|
|
7222 | ac_status=$? |
|
|
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7224 | (exit $ac_status); }; }; then |
|
|
7225 | eval "$as_ac_Header=yes" |
5315 | eval "$as_ac_Header=yes" |
7226 | else |
5316 | else |
7227 | echo "$as_me: failed program was:" >&5 |
5317 | echo "$as_me: failed program was:" >&5 |
7228 | sed 's/^/| /' conftest.$ac_ext >&5 |
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
7229 | |
5319 | |
7230 | eval "$as_ac_Header=no" |
5320 | eval "$as_ac_Header=no" |
7231 | fi |
5321 | fi |
|
|
5322 | |
7232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7233 | fi |
5324 | fi |
7234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
7236 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7237 | cat >>confdefs.h <<_ACEOF |
5329 | cat >>confdefs.h <<_ACEOF |
7238 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7239 | _ACEOF |
5331 | _ACEOF |
7240 | |
5332 | |
… | |
… | |
7250 | |
5342 | |
7251 | |
5343 | |
7252 | |
5344 | |
7253 | |
5345 | |
7254 | |
5346 | |
7255 | |
5347 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
7256 | |
|
|
7257 | |
|
|
7258 | |
|
|
7259 | |
|
|
7260 | |
|
|
7261 | |
|
|
7262 | |
|
|
7263 | |
|
|
7264 | |
|
|
7265 | |
|
|
7266 | |
|
|
7267 | |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | |
|
|
7271 | |
|
|
7272 | for ac_header in \ |
|
|
7273 | assert.h \ |
|
|
7274 | fcntl.h \ |
|
|
7275 | grp.h \ |
|
|
7276 | libc.h \ |
|
|
7277 | lastlog.h \ |
|
|
7278 | stdarg.h \ |
|
|
7279 | stdlib.h \ |
|
|
7280 | string.h \ |
|
|
7281 | termios.h \ |
|
|
7282 | unistd.h \ |
|
|
7283 | sys/byteorder.h \ |
|
|
7284 | sys/ioctl.h \ |
|
|
7285 | sys/select.h \ |
|
|
7286 | sys/sockio.h \ |
|
|
7287 | sys/strredir.h \ |
|
|
7288 | sys/stropts.h \ |
|
|
7289 | sys/time.h \ |
|
|
7290 | utmp.h \ |
|
|
7291 | utmpx.h \ |
|
|
7292 | stdint.h \ |
|
|
7293 | pty.h \ |
|
|
7294 | util.h \ |
|
|
7295 | libutil.h \ |
|
|
7296 | wchar.h \ |
|
|
7297 | cwchar \ |
|
|
7298 | clocale \ |
|
|
7299 | |
|
|
7300 | do |
5348 | do |
7301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7302 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7303 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7307 | fi |
5355 | fi |
7308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5358 | echo "${ECHO_T}$ac_res" >&6; } |
7310 | else |
5359 | else |
7311 | # Is the header compilable? |
5360 | # Is the header compilable? |
7312 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7313 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
7314 | cat >conftest.$ac_ext <<_ACEOF |
5363 | cat >conftest.$ac_ext <<_ACEOF |
7315 | /* confdefs.h. */ |
5364 | /* confdefs.h. */ |
7316 | _ACEOF |
5365 | _ACEOF |
7317 | cat confdefs.h >>conftest.$ac_ext |
5366 | cat confdefs.h >>conftest.$ac_ext |
7318 | cat >>conftest.$ac_ext <<_ACEOF |
5367 | cat >>conftest.$ac_ext <<_ACEOF |
7319 | /* end confdefs.h. */ |
5368 | /* end confdefs.h. */ |
7320 | $ac_includes_default |
5369 | $ac_includes_default |
7321 | #include <$ac_header> |
5370 | #include <$ac_header> |
7322 | _ACEOF |
5371 | _ACEOF |
7323 | rm -f conftest.$ac_objext |
5372 | rm -f conftest.$ac_objext |
|
|
5373 | if { (ac_try="$ac_compile" |
|
|
5374 | case "(($ac_try" in |
|
|
5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5376 | *) ac_try_echo=$ac_try;; |
|
|
5377 | esac |
7324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7325 | (eval $ac_compile) 2>conftest.er1 |
5379 | (eval "$ac_compile") 2>conftest.er1 |
7326 | ac_status=$? |
5380 | ac_status=$? |
7327 | grep -v '^ *+' conftest.er1 >conftest.err |
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
7328 | rm -f conftest.er1 |
5382 | rm -f conftest.er1 |
7329 | cat conftest.err >&5 |
5383 | cat conftest.err >&5 |
7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7331 | (exit $ac_status); } && |
5385 | (exit $ac_status); } && { |
7332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5386 | test -z "$ac_cxx_werror_flag" || |
7333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5387 | test ! -s conftest.err |
7334 | (eval $ac_try) 2>&5 |
5388 | } && test -s conftest.$ac_objext; then |
7335 | ac_status=$? |
|
|
7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7337 | (exit $ac_status); }; } && |
|
|
7338 | { ac_try='test -s conftest.$ac_objext' |
|
|
7339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7340 | (eval $ac_try) 2>&5 |
|
|
7341 | ac_status=$? |
|
|
7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7343 | (exit $ac_status); }; }; then |
|
|
7344 | ac_header_compiler=yes |
5389 | ac_header_compiler=yes |
7345 | else |
5390 | else |
7346 | echo "$as_me: failed program was:" >&5 |
5391 | echo "$as_me: failed program was:" >&5 |
7347 | sed 's/^/| /' conftest.$ac_ext >&5 |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
7348 | |
5393 | |
7349 | ac_header_compiler=no |
5394 | ac_header_compiler=no |
7350 | fi |
5395 | fi |
|
|
5396 | |
7351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7353 | echo "${ECHO_T}$ac_header_compiler" >&6 |
5399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
7354 | |
5400 | |
7355 | # Is the header present? |
5401 | # Is the header present? |
7356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
5403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
7358 | cat >conftest.$ac_ext <<_ACEOF |
5404 | cat >conftest.$ac_ext <<_ACEOF |
7359 | /* confdefs.h. */ |
5405 | /* confdefs.h. */ |
7360 | _ACEOF |
5406 | _ACEOF |
7361 | cat confdefs.h >>conftest.$ac_ext |
5407 | cat confdefs.h >>conftest.$ac_ext |
7362 | cat >>conftest.$ac_ext <<_ACEOF |
5408 | cat >>conftest.$ac_ext <<_ACEOF |
7363 | /* end confdefs.h. */ |
5409 | /* end confdefs.h. */ |
7364 | #include <$ac_header> |
5410 | #include <$ac_header> |
7365 | _ACEOF |
5411 | _ACEOF |
7366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5413 | case "(($ac_try" in |
|
|
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5415 | *) ac_try_echo=$ac_try;; |
|
|
5416 | esac |
|
|
5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7368 | ac_status=$? |
5419 | ac_status=$? |
7369 | grep -v '^ *+' conftest.er1 >conftest.err |
5420 | grep -v '^ *+' conftest.er1 >conftest.err |
7370 | rm -f conftest.er1 |
5421 | rm -f conftest.er1 |
7371 | cat conftest.err >&5 |
5422 | cat conftest.err >&5 |
7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7373 | (exit $ac_status); } >/dev/null; then |
5424 | (exit $ac_status); } >/dev/null && { |
|
|
5425 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
7374 | if test -s conftest.err; then |
5426 | test ! -s conftest.err |
7375 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5427 | }; then |
7376 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
7377 | else |
|
|
7378 | ac_cpp_err= |
|
|
7379 | fi |
|
|
7380 | else |
|
|
7381 | ac_cpp_err=yes |
|
|
7382 | fi |
|
|
7383 | if test -z "$ac_cpp_err"; then |
|
|
7384 | ac_header_preproc=yes |
5428 | ac_header_preproc=yes |
7385 | else |
5429 | else |
7386 | echo "$as_me: failed program was:" >&5 |
5430 | echo "$as_me: failed program was:" >&5 |
7387 | sed 's/^/| /' conftest.$ac_ext >&5 |
5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
7388 | |
5432 | |
7389 | ac_header_preproc=no |
5433 | ac_header_preproc=no |
7390 | fi |
5434 | fi |
|
|
5435 | |
7391 | rm -f conftest.err conftest.$ac_ext |
5436 | rm -f conftest.err conftest.$ac_ext |
7392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7393 | echo "${ECHO_T}$ac_header_preproc" >&6 |
5438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
7394 | |
5439 | |
7395 | # So? What about this header? |
5440 | # So? What about this header? |
7396 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
5441 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
7397 | yes:no: ) |
5442 | yes:no: ) |
7398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
… | |
… | |
7412 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7416 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7417 | ( |
5462 | |
7418 | cat <<\_ASBOX |
|
|
7419 | ## ------------------------------------------ ## |
|
|
7420 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
7421 | ## ------------------------------------------ ## |
|
|
7422 | _ASBOX |
|
|
7423 | ) | |
|
|
7424 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
7425 | ;; |
5463 | ;; |
7426 | esac |
5464 | esac |
7427 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7428 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7431 | else |
5469 | else |
7432 | eval "$as_ac_Header=\$ac_header_preproc" |
5470 | eval "$as_ac_Header=\$ac_header_preproc" |
7433 | fi |
5471 | fi |
7434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5474 | echo "${ECHO_T}$ac_res" >&6; } |
7436 | |
5475 | |
7437 | fi |
5476 | fi |
7438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7439 | cat >>confdefs.h <<_ACEOF |
5478 | cat >>confdefs.h <<_ACEOF |
7440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
… | |
… | |
7443 | fi |
5482 | fi |
7444 | |
5483 | |
7445 | done |
5484 | done |
7446 | |
5485 | |
7447 | |
5486 | |
7448 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
5487 | |
7449 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5488 | |
7450 | if test "${ac_cv_header_time+set}" = set; then |
5489 | |
|
|
5490 | |
|
|
5491 | |
|
|
5492 | |
|
|
5493 | |
|
|
5494 | |
|
|
5495 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5496 | do |
|
|
5497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5498 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5500 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
7451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7452 | else |
5502 | else |
7453 | cat >conftest.$ac_ext <<_ACEOF |
5503 | cat >conftest.$ac_ext <<_ACEOF |
7454 | /* confdefs.h. */ |
5504 | /* confdefs.h. */ |
7455 | _ACEOF |
5505 | _ACEOF |
7456 | cat confdefs.h >>conftest.$ac_ext |
5506 | cat confdefs.h >>conftest.$ac_ext |
7457 | cat >>conftest.$ac_ext <<_ACEOF |
5507 | cat >>conftest.$ac_ext <<_ACEOF |
7458 | /* end confdefs.h. */ |
5508 | /* end confdefs.h. */ |
7459 | #include <sys/types.h> |
5509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7460 | #include <sys/time.h> |
5510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5511 | #define $ac_func innocuous_$ac_func |
|
|
5512 | |
|
|
5513 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5514 | which can conflict with char $ac_func (); below. |
|
|
5515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5516 | <limits.h> exists even on freestanding compilers. */ |
|
|
5517 | |
|
|
5518 | #ifdef __STDC__ |
7461 | #include <time.h> |
5519 | # include <limits.h> |
|
|
5520 | #else |
|
|
5521 | # include <assert.h> |
|
|
5522 | #endif |
|
|
5523 | |
|
|
5524 | #undef $ac_func |
|
|
5525 | |
|
|
5526 | /* Override any GCC internal prototype to avoid an error. |
|
|
5527 | Use char because int might match the return type of a GCC |
|
|
5528 | builtin and then its argument prototype would still apply. */ |
|
|
5529 | #ifdef __cplusplus |
|
|
5530 | extern "C" |
|
|
5531 | #endif |
|
|
5532 | char $ac_func (); |
|
|
5533 | /* The GNU C library defines this for functions which it implements |
|
|
5534 | to always fail with ENOSYS. Some functions are actually named |
|
|
5535 | something starting with __ and the normal name is an alias. */ |
|
|
5536 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5537 | choke me |
|
|
5538 | #endif |
7462 | |
5539 | |
7463 | int |
5540 | int |
7464 | main () |
5541 | main () |
7465 | { |
5542 | { |
7466 | if ((struct tm *) 0) |
5543 | return $ac_func (); |
7467 | return 0; |
|
|
7468 | ; |
5544 | ; |
7469 | return 0; |
5545 | return 0; |
7470 | } |
5546 | } |
7471 | _ACEOF |
5547 | _ACEOF |
7472 | rm -f conftest.$ac_objext |
5548 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5549 | if { (ac_try="$ac_link" |
|
|
5550 | case "(($ac_try" in |
|
|
5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5552 | *) ac_try_echo=$ac_try;; |
|
|
5553 | esac |
7473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7474 | (eval $ac_compile) 2>conftest.er1 |
5555 | (eval "$ac_link") 2>conftest.er1 |
7475 | ac_status=$? |
5556 | ac_status=$? |
7476 | grep -v '^ *+' conftest.er1 >conftest.err |
5557 | grep -v '^ *+' conftest.er1 >conftest.err |
7477 | rm -f conftest.er1 |
5558 | rm -f conftest.er1 |
7478 | cat conftest.err >&5 |
5559 | cat conftest.err >&5 |
7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7480 | (exit $ac_status); } && |
5561 | (exit $ac_status); } && { |
7481 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5562 | test -z "$ac_cxx_werror_flag" || |
7482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5563 | test ! -s conftest.err |
7483 | (eval $ac_try) 2>&5 |
5564 | } && test -s conftest$ac_exeext && |
7484 | ac_status=$? |
5565 | $as_test_x conftest$ac_exeext; then |
7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5566 | eval "$as_ac_var=yes" |
7486 | (exit $ac_status); }; } && |
|
|
7487 | { ac_try='test -s conftest.$ac_objext' |
|
|
7488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7489 | (eval $ac_try) 2>&5 |
|
|
7490 | ac_status=$? |
|
|
7491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7492 | (exit $ac_status); }; }; then |
|
|
7493 | ac_cv_header_time=yes |
|
|
7494 | else |
5567 | else |
7495 | echo "$as_me: failed program was:" >&5 |
5568 | echo "$as_me: failed program was:" >&5 |
7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
7497 | |
5570 | |
7498 | ac_cv_header_time=no |
5571 | eval "$as_ac_var=no" |
7499 | fi |
5572 | fi |
|
|
5573 | |
7500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5575 | conftest$ac_exeext conftest.$ac_ext |
7501 | fi |
5576 | fi |
|
|
5577 | ac_res=`eval echo '${'$as_ac_var'}'` |
7502 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
5578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
7503 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5579 | echo "${ECHO_T}$ac_res" >&6; } |
7504 | if test $ac_cv_header_time = yes; then |
5580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7505 | |
|
|
7506 | cat >>confdefs.h <<\_ACEOF |
5581 | cat >>confdefs.h <<_ACEOF |
7507 | #define TIME_WITH_SYS_TIME 1 |
5582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7508 | _ACEOF |
5583 | _ACEOF |
7509 | |
5584 | |
7510 | fi |
5585 | fi |
|
|
5586 | done |
7511 | |
5587 | |
7512 | |
5588 | |
7513 | echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
5589 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
7514 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6 |
5590 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
7515 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
5591 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
7516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7517 | else |
5593 | else |
7518 | cat >conftest.$ac_ext <<_ACEOF |
5594 | cat >conftest.$ac_ext <<_ACEOF |
7519 | /* confdefs.h. */ |
5595 | /* confdefs.h. */ |
7520 | _ACEOF |
5596 | _ACEOF |
7521 | cat confdefs.h >>conftest.$ac_ext |
5597 | cat confdefs.h >>conftest.$ac_ext |
7522 | cat >>conftest.$ac_ext <<_ACEOF |
5598 | cat >>conftest.$ac_ext <<_ACEOF |
7523 | /* end confdefs.h. */ |
5599 | /* end confdefs.h. */ |
7524 | #include <stdio.h> |
5600 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
7525 | #include <sys/ioctl.h> |
5601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7526 | #ifdef HAVE_TERMIOS_H |
5602 | #define clock_gettime innocuous_clock_gettime |
|
|
5603 | |
|
|
5604 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5605 | which can conflict with char clock_gettime (); below. |
|
|
5606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5607 | <limits.h> exists even on freestanding compilers. */ |
|
|
5608 | |
|
|
5609 | #ifdef __STDC__ |
7527 | #include <termios.h> |
5610 | # include <limits.h> |
|
|
5611 | #else |
|
|
5612 | # include <assert.h> |
7528 | #endif |
5613 | #endif |
|
|
5614 | |
|
|
5615 | #undef clock_gettime |
|
|
5616 | |
|
|
5617 | /* Override any GCC internal prototype to avoid an error. |
|
|
5618 | Use char because int might match the return type of a GCC |
|
|
5619 | builtin and then its argument prototype would still apply. */ |
|
|
5620 | #ifdef __cplusplus |
|
|
5621 | extern "C" |
|
|
5622 | #endif |
|
|
5623 | char clock_gettime (); |
|
|
5624 | /* The GNU C library defines this for functions which it implements |
|
|
5625 | to always fail with ENOSYS. Some functions are actually named |
|
|
5626 | something starting with __ and the normal name is an alias. */ |
|
|
5627 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5628 | choke me |
|
|
5629 | #endif |
|
|
5630 | |
7529 | int |
5631 | int |
7530 | main () |
5632 | main () |
7531 | { |
5633 | { |
7532 | int a = ECHO; |
5634 | return clock_gettime (); |
7533 | ; |
5635 | ; |
7534 | return 0; |
5636 | return 0; |
7535 | } |
5637 | } |
7536 | _ACEOF |
5638 | _ACEOF |
7537 | rm -f conftest.$ac_objext |
5639 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5640 | if { (ac_try="$ac_link" |
|
|
5641 | case "(($ac_try" in |
|
|
5642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5643 | *) ac_try_echo=$ac_try;; |
|
|
5644 | esac |
7538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7539 | (eval $ac_compile) 2>conftest.er1 |
5646 | (eval "$ac_link") 2>conftest.er1 |
7540 | ac_status=$? |
5647 | ac_status=$? |
7541 | grep -v '^ *+' conftest.er1 >conftest.err |
5648 | grep -v '^ *+' conftest.er1 >conftest.err |
7542 | rm -f conftest.er1 |
5649 | rm -f conftest.er1 |
7543 | cat conftest.err >&5 |
5650 | cat conftest.err >&5 |
7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7545 | (exit $ac_status); } && |
5652 | (exit $ac_status); } && { |
7546 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5653 | test -z "$ac_cxx_werror_flag" || |
7547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5654 | test ! -s conftest.err |
7548 | (eval $ac_try) 2>&5 |
5655 | } && test -s conftest$ac_exeext && |
7549 | ac_status=$? |
5656 | $as_test_x conftest$ac_exeext; then |
7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5657 | ac_cv_func_clock_gettime=yes |
7551 | (exit $ac_status); }; } && |
|
|
7552 | { ac_try='test -s conftest.$ac_objext' |
|
|
7553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7554 | (eval $ac_try) 2>&5 |
|
|
7555 | ac_status=$? |
|
|
7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7557 | (exit $ac_status); }; }; then |
|
|
7558 | rxvt_cv_header_sysioctl=yes |
|
|
7559 | else |
5658 | else |
7560 | echo "$as_me: failed program was:" >&5 |
5659 | echo "$as_me: failed program was:" >&5 |
7561 | sed 's/^/| /' conftest.$ac_ext >&5 |
5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
7562 | |
5661 | |
7563 | rxvt_cv_header_sysioctl=no |
5662 | ac_cv_func_clock_gettime=no |
7564 | fi |
5663 | fi |
|
|
5664 | |
7565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5666 | conftest$ac_exeext conftest.$ac_ext |
7566 | fi |
5667 | fi |
7567 | echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
5668 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
7568 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6 |
5669 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
7569 | |
5670 | if test $ac_cv_func_clock_gettime = yes; then |
7570 | if test -n "$GCC"; then |
5671 | : |
7571 | LDARG="-Wl," |
|
|
7572 | else |
5672 | else |
7573 | LDARG="" |
|
|
7574 | fi |
|
|
7575 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g' |
|
|
7576 | |
5673 | |
7577 | ac_save_CFLAGS=$CFLAGS |
5674 | if test $(uname) = Linux; then |
7578 | ac_save_LIBS=$LIBS |
5675 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
7579 | CFLAGS="$CFLAGS $X_CFLAGS" |
5676 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
7580 | LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7581 | echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5 |
|
|
7582 | echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6 |
|
|
7583 | if test "${rxvt_cv_rpath+set}" = set; then |
|
|
7584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7585 | else |
|
|
7586 | if test "$cross_compiling" = yes; then |
|
|
7587 | { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5 |
|
|
7588 | echo "$as_me: WARNING: You may need to check the LIBS line" >&2;} |
|
|
7589 | else |
|
|
7590 | cat >conftest.$ac_ext <<_ACEOF |
5677 | cat >conftest.$ac_ext <<_ACEOF |
7591 | /* confdefs.h. */ |
5678 | /* confdefs.h. */ |
7592 | _ACEOF |
5679 | _ACEOF |
7593 | cat confdefs.h >>conftest.$ac_ext |
5680 | cat confdefs.h >>conftest.$ac_ext |
7594 | cat >>conftest.$ac_ext <<_ACEOF |
5681 | cat >>conftest.$ac_ext <<_ACEOF |
7595 | /* end confdefs.h. */ |
5682 | /* end confdefs.h. */ |
7596 | |
5683 | #include <syscall.h> |
|
|
5684 | #include <time.h> |
|
|
5685 | int |
7597 | main() |
5686 | main () |
7598 | { |
5687 | { |
7599 | exit(0); |
5688 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
7600 | (void) XOpenDisplay("foobar"); |
5689 | ; |
|
|
5690 | return 0; |
7601 | } |
5691 | } |
7602 | _ACEOF |
5692 | _ACEOF |
7603 | rm -f conftest$ac_exeext |
5693 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5694 | if { (ac_try="$ac_link" |
|
|
5695 | case "(($ac_try" in |
|
|
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5697 | *) ac_try_echo=$ac_try;; |
|
|
5698 | esac |
7604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7605 | (eval $ac_link) 2>&5 |
5700 | (eval "$ac_link") 2>conftest.er1 |
7606 | ac_status=$? |
5701 | ac_status=$? |
|
|
5702 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5703 | rm -f conftest.er1 |
|
|
5704 | cat conftest.err >&5 |
7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7610 | (eval $ac_try) 2>&5 |
|
|
7611 | ac_status=$? |
|
|
7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7613 | (exit $ac_status); }; }; then |
5706 | (exit $ac_status); } && { |
7614 | rxvt_cv_rpath=yes |
5707 | test -z "$ac_cxx_werror_flag" || |
|
|
5708 | test ! -s conftest.err |
|
|
5709 | } && test -s conftest$ac_exeext && |
|
|
5710 | $as_test_x conftest$ac_exeext; then |
|
|
5711 | ac_have_clock_syscall=1 |
|
|
5712 | |
|
|
5713 | cat >>confdefs.h <<\_ACEOF |
|
|
5714 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5715 | _ACEOF |
|
|
5716 | |
|
|
5717 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5718 | echo "${ECHO_T}yes" >&6; } |
7615 | else |
5719 | else |
7616 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7617 | echo "$as_me: failed program was:" >&5 |
5720 | echo "$as_me: failed program was:" >&5 |
7618 | sed 's/^/| /' conftest.$ac_ext >&5 |
5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
7619 | |
5722 | |
7620 | ( exit $ac_status ) |
|
|
7621 | rxvt_cv_rpath=no |
|
|
7622 | fi |
|
|
7623 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7624 | fi |
|
|
7625 | fi |
|
|
7626 | echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5 |
5723 | { echo "$as_me:$LINENO: result: no" >&5 |
7627 | echo "${ECHO_T}$rxvt_cv_rpath" >&6 |
5724 | echo "${ECHO_T}no" >&6; } |
7628 | if test x$rxvt_cv_rpath != xyes; then |
5725 | fi |
7629 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
5726 | |
7630 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7631 | echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5 |
5728 | conftest$ac_exeext conftest.$ac_ext |
7632 | echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6 |
5729 | fi |
7633 | if test "${rxvt_cv_R+set}" = set; then |
5730 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5731 | |
|
|
5732 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5733 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5734 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
7634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7635 | else |
5736 | else |
7636 | if test "$cross_compiling" = yes; then |
5737 | ac_check_lib_save_LIBS=$LIBS |
7637 | rxvt_cv_R=no |
5738 | LIBS="-lrt $LIBS" |
7638 | else |
|
|
7639 | cat >conftest.$ac_ext <<_ACEOF |
5739 | cat >conftest.$ac_ext <<_ACEOF |
7640 | /* confdefs.h. */ |
5740 | /* confdefs.h. */ |
7641 | _ACEOF |
5741 | _ACEOF |
7642 | cat confdefs.h >>conftest.$ac_ext |
5742 | cat confdefs.h >>conftest.$ac_ext |
7643 | cat >>conftest.$ac_ext <<_ACEOF |
5743 | cat >>conftest.$ac_ext <<_ACEOF |
7644 | /* end confdefs.h. */ |
5744 | /* end confdefs.h. */ |
7645 | |
5745 | |
|
|
5746 | /* Override any GCC internal prototype to avoid an error. |
|
|
5747 | Use char because int might match the return type of a GCC |
|
|
5748 | builtin and then its argument prototype would still apply. */ |
|
|
5749 | #ifdef __cplusplus |
|
|
5750 | extern "C" |
|
|
5751 | #endif |
|
|
5752 | char clock_gettime (); |
|
|
5753 | int |
7646 | main() |
5754 | main () |
7647 | { |
5755 | { |
7648 | exit(0); |
5756 | return clock_gettime (); |
7649 | (void) XOpenDisplay("foobar"); |
5757 | ; |
|
|
5758 | return 0; |
7650 | } |
5759 | } |
7651 | _ACEOF |
5760 | _ACEOF |
7652 | rm -f conftest$ac_exeext |
5761 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5762 | if { (ac_try="$ac_link" |
|
|
5763 | case "(($ac_try" in |
|
|
5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5765 | *) ac_try_echo=$ac_try;; |
|
|
5766 | esac |
7653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7654 | (eval $ac_link) 2>&5 |
5768 | (eval "$ac_link") 2>conftest.er1 |
7655 | ac_status=$? |
5769 | ac_status=$? |
|
|
5770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5771 | rm -f conftest.er1 |
|
|
5772 | cat conftest.err >&5 |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5774 | (exit $ac_status); } && { |
|
|
5775 | test -z "$ac_cxx_werror_flag" || |
|
|
5776 | test ! -s conftest.err |
|
|
5777 | } && test -s conftest$ac_exeext && |
|
|
5778 | $as_test_x conftest$ac_exeext; then |
|
|
5779 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5780 | else |
|
|
5781 | echo "$as_me: failed program was:" >&5 |
|
|
5782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5783 | |
|
|
5784 | ac_cv_lib_rt_clock_gettime=no |
|
|
5785 | fi |
|
|
5786 | |
|
|
5787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5788 | conftest$ac_exeext conftest.$ac_ext |
|
|
5789 | LIBS=$ac_check_lib_save_LIBS |
|
|
5790 | fi |
|
|
5791 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5792 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5793 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5794 | cat >>confdefs.h <<_ACEOF |
|
|
5795 | #define HAVE_LIBRT 1 |
|
|
5796 | _ACEOF |
|
|
5797 | |
|
|
5798 | LIBS="-lrt $LIBS" |
|
|
5799 | |
|
|
5800 | fi |
|
|
5801 | |
|
|
5802 | unset ac_cv_func_clock_gettime |
|
|
5803 | |
|
|
5804 | for ac_func in clock_gettime |
|
|
5805 | do |
|
|
5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5807 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5809 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5811 | else |
|
|
5812 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5813 | /* confdefs.h. */ |
|
|
5814 | _ACEOF |
|
|
5815 | cat confdefs.h >>conftest.$ac_ext |
|
|
5816 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5817 | /* end confdefs.h. */ |
|
|
5818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5820 | #define $ac_func innocuous_$ac_func |
|
|
5821 | |
|
|
5822 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5823 | which can conflict with char $ac_func (); below. |
|
|
5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5825 | <limits.h> exists even on freestanding compilers. */ |
|
|
5826 | |
|
|
5827 | #ifdef __STDC__ |
|
|
5828 | # include <limits.h> |
|
|
5829 | #else |
|
|
5830 | # include <assert.h> |
|
|
5831 | #endif |
|
|
5832 | |
|
|
5833 | #undef $ac_func |
|
|
5834 | |
|
|
5835 | /* Override any GCC internal prototype to avoid an error. |
|
|
5836 | Use char because int might match the return type of a GCC |
|
|
5837 | builtin and then its argument prototype would still apply. */ |
|
|
5838 | #ifdef __cplusplus |
|
|
5839 | extern "C" |
|
|
5840 | #endif |
|
|
5841 | char $ac_func (); |
|
|
5842 | /* The GNU C library defines this for functions which it implements |
|
|
5843 | to always fail with ENOSYS. Some functions are actually named |
|
|
5844 | something starting with __ and the normal name is an alias. */ |
|
|
5845 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5846 | choke me |
|
|
5847 | #endif |
|
|
5848 | |
|
|
5849 | int |
|
|
5850 | main () |
|
|
5851 | { |
|
|
5852 | return $ac_func (); |
|
|
5853 | ; |
|
|
5854 | return 0; |
|
|
5855 | } |
|
|
5856 | _ACEOF |
|
|
5857 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5858 | if { (ac_try="$ac_link" |
|
|
5859 | case "(($ac_try" in |
|
|
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5861 | *) ac_try_echo=$ac_try;; |
|
|
5862 | esac |
7658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7659 | (eval $ac_try) 2>&5 |
5864 | (eval "$ac_link") 2>conftest.er1 |
7660 | ac_status=$? |
5865 | ac_status=$? |
|
|
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5867 | rm -f conftest.er1 |
|
|
5868 | cat conftest.err >&5 |
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7662 | (exit $ac_status); }; }; then |
5870 | (exit $ac_status); } && { |
7663 | rxvt_cv_R=yes |
5871 | test -z "$ac_cxx_werror_flag" || |
|
|
5872 | test ! -s conftest.err |
|
|
5873 | } && test -s conftest$ac_exeext && |
|
|
5874 | $as_test_x conftest$ac_exeext; then |
|
|
5875 | eval "$as_ac_var=yes" |
7664 | else |
5876 | else |
7665 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7666 | echo "$as_me: failed program was:" >&5 |
5877 | echo "$as_me: failed program was:" >&5 |
7667 | sed 's/^/| /' conftest.$ac_ext >&5 |
5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
7668 | |
5879 | |
7669 | ( exit $ac_status ) |
5880 | eval "$as_ac_var=no" |
7670 | rxvt_cv_R=no |
|
|
7671 | fi |
5881 | fi |
7672 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5882 | |
|
|
5883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5884 | conftest$ac_exeext conftest.$ac_ext |
7673 | fi |
5885 | fi |
|
|
5886 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5888 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5889 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5890 | cat >>confdefs.h <<_ACEOF |
|
|
5891 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5892 | _ACEOF |
|
|
5893 | |
7674 | fi |
5894 | fi |
|
|
5895 | done |
|
|
5896 | |
|
|
5897 | fi |
|
|
5898 | |
|
|
5899 | fi |
|
|
5900 | |
|
|
5901 | |
|
|
5902 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5903 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5904 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5906 | else |
|
|
5907 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5908 | /* confdefs.h. */ |
|
|
5909 | _ACEOF |
|
|
5910 | cat confdefs.h >>conftest.$ac_ext |
|
|
5911 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5912 | /* end confdefs.h. */ |
|
|
5913 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5915 | #define nanosleep innocuous_nanosleep |
|
|
5916 | |
|
|
5917 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5918 | which can conflict with char nanosleep (); below. |
|
|
5919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5920 | <limits.h> exists even on freestanding compilers. */ |
|
|
5921 | |
|
|
5922 | #ifdef __STDC__ |
|
|
5923 | # include <limits.h> |
|
|
5924 | #else |
|
|
5925 | # include <assert.h> |
|
|
5926 | #endif |
|
|
5927 | |
|
|
5928 | #undef nanosleep |
|
|
5929 | |
|
|
5930 | /* Override any GCC internal prototype to avoid an error. |
|
|
5931 | Use char because int might match the return type of a GCC |
|
|
5932 | builtin and then its argument prototype would still apply. */ |
|
|
5933 | #ifdef __cplusplus |
|
|
5934 | extern "C" |
|
|
5935 | #endif |
|
|
5936 | char nanosleep (); |
|
|
5937 | /* The GNU C library defines this for functions which it implements |
|
|
5938 | to always fail with ENOSYS. Some functions are actually named |
|
|
5939 | something starting with __ and the normal name is an alias. */ |
|
|
5940 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5941 | choke me |
|
|
5942 | #endif |
|
|
5943 | |
|
|
5944 | int |
|
|
5945 | main () |
|
|
5946 | { |
|
|
5947 | return nanosleep (); |
|
|
5948 | ; |
|
|
5949 | return 0; |
|
|
5950 | } |
|
|
5951 | _ACEOF |
|
|
5952 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5953 | if { (ac_try="$ac_link" |
|
|
5954 | case "(($ac_try" in |
|
|
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5956 | *) ac_try_echo=$ac_try;; |
|
|
5957 | esac |
|
|
5958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5959 | (eval "$ac_link") 2>conftest.er1 |
|
|
5960 | ac_status=$? |
|
|
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5962 | rm -f conftest.er1 |
|
|
5963 | cat conftest.err >&5 |
|
|
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5965 | (exit $ac_status); } && { |
|
|
5966 | test -z "$ac_cxx_werror_flag" || |
|
|
5967 | test ! -s conftest.err |
|
|
5968 | } && test -s conftest$ac_exeext && |
|
|
5969 | $as_test_x conftest$ac_exeext; then |
|
|
5970 | ac_cv_func_nanosleep=yes |
|
|
5971 | else |
|
|
5972 | echo "$as_me: failed program was:" >&5 |
|
|
5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5974 | |
|
|
5975 | ac_cv_func_nanosleep=no |
|
|
5976 | fi |
|
|
5977 | |
|
|
5978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5979 | conftest$ac_exeext conftest.$ac_ext |
|
|
5980 | fi |
|
|
5981 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5982 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5983 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5984 | : |
|
|
5985 | else |
|
|
5986 | |
|
|
5987 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5988 | |
|
|
5989 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5990 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5991 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | ac_check_lib_save_LIBS=$LIBS |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5997 | /* confdefs.h. */ |
|
|
5998 | _ACEOF |
|
|
5999 | cat confdefs.h >>conftest.$ac_ext |
|
|
6000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6001 | /* end confdefs.h. */ |
|
|
6002 | |
|
|
6003 | /* Override any GCC internal prototype to avoid an error. |
|
|
6004 | Use char because int might match the return type of a GCC |
|
|
6005 | builtin and then its argument prototype would still apply. */ |
|
|
6006 | #ifdef __cplusplus |
|
|
6007 | extern "C" |
|
|
6008 | #endif |
|
|
6009 | char nanosleep (); |
|
|
6010 | int |
|
|
6011 | main () |
|
|
6012 | { |
|
|
6013 | return nanosleep (); |
|
|
6014 | ; |
|
|
6015 | return 0; |
|
|
6016 | } |
|
|
6017 | _ACEOF |
|
|
6018 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6019 | if { (ac_try="$ac_link" |
|
|
6020 | case "(($ac_try" in |
|
|
6021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6022 | *) ac_try_echo=$ac_try;; |
|
|
6023 | esac |
|
|
6024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6025 | (eval "$ac_link") 2>conftest.er1 |
|
|
6026 | ac_status=$? |
|
|
6027 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6028 | rm -f conftest.er1 |
|
|
6029 | cat conftest.err >&5 |
|
|
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6031 | (exit $ac_status); } && { |
|
|
6032 | test -z "$ac_cxx_werror_flag" || |
|
|
6033 | test ! -s conftest.err |
|
|
6034 | } && test -s conftest$ac_exeext && |
|
|
6035 | $as_test_x conftest$ac_exeext; then |
|
|
6036 | ac_cv_lib_rt_nanosleep=yes |
|
|
6037 | else |
|
|
6038 | echo "$as_me: failed program was:" >&5 |
|
|
6039 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6040 | |
|
|
6041 | ac_cv_lib_rt_nanosleep=no |
|
|
6042 | fi |
|
|
6043 | |
|
|
6044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6045 | conftest$ac_exeext conftest.$ac_ext |
|
|
6046 | LIBS=$ac_check_lib_save_LIBS |
|
|
6047 | fi |
|
|
6048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6049 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6050 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6051 | cat >>confdefs.h <<_ACEOF |
|
|
6052 | #define HAVE_LIBRT 1 |
|
|
6053 | _ACEOF |
|
|
6054 | |
|
|
6055 | LIBS="-lrt $LIBS" |
|
|
6056 | |
|
|
6057 | fi |
|
|
6058 | |
|
|
6059 | unset ac_cv_func_nanosleep |
|
|
6060 | |
|
|
6061 | for ac_func in nanosleep |
|
|
6062 | do |
|
|
6063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6064 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6066 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6068 | else |
|
|
6069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6070 | /* confdefs.h. */ |
|
|
6071 | _ACEOF |
|
|
6072 | cat confdefs.h >>conftest.$ac_ext |
|
|
6073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6074 | /* end confdefs.h. */ |
|
|
6075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6077 | #define $ac_func innocuous_$ac_func |
|
|
6078 | |
|
|
6079 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6080 | which can conflict with char $ac_func (); below. |
|
|
6081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6082 | <limits.h> exists even on freestanding compilers. */ |
|
|
6083 | |
|
|
6084 | #ifdef __STDC__ |
|
|
6085 | # include <limits.h> |
|
|
6086 | #else |
|
|
6087 | # include <assert.h> |
|
|
6088 | #endif |
|
|
6089 | |
|
|
6090 | #undef $ac_func |
|
|
6091 | |
|
|
6092 | /* Override any GCC internal prototype to avoid an error. |
|
|
6093 | Use char because int might match the return type of a GCC |
|
|
6094 | builtin and then its argument prototype would still apply. */ |
|
|
6095 | #ifdef __cplusplus |
|
|
6096 | extern "C" |
|
|
6097 | #endif |
|
|
6098 | char $ac_func (); |
|
|
6099 | /* The GNU C library defines this for functions which it implements |
|
|
6100 | to always fail with ENOSYS. Some functions are actually named |
|
|
6101 | something starting with __ and the normal name is an alias. */ |
|
|
6102 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6103 | choke me |
|
|
6104 | #endif |
|
|
6105 | |
|
|
6106 | int |
|
|
6107 | main () |
|
|
6108 | { |
|
|
6109 | return $ac_func (); |
|
|
6110 | ; |
|
|
6111 | return 0; |
|
|
6112 | } |
|
|
6113 | _ACEOF |
|
|
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6115 | if { (ac_try="$ac_link" |
|
|
6116 | case "(($ac_try" in |
|
|
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6118 | *) ac_try_echo=$ac_try;; |
|
|
6119 | esac |
|
|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6121 | (eval "$ac_link") 2>conftest.er1 |
|
|
6122 | ac_status=$? |
|
|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6124 | rm -f conftest.er1 |
|
|
6125 | cat conftest.err >&5 |
|
|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6127 | (exit $ac_status); } && { |
|
|
6128 | test -z "$ac_cxx_werror_flag" || |
|
|
6129 | test ! -s conftest.err |
|
|
6130 | } && test -s conftest$ac_exeext && |
|
|
6131 | $as_test_x conftest$ac_exeext; then |
|
|
6132 | eval "$as_ac_var=yes" |
|
|
6133 | else |
|
|
6134 | echo "$as_me: failed program was:" >&5 |
|
|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6136 | |
|
|
6137 | eval "$as_ac_var=no" |
|
|
6138 | fi |
|
|
6139 | |
|
|
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6141 | conftest$ac_exeext conftest.$ac_ext |
|
|
6142 | fi |
|
|
6143 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6145 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6147 | cat >>confdefs.h <<_ACEOF |
|
|
6148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6149 | _ACEOF |
|
|
6150 | |
|
|
6151 | fi |
|
|
6152 | done |
|
|
6153 | |
|
|
6154 | fi |
|
|
6155 | |
|
|
6156 | fi |
|
|
6157 | |
|
|
6158 | |
|
|
6159 | |
|
|
6160 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6161 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6162 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6164 | else |
|
|
6165 | ac_check_lib_save_LIBS=$LIBS |
|
|
6166 | LIBS="-lm $LIBS" |
|
|
6167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6168 | /* confdefs.h. */ |
|
|
6169 | _ACEOF |
|
|
6170 | cat confdefs.h >>conftest.$ac_ext |
|
|
6171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6172 | /* end confdefs.h. */ |
|
|
6173 | |
|
|
6174 | /* Override any GCC internal prototype to avoid an error. |
|
|
6175 | Use char because int might match the return type of a GCC |
|
|
6176 | builtin and then its argument prototype would still apply. */ |
|
|
6177 | #ifdef __cplusplus |
|
|
6178 | extern "C" |
|
|
6179 | #endif |
|
|
6180 | char ceil (); |
|
|
6181 | int |
|
|
6182 | main () |
|
|
6183 | { |
|
|
6184 | return ceil (); |
|
|
6185 | ; |
|
|
6186 | return 0; |
|
|
6187 | } |
|
|
6188 | _ACEOF |
|
|
6189 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6190 | if { (ac_try="$ac_link" |
|
|
6191 | case "(($ac_try" in |
|
|
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6193 | *) ac_try_echo=$ac_try;; |
|
|
6194 | esac |
|
|
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6196 | (eval "$ac_link") 2>conftest.er1 |
|
|
6197 | ac_status=$? |
|
|
6198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6199 | rm -f conftest.er1 |
|
|
6200 | cat conftest.err >&5 |
|
|
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6202 | (exit $ac_status); } && { |
|
|
6203 | test -z "$ac_cxx_werror_flag" || |
|
|
6204 | test ! -s conftest.err |
|
|
6205 | } && test -s conftest$ac_exeext && |
|
|
6206 | $as_test_x conftest$ac_exeext; then |
|
|
6207 | ac_cv_lib_m_ceil=yes |
|
|
6208 | else |
|
|
6209 | echo "$as_me: failed program was:" >&5 |
|
|
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6211 | |
|
|
6212 | ac_cv_lib_m_ceil=no |
|
|
6213 | fi |
|
|
6214 | |
|
|
6215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6216 | conftest$ac_exeext conftest.$ac_ext |
|
|
6217 | LIBS=$ac_check_lib_save_LIBS |
|
|
6218 | fi |
7675 | echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5 |
6219 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
7676 | echo "${ECHO_T}$rxvt_cv_R" >&6 |
6220 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
7677 | if test x$rxvt_cv_R != xyes; then |
6221 | if test $ac_cv_lib_m_ceil = yes; then |
7678 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
6222 | cat >>confdefs.h <<_ACEOF |
|
|
6223 | #define HAVE_LIBM 1 |
|
|
6224 | _ACEOF |
|
|
6225 | |
|
|
6226 | LIBS="-lm $LIBS" |
|
|
6227 | |
|
|
6228 | fi |
|
|
6229 | |
|
|
6230 | |
|
|
6231 | |
|
|
6232 | |
|
|
6233 | |
|
|
6234 | # Extract the first word of "tic", so it can be a program name with args. |
|
|
6235 | set dummy tic; ac_word=$2 |
|
|
6236 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
6237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
6238 | if test "${ac_cv_path_TIC+set}" = set; then |
|
|
6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6240 | else |
|
|
6241 | case $TIC in |
|
|
6242 | [\\/]* | ?:[\\/]*) |
|
|
6243 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
|
|
6244 | ;; |
|
|
6245 | *) |
|
|
6246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6247 | for as_dir in $PATH |
|
|
6248 | do |
|
|
6249 | IFS=$as_save_IFS |
|
|
6250 | test -z "$as_dir" && as_dir=. |
|
|
6251 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6253 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
|
|
6254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6255 | break 2 |
7679 | fi |
6256 | fi |
7680 | fi |
6257 | done |
|
|
6258 | done |
|
|
6259 | IFS=$as_save_IFS |
7681 | |
6260 | |
|
|
6261 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
|
|
6262 | ;; |
|
|
6263 | esac |
|
|
6264 | fi |
|
|
6265 | TIC=$ac_cv_path_TIC |
|
|
6266 | if test -n "$TIC"; then |
|
|
6267 | { echo "$as_me:$LINENO: result: $TIC" >&5 |
|
|
6268 | echo "${ECHO_T}$TIC" >&6; } |
|
|
6269 | else |
|
|
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6271 | echo "${ECHO_T}no" >&6; } |
|
|
6272 | fi |
|
|
6273 | |
|
|
6274 | |
|
|
6275 | |
|
|
6276 | { echo "$as_me:$LINENO: checking for X" >&5 |
|
|
6277 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
|
|
6278 | |
|
|
6279 | |
|
|
6280 | # Check whether --with-x was given. |
|
|
6281 | if test "${with_x+set}" = set; then |
|
|
6282 | withval=$with_x; |
|
|
6283 | fi |
|
|
6284 | |
|
|
6285 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
|
|
6286 | if test "x$with_x" = xno; then |
|
|
6287 | # The user explicitly disabled X. |
|
|
6288 | have_x=disabled |
|
|
6289 | else |
|
|
6290 | case $x_includes,$x_libraries in #( |
|
|
6291 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
|
|
6292 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
|
|
6293 | { (exit 1); exit 1; }; };; #( |
|
|
6294 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
|
|
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6296 | else |
|
|
6297 | # One or both of the vars are not set, and there is no cached value. |
|
|
6298 | ac_x_includes=no ac_x_libraries=no |
|
|
6299 | rm -f -r conftest.dir |
|
|
6300 | if mkdir conftest.dir; then |
|
|
6301 | cd conftest.dir |
|
|
6302 | cat >Imakefile <<'_ACEOF' |
|
|
6303 | incroot: |
|
|
6304 | @echo incroot='${INCROOT}' |
|
|
6305 | usrlibdir: |
|
|
6306 | @echo usrlibdir='${USRLIBDIR}' |
|
|
6307 | libdir: |
|
|
6308 | @echo libdir='${LIBDIR}' |
|
|
6309 | _ACEOF |
|
|
6310 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
|
|
6311 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
|
6312 | for ac_var in incroot usrlibdir libdir; do |
|
|
6313 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
|
|
6314 | done |
|
|
6315 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
|
|
6316 | for ac_extension in a so sl; do |
|
|
6317 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
|
|
6318 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
|
|
6319 | ac_im_usrlibdir=$ac_im_libdir; break |
|
|
6320 | fi |
|
|
6321 | done |
|
|
6322 | # Screen out bogus values from the imake configuration. They are |
|
|
6323 | # bogus both because they are the default anyway, and because |
|
|
6324 | # using them would break gcc on systems where it needs fixed includes. |
|
|
6325 | case $ac_im_incroot in |
|
|
6326 | /usr/include) ac_x_includes= ;; |
|
|
6327 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
|
|
6328 | esac |
|
|
6329 | case $ac_im_usrlibdir in |
|
|
6330 | /usr/lib | /lib) ;; |
|
|
6331 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
|
|
6332 | esac |
|
|
6333 | fi |
|
|
6334 | cd .. |
|
|
6335 | rm -f -r conftest.dir |
|
|
6336 | fi |
|
|
6337 | |
|
|
6338 | # Standard set of common directories for X headers. |
|
|
6339 | # Check X11 before X11Rn because it is often a symlink to the current release. |
|
|
6340 | ac_x_header_dirs=' |
|
|
6341 | /usr/X11/include |
|
|
6342 | /usr/X11R6/include |
|
|
6343 | /usr/X11R5/include |
|
|
6344 | /usr/X11R4/include |
|
|
6345 | |
|
|
6346 | /usr/include/X11 |
|
|
6347 | /usr/include/X11R6 |
|
|
6348 | /usr/include/X11R5 |
|
|
6349 | /usr/include/X11R4 |
|
|
6350 | |
|
|
6351 | /usr/local/X11/include |
|
|
6352 | /usr/local/X11R6/include |
|
|
6353 | /usr/local/X11R5/include |
|
|
6354 | /usr/local/X11R4/include |
|
|
6355 | |
|
|
6356 | /usr/local/include/X11 |
|
|
6357 | /usr/local/include/X11R6 |
|
|
6358 | /usr/local/include/X11R5 |
|
|
6359 | /usr/local/include/X11R4 |
|
|
6360 | |
|
|
6361 | /usr/X386/include |
|
|
6362 | /usr/x386/include |
|
|
6363 | /usr/XFree86/include/X11 |
|
|
6364 | |
|
|
6365 | /usr/include |
|
|
6366 | /usr/local/include |
|
|
6367 | /usr/unsupported/include |
|
|
6368 | /usr/athena/include |
|
|
6369 | /usr/local/x11r5/include |
|
|
6370 | /usr/lpp/Xamples/include |
|
|
6371 | |
|
|
6372 | /usr/openwin/include |
|
|
6373 | /usr/openwin/share/include' |
|
|
6374 | |
|
|
6375 | if test "$ac_x_includes" = no; then |
|
|
6376 | # Guess where to find include files, by looking for Xlib.h. |
|
|
6377 | # First, try using that file with no special directory specified. |
|
|
6378 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6379 | /* confdefs.h. */ |
|
|
6380 | _ACEOF |
|
|
6381 | cat confdefs.h >>conftest.$ac_ext |
|
|
6382 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6383 | /* end confdefs.h. */ |
|
|
6384 | #include <X11/Xlib.h> |
|
|
6385 | _ACEOF |
|
|
6386 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6387 | case "(($ac_try" in |
|
|
6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6389 | *) ac_try_echo=$ac_try;; |
|
|
6390 | esac |
|
|
6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6392 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6393 | ac_status=$? |
|
|
6394 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6395 | rm -f conftest.er1 |
|
|
6396 | cat conftest.err >&5 |
|
|
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6398 | (exit $ac_status); } >/dev/null && { |
|
|
6399 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6400 | test ! -s conftest.err |
|
|
6401 | }; then |
|
|
6402 | # We can compile using X headers with no special include directory. |
|
|
6403 | ac_x_includes= |
|
|
6404 | else |
|
|
6405 | echo "$as_me: failed program was:" >&5 |
|
|
6406 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6407 | |
|
|
6408 | for ac_dir in $ac_x_header_dirs; do |
|
|
6409 | if test -r "$ac_dir/X11/Xlib.h"; then |
|
|
6410 | ac_x_includes=$ac_dir |
|
|
6411 | break |
|
|
6412 | fi |
|
|
6413 | done |
|
|
6414 | fi |
|
|
6415 | |
|
|
6416 | rm -f conftest.err conftest.$ac_ext |
|
|
6417 | fi # $ac_x_includes = no |
|
|
6418 | |
|
|
6419 | if test "$ac_x_libraries" = no; then |
|
|
6420 | # Check for the libraries. |
|
|
6421 | # See if we find them without any special options. |
|
|
6422 | # Don't add to $LIBS permanently. |
|
|
6423 | ac_save_LIBS=$LIBS |
|
|
6424 | LIBS="-lX11 $LIBS" |
|
|
6425 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6426 | /* confdefs.h. */ |
|
|
6427 | _ACEOF |
|
|
6428 | cat confdefs.h >>conftest.$ac_ext |
|
|
6429 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6430 | /* end confdefs.h. */ |
|
|
6431 | #include <X11/Xlib.h> |
|
|
6432 | int |
|
|
6433 | main () |
|
|
6434 | { |
|
|
6435 | XrmInitialize () |
|
|
6436 | ; |
|
|
6437 | return 0; |
|
|
6438 | } |
|
|
6439 | _ACEOF |
|
|
6440 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6441 | if { (ac_try="$ac_link" |
|
|
6442 | case "(($ac_try" in |
|
|
6443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6444 | *) ac_try_echo=$ac_try;; |
|
|
6445 | esac |
|
|
6446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6447 | (eval "$ac_link") 2>conftest.er1 |
|
|
6448 | ac_status=$? |
|
|
6449 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6450 | rm -f conftest.er1 |
|
|
6451 | cat conftest.err >&5 |
|
|
6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6453 | (exit $ac_status); } && { |
|
|
6454 | test -z "$ac_cxx_werror_flag" || |
|
|
6455 | test ! -s conftest.err |
|
|
6456 | } && test -s conftest$ac_exeext && |
|
|
6457 | $as_test_x conftest$ac_exeext; then |
|
|
6458 | LIBS=$ac_save_LIBS |
|
|
6459 | # We can link X programs with no special library path. |
|
|
6460 | ac_x_libraries= |
|
|
6461 | else |
|
|
6462 | echo "$as_me: failed program was:" >&5 |
|
|
6463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6464 | |
|
|
6465 | LIBS=$ac_save_LIBS |
|
|
6466 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
|
|
6467 | do |
|
|
6468 | # Don't even attempt the hair of trying to link an X program! |
|
|
6469 | for ac_extension in a so sl; do |
|
|
6470 | if test -r "$ac_dir/libX11.$ac_extension"; then |
|
|
6471 | ac_x_libraries=$ac_dir |
|
|
6472 | break 2 |
|
|
6473 | fi |
|
|
6474 | done |
|
|
6475 | done |
|
|
6476 | fi |
|
|
6477 | |
|
|
6478 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6479 | conftest$ac_exeext conftest.$ac_ext |
|
|
6480 | fi # $ac_x_libraries = no |
|
|
6481 | |
|
|
6482 | case $ac_x_includes,$ac_x_libraries in #( |
|
|
6483 | no,* | *,no | *\'*) |
|
|
6484 | # Didn't find X, or a directory has "'" in its name. |
|
|
6485 | ac_cv_have_x="have_x=no";; #( |
|
|
6486 | *) |
|
|
6487 | # Record where we found X for the cache. |
|
|
6488 | ac_cv_have_x="have_x=yes\ |
|
|
6489 | ac_x_includes='$ac_x_includes'\ |
|
|
6490 | ac_x_libraries='$ac_x_libraries'" |
|
|
6491 | esac |
|
|
6492 | fi |
|
|
6493 | ;; #( |
|
|
6494 | *) have_x=yes;; |
|
|
6495 | esac |
|
|
6496 | eval "$ac_cv_have_x" |
|
|
6497 | fi # $with_x != no |
|
|
6498 | |
|
|
6499 | if test "$have_x" != yes; then |
|
|
6500 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
|
|
6501 | echo "${ECHO_T}$have_x" >&6; } |
|
|
6502 | no_x=yes |
|
|
6503 | else |
|
|
6504 | # If each of the values was on the command line, it overrides each guess. |
|
|
6505 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
|
|
6506 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
|
|
6507 | # Update the cache value to reflect the command line values. |
|
|
6508 | ac_cv_have_x="have_x=yes\ |
|
|
6509 | ac_x_includes='$x_includes'\ |
|
|
6510 | ac_x_libraries='$x_libraries'" |
|
|
6511 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
|
|
6512 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
|
|
6513 | fi |
|
|
6514 | |
|
|
6515 | if test "$no_x" = yes; then |
|
|
6516 | # Not all programs may use this symbol, but it does not hurt to define it. |
|
|
6517 | |
|
|
6518 | cat >>confdefs.h <<\_ACEOF |
|
|
6519 | #define X_DISPLAY_MISSING 1 |
|
|
6520 | _ACEOF |
|
|
6521 | |
|
|
6522 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
|
|
6523 | else |
|
|
6524 | if test -n "$x_includes"; then |
|
|
6525 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
|
|
6526 | fi |
|
|
6527 | |
|
|
6528 | # It would also be nice to do this for all -L options, not just this one. |
|
|
6529 | if test -n "$x_libraries"; then |
|
|
6530 | X_LIBS="$X_LIBS -L$x_libraries" |
|
|
6531 | # For Solaris; some versions of Sun CC require a space after -R and |
|
|
6532 | # others require no space. Words are not sufficient . . . . |
|
|
6533 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
|
|
6534 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
|
|
6535 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
|
|
6536 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
|
|
6537 | ac_cxx_werror_flag=yes |
|
|
6538 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6539 | /* confdefs.h. */ |
|
|
6540 | _ACEOF |
|
|
6541 | cat confdefs.h >>conftest.$ac_ext |
|
|
6542 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6543 | /* end confdefs.h. */ |
|
|
6544 | |
|
|
6545 | int |
|
|
6546 | main () |
|
|
6547 | { |
|
|
6548 | |
|
|
6549 | ; |
|
|
6550 | return 0; |
|
|
6551 | } |
|
|
6552 | _ACEOF |
|
|
6553 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6554 | if { (ac_try="$ac_link" |
|
|
6555 | case "(($ac_try" in |
|
|
6556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6557 | *) ac_try_echo=$ac_try;; |
|
|
6558 | esac |
|
|
6559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6560 | (eval "$ac_link") 2>conftest.er1 |
|
|
6561 | ac_status=$? |
|
|
6562 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6563 | rm -f conftest.er1 |
|
|
6564 | cat conftest.err >&5 |
|
|
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6566 | (exit $ac_status); } && { |
|
|
6567 | test -z "$ac_cxx_werror_flag" || |
|
|
6568 | test ! -s conftest.err |
|
|
6569 | } && test -s conftest$ac_exeext && |
|
|
6570 | $as_test_x conftest$ac_exeext; then |
|
|
6571 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6572 | echo "${ECHO_T}no" >&6; } |
|
|
6573 | X_LIBS="$X_LIBS -R$x_libraries" |
|
|
6574 | else |
|
|
6575 | echo "$as_me: failed program was:" >&5 |
|
|
6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6577 | |
|
|
6578 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
|
|
6579 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6580 | /* confdefs.h. */ |
|
|
6581 | _ACEOF |
|
|
6582 | cat confdefs.h >>conftest.$ac_ext |
|
|
6583 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6584 | /* end confdefs.h. */ |
|
|
6585 | |
|
|
6586 | int |
|
|
6587 | main () |
|
|
6588 | { |
|
|
6589 | |
|
|
6590 | ; |
|
|
6591 | return 0; |
|
|
6592 | } |
|
|
6593 | _ACEOF |
|
|
6594 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6595 | if { (ac_try="$ac_link" |
|
|
6596 | case "(($ac_try" in |
|
|
6597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6598 | *) ac_try_echo=$ac_try;; |
|
|
6599 | esac |
|
|
6600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6601 | (eval "$ac_link") 2>conftest.er1 |
|
|
6602 | ac_status=$? |
|
|
6603 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6604 | rm -f conftest.er1 |
|
|
6605 | cat conftest.err >&5 |
|
|
6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6607 | (exit $ac_status); } && { |
|
|
6608 | test -z "$ac_cxx_werror_flag" || |
|
|
6609 | test ! -s conftest.err |
|
|
6610 | } && test -s conftest$ac_exeext && |
|
|
6611 | $as_test_x conftest$ac_exeext; then |
|
|
6612 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6613 | echo "${ECHO_T}yes" >&6; } |
|
|
6614 | X_LIBS="$X_LIBS -R $x_libraries" |
|
|
6615 | else |
|
|
6616 | echo "$as_me: failed program was:" >&5 |
|
|
6617 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6618 | |
|
|
6619 | { echo "$as_me:$LINENO: result: neither works" >&5 |
|
|
6620 | echo "${ECHO_T}neither works" >&6; } |
|
|
6621 | fi |
|
|
6622 | |
|
|
6623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6624 | conftest$ac_exeext conftest.$ac_ext |
|
|
6625 | fi |
|
|
6626 | |
|
|
6627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6628 | conftest$ac_exeext conftest.$ac_ext |
|
|
6629 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
|
|
6630 | LIBS=$ac_xsave_LIBS |
|
|
6631 | fi |
|
|
6632 | |
|
|
6633 | # Check for system-dependent libraries X programs must link with. |
|
|
6634 | # Do this before checking for the system-independent R6 libraries |
|
|
6635 | # (-lICE), since we may need -lsocket or whatever for X linking. |
|
|
6636 | |
|
|
6637 | if test "$ISC" = yes; then |
|
|
6638 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
|
|
6639 | else |
|
|
6640 | # Martyn Johnson says this is needed for Ultrix, if the X |
|
|
6641 | # libraries were built with DECnet support. And Karl Berry says |
|
|
6642 | # the Alpha needs dnet_stub (dnet does not exist). |
|
|
6643 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
|
|
6644 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6645 | /* confdefs.h. */ |
|
|
6646 | _ACEOF |
|
|
6647 | cat confdefs.h >>conftest.$ac_ext |
|
|
6648 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6649 | /* end confdefs.h. */ |
|
|
6650 | |
|
|
6651 | /* Override any GCC internal prototype to avoid an error. |
|
|
6652 | Use char because int might match the return type of a GCC |
|
|
6653 | builtin and then its argument prototype would still apply. */ |
|
|
6654 | #ifdef __cplusplus |
|
|
6655 | extern "C" |
|
|
6656 | #endif |
|
|
6657 | char XOpenDisplay (); |
|
|
6658 | int |
|
|
6659 | main () |
|
|
6660 | { |
|
|
6661 | return XOpenDisplay (); |
|
|
6662 | ; |
|
|
6663 | return 0; |
|
|
6664 | } |
|
|
6665 | _ACEOF |
|
|
6666 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6667 | if { (ac_try="$ac_link" |
|
|
6668 | case "(($ac_try" in |
|
|
6669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6670 | *) ac_try_echo=$ac_try;; |
|
|
6671 | esac |
|
|
6672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6673 | (eval "$ac_link") 2>conftest.er1 |
|
|
6674 | ac_status=$? |
|
|
6675 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6676 | rm -f conftest.er1 |
|
|
6677 | cat conftest.err >&5 |
|
|
6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6679 | (exit $ac_status); } && { |
|
|
6680 | test -z "$ac_cxx_werror_flag" || |
|
|
6681 | test ! -s conftest.err |
|
|
6682 | } && test -s conftest$ac_exeext && |
|
|
6683 | $as_test_x conftest$ac_exeext; then |
|
|
6684 | : |
|
|
6685 | else |
|
|
6686 | echo "$as_me: failed program was:" >&5 |
|
|
6687 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6688 | |
|
|
6689 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
|
|
6690 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
|
|
6691 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
|
|
6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6693 | else |
|
|
6694 | ac_check_lib_save_LIBS=$LIBS |
|
|
6695 | LIBS="-ldnet $LIBS" |
|
|
6696 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6697 | /* confdefs.h. */ |
|
|
6698 | _ACEOF |
|
|
6699 | cat confdefs.h >>conftest.$ac_ext |
|
|
6700 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6701 | /* end confdefs.h. */ |
|
|
6702 | |
|
|
6703 | /* Override any GCC internal prototype to avoid an error. |
|
|
6704 | Use char because int might match the return type of a GCC |
|
|
6705 | builtin and then its argument prototype would still apply. */ |
|
|
6706 | #ifdef __cplusplus |
|
|
6707 | extern "C" |
|
|
6708 | #endif |
|
|
6709 | char dnet_ntoa (); |
|
|
6710 | int |
|
|
6711 | main () |
|
|
6712 | { |
|
|
6713 | return dnet_ntoa (); |
|
|
6714 | ; |
|
|
6715 | return 0; |
|
|
6716 | } |
|
|
6717 | _ACEOF |
|
|
6718 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6719 | if { (ac_try="$ac_link" |
|
|
6720 | case "(($ac_try" in |
|
|
6721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6722 | *) ac_try_echo=$ac_try;; |
|
|
6723 | esac |
|
|
6724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6725 | (eval "$ac_link") 2>conftest.er1 |
|
|
6726 | ac_status=$? |
|
|
6727 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6728 | rm -f conftest.er1 |
|
|
6729 | cat conftest.err >&5 |
|
|
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6731 | (exit $ac_status); } && { |
|
|
6732 | test -z "$ac_cxx_werror_flag" || |
|
|
6733 | test ! -s conftest.err |
|
|
6734 | } && test -s conftest$ac_exeext && |
|
|
6735 | $as_test_x conftest$ac_exeext; then |
|
|
6736 | ac_cv_lib_dnet_dnet_ntoa=yes |
|
|
6737 | else |
|
|
6738 | echo "$as_me: failed program was:" >&5 |
|
|
6739 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6740 | |
|
|
6741 | ac_cv_lib_dnet_dnet_ntoa=no |
|
|
6742 | fi |
|
|
6743 | |
|
|
6744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6745 | conftest$ac_exeext conftest.$ac_ext |
|
|
6746 | LIBS=$ac_check_lib_save_LIBS |
|
|
6747 | fi |
|
|
6748 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
|
|
6749 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
|
|
6750 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
|
|
6751 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
|
|
6752 | fi |
|
|
6753 | |
|
|
6754 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
|
|
6755 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
|
|
6756 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
|
|
6757 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
|
|
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6759 | else |
|
|
6760 | ac_check_lib_save_LIBS=$LIBS |
|
|
6761 | LIBS="-ldnet_stub $LIBS" |
|
|
6762 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6763 | /* confdefs.h. */ |
|
|
6764 | _ACEOF |
|
|
6765 | cat confdefs.h >>conftest.$ac_ext |
|
|
6766 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6767 | /* end confdefs.h. */ |
|
|
6768 | |
|
|
6769 | /* Override any GCC internal prototype to avoid an error. |
|
|
6770 | Use char because int might match the return type of a GCC |
|
|
6771 | builtin and then its argument prototype would still apply. */ |
|
|
6772 | #ifdef __cplusplus |
|
|
6773 | extern "C" |
|
|
6774 | #endif |
|
|
6775 | char dnet_ntoa (); |
|
|
6776 | int |
|
|
6777 | main () |
|
|
6778 | { |
|
|
6779 | return dnet_ntoa (); |
|
|
6780 | ; |
|
|
6781 | return 0; |
|
|
6782 | } |
|
|
6783 | _ACEOF |
|
|
6784 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6785 | if { (ac_try="$ac_link" |
|
|
6786 | case "(($ac_try" in |
|
|
6787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6788 | *) ac_try_echo=$ac_try;; |
|
|
6789 | esac |
|
|
6790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6791 | (eval "$ac_link") 2>conftest.er1 |
|
|
6792 | ac_status=$? |
|
|
6793 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6794 | rm -f conftest.er1 |
|
|
6795 | cat conftest.err >&5 |
|
|
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6797 | (exit $ac_status); } && { |
|
|
6798 | test -z "$ac_cxx_werror_flag" || |
|
|
6799 | test ! -s conftest.err |
|
|
6800 | } && test -s conftest$ac_exeext && |
|
|
6801 | $as_test_x conftest$ac_exeext; then |
|
|
6802 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
|
|
6803 | else |
|
|
6804 | echo "$as_me: failed program was:" >&5 |
|
|
6805 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6806 | |
|
|
6807 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
|
|
6808 | fi |
|
|
6809 | |
|
|
6810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6811 | conftest$ac_exeext conftest.$ac_ext |
|
|
6812 | LIBS=$ac_check_lib_save_LIBS |
|
|
6813 | fi |
|
|
6814 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
|
|
6815 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
|
|
6816 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
|
|
6817 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
|
|
6818 | fi |
|
|
6819 | |
|
|
6820 | fi |
|
|
6821 | fi |
|
|
6822 | |
|
|
6823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6824 | conftest$ac_exeext conftest.$ac_ext |
|
|
6825 | LIBS="$ac_xsave_LIBS" |
|
|
6826 | |
|
|
6827 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
|
|
6828 | # to get the SysV transport functions. |
|
|
6829 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
|
|
6830 | # needs -lnsl. |
|
|
6831 | # The nsl library prevents programs from opening the X display |
|
|
6832 | # on Irix 5.2, according to T.E. Dickey. |
|
|
6833 | # The functions gethostbyname, getservbyname, and inet_addr are |
|
|
6834 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
|
|
6835 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
6836 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
|
|
6837 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6839 | else |
|
|
6840 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6841 | /* confdefs.h. */ |
|
|
6842 | _ACEOF |
|
|
6843 | cat confdefs.h >>conftest.$ac_ext |
|
|
6844 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6845 | /* end confdefs.h. */ |
|
|
6846 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
6847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6848 | #define gethostbyname innocuous_gethostbyname |
|
|
6849 | |
|
|
6850 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6851 | which can conflict with char gethostbyname (); below. |
|
|
6852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6853 | <limits.h> exists even on freestanding compilers. */ |
|
|
6854 | |
|
|
6855 | #ifdef __STDC__ |
|
|
6856 | # include <limits.h> |
|
|
6857 | #else |
|
|
6858 | # include <assert.h> |
|
|
6859 | #endif |
|
|
6860 | |
|
|
6861 | #undef gethostbyname |
|
|
6862 | |
|
|
6863 | /* Override any GCC internal prototype to avoid an error. |
|
|
6864 | Use char because int might match the return type of a GCC |
|
|
6865 | builtin and then its argument prototype would still apply. */ |
|
|
6866 | #ifdef __cplusplus |
|
|
6867 | extern "C" |
|
|
6868 | #endif |
|
|
6869 | char gethostbyname (); |
|
|
6870 | /* The GNU C library defines this for functions which it implements |
|
|
6871 | to always fail with ENOSYS. Some functions are actually named |
|
|
6872 | something starting with __ and the normal name is an alias. */ |
|
|
6873 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
6874 | choke me |
|
|
6875 | #endif |
|
|
6876 | |
|
|
6877 | int |
|
|
6878 | main () |
|
|
6879 | { |
|
|
6880 | return gethostbyname (); |
|
|
6881 | ; |
|
|
6882 | return 0; |
|
|
6883 | } |
|
|
6884 | _ACEOF |
|
|
6885 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6886 | if { (ac_try="$ac_link" |
|
|
6887 | case "(($ac_try" in |
|
|
6888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6889 | *) ac_try_echo=$ac_try;; |
|
|
6890 | esac |
|
|
6891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6892 | (eval "$ac_link") 2>conftest.er1 |
|
|
6893 | ac_status=$? |
|
|
6894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6895 | rm -f conftest.er1 |
|
|
6896 | cat conftest.err >&5 |
|
|
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6898 | (exit $ac_status); } && { |
|
|
6899 | test -z "$ac_cxx_werror_flag" || |
|
|
6900 | test ! -s conftest.err |
|
|
6901 | } && test -s conftest$ac_exeext && |
|
|
6902 | $as_test_x conftest$ac_exeext; then |
|
|
6903 | ac_cv_func_gethostbyname=yes |
|
|
6904 | else |
|
|
6905 | echo "$as_me: failed program was:" >&5 |
|
|
6906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6907 | |
|
|
6908 | ac_cv_func_gethostbyname=no |
|
|
6909 | fi |
|
|
6910 | |
|
|
6911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6912 | conftest$ac_exeext conftest.$ac_ext |
|
|
6913 | fi |
|
|
6914 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
6915 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
|
|
6916 | |
|
|
6917 | if test $ac_cv_func_gethostbyname = no; then |
|
|
6918 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
6919 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
|
|
6920 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
6921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6922 | else |
|
|
6923 | ac_check_lib_save_LIBS=$LIBS |
|
|
6924 | LIBS="-lnsl $LIBS" |
|
|
6925 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6926 | /* confdefs.h. */ |
|
|
6927 | _ACEOF |
|
|
6928 | cat confdefs.h >>conftest.$ac_ext |
|
|
6929 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6930 | /* end confdefs.h. */ |
|
|
6931 | |
|
|
6932 | /* Override any GCC internal prototype to avoid an error. |
|
|
6933 | Use char because int might match the return type of a GCC |
|
|
6934 | builtin and then its argument prototype would still apply. */ |
|
|
6935 | #ifdef __cplusplus |
|
|
6936 | extern "C" |
|
|
6937 | #endif |
|
|
6938 | char gethostbyname (); |
|
|
6939 | int |
|
|
6940 | main () |
|
|
6941 | { |
|
|
6942 | return gethostbyname (); |
|
|
6943 | ; |
|
|
6944 | return 0; |
|
|
6945 | } |
|
|
6946 | _ACEOF |
|
|
6947 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6948 | if { (ac_try="$ac_link" |
|
|
6949 | case "(($ac_try" in |
|
|
6950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6951 | *) ac_try_echo=$ac_try;; |
|
|
6952 | esac |
|
|
6953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6954 | (eval "$ac_link") 2>conftest.er1 |
|
|
6955 | ac_status=$? |
|
|
6956 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6957 | rm -f conftest.er1 |
|
|
6958 | cat conftest.err >&5 |
|
|
6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6960 | (exit $ac_status); } && { |
|
|
6961 | test -z "$ac_cxx_werror_flag" || |
|
|
6962 | test ! -s conftest.err |
|
|
6963 | } && test -s conftest$ac_exeext && |
|
|
6964 | $as_test_x conftest$ac_exeext; then |
|
|
6965 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
6966 | else |
|
|
6967 | echo "$as_me: failed program was:" >&5 |
|
|
6968 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6969 | |
|
|
6970 | ac_cv_lib_nsl_gethostbyname=no |
|
|
6971 | fi |
|
|
6972 | |
|
|
6973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6974 | conftest$ac_exeext conftest.$ac_ext |
|
|
6975 | LIBS=$ac_check_lib_save_LIBS |
|
|
6976 | fi |
|
|
6977 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
6978 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
6979 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
6980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
6981 | fi |
|
|
6982 | |
|
|
6983 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
|
|
6984 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
|
|
6985 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
|
|
6986 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
|
|
6987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6988 | else |
|
|
6989 | ac_check_lib_save_LIBS=$LIBS |
|
|
6990 | LIBS="-lbsd $LIBS" |
|
|
6991 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6992 | /* confdefs.h. */ |
|
|
6993 | _ACEOF |
|
|
6994 | cat confdefs.h >>conftest.$ac_ext |
|
|
6995 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6996 | /* end confdefs.h. */ |
|
|
6997 | |
|
|
6998 | /* Override any GCC internal prototype to avoid an error. |
|
|
6999 | Use char because int might match the return type of a GCC |
|
|
7000 | builtin and then its argument prototype would still apply. */ |
|
|
7001 | #ifdef __cplusplus |
|
|
7002 | extern "C" |
|
|
7003 | #endif |
|
|
7004 | char gethostbyname (); |
|
|
7005 | int |
|
|
7006 | main () |
|
|
7007 | { |
|
|
7008 | return gethostbyname (); |
|
|
7009 | ; |
|
|
7010 | return 0; |
|
|
7011 | } |
|
|
7012 | _ACEOF |
|
|
7013 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7014 | if { (ac_try="$ac_link" |
|
|
7015 | case "(($ac_try" in |
|
|
7016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7017 | *) ac_try_echo=$ac_try;; |
|
|
7018 | esac |
|
|
7019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7020 | (eval "$ac_link") 2>conftest.er1 |
|
|
7021 | ac_status=$? |
|
|
7022 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7023 | rm -f conftest.er1 |
|
|
7024 | cat conftest.err >&5 |
|
|
7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7026 | (exit $ac_status); } && { |
|
|
7027 | test -z "$ac_cxx_werror_flag" || |
|
|
7028 | test ! -s conftest.err |
|
|
7029 | } && test -s conftest$ac_exeext && |
|
|
7030 | $as_test_x conftest$ac_exeext; then |
|
|
7031 | ac_cv_lib_bsd_gethostbyname=yes |
|
|
7032 | else |
|
|
7033 | echo "$as_me: failed program was:" >&5 |
|
|
7034 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7035 | |
|
|
7036 | ac_cv_lib_bsd_gethostbyname=no |
|
|
7037 | fi |
|
|
7038 | |
|
|
7039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7040 | conftest$ac_exeext conftest.$ac_ext |
|
|
7041 | LIBS=$ac_check_lib_save_LIBS |
|
|
7042 | fi |
|
|
7043 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
|
|
7044 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
|
|
7045 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
|
|
7046 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
|
|
7047 | fi |
|
|
7048 | |
|
|
7049 | fi |
|
|
7050 | fi |
|
|
7051 | |
|
|
7052 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
|
|
7053 | # socket/setsockopt and other routines are undefined under SCO ODT |
|
|
7054 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
|
|
7055 | # on later versions), says Simon Leinen: it contains gethostby* |
|
|
7056 | # variants that don't use the name server (or something). -lsocket |
|
|
7057 | # must be given before -lnsl if both are needed. We assume that |
|
|
7058 | # if connect needs -lnsl, so does gethostbyname. |
|
|
7059 | { echo "$as_me:$LINENO: checking for connect" >&5 |
|
|
7060 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
|
|
7061 | if test "${ac_cv_func_connect+set}" = set; then |
|
|
7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7063 | else |
|
|
7064 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7065 | /* confdefs.h. */ |
|
|
7066 | _ACEOF |
|
|
7067 | cat confdefs.h >>conftest.$ac_ext |
|
|
7068 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7069 | /* end confdefs.h. */ |
|
|
7070 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
|
|
7071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7072 | #define connect innocuous_connect |
|
|
7073 | |
|
|
7074 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7075 | which can conflict with char connect (); below. |
|
|
7076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7077 | <limits.h> exists even on freestanding compilers. */ |
|
|
7078 | |
|
|
7079 | #ifdef __STDC__ |
|
|
7080 | # include <limits.h> |
|
|
7081 | #else |
|
|
7082 | # include <assert.h> |
|
|
7083 | #endif |
|
|
7084 | |
|
|
7085 | #undef connect |
|
|
7086 | |
|
|
7087 | /* Override any GCC internal prototype to avoid an error. |
|
|
7088 | Use char because int might match the return type of a GCC |
|
|
7089 | builtin and then its argument prototype would still apply. */ |
|
|
7090 | #ifdef __cplusplus |
|
|
7091 | extern "C" |
|
|
7092 | #endif |
|
|
7093 | char connect (); |
|
|
7094 | /* The GNU C library defines this for functions which it implements |
|
|
7095 | to always fail with ENOSYS. Some functions are actually named |
|
|
7096 | something starting with __ and the normal name is an alias. */ |
|
|
7097 | #if defined __stub_connect || defined __stub___connect |
|
|
7098 | choke me |
|
|
7099 | #endif |
|
|
7100 | |
|
|
7101 | int |
|
|
7102 | main () |
|
|
7103 | { |
|
|
7104 | return connect (); |
|
|
7105 | ; |
|
|
7106 | return 0; |
|
|
7107 | } |
|
|
7108 | _ACEOF |
|
|
7109 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7110 | if { (ac_try="$ac_link" |
|
|
7111 | case "(($ac_try" in |
|
|
7112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7113 | *) ac_try_echo=$ac_try;; |
|
|
7114 | esac |
|
|
7115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7116 | (eval "$ac_link") 2>conftest.er1 |
|
|
7117 | ac_status=$? |
|
|
7118 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7119 | rm -f conftest.er1 |
|
|
7120 | cat conftest.err >&5 |
|
|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7122 | (exit $ac_status); } && { |
|
|
7123 | test -z "$ac_cxx_werror_flag" || |
|
|
7124 | test ! -s conftest.err |
|
|
7125 | } && test -s conftest$ac_exeext && |
|
|
7126 | $as_test_x conftest$ac_exeext; then |
|
|
7127 | ac_cv_func_connect=yes |
|
|
7128 | else |
|
|
7129 | echo "$as_me: failed program was:" >&5 |
|
|
7130 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7131 | |
|
|
7132 | ac_cv_func_connect=no |
|
|
7133 | fi |
|
|
7134 | |
|
|
7135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7136 | conftest$ac_exeext conftest.$ac_ext |
|
|
7137 | fi |
|
|
7138 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
7139 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
|
|
7140 | |
|
|
7141 | if test $ac_cv_func_connect = no; then |
|
|
7142 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
|
|
7143 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
|
|
7144 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
|
|
7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7146 | else |
|
|
7147 | ac_check_lib_save_LIBS=$LIBS |
|
|
7148 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
|
|
7149 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7150 | /* confdefs.h. */ |
|
|
7151 | _ACEOF |
|
|
7152 | cat confdefs.h >>conftest.$ac_ext |
|
|
7153 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7154 | /* end confdefs.h. */ |
|
|
7155 | |
|
|
7156 | /* Override any GCC internal prototype to avoid an error. |
|
|
7157 | Use char because int might match the return type of a GCC |
|
|
7158 | builtin and then its argument prototype would still apply. */ |
|
|
7159 | #ifdef __cplusplus |
|
|
7160 | extern "C" |
|
|
7161 | #endif |
|
|
7162 | char connect (); |
|
|
7163 | int |
|
|
7164 | main () |
|
|
7165 | { |
|
|
7166 | return connect (); |
|
|
7167 | ; |
|
|
7168 | return 0; |
|
|
7169 | } |
|
|
7170 | _ACEOF |
|
|
7171 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7172 | if { (ac_try="$ac_link" |
|
|
7173 | case "(($ac_try" in |
|
|
7174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7175 | *) ac_try_echo=$ac_try;; |
|
|
7176 | esac |
|
|
7177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7178 | (eval "$ac_link") 2>conftest.er1 |
|
|
7179 | ac_status=$? |
|
|
7180 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7181 | rm -f conftest.er1 |
|
|
7182 | cat conftest.err >&5 |
|
|
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7184 | (exit $ac_status); } && { |
|
|
7185 | test -z "$ac_cxx_werror_flag" || |
|
|
7186 | test ! -s conftest.err |
|
|
7187 | } && test -s conftest$ac_exeext && |
|
|
7188 | $as_test_x conftest$ac_exeext; then |
|
|
7189 | ac_cv_lib_socket_connect=yes |
|
|
7190 | else |
|
|
7191 | echo "$as_me: failed program was:" >&5 |
|
|
7192 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7193 | |
|
|
7194 | ac_cv_lib_socket_connect=no |
|
|
7195 | fi |
|
|
7196 | |
|
|
7197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7198 | conftest$ac_exeext conftest.$ac_ext |
|
|
7199 | LIBS=$ac_check_lib_save_LIBS |
|
|
7200 | fi |
|
|
7201 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
|
|
7202 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
|
|
7203 | if test $ac_cv_lib_socket_connect = yes; then |
|
|
7204 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
|
7205 | fi |
|
|
7206 | |
|
|
7207 | fi |
|
|
7208 | |
|
|
7209 | # Guillermo Gomez says -lposix is necessary on A/UX. |
|
|
7210 | { echo "$as_me:$LINENO: checking for remove" >&5 |
|
|
7211 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
|
|
7212 | if test "${ac_cv_func_remove+set}" = set; then |
|
|
7213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7214 | else |
|
|
7215 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7216 | /* confdefs.h. */ |
|
|
7217 | _ACEOF |
|
|
7218 | cat confdefs.h >>conftest.$ac_ext |
|
|
7219 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7220 | /* end confdefs.h. */ |
|
|
7221 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
|
|
7222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7223 | #define remove innocuous_remove |
|
|
7224 | |
|
|
7225 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7226 | which can conflict with char remove (); below. |
|
|
7227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7228 | <limits.h> exists even on freestanding compilers. */ |
|
|
7229 | |
|
|
7230 | #ifdef __STDC__ |
|
|
7231 | # include <limits.h> |
|
|
7232 | #else |
|
|
7233 | # include <assert.h> |
|
|
7234 | #endif |
|
|
7235 | |
|
|
7236 | #undef remove |
|
|
7237 | |
|
|
7238 | /* Override any GCC internal prototype to avoid an error. |
|
|
7239 | Use char because int might match the return type of a GCC |
|
|
7240 | builtin and then its argument prototype would still apply. */ |
|
|
7241 | #ifdef __cplusplus |
|
|
7242 | extern "C" |
|
|
7243 | #endif |
|
|
7244 | char remove (); |
|
|
7245 | /* The GNU C library defines this for functions which it implements |
|
|
7246 | to always fail with ENOSYS. Some functions are actually named |
|
|
7247 | something starting with __ and the normal name is an alias. */ |
|
|
7248 | #if defined __stub_remove || defined __stub___remove |
|
|
7249 | choke me |
|
|
7250 | #endif |
|
|
7251 | |
|
|
7252 | int |
|
|
7253 | main () |
|
|
7254 | { |
|
|
7255 | return remove (); |
|
|
7256 | ; |
|
|
7257 | return 0; |
|
|
7258 | } |
|
|
7259 | _ACEOF |
|
|
7260 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7261 | if { (ac_try="$ac_link" |
|
|
7262 | case "(($ac_try" in |
|
|
7263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7264 | *) ac_try_echo=$ac_try;; |
|
|
7265 | esac |
|
|
7266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7267 | (eval "$ac_link") 2>conftest.er1 |
|
|
7268 | ac_status=$? |
|
|
7269 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7270 | rm -f conftest.er1 |
|
|
7271 | cat conftest.err >&5 |
|
|
7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7273 | (exit $ac_status); } && { |
|
|
7274 | test -z "$ac_cxx_werror_flag" || |
|
|
7275 | test ! -s conftest.err |
|
|
7276 | } && test -s conftest$ac_exeext && |
|
|
7277 | $as_test_x conftest$ac_exeext; then |
|
|
7278 | ac_cv_func_remove=yes |
|
|
7279 | else |
|
|
7280 | echo "$as_me: failed program was:" >&5 |
|
|
7281 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7282 | |
|
|
7283 | ac_cv_func_remove=no |
|
|
7284 | fi |
|
|
7285 | |
|
|
7286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7287 | conftest$ac_exeext conftest.$ac_ext |
|
|
7288 | fi |
|
|
7289 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
7290 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
|
|
7291 | |
|
|
7292 | if test $ac_cv_func_remove = no; then |
|
|
7293 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
|
|
7294 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
|
|
7295 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
|
|
7296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7297 | else |
|
|
7298 | ac_check_lib_save_LIBS=$LIBS |
|
|
7299 | LIBS="-lposix $LIBS" |
|
|
7300 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7301 | /* confdefs.h. */ |
|
|
7302 | _ACEOF |
|
|
7303 | cat confdefs.h >>conftest.$ac_ext |
|
|
7304 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7305 | /* end confdefs.h. */ |
|
|
7306 | |
|
|
7307 | /* Override any GCC internal prototype to avoid an error. |
|
|
7308 | Use char because int might match the return type of a GCC |
|
|
7309 | builtin and then its argument prototype would still apply. */ |
|
|
7310 | #ifdef __cplusplus |
|
|
7311 | extern "C" |
|
|
7312 | #endif |
|
|
7313 | char remove (); |
|
|
7314 | int |
|
|
7315 | main () |
|
|
7316 | { |
|
|
7317 | return remove (); |
|
|
7318 | ; |
|
|
7319 | return 0; |
|
|
7320 | } |
|
|
7321 | _ACEOF |
|
|
7322 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7323 | if { (ac_try="$ac_link" |
|
|
7324 | case "(($ac_try" in |
|
|
7325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7326 | *) ac_try_echo=$ac_try;; |
|
|
7327 | esac |
|
|
7328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7329 | (eval "$ac_link") 2>conftest.er1 |
|
|
7330 | ac_status=$? |
|
|
7331 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7332 | rm -f conftest.er1 |
|
|
7333 | cat conftest.err >&5 |
|
|
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7335 | (exit $ac_status); } && { |
|
|
7336 | test -z "$ac_cxx_werror_flag" || |
|
|
7337 | test ! -s conftest.err |
|
|
7338 | } && test -s conftest$ac_exeext && |
|
|
7339 | $as_test_x conftest$ac_exeext; then |
|
|
7340 | ac_cv_lib_posix_remove=yes |
|
|
7341 | else |
|
|
7342 | echo "$as_me: failed program was:" >&5 |
|
|
7343 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7344 | |
|
|
7345 | ac_cv_lib_posix_remove=no |
|
|
7346 | fi |
|
|
7347 | |
|
|
7348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7349 | conftest$ac_exeext conftest.$ac_ext |
|
|
7350 | LIBS=$ac_check_lib_save_LIBS |
|
|
7351 | fi |
|
|
7352 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
|
7353 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
|
|
7354 | if test $ac_cv_lib_posix_remove = yes; then |
|
|
7355 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
|
7356 | fi |
|
|
7357 | |
|
|
7358 | fi |
|
|
7359 | |
|
|
7360 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
|
|
7361 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
|
|
7362 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
|
|
7363 | if test "${ac_cv_func_shmat+set}" = set; then |
|
|
7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7365 | else |
|
|
7366 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7367 | /* confdefs.h. */ |
|
|
7368 | _ACEOF |
|
|
7369 | cat confdefs.h >>conftest.$ac_ext |
|
|
7370 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7371 | /* end confdefs.h. */ |
|
|
7372 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
|
|
7373 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7374 | #define shmat innocuous_shmat |
|
|
7375 | |
|
|
7376 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7377 | which can conflict with char shmat (); below. |
|
|
7378 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7379 | <limits.h> exists even on freestanding compilers. */ |
|
|
7380 | |
|
|
7381 | #ifdef __STDC__ |
|
|
7382 | # include <limits.h> |
|
|
7383 | #else |
|
|
7384 | # include <assert.h> |
|
|
7385 | #endif |
|
|
7386 | |
|
|
7387 | #undef shmat |
|
|
7388 | |
|
|
7389 | /* Override any GCC internal prototype to avoid an error. |
|
|
7390 | Use char because int might match the return type of a GCC |
|
|
7391 | builtin and then its argument prototype would still apply. */ |
|
|
7392 | #ifdef __cplusplus |
|
|
7393 | extern "C" |
|
|
7394 | #endif |
|
|
7395 | char shmat (); |
|
|
7396 | /* The GNU C library defines this for functions which it implements |
|
|
7397 | to always fail with ENOSYS. Some functions are actually named |
|
|
7398 | something starting with __ and the normal name is an alias. */ |
|
|
7399 | #if defined __stub_shmat || defined __stub___shmat |
|
|
7400 | choke me |
|
|
7401 | #endif |
|
|
7402 | |
|
|
7403 | int |
|
|
7404 | main () |
|
|
7405 | { |
|
|
7406 | return shmat (); |
|
|
7407 | ; |
|
|
7408 | return 0; |
|
|
7409 | } |
|
|
7410 | _ACEOF |
|
|
7411 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7412 | if { (ac_try="$ac_link" |
|
|
7413 | case "(($ac_try" in |
|
|
7414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7415 | *) ac_try_echo=$ac_try;; |
|
|
7416 | esac |
|
|
7417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7418 | (eval "$ac_link") 2>conftest.er1 |
|
|
7419 | ac_status=$? |
|
|
7420 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7421 | rm -f conftest.er1 |
|
|
7422 | cat conftest.err >&5 |
|
|
7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7424 | (exit $ac_status); } && { |
|
|
7425 | test -z "$ac_cxx_werror_flag" || |
|
|
7426 | test ! -s conftest.err |
|
|
7427 | } && test -s conftest$ac_exeext && |
|
|
7428 | $as_test_x conftest$ac_exeext; then |
|
|
7429 | ac_cv_func_shmat=yes |
|
|
7430 | else |
|
|
7431 | echo "$as_me: failed program was:" >&5 |
|
|
7432 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7433 | |
|
|
7434 | ac_cv_func_shmat=no |
|
|
7435 | fi |
|
|
7436 | |
|
|
7437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7438 | conftest$ac_exeext conftest.$ac_ext |
|
|
7439 | fi |
|
|
7440 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
7441 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
|
|
7442 | |
|
|
7443 | if test $ac_cv_func_shmat = no; then |
|
|
7444 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
|
|
7445 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
|
|
7446 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
|
|
7447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7448 | else |
|
|
7449 | ac_check_lib_save_LIBS=$LIBS |
|
|
7450 | LIBS="-lipc $LIBS" |
|
|
7451 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7452 | /* confdefs.h. */ |
|
|
7453 | _ACEOF |
|
|
7454 | cat confdefs.h >>conftest.$ac_ext |
|
|
7455 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7456 | /* end confdefs.h. */ |
|
|
7457 | |
|
|
7458 | /* Override any GCC internal prototype to avoid an error. |
|
|
7459 | Use char because int might match the return type of a GCC |
|
|
7460 | builtin and then its argument prototype would still apply. */ |
|
|
7461 | #ifdef __cplusplus |
|
|
7462 | extern "C" |
|
|
7463 | #endif |
|
|
7464 | char shmat (); |
|
|
7465 | int |
|
|
7466 | main () |
|
|
7467 | { |
|
|
7468 | return shmat (); |
|
|
7469 | ; |
|
|
7470 | return 0; |
|
|
7471 | } |
|
|
7472 | _ACEOF |
|
|
7473 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7474 | if { (ac_try="$ac_link" |
|
|
7475 | case "(($ac_try" in |
|
|
7476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7477 | *) ac_try_echo=$ac_try;; |
|
|
7478 | esac |
|
|
7479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7480 | (eval "$ac_link") 2>conftest.er1 |
|
|
7481 | ac_status=$? |
|
|
7482 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7483 | rm -f conftest.er1 |
|
|
7484 | cat conftest.err >&5 |
|
|
7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7486 | (exit $ac_status); } && { |
|
|
7487 | test -z "$ac_cxx_werror_flag" || |
|
|
7488 | test ! -s conftest.err |
|
|
7489 | } && test -s conftest$ac_exeext && |
|
|
7490 | $as_test_x conftest$ac_exeext; then |
|
|
7491 | ac_cv_lib_ipc_shmat=yes |
|
|
7492 | else |
|
|
7493 | echo "$as_me: failed program was:" >&5 |
|
|
7494 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7495 | |
|
|
7496 | ac_cv_lib_ipc_shmat=no |
|
|
7497 | fi |
|
|
7498 | |
|
|
7499 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7500 | conftest$ac_exeext conftest.$ac_ext |
|
|
7501 | LIBS=$ac_check_lib_save_LIBS |
|
|
7502 | fi |
|
|
7503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
|
|
7504 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
|
|
7505 | if test $ac_cv_lib_ipc_shmat = yes; then |
|
|
7506 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
|
|
7507 | fi |
|
|
7508 | |
|
|
7509 | fi |
|
|
7510 | fi |
|
|
7511 | |
|
|
7512 | # Check for libraries that X11R6 Xt/Xaw programs need. |
|
|
7513 | ac_save_LDFLAGS=$LDFLAGS |
|
|
7514 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
|
|
7515 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
|
|
7516 | # check for ICE first), but we must link in the order -lSM -lICE or |
|
|
7517 | # we get undefined symbols. So assume we have SM if we have ICE. |
|
|
7518 | # These have to be linked with before -lX11, unlike the other |
|
|
7519 | # libraries we check for below, so use a different variable. |
|
|
7520 | # John Interrante, Karl Berry |
|
|
7521 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
|
|
7522 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
|
|
7523 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
|
|
7524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7525 | else |
|
|
7526 | ac_check_lib_save_LIBS=$LIBS |
|
|
7527 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
|
|
7528 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7529 | /* confdefs.h. */ |
|
|
7530 | _ACEOF |
|
|
7531 | cat confdefs.h >>conftest.$ac_ext |
|
|
7532 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7533 | /* end confdefs.h. */ |
|
|
7534 | |
|
|
7535 | /* Override any GCC internal prototype to avoid an error. |
|
|
7536 | Use char because int might match the return type of a GCC |
|
|
7537 | builtin and then its argument prototype would still apply. */ |
|
|
7538 | #ifdef __cplusplus |
|
|
7539 | extern "C" |
|
|
7540 | #endif |
|
|
7541 | char IceConnectionNumber (); |
|
|
7542 | int |
|
|
7543 | main () |
|
|
7544 | { |
|
|
7545 | return IceConnectionNumber (); |
|
|
7546 | ; |
|
|
7547 | return 0; |
|
|
7548 | } |
|
|
7549 | _ACEOF |
|
|
7550 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7551 | if { (ac_try="$ac_link" |
|
|
7552 | case "(($ac_try" in |
|
|
7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7554 | *) ac_try_echo=$ac_try;; |
|
|
7555 | esac |
|
|
7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7557 | (eval "$ac_link") 2>conftest.er1 |
|
|
7558 | ac_status=$? |
|
|
7559 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7560 | rm -f conftest.er1 |
|
|
7561 | cat conftest.err >&5 |
|
|
7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7563 | (exit $ac_status); } && { |
|
|
7564 | test -z "$ac_cxx_werror_flag" || |
|
|
7565 | test ! -s conftest.err |
|
|
7566 | } && test -s conftest$ac_exeext && |
|
|
7567 | $as_test_x conftest$ac_exeext; then |
|
|
7568 | ac_cv_lib_ICE_IceConnectionNumber=yes |
|
|
7569 | else |
|
|
7570 | echo "$as_me: failed program was:" >&5 |
|
|
7571 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7572 | |
|
|
7573 | ac_cv_lib_ICE_IceConnectionNumber=no |
|
|
7574 | fi |
|
|
7575 | |
|
|
7576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7577 | conftest$ac_exeext conftest.$ac_ext |
|
|
7578 | LIBS=$ac_check_lib_save_LIBS |
|
|
7579 | fi |
|
|
7580 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
|
|
7581 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
|
|
7582 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
|
|
7583 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
|
|
7584 | fi |
|
|
7585 | |
|
|
7586 | LDFLAGS=$ac_save_LDFLAGS |
|
|
7587 | |
|
|
7588 | fi |
|
|
7589 | |
|
|
7590 | |
|
|
7591 | AFTERIMAGE_CFLAGS= |
|
|
7592 | AFTERIMAGE_LIBS= |
|
|
7593 | AFTERIMAGE_VERSION= |
|
|
7594 | |
|
|
7595 | if test x$support_afterimage = xyes; then |
|
|
7596 | support_afterimage=no |
|
|
7597 | |
|
|
7598 | if test "x$afterimage_config" = "x" ; then |
|
|
7599 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
7600 | set dummy afterimage-config; ac_word=$2 |
|
|
7601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
7602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
7603 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
|
|
7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7605 | else |
|
|
7606 | case $afterimage_config in |
|
|
7607 | [\\/]* | ?:[\\/]*) |
|
|
7608 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
7609 | ;; |
|
|
7610 | *) |
|
|
7611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7612 | for as_dir in $PATH |
|
|
7613 | do |
|
|
7614 | IFS=$as_save_IFS |
|
|
7615 | test -z "$as_dir" && as_dir=. |
|
|
7616 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7618 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
7619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7620 | break 2 |
|
|
7621 | fi |
|
|
7622 | done |
|
|
7623 | done |
|
|
7624 | IFS=$as_save_IFS |
|
|
7625 | |
|
|
7626 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
7627 | ;; |
|
|
7628 | esac |
|
|
7629 | fi |
|
|
7630 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
7631 | if test -n "$afterimage_config"; then |
|
|
7632 | { echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
|
|
7633 | echo "${ECHO_T}$afterimage_config" >&6; } |
|
|
7634 | else |
|
|
7635 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7636 | echo "${ECHO_T}no" >&6; } |
|
|
7637 | fi |
|
|
7638 | |
|
|
7639 | |
|
|
7640 | fi |
|
|
7641 | if test "x$afterimage_config" != "xno" ; then |
|
|
7642 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
|
|
7643 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
|
|
7644 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
7645 | if test -n "$xAFTERIMAGE_VERSION" ; then |
|
|
7646 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
7647 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
7648 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
|
|
7649 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
7650 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
7651 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
|
|
7652 | support_afterimage=yes |
|
|
7653 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
|
|
7654 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
|
|
7655 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
|
|
7656 | fi |
|
|
7657 | fi |
|
|
7658 | fi |
|
|
7659 | if test "x$support_afterimage" = "xyes"; then |
|
|
7660 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
7661 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
7662 | else |
|
|
7663 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7664 | echo "${ECHO_T}no" >&6; } |
|
|
7665 | fi |
|
|
7666 | fi |
|
|
7667 | fi |
|
|
7668 | |
|
|
7669 | |
|
|
7670 | |
|
|
7671 | |
|
|
7672 | |
|
|
7673 | |
|
|
7674 | |
|
|
7675 | |
|
|
7676 | for ac_header in \ |
|
|
7677 | sys/byteorder.h \ |
|
|
7678 | sys/ioctl.h \ |
|
|
7679 | sys/sockio.h \ |
|
|
7680 | sys/strredir.h \ |
|
|
7681 | stdint.h \ |
|
|
7682 | wchar.h \ |
|
|
7683 | cwchar \ |
|
|
7684 | |
|
|
7685 | do |
|
|
7686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7687 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7688 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7692 | fi |
|
|
7693 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7694 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7695 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7696 | else |
|
|
7697 | # Is the header compilable? |
|
|
7698 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
7699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
7700 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7701 | /* confdefs.h. */ |
|
|
7702 | _ACEOF |
|
|
7703 | cat confdefs.h >>conftest.$ac_ext |
|
|
7704 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7705 | /* end confdefs.h. */ |
|
|
7706 | $ac_includes_default |
|
|
7707 | #include <$ac_header> |
|
|
7708 | _ACEOF |
|
|
7709 | rm -f conftest.$ac_objext |
|
|
7710 | if { (ac_try="$ac_compile" |
|
|
7711 | case "(($ac_try" in |
|
|
7712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7713 | *) ac_try_echo=$ac_try;; |
|
|
7714 | esac |
|
|
7715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7716 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7717 | ac_status=$? |
|
|
7718 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7719 | rm -f conftest.er1 |
|
|
7720 | cat conftest.err >&5 |
|
|
7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7722 | (exit $ac_status); } && { |
|
|
7723 | test -z "$ac_cxx_werror_flag" || |
|
|
7724 | test ! -s conftest.err |
|
|
7725 | } && test -s conftest.$ac_objext; then |
|
|
7726 | ac_header_compiler=yes |
|
|
7727 | else |
|
|
7728 | echo "$as_me: failed program was:" >&5 |
|
|
7729 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7730 | |
|
|
7731 | ac_header_compiler=no |
|
|
7732 | fi |
|
|
7733 | |
|
|
7734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7735 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
7736 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
7737 | |
|
|
7738 | # Is the header present? |
|
|
7739 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
7740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
7741 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7742 | /* confdefs.h. */ |
|
|
7743 | _ACEOF |
|
|
7744 | cat confdefs.h >>conftest.$ac_ext |
|
|
7745 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7746 | /* end confdefs.h. */ |
|
|
7747 | #include <$ac_header> |
|
|
7748 | _ACEOF |
|
|
7749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
7750 | case "(($ac_try" in |
|
|
7751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7752 | *) ac_try_echo=$ac_try;; |
|
|
7753 | esac |
|
|
7754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
7756 | ac_status=$? |
|
|
7757 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7758 | rm -f conftest.er1 |
|
|
7759 | cat conftest.err >&5 |
|
|
7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7761 | (exit $ac_status); } >/dev/null && { |
|
|
7762 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
7763 | test ! -s conftest.err |
|
|
7764 | }; then |
|
|
7765 | ac_header_preproc=yes |
|
|
7766 | else |
|
|
7767 | echo "$as_me: failed program was:" >&5 |
|
|
7768 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7769 | |
|
|
7770 | ac_header_preproc=no |
|
|
7771 | fi |
|
|
7772 | |
|
|
7773 | rm -f conftest.err conftest.$ac_ext |
|
|
7774 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
7775 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
7776 | |
|
|
7777 | # So? What about this header? |
|
|
7778 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
7779 | yes:no: ) |
|
|
7780 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
7781 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
7782 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
7783 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
7784 | ac_header_preproc=yes |
|
|
7785 | ;; |
|
|
7786 | no:yes:* ) |
|
|
7787 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
7788 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
7789 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
7790 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
7791 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
7792 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
7793 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
7794 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
7795 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
7796 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
7797 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
7798 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
7799 | |
|
|
7800 | ;; |
|
|
7801 | esac |
|
|
7802 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7804 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7806 | else |
|
|
7807 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
7808 | fi |
|
|
7809 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7811 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7812 | |
|
|
7813 | fi |
|
|
7814 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7815 | cat >>confdefs.h <<_ACEOF |
|
|
7816 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7817 | _ACEOF |
|
|
7818 | |
|
|
7819 | fi |
|
|
7820 | |
|
|
7821 | done |
|
|
7822 | |
|
|
7823 | |
7682 | echo "$as_me:$LINENO: checking for XPointer" >&5 |
7824 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7683 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6 |
7825 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7684 | if test "${rxvt_cv_xpointer+set}" = set; then |
7826 | if test "${rxvt_cv_xpointer+set}" = set; then |
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7686 | else |
7828 | else |
7687 | cat >conftest.$ac_ext <<_ACEOF |
7829 | cat >conftest.$ac_ext <<_ACEOF |
7688 | /* confdefs.h. */ |
7830 | /* confdefs.h. */ |
… | |
… | |
7698 | ; |
7840 | ; |
7699 | return 0; |
7841 | return 0; |
7700 | } |
7842 | } |
7701 | _ACEOF |
7843 | _ACEOF |
7702 | rm -f conftest.$ac_objext |
7844 | rm -f conftest.$ac_objext |
|
|
7845 | if { (ac_try="$ac_compile" |
|
|
7846 | case "(($ac_try" in |
|
|
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7848 | *) ac_try_echo=$ac_try;; |
|
|
7849 | esac |
7703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7704 | (eval $ac_compile) 2>conftest.er1 |
7851 | (eval "$ac_compile") 2>conftest.er1 |
7705 | ac_status=$? |
7852 | ac_status=$? |
7706 | grep -v '^ *+' conftest.er1 >conftest.err |
7853 | grep -v '^ *+' conftest.er1 >conftest.err |
7707 | rm -f conftest.er1 |
7854 | rm -f conftest.er1 |
7708 | cat conftest.err >&5 |
7855 | cat conftest.err >&5 |
7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7710 | (exit $ac_status); } && |
7857 | (exit $ac_status); } && { |
7711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7858 | test -z "$ac_cxx_werror_flag" || |
7712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7859 | test ! -s conftest.err |
7713 | (eval $ac_try) 2>&5 |
7860 | } && test -s conftest.$ac_objext; then |
7714 | ac_status=$? |
|
|
7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7716 | (exit $ac_status); }; } && |
|
|
7717 | { ac_try='test -s conftest.$ac_objext' |
|
|
7718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7719 | (eval $ac_try) 2>&5 |
|
|
7720 | ac_status=$? |
|
|
7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7722 | (exit $ac_status); }; }; then |
|
|
7723 | rxvt_cv_xpointer=yes |
7861 | rxvt_cv_xpointer=yes |
7724 | else |
7862 | else |
7725 | echo "$as_me: failed program was:" >&5 |
7863 | echo "$as_me: failed program was:" >&5 |
7726 | sed 's/^/| /' conftest.$ac_ext >&5 |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 |
7727 | |
7865 | |
7728 | rxvt_cv_xpointer=no |
7866 | rxvt_cv_xpointer=no |
7729 | fi |
7867 | fi |
|
|
7868 | |
7730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7731 | fi |
7870 | fi |
7732 | echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 |
7871 | { echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 |
7733 | echo "${ECHO_T}$rxvt_cv_xpointer" >&6 |
7872 | echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } |
7734 | if test x$rxvt_cv_xpointer = xyes; then |
7873 | if test x$rxvt_cv_xpointer = xyes; then |
7735 | |
7874 | |
7736 | cat >>confdefs.h <<\_ACEOF |
7875 | cat >>confdefs.h <<\_ACEOF |
7737 | #define HAVE_XPOINTER 1 |
7876 | #define HAVE_XPOINTER 1 |
7738 | _ACEOF |
7877 | _ACEOF |
7739 | |
7878 | |
7740 | fi |
7879 | fi |
7741 | LIBS=$ac_save_LIBS |
|
|
7742 | CFLAGS=$ac_save_CFLAGS |
|
|
7743 | |
7880 | |
7744 | |
7881 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7745 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
7882 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7746 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7883 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7747 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7749 | else |
7885 | else |
7750 | cat >conftest.$ac_ext <<_ACEOF |
7886 | cat >conftest.$ac_ext <<_ACEOF |
7751 | /* confdefs.h. */ |
7887 | /* confdefs.h. */ |
7752 | _ACEOF |
7888 | _ACEOF |
7753 | cat confdefs.h >>conftest.$ac_ext |
7889 | cat confdefs.h >>conftest.$ac_ext |
7754 | cat >>conftest.$ac_ext <<_ACEOF |
7890 | cat >>conftest.$ac_ext <<_ACEOF |
7755 | /* end confdefs.h. */ |
7891 | /* end confdefs.h. */ |
7756 | |
7892 | |
|
|
7893 | #define XLIB_ILLEGAL_ACCESS |
|
|
7894 | #include <X11/Xlib.h> |
|
|
7895 | |
7757 | int |
7896 | int |
7758 | main () |
7897 | main () |
7759 | { |
7898 | { |
7760 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7761 | #ifndef __cplusplus |
|
|
7762 | /* Ultrix mips cc rejects this. */ |
|
|
7763 | typedef int charset[2]; |
|
|
7764 | const charset x; |
|
|
7765 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7766 | char const *const *ccp; |
|
|
7767 | char **p; |
|
|
7768 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7769 | struct point {int x, y;}; |
|
|
7770 | static struct point const zero = {0,0}; |
|
|
7771 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7772 | It does not let you subtract one const X* pointer from another in |
|
|
7773 | an arm of an if-expression whose if-part is not a constant |
|
|
7774 | expression */ |
|
|
7775 | const char *g = "string"; |
|
|
7776 | ccp = &g + (g ? g-g : 0); |
|
|
7777 | /* HPUX 7.0 cc rejects these. */ |
|
|
7778 | ++ccp; |
|
|
7779 | p = (char**) ccp; |
|
|
7780 | ccp = (char const *const *) p; |
|
|
7781 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7782 | char *t; |
|
|
7783 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7784 | |
7899 | |
7785 | *t++ = 0; |
7900 | Display *dpy; |
7786 | } |
7901 | dpy->xdefaults = (char *)0; |
7787 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7788 | int x[] = {25, 17}; |
|
|
7789 | const int *foo = &x[0]; |
|
|
7790 | ++foo; |
|
|
7791 | } |
|
|
7792 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7793 | typedef const int *iptr; |
|
|
7794 | iptr p = 0; |
|
|
7795 | ++p; |
|
|
7796 | } |
|
|
7797 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7798 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7799 | struct s { int j; const int *ap[3]; }; |
|
|
7800 | struct s *b; b->j = 5; |
|
|
7801 | } |
|
|
7802 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7803 | const int foo = 10; |
|
|
7804 | } |
|
|
7805 | #endif |
|
|
7806 | |
7902 | |
7807 | ; |
7903 | ; |
7808 | return 0; |
7904 | return 0; |
7809 | } |
7905 | } |
7810 | _ACEOF |
7906 | _ACEOF |
7811 | rm -f conftest.$ac_objext |
7907 | rm -f conftest.$ac_objext |
|
|
7908 | if { (ac_try="$ac_compile" |
|
|
7909 | case "(($ac_try" in |
|
|
7910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7911 | *) ac_try_echo=$ac_try;; |
|
|
7912 | esac |
7812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7813 | (eval $ac_compile) 2>conftest.er1 |
7914 | (eval "$ac_compile") 2>conftest.er1 |
7814 | ac_status=$? |
7915 | ac_status=$? |
7815 | grep -v '^ *+' conftest.er1 >conftest.err |
7916 | grep -v '^ *+' conftest.er1 >conftest.err |
7816 | rm -f conftest.er1 |
7917 | rm -f conftest.er1 |
7817 | cat conftest.err >&5 |
7918 | cat conftest.err >&5 |
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7819 | (exit $ac_status); } && |
7920 | (exit $ac_status); } && { |
7820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7921 | test -z "$ac_cxx_werror_flag" || |
7821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7922 | test ! -s conftest.err |
7822 | (eval $ac_try) 2>&5 |
7923 | } && test -s conftest.$ac_objext; then |
7823 | ac_status=$? |
7924 | rxvt_xlib_illegal_access=yes |
7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7825 | (exit $ac_status); }; } && |
|
|
7826 | { ac_try='test -s conftest.$ac_objext' |
|
|
7827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7828 | (eval $ac_try) 2>&5 |
|
|
7829 | ac_status=$? |
|
|
7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7831 | (exit $ac_status); }; }; then |
|
|
7832 | ac_cv_c_const=yes |
|
|
7833 | else |
7925 | else |
7834 | echo "$as_me: failed program was:" >&5 |
7926 | echo "$as_me: failed program was:" >&5 |
7835 | sed 's/^/| /' conftest.$ac_ext >&5 |
7927 | sed 's/^/| /' conftest.$ac_ext >&5 |
7836 | |
7928 | |
7837 | ac_cv_c_const=no |
7929 | rxvt_xlib_illegal_access=no |
|
|
7930 | |
7838 | fi |
7931 | fi |
|
|
7932 | |
7839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7840 | fi |
7934 | fi |
7841 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
7935 | { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
7842 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
7936 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } |
7843 | if test $ac_cv_c_const = no; then |
7937 | if test x$rxvt_xlib_illegal_access = xyes; then |
7844 | |
7938 | |
7845 | cat >>confdefs.h <<\_ACEOF |
7939 | cat >>confdefs.h <<\_ACEOF |
7846 | #define const |
7940 | #define XLIB_ILLEGAL_ACCESS 1 |
7847 | _ACEOF |
7941 | _ACEOF |
7848 | |
7942 | |
7849 | fi |
7943 | fi |
7850 | |
7944 | |
7851 | echo "$as_me:$LINENO: checking for inline" >&5 |
7945 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7852 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
7946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7853 | if test "${ac_cv_c_inline+set}" = set; then |
7947 | if test "${ac_cv_type_mode_t+set}" = set; then |
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7855 | else |
7949 | else |
7856 | ac_cv_c_inline=no |
|
|
7857 | for ac_kw in inline __inline__ __inline; do |
|
|
7858 | cat >conftest.$ac_ext <<_ACEOF |
7950 | cat >conftest.$ac_ext <<_ACEOF |
7859 | /* confdefs.h. */ |
7951 | /* confdefs.h. */ |
7860 | _ACEOF |
7952 | _ACEOF |
7861 | cat confdefs.h >>conftest.$ac_ext |
7953 | cat confdefs.h >>conftest.$ac_ext |
7862 | cat >>conftest.$ac_ext <<_ACEOF |
7954 | cat >>conftest.$ac_ext <<_ACEOF |
7863 | /* end confdefs.h. */ |
7955 | /* end confdefs.h. */ |
7864 | #ifndef __cplusplus |
7956 | $ac_includes_default |
7865 | typedef int foo_t; |
7957 | typedef mode_t ac__type_new_; |
7866 | static $ac_kw foo_t static_foo () {return 0; } |
7958 | int |
7867 | $ac_kw foo_t foo () {return 0; } |
7959 | main () |
7868 | #endif |
7960 | { |
7869 | |
7961 | if ((ac__type_new_ *) 0) |
|
|
7962 | return 0; |
|
|
7963 | if (sizeof (ac__type_new_)) |
|
|
7964 | return 0; |
|
|
7965 | ; |
|
|
7966 | return 0; |
|
|
7967 | } |
7870 | _ACEOF |
7968 | _ACEOF |
7871 | rm -f conftest.$ac_objext |
7969 | rm -f conftest.$ac_objext |
|
|
7970 | if { (ac_try="$ac_compile" |
|
|
7971 | case "(($ac_try" in |
|
|
7972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7973 | *) ac_try_echo=$ac_try;; |
|
|
7974 | esac |
7872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7873 | (eval $ac_compile) 2>conftest.er1 |
7976 | (eval "$ac_compile") 2>conftest.er1 |
7874 | ac_status=$? |
7977 | ac_status=$? |
7875 | grep -v '^ *+' conftest.er1 >conftest.err |
7978 | grep -v '^ *+' conftest.er1 >conftest.err |
7876 | rm -f conftest.er1 |
7979 | rm -f conftest.er1 |
7877 | cat conftest.err >&5 |
7980 | cat conftest.err >&5 |
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7879 | (exit $ac_status); } && |
7982 | (exit $ac_status); } && { |
7880 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7983 | test -z "$ac_cxx_werror_flag" || |
7881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7984 | test ! -s conftest.err |
7882 | (eval $ac_try) 2>&5 |
7985 | } && test -s conftest.$ac_objext; then |
7883 | ac_status=$? |
7986 | ac_cv_type_mode_t=yes |
7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7885 | (exit $ac_status); }; } && |
|
|
7886 | { ac_try='test -s conftest.$ac_objext' |
|
|
7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7888 | (eval $ac_try) 2>&5 |
|
|
7889 | ac_status=$? |
|
|
7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7891 | (exit $ac_status); }; }; then |
|
|
7892 | ac_cv_c_inline=$ac_kw; break |
|
|
7893 | else |
7987 | else |
7894 | echo "$as_me: failed program was:" >&5 |
7988 | echo "$as_me: failed program was:" >&5 |
7895 | sed 's/^/| /' conftest.$ac_ext >&5 |
7989 | sed 's/^/| /' conftest.$ac_ext >&5 |
7896 | |
7990 | |
|
|
7991 | ac_cv_type_mode_t=no |
7897 | fi |
7992 | fi |
|
|
7993 | |
7898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7899 | done |
|
|
7900 | |
|
|
7901 | fi |
7995 | fi |
7902 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
7996 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
7903 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
7997 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
|
|
7998 | if test $ac_cv_type_mode_t = yes; then |
|
|
7999 | : |
|
|
8000 | else |
7904 | |
8001 | |
7905 | |
|
|
7906 | case $ac_cv_c_inline in |
|
|
7907 | inline | yes) ;; |
|
|
7908 | *) |
|
|
7909 | case $ac_cv_c_inline in |
|
|
7910 | no) ac_val=;; |
|
|
7911 | *) ac_val=$ac_cv_c_inline;; |
|
|
7912 | esac |
|
|
7913 | cat >>confdefs.h <<_ACEOF |
8002 | cat >>confdefs.h <<_ACEOF |
7914 | #ifndef __cplusplus |
8003 | #define mode_t int |
7915 | #define inline $ac_val |
|
|
7916 | #endif |
|
|
7917 | _ACEOF |
8004 | _ACEOF |
7918 | ;; |
|
|
7919 | esac |
|
|
7920 | |
8005 | |
|
|
8006 | fi |
7921 | |
8007 | |
7922 | |
|
|
7923 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
8008 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
7924 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
8009 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
7925 | if test "${ac_cv_type_mode_t+set}" = set; then |
8010 | if test "${ac_cv_type_pid_t+set}" = set; then |
7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7927 | else |
8012 | else |
7928 | cat >conftest.$ac_ext <<_ACEOF |
8013 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8014 | /* confdefs.h. */ |
|
|
8015 | _ACEOF |
|
|
8016 | cat confdefs.h >>conftest.$ac_ext |
|
|
8017 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8018 | /* end confdefs.h. */ |
|
|
8019 | $ac_includes_default |
|
|
8020 | typedef pid_t ac__type_new_; |
|
|
8021 | int |
|
|
8022 | main () |
|
|
8023 | { |
|
|
8024 | if ((ac__type_new_ *) 0) |
|
|
8025 | return 0; |
|
|
8026 | if (sizeof (ac__type_new_)) |
|
|
8027 | return 0; |
|
|
8028 | ; |
|
|
8029 | return 0; |
|
|
8030 | } |
|
|
8031 | _ACEOF |
|
|
8032 | rm -f conftest.$ac_objext |
|
|
8033 | if { (ac_try="$ac_compile" |
|
|
8034 | case "(($ac_try" in |
|
|
8035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8036 | *) ac_try_echo=$ac_try;; |
|
|
8037 | esac |
|
|
8038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8039 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8040 | ac_status=$? |
|
|
8041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8042 | rm -f conftest.er1 |
|
|
8043 | cat conftest.err >&5 |
|
|
8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8045 | (exit $ac_status); } && { |
|
|
8046 | test -z "$ac_cxx_werror_flag" || |
|
|
8047 | test ! -s conftest.err |
|
|
8048 | } && test -s conftest.$ac_objext; then |
|
|
8049 | ac_cv_type_pid_t=yes |
|
|
8050 | else |
|
|
8051 | echo "$as_me: failed program was:" >&5 |
|
|
8052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8053 | |
|
|
8054 | ac_cv_type_pid_t=no |
|
|
8055 | fi |
|
|
8056 | |
|
|
8057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8058 | fi |
|
|
8059 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
|
|
8060 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
|
|
8061 | if test $ac_cv_type_pid_t = yes; then |
|
|
8062 | : |
|
|
8063 | else |
|
|
8064 | |
|
|
8065 | cat >>confdefs.h <<_ACEOF |
|
|
8066 | #define pid_t int |
|
|
8067 | _ACEOF |
|
|
8068 | |
|
|
8069 | fi |
|
|
8070 | |
|
|
8071 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
|
|
8072 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
|
|
8073 | if test "${ac_cv_type_uid_t+set}" = set; then |
|
|
8074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8075 | else |
|
|
8076 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8077 | /* confdefs.h. */ |
|
|
8078 | _ACEOF |
|
|
8079 | cat confdefs.h >>conftest.$ac_ext |
|
|
8080 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8081 | /* end confdefs.h. */ |
|
|
8082 | #include <sys/types.h> |
|
|
8083 | |
|
|
8084 | _ACEOF |
|
|
8085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
8086 | $EGREP "uid_t" >/dev/null 2>&1; then |
|
|
8087 | ac_cv_type_uid_t=yes |
|
|
8088 | else |
|
|
8089 | ac_cv_type_uid_t=no |
|
|
8090 | fi |
|
|
8091 | rm -f conftest* |
|
|
8092 | |
|
|
8093 | fi |
|
|
8094 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
|
|
8095 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
|
|
8096 | if test $ac_cv_type_uid_t = no; then |
|
|
8097 | |
|
|
8098 | cat >>confdefs.h <<\_ACEOF |
|
|
8099 | #define uid_t int |
|
|
8100 | _ACEOF |
|
|
8101 | |
|
|
8102 | |
|
|
8103 | cat >>confdefs.h <<\_ACEOF |
|
|
8104 | #define gid_t int |
|
|
8105 | _ACEOF |
|
|
8106 | |
|
|
8107 | fi |
|
|
8108 | |
|
|
8109 | |
|
|
8110 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
8111 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
8112 | if test "${ac_cv_c_int16_t+set}" = set; then |
|
|
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8114 | else |
|
|
8115 | ac_cv_c_int16_t=no |
|
|
8116 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8117 | 'long long int' 'short int' 'signed char'; do |
|
|
8118 | cat >conftest.$ac_ext <<_ACEOF |
7929 | /* confdefs.h. */ |
8119 | /* confdefs.h. */ |
7930 | _ACEOF |
8120 | _ACEOF |
7931 | cat confdefs.h >>conftest.$ac_ext |
8121 | cat confdefs.h >>conftest.$ac_ext |
7932 | cat >>conftest.$ac_ext <<_ACEOF |
8122 | cat >>conftest.$ac_ext <<_ACEOF |
7933 | /* end confdefs.h. */ |
8123 | /* end confdefs.h. */ |
7934 | $ac_includes_default |
8124 | $ac_includes_default |
7935 | int |
8125 | int |
7936 | main () |
8126 | main () |
7937 | { |
8127 | { |
7938 | if ((mode_t *) 0) |
8128 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7939 | return 0; |
8129 | test_array [0] = 0 |
7940 | if (sizeof (mode_t)) |
8130 | |
7941 | return 0; |
|
|
7942 | ; |
8131 | ; |
7943 | return 0; |
8132 | return 0; |
7944 | } |
8133 | } |
7945 | _ACEOF |
8134 | _ACEOF |
7946 | rm -f conftest.$ac_objext |
8135 | rm -f conftest.$ac_objext |
|
|
8136 | if { (ac_try="$ac_compile" |
|
|
8137 | case "(($ac_try" in |
|
|
8138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8139 | *) ac_try_echo=$ac_try;; |
|
|
8140 | esac |
7947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7948 | (eval $ac_compile) 2>conftest.er1 |
8142 | (eval "$ac_compile") 2>conftest.er1 |
7949 | ac_status=$? |
8143 | ac_status=$? |
7950 | grep -v '^ *+' conftest.er1 >conftest.err |
8144 | grep -v '^ *+' conftest.er1 >conftest.err |
7951 | rm -f conftest.er1 |
8145 | rm -f conftest.er1 |
7952 | cat conftest.err >&5 |
8146 | cat conftest.err >&5 |
7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7954 | (exit $ac_status); } && |
8148 | (exit $ac_status); } && { |
7955 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8149 | test -z "$ac_cxx_werror_flag" || |
7956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8150 | test ! -s conftest.err |
7957 | (eval $ac_try) 2>&5 |
8151 | } && test -s conftest.$ac_objext; then |
7958 | ac_status=$? |
|
|
7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7960 | (exit $ac_status); }; } && |
|
|
7961 | { ac_try='test -s conftest.$ac_objext' |
|
|
7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7963 | (eval $ac_try) 2>&5 |
|
|
7964 | ac_status=$? |
|
|
7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7966 | (exit $ac_status); }; }; then |
|
|
7967 | ac_cv_type_mode_t=yes |
|
|
7968 | else |
|
|
7969 | echo "$as_me: failed program was:" >&5 |
|
|
7970 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7971 | |
|
|
7972 | ac_cv_type_mode_t=no |
|
|
7973 | fi |
|
|
7974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7975 | fi |
|
|
7976 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
|
|
7977 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
|
|
7978 | if test $ac_cv_type_mode_t = yes; then |
|
|
7979 | : |
|
|
7980 | else |
|
|
7981 | |
|
|
7982 | cat >>confdefs.h <<_ACEOF |
|
|
7983 | #define mode_t int |
|
|
7984 | _ACEOF |
|
|
7985 | |
|
|
7986 | fi |
|
|
7987 | |
|
|
7988 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
|
|
7989 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
|
|
7990 | if test "${ac_cv_type_pid_t+set}" = set; then |
|
|
7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7992 | else |
|
|
7993 | cat >conftest.$ac_ext <<_ACEOF |
8152 | cat >conftest.$ac_ext <<_ACEOF |
7994 | /* confdefs.h. */ |
8153 | /* confdefs.h. */ |
7995 | _ACEOF |
8154 | _ACEOF |
7996 | cat confdefs.h >>conftest.$ac_ext |
8155 | cat confdefs.h >>conftest.$ac_ext |
7997 | cat >>conftest.$ac_ext <<_ACEOF |
8156 | cat >>conftest.$ac_ext <<_ACEOF |
7998 | /* end confdefs.h. */ |
8157 | /* end confdefs.h. */ |
7999 | $ac_includes_default |
8158 | $ac_includes_default |
8000 | int |
8159 | int |
8001 | main () |
8160 | main () |
8002 | { |
8161 | { |
8003 | if ((pid_t *) 0) |
8162 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
8004 | return 0; |
8163 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8005 | if (sizeof (pid_t)) |
8164 | test_array [0] = 0 |
8006 | return 0; |
8165 | |
8007 | ; |
8166 | ; |
8008 | return 0; |
8167 | return 0; |
8009 | } |
8168 | } |
8010 | _ACEOF |
8169 | _ACEOF |
8011 | rm -f conftest.$ac_objext |
8170 | rm -f conftest.$ac_objext |
|
|
8171 | if { (ac_try="$ac_compile" |
|
|
8172 | case "(($ac_try" in |
|
|
8173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8174 | *) ac_try_echo=$ac_try;; |
|
|
8175 | esac |
8012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8013 | (eval $ac_compile) 2>conftest.er1 |
8177 | (eval "$ac_compile") 2>conftest.er1 |
8014 | ac_status=$? |
8178 | ac_status=$? |
8015 | grep -v '^ *+' conftest.er1 >conftest.err |
8179 | grep -v '^ *+' conftest.er1 >conftest.err |
8016 | rm -f conftest.er1 |
8180 | rm -f conftest.er1 |
8017 | cat conftest.err >&5 |
8181 | cat conftest.err >&5 |
8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8019 | (exit $ac_status); } && |
8183 | (exit $ac_status); } && { |
8020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8184 | test -z "$ac_cxx_werror_flag" || |
8021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8185 | test ! -s conftest.err |
8022 | (eval $ac_try) 2>&5 |
8186 | } && test -s conftest.$ac_objext; then |
8023 | ac_status=$? |
8187 | : |
8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8025 | (exit $ac_status); }; } && |
|
|
8026 | { ac_try='test -s conftest.$ac_objext' |
|
|
8027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8028 | (eval $ac_try) 2>&5 |
|
|
8029 | ac_status=$? |
|
|
8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8031 | (exit $ac_status); }; }; then |
|
|
8032 | ac_cv_type_pid_t=yes |
|
|
8033 | else |
8188 | else |
8034 | echo "$as_me: failed program was:" >&5 |
8189 | echo "$as_me: failed program was:" >&5 |
8035 | sed 's/^/| /' conftest.$ac_ext >&5 |
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
8036 | |
8191 | |
8037 | ac_cv_type_pid_t=no |
8192 | case $ac_type in |
|
|
8193 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8194 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
8038 | fi |
8197 | fi |
|
|
8198 | |
8039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8200 | else |
|
|
8201 | echo "$as_me: failed program was:" >&5 |
|
|
8202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8203 | |
|
|
8204 | |
8040 | fi |
8205 | fi |
|
|
8206 | |
|
|
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8208 | test "$ac_cv_c_int16_t" != no && break |
|
|
8209 | done |
|
|
8210 | fi |
8041 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
8211 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
8042 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
8212 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
8043 | if test $ac_cv_type_pid_t = yes; then |
8213 | case $ac_cv_c_int16_t in #( |
8044 | : |
8214 | no|yes) ;; #( |
8045 | else |
8215 | *) |
8046 | |
8216 | |
8047 | cat >>confdefs.h <<_ACEOF |
8217 | cat >>confdefs.h <<_ACEOF |
8048 | #define pid_t int |
8218 | #define int16_t $ac_cv_c_int16_t |
8049 | _ACEOF |
8219 | _ACEOF |
|
|
8220 | ;; |
|
|
8221 | esac |
8050 | |
8222 | |
8051 | fi |
|
|
8052 | |
8223 | |
8053 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
8224 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8054 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
8225 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
8055 | if test "${ac_cv_type_uid_t+set}" = set; then |
8226 | if test "${ac_cv_c_uint16_t+set}" = set; then |
8056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8057 | else |
8228 | else |
|
|
8229 | ac_cv_c_uint16_t=no |
|
|
8230 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8231 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8058 | cat >conftest.$ac_ext <<_ACEOF |
8232 | cat >conftest.$ac_ext <<_ACEOF |
8059 | /* confdefs.h. */ |
|
|
8060 | _ACEOF |
|
|
8061 | cat confdefs.h >>conftest.$ac_ext |
|
|
8062 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8063 | /* end confdefs.h. */ |
|
|
8064 | #include <sys/types.h> |
|
|
8065 | |
|
|
8066 | _ACEOF |
|
|
8067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
8068 | $EGREP "uid_t" >/dev/null 2>&1; then |
|
|
8069 | ac_cv_type_uid_t=yes |
|
|
8070 | else |
|
|
8071 | ac_cv_type_uid_t=no |
|
|
8072 | fi |
|
|
8073 | rm -f conftest* |
|
|
8074 | |
|
|
8075 | fi |
|
|
8076 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
|
|
8077 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
|
|
8078 | if test $ac_cv_type_uid_t = no; then |
|
|
8079 | |
|
|
8080 | cat >>confdefs.h <<\_ACEOF |
|
|
8081 | #define uid_t int |
|
|
8082 | _ACEOF |
|
|
8083 | |
|
|
8084 | |
|
|
8085 | cat >>confdefs.h <<\_ACEOF |
|
|
8086 | #define gid_t int |
|
|
8087 | _ACEOF |
|
|
8088 | |
|
|
8089 | fi |
|
|
8090 | |
|
|
8091 | |
|
|
8092 | echo "$as_me:$LINENO: checking for short" >&5 |
|
|
8093 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
|
|
8094 | if test "${ac_cv_type_short+set}" = set; then |
|
|
8095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8096 | else |
|
|
8097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8098 | /* confdefs.h. */ |
8233 | /* confdefs.h. */ |
8099 | _ACEOF |
8234 | _ACEOF |
8100 | cat confdefs.h >>conftest.$ac_ext |
8235 | cat confdefs.h >>conftest.$ac_ext |
8101 | cat >>conftest.$ac_ext <<_ACEOF |
8236 | cat >>conftest.$ac_ext <<_ACEOF |
8102 | /* end confdefs.h. */ |
8237 | /* end confdefs.h. */ |
8103 | $ac_includes_default |
8238 | $ac_includes_default |
8104 | int |
8239 | int |
8105 | main () |
8240 | main () |
8106 | { |
8241 | { |
8107 | if ((short *) 0) |
8242 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8108 | return 0; |
8243 | test_array [0] = 0 |
8109 | if (sizeof (short)) |
8244 | |
8110 | return 0; |
|
|
8111 | ; |
8245 | ; |
8112 | return 0; |
8246 | return 0; |
8113 | } |
8247 | } |
8114 | _ACEOF |
8248 | _ACEOF |
8115 | rm -f conftest.$ac_objext |
8249 | rm -f conftest.$ac_objext |
|
|
8250 | if { (ac_try="$ac_compile" |
|
|
8251 | case "(($ac_try" in |
|
|
8252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8253 | *) ac_try_echo=$ac_try;; |
|
|
8254 | esac |
8116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8117 | (eval $ac_compile) 2>conftest.er1 |
8256 | (eval "$ac_compile") 2>conftest.er1 |
8118 | ac_status=$? |
8257 | ac_status=$? |
8119 | grep -v '^ *+' conftest.er1 >conftest.err |
8258 | grep -v '^ *+' conftest.er1 >conftest.err |
8120 | rm -f conftest.er1 |
8259 | rm -f conftest.er1 |
8121 | cat conftest.err >&5 |
8260 | cat conftest.err >&5 |
8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8123 | (exit $ac_status); } && |
8262 | (exit $ac_status); } && { |
8124 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8263 | test -z "$ac_cxx_werror_flag" || |
8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8264 | test ! -s conftest.err |
8126 | (eval $ac_try) 2>&5 |
8265 | } && test -s conftest.$ac_objext; then |
8127 | ac_status=$? |
8266 | case $ac_type in |
8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8267 | uint16_t) ac_cv_c_uint16_t=yes ;; |
8129 | (exit $ac_status); }; } && |
8268 | *) ac_cv_c_uint16_t=$ac_type ;; |
8130 | { ac_try='test -s conftest.$ac_objext' |
8269 | esac |
8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8270 | |
8132 | (eval $ac_try) 2>&5 |
|
|
8133 | ac_status=$? |
|
|
8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8135 | (exit $ac_status); }; }; then |
|
|
8136 | ac_cv_type_short=yes |
|
|
8137 | else |
8271 | else |
8138 | echo "$as_me: failed program was:" >&5 |
8272 | echo "$as_me: failed program was:" >&5 |
8139 | sed 's/^/| /' conftest.$ac_ext >&5 |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 |
8140 | |
8274 | |
8141 | ac_cv_type_short=no |
8275 | |
8142 | fi |
8276 | fi |
|
|
8277 | |
8143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8279 | test "$ac_cv_c_uint16_t" != no && break |
|
|
8280 | done |
8144 | fi |
8281 | fi |
8145 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
8282 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8146 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
8283 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8284 | case $ac_cv_c_uint16_t in #( |
|
|
8285 | no|yes) ;; #( |
|
|
8286 | *) |
8147 | |
8287 | |
|
|
8288 | |
|
|
8289 | cat >>confdefs.h <<_ACEOF |
|
|
8290 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8291 | _ACEOF |
|
|
8292 | ;; |
|
|
8293 | esac |
|
|
8294 | |
|
|
8295 | |
8148 | echo "$as_me:$LINENO: checking size of short" >&5 |
8296 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
8149 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
8297 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
8150 | if test "${ac_cv_sizeof_short+set}" = set; then |
8298 | if test "${ac_cv_c_int32_t+set}" = set; then |
8151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8152 | else |
8300 | else |
8153 | if test "$ac_cv_type_short" = yes; then |
8301 | ac_cv_c_int32_t=no |
8154 | # The cast to unsigned long works around a bug in the HP C Compiler |
8302 | for ac_type in 'int32_t' 'int' 'long int' \ |
8155 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
8303 | 'long long int' 'short int' 'signed char'; do |
8156 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8157 | # This bug is HP SR number 8606223364. |
|
|
8158 | if test "$cross_compiling" = yes; then |
|
|
8159 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8160 | cat >conftest.$ac_ext <<_ACEOF |
8304 | cat >conftest.$ac_ext <<_ACEOF |
8161 | /* confdefs.h. */ |
8305 | /* confdefs.h. */ |
8162 | _ACEOF |
8306 | _ACEOF |
8163 | cat confdefs.h >>conftest.$ac_ext |
8307 | cat confdefs.h >>conftest.$ac_ext |
8164 | cat >>conftest.$ac_ext <<_ACEOF |
8308 | cat >>conftest.$ac_ext <<_ACEOF |
8165 | /* end confdefs.h. */ |
8309 | /* end confdefs.h. */ |
8166 | $ac_includes_default |
8310 | $ac_includes_default |
8167 | int |
8311 | int |
8168 | main () |
8312 | main () |
8169 | { |
8313 | { |
8170 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
8314 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8171 | test_array [0] = 0 |
8315 | test_array [0] = 0 |
8172 | |
8316 | |
8173 | ; |
8317 | ; |
8174 | return 0; |
8318 | return 0; |
8175 | } |
8319 | } |
8176 | _ACEOF |
8320 | _ACEOF |
8177 | rm -f conftest.$ac_objext |
8321 | rm -f conftest.$ac_objext |
|
|
8322 | if { (ac_try="$ac_compile" |
|
|
8323 | case "(($ac_try" in |
|
|
8324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8325 | *) ac_try_echo=$ac_try;; |
|
|
8326 | esac |
8178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8179 | (eval $ac_compile) 2>conftest.er1 |
8328 | (eval "$ac_compile") 2>conftest.er1 |
8180 | ac_status=$? |
8329 | ac_status=$? |
8181 | grep -v '^ *+' conftest.er1 >conftest.err |
8330 | grep -v '^ *+' conftest.er1 >conftest.err |
8182 | rm -f conftest.er1 |
8331 | rm -f conftest.er1 |
8183 | cat conftest.err >&5 |
8332 | cat conftest.err >&5 |
8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8185 | (exit $ac_status); } && |
8334 | (exit $ac_status); } && { |
8186 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8335 | test -z "$ac_cxx_werror_flag" || |
8187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8336 | test ! -s conftest.err |
8188 | (eval $ac_try) 2>&5 |
8337 | } && test -s conftest.$ac_objext; then |
8189 | ac_status=$? |
|
|
8190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8191 | (exit $ac_status); }; } && |
|
|
8192 | { ac_try='test -s conftest.$ac_objext' |
|
|
8193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8194 | (eval $ac_try) 2>&5 |
|
|
8195 | ac_status=$? |
|
|
8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8197 | (exit $ac_status); }; }; then |
|
|
8198 | ac_lo=0 ac_mid=0 |
|
|
8199 | while :; do |
|
|
8200 | cat >conftest.$ac_ext <<_ACEOF |
8338 | cat >conftest.$ac_ext <<_ACEOF |
8201 | /* confdefs.h. */ |
8339 | /* confdefs.h. */ |
8202 | _ACEOF |
8340 | _ACEOF |
8203 | cat confdefs.h >>conftest.$ac_ext |
8341 | cat confdefs.h >>conftest.$ac_ext |
8204 | cat >>conftest.$ac_ext <<_ACEOF |
8342 | cat >>conftest.$ac_ext <<_ACEOF |
8205 | /* end confdefs.h. */ |
8343 | /* end confdefs.h. */ |
8206 | $ac_includes_default |
8344 | $ac_includes_default |
8207 | int |
8345 | int |
8208 | main () |
8346 | main () |
8209 | { |
8347 | { |
8210 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
8348 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8349 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8211 | test_array [0] = 0 |
8350 | test_array [0] = 0 |
8212 | |
8351 | |
8213 | ; |
8352 | ; |
8214 | return 0; |
8353 | return 0; |
8215 | } |
8354 | } |
8216 | _ACEOF |
8355 | _ACEOF |
8217 | rm -f conftest.$ac_objext |
8356 | rm -f conftest.$ac_objext |
|
|
8357 | if { (ac_try="$ac_compile" |
|
|
8358 | case "(($ac_try" in |
|
|
8359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8360 | *) ac_try_echo=$ac_try;; |
|
|
8361 | esac |
8218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8219 | (eval $ac_compile) 2>conftest.er1 |
8363 | (eval "$ac_compile") 2>conftest.er1 |
8220 | ac_status=$? |
8364 | ac_status=$? |
8221 | grep -v '^ *+' conftest.er1 >conftest.err |
8365 | grep -v '^ *+' conftest.er1 >conftest.err |
8222 | rm -f conftest.er1 |
8366 | rm -f conftest.er1 |
8223 | cat conftest.err >&5 |
8367 | cat conftest.err >&5 |
8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8225 | (exit $ac_status); } && |
8369 | (exit $ac_status); } && { |
8226 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8370 | test -z "$ac_cxx_werror_flag" || |
8227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8371 | test ! -s conftest.err |
8228 | (eval $ac_try) 2>&5 |
8372 | } && test -s conftest.$ac_objext; then |
8229 | ac_status=$? |
8373 | : |
8230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8231 | (exit $ac_status); }; } && |
|
|
8232 | { ac_try='test -s conftest.$ac_objext' |
|
|
8233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8234 | (eval $ac_try) 2>&5 |
|
|
8235 | ac_status=$? |
|
|
8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8237 | (exit $ac_status); }; }; then |
|
|
8238 | ac_hi=$ac_mid; break |
|
|
8239 | else |
8374 | else |
8240 | echo "$as_me: failed program was:" >&5 |
8375 | echo "$as_me: failed program was:" >&5 |
8241 | sed 's/^/| /' conftest.$ac_ext >&5 |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
8242 | |
8377 | |
8243 | ac_lo=`expr $ac_mid + 1` |
8378 | case $ac_type in |
8244 | if test $ac_lo -le $ac_mid; then |
8379 | int32_t) ac_cv_c_int32_t=yes ;; |
8245 | ac_lo= ac_hi= |
8380 | *) ac_cv_c_int32_t=$ac_type ;; |
8246 | break |
8381 | esac |
8247 | fi |
8382 | |
8248 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8249 | fi |
8383 | fi |
|
|
8384 | |
8250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8251 | done |
|
|
8252 | else |
8386 | else |
8253 | echo "$as_me: failed program was:" >&5 |
8387 | echo "$as_me: failed program was:" >&5 |
8254 | sed 's/^/| /' conftest.$ac_ext >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
8255 | |
8389 | |
|
|
8390 | |
|
|
8391 | fi |
|
|
8392 | |
|
|
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8394 | test "$ac_cv_c_int32_t" != no && break |
|
|
8395 | done |
|
|
8396 | fi |
|
|
8397 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8398 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8399 | case $ac_cv_c_int32_t in #( |
|
|
8400 | no|yes) ;; #( |
|
|
8401 | *) |
|
|
8402 | |
|
|
8403 | cat >>confdefs.h <<_ACEOF |
|
|
8404 | #define int32_t $ac_cv_c_int32_t |
|
|
8405 | _ACEOF |
|
|
8406 | ;; |
|
|
8407 | esac |
|
|
8408 | |
|
|
8409 | |
|
|
8410 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8411 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | ac_cv_c_uint32_t=no |
|
|
8416 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8417 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8256 | cat >conftest.$ac_ext <<_ACEOF |
8418 | cat >conftest.$ac_ext <<_ACEOF |
8257 | /* confdefs.h. */ |
8419 | /* confdefs.h. */ |
8258 | _ACEOF |
8420 | _ACEOF |
8259 | cat confdefs.h >>conftest.$ac_ext |
8421 | cat confdefs.h >>conftest.$ac_ext |
8260 | cat >>conftest.$ac_ext <<_ACEOF |
8422 | cat >>conftest.$ac_ext <<_ACEOF |
8261 | /* end confdefs.h. */ |
8423 | /* end confdefs.h. */ |
8262 | $ac_includes_default |
8424 | $ac_includes_default |
8263 | int |
8425 | int |
8264 | main () |
8426 | main () |
8265 | { |
8427 | { |
8266 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
8428 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8267 | test_array [0] = 0 |
8429 | test_array [0] = 0 |
8268 | |
8430 | |
8269 | ; |
8431 | ; |
8270 | return 0; |
8432 | return 0; |
8271 | } |
8433 | } |
8272 | _ACEOF |
8434 | _ACEOF |
8273 | rm -f conftest.$ac_objext |
8435 | rm -f conftest.$ac_objext |
|
|
8436 | if { (ac_try="$ac_compile" |
|
|
8437 | case "(($ac_try" in |
|
|
8438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8439 | *) ac_try_echo=$ac_try;; |
|
|
8440 | esac |
8274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8275 | (eval $ac_compile) 2>conftest.er1 |
8442 | (eval "$ac_compile") 2>conftest.er1 |
8276 | ac_status=$? |
8443 | ac_status=$? |
8277 | grep -v '^ *+' conftest.er1 >conftest.err |
8444 | grep -v '^ *+' conftest.er1 >conftest.err |
8278 | rm -f conftest.er1 |
8445 | rm -f conftest.er1 |
8279 | cat conftest.err >&5 |
8446 | cat conftest.err >&5 |
8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8281 | (exit $ac_status); } && |
8448 | (exit $ac_status); } && { |
8282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8449 | test -z "$ac_cxx_werror_flag" || |
8283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8450 | test ! -s conftest.err |
8284 | (eval $ac_try) 2>&5 |
8451 | } && test -s conftest.$ac_objext; then |
8285 | ac_status=$? |
8452 | case $ac_type in |
8286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8453 | uint32_t) ac_cv_c_uint32_t=yes ;; |
8287 | (exit $ac_status); }; } && |
8454 | *) ac_cv_c_uint32_t=$ac_type ;; |
8288 | { ac_try='test -s conftest.$ac_objext' |
8455 | esac |
8289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8290 | (eval $ac_try) 2>&5 |
|
|
8291 | ac_status=$? |
|
|
8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8293 | (exit $ac_status); }; }; then |
|
|
8294 | ac_hi=-1 ac_mid=-1 |
|
|
8295 | while :; do |
|
|
8296 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8297 | /* confdefs.h. */ |
|
|
8298 | _ACEOF |
|
|
8299 | cat confdefs.h >>conftest.$ac_ext |
|
|
8300 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8301 | /* end confdefs.h. */ |
|
|
8302 | $ac_includes_default |
|
|
8303 | int |
|
|
8304 | main () |
|
|
8305 | { |
|
|
8306 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
|
|
8307 | test_array [0] = 0 |
|
|
8308 | |
8456 | |
8309 | ; |
|
|
8310 | return 0; |
|
|
8311 | } |
|
|
8312 | _ACEOF |
|
|
8313 | rm -f conftest.$ac_objext |
|
|
8314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8315 | (eval $ac_compile) 2>conftest.er1 |
|
|
8316 | ac_status=$? |
|
|
8317 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8318 | rm -f conftest.er1 |
|
|
8319 | cat conftest.err >&5 |
|
|
8320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8321 | (exit $ac_status); } && |
|
|
8322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8324 | (eval $ac_try) 2>&5 |
|
|
8325 | ac_status=$? |
|
|
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8327 | (exit $ac_status); }; } && |
|
|
8328 | { ac_try='test -s conftest.$ac_objext' |
|
|
8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8330 | (eval $ac_try) 2>&5 |
|
|
8331 | ac_status=$? |
|
|
8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8333 | (exit $ac_status); }; }; then |
|
|
8334 | ac_lo=$ac_mid; break |
|
|
8335 | else |
8457 | else |
8336 | echo "$as_me: failed program was:" >&5 |
8458 | echo "$as_me: failed program was:" >&5 |
8337 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
8338 | |
8460 | |
8339 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8461 | |
8340 | if test $ac_mid -le $ac_hi; then |
|
|
8341 | ac_lo= ac_hi= |
|
|
8342 | break |
|
|
8343 | fi |
|
|
8344 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8345 | fi |
8462 | fi |
|
|
8463 | |
8346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8465 | test "$ac_cv_c_uint32_t" != no && break |
8347 | done |
8466 | done |
8348 | else |
|
|
8349 | echo "$as_me: failed program was:" >&5 |
|
|
8350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8351 | |
|
|
8352 | ac_lo= ac_hi= |
|
|
8353 | fi |
8467 | fi |
8354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8355 | fi |
|
|
8356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8357 | # Binary search between lo and hi bounds. |
|
|
8358 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8359 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8360 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8361 | /* confdefs.h. */ |
|
|
8362 | _ACEOF |
|
|
8363 | cat confdefs.h >>conftest.$ac_ext |
|
|
8364 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8365 | /* end confdefs.h. */ |
|
|
8366 | $ac_includes_default |
|
|
8367 | int |
|
|
8368 | main () |
|
|
8369 | { |
|
|
8370 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
|
|
8371 | test_array [0] = 0 |
|
|
8372 | |
|
|
8373 | ; |
|
|
8374 | return 0; |
|
|
8375 | } |
|
|
8376 | _ACEOF |
|
|
8377 | rm -f conftest.$ac_objext |
|
|
8378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8379 | (eval $ac_compile) 2>conftest.er1 |
|
|
8380 | ac_status=$? |
|
|
8381 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8382 | rm -f conftest.er1 |
|
|
8383 | cat conftest.err >&5 |
|
|
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8385 | (exit $ac_status); } && |
|
|
8386 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8388 | (eval $ac_try) 2>&5 |
|
|
8389 | ac_status=$? |
|
|
8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8391 | (exit $ac_status); }; } && |
|
|
8392 | { ac_try='test -s conftest.$ac_objext' |
|
|
8393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8394 | (eval $ac_try) 2>&5 |
|
|
8395 | ac_status=$? |
|
|
8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8397 | (exit $ac_status); }; }; then |
|
|
8398 | ac_hi=$ac_mid |
|
|
8399 | else |
|
|
8400 | echo "$as_me: failed program was:" >&5 |
|
|
8401 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8402 | |
|
|
8403 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8404 | fi |
|
|
8405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8406 | done |
|
|
8407 | case $ac_lo in |
|
|
8408 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8409 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
|
|
8410 | See \`config.log' for more details." >&5 |
|
|
8411 | echo "$as_me: error: cannot compute sizeof (short), 77 |
|
|
8412 | See \`config.log' for more details." >&2;} |
|
|
8413 | { (exit 1); exit 1; }; } ;; |
|
|
8414 | esac |
|
|
8415 | else |
|
|
8416 | if test "$cross_compiling" = yes; then |
|
|
8417 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
8418 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
8419 | { (exit 1); exit 1; }; } |
|
|
8420 | else |
|
|
8421 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8422 | /* confdefs.h. */ |
|
|
8423 | _ACEOF |
|
|
8424 | cat confdefs.h >>conftest.$ac_ext |
|
|
8425 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8426 | /* end confdefs.h. */ |
|
|
8427 | $ac_includes_default |
|
|
8428 | long longval () { return (long) (sizeof (short)); } |
|
|
8429 | unsigned long ulongval () { return (long) (sizeof (short)); } |
|
|
8430 | #include <stdio.h> |
|
|
8431 | #include <stdlib.h> |
|
|
8432 | int |
|
|
8433 | main () |
|
|
8434 | { |
|
|
8435 | |
|
|
8436 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8437 | if (! f) |
|
|
8438 | exit (1); |
|
|
8439 | if (((long) (sizeof (short))) < 0) |
|
|
8440 | { |
|
|
8441 | long i = longval (); |
|
|
8442 | if (i != ((long) (sizeof (short)))) |
|
|
8443 | exit (1); |
|
|
8444 | fprintf (f, "%ld\n", i); |
|
|
8445 | } |
|
|
8446 | else |
|
|
8447 | { |
|
|
8448 | unsigned long i = ulongval (); |
|
|
8449 | if (i != ((long) (sizeof (short)))) |
|
|
8450 | exit (1); |
|
|
8451 | fprintf (f, "%lu\n", i); |
|
|
8452 | } |
|
|
8453 | exit (ferror (f) || fclose (f) != 0); |
|
|
8454 | |
|
|
8455 | ; |
|
|
8456 | return 0; |
|
|
8457 | } |
|
|
8458 | _ACEOF |
|
|
8459 | rm -f conftest$ac_exeext |
|
|
8460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8461 | (eval $ac_link) 2>&5 |
|
|
8462 | ac_status=$? |
|
|
8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8466 | (eval $ac_try) 2>&5 |
|
|
8467 | ac_status=$? |
|
|
8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8469 | (exit $ac_status); }; }; then |
|
|
8470 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8471 | else |
|
|
8472 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8473 | echo "$as_me: failed program was:" >&5 |
|
|
8474 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8475 | |
|
|
8476 | ( exit $ac_status ) |
|
|
8477 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
|
|
8478 | See \`config.log' for more details." >&5 |
|
|
8479 | echo "$as_me: error: cannot compute sizeof (short), 77 |
|
|
8480 | See \`config.log' for more details." >&2;} |
|
|
8481 | { (exit 1); exit 1; }; } |
|
|
8482 | fi |
|
|
8483 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8484 | fi |
|
|
8485 | fi |
|
|
8486 | rm -f conftest.val |
|
|
8487 | else |
|
|
8488 | ac_cv_sizeof_short=0 |
|
|
8489 | fi |
|
|
8490 | fi |
|
|
8491 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8468 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8492 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
8469 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8470 | case $ac_cv_c_uint32_t in #( |
|
|
8471 | no|yes) ;; #( |
|
|
8472 | *) |
|
|
8473 | |
|
|
8474 | cat >>confdefs.h <<\_ACEOF |
|
|
8475 | #define _UINT32_T 1 |
|
|
8476 | _ACEOF |
|
|
8477 | |
|
|
8478 | |
8493 | cat >>confdefs.h <<_ACEOF |
8479 | cat >>confdefs.h <<_ACEOF |
8494 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8480 | #define uint32_t $ac_cv_c_uint32_t |
8495 | _ACEOF |
8481 | _ACEOF |
8496 | |
8482 | ;; |
8497 | |
|
|
8498 | echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8499 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
|
|
8500 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8502 | else |
|
|
8503 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8504 | /* confdefs.h. */ |
|
|
8505 | _ACEOF |
|
|
8506 | cat confdefs.h >>conftest.$ac_ext |
|
|
8507 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8508 | /* end confdefs.h. */ |
|
|
8509 | $ac_includes_default |
|
|
8510 | int |
|
|
8511 | main () |
|
|
8512 | { |
|
|
8513 | if ((int *) 0) |
|
|
8514 | return 0; |
|
|
8515 | if (sizeof (int)) |
|
|
8516 | return 0; |
|
|
8517 | ; |
|
|
8518 | return 0; |
|
|
8519 | } |
|
|
8520 | _ACEOF |
|
|
8521 | rm -f conftest.$ac_objext |
|
|
8522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8523 | (eval $ac_compile) 2>conftest.er1 |
|
|
8524 | ac_status=$? |
|
|
8525 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8526 | rm -f conftest.er1 |
|
|
8527 | cat conftest.err >&5 |
|
|
8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8529 | (exit $ac_status); } && |
|
|
8530 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8532 | (eval $ac_try) 2>&5 |
|
|
8533 | ac_status=$? |
|
|
8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8535 | (exit $ac_status); }; } && |
|
|
8536 | { ac_try='test -s conftest.$ac_objext' |
|
|
8537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8538 | (eval $ac_try) 2>&5 |
|
|
8539 | ac_status=$? |
|
|
8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8541 | (exit $ac_status); }; }; then |
|
|
8542 | ac_cv_type_int=yes |
|
|
8543 | else |
|
|
8544 | echo "$as_me: failed program was:" >&5 |
|
|
8545 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8546 | |
|
|
8547 | ac_cv_type_int=no |
|
|
8548 | fi |
|
|
8549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8550 | fi |
|
|
8551 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8552 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
|
|
8553 | |
|
|
8554 | echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8555 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
|
|
8556 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8558 | else |
|
|
8559 | if test "$ac_cv_type_int" = yes; then |
|
|
8560 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
8561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8563 | # This bug is HP SR number 8606223364. |
|
|
8564 | if test "$cross_compiling" = yes; then |
|
|
8565 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8566 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8567 | /* confdefs.h. */ |
|
|
8568 | _ACEOF |
|
|
8569 | cat confdefs.h >>conftest.$ac_ext |
|
|
8570 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8571 | /* end confdefs.h. */ |
|
|
8572 | $ac_includes_default |
|
|
8573 | int |
|
|
8574 | main () |
|
|
8575 | { |
|
|
8576 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
|
|
8577 | test_array [0] = 0 |
|
|
8578 | |
|
|
8579 | ; |
|
|
8580 | return 0; |
|
|
8581 | } |
|
|
8582 | _ACEOF |
|
|
8583 | rm -f conftest.$ac_objext |
|
|
8584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8585 | (eval $ac_compile) 2>conftest.er1 |
|
|
8586 | ac_status=$? |
|
|
8587 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8588 | rm -f conftest.er1 |
|
|
8589 | cat conftest.err >&5 |
|
|
8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8591 | (exit $ac_status); } && |
|
|
8592 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8594 | (eval $ac_try) 2>&5 |
|
|
8595 | ac_status=$? |
|
|
8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8597 | (exit $ac_status); }; } && |
|
|
8598 | { ac_try='test -s conftest.$ac_objext' |
|
|
8599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8600 | (eval $ac_try) 2>&5 |
|
|
8601 | ac_status=$? |
|
|
8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8603 | (exit $ac_status); }; }; then |
|
|
8604 | ac_lo=0 ac_mid=0 |
|
|
8605 | while :; do |
|
|
8606 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8607 | /* confdefs.h. */ |
|
|
8608 | _ACEOF |
|
|
8609 | cat confdefs.h >>conftest.$ac_ext |
|
|
8610 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8611 | /* end confdefs.h. */ |
|
|
8612 | $ac_includes_default |
|
|
8613 | int |
|
|
8614 | main () |
|
|
8615 | { |
|
|
8616 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
|
|
8617 | test_array [0] = 0 |
|
|
8618 | |
|
|
8619 | ; |
|
|
8620 | return 0; |
|
|
8621 | } |
|
|
8622 | _ACEOF |
|
|
8623 | rm -f conftest.$ac_objext |
|
|
8624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8625 | (eval $ac_compile) 2>conftest.er1 |
|
|
8626 | ac_status=$? |
|
|
8627 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8628 | rm -f conftest.er1 |
|
|
8629 | cat conftest.err >&5 |
|
|
8630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8631 | (exit $ac_status); } && |
|
|
8632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8634 | (eval $ac_try) 2>&5 |
|
|
8635 | ac_status=$? |
|
|
8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8637 | (exit $ac_status); }; } && |
|
|
8638 | { ac_try='test -s conftest.$ac_objext' |
|
|
8639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8640 | (eval $ac_try) 2>&5 |
|
|
8641 | ac_status=$? |
|
|
8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8643 | (exit $ac_status); }; }; then |
|
|
8644 | ac_hi=$ac_mid; break |
|
|
8645 | else |
|
|
8646 | echo "$as_me: failed program was:" >&5 |
|
|
8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8648 | |
|
|
8649 | ac_lo=`expr $ac_mid + 1` |
|
|
8650 | if test $ac_lo -le $ac_mid; then |
|
|
8651 | ac_lo= ac_hi= |
|
|
8652 | break |
|
|
8653 | fi |
|
|
8654 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8655 | fi |
|
|
8656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8657 | done |
|
|
8658 | else |
|
|
8659 | echo "$as_me: failed program was:" >&5 |
|
|
8660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8661 | |
|
|
8662 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8663 | /* confdefs.h. */ |
|
|
8664 | _ACEOF |
|
|
8665 | cat confdefs.h >>conftest.$ac_ext |
|
|
8666 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8667 | /* end confdefs.h. */ |
|
|
8668 | $ac_includes_default |
|
|
8669 | int |
|
|
8670 | main () |
|
|
8671 | { |
|
|
8672 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
|
|
8673 | test_array [0] = 0 |
|
|
8674 | |
|
|
8675 | ; |
|
|
8676 | return 0; |
|
|
8677 | } |
|
|
8678 | _ACEOF |
|
|
8679 | rm -f conftest.$ac_objext |
|
|
8680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8681 | (eval $ac_compile) 2>conftest.er1 |
|
|
8682 | ac_status=$? |
|
|
8683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8684 | rm -f conftest.er1 |
|
|
8685 | cat conftest.err >&5 |
|
|
8686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8687 | (exit $ac_status); } && |
|
|
8688 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8690 | (eval $ac_try) 2>&5 |
|
|
8691 | ac_status=$? |
|
|
8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8693 | (exit $ac_status); }; } && |
|
|
8694 | { ac_try='test -s conftest.$ac_objext' |
|
|
8695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8696 | (eval $ac_try) 2>&5 |
|
|
8697 | ac_status=$? |
|
|
8698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8699 | (exit $ac_status); }; }; then |
|
|
8700 | ac_hi=-1 ac_mid=-1 |
|
|
8701 | while :; do |
|
|
8702 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8703 | /* confdefs.h. */ |
|
|
8704 | _ACEOF |
|
|
8705 | cat confdefs.h >>conftest.$ac_ext |
|
|
8706 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8707 | /* end confdefs.h. */ |
|
|
8708 | $ac_includes_default |
|
|
8709 | int |
|
|
8710 | main () |
|
|
8711 | { |
|
|
8712 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
|
|
8713 | test_array [0] = 0 |
|
|
8714 | |
|
|
8715 | ; |
|
|
8716 | return 0; |
|
|
8717 | } |
|
|
8718 | _ACEOF |
|
|
8719 | rm -f conftest.$ac_objext |
|
|
8720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8721 | (eval $ac_compile) 2>conftest.er1 |
|
|
8722 | ac_status=$? |
|
|
8723 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8724 | rm -f conftest.er1 |
|
|
8725 | cat conftest.err >&5 |
|
|
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8727 | (exit $ac_status); } && |
|
|
8728 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8730 | (eval $ac_try) 2>&5 |
|
|
8731 | ac_status=$? |
|
|
8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8733 | (exit $ac_status); }; } && |
|
|
8734 | { ac_try='test -s conftest.$ac_objext' |
|
|
8735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8736 | (eval $ac_try) 2>&5 |
|
|
8737 | ac_status=$? |
|
|
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8739 | (exit $ac_status); }; }; then |
|
|
8740 | ac_lo=$ac_mid; break |
|
|
8741 | else |
|
|
8742 | echo "$as_me: failed program was:" >&5 |
|
|
8743 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8744 | |
|
|
8745 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8746 | if test $ac_mid -le $ac_hi; then |
|
|
8747 | ac_lo= ac_hi= |
|
|
8748 | break |
|
|
8749 | fi |
|
|
8750 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8751 | fi |
|
|
8752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8753 | done |
|
|
8754 | else |
|
|
8755 | echo "$as_me: failed program was:" >&5 |
|
|
8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8757 | |
|
|
8758 | ac_lo= ac_hi= |
|
|
8759 | fi |
|
|
8760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8761 | fi |
|
|
8762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8763 | # Binary search between lo and hi bounds. |
|
|
8764 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8765 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8766 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8767 | /* confdefs.h. */ |
|
|
8768 | _ACEOF |
|
|
8769 | cat confdefs.h >>conftest.$ac_ext |
|
|
8770 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8771 | /* end confdefs.h. */ |
|
|
8772 | $ac_includes_default |
|
|
8773 | int |
|
|
8774 | main () |
|
|
8775 | { |
|
|
8776 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
|
|
8777 | test_array [0] = 0 |
|
|
8778 | |
|
|
8779 | ; |
|
|
8780 | return 0; |
|
|
8781 | } |
|
|
8782 | _ACEOF |
|
|
8783 | rm -f conftest.$ac_objext |
|
|
8784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8785 | (eval $ac_compile) 2>conftest.er1 |
|
|
8786 | ac_status=$? |
|
|
8787 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8788 | rm -f conftest.er1 |
|
|
8789 | cat conftest.err >&5 |
|
|
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8791 | (exit $ac_status); } && |
|
|
8792 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8794 | (eval $ac_try) 2>&5 |
|
|
8795 | ac_status=$? |
|
|
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8797 | (exit $ac_status); }; } && |
|
|
8798 | { ac_try='test -s conftest.$ac_objext' |
|
|
8799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8800 | (eval $ac_try) 2>&5 |
|
|
8801 | ac_status=$? |
|
|
8802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8803 | (exit $ac_status); }; }; then |
|
|
8804 | ac_hi=$ac_mid |
|
|
8805 | else |
|
|
8806 | echo "$as_me: failed program was:" >&5 |
|
|
8807 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8808 | |
|
|
8809 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8810 | fi |
|
|
8811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8812 | done |
|
|
8813 | case $ac_lo in |
|
|
8814 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8815 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
|
|
8816 | See \`config.log' for more details." >&5 |
|
|
8817 | echo "$as_me: error: cannot compute sizeof (int), 77 |
|
|
8818 | See \`config.log' for more details." >&2;} |
|
|
8819 | { (exit 1); exit 1; }; } ;; |
|
|
8820 | esac |
8483 | esac |
8821 | else |
|
|
8822 | if test "$cross_compiling" = yes; then |
|
|
8823 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
8824 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
8825 | { (exit 1); exit 1; }; } |
|
|
8826 | else |
|
|
8827 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8828 | /* confdefs.h. */ |
|
|
8829 | _ACEOF |
|
|
8830 | cat confdefs.h >>conftest.$ac_ext |
|
|
8831 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8832 | /* end confdefs.h. */ |
|
|
8833 | $ac_includes_default |
|
|
8834 | long longval () { return (long) (sizeof (int)); } |
|
|
8835 | unsigned long ulongval () { return (long) (sizeof (int)); } |
|
|
8836 | #include <stdio.h> |
|
|
8837 | #include <stdlib.h> |
|
|
8838 | int |
|
|
8839 | main () |
|
|
8840 | { |
|
|
8841 | |
8484 | |
8842 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8843 | if (! f) |
|
|
8844 | exit (1); |
|
|
8845 | if (((long) (sizeof (int))) < 0) |
|
|
8846 | { |
|
|
8847 | long i = longval (); |
|
|
8848 | if (i != ((long) (sizeof (int)))) |
|
|
8849 | exit (1); |
|
|
8850 | fprintf (f, "%ld\n", i); |
|
|
8851 | } |
|
|
8852 | else |
|
|
8853 | { |
|
|
8854 | unsigned long i = ulongval (); |
|
|
8855 | if (i != ((long) (sizeof (int)))) |
|
|
8856 | exit (1); |
|
|
8857 | fprintf (f, "%lu\n", i); |
|
|
8858 | } |
|
|
8859 | exit (ferror (f) || fclose (f) != 0); |
|
|
8860 | |
8485 | |
8861 | ; |
|
|
8862 | return 0; |
|
|
8863 | } |
|
|
8864 | _ACEOF |
|
|
8865 | rm -f conftest$ac_exeext |
|
|
8866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8867 | (eval $ac_link) 2>&5 |
|
|
8868 | ac_status=$? |
|
|
8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8872 | (eval $ac_try) 2>&5 |
|
|
8873 | ac_status=$? |
|
|
8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8875 | (exit $ac_status); }; }; then |
|
|
8876 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8877 | else |
|
|
8878 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8879 | echo "$as_me: failed program was:" >&5 |
|
|
8880 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8881 | |
8486 | |
8882 | ( exit $ac_status ) |
|
|
8883 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
|
|
8884 | See \`config.log' for more details." >&5 |
|
|
8885 | echo "$as_me: error: cannot compute sizeof (int), 77 |
|
|
8886 | See \`config.log' for more details." >&2;} |
|
|
8887 | { (exit 1); exit 1; }; } |
|
|
8888 | fi |
|
|
8889 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8890 | fi |
|
|
8891 | fi |
|
|
8892 | rm -f conftest.val |
|
|
8893 | else |
|
|
8894 | ac_cv_sizeof_int=0 |
|
|
8895 | fi |
|
|
8896 | fi |
|
|
8897 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8898 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
|
|
8899 | cat >>confdefs.h <<_ACEOF |
|
|
8900 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8901 | _ACEOF |
|
|
8902 | |
|
|
8903 | |
|
|
8904 | echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8905 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
|
|
8906 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8908 | else |
|
|
8909 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8910 | /* confdefs.h. */ |
|
|
8911 | _ACEOF |
|
|
8912 | cat confdefs.h >>conftest.$ac_ext |
|
|
8913 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8914 | /* end confdefs.h. */ |
|
|
8915 | $ac_includes_default |
|
|
8916 | int |
|
|
8917 | main () |
|
|
8918 | { |
|
|
8919 | if ((long long *) 0) |
|
|
8920 | return 0; |
|
|
8921 | if (sizeof (long long)) |
|
|
8922 | return 0; |
|
|
8923 | ; |
|
|
8924 | return 0; |
|
|
8925 | } |
|
|
8926 | _ACEOF |
|
|
8927 | rm -f conftest.$ac_objext |
|
|
8928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8929 | (eval $ac_compile) 2>conftest.er1 |
|
|
8930 | ac_status=$? |
|
|
8931 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8932 | rm -f conftest.er1 |
|
|
8933 | cat conftest.err >&5 |
|
|
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8935 | (exit $ac_status); } && |
|
|
8936 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8938 | (eval $ac_try) 2>&5 |
|
|
8939 | ac_status=$? |
|
|
8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8941 | (exit $ac_status); }; } && |
|
|
8942 | { ac_try='test -s conftest.$ac_objext' |
|
|
8943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8944 | (eval $ac_try) 2>&5 |
|
|
8945 | ac_status=$? |
|
|
8946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8947 | (exit $ac_status); }; }; then |
|
|
8948 | ac_cv_type_long_long=yes |
|
|
8949 | else |
|
|
8950 | echo "$as_me: failed program was:" >&5 |
|
|
8951 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8952 | |
|
|
8953 | ac_cv_type_long_long=no |
|
|
8954 | fi |
|
|
8955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8956 | fi |
|
|
8957 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8958 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
|
|
8959 | |
|
|
8960 | echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8961 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
|
|
8962 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8964 | else |
|
|
8965 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8966 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
8967 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8968 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8969 | # This bug is HP SR number 8606223364. |
|
|
8970 | if test "$cross_compiling" = yes; then |
|
|
8971 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8972 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8973 | /* confdefs.h. */ |
|
|
8974 | _ACEOF |
|
|
8975 | cat confdefs.h >>conftest.$ac_ext |
|
|
8976 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8977 | /* end confdefs.h. */ |
|
|
8978 | $ac_includes_default |
|
|
8979 | int |
|
|
8980 | main () |
|
|
8981 | { |
|
|
8982 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
|
|
8983 | test_array [0] = 0 |
|
|
8984 | |
|
|
8985 | ; |
|
|
8986 | return 0; |
|
|
8987 | } |
|
|
8988 | _ACEOF |
|
|
8989 | rm -f conftest.$ac_objext |
|
|
8990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
8991 | (eval $ac_compile) 2>conftest.er1 |
|
|
8992 | ac_status=$? |
|
|
8993 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8994 | rm -f conftest.er1 |
|
|
8995 | cat conftest.err >&5 |
|
|
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8997 | (exit $ac_status); } && |
|
|
8998 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
8999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9000 | (eval $ac_try) 2>&5 |
|
|
9001 | ac_status=$? |
|
|
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9003 | (exit $ac_status); }; } && |
|
|
9004 | { ac_try='test -s conftest.$ac_objext' |
|
|
9005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9006 | (eval $ac_try) 2>&5 |
|
|
9007 | ac_status=$? |
|
|
9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9009 | (exit $ac_status); }; }; then |
|
|
9010 | ac_lo=0 ac_mid=0 |
|
|
9011 | while :; do |
|
|
9012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9013 | /* confdefs.h. */ |
|
|
9014 | _ACEOF |
|
|
9015 | cat confdefs.h >>conftest.$ac_ext |
|
|
9016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9017 | /* end confdefs.h. */ |
|
|
9018 | $ac_includes_default |
|
|
9019 | int |
|
|
9020 | main () |
|
|
9021 | { |
|
|
9022 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
|
|
9023 | test_array [0] = 0 |
|
|
9024 | |
|
|
9025 | ; |
|
|
9026 | return 0; |
|
|
9027 | } |
|
|
9028 | _ACEOF |
|
|
9029 | rm -f conftest.$ac_objext |
|
|
9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9031 | (eval $ac_compile) 2>conftest.er1 |
|
|
9032 | ac_status=$? |
|
|
9033 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9034 | rm -f conftest.er1 |
|
|
9035 | cat conftest.err >&5 |
|
|
9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9037 | (exit $ac_status); } && |
|
|
9038 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9040 | (eval $ac_try) 2>&5 |
|
|
9041 | ac_status=$? |
|
|
9042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9043 | (exit $ac_status); }; } && |
|
|
9044 | { ac_try='test -s conftest.$ac_objext' |
|
|
9045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9046 | (eval $ac_try) 2>&5 |
|
|
9047 | ac_status=$? |
|
|
9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9049 | (exit $ac_status); }; }; then |
|
|
9050 | ac_hi=$ac_mid; break |
|
|
9051 | else |
|
|
9052 | echo "$as_me: failed program was:" >&5 |
|
|
9053 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9054 | |
|
|
9055 | ac_lo=`expr $ac_mid + 1` |
|
|
9056 | if test $ac_lo -le $ac_mid; then |
|
|
9057 | ac_lo= ac_hi= |
|
|
9058 | break |
|
|
9059 | fi |
|
|
9060 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9061 | fi |
|
|
9062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9063 | done |
|
|
9064 | else |
|
|
9065 | echo "$as_me: failed program was:" >&5 |
|
|
9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9067 | |
|
|
9068 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9069 | /* confdefs.h. */ |
|
|
9070 | _ACEOF |
|
|
9071 | cat confdefs.h >>conftest.$ac_ext |
|
|
9072 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9073 | /* end confdefs.h. */ |
|
|
9074 | $ac_includes_default |
|
|
9075 | int |
|
|
9076 | main () |
|
|
9077 | { |
|
|
9078 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
|
|
9079 | test_array [0] = 0 |
|
|
9080 | |
|
|
9081 | ; |
|
|
9082 | return 0; |
|
|
9083 | } |
|
|
9084 | _ACEOF |
|
|
9085 | rm -f conftest.$ac_objext |
|
|
9086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9087 | (eval $ac_compile) 2>conftest.er1 |
|
|
9088 | ac_status=$? |
|
|
9089 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9090 | rm -f conftest.er1 |
|
|
9091 | cat conftest.err >&5 |
|
|
9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9093 | (exit $ac_status); } && |
|
|
9094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9096 | (eval $ac_try) 2>&5 |
|
|
9097 | ac_status=$? |
|
|
9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9099 | (exit $ac_status); }; } && |
|
|
9100 | { ac_try='test -s conftest.$ac_objext' |
|
|
9101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9102 | (eval $ac_try) 2>&5 |
|
|
9103 | ac_status=$? |
|
|
9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9105 | (exit $ac_status); }; }; then |
|
|
9106 | ac_hi=-1 ac_mid=-1 |
|
|
9107 | while :; do |
|
|
9108 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9109 | /* confdefs.h. */ |
|
|
9110 | _ACEOF |
|
|
9111 | cat confdefs.h >>conftest.$ac_ext |
|
|
9112 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9113 | /* end confdefs.h. */ |
|
|
9114 | $ac_includes_default |
|
|
9115 | int |
|
|
9116 | main () |
|
|
9117 | { |
|
|
9118 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
|
|
9119 | test_array [0] = 0 |
|
|
9120 | |
|
|
9121 | ; |
|
|
9122 | return 0; |
|
|
9123 | } |
|
|
9124 | _ACEOF |
|
|
9125 | rm -f conftest.$ac_objext |
|
|
9126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9127 | (eval $ac_compile) 2>conftest.er1 |
|
|
9128 | ac_status=$? |
|
|
9129 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9130 | rm -f conftest.er1 |
|
|
9131 | cat conftest.err >&5 |
|
|
9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9133 | (exit $ac_status); } && |
|
|
9134 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9136 | (eval $ac_try) 2>&5 |
|
|
9137 | ac_status=$? |
|
|
9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9139 | (exit $ac_status); }; } && |
|
|
9140 | { ac_try='test -s conftest.$ac_objext' |
|
|
9141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9142 | (eval $ac_try) 2>&5 |
|
|
9143 | ac_status=$? |
|
|
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9145 | (exit $ac_status); }; }; then |
|
|
9146 | ac_lo=$ac_mid; break |
|
|
9147 | else |
|
|
9148 | echo "$as_me: failed program was:" >&5 |
|
|
9149 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9150 | |
|
|
9151 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9152 | if test $ac_mid -le $ac_hi; then |
|
|
9153 | ac_lo= ac_hi= |
|
|
9154 | break |
|
|
9155 | fi |
|
|
9156 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9157 | fi |
|
|
9158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9159 | done |
|
|
9160 | else |
|
|
9161 | echo "$as_me: failed program was:" >&5 |
|
|
9162 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9163 | |
|
|
9164 | ac_lo= ac_hi= |
|
|
9165 | fi |
|
|
9166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9167 | fi |
|
|
9168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9169 | # Binary search between lo and hi bounds. |
|
|
9170 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9171 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9172 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9173 | /* confdefs.h. */ |
|
|
9174 | _ACEOF |
|
|
9175 | cat confdefs.h >>conftest.$ac_ext |
|
|
9176 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9177 | /* end confdefs.h. */ |
|
|
9178 | $ac_includes_default |
|
|
9179 | int |
|
|
9180 | main () |
|
|
9181 | { |
|
|
9182 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
|
|
9183 | test_array [0] = 0 |
|
|
9184 | |
|
|
9185 | ; |
|
|
9186 | return 0; |
|
|
9187 | } |
|
|
9188 | _ACEOF |
|
|
9189 | rm -f conftest.$ac_objext |
|
|
9190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9191 | (eval $ac_compile) 2>conftest.er1 |
|
|
9192 | ac_status=$? |
|
|
9193 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9194 | rm -f conftest.er1 |
|
|
9195 | cat conftest.err >&5 |
|
|
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9197 | (exit $ac_status); } && |
|
|
9198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9200 | (eval $ac_try) 2>&5 |
|
|
9201 | ac_status=$? |
|
|
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9203 | (exit $ac_status); }; } && |
|
|
9204 | { ac_try='test -s conftest.$ac_objext' |
|
|
9205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9206 | (eval $ac_try) 2>&5 |
|
|
9207 | ac_status=$? |
|
|
9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9209 | (exit $ac_status); }; }; then |
|
|
9210 | ac_hi=$ac_mid |
|
|
9211 | else |
|
|
9212 | echo "$as_me: failed program was:" >&5 |
|
|
9213 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9214 | |
|
|
9215 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9216 | fi |
|
|
9217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9218 | done |
|
|
9219 | case $ac_lo in |
|
|
9220 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9221 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
|
|
9222 | See \`config.log' for more details." >&5 |
|
|
9223 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
|
|
9224 | See \`config.log' for more details." >&2;} |
|
|
9225 | { (exit 1); exit 1; }; } ;; |
|
|
9226 | esac |
|
|
9227 | else |
|
|
9228 | if test "$cross_compiling" = yes; then |
|
|
9229 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
9230 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
9231 | { (exit 1); exit 1; }; } |
|
|
9232 | else |
|
|
9233 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9234 | /* confdefs.h. */ |
|
|
9235 | _ACEOF |
|
|
9236 | cat confdefs.h >>conftest.$ac_ext |
|
|
9237 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9238 | /* end confdefs.h. */ |
|
|
9239 | $ac_includes_default |
|
|
9240 | long longval () { return (long) (sizeof (long long)); } |
|
|
9241 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
|
|
9242 | #include <stdio.h> |
|
|
9243 | #include <stdlib.h> |
|
|
9244 | int |
|
|
9245 | main () |
|
|
9246 | { |
|
|
9247 | |
|
|
9248 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9249 | if (! f) |
|
|
9250 | exit (1); |
|
|
9251 | if (((long) (sizeof (long long))) < 0) |
|
|
9252 | { |
|
|
9253 | long i = longval (); |
|
|
9254 | if (i != ((long) (sizeof (long long)))) |
|
|
9255 | exit (1); |
|
|
9256 | fprintf (f, "%ld\n", i); |
|
|
9257 | } |
|
|
9258 | else |
|
|
9259 | { |
|
|
9260 | unsigned long i = ulongval (); |
|
|
9261 | if (i != ((long) (sizeof (long long)))) |
|
|
9262 | exit (1); |
|
|
9263 | fprintf (f, "%lu\n", i); |
|
|
9264 | } |
|
|
9265 | exit (ferror (f) || fclose (f) != 0); |
|
|
9266 | |
|
|
9267 | ; |
|
|
9268 | return 0; |
|
|
9269 | } |
|
|
9270 | _ACEOF |
|
|
9271 | rm -f conftest$ac_exeext |
|
|
9272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9273 | (eval $ac_link) 2>&5 |
|
|
9274 | ac_status=$? |
|
|
9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9278 | (eval $ac_try) 2>&5 |
|
|
9279 | ac_status=$? |
|
|
9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9281 | (exit $ac_status); }; }; then |
|
|
9282 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9283 | else |
|
|
9284 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9285 | echo "$as_me: failed program was:" >&5 |
|
|
9286 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9287 | |
|
|
9288 | ( exit $ac_status ) |
|
|
9289 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
|
|
9290 | See \`config.log' for more details." >&5 |
|
|
9291 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
|
|
9292 | See \`config.log' for more details." >&2;} |
|
|
9293 | { (exit 1); exit 1; }; } |
|
|
9294 | fi |
|
|
9295 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9296 | fi |
|
|
9297 | fi |
|
|
9298 | rm -f conftest.val |
|
|
9299 | else |
|
|
9300 | ac_cv_sizeof_long_long=0 |
|
|
9301 | fi |
|
|
9302 | fi |
|
|
9303 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9304 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
|
|
9305 | cat >>confdefs.h <<_ACEOF |
|
|
9306 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9307 | _ACEOF |
|
|
9308 | |
|
|
9309 | |
|
|
9310 | echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9311 | echo $ECHO_N "checking for int *... $ECHO_C" >&6 |
|
|
9312 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9314 | else |
|
|
9315 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9316 | /* confdefs.h. */ |
|
|
9317 | _ACEOF |
|
|
9318 | cat confdefs.h >>conftest.$ac_ext |
|
|
9319 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9320 | /* end confdefs.h. */ |
|
|
9321 | $ac_includes_default |
|
|
9322 | int |
|
|
9323 | main () |
|
|
9324 | { |
|
|
9325 | if ((int * *) 0) |
|
|
9326 | return 0; |
|
|
9327 | if (sizeof (int *)) |
|
|
9328 | return 0; |
|
|
9329 | ; |
|
|
9330 | return 0; |
|
|
9331 | } |
|
|
9332 | _ACEOF |
|
|
9333 | rm -f conftest.$ac_objext |
|
|
9334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9335 | (eval $ac_compile) 2>conftest.er1 |
|
|
9336 | ac_status=$? |
|
|
9337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9338 | rm -f conftest.er1 |
|
|
9339 | cat conftest.err >&5 |
|
|
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9341 | (exit $ac_status); } && |
|
|
9342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9344 | (eval $ac_try) 2>&5 |
|
|
9345 | ac_status=$? |
|
|
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9347 | (exit $ac_status); }; } && |
|
|
9348 | { ac_try='test -s conftest.$ac_objext' |
|
|
9349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9350 | (eval $ac_try) 2>&5 |
|
|
9351 | ac_status=$? |
|
|
9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9353 | (exit $ac_status); }; }; then |
|
|
9354 | ac_cv_type_int_p=yes |
|
|
9355 | else |
|
|
9356 | echo "$as_me: failed program was:" >&5 |
|
|
9357 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9358 | |
|
|
9359 | ac_cv_type_int_p=no |
|
|
9360 | fi |
|
|
9361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9362 | fi |
|
|
9363 | echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9364 | echo "${ECHO_T}$ac_cv_type_int_p" >&6 |
|
|
9365 | |
|
|
9366 | echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9367 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6 |
|
|
9368 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9370 | else |
|
|
9371 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9372 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
9373 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9374 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9375 | # This bug is HP SR number 8606223364. |
|
|
9376 | if test "$cross_compiling" = yes; then |
|
|
9377 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9378 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9379 | /* confdefs.h. */ |
|
|
9380 | _ACEOF |
|
|
9381 | cat confdefs.h >>conftest.$ac_ext |
|
|
9382 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9383 | /* end confdefs.h. */ |
|
|
9384 | $ac_includes_default |
|
|
9385 | int |
|
|
9386 | main () |
|
|
9387 | { |
|
|
9388 | static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)]; |
|
|
9389 | test_array [0] = 0 |
|
|
9390 | |
|
|
9391 | ; |
|
|
9392 | return 0; |
|
|
9393 | } |
|
|
9394 | _ACEOF |
|
|
9395 | rm -f conftest.$ac_objext |
|
|
9396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9397 | (eval $ac_compile) 2>conftest.er1 |
|
|
9398 | ac_status=$? |
|
|
9399 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9400 | rm -f conftest.er1 |
|
|
9401 | cat conftest.err >&5 |
|
|
9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9403 | (exit $ac_status); } && |
|
|
9404 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9406 | (eval $ac_try) 2>&5 |
|
|
9407 | ac_status=$? |
|
|
9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9409 | (exit $ac_status); }; } && |
|
|
9410 | { ac_try='test -s conftest.$ac_objext' |
|
|
9411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9412 | (eval $ac_try) 2>&5 |
|
|
9413 | ac_status=$? |
|
|
9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9415 | (exit $ac_status); }; }; then |
|
|
9416 | ac_lo=0 ac_mid=0 |
|
|
9417 | while :; do |
|
|
9418 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9419 | /* confdefs.h. */ |
|
|
9420 | _ACEOF |
|
|
9421 | cat confdefs.h >>conftest.$ac_ext |
|
|
9422 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9423 | /* end confdefs.h. */ |
|
|
9424 | $ac_includes_default |
|
|
9425 | int |
|
|
9426 | main () |
|
|
9427 | { |
|
|
9428 | static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)]; |
|
|
9429 | test_array [0] = 0 |
|
|
9430 | |
|
|
9431 | ; |
|
|
9432 | return 0; |
|
|
9433 | } |
|
|
9434 | _ACEOF |
|
|
9435 | rm -f conftest.$ac_objext |
|
|
9436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9437 | (eval $ac_compile) 2>conftest.er1 |
|
|
9438 | ac_status=$? |
|
|
9439 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9440 | rm -f conftest.er1 |
|
|
9441 | cat conftest.err >&5 |
|
|
9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9443 | (exit $ac_status); } && |
|
|
9444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9446 | (eval $ac_try) 2>&5 |
|
|
9447 | ac_status=$? |
|
|
9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9449 | (exit $ac_status); }; } && |
|
|
9450 | { ac_try='test -s conftest.$ac_objext' |
|
|
9451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9452 | (eval $ac_try) 2>&5 |
|
|
9453 | ac_status=$? |
|
|
9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9455 | (exit $ac_status); }; }; then |
|
|
9456 | ac_hi=$ac_mid; break |
|
|
9457 | else |
|
|
9458 | echo "$as_me: failed program was:" >&5 |
|
|
9459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9460 | |
|
|
9461 | ac_lo=`expr $ac_mid + 1` |
|
|
9462 | if test $ac_lo -le $ac_mid; then |
|
|
9463 | ac_lo= ac_hi= |
|
|
9464 | break |
|
|
9465 | fi |
|
|
9466 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9467 | fi |
|
|
9468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9469 | done |
|
|
9470 | else |
|
|
9471 | echo "$as_me: failed program was:" >&5 |
|
|
9472 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9473 | |
|
|
9474 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9475 | /* confdefs.h. */ |
|
|
9476 | _ACEOF |
|
|
9477 | cat confdefs.h >>conftest.$ac_ext |
|
|
9478 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9479 | /* end confdefs.h. */ |
|
|
9480 | $ac_includes_default |
|
|
9481 | int |
|
|
9482 | main () |
|
|
9483 | { |
|
|
9484 | static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)]; |
|
|
9485 | test_array [0] = 0 |
|
|
9486 | |
|
|
9487 | ; |
|
|
9488 | return 0; |
|
|
9489 | } |
|
|
9490 | _ACEOF |
|
|
9491 | rm -f conftest.$ac_objext |
|
|
9492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9493 | (eval $ac_compile) 2>conftest.er1 |
|
|
9494 | ac_status=$? |
|
|
9495 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9496 | rm -f conftest.er1 |
|
|
9497 | cat conftest.err >&5 |
|
|
9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9499 | (exit $ac_status); } && |
|
|
9500 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9502 | (eval $ac_try) 2>&5 |
|
|
9503 | ac_status=$? |
|
|
9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9505 | (exit $ac_status); }; } && |
|
|
9506 | { ac_try='test -s conftest.$ac_objext' |
|
|
9507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9508 | (eval $ac_try) 2>&5 |
|
|
9509 | ac_status=$? |
|
|
9510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9511 | (exit $ac_status); }; }; then |
|
|
9512 | ac_hi=-1 ac_mid=-1 |
|
|
9513 | while :; do |
|
|
9514 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9515 | /* confdefs.h. */ |
|
|
9516 | _ACEOF |
|
|
9517 | cat confdefs.h >>conftest.$ac_ext |
|
|
9518 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9519 | /* end confdefs.h. */ |
|
|
9520 | $ac_includes_default |
|
|
9521 | int |
|
|
9522 | main () |
|
|
9523 | { |
|
|
9524 | static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)]; |
|
|
9525 | test_array [0] = 0 |
|
|
9526 | |
|
|
9527 | ; |
|
|
9528 | return 0; |
|
|
9529 | } |
|
|
9530 | _ACEOF |
|
|
9531 | rm -f conftest.$ac_objext |
|
|
9532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9533 | (eval $ac_compile) 2>conftest.er1 |
|
|
9534 | ac_status=$? |
|
|
9535 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9536 | rm -f conftest.er1 |
|
|
9537 | cat conftest.err >&5 |
|
|
9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9539 | (exit $ac_status); } && |
|
|
9540 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9542 | (eval $ac_try) 2>&5 |
|
|
9543 | ac_status=$? |
|
|
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9545 | (exit $ac_status); }; } && |
|
|
9546 | { ac_try='test -s conftest.$ac_objext' |
|
|
9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9548 | (eval $ac_try) 2>&5 |
|
|
9549 | ac_status=$? |
|
|
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9551 | (exit $ac_status); }; }; then |
|
|
9552 | ac_lo=$ac_mid; break |
|
|
9553 | else |
|
|
9554 | echo "$as_me: failed program was:" >&5 |
|
|
9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9556 | |
|
|
9557 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9558 | if test $ac_mid -le $ac_hi; then |
|
|
9559 | ac_lo= ac_hi= |
|
|
9560 | break |
|
|
9561 | fi |
|
|
9562 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9563 | fi |
|
|
9564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9565 | done |
|
|
9566 | else |
|
|
9567 | echo "$as_me: failed program was:" >&5 |
|
|
9568 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9569 | |
|
|
9570 | ac_lo= ac_hi= |
|
|
9571 | fi |
|
|
9572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9573 | fi |
|
|
9574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9575 | # Binary search between lo and hi bounds. |
|
|
9576 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9577 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9578 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9579 | /* confdefs.h. */ |
|
|
9580 | _ACEOF |
|
|
9581 | cat confdefs.h >>conftest.$ac_ext |
|
|
9582 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9583 | /* end confdefs.h. */ |
|
|
9584 | $ac_includes_default |
|
|
9585 | int |
|
|
9586 | main () |
|
|
9587 | { |
|
|
9588 | static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)]; |
|
|
9589 | test_array [0] = 0 |
|
|
9590 | |
|
|
9591 | ; |
|
|
9592 | return 0; |
|
|
9593 | } |
|
|
9594 | _ACEOF |
|
|
9595 | rm -f conftest.$ac_objext |
|
|
9596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9597 | (eval $ac_compile) 2>conftest.er1 |
|
|
9598 | ac_status=$? |
|
|
9599 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9600 | rm -f conftest.er1 |
|
|
9601 | cat conftest.err >&5 |
|
|
9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9603 | (exit $ac_status); } && |
|
|
9604 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9606 | (eval $ac_try) 2>&5 |
|
|
9607 | ac_status=$? |
|
|
9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9609 | (exit $ac_status); }; } && |
|
|
9610 | { ac_try='test -s conftest.$ac_objext' |
|
|
9611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9612 | (eval $ac_try) 2>&5 |
|
|
9613 | ac_status=$? |
|
|
9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9615 | (exit $ac_status); }; }; then |
|
|
9616 | ac_hi=$ac_mid |
|
|
9617 | else |
|
|
9618 | echo "$as_me: failed program was:" >&5 |
|
|
9619 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9620 | |
|
|
9621 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9622 | fi |
|
|
9623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9624 | done |
|
|
9625 | case $ac_lo in |
|
|
9626 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9627 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77 |
|
|
9628 | See \`config.log' for more details." >&5 |
|
|
9629 | echo "$as_me: error: cannot compute sizeof (int *), 77 |
|
|
9630 | See \`config.log' for more details." >&2;} |
|
|
9631 | { (exit 1); exit 1; }; } ;; |
|
|
9632 | esac |
|
|
9633 | else |
|
|
9634 | if test "$cross_compiling" = yes; then |
|
|
9635 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
9636 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
9637 | { (exit 1); exit 1; }; } |
|
|
9638 | else |
|
|
9639 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9640 | /* confdefs.h. */ |
|
|
9641 | _ACEOF |
|
|
9642 | cat confdefs.h >>conftest.$ac_ext |
|
|
9643 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9644 | /* end confdefs.h. */ |
|
|
9645 | $ac_includes_default |
|
|
9646 | long longval () { return (long) (sizeof (int *)); } |
|
|
9647 | unsigned long ulongval () { return (long) (sizeof (int *)); } |
|
|
9648 | #include <stdio.h> |
|
|
9649 | #include <stdlib.h> |
|
|
9650 | int |
|
|
9651 | main () |
|
|
9652 | { |
|
|
9653 | |
|
|
9654 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9655 | if (! f) |
|
|
9656 | exit (1); |
|
|
9657 | if (((long) (sizeof (int *))) < 0) |
|
|
9658 | { |
|
|
9659 | long i = longval (); |
|
|
9660 | if (i != ((long) (sizeof (int *)))) |
|
|
9661 | exit (1); |
|
|
9662 | fprintf (f, "%ld\n", i); |
|
|
9663 | } |
|
|
9664 | else |
|
|
9665 | { |
|
|
9666 | unsigned long i = ulongval (); |
|
|
9667 | if (i != ((long) (sizeof (int *)))) |
|
|
9668 | exit (1); |
|
|
9669 | fprintf (f, "%lu\n", i); |
|
|
9670 | } |
|
|
9671 | exit (ferror (f) || fclose (f) != 0); |
|
|
9672 | |
|
|
9673 | ; |
|
|
9674 | return 0; |
|
|
9675 | } |
|
|
9676 | _ACEOF |
|
|
9677 | rm -f conftest$ac_exeext |
|
|
9678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9679 | (eval $ac_link) 2>&5 |
|
|
9680 | ac_status=$? |
|
|
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9684 | (eval $ac_try) 2>&5 |
|
|
9685 | ac_status=$? |
|
|
9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9687 | (exit $ac_status); }; }; then |
|
|
9688 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9689 | else |
|
|
9690 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9691 | echo "$as_me: failed program was:" >&5 |
|
|
9692 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9693 | |
|
|
9694 | ( exit $ac_status ) |
|
|
9695 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77 |
|
|
9696 | See \`config.log' for more details." >&5 |
|
|
9697 | echo "$as_me: error: cannot compute sizeof (int *), 77 |
|
|
9698 | See \`config.log' for more details." >&2;} |
|
|
9699 | { (exit 1); exit 1; }; } |
|
|
9700 | fi |
|
|
9701 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9702 | fi |
|
|
9703 | fi |
|
|
9704 | rm -f conftest.val |
|
|
9705 | else |
|
|
9706 | ac_cv_sizeof_int_p=0 |
|
|
9707 | fi |
|
|
9708 | fi |
|
|
9709 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9710 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6 |
|
|
9711 | cat >>confdefs.h <<_ACEOF |
|
|
9712 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9713 | _ACEOF |
|
|
9714 | |
|
|
9715 | |
|
|
9716 | |
|
|
9717 | |
|
|
9718 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9719 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 |
|
|
9720 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9722 | else |
|
|
9723 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9724 | /* confdefs.h. */ |
|
|
9725 | _ACEOF |
|
|
9726 | cat confdefs.h >>conftest.$ac_ext |
|
|
9727 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9728 | /* end confdefs.h. */ |
|
|
9729 | #include <stdint.h> |
|
|
9730 | int |
|
|
9731 | main () |
|
|
9732 | { |
|
|
9733 | int16_t dummy; |
|
|
9734 | ; |
|
|
9735 | return 0; |
|
|
9736 | } |
|
|
9737 | _ACEOF |
|
|
9738 | rm -f conftest.$ac_objext |
|
|
9739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9740 | (eval $ac_compile) 2>conftest.er1 |
|
|
9741 | ac_status=$? |
|
|
9742 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9743 | rm -f conftest.er1 |
|
|
9744 | cat conftest.err >&5 |
|
|
9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9746 | (exit $ac_status); } && |
|
|
9747 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9749 | (eval $ac_try) 2>&5 |
|
|
9750 | ac_status=$? |
|
|
9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9752 | (exit $ac_status); }; } && |
|
|
9753 | { ac_try='test -s conftest.$ac_objext' |
|
|
9754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9755 | (eval $ac_try) 2>&5 |
|
|
9756 | ac_status=$? |
|
|
9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9758 | (exit $ac_status); }; }; then |
|
|
9759 | rxvt_cv_int16_t=yes |
|
|
9760 | else |
|
|
9761 | echo "$as_me: failed program was:" >&5 |
|
|
9762 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9763 | |
|
|
9764 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9765 | rxvt_cv_int16_t=" char" |
|
|
9766 | else |
|
|
9767 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9768 | rxvt_cv_int16_t=" short" |
|
|
9769 | else |
|
|
9770 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9771 | rxvt_cv_int16_t=" int" |
|
|
9772 | else |
|
|
9773 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9774 | rxvt_cv_int16_t=" long" |
|
|
9775 | else |
|
|
9776 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9777 | rxvt_cv_int16_t=" long long" |
|
|
9778 | else |
|
|
9779 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9780 | fi |
|
|
9781 | fi |
|
|
9782 | fi |
|
|
9783 | fi |
|
|
9784 | fi |
|
|
9785 | fi |
|
|
9786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9787 | fi |
|
|
9788 | echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9789 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6 |
|
|
9790 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9791 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9792 | else |
|
|
9793 | if test x"" = x; then |
|
|
9794 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9795 | else |
|
|
9796 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9797 | fi |
|
|
9798 | fi |
|
|
9799 | |
|
|
9800 | echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9801 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 |
|
|
9802 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9804 | else |
|
|
9805 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9806 | /* confdefs.h. */ |
|
|
9807 | _ACEOF |
|
|
9808 | cat confdefs.h >>conftest.$ac_ext |
|
|
9809 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9810 | /* end confdefs.h. */ |
|
|
9811 | #include <stdint.h> |
|
|
9812 | int |
|
|
9813 | main () |
|
|
9814 | { |
|
|
9815 | uint16_t dummy; |
|
|
9816 | ; |
|
|
9817 | return 0; |
|
|
9818 | } |
|
|
9819 | _ACEOF |
|
|
9820 | rm -f conftest.$ac_objext |
|
|
9821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9822 | (eval $ac_compile) 2>conftest.er1 |
|
|
9823 | ac_status=$? |
|
|
9824 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9825 | rm -f conftest.er1 |
|
|
9826 | cat conftest.err >&5 |
|
|
9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9828 | (exit $ac_status); } && |
|
|
9829 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9831 | (eval $ac_try) 2>&5 |
|
|
9832 | ac_status=$? |
|
|
9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9834 | (exit $ac_status); }; } && |
|
|
9835 | { ac_try='test -s conftest.$ac_objext' |
|
|
9836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9837 | (eval $ac_try) 2>&5 |
|
|
9838 | ac_status=$? |
|
|
9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9840 | (exit $ac_status); }; }; then |
|
|
9841 | rxvt_cv_uint16_t=yes |
|
|
9842 | else |
|
|
9843 | echo "$as_me: failed program was:" >&5 |
|
|
9844 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9845 | |
|
|
9846 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9847 | rxvt_cv_uint16_t="unsigned char" |
|
|
9848 | else |
|
|
9849 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9850 | rxvt_cv_uint16_t="unsigned short" |
|
|
9851 | else |
|
|
9852 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9853 | rxvt_cv_uint16_t="unsigned int" |
|
|
9854 | else |
|
|
9855 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9856 | rxvt_cv_uint16_t="unsigned long" |
|
|
9857 | else |
|
|
9858 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9859 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9860 | else |
|
|
9861 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9862 | fi |
|
|
9863 | fi |
|
|
9864 | fi |
|
|
9865 | fi |
|
|
9866 | fi |
|
|
9867 | fi |
|
|
9868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9869 | fi |
|
|
9870 | echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9871 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6 |
|
|
9872 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9873 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9874 | else |
|
|
9875 | if test x"unsigned" = x; then |
|
|
9876 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9877 | else |
|
|
9878 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9879 | fi |
|
|
9880 | fi |
|
|
9881 | |
|
|
9882 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9883 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 |
|
|
9884 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9886 | else |
|
|
9887 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9888 | /* confdefs.h. */ |
|
|
9889 | _ACEOF |
|
|
9890 | cat confdefs.h >>conftest.$ac_ext |
|
|
9891 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9892 | /* end confdefs.h. */ |
|
|
9893 | #include <stdint.h> |
|
|
9894 | int |
|
|
9895 | main () |
|
|
9896 | { |
|
|
9897 | int32_t dummy; |
|
|
9898 | ; |
|
|
9899 | return 0; |
|
|
9900 | } |
|
|
9901 | _ACEOF |
|
|
9902 | rm -f conftest.$ac_objext |
|
|
9903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9904 | (eval $ac_compile) 2>conftest.er1 |
|
|
9905 | ac_status=$? |
|
|
9906 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9907 | rm -f conftest.er1 |
|
|
9908 | cat conftest.err >&5 |
|
|
9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9910 | (exit $ac_status); } && |
|
|
9911 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9913 | (eval $ac_try) 2>&5 |
|
|
9914 | ac_status=$? |
|
|
9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9916 | (exit $ac_status); }; } && |
|
|
9917 | { ac_try='test -s conftest.$ac_objext' |
|
|
9918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9919 | (eval $ac_try) 2>&5 |
|
|
9920 | ac_status=$? |
|
|
9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9922 | (exit $ac_status); }; }; then |
|
|
9923 | rxvt_cv_int32_t=yes |
|
|
9924 | else |
|
|
9925 | echo "$as_me: failed program was:" >&5 |
|
|
9926 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9927 | |
|
|
9928 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9929 | rxvt_cv_int32_t=" char" |
|
|
9930 | else |
|
|
9931 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9932 | rxvt_cv_int32_t=" short" |
|
|
9933 | else |
|
|
9934 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9935 | rxvt_cv_int32_t=" int" |
|
|
9936 | else |
|
|
9937 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9938 | rxvt_cv_int32_t=" long" |
|
|
9939 | else |
|
|
9940 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9941 | rxvt_cv_int32_t=" long long" |
|
|
9942 | else |
|
|
9943 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9944 | fi |
|
|
9945 | fi |
|
|
9946 | fi |
|
|
9947 | fi |
|
|
9948 | fi |
|
|
9949 | fi |
|
|
9950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9951 | fi |
|
|
9952 | echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9953 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6 |
|
|
9954 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9955 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9956 | else |
|
|
9957 | if test x"" = x; then |
|
|
9958 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9959 | else |
|
|
9960 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9961 | fi |
|
|
9962 | fi |
|
|
9963 | |
|
|
9964 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9965 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
|
|
9966 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9968 | else |
|
|
9969 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9970 | /* confdefs.h. */ |
|
|
9971 | _ACEOF |
|
|
9972 | cat confdefs.h >>conftest.$ac_ext |
|
|
9973 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9974 | /* end confdefs.h. */ |
|
|
9975 | #include <stdint.h> |
|
|
9976 | int |
|
|
9977 | main () |
|
|
9978 | { |
|
|
9979 | uint32_t dummy; |
|
|
9980 | ; |
|
|
9981 | return 0; |
|
|
9982 | } |
|
|
9983 | _ACEOF |
|
|
9984 | rm -f conftest.$ac_objext |
|
|
9985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9986 | (eval $ac_compile) 2>conftest.er1 |
|
|
9987 | ac_status=$? |
|
|
9988 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9989 | rm -f conftest.er1 |
|
|
9990 | cat conftest.err >&5 |
|
|
9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9992 | (exit $ac_status); } && |
|
|
9993 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9995 | (eval $ac_try) 2>&5 |
|
|
9996 | ac_status=$? |
|
|
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9998 | (exit $ac_status); }; } && |
|
|
9999 | { ac_try='test -s conftest.$ac_objext' |
|
|
10000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10001 | (eval $ac_try) 2>&5 |
|
|
10002 | ac_status=$? |
|
|
10003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10004 | (exit $ac_status); }; }; then |
|
|
10005 | rxvt_cv_uint32_t=yes |
|
|
10006 | else |
|
|
10007 | echo "$as_me: failed program was:" >&5 |
|
|
10008 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10009 | |
|
|
10010 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10011 | rxvt_cv_uint32_t="unsigned char" |
|
|
10012 | else |
|
|
10013 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10014 | rxvt_cv_uint32_t="unsigned short" |
|
|
10015 | else |
|
|
10016 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10017 | rxvt_cv_uint32_t="unsigned int" |
|
|
10018 | else |
|
|
10019 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10020 | rxvt_cv_uint32_t="unsigned long" |
|
|
10021 | else |
|
|
10022 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10023 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10024 | else |
|
|
10025 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10026 | fi |
|
|
10027 | fi |
|
|
10028 | fi |
|
|
10029 | fi |
|
|
10030 | fi |
|
|
10031 | fi |
|
|
10032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10033 | fi |
|
|
10034 | echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10035 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6 |
|
|
10036 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10037 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10038 | else |
|
|
10039 | if test x"unsigned" = x; then |
|
|
10040 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10041 | else |
|
|
10042 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10043 | fi |
|
|
10044 | fi |
|
|
10045 | |
|
|
10046 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10047 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10048 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10049 | else |
|
|
10050 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10051 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10052 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10053 | else |
|
|
10054 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10055 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10056 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10057 | else |
|
|
10058 | rxvt_intp_define="#error set intp_t" |
|
|
10059 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10060 | fi |
|
|
10061 | fi |
|
|
10062 | fi |
|
|
10063 | |
|
|
10064 | |
|
|
10065 | |
|
|
10066 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10067 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
|
|
10068 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10070 | else |
|
|
10071 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10072 | /* confdefs.h. */ |
|
|
10073 | _ACEOF |
|
|
10074 | cat confdefs.h >>conftest.$ac_ext |
|
|
10075 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10076 | /* end confdefs.h. */ |
|
|
10077 | #include <sys/types.h> |
|
|
10078 | #include <signal.h> |
|
|
10079 | #ifdef signal |
|
|
10080 | # undef signal |
|
|
10081 | #endif |
|
|
10082 | #ifdef __cplusplus |
|
|
10083 | extern "C" void (*signal (int, void (*)(int)))(int); |
|
|
10084 | #else |
|
|
10085 | void (*signal ()) (); |
|
|
10086 | #endif |
|
|
10087 | |
|
|
10088 | int |
|
|
10089 | main () |
|
|
10090 | { |
|
|
10091 | int i; |
|
|
10092 | ; |
|
|
10093 | return 0; |
|
|
10094 | } |
|
|
10095 | _ACEOF |
|
|
10096 | rm -f conftest.$ac_objext |
|
|
10097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10098 | (eval $ac_compile) 2>conftest.er1 |
|
|
10099 | ac_status=$? |
|
|
10100 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10101 | rm -f conftest.er1 |
|
|
10102 | cat conftest.err >&5 |
|
|
10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10104 | (exit $ac_status); } && |
|
|
10105 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10107 | (eval $ac_try) 2>&5 |
|
|
10108 | ac_status=$? |
|
|
10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10110 | (exit $ac_status); }; } && |
|
|
10111 | { ac_try='test -s conftest.$ac_objext' |
|
|
10112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10113 | (eval $ac_try) 2>&5 |
|
|
10114 | ac_status=$? |
|
|
10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10116 | (exit $ac_status); }; }; then |
|
|
10117 | ac_cv_type_signal=void |
|
|
10118 | else |
|
|
10119 | echo "$as_me: failed program was:" >&5 |
|
|
10120 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10121 | |
|
|
10122 | ac_cv_type_signal=int |
|
|
10123 | fi |
|
|
10124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10125 | fi |
|
|
10126 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10127 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
|
|
10128 | |
|
|
10129 | cat >>confdefs.h <<_ACEOF |
|
|
10130 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10131 | _ACEOF |
|
|
10132 | |
|
|
10133 | |
|
|
10134 | |
|
|
10135 | case "$host_alias" in |
|
|
10136 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
10137 | *) break;; |
|
|
10138 | esac |
|
|
10139 | |
|
|
10140 | |
|
|
10141 | |
|
|
10142 | |
|
|
10143 | |
|
|
10144 | |
|
|
10145 | |
|
|
10146 | |
|
|
10147 | |
|
|
10148 | |
|
|
10149 | |
|
|
10150 | |
|
|
10151 | |
|
|
10152 | |
|
|
10153 | |
|
|
10154 | |
|
|
10155 | |
|
|
10156 | |
|
|
10157 | |
|
|
10158 | |
|
|
10159 | |
|
|
10160 | for ac_func in \ |
8487 | for ac_func in unsetenv |
10161 | atexit \ |
|
|
10162 | revoke \ |
|
|
10163 | unsetenv \ |
|
|
10164 | setutent \ |
|
|
10165 | seteuid \ |
|
|
10166 | setreuid \ |
|
|
10167 | setsid \ |
|
|
10168 | setpgrp \ |
|
|
10169 | setpgid \ |
|
|
10170 | _getpty \ |
|
|
10171 | getpt \ |
|
|
10172 | posix_openpt \ |
|
|
10173 | grantpt \ |
|
|
10174 | unlockpt \ |
|
|
10175 | isastream \ |
|
|
10176 | on_exit \ |
|
|
10177 | nanosleep \ |
|
|
10178 | updwtmp \ |
|
|
10179 | updwtmpx \ |
|
|
10180 | ttyslot \ |
|
|
10181 | |
|
|
10182 | do |
8488 | do |
10183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8490 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10186 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
8492 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10188 | else |
8494 | else |
10189 | cat >conftest.$ac_ext <<_ACEOF |
8495 | cat >conftest.$ac_ext <<_ACEOF |
10190 | /* confdefs.h. */ |
8496 | /* confdefs.h. */ |
10191 | _ACEOF |
8497 | _ACEOF |
… | |
… | |
10207 | # include <assert.h> |
8513 | # include <assert.h> |
10208 | #endif |
8514 | #endif |
10209 | |
8515 | |
10210 | #undef $ac_func |
8516 | #undef $ac_func |
10211 | |
8517 | |
10212 | /* Override any gcc2 internal prototype to avoid an error. */ |
8518 | /* Override any GCC internal prototype to avoid an error. |
|
|
8519 | Use char because int might match the return type of a GCC |
|
|
8520 | builtin and then its argument prototype would still apply. */ |
10213 | #ifdef __cplusplus |
8521 | #ifdef __cplusplus |
10214 | extern "C" |
8522 | extern "C" |
10215 | { |
|
|
10216 | #endif |
8523 | #endif |
10217 | /* We use char because int might match the return type of a gcc2 |
|
|
10218 | builtin and then its argument prototype would still apply. */ |
|
|
10219 | char $ac_func (); |
8524 | char $ac_func (); |
10220 | /* The GNU C library defines this for functions which it implements |
8525 | /* The GNU C library defines this for functions which it implements |
10221 | to always fail with ENOSYS. Some functions are actually named |
8526 | to always fail with ENOSYS. Some functions are actually named |
10222 | something starting with __ and the normal name is an alias. */ |
8527 | something starting with __ and the normal name is an alias. */ |
10223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8528 | #if defined __stub_$ac_func || defined __stub___$ac_func |
10224 | choke me |
8529 | choke me |
10225 | #else |
|
|
10226 | char (*f) () = $ac_func; |
|
|
10227 | #endif |
|
|
10228 | #ifdef __cplusplus |
|
|
10229 | } |
|
|
10230 | #endif |
8530 | #endif |
10231 | |
8531 | |
10232 | int |
8532 | int |
10233 | main () |
8533 | main () |
10234 | { |
8534 | { |
10235 | return f != $ac_func; |
8535 | return $ac_func (); |
10236 | ; |
8536 | ; |
10237 | return 0; |
8537 | return 0; |
10238 | } |
8538 | } |
10239 | _ACEOF |
8539 | _ACEOF |
10240 | rm -f conftest.$ac_objext conftest$ac_exeext |
8540 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8541 | if { (ac_try="$ac_link" |
|
|
8542 | case "(($ac_try" in |
|
|
8543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8544 | *) ac_try_echo=$ac_try;; |
|
|
8545 | esac |
10241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10242 | (eval $ac_link) 2>conftest.er1 |
8547 | (eval "$ac_link") 2>conftest.er1 |
10243 | ac_status=$? |
8548 | ac_status=$? |
10244 | grep -v '^ *+' conftest.er1 >conftest.err |
8549 | grep -v '^ *+' conftest.er1 >conftest.err |
10245 | rm -f conftest.er1 |
8550 | rm -f conftest.er1 |
10246 | cat conftest.err >&5 |
8551 | cat conftest.err >&5 |
10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10248 | (exit $ac_status); } && |
8553 | (exit $ac_status); } && { |
10249 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8554 | test -z "$ac_cxx_werror_flag" || |
10250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8555 | test ! -s conftest.err |
10251 | (eval $ac_try) 2>&5 |
8556 | } && test -s conftest$ac_exeext && |
10252 | ac_status=$? |
8557 | $as_test_x conftest$ac_exeext; then |
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10254 | (exit $ac_status); }; } && |
|
|
10255 | { ac_try='test -s conftest$ac_exeext' |
|
|
10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10257 | (eval $ac_try) 2>&5 |
|
|
10258 | ac_status=$? |
|
|
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10260 | (exit $ac_status); }; }; then |
|
|
10261 | eval "$as_ac_var=yes" |
8558 | eval "$as_ac_var=yes" |
10262 | else |
8559 | else |
10263 | echo "$as_me: failed program was:" >&5 |
8560 | echo "$as_me: failed program was:" >&5 |
10264 | sed 's/^/| /' conftest.$ac_ext >&5 |
8561 | sed 's/^/| /' conftest.$ac_ext >&5 |
10265 | |
8562 | |
10266 | eval "$as_ac_var=no" |
8563 | eval "$as_ac_var=no" |
10267 | fi |
8564 | fi |
10268 | rm -f conftest.err conftest.$ac_objext \ |
8565 | |
|
|
8566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10269 | conftest$ac_exeext conftest.$ac_ext |
8567 | conftest$ac_exeext conftest.$ac_ext |
10270 | fi |
8568 | fi |
10271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8569 | ac_res=`eval echo '${'$as_ac_var'}'` |
10272 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8570 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
8571 | echo "${ECHO_T}$ac_res" >&6; } |
10273 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8572 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10274 | cat >>confdefs.h <<_ACEOF |
8573 | cat >>confdefs.h <<_ACEOF |
10275 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10276 | _ACEOF |
8575 | _ACEOF |
10277 | |
8576 | |
10278 | fi |
8577 | fi |
10279 | done |
8578 | done |
10280 | |
8579 | |
10281 | |
8580 | |
10282 | |
8581 | |
|
|
8582 | support_utmp=yes |
|
|
8583 | support_wtmp=yes |
|
|
8584 | support_lastlog=yes |
|
|
8585 | |
|
|
8586 | # Check whether --enable-utmp was given. |
10283 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8587 | if test "${enable_utmp+set}" = set; then |
|
|
8588 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8589 | support_utmp=$enableval |
|
|
8590 | fi |
|
|
8591 | fi |
|
|
8592 | |
|
|
8593 | |
|
|
8594 | # Check whether --enable-wtmp was given. |
|
|
8595 | if test "${enable_wtmp+set}" = set; then |
|
|
8596 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8597 | support_wtmp=$enableval |
|
|
8598 | fi |
|
|
8599 | fi |
|
|
8600 | |
|
|
8601 | |
|
|
8602 | # Check whether --enable-lastlog was given. |
|
|
8603 | if test "${enable_lastlog+set}" = set; then |
|
|
8604 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8605 | support_lastlog=$enableval |
|
|
8606 | fi |
|
|
8607 | fi |
|
|
8608 | |
|
|
8609 | |
|
|
8610 | if test x$support_utmp = xyes; then |
|
|
8611 | |
|
|
8612 | cat >>confdefs.h <<\_ACEOF |
|
|
8613 | #define UTMP_SUPPORT 1 |
|
|
8614 | _ACEOF |
|
|
8615 | |
|
|
8616 | fi |
|
|
8617 | if test x$support_wtmp = xyes; then |
|
|
8618 | |
|
|
8619 | cat >>confdefs.h <<\_ACEOF |
|
|
8620 | #define WTMP_SUPPORT 1 |
|
|
8621 | _ACEOF |
|
|
8622 | |
|
|
8623 | fi |
|
|
8624 | if test x$support_lastlog = xyes; then |
|
|
8625 | |
|
|
8626 | cat >>confdefs.h <<\_ACEOF |
|
|
8627 | #define LASTLOG_SUPPORT 1 |
|
|
8628 | _ACEOF |
|
|
8629 | |
|
|
8630 | fi |
|
|
8631 | |
|
|
8632 | |
|
|
8633 | |
|
|
8634 | |
|
|
8635 | for ac_func in \ |
|
|
8636 | updwtmp \ |
|
|
8637 | updwtmpx \ |
|
|
8638 | updlastlogx \ |
|
|
8639 | |
|
|
8640 | do |
|
|
8641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10284 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8642 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10285 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
8643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10286 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8644 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10288 | fi |
|
|
10289 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10290 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10291 | else |
8646 | else |
10292 | # Is the header compilable? |
|
|
10293 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10294 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10295 | cat >conftest.$ac_ext <<_ACEOF |
8647 | cat >conftest.$ac_ext <<_ACEOF |
10296 | /* confdefs.h. */ |
8648 | /* confdefs.h. */ |
10297 | _ACEOF |
8649 | _ACEOF |
10298 | cat confdefs.h >>conftest.$ac_ext |
8650 | cat confdefs.h >>conftest.$ac_ext |
10299 | cat >>conftest.$ac_ext <<_ACEOF |
8651 | cat >>conftest.$ac_ext <<_ACEOF |
10300 | /* end confdefs.h. */ |
8652 | /* end confdefs.h. */ |
10301 | $ac_includes_default |
8653 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
8654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
8655 | #define $ac_func innocuous_$ac_func |
|
|
8656 | |
|
|
8657 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
8658 | which can conflict with char $ac_func (); below. |
|
|
8659 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
8660 | <limits.h> exists even on freestanding compilers. */ |
|
|
8661 | |
|
|
8662 | #ifdef __STDC__ |
10302 | #include <utmp.h> |
8663 | # include <limits.h> |
|
|
8664 | #else |
|
|
8665 | # include <assert.h> |
|
|
8666 | #endif |
|
|
8667 | |
|
|
8668 | #undef $ac_func |
|
|
8669 | |
|
|
8670 | /* Override any GCC internal prototype to avoid an error. |
|
|
8671 | Use char because int might match the return type of a GCC |
|
|
8672 | builtin and then its argument prototype would still apply. */ |
|
|
8673 | #ifdef __cplusplus |
|
|
8674 | extern "C" |
|
|
8675 | #endif |
|
|
8676 | char $ac_func (); |
|
|
8677 | /* The GNU C library defines this for functions which it implements |
|
|
8678 | to always fail with ENOSYS. Some functions are actually named |
|
|
8679 | something starting with __ and the normal name is an alias. */ |
|
|
8680 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
8681 | choke me |
|
|
8682 | #endif |
|
|
8683 | |
|
|
8684 | int |
|
|
8685 | main () |
|
|
8686 | { |
|
|
8687 | return $ac_func (); |
|
|
8688 | ; |
|
|
8689 | return 0; |
|
|
8690 | } |
10303 | _ACEOF |
8691 | _ACEOF |
10304 | rm -f conftest.$ac_objext |
8692 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8693 | if { (ac_try="$ac_link" |
|
|
8694 | case "(($ac_try" in |
|
|
8695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8696 | *) ac_try_echo=$ac_try;; |
|
|
8697 | esac |
10305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10306 | (eval $ac_compile) 2>conftest.er1 |
8699 | (eval "$ac_link") 2>conftest.er1 |
10307 | ac_status=$? |
8700 | ac_status=$? |
10308 | grep -v '^ *+' conftest.er1 >conftest.err |
8701 | grep -v '^ *+' conftest.er1 >conftest.err |
10309 | rm -f conftest.er1 |
8702 | rm -f conftest.er1 |
10310 | cat conftest.err >&5 |
8703 | cat conftest.err >&5 |
10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10312 | (exit $ac_status); } && |
8705 | (exit $ac_status); } && { |
10313 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8706 | test -z "$ac_cxx_werror_flag" || |
10314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8707 | test ! -s conftest.err |
10315 | (eval $ac_try) 2>&5 |
8708 | } && test -s conftest$ac_exeext && |
10316 | ac_status=$? |
8709 | $as_test_x conftest$ac_exeext; then |
10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8710 | eval "$as_ac_var=yes" |
10318 | (exit $ac_status); }; } && |
|
|
10319 | { ac_try='test -s conftest.$ac_objext' |
|
|
10320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10321 | (eval $ac_try) 2>&5 |
|
|
10322 | ac_status=$? |
|
|
10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10324 | (exit $ac_status); }; }; then |
|
|
10325 | ac_header_compiler=yes |
|
|
10326 | else |
8711 | else |
10327 | echo "$as_me: failed program was:" >&5 |
8712 | echo "$as_me: failed program was:" >&5 |
10328 | sed 's/^/| /' conftest.$ac_ext >&5 |
8713 | sed 's/^/| /' conftest.$ac_ext >&5 |
10329 | |
8714 | |
10330 | ac_header_compiler=no |
8715 | eval "$as_ac_var=no" |
10331 | fi |
8716 | fi |
|
|
8717 | |
10332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
8719 | conftest$ac_exeext conftest.$ac_ext |
|
|
8720 | fi |
|
|
8721 | ac_res=`eval echo '${'$as_ac_var'}'` |
10333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10334 | echo "${ECHO_T}$ac_header_compiler" >&6 |
8723 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
8724 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
8725 | cat >>confdefs.h <<_ACEOF |
|
|
8726 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
8727 | _ACEOF |
10335 | |
8728 | |
10336 | # Is the header present? |
8729 | fi |
10337 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8730 | done |
10338 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
8731 | |
|
|
8732 | |
|
|
8733 | |
|
|
8734 | for ac_header in lastlog.h |
|
|
8735 | do |
|
|
8736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
8738 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
8740 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
8741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8742 | fi |
|
|
8743 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
8744 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
8745 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
8746 | else |
|
|
8747 | # Is the header compilable? |
|
|
8748 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
8749 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10339 | cat >conftest.$ac_ext <<_ACEOF |
8750 | cat >conftest.$ac_ext <<_ACEOF |
10340 | /* confdefs.h. */ |
8751 | /* confdefs.h. */ |
10341 | _ACEOF |
8752 | _ACEOF |
10342 | cat confdefs.h >>conftest.$ac_ext |
8753 | cat confdefs.h >>conftest.$ac_ext |
10343 | cat >>conftest.$ac_ext <<_ACEOF |
8754 | cat >>conftest.$ac_ext <<_ACEOF |
10344 | /* end confdefs.h. */ |
8755 | /* end confdefs.h. */ |
10345 | #include <utmp.h> |
8756 | $ac_includes_default |
|
|
8757 | #include <$ac_header> |
10346 | _ACEOF |
8758 | _ACEOF |
10347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8759 | rm -f conftest.$ac_objext |
10348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8760 | if { (ac_try="$ac_compile" |
|
|
8761 | case "(($ac_try" in |
|
|
8762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8763 | *) ac_try_echo=$ac_try;; |
|
|
8764 | esac |
|
|
8765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8766 | (eval "$ac_compile") 2>conftest.er1 |
10349 | ac_status=$? |
8767 | ac_status=$? |
10350 | grep -v '^ *+' conftest.er1 >conftest.err |
8768 | grep -v '^ *+' conftest.er1 >conftest.err |
10351 | rm -f conftest.er1 |
8769 | rm -f conftest.er1 |
10352 | cat conftest.err >&5 |
8770 | cat conftest.err >&5 |
10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10354 | (exit $ac_status); } >/dev/null; then |
8772 | (exit $ac_status); } && { |
|
|
8773 | test -z "$ac_cxx_werror_flag" || |
10355 | if test -s conftest.err; then |
8774 | test ! -s conftest.err |
10356 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
8775 | } && test -s conftest.$ac_objext; then |
10357 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10358 | else |
|
|
10359 | ac_cpp_err= |
|
|
10360 | fi |
|
|
10361 | else |
|
|
10362 | ac_cpp_err=yes |
|
|
10363 | fi |
|
|
10364 | if test -z "$ac_cpp_err"; then |
|
|
10365 | ac_header_preproc=yes |
8776 | ac_header_compiler=yes |
10366 | else |
8777 | else |
10367 | echo "$as_me: failed program was:" >&5 |
8778 | echo "$as_me: failed program was:" >&5 |
10368 | sed 's/^/| /' conftest.$ac_ext >&5 |
8779 | sed 's/^/| /' conftest.$ac_ext >&5 |
10369 | |
8780 | |
|
|
8781 | ac_header_compiler=no |
|
|
8782 | fi |
|
|
8783 | |
|
|
8784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8785 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
8786 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
8787 | |
|
|
8788 | # Is the header present? |
|
|
8789 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
8790 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
8791 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8792 | /* confdefs.h. */ |
|
|
8793 | _ACEOF |
|
|
8794 | cat confdefs.h >>conftest.$ac_ext |
|
|
8795 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8796 | /* end confdefs.h. */ |
|
|
8797 | #include <$ac_header> |
|
|
8798 | _ACEOF |
|
|
8799 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
8800 | case "(($ac_try" in |
|
|
8801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8802 | *) ac_try_echo=$ac_try;; |
|
|
8803 | esac |
|
|
8804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8805 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
8806 | ac_status=$? |
|
|
8807 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8808 | rm -f conftest.er1 |
|
|
8809 | cat conftest.err >&5 |
|
|
8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8811 | (exit $ac_status); } >/dev/null && { |
|
|
8812 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
8813 | test ! -s conftest.err |
|
|
8814 | }; then |
|
|
8815 | ac_header_preproc=yes |
|
|
8816 | else |
|
|
8817 | echo "$as_me: failed program was:" >&5 |
|
|
8818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8819 | |
10370 | ac_header_preproc=no |
8820 | ac_header_preproc=no |
10371 | fi |
8821 | fi |
|
|
8822 | |
10372 | rm -f conftest.err conftest.$ac_ext |
8823 | rm -f conftest.err conftest.$ac_ext |
10373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8824 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10374 | echo "${ECHO_T}$ac_header_preproc" >&6 |
8825 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10375 | |
8826 | |
10376 | # So? What about this header? |
8827 | # So? What about this header? |
10377 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8828 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10378 | yes:no: ) |
8829 | yes:no: ) |
10379 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10380 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10381 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10382 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8833 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10383 | ac_header_preproc=yes |
8834 | ac_header_preproc=yes |
10384 | ;; |
8835 | ;; |
10385 | no:yes:* ) |
8836 | no:yes:* ) |
10386 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8837 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10387 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8838 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10388 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8839 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10389 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8840 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10390 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8841 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10391 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8842 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10392 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8843 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10393 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8844 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10394 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10395 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8846 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10396 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8847 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10397 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8848 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10398 | ( |
8849 | |
10399 | cat <<\_ASBOX |
|
|
10400 | ## ------------------------------------------ ## |
|
|
10401 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10402 | ## ------------------------------------------ ## |
|
|
10403 | _ASBOX |
|
|
10404 | ) | |
|
|
10405 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10406 | ;; |
8850 | ;; |
10407 | esac |
8851 | esac |
10408 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8852 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10409 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
8853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10410 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8854 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10412 | else |
8856 | else |
10413 | ac_cv_header_utmp_h=$ac_header_preproc |
8857 | eval "$as_ac_Header=\$ac_header_preproc" |
10414 | fi |
8858 | fi |
|
|
8859 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
8860 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
8861 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
8862 | |
|
|
8863 | fi |
|
|
8864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8865 | cat >>confdefs.h <<_ACEOF |
|
|
8866 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8867 | _ACEOF |
|
|
8868 | |
|
|
8869 | fi |
|
|
8870 | |
|
|
8871 | done |
|
|
8872 | |
|
|
8873 | |
|
|
8874 | |
|
|
8875 | |
|
|
8876 | for ac_header in utmp.h |
|
|
8877 | do |
|
|
8878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
8880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
8881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
8882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8884 | fi |
|
|
8885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
8886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
8887 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
8888 | else |
|
|
8889 | # Is the header compilable? |
|
|
8890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
8891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
8892 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8893 | /* confdefs.h. */ |
|
|
8894 | _ACEOF |
|
|
8895 | cat confdefs.h >>conftest.$ac_ext |
|
|
8896 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8897 | /* end confdefs.h. */ |
|
|
8898 | $ac_includes_default |
|
|
8899 | #include <$ac_header> |
|
|
8900 | _ACEOF |
|
|
8901 | rm -f conftest.$ac_objext |
|
|
8902 | if { (ac_try="$ac_compile" |
|
|
8903 | case "(($ac_try" in |
|
|
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8905 | *) ac_try_echo=$ac_try;; |
|
|
8906 | esac |
|
|
8907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8908 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8909 | ac_status=$? |
|
|
8910 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8911 | rm -f conftest.er1 |
|
|
8912 | cat conftest.err >&5 |
|
|
8913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8914 | (exit $ac_status); } && { |
|
|
8915 | test -z "$ac_cxx_werror_flag" || |
|
|
8916 | test ! -s conftest.err |
|
|
8917 | } && test -s conftest.$ac_objext; then |
|
|
8918 | ac_header_compiler=yes |
|
|
8919 | else |
|
|
8920 | echo "$as_me: failed program was:" >&5 |
|
|
8921 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8922 | |
|
|
8923 | ac_header_compiler=no |
|
|
8924 | fi |
|
|
8925 | |
|
|
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10415 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10416 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
8928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10417 | |
8929 | |
|
|
8930 | # Is the header present? |
|
|
8931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
8932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
8933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8934 | /* confdefs.h. */ |
|
|
8935 | _ACEOF |
|
|
8936 | cat confdefs.h >>conftest.$ac_ext |
|
|
8937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8938 | /* end confdefs.h. */ |
|
|
8939 | #include <$ac_header> |
|
|
8940 | _ACEOF |
|
|
8941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
8942 | case "(($ac_try" in |
|
|
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8944 | *) ac_try_echo=$ac_try;; |
|
|
8945 | esac |
|
|
8946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
8948 | ac_status=$? |
|
|
8949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8950 | rm -f conftest.er1 |
|
|
8951 | cat conftest.err >&5 |
|
|
8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8953 | (exit $ac_status); } >/dev/null && { |
|
|
8954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
8955 | test ! -s conftest.err |
|
|
8956 | }; then |
|
|
8957 | ac_header_preproc=yes |
|
|
8958 | else |
|
|
8959 | echo "$as_me: failed program was:" >&5 |
|
|
8960 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8961 | |
|
|
8962 | ac_header_preproc=no |
10418 | fi |
8963 | fi |
10419 | if test $ac_cv_header_utmp_h = yes; then |
8964 | |
|
|
8965 | rm -f conftest.err conftest.$ac_ext |
|
|
8966 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
8967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
8968 | |
|
|
8969 | # So? What about this header? |
|
|
8970 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
8971 | yes:no: ) |
|
|
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
8973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
8975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
8976 | ac_header_preproc=yes |
|
|
8977 | ;; |
|
|
8978 | no:yes:* ) |
|
|
8979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
8980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
8982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
8984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
8985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
8986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
8987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
8988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
8990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
8991 | |
|
|
8992 | ;; |
|
|
8993 | esac |
|
|
8994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
8995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
8996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8998 | else |
|
|
8999 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
9000 | fi |
|
|
9001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
9002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9003 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
9004 | |
|
|
9005 | fi |
|
|
9006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9007 | cat >>confdefs.h <<_ACEOF |
|
|
9008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9009 | _ACEOF |
10420 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
9010 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10421 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
9011 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10422 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
9012 | if test "${struct_utmp+set}" = set; then |
10423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10424 | else |
9014 | else |
10425 | cat >conftest.$ac_ext <<_ACEOF |
9015 | cat >conftest.$ac_ext <<_ACEOF |
10426 | /* confdefs.h. */ |
9016 | /* confdefs.h. */ |
10427 | _ACEOF |
9017 | _ACEOF |
10428 | cat confdefs.h >>conftest.$ac_ext |
9018 | cat confdefs.h >>conftest.$ac_ext |
10429 | cat >>conftest.$ac_ext <<_ACEOF |
9019 | cat >>conftest.$ac_ext <<_ACEOF |
10430 | /* end confdefs.h. */ |
9020 | /* end confdefs.h. */ |
10431 | #include <sys/types.h> |
9021 | #include <sys/types.h> |
10432 | #include <stdint.h> |
|
|
10433 | #include <utmp.h> |
9022 | #include <utmp.h> |
10434 | int |
9023 | int |
10435 | main () |
9024 | main () |
10436 | { |
9025 | { |
10437 | struct utmp ut; |
9026 | struct utmp ut; |
10438 | ; |
9027 | ; |
10439 | return 0; |
9028 | return 0; |
10440 | } |
9029 | } |
10441 | _ACEOF |
9030 | _ACEOF |
10442 | rm -f conftest.$ac_objext |
9031 | rm -f conftest.$ac_objext |
|
|
9032 | if { (ac_try="$ac_compile" |
|
|
9033 | case "(($ac_try" in |
|
|
9034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9035 | *) ac_try_echo=$ac_try;; |
|
|
9036 | esac |
10443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10444 | (eval $ac_compile) 2>conftest.er1 |
9038 | (eval "$ac_compile") 2>conftest.er1 |
10445 | ac_status=$? |
9039 | ac_status=$? |
10446 | grep -v '^ *+' conftest.er1 >conftest.err |
9040 | grep -v '^ *+' conftest.er1 >conftest.err |
10447 | rm -f conftest.er1 |
9041 | rm -f conftest.er1 |
10448 | cat conftest.err >&5 |
9042 | cat conftest.err >&5 |
10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10450 | (exit $ac_status); } && |
9044 | (exit $ac_status); } && { |
10451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9045 | test -z "$ac_cxx_werror_flag" || |
10452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9046 | test ! -s conftest.err |
10453 | (eval $ac_try) 2>&5 |
9047 | } && test -s conftest.$ac_objext; then |
10454 | ac_status=$? |
|
|
10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10456 | (exit $ac_status); }; } && |
|
|
10457 | { ac_try='test -s conftest.$ac_objext' |
|
|
10458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10459 | (eval $ac_try) 2>&5 |
|
|
10460 | ac_status=$? |
|
|
10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10462 | (exit $ac_status); }; }; then |
|
|
10463 | rxvt_cv_struct_utmp=yes |
9048 | struct_utmp=yes |
10464 | else |
9049 | else |
10465 | echo "$as_me: failed program was:" >&5 |
9050 | echo "$as_me: failed program was:" >&5 |
10466 | sed 's/^/| /' conftest.$ac_ext >&5 |
9051 | sed 's/^/| /' conftest.$ac_ext >&5 |
10467 | |
9052 | |
10468 | rxvt_cv_struct_utmp=no |
9053 | struct_utmp=no |
10469 | fi |
9054 | fi |
|
|
9055 | |
10470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10471 | fi |
9057 | fi |
10472 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
9058 | { echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
10473 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
9059 | echo "${ECHO_T}$struct_utmp" >&6; } |
10474 | if test x$rxvt_cv_struct_utmp = xyes; then |
9060 | if test x$struct_utmp = xyes; then |
10475 | |
9061 | |
10476 | cat >>confdefs.h <<\_ACEOF |
9062 | cat >>confdefs.h <<\_ACEOF |
10477 | #define HAVE_STRUCT_UTMP 1 |
9063 | #define HAVE_STRUCT_UTMP 1 |
10478 | _ACEOF |
9064 | _ACEOF |
10479 | |
9065 | |
10480 | fi |
9066 | fi |
10481 | |
9067 | |
10482 | |
9068 | |
10483 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
9069 | { echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10484 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
9070 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; } |
10485 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
9071 | if test "${struct_utmp_host+set}" = set; then |
10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10487 | else |
9073 | else |
10488 | cat >conftest.$ac_ext <<_ACEOF |
9074 | cat >conftest.$ac_ext <<_ACEOF |
10489 | /* confdefs.h. */ |
9075 | /* confdefs.h. */ |
10490 | _ACEOF |
9076 | _ACEOF |
… | |
… | |
10500 | ; |
9086 | ; |
10501 | return 0; |
9087 | return 0; |
10502 | } |
9088 | } |
10503 | _ACEOF |
9089 | _ACEOF |
10504 | rm -f conftest.$ac_objext |
9090 | rm -f conftest.$ac_objext |
|
|
9091 | if { (ac_try="$ac_compile" |
|
|
9092 | case "(($ac_try" in |
|
|
9093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9094 | *) ac_try_echo=$ac_try;; |
|
|
9095 | esac |
10505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10506 | (eval $ac_compile) 2>conftest.er1 |
9097 | (eval "$ac_compile") 2>conftest.er1 |
10507 | ac_status=$? |
9098 | ac_status=$? |
10508 | grep -v '^ *+' conftest.er1 >conftest.err |
9099 | grep -v '^ *+' conftest.er1 >conftest.err |
10509 | rm -f conftest.er1 |
9100 | rm -f conftest.er1 |
10510 | cat conftest.err >&5 |
9101 | cat conftest.err >&5 |
10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10512 | (exit $ac_status); } && |
9103 | (exit $ac_status); } && { |
10513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9104 | test -z "$ac_cxx_werror_flag" || |
10514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9105 | test ! -s conftest.err |
10515 | (eval $ac_try) 2>&5 |
9106 | } && test -s conftest.$ac_objext; then |
10516 | ac_status=$? |
|
|
10517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10518 | (exit $ac_status); }; } && |
|
|
10519 | { ac_try='test -s conftest.$ac_objext' |
|
|
10520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10521 | (eval $ac_try) 2>&5 |
|
|
10522 | ac_status=$? |
|
|
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10524 | (exit $ac_status); }; }; then |
|
|
10525 | rxvt_cv_struct_utmp_host=yes |
9107 | struct_utmp_host=yes |
10526 | else |
9108 | else |
10527 | echo "$as_me: failed program was:" >&5 |
9109 | echo "$as_me: failed program was:" >&5 |
10528 | sed 's/^/| /' conftest.$ac_ext >&5 |
9110 | sed 's/^/| /' conftest.$ac_ext >&5 |
10529 | |
9111 | |
10530 | rxvt_cv_struct_utmp_host=no |
9112 | struct_utmp_host=no |
10531 | fi |
9113 | fi |
|
|
9114 | |
10532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10533 | fi |
9116 | fi |
10534 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
9117 | { echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
10535 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
9118 | echo "${ECHO_T}$struct_utmp_host" >&6; } |
10536 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
9119 | if test x$struct_utmp_host = xyes; then |
10537 | |
9120 | |
10538 | cat >>confdefs.h <<\_ACEOF |
9121 | cat >>confdefs.h <<\_ACEOF |
10539 | #define HAVE_UTMP_HOST 1 |
9122 | #define HAVE_UTMP_HOST 1 |
10540 | _ACEOF |
9123 | _ACEOF |
10541 | |
9124 | |
10542 | fi |
9125 | fi |
10543 | |
9126 | |
10544 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
9127 | { echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10545 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
9128 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; } |
10546 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
9129 | if test "${struct_utmp_pid+set}" = set; then |
10547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10548 | else |
9131 | else |
10549 | cat >conftest.$ac_ext <<_ACEOF |
9132 | cat >conftest.$ac_ext <<_ACEOF |
10550 | /* confdefs.h. */ |
9133 | /* confdefs.h. */ |
10551 | _ACEOF |
9134 | _ACEOF |
… | |
… | |
10561 | ; |
9144 | ; |
10562 | return 0; |
9145 | return 0; |
10563 | } |
9146 | } |
10564 | _ACEOF |
9147 | _ACEOF |
10565 | rm -f conftest.$ac_objext |
9148 | rm -f conftest.$ac_objext |
|
|
9149 | if { (ac_try="$ac_compile" |
|
|
9150 | case "(($ac_try" in |
|
|
9151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9152 | *) ac_try_echo=$ac_try;; |
|
|
9153 | esac |
10566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10567 | (eval $ac_compile) 2>conftest.er1 |
9155 | (eval "$ac_compile") 2>conftest.er1 |
10568 | ac_status=$? |
9156 | ac_status=$? |
10569 | grep -v '^ *+' conftest.er1 >conftest.err |
9157 | grep -v '^ *+' conftest.er1 >conftest.err |
10570 | rm -f conftest.er1 |
9158 | rm -f conftest.er1 |
10571 | cat conftest.err >&5 |
9159 | cat conftest.err >&5 |
10572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10573 | (exit $ac_status); } && |
9161 | (exit $ac_status); } && { |
10574 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9162 | test -z "$ac_cxx_werror_flag" || |
10575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9163 | test ! -s conftest.err |
10576 | (eval $ac_try) 2>&5 |
9164 | } && test -s conftest.$ac_objext; then |
10577 | ac_status=$? |
|
|
10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10579 | (exit $ac_status); }; } && |
|
|
10580 | { ac_try='test -s conftest.$ac_objext' |
|
|
10581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10582 | (eval $ac_try) 2>&5 |
|
|
10583 | ac_status=$? |
|
|
10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10585 | (exit $ac_status); }; }; then |
|
|
10586 | rxvt_cv_struct_utmp_pid=yes |
9165 | struct_utmp_pid=yes |
10587 | else |
9166 | else |
10588 | echo "$as_me: failed program was:" >&5 |
9167 | echo "$as_me: failed program was:" >&5 |
10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
9168 | sed 's/^/| /' conftest.$ac_ext >&5 |
10590 | |
9169 | |
10591 | rxvt_cv_struct_utmp_pid=no |
9170 | struct_utmp_pid=no |
10592 | fi |
9171 | fi |
|
|
9172 | |
10593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10594 | fi |
9174 | fi |
10595 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
9175 | { echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
10596 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
9176 | echo "${ECHO_T}$struct_utmp_pid" >&6; } |
10597 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
9177 | if test x$struct_utmp_pid = xyes; then |
10598 | |
9178 | |
10599 | cat >>confdefs.h <<\_ACEOF |
9179 | cat >>confdefs.h <<\_ACEOF |
10600 | #define HAVE_UTMP_PID 1 |
9180 | #define HAVE_UTMP_PID 1 |
10601 | _ACEOF |
9181 | _ACEOF |
10602 | |
9182 | |
10603 | fi |
9183 | fi |
10604 | |
9184 | |
10605 | fi |
9185 | fi |
10606 | |
9186 | |
|
|
9187 | done |
10607 | |
9188 | |
10608 | |
9189 | |
10609 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9190 | |
|
|
9191 | for ac_header in utmpx.h |
|
|
9192 | do |
|
|
9193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10610 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10611 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
9196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10612 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10614 | fi |
9199 | fi |
10615 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10616 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
9201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9202 | echo "${ECHO_T}$ac_res" >&6; } |
10617 | else |
9203 | else |
10618 | # Is the header compilable? |
9204 | # Is the header compilable? |
10619 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10620 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10621 | cat >conftest.$ac_ext <<_ACEOF |
9207 | cat >conftest.$ac_ext <<_ACEOF |
10622 | /* confdefs.h. */ |
9208 | /* confdefs.h. */ |
10623 | _ACEOF |
9209 | _ACEOF |
10624 | cat confdefs.h >>conftest.$ac_ext |
9210 | cat confdefs.h >>conftest.$ac_ext |
10625 | cat >>conftest.$ac_ext <<_ACEOF |
9211 | cat >>conftest.$ac_ext <<_ACEOF |
10626 | /* end confdefs.h. */ |
9212 | /* end confdefs.h. */ |
10627 | $ac_includes_default |
9213 | $ac_includes_default |
10628 | #include <utmpx.h> |
9214 | #include <$ac_header> |
10629 | _ACEOF |
9215 | _ACEOF |
10630 | rm -f conftest.$ac_objext |
9216 | rm -f conftest.$ac_objext |
|
|
9217 | if { (ac_try="$ac_compile" |
|
|
9218 | case "(($ac_try" in |
|
|
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9220 | *) ac_try_echo=$ac_try;; |
|
|
9221 | esac |
10631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10632 | (eval $ac_compile) 2>conftest.er1 |
9223 | (eval "$ac_compile") 2>conftest.er1 |
10633 | ac_status=$? |
9224 | ac_status=$? |
10634 | grep -v '^ *+' conftest.er1 >conftest.err |
9225 | grep -v '^ *+' conftest.er1 >conftest.err |
10635 | rm -f conftest.er1 |
9226 | rm -f conftest.er1 |
10636 | cat conftest.err >&5 |
9227 | cat conftest.err >&5 |
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10638 | (exit $ac_status); } && |
9229 | (exit $ac_status); } && { |
10639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9230 | test -z "$ac_cxx_werror_flag" || |
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9231 | test ! -s conftest.err |
10641 | (eval $ac_try) 2>&5 |
9232 | } && test -s conftest.$ac_objext; then |
10642 | ac_status=$? |
|
|
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10644 | (exit $ac_status); }; } && |
|
|
10645 | { ac_try='test -s conftest.$ac_objext' |
|
|
10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10647 | (eval $ac_try) 2>&5 |
|
|
10648 | ac_status=$? |
|
|
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10650 | (exit $ac_status); }; }; then |
|
|
10651 | ac_header_compiler=yes |
9233 | ac_header_compiler=yes |
10652 | else |
9234 | else |
10653 | echo "$as_me: failed program was:" >&5 |
9235 | echo "$as_me: failed program was:" >&5 |
10654 | sed 's/^/| /' conftest.$ac_ext >&5 |
9236 | sed 's/^/| /' conftest.$ac_ext >&5 |
10655 | |
9237 | |
10656 | ac_header_compiler=no |
9238 | ac_header_compiler=no |
10657 | fi |
9239 | fi |
|
|
9240 | |
10658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10659 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10660 | echo "${ECHO_T}$ac_header_compiler" >&6 |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10661 | |
9244 | |
10662 | # Is the header present? |
9245 | # Is the header present? |
10663 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10664 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10665 | cat >conftest.$ac_ext <<_ACEOF |
9248 | cat >conftest.$ac_ext <<_ACEOF |
10666 | /* confdefs.h. */ |
9249 | /* confdefs.h. */ |
10667 | _ACEOF |
9250 | _ACEOF |
10668 | cat confdefs.h >>conftest.$ac_ext |
9251 | cat confdefs.h >>conftest.$ac_ext |
10669 | cat >>conftest.$ac_ext <<_ACEOF |
9252 | cat >>conftest.$ac_ext <<_ACEOF |
10670 | /* end confdefs.h. */ |
9253 | /* end confdefs.h. */ |
10671 | #include <utmpx.h> |
9254 | #include <$ac_header> |
10672 | _ACEOF |
9255 | _ACEOF |
10673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
9257 | case "(($ac_try" in |
|
|
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9259 | *) ac_try_echo=$ac_try;; |
|
|
9260 | esac |
|
|
9261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9262 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10675 | ac_status=$? |
9263 | ac_status=$? |
10676 | grep -v '^ *+' conftest.er1 >conftest.err |
9264 | grep -v '^ *+' conftest.er1 >conftest.err |
10677 | rm -f conftest.er1 |
9265 | rm -f conftest.er1 |
10678 | cat conftest.err >&5 |
9266 | cat conftest.err >&5 |
10679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10680 | (exit $ac_status); } >/dev/null; then |
9268 | (exit $ac_status); } >/dev/null && { |
|
|
9269 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10681 | if test -s conftest.err; then |
9270 | test ! -s conftest.err |
10682 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
9271 | }; then |
10683 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10684 | else |
|
|
10685 | ac_cpp_err= |
|
|
10686 | fi |
|
|
10687 | else |
|
|
10688 | ac_cpp_err=yes |
|
|
10689 | fi |
|
|
10690 | if test -z "$ac_cpp_err"; then |
|
|
10691 | ac_header_preproc=yes |
9272 | ac_header_preproc=yes |
10692 | else |
9273 | else |
10693 | echo "$as_me: failed program was:" >&5 |
9274 | echo "$as_me: failed program was:" >&5 |
10694 | sed 's/^/| /' conftest.$ac_ext >&5 |
9275 | sed 's/^/| /' conftest.$ac_ext >&5 |
10695 | |
9276 | |
10696 | ac_header_preproc=no |
9277 | ac_header_preproc=no |
10697 | fi |
9278 | fi |
|
|
9279 | |
10698 | rm -f conftest.err conftest.$ac_ext |
9280 | rm -f conftest.err conftest.$ac_ext |
10699 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9281 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10700 | echo "${ECHO_T}$ac_header_preproc" >&6 |
9282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10701 | |
9283 | |
10702 | # So? What about this header? |
9284 | # So? What about this header? |
10703 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9285 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10704 | yes:no: ) |
9286 | yes:no: ) |
10705 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10706 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10707 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10708 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10709 | ac_header_preproc=yes |
9291 | ac_header_preproc=yes |
10710 | ;; |
9292 | ;; |
10711 | no:yes:* ) |
9293 | no:yes:* ) |
10712 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10713 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10714 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10715 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10716 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10717 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10718 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10719 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10720 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10721 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10722 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10723 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10724 | ( |
9306 | |
10725 | cat <<\_ASBOX |
|
|
10726 | ## ------------------------------------------ ## |
|
|
10727 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10728 | ## ------------------------------------------ ## |
|
|
10729 | _ASBOX |
|
|
10730 | ) | |
|
|
10731 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10732 | ;; |
9307 | ;; |
10733 | esac |
9308 | esac |
10734 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10735 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10736 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10738 | else |
9313 | else |
10739 | ac_cv_header_utmpx_h=$ac_header_preproc |
9314 | eval "$as_ac_Header=\$ac_header_preproc" |
10740 | fi |
9315 | fi |
10741 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10742 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
9317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
9318 | echo "${ECHO_T}$ac_res" >&6; } |
10743 | |
9319 | |
10744 | fi |
9320 | fi |
10745 | if test $ac_cv_header_utmpx_h = yes; then |
9321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9322 | cat >>confdefs.h <<_ACEOF |
|
|
9323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9324 | _ACEOF |
10746 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9325 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10747 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
9326 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10748 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
9327 | if test "${struct_utmpx+set}" = set; then |
10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10750 | else |
9329 | else |
10751 | cat >conftest.$ac_ext <<_ACEOF |
9330 | cat >conftest.$ac_ext <<_ACEOF |
10752 | /* confdefs.h. */ |
9331 | /* confdefs.h. */ |
10753 | _ACEOF |
9332 | _ACEOF |
… | |
… | |
10763 | ; |
9342 | ; |
10764 | return 0; |
9343 | return 0; |
10765 | } |
9344 | } |
10766 | _ACEOF |
9345 | _ACEOF |
10767 | rm -f conftest.$ac_objext |
9346 | rm -f conftest.$ac_objext |
|
|
9347 | if { (ac_try="$ac_compile" |
|
|
9348 | case "(($ac_try" in |
|
|
9349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9350 | *) ac_try_echo=$ac_try;; |
|
|
9351 | esac |
10768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10769 | (eval $ac_compile) 2>conftest.er1 |
9353 | (eval "$ac_compile") 2>conftest.er1 |
10770 | ac_status=$? |
9354 | ac_status=$? |
10771 | grep -v '^ *+' conftest.er1 >conftest.err |
9355 | grep -v '^ *+' conftest.er1 >conftest.err |
10772 | rm -f conftest.er1 |
9356 | rm -f conftest.er1 |
10773 | cat conftest.err >&5 |
9357 | cat conftest.err >&5 |
10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10775 | (exit $ac_status); } && |
9359 | (exit $ac_status); } && { |
10776 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9360 | test -z "$ac_cxx_werror_flag" || |
10777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9361 | test ! -s conftest.err |
10778 | (eval $ac_try) 2>&5 |
9362 | } && test -s conftest.$ac_objext; then |
10779 | ac_status=$? |
|
|
10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10781 | (exit $ac_status); }; } && |
|
|
10782 | { ac_try='test -s conftest.$ac_objext' |
|
|
10783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10784 | (eval $ac_try) 2>&5 |
|
|
10785 | ac_status=$? |
|
|
10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10787 | (exit $ac_status); }; }; then |
|
|
10788 | rxvt_cv_struct_utmpx=yes |
9363 | struct_utmpx=yes |
10789 | else |
9364 | else |
10790 | echo "$as_me: failed program was:" >&5 |
9365 | echo "$as_me: failed program was:" >&5 |
10791 | sed 's/^/| /' conftest.$ac_ext >&5 |
9366 | sed 's/^/| /' conftest.$ac_ext >&5 |
10792 | |
9367 | |
10793 | rxvt_cv_struct_utmpx=no |
9368 | struct_utmpx=no |
10794 | fi |
9369 | fi |
|
|
9370 | |
10795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10796 | fi |
9372 | fi |
10797 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
9373 | { echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
10798 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
9374 | echo "${ECHO_T}$struct_utmpx" >&6; } |
10799 | if test x$rxvt_cv_struct_utmpx = xyes; then |
9375 | if test x$struct_utmpx = xyes; then |
10800 | |
9376 | |
10801 | cat >>confdefs.h <<\_ACEOF |
9377 | cat >>confdefs.h <<\_ACEOF |
10802 | #define HAVE_STRUCT_UTMPX 1 |
9378 | #define HAVE_STRUCT_UTMPX 1 |
10803 | _ACEOF |
9379 | _ACEOF |
10804 | |
9380 | |
10805 | fi |
9381 | fi |
10806 | |
9382 | |
10807 | |
9383 | |
10808 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
9384 | { echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10809 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
9385 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } |
10810 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
9386 | if test "${struct_utmpx_host+set}" = set; then |
10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10812 | else |
9388 | else |
10813 | cat >conftest.$ac_ext <<_ACEOF |
9389 | cat >conftest.$ac_ext <<_ACEOF |
10814 | /* confdefs.h. */ |
9390 | /* confdefs.h. */ |
10815 | _ACEOF |
9391 | _ACEOF |
… | |
… | |
10825 | ; |
9401 | ; |
10826 | return 0; |
9402 | return 0; |
10827 | } |
9403 | } |
10828 | _ACEOF |
9404 | _ACEOF |
10829 | rm -f conftest.$ac_objext |
9405 | rm -f conftest.$ac_objext |
|
|
9406 | if { (ac_try="$ac_compile" |
|
|
9407 | case "(($ac_try" in |
|
|
9408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9409 | *) ac_try_echo=$ac_try;; |
|
|
9410 | esac |
10830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10831 | (eval $ac_compile) 2>conftest.er1 |
9412 | (eval "$ac_compile") 2>conftest.er1 |
10832 | ac_status=$? |
9413 | ac_status=$? |
10833 | grep -v '^ *+' conftest.er1 >conftest.err |
9414 | grep -v '^ *+' conftest.er1 >conftest.err |
10834 | rm -f conftest.er1 |
9415 | rm -f conftest.er1 |
10835 | cat conftest.err >&5 |
9416 | cat conftest.err >&5 |
10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10837 | (exit $ac_status); } && |
9418 | (exit $ac_status); } && { |
10838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9419 | test -z "$ac_cxx_werror_flag" || |
10839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9420 | test ! -s conftest.err |
10840 | (eval $ac_try) 2>&5 |
9421 | } && test -s conftest.$ac_objext; then |
10841 | ac_status=$? |
|
|
10842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10843 | (exit $ac_status); }; } && |
|
|
10844 | { ac_try='test -s conftest.$ac_objext' |
|
|
10845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10846 | (eval $ac_try) 2>&5 |
|
|
10847 | ac_status=$? |
|
|
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10849 | (exit $ac_status); }; }; then |
|
|
10850 | rxvt_cv_struct_utmpx_host=yes |
9422 | struct_utmpx_host=yes |
10851 | else |
9423 | else |
10852 | echo "$as_me: failed program was:" >&5 |
9424 | echo "$as_me: failed program was:" >&5 |
10853 | sed 's/^/| /' conftest.$ac_ext >&5 |
9425 | sed 's/^/| /' conftest.$ac_ext >&5 |
10854 | |
9426 | |
10855 | rxvt_cv_struct_utmpx_host=no |
9427 | struct_utmpx_host=no |
10856 | fi |
9428 | fi |
|
|
9429 | |
10857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10858 | fi |
9431 | fi |
10859 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
9432 | { echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
10860 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
9433 | echo "${ECHO_T}$struct_utmpx_host" >&6; } |
10861 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
9434 | if test x$struct_utmpx_host = xyes; then |
10862 | |
9435 | |
10863 | cat >>confdefs.h <<\_ACEOF |
9436 | cat >>confdefs.h <<\_ACEOF |
10864 | #define HAVE_UTMPX_HOST 1 |
9437 | #define HAVE_UTMPX_HOST 1 |
10865 | _ACEOF |
9438 | _ACEOF |
10866 | |
9439 | |
10867 | fi |
9440 | fi |
10868 | |
9441 | |
10869 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
9442 | { echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
10870 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
9443 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } |
10871 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
9444 | if test "${struct_utmpx_session+set}" = set; then |
10872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10873 | else |
9446 | else |
10874 | cat >conftest.$ac_ext <<_ACEOF |
9447 | cat >conftest.$ac_ext <<_ACEOF |
10875 | /* confdefs.h. */ |
9448 | /* confdefs.h. */ |
10876 | _ACEOF |
9449 | _ACEOF |
… | |
… | |
10886 | ; |
9459 | ; |
10887 | return 0; |
9460 | return 0; |
10888 | } |
9461 | } |
10889 | _ACEOF |
9462 | _ACEOF |
10890 | rm -f conftest.$ac_objext |
9463 | rm -f conftest.$ac_objext |
|
|
9464 | if { (ac_try="$ac_compile" |
|
|
9465 | case "(($ac_try" in |
|
|
9466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9467 | *) ac_try_echo=$ac_try;; |
|
|
9468 | esac |
10891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10892 | (eval $ac_compile) 2>conftest.er1 |
9470 | (eval "$ac_compile") 2>conftest.er1 |
10893 | ac_status=$? |
9471 | ac_status=$? |
10894 | grep -v '^ *+' conftest.er1 >conftest.err |
9472 | grep -v '^ *+' conftest.er1 >conftest.err |
10895 | rm -f conftest.er1 |
9473 | rm -f conftest.er1 |
10896 | cat conftest.err >&5 |
9474 | cat conftest.err >&5 |
10897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10898 | (exit $ac_status); } && |
9476 | (exit $ac_status); } && { |
10899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9477 | test -z "$ac_cxx_werror_flag" || |
10900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9478 | test ! -s conftest.err |
10901 | (eval $ac_try) 2>&5 |
9479 | } && test -s conftest.$ac_objext; then |
10902 | ac_status=$? |
|
|
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10904 | (exit $ac_status); }; } && |
|
|
10905 | { ac_try='test -s conftest.$ac_objext' |
|
|
10906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10907 | (eval $ac_try) 2>&5 |
|
|
10908 | ac_status=$? |
|
|
10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10910 | (exit $ac_status); }; }; then |
|
|
10911 | rxvt_cv_struct_utmpx_session=yes |
9480 | struct_utmpx_session=yes |
10912 | else |
9481 | else |
10913 | echo "$as_me: failed program was:" >&5 |
9482 | echo "$as_me: failed program was:" >&5 |
10914 | sed 's/^/| /' conftest.$ac_ext >&5 |
9483 | sed 's/^/| /' conftest.$ac_ext >&5 |
10915 | |
9484 | |
10916 | rxvt_cv_struct_utmpx_session=no |
9485 | struct_utmpx_session=no |
10917 | fi |
9486 | fi |
|
|
9487 | |
10918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10919 | fi |
9489 | fi |
10920 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
9490 | { echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
10921 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
9491 | echo "${ECHO_T}$struct_utmpx_session" >&6; } |
10922 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
9492 | if test x$struct_utmpx_session = xyes; then |
10923 | |
9493 | |
10924 | cat >>confdefs.h <<\_ACEOF |
9494 | cat >>confdefs.h <<\_ACEOF |
10925 | #define HAVE_UTMPX_SESSION 1 |
9495 | #define HAVE_UTMPX_SESSION 1 |
10926 | _ACEOF |
9496 | _ACEOF |
10927 | |
9497 | |
10928 | fi |
9498 | fi |
10929 | |
9499 | |
10930 | fi |
9500 | fi |
10931 | |
9501 | |
|
|
9502 | done |
10932 | |
9503 | |
10933 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9504 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10934 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
9505 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10935 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
9506 | if test "${struct_lastlog+set}" = set; then |
10936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10937 | else |
9508 | else |
10938 | cat >conftest.$ac_ext <<_ACEOF |
9509 | cat >conftest.$ac_ext <<_ACEOF |
10939 | /* confdefs.h. */ |
9510 | /* confdefs.h. */ |
10940 | _ACEOF |
9511 | _ACEOF |
… | |
… | |
10954 | ; |
9525 | ; |
10955 | return 0; |
9526 | return 0; |
10956 | } |
9527 | } |
10957 | _ACEOF |
9528 | _ACEOF |
10958 | rm -f conftest.$ac_objext |
9529 | rm -f conftest.$ac_objext |
|
|
9530 | if { (ac_try="$ac_compile" |
|
|
9531 | case "(($ac_try" in |
|
|
9532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9533 | *) ac_try_echo=$ac_try;; |
|
|
9534 | esac |
10959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10960 | (eval $ac_compile) 2>conftest.er1 |
9536 | (eval "$ac_compile") 2>conftest.er1 |
10961 | ac_status=$? |
9537 | ac_status=$? |
10962 | grep -v '^ *+' conftest.er1 >conftest.err |
9538 | grep -v '^ *+' conftest.er1 >conftest.err |
10963 | rm -f conftest.er1 |
9539 | rm -f conftest.er1 |
10964 | cat conftest.err >&5 |
9540 | cat conftest.err >&5 |
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10966 | (exit $ac_status); } && |
9542 | (exit $ac_status); } && { |
10967 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9543 | test -z "$ac_cxx_werror_flag" || |
10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9544 | test ! -s conftest.err |
10969 | (eval $ac_try) 2>&5 |
9545 | } && test -s conftest.$ac_objext; then |
10970 | ac_status=$? |
|
|
10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10972 | (exit $ac_status); }; } && |
|
|
10973 | { ac_try='test -s conftest.$ac_objext' |
|
|
10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10975 | (eval $ac_try) 2>&5 |
|
|
10976 | ac_status=$? |
|
|
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10978 | (exit $ac_status); }; }; then |
|
|
10979 | rxvt_cv_struct_lastlog=yes |
9546 | struct_lastlog=yes |
10980 | else |
9547 | else |
10981 | echo "$as_me: failed program was:" >&5 |
9548 | echo "$as_me: failed program was:" >&5 |
10982 | sed 's/^/| /' conftest.$ac_ext >&5 |
9549 | sed 's/^/| /' conftest.$ac_ext >&5 |
10983 | |
9550 | |
10984 | rxvt_cv_struct_lastlog=no |
9551 | struct_lastlog=no |
10985 | fi |
9552 | fi |
|
|
9553 | |
10986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10987 | fi |
9555 | fi |
10988 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
9556 | { echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
10989 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
9557 | echo "${ECHO_T}$struct_lastlog" >&6; } |
10990 | if test x$rxvt_cv_struct_lastlog = xyes; then |
9558 | if test x$struct_lastlog = xyes; then |
10991 | |
9559 | |
10992 | cat >>confdefs.h <<\_ACEOF |
9560 | cat >>confdefs.h <<\_ACEOF |
10993 | #define HAVE_STRUCT_LASTLOG 1 |
9561 | #define HAVE_STRUCT_LASTLOG 1 |
10994 | _ACEOF |
9562 | _ACEOF |
10995 | |
9563 | |
10996 | fi |
9564 | fi |
10997 | |
9565 | |
10998 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
9566 | { echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
10999 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
9567 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } |
11000 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
9568 | if test "${struct_lastlogx+set}" = set; then |
11001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11002 | else |
9570 | else |
11003 | cat >conftest.$ac_ext <<_ACEOF |
9571 | cat >conftest.$ac_ext <<_ACEOF |
11004 | /* confdefs.h. */ |
9572 | /* confdefs.h. */ |
11005 | _ACEOF |
9573 | _ACEOF |
… | |
… | |
11019 | ; |
9587 | ; |
11020 | return 0; |
9588 | return 0; |
11021 | } |
9589 | } |
11022 | _ACEOF |
9590 | _ACEOF |
11023 | rm -f conftest.$ac_objext |
9591 | rm -f conftest.$ac_objext |
|
|
9592 | if { (ac_try="$ac_compile" |
|
|
9593 | case "(($ac_try" in |
|
|
9594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9595 | *) ac_try_echo=$ac_try;; |
|
|
9596 | esac |
11024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11025 | (eval $ac_compile) 2>conftest.er1 |
9598 | (eval "$ac_compile") 2>conftest.er1 |
11026 | ac_status=$? |
9599 | ac_status=$? |
11027 | grep -v '^ *+' conftest.er1 >conftest.err |
9600 | grep -v '^ *+' conftest.er1 >conftest.err |
11028 | rm -f conftest.er1 |
9601 | rm -f conftest.er1 |
11029 | cat conftest.err >&5 |
9602 | cat conftest.err >&5 |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11031 | (exit $ac_status); } && |
9604 | (exit $ac_status); } && { |
11032 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9605 | test -z "$ac_cxx_werror_flag" || |
11033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9606 | test ! -s conftest.err |
11034 | (eval $ac_try) 2>&5 |
9607 | } && test -s conftest.$ac_objext; then |
11035 | ac_status=$? |
|
|
11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11037 | (exit $ac_status); }; } && |
|
|
11038 | { ac_try='test -s conftest.$ac_objext' |
|
|
11039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11040 | (eval $ac_try) 2>&5 |
|
|
11041 | ac_status=$? |
|
|
11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11043 | (exit $ac_status); }; }; then |
|
|
11044 | rxvt_cv_struct_lastlogx=yes |
9608 | struct_lastlogx=yes |
11045 | else |
9609 | else |
11046 | echo "$as_me: failed program was:" >&5 |
9610 | echo "$as_me: failed program was:" >&5 |
11047 | sed 's/^/| /' conftest.$ac_ext >&5 |
9611 | sed 's/^/| /' conftest.$ac_ext >&5 |
11048 | |
9612 | |
11049 | rxvt_cv_struct_lastlogx=no |
9613 | struct_lastlogx=no |
11050 | fi |
9614 | fi |
|
|
9615 | |
11051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11052 | fi |
9617 | fi |
11053 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
9618 | { echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
11054 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
9619 | echo "${ECHO_T}$struct_lastlogx" >&6; } |
11055 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
9620 | if test x$struct_lastlogx = xyes; then |
11056 | |
9621 | |
11057 | cat >>confdefs.h <<\_ACEOF |
9622 | cat >>confdefs.h <<\_ACEOF |
11058 | #define HAVE_STRUCT_LASTLOGX 1 |
9623 | #define HAVE_STRUCT_LASTLOGX 1 |
11059 | _ACEOF |
9624 | _ACEOF |
11060 | |
9625 | |
11061 | fi |
9626 | fi |
11062 | |
9627 | |
11063 | |
9628 | |
11064 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
9629 | { echo "$as_me:$LINENO: checking where utmp is located" >&5 |
11065 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
9630 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } |
11066 | if test "${rxvt_cv_path_utmp+set}" = set; then |
9631 | if test "${path_utmp+set}" = set; then |
11067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11068 | else |
9633 | else |
11069 | if test "$cross_compiling" = yes; then |
9634 | if test "$cross_compiling" = yes; then |
11070 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
9635 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
11071 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
9636 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
11072 | else |
9637 | else |
11073 | cat >conftest.$ac_ext <<_ACEOF |
9638 | cat >conftest.$ac_ext <<_ACEOF |
11074 | /* confdefs.h. */ |
9639 | /* confdefs.h. */ |
11075 | _ACEOF |
9640 | _ACEOF |
11076 | cat confdefs.h >>conftest.$ac_ext |
9641 | cat confdefs.h >>conftest.$ac_ext |
11077 | cat >>conftest.$ac_ext <<_ACEOF |
9642 | cat >>conftest.$ac_ext <<_ACEOF |
11078 | /* end confdefs.h. */ |
9643 | /* end confdefs.h. */ |
11079 | #include <stdio.h> |
9644 | #include <stdio.h> |
|
|
9645 | #include <stdlib.h> |
11080 | #include <sys/types.h> |
9646 | #include <sys/types.h> |
11081 | #include <utmp.h> |
9647 | #include <utmp.h> |
11082 | #include <errno.h> |
9648 | #include <errno.h> |
11083 | main() |
9649 | main() |
11084 | { |
9650 | { |
… | |
… | |
11102 | } |
9668 | } |
11103 | exit(0); |
9669 | exit(0); |
11104 | } |
9670 | } |
11105 | _ACEOF |
9671 | _ACEOF |
11106 | rm -f conftest$ac_exeext |
9672 | rm -f conftest$ac_exeext |
|
|
9673 | if { (ac_try="$ac_link" |
|
|
9674 | case "(($ac_try" in |
|
|
9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9676 | *) ac_try_echo=$ac_try;; |
|
|
9677 | esac |
11107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11108 | (eval $ac_link) 2>&5 |
9679 | (eval "$ac_link") 2>&5 |
11109 | ac_status=$? |
9680 | ac_status=$? |
11110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9683 | { (case "(($ac_try" in |
|
|
9684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9685 | *) ac_try_echo=$ac_try;; |
|
|
9686 | esac |
11112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11113 | (eval $ac_try) 2>&5 |
9688 | (eval "$ac_try") 2>&5 |
11114 | ac_status=$? |
9689 | ac_status=$? |
11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11116 | (exit $ac_status); }; }; then |
9691 | (exit $ac_status); }; }; then |
11117 | rxvt_cv_path_utmp=`cat conftestval` |
9692 | path_utmp=`cat conftestval` |
11118 | else |
9693 | else |
11119 | echo "$as_me: program exited with status $ac_status" >&5 |
9694 | echo "$as_me: program exited with status $ac_status" >&5 |
11120 | echo "$as_me: failed program was:" >&5 |
9695 | echo "$as_me: failed program was:" >&5 |
11121 | sed 's/^/| /' conftest.$ac_ext >&5 |
9696 | sed 's/^/| /' conftest.$ac_ext >&5 |
11122 | |
9697 | |
11123 | ( exit $ac_status ) |
9698 | ( exit $ac_status ) |
11124 | rxvt_cv_path_utmp= |
9699 | path_utmp= |
11125 | fi |
9700 | fi |
11126 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9701 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11127 | fi |
9702 | fi |
|
|
9703 | |
|
|
9704 | |
11128 | fi |
9705 | fi |
11129 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
9706 | { echo "$as_me:$LINENO: result: $path_utmp" >&5 |
11130 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
9707 | echo "${ECHO_T}$path_utmp" >&6; } |
11131 | if test x$rxvt_cv_path_utmp != x; then |
9708 | if test x$path_utmp != x; then |
11132 | |
9709 | |
11133 | cat >>confdefs.h <<_ACEOF |
9710 | cat >>confdefs.h <<_ACEOF |
11134 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
9711 | #define UTMP_FILE "$path_utmp" |
11135 | _ACEOF |
9712 | _ACEOF |
11136 | |
9713 | |
11137 | fi |
9714 | fi |
11138 | |
9715 | |
11139 | |
9716 | |
11140 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
9717 | { echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11141 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
9718 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } |
11142 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
9719 | if test "${path_utmpx+set}" = set; then |
11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11144 | else |
9721 | else |
11145 | if test "$cross_compiling" = yes; then |
9722 | if test "$cross_compiling" = yes; then |
11146 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
9723 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
11147 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
9724 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
11148 | else |
9725 | else |
11149 | cat >conftest.$ac_ext <<_ACEOF |
9726 | cat >conftest.$ac_ext <<_ACEOF |
11150 | /* confdefs.h. */ |
9727 | /* confdefs.h. */ |
11151 | _ACEOF |
9728 | _ACEOF |
11152 | cat confdefs.h >>conftest.$ac_ext |
9729 | cat confdefs.h >>conftest.$ac_ext |
11153 | cat >>conftest.$ac_ext <<_ACEOF |
9730 | cat >>conftest.$ac_ext <<_ACEOF |
11154 | /* end confdefs.h. */ |
9731 | /* end confdefs.h. */ |
11155 | #include <stdio.h> |
9732 | #include <stdio.h> |
|
|
9733 | #include <stdlib.h> |
11156 | #include <sys/types.h> |
9734 | #include <sys/types.h> |
11157 | #include <utmpx.h> |
9735 | #include <utmpx.h> |
11158 | #include <errno.h> |
9736 | #include <errno.h> |
11159 | #include <sys/stat.h> |
9737 | #include <sys/stat.h> |
11160 | #ifdef HAVE_STRING_H |
9738 | #ifdef HAVE_STRING_H |
… | |
… | |
11188 | } |
9766 | } |
11189 | exit(0); |
9767 | exit(0); |
11190 | } |
9768 | } |
11191 | _ACEOF |
9769 | _ACEOF |
11192 | rm -f conftest$ac_exeext |
9770 | rm -f conftest$ac_exeext |
|
|
9771 | if { (ac_try="$ac_link" |
|
|
9772 | case "(($ac_try" in |
|
|
9773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9774 | *) ac_try_echo=$ac_try;; |
|
|
9775 | esac |
11193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11194 | (eval $ac_link) 2>&5 |
9777 | (eval "$ac_link") 2>&5 |
11195 | ac_status=$? |
9778 | ac_status=$? |
11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9781 | { (case "(($ac_try" in |
|
|
9782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9783 | *) ac_try_echo=$ac_try;; |
|
|
9784 | esac |
11198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11199 | (eval $ac_try) 2>&5 |
9786 | (eval "$ac_try") 2>&5 |
11200 | ac_status=$? |
9787 | ac_status=$? |
11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11202 | (exit $ac_status); }; }; then |
9789 | (exit $ac_status); }; }; then |
11203 | rxvt_cv_path_utmpx=`cat conftestval` |
9790 | path_utmpx=`cat conftestval` |
11204 | else |
9791 | else |
11205 | echo "$as_me: program exited with status $ac_status" >&5 |
9792 | echo "$as_me: program exited with status $ac_status" >&5 |
11206 | echo "$as_me: failed program was:" >&5 |
9793 | echo "$as_me: failed program was:" >&5 |
11207 | sed 's/^/| /' conftest.$ac_ext >&5 |
9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
11208 | |
9795 | |
11209 | ( exit $ac_status ) |
9796 | ( exit $ac_status ) |
11210 | rxvt_cv_path_utmpx= |
9797 | path_utmpx= |
11211 | fi |
9798 | fi |
11212 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11213 | fi |
9800 | fi |
|
|
9801 | |
|
|
9802 | |
11214 | fi |
9803 | fi |
11215 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
9804 | { echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
11216 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
9805 | echo "${ECHO_T}$path_utmpx" >&6; } |
11217 | if test x$rxvt_cv_path_utmpx != x; then |
9806 | if test x$path_utmpx != x; then |
11218 | |
9807 | |
11219 | cat >>confdefs.h <<_ACEOF |
9808 | cat >>confdefs.h <<_ACEOF |
11220 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
9809 | #define UTMPX_FILE "$path_utmpx" |
11221 | _ACEOF |
9810 | _ACEOF |
11222 | |
9811 | |
11223 | fi |
9812 | fi |
11224 | |
9813 | |
11225 | |
9814 | |
11226 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
9815 | { echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11227 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
9816 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; } |
11228 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
9817 | if test "${path_wtmp+set}" = set; then |
11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11230 | else |
9819 | else |
11231 | if test "$cross_compiling" = yes; then |
9820 | if test "$cross_compiling" = yes; then |
11232 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
9821 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
11233 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
9822 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
11234 | else |
9823 | else |
11235 | cat >conftest.$ac_ext <<_ACEOF |
9824 | cat >conftest.$ac_ext <<_ACEOF |
11236 | /* confdefs.h. */ |
9825 | /* confdefs.h. */ |
11237 | _ACEOF |
9826 | _ACEOF |
11238 | cat confdefs.h >>conftest.$ac_ext |
9827 | cat confdefs.h >>conftest.$ac_ext |
11239 | cat >>conftest.$ac_ext <<_ACEOF |
9828 | cat >>conftest.$ac_ext <<_ACEOF |
11240 | /* end confdefs.h. */ |
9829 | /* end confdefs.h. */ |
11241 | #include <stdio.h> |
9830 | #include <stdio.h> |
|
|
9831 | #include <stdlib.h> |
11242 | #include <sys/types.h> |
9832 | #include <sys/types.h> |
11243 | #ifdef HAVE_UTMP_H |
9833 | #ifdef HAVE_UTMP_H |
11244 | #include <utmp.h> |
9834 | #include <utmp.h> |
11245 | #endif |
9835 | #endif |
11246 | #include <errno.h> |
9836 | #include <errno.h> |
… | |
… | |
11266 | } |
9856 | } |
11267 | exit(0); |
9857 | exit(0); |
11268 | } |
9858 | } |
11269 | _ACEOF |
9859 | _ACEOF |
11270 | rm -f conftest$ac_exeext |
9860 | rm -f conftest$ac_exeext |
|
|
9861 | if { (ac_try="$ac_link" |
|
|
9862 | case "(($ac_try" in |
|
|
9863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9864 | *) ac_try_echo=$ac_try;; |
|
|
9865 | esac |
11271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11272 | (eval $ac_link) 2>&5 |
9867 | (eval "$ac_link") 2>&5 |
11273 | ac_status=$? |
9868 | ac_status=$? |
11274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9871 | { (case "(($ac_try" in |
|
|
9872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9873 | *) ac_try_echo=$ac_try;; |
|
|
9874 | esac |
11276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11277 | (eval $ac_try) 2>&5 |
9876 | (eval "$ac_try") 2>&5 |
11278 | ac_status=$? |
9877 | ac_status=$? |
11279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11280 | (exit $ac_status); }; }; then |
9879 | (exit $ac_status); }; }; then |
11281 | rxvt_cv_path_wtmp=`cat conftestval` |
9880 | path_wtmp=`cat conftestval` |
11282 | else |
9881 | else |
11283 | echo "$as_me: program exited with status $ac_status" >&5 |
9882 | echo "$as_me: program exited with status $ac_status" >&5 |
11284 | echo "$as_me: failed program was:" >&5 |
9883 | echo "$as_me: failed program was:" >&5 |
11285 | sed 's/^/| /' conftest.$ac_ext >&5 |
9884 | sed 's/^/| /' conftest.$ac_ext >&5 |
11286 | |
9885 | |
11287 | ( exit $ac_status ) |
9886 | ( exit $ac_status ) |
11288 | rxvt_cv_path_wtmp= |
9887 | path_wtmp= |
11289 | fi |
9888 | fi |
11290 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11291 | fi |
9890 | fi |
|
|
9891 | |
|
|
9892 | |
11292 | fi |
9893 | fi |
11293 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
9894 | { echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
11294 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
9895 | echo "${ECHO_T}$path_wtmp" >&6; } |
11295 | if test x$rxvt_cv_path_wtmp != x; then |
9896 | if test x$path_wtmp != x; then |
11296 | |
9897 | |
11297 | cat >>confdefs.h <<_ACEOF |
9898 | cat >>confdefs.h <<_ACEOF |
11298 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
9899 | #define WTMP_FILE "$path_wtmp" |
11299 | _ACEOF |
9900 | _ACEOF |
11300 | |
9901 | |
11301 | fi |
9902 | fi |
11302 | |
9903 | |
11303 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
9904 | { echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11304 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
9905 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } |
11305 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
9906 | if test "${path_wtmpx+set}" = set; then |
11306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11307 | else |
9908 | else |
11308 | if test "$cross_compiling" = yes; then |
9909 | if test "$cross_compiling" = yes; then |
11309 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
9910 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
11310 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
9911 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
11311 | else |
9912 | else |
11312 | cat >conftest.$ac_ext <<_ACEOF |
9913 | cat >conftest.$ac_ext <<_ACEOF |
11313 | /* confdefs.h. */ |
9914 | /* confdefs.h. */ |
11314 | _ACEOF |
9915 | _ACEOF |
11315 | cat confdefs.h >>conftest.$ac_ext |
9916 | cat confdefs.h >>conftest.$ac_ext |
11316 | cat >>conftest.$ac_ext <<_ACEOF |
9917 | cat >>conftest.$ac_ext <<_ACEOF |
11317 | /* end confdefs.h. */ |
9918 | /* end confdefs.h. */ |
11318 | #include <stdio.h> |
9919 | #include <stdio.h> |
|
|
9920 | #include <stdlib.h> |
11319 | #ifdef HAVE_UTMPX_H |
9921 | #ifdef HAVE_UTMPX_H |
11320 | #include <utmpx.h> |
9922 | #include <utmpx.h> |
11321 | #endif |
9923 | #endif |
11322 | #include <errno.h> |
9924 | #include <errno.h> |
11323 | main() |
9925 | main() |
… | |
… | |
11342 | } |
9944 | } |
11343 | exit(0); |
9945 | exit(0); |
11344 | } |
9946 | } |
11345 | _ACEOF |
9947 | _ACEOF |
11346 | rm -f conftest$ac_exeext |
9948 | rm -f conftest$ac_exeext |
|
|
9949 | if { (ac_try="$ac_link" |
|
|
9950 | case "(($ac_try" in |
|
|
9951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9952 | *) ac_try_echo=$ac_try;; |
|
|
9953 | esac |
11347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11348 | (eval $ac_link) 2>&5 |
9955 | (eval "$ac_link") 2>&5 |
11349 | ac_status=$? |
9956 | ac_status=$? |
11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9958 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9959 | { (case "(($ac_try" in |
|
|
9960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9961 | *) ac_try_echo=$ac_try;; |
|
|
9962 | esac |
11352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11353 | (eval $ac_try) 2>&5 |
9964 | (eval "$ac_try") 2>&5 |
11354 | ac_status=$? |
9965 | ac_status=$? |
11355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11356 | (exit $ac_status); }; }; then |
9967 | (exit $ac_status); }; }; then |
11357 | rxvt_cv_path_wtmpx=`cat conftestval` |
9968 | path_wtmpx=`cat conftestval` |
11358 | else |
9969 | else |
11359 | echo "$as_me: program exited with status $ac_status" >&5 |
9970 | echo "$as_me: program exited with status $ac_status" >&5 |
11360 | echo "$as_me: failed program was:" >&5 |
9971 | echo "$as_me: failed program was:" >&5 |
11361 | sed 's/^/| /' conftest.$ac_ext >&5 |
9972 | sed 's/^/| /' conftest.$ac_ext >&5 |
11362 | |
9973 | |
11363 | ( exit $ac_status ) |
9974 | ( exit $ac_status ) |
11364 | rxvt_cv_path_wtmpx= |
9975 | path_wtmpx= |
11365 | fi |
9976 | fi |
11366 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11367 | fi |
9978 | fi |
|
|
9979 | |
|
|
9980 | |
11368 | fi |
9981 | fi |
11369 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
9982 | { echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
11370 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
9983 | echo "${ECHO_T}$path_wtmpx" >&6; } |
11371 | if test x$rxvt_cv_path_wtmpx != x; then |
9984 | if test x$path_wtmpx != x; then |
11372 | |
9985 | |
11373 | cat >>confdefs.h <<_ACEOF |
9986 | cat >>confdefs.h <<_ACEOF |
11374 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
9987 | #define WTMPX_FILE "$path_wtmpx" |
11375 | _ACEOF |
9988 | _ACEOF |
11376 | |
9989 | |
11377 | fi |
9990 | fi |
11378 | |
9991 | |
11379 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
9992 | { echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11380 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
9993 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } |
11381 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
9994 | if test "${path_lastlog+set}" = set; then |
11382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11383 | else |
9996 | else |
11384 | if test "$cross_compiling" = yes; then |
9997 | if test "$cross_compiling" = yes; then |
11385 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
9998 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
11386 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
9999 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
11387 | else |
10000 | else |
11388 | cat >conftest.$ac_ext <<_ACEOF |
10001 | cat >conftest.$ac_ext <<_ACEOF |
11389 | /* confdefs.h. */ |
10002 | /* confdefs.h. */ |
11390 | _ACEOF |
10003 | _ACEOF |
11391 | cat confdefs.h >>conftest.$ac_ext |
10004 | cat confdefs.h >>conftest.$ac_ext |
11392 | cat >>conftest.$ac_ext <<_ACEOF |
10005 | cat >>conftest.$ac_ext <<_ACEOF |
11393 | /* end confdefs.h. */ |
10006 | /* end confdefs.h. */ |
11394 | #include <stdio.h> |
10007 | #include <stdio.h> |
|
|
10008 | #include <stdlib.h> |
11395 | #include <sys/types.h> |
10009 | #include <sys/types.h> |
11396 | #ifdef HAVE_UTMPX_H |
10010 | #ifdef HAVE_UTMPX_H |
11397 | #include <utmpx.h> |
10011 | #include <utmpx.h> |
11398 | #elif defined(HAVE_UTMP_H) |
10012 | #elif defined(HAVE_UTMP_H) |
11399 | #include <utmp.h> |
10013 | #include <utmp.h> |
… | |
… | |
11423 | } |
10037 | } |
11424 | exit(0); |
10038 | exit(0); |
11425 | } |
10039 | } |
11426 | _ACEOF |
10040 | _ACEOF |
11427 | rm -f conftest$ac_exeext |
10041 | rm -f conftest$ac_exeext |
|
|
10042 | if { (ac_try="$ac_link" |
|
|
10043 | case "(($ac_try" in |
|
|
10044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10045 | *) ac_try_echo=$ac_try;; |
|
|
10046 | esac |
11428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11429 | (eval $ac_link) 2>&5 |
10048 | (eval "$ac_link") 2>&5 |
11430 | ac_status=$? |
10049 | ac_status=$? |
11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11432 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
10052 | { (case "(($ac_try" in |
|
|
10053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10054 | *) ac_try_echo=$ac_try;; |
|
|
10055 | esac |
11433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11434 | (eval $ac_try) 2>&5 |
10057 | (eval "$ac_try") 2>&5 |
11435 | ac_status=$? |
10058 | ac_status=$? |
11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11437 | (exit $ac_status); }; }; then |
10060 | (exit $ac_status); }; }; then |
11438 | rxvt_cv_path_lastlog=`cat conftestval` |
10061 | path_lastlog=`cat conftestval` |
11439 | else |
10062 | else |
11440 | echo "$as_me: program exited with status $ac_status" >&5 |
10063 | echo "$as_me: program exited with status $ac_status" >&5 |
11441 | echo "$as_me: failed program was:" >&5 |
10064 | echo "$as_me: failed program was:" >&5 |
11442 | sed 's/^/| /' conftest.$ac_ext >&5 |
10065 | sed 's/^/| /' conftest.$ac_ext >&5 |
11443 | |
10066 | |
11444 | ( exit $ac_status ) |
10067 | ( exit $ac_status ) |
11445 | rxvt_cv_path_lastlog= |
10068 | path_lastlog= |
11446 | fi |
10069 | fi |
11447 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11448 | fi |
10071 | fi |
|
|
10072 | |
|
|
10073 | |
11449 | fi |
10074 | fi |
11450 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
10075 | { echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
11451 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
10076 | echo "${ECHO_T}$path_lastlog" >&6; } |
11452 | if test x$rxvt_cv_path_lastlog != x; then |
10077 | if test x$path_lastlog != x; then |
11453 | |
10078 | |
11454 | cat >>confdefs.h <<_ACEOF |
10079 | cat >>confdefs.h <<_ACEOF |
11455 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
10080 | #define LASTLOG_FILE "$path_lastlog" |
11456 | _ACEOF |
10081 | _ACEOF |
11457 | |
10082 | |
11458 | if test -d "$rxvt_cv_path_lastlog"; then |
|
|
11459 | |
|
|
11460 | cat >>confdefs.h <<\_ACEOF |
|
|
11461 | #define LASTLOG_IS_DIR 1 |
|
|
11462 | _ACEOF |
|
|
11463 | |
|
|
11464 | fi |
|
|
11465 | fi |
10083 | fi |
11466 | |
10084 | |
11467 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10085 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11468 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
10086 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11469 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
10087 | if test "${path_lastlogx+set}" = set; then |
11470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11471 | else |
10089 | else |
11472 | if test "$cross_compiling" = yes; then |
10090 | if test "$cross_compiling" = yes; then |
11473 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
10091 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
11474 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
10092 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
11475 | else |
10093 | else |
11476 | cat >conftest.$ac_ext <<_ACEOF |
10094 | cat >conftest.$ac_ext <<_ACEOF |
11477 | /* confdefs.h. */ |
10095 | /* confdefs.h. */ |
11478 | _ACEOF |
10096 | _ACEOF |
11479 | cat confdefs.h >>conftest.$ac_ext |
10097 | cat confdefs.h >>conftest.$ac_ext |
11480 | cat >>conftest.$ac_ext <<_ACEOF |
10098 | cat >>conftest.$ac_ext <<_ACEOF |
11481 | /* end confdefs.h. */ |
10099 | /* end confdefs.h. */ |
11482 | #include <stdio.h> |
10100 | #include <stdio.h> |
|
|
10101 | #include <stdlib.h> |
11483 | #ifdef HAVE_UTMPX_H |
10102 | #ifdef HAVE_UTMPX_H |
11484 | #include <utmpx.h> |
10103 | #include <utmpx.h> |
11485 | #endif |
10104 | #endif |
11486 | #include <errno.h> |
10105 | #include <errno.h> |
11487 | main() |
10106 | main() |
… | |
… | |
11505 | } |
10124 | } |
11506 | exit(0); |
10125 | exit(0); |
11507 | } |
10126 | } |
11508 | _ACEOF |
10127 | _ACEOF |
11509 | rm -f conftest$ac_exeext |
10128 | rm -f conftest$ac_exeext |
|
|
10129 | if { (ac_try="$ac_link" |
|
|
10130 | case "(($ac_try" in |
|
|
10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10132 | *) ac_try_echo=$ac_try;; |
|
|
10133 | esac |
11510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11511 | (eval $ac_link) 2>&5 |
10135 | (eval "$ac_link") 2>&5 |
11512 | ac_status=$? |
10136 | ac_status=$? |
11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10138 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
10139 | { (case "(($ac_try" in |
|
|
10140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10141 | *) ac_try_echo=$ac_try;; |
|
|
10142 | esac |
11515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11516 | (eval $ac_try) 2>&5 |
10144 | (eval "$ac_try") 2>&5 |
11517 | ac_status=$? |
10145 | ac_status=$? |
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11519 | (exit $ac_status); }; }; then |
10147 | (exit $ac_status); }; }; then |
11520 | rxvt_cv_path_lastlogx=`cat conftestval` |
10148 | path_lastlogx=`cat conftestval` |
11521 | else |
10149 | else |
11522 | echo "$as_me: program exited with status $ac_status" >&5 |
10150 | echo "$as_me: program exited with status $ac_status" >&5 |
11523 | echo "$as_me: failed program was:" >&5 |
10151 | echo "$as_me: failed program was:" >&5 |
11524 | sed 's/^/| /' conftest.$ac_ext >&5 |
10152 | sed 's/^/| /' conftest.$ac_ext >&5 |
11525 | |
10153 | |
11526 | ( exit $ac_status ) |
10154 | ( exit $ac_status ) |
11527 | rxvt_cv_path_lastlogx= |
10155 | path_lastlogx= |
11528 | fi |
10156 | fi |
11529 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11530 | fi |
10158 | fi |
|
|
10159 | |
|
|
10160 | |
11531 | fi |
10161 | fi |
11532 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
10162 | { echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
11533 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
10163 | echo "${ECHO_T}$path_lastlogx" >&6; } |
11534 | if test x$rxvt_cv_path_lastlogx != x; then |
10164 | if test x$path_lastlogx != x; then |
11535 | |
10165 | |
11536 | cat >>confdefs.h <<_ACEOF |
10166 | cat >>confdefs.h <<_ACEOF |
11537 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
10167 | #define LASTLOGX_FILE "$path_lastlogx" |
11538 | _ACEOF |
10168 | _ACEOF |
11539 | |
10169 | |
11540 | fi |
10170 | fi |
11541 | |
10171 | |
11542 | |
10172 | |
11543 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11544 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
|
|
11545 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11547 | else |
|
|
11548 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11549 | do |
|
|
11550 | if test -f "$ttys_file" ; then |
|
|
11551 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11552 | break |
|
|
11553 | fi |
|
|
11554 | done |
|
|
11555 | |
10173 | |
11556 | fi |
|
|
11557 | echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11558 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6 |
|
|
11559 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11560 | |
10174 | |
11561 | cat >>confdefs.h <<_ACEOF |
|
|
11562 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11563 | _ACEOF |
|
|
11564 | |
|
|
11565 | fi |
|
|
11566 | |
|
|
11567 | |
|
|
11568 | ac_save_LIBS=$LIBS |
10175 | save_LIBS=$LIBS |
11569 | ac_save_CFLAGS=$CFLAGS |
10176 | save_CFLAGS=$CFLAGS |
11570 | CFLAGS="$CFLAGS $X_CFLAGS" |
10177 | CFLAGS="$CFLAGS $X_CFLAGS" |
11571 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10178 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11572 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
10179 | if test x$support_xim = xyes; then |
11573 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11574 | fi |
|
|
11575 | echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10180 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11576 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 |
10181 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11577 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10182 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11579 | else |
10184 | else |
11580 | if test "$cross_compiling" = yes; then |
10185 | if test "$cross_compiling" = yes; then |
11581 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
10186 | : |
11582 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
11583 | else |
10187 | else |
11584 | cat >conftest.$ac_ext <<_ACEOF |
10188 | cat >conftest.$ac_ext <<_ACEOF |
11585 | /* confdefs.h. */ |
10189 | /* confdefs.h. */ |
11586 | _ACEOF |
10190 | _ACEOF |
11587 | cat confdefs.h >>conftest.$ac_ext |
10191 | cat confdefs.h >>conftest.$ac_ext |
11588 | cat >>conftest.$ac_ext <<_ACEOF |
10192 | cat >>conftest.$ac_ext <<_ACEOF |
11589 | /* end confdefs.h. */ |
10193 | /* end confdefs.h. */ |
11590 | #include <X11/Xlib.h> |
10194 | #include <X11/Xlib.h> |
|
|
10195 | #include <stdlib.h> |
11591 | main() { |
10196 | main() { |
11592 | char *p; |
10197 | char *p; |
11593 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10198 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11594 | exit (XSupportsLocale() ? 0 : 1); |
10199 | exit (XSupportsLocale() ? 0 : 1); |
11595 | else |
10200 | else |
11596 | exit (1);} |
10201 | exit (1);} |
11597 | _ACEOF |
10202 | _ACEOF |
11598 | rm -f conftest$ac_exeext |
10203 | rm -f conftest$ac_exeext |
|
|
10204 | if { (ac_try="$ac_link" |
|
|
10205 | case "(($ac_try" in |
|
|
10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10207 | *) ac_try_echo=$ac_try;; |
|
|
10208 | esac |
11599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11600 | (eval $ac_link) 2>&5 |
10210 | (eval "$ac_link") 2>&5 |
11601 | ac_status=$? |
10211 | ac_status=$? |
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11603 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
10214 | { (case "(($ac_try" in |
|
|
10215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10216 | *) ac_try_echo=$ac_try;; |
|
|
10217 | esac |
11604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11605 | (eval $ac_try) 2>&5 |
10219 | (eval "$ac_try") 2>&5 |
11606 | ac_status=$? |
10220 | ac_status=$? |
11607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11608 | (exit $ac_status); }; }; then |
10222 | (exit $ac_status); }; }; then |
11609 | rxvt_cv_func_xlocale=yes |
10223 | rxvt_cv_func_xlocale=yes |
11610 | else |
10224 | else |
11611 | echo "$as_me: program exited with status $ac_status" >&5 |
10225 | echo "$as_me: program exited with status $ac_status" >&5 |
11612 | echo "$as_me: failed program was:" >&5 |
10226 | echo "$as_me: failed program was:" >&5 |
11613 | sed 's/^/| /' conftest.$ac_ext >&5 |
10227 | sed 's/^/| /' conftest.$ac_ext >&5 |
11614 | |
10228 | |
11615 | ( exit $ac_status ) |
10229 | ( exit $ac_status ) |
11616 | rxvt_cv_func_xlocale=no |
10230 | rxvt_cv_func_xlocale=no |
11617 | fi |
10231 | fi |
11618 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10232 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11619 | fi |
10233 | fi |
|
|
10234 | |
|
|
10235 | |
11620 | fi |
10236 | fi |
11621 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10237 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11622 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 |
10238 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11623 | if test x$rxvt_cv_func_xlocale = xyes; then |
10239 | if test x$rxvt_cv_func_xlocale = xyes; then |
11624 | |
10240 | |
11625 | cat >>confdefs.h <<\_ACEOF |
10241 | cat >>confdefs.h <<\_ACEOF |
11626 | #define HAVE_XLOCALE 1 |
10242 | #define USE_XIM 1 |
11627 | _ACEOF |
10243 | _ACEOF |
11628 | |
10244 | |
11629 | fi |
10245 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10246 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10247 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10249 | else |
|
|
10250 | cat >conftest.$ac_ext <<_ACEOF |
11630 | |
10251 | |
|
|
10252 | #include <X11/Xlib.h> |
|
|
10253 | |
|
|
10254 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10255 | |
|
|
10256 | void f() { |
|
|
10257 | XIMCallback cb; |
|
|
10258 | cb.callback = im_destroy_cb; |
|
|
10259 | } |
|
|
10260 | |
|
|
10261 | _ACEOF |
|
|
10262 | rm -f conftest.$ac_objext |
|
|
10263 | if { (ac_try="$ac_compile" |
|
|
10264 | case "(($ac_try" in |
|
|
10265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10266 | *) ac_try_echo=$ac_try;; |
|
|
10267 | esac |
|
|
10268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10269 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10270 | ac_status=$? |
|
|
10271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10272 | rm -f conftest.er1 |
|
|
10273 | cat conftest.err >&5 |
|
|
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10275 | (exit $ac_status); } && { |
|
|
10276 | test -z "$ac_cxx_werror_flag" || |
|
|
10277 | test ! -s conftest.err |
|
|
10278 | } && test -s conftest.$ac_objext; then |
|
|
10279 | rxvt_broken_ximcb=yes |
|
|
10280 | else |
|
|
10281 | echo "$as_me: failed program was:" >&5 |
|
|
10282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10283 | |
|
|
10284 | rxvt_broken_ximcb=no |
|
|
10285 | fi |
|
|
10286 | |
|
|
10287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10288 | fi |
|
|
10289 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10290 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10291 | |
|
|
10292 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10293 | |
|
|
10294 | cat >>confdefs.h <<\_ACEOF |
|
|
10295 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10296 | _ACEOF |
|
|
10297 | |
|
|
10298 | fi |
|
|
10299 | fi |
|
|
10300 | fi |
|
|
10301 | |
11631 | echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10302 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11632 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 |
10303 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
11633 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
10304 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
11634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11635 | else |
10306 | else |
11636 | cat >conftest.$ac_ext <<_ACEOF |
10307 | cat >conftest.$ac_ext <<_ACEOF |
11637 | /* confdefs.h. */ |
10308 | /* confdefs.h. */ |
… | |
… | |
11648 | ; |
10319 | ; |
11649 | return 0; |
10320 | return 0; |
11650 | } |
10321 | } |
11651 | _ACEOF |
10322 | _ACEOF |
11652 | rm -f conftest.$ac_objext conftest$ac_exeext |
10323 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10324 | if { (ac_try="$ac_link" |
|
|
10325 | case "(($ac_try" in |
|
|
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10327 | *) ac_try_echo=$ac_try;; |
|
|
10328 | esac |
11653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11654 | (eval $ac_link) 2>conftest.er1 |
10330 | (eval "$ac_link") 2>conftest.er1 |
11655 | ac_status=$? |
10331 | ac_status=$? |
11656 | grep -v '^ *+' conftest.er1 >conftest.err |
10332 | grep -v '^ *+' conftest.er1 >conftest.err |
11657 | rm -f conftest.er1 |
10333 | rm -f conftest.er1 |
11658 | cat conftest.err >&5 |
10334 | cat conftest.err >&5 |
11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11660 | (exit $ac_status); } && |
10336 | (exit $ac_status); } && { |
11661 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10337 | test -z "$ac_cxx_werror_flag" || |
11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10338 | test ! -s conftest.err |
11663 | (eval $ac_try) 2>&5 |
10339 | } && test -s conftest$ac_exeext && |
11664 | ac_status=$? |
10340 | $as_test_x conftest$ac_exeext; then |
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11666 | (exit $ac_status); }; } && |
|
|
11667 | { ac_try='test -s conftest$ac_exeext' |
|
|
11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11669 | (eval $ac_try) 2>&5 |
|
|
11670 | ac_status=$? |
|
|
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11672 | (exit $ac_status); }; }; then |
|
|
11673 | rxvt_cv_func_xsetlocale=yes |
10341 | rxvt_cv_func_xsetlocale=yes |
11674 | else |
10342 | else |
11675 | echo "$as_me: failed program was:" >&5 |
10343 | echo "$as_me: failed program was:" >&5 |
11676 | sed 's/^/| /' conftest.$ac_ext >&5 |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 |
11677 | |
10345 | |
11678 | rxvt_cv_func_xsetlocale=no |
10346 | rxvt_cv_func_xsetlocale=no |
11679 | fi |
10347 | fi |
11680 | rm -f conftest.err conftest.$ac_objext \ |
10348 | |
|
|
10349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11681 | conftest$ac_exeext conftest.$ac_ext |
10350 | conftest$ac_exeext conftest.$ac_ext |
11682 | fi |
10351 | fi |
11683 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
10352 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
11684 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 |
10353 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } |
11685 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
10354 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
11686 | |
10355 | |
11687 | cat >>confdefs.h <<\_ACEOF |
10356 | cat >>confdefs.h <<\_ACEOF |
11688 | #define HAVE_XSETLOCALE 1 |
10357 | #define HAVE_XSETLOCALE 1 |
11689 | _ACEOF |
10358 | _ACEOF |
11690 | |
10359 | |
11691 | fi |
10360 | fi |
11692 | LIBS=$ac_save_LIBS |
10361 | LIBS=$save_LIBS |
11693 | CFLAGS=$ac_save_CFLAGS |
10362 | CFLAGS=$save_CFLAGS |
11694 | |
10363 | |
11695 | echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10364 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11696 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6 |
10365 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11697 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10366 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11699 | else |
10368 | else |
11700 | cat >conftest.$ac_ext <<_ACEOF |
10369 | cat >conftest.$ac_ext <<_ACEOF |
11701 | /* confdefs.h. */ |
10370 | /* confdefs.h. */ |
… | |
… | |
11711 | ; |
10380 | ; |
11712 | return 0; |
10381 | return 0; |
11713 | } |
10382 | } |
11714 | _ACEOF |
10383 | _ACEOF |
11715 | rm -f conftest.$ac_objext conftest$ac_exeext |
10384 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10385 | if { (ac_try="$ac_link" |
|
|
10386 | case "(($ac_try" in |
|
|
10387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10388 | *) ac_try_echo=$ac_try;; |
|
|
10389 | esac |
11716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11717 | (eval $ac_link) 2>conftest.er1 |
10391 | (eval "$ac_link") 2>conftest.er1 |
11718 | ac_status=$? |
10392 | ac_status=$? |
11719 | grep -v '^ *+' conftest.er1 >conftest.err |
10393 | grep -v '^ *+' conftest.er1 >conftest.err |
11720 | rm -f conftest.er1 |
10394 | rm -f conftest.er1 |
11721 | cat conftest.err >&5 |
10395 | cat conftest.err >&5 |
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11723 | (exit $ac_status); } && |
10397 | (exit $ac_status); } && { |
11724 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10398 | test -z "$ac_cxx_werror_flag" || |
11725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10399 | test ! -s conftest.err |
11726 | (eval $ac_try) 2>&5 |
10400 | } && test -s conftest$ac_exeext && |
11727 | ac_status=$? |
10401 | $as_test_x conftest$ac_exeext; then |
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11729 | (exit $ac_status); }; } && |
|
|
11730 | { ac_try='test -s conftest$ac_exeext' |
|
|
11731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11732 | (eval $ac_try) 2>&5 |
|
|
11733 | ac_status=$? |
|
|
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11735 | (exit $ac_status); }; }; then |
|
|
11736 | rxvt_cv_func_setlocale=yes |
10402 | rxvt_cv_func_setlocale=yes |
11737 | else |
10403 | else |
11738 | echo "$as_me: failed program was:" >&5 |
10404 | echo "$as_me: failed program was:" >&5 |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 |
10405 | sed 's/^/| /' conftest.$ac_ext >&5 |
11740 | |
10406 | |
11741 | rxvt_cv_func_setlocale=no |
10407 | rxvt_cv_func_setlocale=no |
11742 | fi |
10408 | fi |
11743 | rm -f conftest.err conftest.$ac_objext \ |
10409 | |
|
|
10410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11744 | conftest$ac_exeext conftest.$ac_ext |
10411 | conftest$ac_exeext conftest.$ac_ext |
11745 | fi |
10412 | fi |
11746 | echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
10413 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
11747 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6 |
10414 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } |
11748 | if test x$rxvt_cv_func_setlocale = xyes; then |
10415 | if test x$rxvt_cv_func_setlocale = xyes; then |
11749 | |
10416 | |
11750 | cat >>confdefs.h <<\_ACEOF |
10417 | cat >>confdefs.h <<\_ACEOF |
11751 | #define HAVE_SETLOCALE 1 |
10418 | #define HAVE_SETLOCALE 1 |
11752 | _ACEOF |
10419 | _ACEOF |
11753 | |
10420 | |
11754 | fi |
10421 | fi |
11755 | |
10422 | |
11756 | echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
10423 | { echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
11757 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 |
10424 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } |
11758 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
10425 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
11759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11760 | else |
10427 | else |
11761 | cat >conftest.$ac_ext <<_ACEOF |
10428 | cat >conftest.$ac_ext <<_ACEOF |
11762 | /* confdefs.h. */ |
10429 | /* confdefs.h. */ |
… | |
… | |
11772 | ; |
10439 | ; |
11773 | return 0; |
10440 | return 0; |
11774 | } |
10441 | } |
11775 | _ACEOF |
10442 | _ACEOF |
11776 | rm -f conftest.$ac_objext conftest$ac_exeext |
10443 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10444 | if { (ac_try="$ac_link" |
|
|
10445 | case "(($ac_try" in |
|
|
10446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10447 | *) ac_try_echo=$ac_try;; |
|
|
10448 | esac |
11777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11778 | (eval $ac_link) 2>conftest.er1 |
10450 | (eval "$ac_link") 2>conftest.er1 |
11779 | ac_status=$? |
10451 | ac_status=$? |
11780 | grep -v '^ *+' conftest.er1 >conftest.err |
10452 | grep -v '^ *+' conftest.er1 >conftest.err |
11781 | rm -f conftest.er1 |
10453 | rm -f conftest.er1 |
11782 | cat conftest.err >&5 |
10454 | cat conftest.err >&5 |
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11784 | (exit $ac_status); } && |
10456 | (exit $ac_status); } && { |
11785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10457 | test -z "$ac_cxx_werror_flag" || |
11786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10458 | test ! -s conftest.err |
11787 | (eval $ac_try) 2>&5 |
10459 | } && test -s conftest$ac_exeext && |
11788 | ac_status=$? |
10460 | $as_test_x conftest$ac_exeext; then |
11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11790 | (exit $ac_status); }; } && |
|
|
11791 | { ac_try='test -s conftest$ac_exeext' |
|
|
11792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11793 | (eval $ac_try) 2>&5 |
|
|
11794 | ac_status=$? |
|
|
11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11796 | (exit $ac_status); }; }; then |
|
|
11797 | rxvt_cv_func_nl_langinfo=yes |
10461 | rxvt_cv_func_nl_langinfo=yes |
11798 | else |
10462 | else |
11799 | echo "$as_me: failed program was:" >&5 |
10463 | echo "$as_me: failed program was:" >&5 |
11800 | sed 's/^/| /' conftest.$ac_ext >&5 |
10464 | sed 's/^/| /' conftest.$ac_ext >&5 |
11801 | |
10465 | |
11802 | rxvt_cv_func_nl_langinfo=no |
10466 | rxvt_cv_func_nl_langinfo=no |
11803 | fi |
10467 | fi |
11804 | rm -f conftest.err conftest.$ac_objext \ |
10468 | |
|
|
10469 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11805 | conftest$ac_exeext conftest.$ac_ext |
10470 | conftest$ac_exeext conftest.$ac_ext |
11806 | fi |
10471 | fi |
11807 | echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
10472 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
11808 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
10473 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } |
11809 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
10474 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
11810 | |
10475 | |
11811 | cat >>confdefs.h <<\_ACEOF |
10476 | cat >>confdefs.h <<\_ACEOF |
11812 | #define HAVE_NL_LANGINFO 1 |
10477 | #define HAVE_NL_LANGINFO 1 |
11813 | _ACEOF |
10478 | _ACEOF |
11814 | |
10479 | |
11815 | fi |
10480 | fi |
11816 | |
10481 | |
|
|
10482 | |
11817 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10483 | { echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
11818 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
10484 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } |
11819 | if test "${rxvt_can_pass_fds+set}" = set; then |
10485 | if test "${can_pass_fds+set}" = set; then |
11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11821 | else |
10487 | else |
11822 | cat >conftest.$ac_ext <<_ACEOF |
10488 | cat >conftest.$ac_ext <<_ACEOF |
11823 | /* confdefs.h. */ |
10489 | /* confdefs.h. */ |
11824 | _ACEOF |
10490 | _ACEOF |
11825 | cat confdefs.h >>conftest.$ac_ext |
10491 | cat confdefs.h >>conftest.$ac_ext |
11826 | cat >>conftest.$ac_ext <<_ACEOF |
10492 | cat >>conftest.$ac_ext <<_ACEOF |
11827 | /* end confdefs.h. */ |
10493 | /* end confdefs.h. */ |
11828 | |
10494 | |
|
|
10495 | #include <cstddef> // broken bsds (is that redundant?) need this |
11829 | #include <sys/types.h> |
10496 | #include <sys/types.h> |
11830 | #include <sys/socket.h> |
10497 | #include <sys/socket.h> |
|
|
10498 | #include <sys/uio.h> |
11831 | |
10499 | |
11832 | int |
10500 | int |
11833 | main () |
10501 | main () |
11834 | { |
10502 | { |
11835 | |
10503 | |
… | |
… | |
11860 | ; |
10528 | ; |
11861 | return 0; |
10529 | return 0; |
11862 | } |
10530 | } |
11863 | _ACEOF |
10531 | _ACEOF |
11864 | rm -f conftest.$ac_objext conftest$ac_exeext |
10532 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10533 | if { (ac_try="$ac_link" |
|
|
10534 | case "(($ac_try" in |
|
|
10535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10536 | *) ac_try_echo=$ac_try;; |
|
|
10537 | esac |
11865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11866 | (eval $ac_link) 2>conftest.er1 |
10539 | (eval "$ac_link") 2>conftest.er1 |
11867 | ac_status=$? |
10540 | ac_status=$? |
11868 | grep -v '^ *+' conftest.er1 >conftest.err |
10541 | grep -v '^ *+' conftest.er1 >conftest.err |
11869 | rm -f conftest.er1 |
10542 | rm -f conftest.er1 |
11870 | cat conftest.err >&5 |
10543 | cat conftest.err >&5 |
11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11872 | (exit $ac_status); } && |
10545 | (exit $ac_status); } && { |
11873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10546 | test -z "$ac_cxx_werror_flag" || |
11874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10547 | test ! -s conftest.err |
11875 | (eval $ac_try) 2>&5 |
10548 | } && test -s conftest$ac_exeext && |
11876 | ac_status=$? |
10549 | $as_test_x conftest$ac_exeext; then |
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11878 | (exit $ac_status); }; } && |
|
|
11879 | { ac_try='test -s conftest$ac_exeext' |
|
|
11880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11881 | (eval $ac_try) 2>&5 |
|
|
11882 | ac_status=$? |
|
|
11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11884 | (exit $ac_status); }; }; then |
|
|
11885 | rxvt_can_pass_fds=yes |
10550 | can_pass_fds=yes |
11886 | else |
10551 | else |
11887 | echo "$as_me: failed program was:" >&5 |
10552 | echo "$as_me: failed program was:" >&5 |
11888 | sed 's/^/| /' conftest.$ac_ext >&5 |
10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
11889 | |
10554 | |
11890 | rxvt_can_pass_fds=no |
10555 | can_pass_fds=no |
11891 | fi |
10556 | fi |
11892 | rm -f conftest.err conftest.$ac_objext \ |
10557 | |
|
|
10558 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11893 | conftest$ac_exeext conftest.$ac_ext |
10559 | conftest$ac_exeext conftest.$ac_ext |
11894 | fi |
10560 | fi |
11895 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
10561 | { echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
11896 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
10562 | echo "${ECHO_T}$can_pass_fds" >&6; } |
11897 | if test x$rxvt_can_pass_fds = xyes; then |
10563 | if test x$can_pass_fds = xyes; then |
11898 | |
10564 | |
11899 | cat >>confdefs.h <<\_ACEOF |
10565 | cat >>confdefs.h <<\_ACEOF |
11900 | #define HAVE_UNIX_FDPASS 1 |
10566 | #define HAVE_UNIX_FDPASS 1 |
11901 | _ACEOF |
10567 | _ACEOF |
11902 | |
10568 | |
|
|
10569 | else |
|
|
10570 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
10571 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
10572 | { (exit 1); exit 1; }; } |
11903 | fi |
10573 | fi |
11904 | |
10574 | |
11905 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10575 | |
|
|
10576 | |
|
|
10577 | |
|
|
10578 | |
|
|
10579 | |
|
|
10580 | |
|
|
10581 | |
|
|
10582 | |
|
|
10583 | for ac_header in \ |
|
|
10584 | pty.h \ |
|
|
10585 | util.h \ |
|
|
10586 | libutil.h \ |
|
|
10587 | sys/ioctl.h \ |
|
|
10588 | sys/stropts.h \ |
|
|
10589 | stropts.h \ |
|
|
10590 | |
|
|
10591 | do |
|
|
10592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11906 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11907 | if test "${rxvt_broken_ximcb+set}" = set; then |
10596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10598 | fi |
|
|
10599 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
10600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10601 | echo "${ECHO_T}$ac_res" >&6; } |
11909 | else |
10602 | else |
|
|
10603 | # Is the header compilable? |
|
|
10604 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11910 | cat >conftest.$ac_ext <<_ACEOF |
10606 | cat >conftest.$ac_ext <<_ACEOF |
11911 | |
10607 | /* confdefs.h. */ |
11912 | #include <X11/Xlib.h> |
10608 | _ACEOF |
11913 | |
10609 | cat confdefs.h >>conftest.$ac_ext |
11914 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
10610 | cat >>conftest.$ac_ext <<_ACEOF |
11915 | |
10611 | /* end confdefs.h. */ |
11916 | void f() { |
10612 | $ac_includes_default |
11917 | XIMCallback cb; |
10613 | #include <$ac_header> |
11918 | cb.callback = im_destroy_cb; |
|
|
11919 | } |
|
|
11920 | |
|
|
11921 | _ACEOF |
10614 | _ACEOF |
11922 | rm -f conftest.$ac_objext |
10615 | rm -f conftest.$ac_objext |
|
|
10616 | if { (ac_try="$ac_compile" |
|
|
10617 | case "(($ac_try" in |
|
|
10618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10619 | *) ac_try_echo=$ac_try;; |
|
|
10620 | esac |
11923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11924 | (eval $ac_compile) 2>conftest.er1 |
10622 | (eval "$ac_compile") 2>conftest.er1 |
11925 | ac_status=$? |
10623 | ac_status=$? |
11926 | grep -v '^ *+' conftest.er1 >conftest.err |
10624 | grep -v '^ *+' conftest.er1 >conftest.err |
11927 | rm -f conftest.er1 |
10625 | rm -f conftest.er1 |
11928 | cat conftest.err >&5 |
10626 | cat conftest.err >&5 |
11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11930 | (exit $ac_status); } && |
10628 | (exit $ac_status); } && { |
11931 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10629 | test -z "$ac_cxx_werror_flag" || |
11932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10630 | test ! -s conftest.err |
11933 | (eval $ac_try) 2>&5 |
10631 | } && test -s conftest.$ac_objext; then |
11934 | ac_status=$? |
10632 | ac_header_compiler=yes |
11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11936 | (exit $ac_status); }; } && |
|
|
11937 | { ac_try='test -s conftest.$ac_objext' |
|
|
11938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11939 | (eval $ac_try) 2>&5 |
|
|
11940 | ac_status=$? |
|
|
11941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11942 | (exit $ac_status); }; }; then |
|
|
11943 | rxvt_broken_ximcb=yes |
|
|
11944 | else |
10633 | else |
11945 | echo "$as_me: failed program was:" >&5 |
10634 | echo "$as_me: failed program was:" >&5 |
11946 | sed 's/^/| /' conftest.$ac_ext >&5 |
10635 | sed 's/^/| /' conftest.$ac_ext >&5 |
11947 | |
10636 | |
11948 | rxvt_broken_ximcb=no |
10637 | ac_header_compiler=no |
11949 | fi |
10638 | fi |
|
|
10639 | |
11950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11951 | fi |
10641 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11952 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
10642 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
11953 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
|
|
11954 | |
10643 | |
11955 | if test x$rxvt_broken_ximcb = xyes; then |
10644 | # Is the header present? |
11956 | |
|
|
11957 | cat >>confdefs.h <<\_ACEOF |
|
|
11958 | #define XIMCB_PROTO_BROKEN 1 |
|
|
11959 | _ACEOF |
|
|
11960 | |
|
|
11961 | fi |
|
|
11962 | |
|
|
11963 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
|
|
11964 | echo "$as_me:$LINENO: checking for openpty" >&5 |
10645 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11965 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
10646 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11966 | if test "${ac_cv_func_openpty+set}" = set; then |
|
|
11967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11968 | else |
|
|
11969 | cat >conftest.$ac_ext <<_ACEOF |
10647 | cat >conftest.$ac_ext <<_ACEOF |
11970 | /* confdefs.h. */ |
10648 | /* confdefs.h. */ |
11971 | _ACEOF |
10649 | _ACEOF |
11972 | cat confdefs.h >>conftest.$ac_ext |
10650 | cat confdefs.h >>conftest.$ac_ext |
11973 | cat >>conftest.$ac_ext <<_ACEOF |
10651 | cat >>conftest.$ac_ext <<_ACEOF |
11974 | /* end confdefs.h. */ |
10652 | /* end confdefs.h. */ |
11975 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
10653 | #include <$ac_header> |
11976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
11977 | #define openpty innocuous_openpty |
|
|
11978 | |
|
|
11979 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
11980 | which can conflict with char openpty (); below. |
|
|
11981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
11982 | <limits.h> exists even on freestanding compilers. */ |
|
|
11983 | |
|
|
11984 | #ifdef __STDC__ |
|
|
11985 | # include <limits.h> |
|
|
11986 | #else |
|
|
11987 | # include <assert.h> |
|
|
11988 | #endif |
|
|
11989 | |
|
|
11990 | #undef openpty |
|
|
11991 | |
|
|
11992 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11993 | #ifdef __cplusplus |
|
|
11994 | extern "C" |
|
|
11995 | { |
|
|
11996 | #endif |
|
|
11997 | /* We use char because int might match the return type of a gcc2 |
|
|
11998 | builtin and then its argument prototype would still apply. */ |
|
|
11999 | char openpty (); |
|
|
12000 | /* The GNU C library defines this for functions which it implements |
|
|
12001 | to always fail with ENOSYS. Some functions are actually named |
|
|
12002 | something starting with __ and the normal name is an alias. */ |
|
|
12003 | #if defined (__stub_openpty) || defined (__stub___openpty) |
|
|
12004 | choke me |
|
|
12005 | #else |
|
|
12006 | char (*f) () = openpty; |
|
|
12007 | #endif |
|
|
12008 | #ifdef __cplusplus |
|
|
12009 | } |
|
|
12010 | #endif |
|
|
12011 | |
|
|
12012 | int |
|
|
12013 | main () |
|
|
12014 | { |
|
|
12015 | return f != openpty; |
|
|
12016 | ; |
|
|
12017 | return 0; |
|
|
12018 | } |
|
|
12019 | _ACEOF |
10654 | _ACEOF |
12020 | rm -f conftest.$ac_objext conftest$ac_exeext |
10655 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10656 | case "(($ac_try" in |
|
|
10657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10658 | *) ac_try_echo=$ac_try;; |
|
|
10659 | esac |
12021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12022 | (eval $ac_link) 2>conftest.er1 |
10661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12023 | ac_status=$? |
10662 | ac_status=$? |
12024 | grep -v '^ *+' conftest.er1 >conftest.err |
10663 | grep -v '^ *+' conftest.er1 >conftest.err |
12025 | rm -f conftest.er1 |
10664 | rm -f conftest.er1 |
12026 | cat conftest.err >&5 |
10665 | cat conftest.err >&5 |
12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12028 | (exit $ac_status); } && |
10667 | (exit $ac_status); } >/dev/null && { |
12029 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10668 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10669 | test ! -s conftest.err |
12031 | (eval $ac_try) 2>&5 |
10670 | }; then |
12032 | ac_status=$? |
10671 | ac_header_preproc=yes |
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12034 | (exit $ac_status); }; } && |
|
|
12035 | { ac_try='test -s conftest$ac_exeext' |
|
|
12036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12037 | (eval $ac_try) 2>&5 |
|
|
12038 | ac_status=$? |
|
|
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12040 | (exit $ac_status); }; }; then |
|
|
12041 | ac_cv_func_openpty=yes |
|
|
12042 | else |
10672 | else |
12043 | echo "$as_me: failed program was:" >&5 |
10673 | echo "$as_me: failed program was:" >&5 |
12044 | sed 's/^/| /' conftest.$ac_ext >&5 |
10674 | sed 's/^/| /' conftest.$ac_ext >&5 |
12045 | |
10675 | |
12046 | ac_cv_func_openpty=no |
|
|
12047 | fi |
|
|
12048 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12049 | conftest$ac_exeext conftest.$ac_ext |
|
|
12050 | fi |
|
|
12051 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
|
|
12052 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
|
|
12053 | if test $ac_cv_func_openpty = yes; then |
|
|
12054 | : |
|
|
12055 | else |
|
|
12056 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12057 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12058 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12060 | else |
|
|
12061 | ac_check_lib_save_LIBS=$LIBS |
|
|
12062 | LIBS="-lutil $LIBS" |
|
|
12063 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12064 | /* confdefs.h. */ |
|
|
12065 | _ACEOF |
|
|
12066 | cat confdefs.h >>conftest.$ac_ext |
|
|
12067 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12068 | /* end confdefs.h. */ |
|
|
12069 | |
|
|
12070 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12071 | #ifdef __cplusplus |
|
|
12072 | extern "C" |
|
|
12073 | #endif |
|
|
12074 | /* We use char because int might match the return type of a gcc2 |
|
|
12075 | builtin and then its argument prototype would still apply. */ |
|
|
12076 | char openpty (); |
|
|
12077 | int |
|
|
12078 | main () |
|
|
12079 | { |
|
|
12080 | openpty (); |
|
|
12081 | ; |
|
|
12082 | return 0; |
|
|
12083 | } |
|
|
12084 | _ACEOF |
|
|
12085 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12087 | (eval $ac_link) 2>conftest.er1 |
|
|
12088 | ac_status=$? |
|
|
12089 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12090 | rm -f conftest.er1 |
|
|
12091 | cat conftest.err >&5 |
|
|
12092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12093 | (exit $ac_status); } && |
|
|
12094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12096 | (eval $ac_try) 2>&5 |
|
|
12097 | ac_status=$? |
|
|
12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12099 | (exit $ac_status); }; } && |
|
|
12100 | { ac_try='test -s conftest$ac_exeext' |
|
|
12101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12102 | (eval $ac_try) 2>&5 |
|
|
12103 | ac_status=$? |
|
|
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12105 | (exit $ac_status); }; }; then |
|
|
12106 | ac_cv_lib_util_openpty=yes |
|
|
12107 | else |
|
|
12108 | echo "$as_me: failed program was:" >&5 |
|
|
12109 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12110 | |
|
|
12111 | ac_cv_lib_util_openpty=no |
|
|
12112 | fi |
|
|
12113 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12114 | conftest$ac_exeext conftest.$ac_ext |
|
|
12115 | LIBS=$ac_check_lib_save_LIBS |
|
|
12116 | fi |
|
|
12117 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12118 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12119 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12120 | LIBS="$LIBS -lutil" |
|
|
12121 | fi |
|
|
12122 | |
|
|
12123 | fi |
|
|
12124 | |
|
|
12125 | fi |
|
|
12126 | |
|
|
12127 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
|
|
12128 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
|
|
12129 | if test "${rxvt_cv_ptys+set}" = set; then |
|
|
12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12131 | else |
|
|
12132 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
|
|
12133 | rxvt_cv_ptys=OPENPTY |
|
|
12134 | else if test x$ac_cv_func_getpt = xyes; then |
|
|
12135 | rxvt_cv_ptys=GLIBC |
|
|
12136 | else if test x$ac_cv_func_posix_openpt = xyes; then |
|
|
12137 | rxvt_cv_ptys=POSIX |
|
|
12138 | else if test x$ac_cv_func__getpty = xyes; then |
|
|
12139 | rxvt_cv_ptys=SGI4 |
|
|
12140 | else if test -c /dev/ttyp20; then |
|
|
12141 | rxvt_cv_ptys=SCO |
|
|
12142 | else if test -c /dev/ptym/clone; then |
|
|
12143 | rxvt_cv_ptys=HPUX |
|
|
12144 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
12145 | rxvt_cv_ptys=PTC |
|
|
12146 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
12147 | rxvt_cv_ptys=PTC |
|
|
12148 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
12149 | rxvt_cv_ptys=STREAMS |
|
|
12150 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
12151 | rxvt_cv_ptys=STREAMS |
|
|
12152 | else |
|
|
12153 | rxvt_cv_ptys=BSD |
|
|
12154 | fi |
|
|
12155 | fi |
|
|
12156 | fi |
|
|
12157 | fi |
|
|
12158 | fi |
|
|
12159 | fi |
|
|
12160 | fi |
|
|
12161 | fi |
|
|
12162 | fi |
|
|
12163 | fi |
|
|
12164 | |
|
|
12165 | fi |
|
|
12166 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
12167 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
12168 | |
|
|
12169 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12170 | |
|
|
12171 | cat >>confdefs.h <<\_ACEOF |
|
|
12172 | #define PTYS_ARE_GETPT 1 |
|
|
12173 | _ACEOF |
|
|
12174 | |
|
|
12175 | fi |
|
|
12176 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12177 | |
|
|
12178 | cat >>confdefs.h <<\_ACEOF |
|
|
12179 | #define PTYS_ARE_POSIX 1 |
|
|
12180 | _ACEOF |
|
|
12181 | |
|
|
12182 | fi |
|
|
12183 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
12184 | |
|
|
12185 | cat >>confdefs.h <<\_ACEOF |
|
|
12186 | #define PTYS_ARE_OPENPTY 1 |
|
|
12187 | _ACEOF |
|
|
12188 | |
|
|
12189 | fi |
|
|
12190 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
12191 | |
|
|
12192 | cat >>confdefs.h <<\_ACEOF |
|
|
12193 | #define PTYS_ARE_NUMERIC 1 |
|
|
12194 | _ACEOF |
|
|
12195 | |
|
|
12196 | fi |
|
|
12197 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
12198 | |
|
|
12199 | cat >>confdefs.h <<\_ACEOF |
|
|
12200 | #define PTYS_ARE_PTMX 1 |
|
|
12201 | _ACEOF |
|
|
12202 | |
|
|
12203 | fi |
|
|
12204 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
12205 | |
|
|
12206 | cat >>confdefs.h <<\_ACEOF |
|
|
12207 | #define PTYS_ARE_PTC 1 |
|
|
12208 | _ACEOF |
|
|
12209 | |
|
|
12210 | fi |
|
|
12211 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
12212 | |
|
|
12213 | cat >>confdefs.h <<\_ACEOF |
|
|
12214 | #define PTYS_ARE__GETPTY 1 |
|
|
12215 | _ACEOF |
|
|
12216 | |
|
|
12217 | fi |
|
|
12218 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
12219 | |
|
|
12220 | cat >>confdefs.h <<\_ACEOF |
|
|
12221 | #define PTYS_ARE_CLONE 1 |
|
|
12222 | _ACEOF |
|
|
12223 | |
|
|
12224 | fi |
|
|
12225 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
|
|
12226 | |
|
|
12227 | cat >>confdefs.h <<\_ACEOF |
|
|
12228 | #define PTYS_ARE_SEARCHED 1 |
|
|
12229 | _ACEOF |
|
|
12230 | |
|
|
12231 | fi |
|
|
12232 | |
|
|
12233 | |
|
|
12234 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
12235 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
12236 | ptys=`echo /dev/pty??` |
|
|
12237 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
12238 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
12239 | if test x$pch1 != x; then |
|
|
12240 | |
|
|
12241 | cat >>confdefs.h <<_ACEOF |
|
|
12242 | #define PTYCHAR1 "$pch1" |
|
|
12243 | _ACEOF |
|
|
12244 | |
|
|
12245 | fi |
|
|
12246 | if test x$pch2 != x; then |
|
|
12247 | |
|
|
12248 | cat >>confdefs.h <<_ACEOF |
|
|
12249 | #define PTYCHAR2 "$pch2" |
|
|
12250 | _ACEOF |
|
|
12251 | |
|
|
12252 | fi |
|
|
12253 | |
|
|
12254 | if test x$support_xft = xyes; then |
|
|
12255 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12256 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12257 | |
|
|
12258 | |
|
|
12259 | for ac_header in X11/Xft/Xft.h |
|
|
12260 | do |
|
|
12261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12267 | fi |
|
|
12268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12270 | else |
|
|
12271 | # Is the header compilable? |
|
|
12272 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12273 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12274 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12275 | /* confdefs.h. */ |
|
|
12276 | _ACEOF |
|
|
12277 | cat confdefs.h >>conftest.$ac_ext |
|
|
12278 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12279 | /* end confdefs.h. */ |
|
|
12280 | $ac_includes_default |
|
|
12281 | #include <$ac_header> |
|
|
12282 | _ACEOF |
|
|
12283 | rm -f conftest.$ac_objext |
|
|
12284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12285 | (eval $ac_compile) 2>conftest.er1 |
|
|
12286 | ac_status=$? |
|
|
12287 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12288 | rm -f conftest.er1 |
|
|
12289 | cat conftest.err >&5 |
|
|
12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12291 | (exit $ac_status); } && |
|
|
12292 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12294 | (eval $ac_try) 2>&5 |
|
|
12295 | ac_status=$? |
|
|
12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12297 | (exit $ac_status); }; } && |
|
|
12298 | { ac_try='test -s conftest.$ac_objext' |
|
|
12299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12300 | (eval $ac_try) 2>&5 |
|
|
12301 | ac_status=$? |
|
|
12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12303 | (exit $ac_status); }; }; then |
|
|
12304 | ac_header_compiler=yes |
|
|
12305 | else |
|
|
12306 | echo "$as_me: failed program was:" >&5 |
|
|
12307 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12308 | |
|
|
12309 | ac_header_compiler=no |
|
|
12310 | fi |
|
|
12311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12312 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12313 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12314 | |
|
|
12315 | # Is the header present? |
|
|
12316 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12317 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12319 | /* confdefs.h. */ |
|
|
12320 | _ACEOF |
|
|
12321 | cat confdefs.h >>conftest.$ac_ext |
|
|
12322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12323 | /* end confdefs.h. */ |
|
|
12324 | #include <$ac_header> |
|
|
12325 | _ACEOF |
|
|
12326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12328 | ac_status=$? |
|
|
12329 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12330 | rm -f conftest.er1 |
|
|
12331 | cat conftest.err >&5 |
|
|
12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12333 | (exit $ac_status); } >/dev/null; then |
|
|
12334 | if test -s conftest.err; then |
|
|
12335 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12336 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12337 | else |
|
|
12338 | ac_cpp_err= |
|
|
12339 | fi |
|
|
12340 | else |
|
|
12341 | ac_cpp_err=yes |
|
|
12342 | fi |
|
|
12343 | if test -z "$ac_cpp_err"; then |
|
|
12344 | ac_header_preproc=yes |
|
|
12345 | else |
|
|
12346 | echo "$as_me: failed program was:" >&5 |
|
|
12347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12348 | |
|
|
12349 | ac_header_preproc=no |
10676 | ac_header_preproc=no |
12350 | fi |
10677 | fi |
|
|
10678 | |
12351 | rm -f conftest.err conftest.$ac_ext |
10679 | rm -f conftest.err conftest.$ac_ext |
12352 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10680 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12353 | echo "${ECHO_T}$ac_header_preproc" >&6 |
10681 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
12354 | |
10682 | |
12355 | # So? What about this header? |
10683 | # So? What about this header? |
12356 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10684 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12357 | yes:no: ) |
10685 | yes:no: ) |
12358 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10686 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
… | |
… | |
12372 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10700 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12374 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12375 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10703 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12376 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10704 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12377 | ( |
10705 | |
12378 | cat <<\_ASBOX |
|
|
12379 | ## ------------------------------------------ ## |
|
|
12380 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12381 | ## ------------------------------------------ ## |
|
|
12382 | _ASBOX |
|
|
12383 | ) | |
|
|
12384 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12385 | ;; |
10706 | ;; |
12386 | esac |
10707 | esac |
12387 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12391 | else |
10712 | else |
12392 | eval "$as_ac_Header=\$ac_header_preproc" |
10713 | eval "$as_ac_Header=\$ac_header_preproc" |
12393 | fi |
10714 | fi |
12394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10715 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12395 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10717 | echo "${ECHO_T}$ac_res" >&6; } |
12396 | |
10718 | |
12397 | fi |
10719 | fi |
12398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12399 | cat >>confdefs.h <<_ACEOF |
10721 | cat >>confdefs.h <<_ACEOF |
12400 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12401 | _ACEOF |
10723 | _ACEOF |
12402 | |
10724 | |
12403 | else |
|
|
12404 | support_xft=no |
|
|
12405 | fi |
10725 | fi |
12406 | |
10726 | |
12407 | done |
10727 | done |
12408 | |
10728 | |
12409 | |
10729 | |
12410 | echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
10730 | |
12411 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6 |
10731 | |
12412 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
10732 | |
|
|
10733 | |
|
|
10734 | |
|
|
10735 | |
|
|
10736 | |
|
|
10737 | |
|
|
10738 | |
|
|
10739 | for ac_func in \ |
|
|
10740 | revoke \ |
|
|
10741 | _getpty \ |
|
|
10742 | getpt \ |
|
|
10743 | posix_openpt \ |
|
|
10744 | isastream \ |
|
|
10745 | setuid \ |
|
|
10746 | seteuid \ |
|
|
10747 | setreuid \ |
|
|
10748 | setresuid \ |
|
|
10749 | |
|
|
10750 | do |
|
|
10751 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10752 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10753 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10754 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
12413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12414 | else |
10756 | else |
12415 | ac_check_lib_save_LIBS=$LIBS |
|
|
12416 | LIBS="-lXft $LIBS" |
|
|
12417 | cat >conftest.$ac_ext <<_ACEOF |
10757 | cat >conftest.$ac_ext <<_ACEOF |
12418 | /* confdefs.h. */ |
10758 | /* confdefs.h. */ |
12419 | _ACEOF |
10759 | _ACEOF |
12420 | cat confdefs.h >>conftest.$ac_ext |
10760 | cat confdefs.h >>conftest.$ac_ext |
12421 | cat >>conftest.$ac_ext <<_ACEOF |
10761 | cat >>conftest.$ac_ext <<_ACEOF |
12422 | /* end confdefs.h. */ |
10762 | /* end confdefs.h. */ |
|
|
10763 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10765 | #define $ac_func innocuous_$ac_func |
12423 | |
10766 | |
|
|
10767 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10768 | which can conflict with char $ac_func (); below. |
|
|
10769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10770 | <limits.h> exists even on freestanding compilers. */ |
|
|
10771 | |
|
|
10772 | #ifdef __STDC__ |
|
|
10773 | # include <limits.h> |
|
|
10774 | #else |
|
|
10775 | # include <assert.h> |
|
|
10776 | #endif |
|
|
10777 | |
|
|
10778 | #undef $ac_func |
|
|
10779 | |
12424 | /* Override any gcc2 internal prototype to avoid an error. */ |
10780 | /* Override any GCC internal prototype to avoid an error. |
|
|
10781 | Use char because int might match the return type of a GCC |
|
|
10782 | builtin and then its argument prototype would still apply. */ |
12425 | #ifdef __cplusplus |
10783 | #ifdef __cplusplus |
12426 | extern "C" |
10784 | extern "C" |
12427 | #endif |
10785 | #endif |
12428 | /* We use char because int might match the return type of a gcc2 |
10786 | char $ac_func (); |
12429 | builtin and then its argument prototype would still apply. */ |
10787 | /* The GNU C library defines this for functions which it implements |
12430 | char XftDrawString32 (); |
10788 | to always fail with ENOSYS. Some functions are actually named |
|
|
10789 | something starting with __ and the normal name is an alias. */ |
|
|
10790 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10791 | choke me |
|
|
10792 | #endif |
|
|
10793 | |
12431 | int |
10794 | int |
12432 | main () |
10795 | main () |
12433 | { |
10796 | { |
12434 | XftDrawString32 (); |
10797 | return $ac_func (); |
12435 | ; |
10798 | ; |
12436 | return 0; |
10799 | return 0; |
12437 | } |
10800 | } |
12438 | _ACEOF |
10801 | _ACEOF |
12439 | rm -f conftest.$ac_objext conftest$ac_exeext |
10802 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10803 | if { (ac_try="$ac_link" |
|
|
10804 | case "(($ac_try" in |
|
|
10805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10806 | *) ac_try_echo=$ac_try;; |
|
|
10807 | esac |
12440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12441 | (eval $ac_link) 2>conftest.er1 |
10809 | (eval "$ac_link") 2>conftest.er1 |
12442 | ac_status=$? |
10810 | ac_status=$? |
12443 | grep -v '^ *+' conftest.er1 >conftest.err |
10811 | grep -v '^ *+' conftest.er1 >conftest.err |
12444 | rm -f conftest.er1 |
10812 | rm -f conftest.er1 |
12445 | cat conftest.err >&5 |
10813 | cat conftest.err >&5 |
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12447 | (exit $ac_status); } && |
10815 | (exit $ac_status); } && { |
12448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10816 | test -z "$ac_cxx_werror_flag" || |
|
|
10817 | test ! -s conftest.err |
|
|
10818 | } && test -s conftest$ac_exeext && |
|
|
10819 | $as_test_x conftest$ac_exeext; then |
|
|
10820 | eval "$as_ac_var=yes" |
|
|
10821 | else |
|
|
10822 | echo "$as_me: failed program was:" >&5 |
|
|
10823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10824 | |
|
|
10825 | eval "$as_ac_var=no" |
|
|
10826 | fi |
|
|
10827 | |
|
|
10828 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10829 | conftest$ac_exeext conftest.$ac_ext |
|
|
10830 | fi |
|
|
10831 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10833 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10834 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10835 | cat >>confdefs.h <<_ACEOF |
|
|
10836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10837 | _ACEOF |
|
|
10838 | |
|
|
10839 | fi |
|
|
10840 | done |
|
|
10841 | |
|
|
10842 | |
|
|
10843 | have_clone=no |
|
|
10844 | |
|
|
10845 | { echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
10846 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } |
|
|
10847 | if test -e /dev/ptym/clone; then |
|
|
10848 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
10849 | echo "${ECHO_T}yes" >&6; } |
|
|
10850 | |
|
|
10851 | cat >>confdefs.h <<\_ACEOF |
|
|
10852 | #define HAVE_DEV_CLONE 1 |
|
|
10853 | _ACEOF |
|
|
10854 | |
|
|
10855 | |
|
|
10856 | cat >>confdefs.h <<\_ACEOF |
|
|
10857 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
10858 | _ACEOF |
|
|
10859 | |
|
|
10860 | have_clone=yes |
|
|
10861 | else |
|
|
10862 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
10863 | echo "${ECHO_T}no" >&6; } |
|
|
10864 | fi |
|
|
10865 | |
|
|
10866 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
10867 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
|
|
10868 | if test -e /dev/ptc; then |
|
|
10869 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
10870 | echo "${ECHO_T}yes" >&6; } |
|
|
10871 | |
|
|
10872 | cat >>confdefs.h <<\_ACEOF |
|
|
10873 | #define HAVE_DEV_PTC 1 |
|
|
10874 | _ACEOF |
|
|
10875 | |
|
|
10876 | |
|
|
10877 | cat >>confdefs.h <<\_ACEOF |
|
|
10878 | #define CLONE_DEVICE "/dev/ptc" |
|
|
10879 | _ACEOF |
|
|
10880 | |
|
|
10881 | have_clone=yes |
|
|
10882 | else |
|
|
10883 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
10884 | echo "${ECHO_T}no" >&6; } |
|
|
10885 | fi |
|
|
10886 | |
|
|
10887 | case $host in |
|
|
10888 | *-*-cygwin*) |
|
|
10889 | have_clone=yes |
|
|
10890 | |
|
|
10891 | cat >>confdefs.h <<\_ACEOF |
|
|
10892 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
10893 | _ACEOF |
|
|
10894 | |
|
|
10895 | ;; |
|
|
10896 | *) |
|
|
10897 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
10898 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
|
|
10899 | if test -e /dev/ptmx; then |
|
|
10900 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
10901 | echo "${ECHO_T}yes" >&6; } |
|
|
10902 | |
|
|
10903 | cat >>confdefs.h <<\_ACEOF |
|
|
10904 | #define HAVE_DEV_PTMX 1 |
|
|
10905 | _ACEOF |
|
|
10906 | |
|
|
10907 | |
|
|
10908 | cat >>confdefs.h <<\_ACEOF |
|
|
10909 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
10910 | _ACEOF |
|
|
10911 | |
|
|
10912 | have_clone=yes |
|
|
10913 | else |
|
|
10914 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
10915 | echo "${ECHO_T}no" >&6; } |
|
|
10916 | fi |
|
|
10917 | ;; |
|
|
10918 | esac |
|
|
10919 | |
|
|
10920 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
10921 | { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
10922 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } |
|
|
10923 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10924 | /* confdefs.h. */ |
|
|
10925 | _ACEOF |
|
|
10926 | cat confdefs.h >>conftest.$ac_ext |
|
|
10927 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10928 | /* end confdefs.h. */ |
|
|
10929 | #include <stdlib.h> |
|
|
10930 | int |
|
|
10931 | main () |
|
|
10932 | { |
|
|
10933 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
10934 | ; |
|
|
10935 | return 0; |
|
|
10936 | } |
|
|
10937 | _ACEOF |
|
|
10938 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10939 | if { (ac_try="$ac_link" |
|
|
10940 | case "(($ac_try" in |
|
|
10941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10942 | *) ac_try_echo=$ac_try;; |
|
|
10943 | esac |
12449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10945 | (eval "$ac_link") 2>conftest.er1 |
|
|
10946 | ac_status=$? |
|
|
10947 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10948 | rm -f conftest.er1 |
|
|
10949 | cat conftest.err >&5 |
|
|
10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10951 | (exit $ac_status); } && { |
|
|
10952 | test -z "$ac_cxx_werror_flag" || |
|
|
10953 | test ! -s conftest.err |
|
|
10954 | } && test -s conftest$ac_exeext && |
|
|
10955 | $as_test_x conftest$ac_exeext; then |
|
|
10956 | unix98_pty=yes |
|
|
10957 | |
|
|
10958 | cat >>confdefs.h <<\_ACEOF |
|
|
10959 | #define UNIX98_PTY 1 |
|
|
10960 | _ACEOF |
|
|
10961 | |
|
|
10962 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
10963 | echo "${ECHO_T}yes" >&6; } |
|
|
10964 | else |
|
|
10965 | echo "$as_me: failed program was:" >&5 |
|
|
10966 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10967 | |
|
|
10968 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
10969 | echo "${ECHO_T}no" >&6; } |
|
|
10970 | fi |
|
|
10971 | |
|
|
10972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10973 | conftest$ac_exeext conftest.$ac_ext |
|
|
10974 | fi |
|
|
10975 | |
|
|
10976 | if test -z "$unix98_pty"; then |
|
|
10977 | |
|
|
10978 | for ac_func in openpty |
|
|
10979 | do |
|
|
10980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10981 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10983 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10985 | else |
|
|
10986 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10987 | /* confdefs.h. */ |
|
|
10988 | _ACEOF |
|
|
10989 | cat confdefs.h >>conftest.$ac_ext |
|
|
10990 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10991 | /* end confdefs.h. */ |
|
|
10992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10994 | #define $ac_func innocuous_$ac_func |
|
|
10995 | |
|
|
10996 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10997 | which can conflict with char $ac_func (); below. |
|
|
10998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10999 | <limits.h> exists even on freestanding compilers. */ |
|
|
11000 | |
|
|
11001 | #ifdef __STDC__ |
|
|
11002 | # include <limits.h> |
|
|
11003 | #else |
|
|
11004 | # include <assert.h> |
|
|
11005 | #endif |
|
|
11006 | |
|
|
11007 | #undef $ac_func |
|
|
11008 | |
|
|
11009 | /* Override any GCC internal prototype to avoid an error. |
|
|
11010 | Use char because int might match the return type of a GCC |
|
|
11011 | builtin and then its argument prototype would still apply. */ |
|
|
11012 | #ifdef __cplusplus |
|
|
11013 | extern "C" |
|
|
11014 | #endif |
|
|
11015 | char $ac_func (); |
|
|
11016 | /* The GNU C library defines this for functions which it implements |
|
|
11017 | to always fail with ENOSYS. Some functions are actually named |
|
|
11018 | something starting with __ and the normal name is an alias. */ |
|
|
11019 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
11020 | choke me |
|
|
11021 | #endif |
|
|
11022 | |
|
|
11023 | int |
|
|
11024 | main () |
|
|
11025 | { |
|
|
11026 | return $ac_func (); |
|
|
11027 | ; |
|
|
11028 | return 0; |
|
|
11029 | } |
|
|
11030 | _ACEOF |
|
|
11031 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11032 | if { (ac_try="$ac_link" |
|
|
11033 | case "(($ac_try" in |
|
|
11034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11035 | *) ac_try_echo=$ac_try;; |
|
|
11036 | esac |
|
|
11037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11038 | (eval "$ac_link") 2>conftest.er1 |
|
|
11039 | ac_status=$? |
|
|
11040 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11041 | rm -f conftest.er1 |
|
|
11042 | cat conftest.err >&5 |
|
|
11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11044 | (exit $ac_status); } && { |
|
|
11045 | test -z "$ac_cxx_werror_flag" || |
|
|
11046 | test ! -s conftest.err |
|
|
11047 | } && test -s conftest$ac_exeext && |
|
|
11048 | $as_test_x conftest$ac_exeext; then |
|
|
11049 | eval "$as_ac_var=yes" |
|
|
11050 | else |
|
|
11051 | echo "$as_me: failed program was:" >&5 |
|
|
11052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11053 | |
|
|
11054 | eval "$as_ac_var=no" |
|
|
11055 | fi |
|
|
11056 | |
|
|
11057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
11058 | conftest$ac_exeext conftest.$ac_ext |
|
|
11059 | fi |
|
|
11060 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
11061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
11062 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
11063 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
11064 | cat >>confdefs.h <<_ACEOF |
|
|
11065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
11066 | _ACEOF |
|
|
11067 | |
|
|
11068 | else |
|
|
11069 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
11070 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
|
|
11071 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
11072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11073 | else |
|
|
11074 | ac_check_lib_save_LIBS=$LIBS |
|
|
11075 | LIBS="-lutil $LIBS" |
|
|
11076 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11077 | /* confdefs.h. */ |
|
|
11078 | _ACEOF |
|
|
11079 | cat confdefs.h >>conftest.$ac_ext |
|
|
11080 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11081 | /* end confdefs.h. */ |
|
|
11082 | |
|
|
11083 | /* Override any GCC internal prototype to avoid an error. |
|
|
11084 | Use char because int might match the return type of a GCC |
|
|
11085 | builtin and then its argument prototype would still apply. */ |
|
|
11086 | #ifdef __cplusplus |
|
|
11087 | extern "C" |
|
|
11088 | #endif |
|
|
11089 | char openpty (); |
|
|
11090 | int |
|
|
11091 | main () |
|
|
11092 | { |
|
|
11093 | return openpty (); |
|
|
11094 | ; |
|
|
11095 | return 0; |
|
|
11096 | } |
|
|
11097 | _ACEOF |
|
|
11098 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11099 | if { (ac_try="$ac_link" |
|
|
11100 | case "(($ac_try" in |
|
|
11101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11102 | *) ac_try_echo=$ac_try;; |
|
|
11103 | esac |
|
|
11104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11105 | (eval "$ac_link") 2>conftest.er1 |
|
|
11106 | ac_status=$? |
|
|
11107 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11108 | rm -f conftest.er1 |
|
|
11109 | cat conftest.err >&5 |
|
|
11110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11111 | (exit $ac_status); } && { |
|
|
11112 | test -z "$ac_cxx_werror_flag" || |
|
|
11113 | test ! -s conftest.err |
|
|
11114 | } && test -s conftest$ac_exeext && |
|
|
11115 | $as_test_x conftest$ac_exeext; then |
|
|
11116 | ac_cv_lib_util_openpty=yes |
|
|
11117 | else |
|
|
11118 | echo "$as_me: failed program was:" >&5 |
|
|
11119 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11120 | |
|
|
11121 | ac_cv_lib_util_openpty=no |
|
|
11122 | fi |
|
|
11123 | |
|
|
11124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
11125 | conftest$ac_exeext conftest.$ac_ext |
|
|
11126 | LIBS=$ac_check_lib_save_LIBS |
|
|
11127 | fi |
|
|
11128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
11129 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
|
|
11130 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
11131 | cat >>confdefs.h <<\_ACEOF |
|
|
11132 | #define HAVE_OPENPTY 1 |
|
|
11133 | _ACEOF |
|
|
11134 | LIBS="$LIBS -lutil" |
|
|
11135 | fi |
|
|
11136 | |
|
|
11137 | fi |
|
|
11138 | done |
|
|
11139 | |
|
|
11140 | fi |
|
|
11141 | |
|
|
11142 | |
|
|
11143 | |
|
|
11144 | { echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
11145 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } |
|
|
11146 | if test "${tty_group+set}" = set; then |
|
|
11147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11148 | else |
|
|
11149 | if test "$cross_compiling" = yes; then |
|
|
11150 | tty_group=no |
|
|
11151 | else |
|
|
11152 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11153 | /* confdefs.h. */ |
|
|
11154 | _ACEOF |
|
|
11155 | cat confdefs.h >>conftest.$ac_ext |
|
|
11156 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11157 | /* end confdefs.h. */ |
|
|
11158 | |
|
|
11159 | #include <sys/types.h> |
|
|
11160 | #include <sys/stat.h> |
|
|
11161 | #include <unistd.h> |
|
|
11162 | #include <grp.h> |
|
|
11163 | |
|
|
11164 | main() |
|
|
11165 | { |
|
|
11166 | struct stat st; |
|
|
11167 | struct group *gr; |
|
|
11168 | char *tty; |
|
|
11169 | gr = getgrnam("tty"); |
|
|
11170 | tty = ttyname(0); |
|
|
11171 | if (gr != 0 |
|
|
11172 | && tty != 0 |
|
|
11173 | && (stat(tty, &st)) == 0 |
|
|
11174 | && st.st_gid == gr->gr_gid) |
|
|
11175 | return 0; |
|
|
11176 | else |
|
|
11177 | return 1; |
|
|
11178 | } |
|
|
11179 | _ACEOF |
|
|
11180 | rm -f conftest$ac_exeext |
|
|
11181 | if { (ac_try="$ac_link" |
|
|
11182 | case "(($ac_try" in |
|
|
11183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11184 | *) ac_try_echo=$ac_try;; |
|
|
11185 | esac |
|
|
11186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12450 | (eval $ac_try) 2>&5 |
11187 | (eval "$ac_link") 2>&5 |
12451 | ac_status=$? |
11188 | ac_status=$? |
12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12453 | (exit $ac_status); }; } && |
11190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
12454 | { ac_try='test -s conftest$ac_exeext' |
11191 | { (case "(($ac_try" in |
|
|
11192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11193 | *) ac_try_echo=$ac_try;; |
|
|
11194 | esac |
12455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12456 | (eval $ac_try) 2>&5 |
11196 | (eval "$ac_try") 2>&5 |
12457 | ac_status=$? |
11197 | ac_status=$? |
12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12459 | (exit $ac_status); }; }; then |
11199 | (exit $ac_status); }; }; then |
12460 | ac_cv_lib_Xft_XftDrawString32=yes |
11200 | tty_group=yes |
|
|
11201 | else |
|
|
11202 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11203 | echo "$as_me: failed program was:" >&5 |
|
|
11204 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11205 | |
|
|
11206 | ( exit $ac_status ) |
|
|
11207 | tty_group=no |
|
|
11208 | fi |
|
|
11209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11210 | fi |
|
|
11211 | |
|
|
11212 | |
|
|
11213 | fi |
|
|
11214 | { echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
11215 | echo "${ECHO_T}$tty_group" >&6; } |
|
|
11216 | if test x$tty_group = xyes; then |
|
|
11217 | |
|
|
11218 | cat >>confdefs.h <<\_ACEOF |
|
|
11219 | #define TTY_GID_SUPPORT 1 |
|
|
11220 | _ACEOF |
|
|
11221 | |
|
|
11222 | fi |
|
|
11223 | |
|
|
11224 | if test x$support_xft = xyes; then |
|
|
11225 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
11226 | set dummy pkg-config; ac_word=$2 |
|
|
11227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
11228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
11229 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
11230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11231 | else |
|
|
11232 | case $PKG_CONFIG in |
|
|
11233 | [\\/]* | ?:[\\/]*) |
|
|
11234 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
11235 | ;; |
|
|
11236 | *) |
|
|
11237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
11238 | for as_dir in $PATH |
|
|
11239 | do |
|
|
11240 | IFS=$as_save_IFS |
|
|
11241 | test -z "$as_dir" && as_dir=. |
|
|
11242 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
11243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
11244 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
11245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
11246 | break 2 |
|
|
11247 | fi |
|
|
11248 | done |
|
|
11249 | done |
|
|
11250 | IFS=$as_save_IFS |
|
|
11251 | |
|
|
11252 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
11253 | ;; |
|
|
11254 | esac |
|
|
11255 | fi |
|
|
11256 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
11257 | if test -n "$PKG_CONFIG"; then |
|
|
11258 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
11259 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
|
|
11260 | else |
|
|
11261 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
11262 | echo "${ECHO_T}no" >&6; } |
|
|
11263 | fi |
|
|
11264 | |
|
|
11265 | |
|
|
11266 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
11267 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
|
|
11268 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
11269 | else |
|
|
11270 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
11271 | set dummy xft-config; ac_word=$2 |
|
|
11272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
11273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
11274 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
11275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11276 | else |
|
|
11277 | case $XFT_CONFIG in |
|
|
11278 | [\\/]* | ?:[\\/]*) |
|
|
11279 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
11280 | ;; |
|
|
11281 | *) |
|
|
11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
11283 | for as_dir in $PATH |
|
|
11284 | do |
|
|
11285 | IFS=$as_save_IFS |
|
|
11286 | test -z "$as_dir" && as_dir=. |
|
|
11287 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
11288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
11289 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
11290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
11291 | break 2 |
|
|
11292 | fi |
|
|
11293 | done |
|
|
11294 | done |
|
|
11295 | IFS=$as_save_IFS |
|
|
11296 | |
|
|
11297 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
11298 | ;; |
|
|
11299 | esac |
|
|
11300 | fi |
|
|
11301 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
11302 | if test -n "$XFT_CONFIG"; then |
|
|
11303 | { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
11304 | echo "${ECHO_T}$XFT_CONFIG" >&6; } |
|
|
11305 | else |
|
|
11306 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
11307 | echo "${ECHO_T}no" >&6; } |
|
|
11308 | fi |
|
|
11309 | |
|
|
11310 | |
|
|
11311 | if test $XFT_CONFIG != no; then |
|
|
11312 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
11313 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
11314 | fi |
|
|
11315 | fi |
|
|
11316 | |
|
|
11317 | save_LIBS="$LIBS" |
|
|
11318 | LIBS="$LIBS $X_LIBS" |
|
|
11319 | |
|
|
11320 | for ac_header in X11/Xft/Xft.h |
|
|
11321 | do |
|
|
11322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
11323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
11324 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
11325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
11326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
11327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11328 | fi |
|
|
11329 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
11330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
11331 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
11332 | else |
|
|
11333 | # Is the header compilable? |
|
|
11334 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
11335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
11336 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11337 | /* confdefs.h. */ |
|
|
11338 | _ACEOF |
|
|
11339 | cat confdefs.h >>conftest.$ac_ext |
|
|
11340 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11341 | /* end confdefs.h. */ |
|
|
11342 | $ac_includes_default |
|
|
11343 | #include <$ac_header> |
|
|
11344 | _ACEOF |
|
|
11345 | rm -f conftest.$ac_objext |
|
|
11346 | if { (ac_try="$ac_compile" |
|
|
11347 | case "(($ac_try" in |
|
|
11348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11349 | *) ac_try_echo=$ac_try;; |
|
|
11350 | esac |
|
|
11351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11352 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11353 | ac_status=$? |
|
|
11354 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11355 | rm -f conftest.er1 |
|
|
11356 | cat conftest.err >&5 |
|
|
11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11358 | (exit $ac_status); } && { |
|
|
11359 | test -z "$ac_cxx_werror_flag" || |
|
|
11360 | test ! -s conftest.err |
|
|
11361 | } && test -s conftest.$ac_objext; then |
|
|
11362 | ac_header_compiler=yes |
12461 | else |
11363 | else |
12462 | echo "$as_me: failed program was:" >&5 |
11364 | echo "$as_me: failed program was:" >&5 |
12463 | sed 's/^/| /' conftest.$ac_ext >&5 |
11365 | sed 's/^/| /' conftest.$ac_ext >&5 |
12464 | |
11366 | |
|
|
11367 | ac_header_compiler=no |
|
|
11368 | fi |
|
|
11369 | |
|
|
11370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11371 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
11372 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
11373 | |
|
|
11374 | # Is the header present? |
|
|
11375 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
11376 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
11377 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11378 | /* confdefs.h. */ |
|
|
11379 | _ACEOF |
|
|
11380 | cat confdefs.h >>conftest.$ac_ext |
|
|
11381 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11382 | /* end confdefs.h. */ |
|
|
11383 | #include <$ac_header> |
|
|
11384 | _ACEOF |
|
|
11385 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
11386 | case "(($ac_try" in |
|
|
11387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11388 | *) ac_try_echo=$ac_try;; |
|
|
11389 | esac |
|
|
11390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11391 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
11392 | ac_status=$? |
|
|
11393 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11394 | rm -f conftest.er1 |
|
|
11395 | cat conftest.err >&5 |
|
|
11396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11397 | (exit $ac_status); } >/dev/null && { |
|
|
11398 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
11399 | test ! -s conftest.err |
|
|
11400 | }; then |
|
|
11401 | ac_header_preproc=yes |
|
|
11402 | else |
|
|
11403 | echo "$as_me: failed program was:" >&5 |
|
|
11404 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11405 | |
|
|
11406 | ac_header_preproc=no |
|
|
11407 | fi |
|
|
11408 | |
|
|
11409 | rm -f conftest.err conftest.$ac_ext |
|
|
11410 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
11411 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
11412 | |
|
|
11413 | # So? What about this header? |
|
|
11414 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
11415 | yes:no: ) |
|
|
11416 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
11417 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
11418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
11419 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
11420 | ac_header_preproc=yes |
|
|
11421 | ;; |
|
|
11422 | no:yes:* ) |
|
|
11423 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
11424 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
11425 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
11426 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
11427 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
11428 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
11429 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
11430 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
11431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
11432 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
11433 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
11434 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
11435 | |
|
|
11436 | ;; |
|
|
11437 | esac |
|
|
11438 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
11439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
11440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
11441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11442 | else |
|
|
11443 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
11444 | fi |
|
|
11445 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
11446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
11447 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
11448 | |
|
|
11449 | fi |
|
|
11450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
11451 | cat >>confdefs.h <<_ACEOF |
|
|
11452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
11453 | _ACEOF |
|
|
11454 | |
|
|
11455 | else |
|
|
11456 | support_xft=no |
|
|
11457 | fi |
|
|
11458 | |
|
|
11459 | done |
|
|
11460 | |
|
|
11461 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
|
|
11462 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
|
|
11463 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
|
|
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11465 | else |
|
|
11466 | ac_check_lib_save_LIBS=$LIBS |
|
|
11467 | LIBS="-lXft $LIBS" |
|
|
11468 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11469 | /* confdefs.h. */ |
|
|
11470 | _ACEOF |
|
|
11471 | cat confdefs.h >>conftest.$ac_ext |
|
|
11472 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11473 | /* end confdefs.h. */ |
|
|
11474 | |
|
|
11475 | /* Override any GCC internal prototype to avoid an error. |
|
|
11476 | Use char because int might match the return type of a GCC |
|
|
11477 | builtin and then its argument prototype would still apply. */ |
|
|
11478 | #ifdef __cplusplus |
|
|
11479 | extern "C" |
|
|
11480 | #endif |
|
|
11481 | char XftDrawString32 (); |
|
|
11482 | int |
|
|
11483 | main () |
|
|
11484 | { |
|
|
11485 | return XftDrawString32 (); |
|
|
11486 | ; |
|
|
11487 | return 0; |
|
|
11488 | } |
|
|
11489 | _ACEOF |
|
|
11490 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11491 | if { (ac_try="$ac_link" |
|
|
11492 | case "(($ac_try" in |
|
|
11493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11494 | *) ac_try_echo=$ac_try;; |
|
|
11495 | esac |
|
|
11496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11497 | (eval "$ac_link") 2>conftest.er1 |
|
|
11498 | ac_status=$? |
|
|
11499 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11500 | rm -f conftest.er1 |
|
|
11501 | cat conftest.err >&5 |
|
|
11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11503 | (exit $ac_status); } && { |
|
|
11504 | test -z "$ac_cxx_werror_flag" || |
|
|
11505 | test ! -s conftest.err |
|
|
11506 | } && test -s conftest$ac_exeext && |
|
|
11507 | $as_test_x conftest$ac_exeext; then |
|
|
11508 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
11509 | else |
|
|
11510 | echo "$as_me: failed program was:" >&5 |
|
|
11511 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11512 | |
12465 | ac_cv_lib_Xft_XftDrawString32=no |
11513 | ac_cv_lib_Xft_XftDrawString32=no |
12466 | fi |
11514 | fi |
12467 | rm -f conftest.err conftest.$ac_objext \ |
11515 | |
|
|
11516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12468 | conftest$ac_exeext conftest.$ac_ext |
11517 | conftest$ac_exeext conftest.$ac_ext |
12469 | LIBS=$ac_check_lib_save_LIBS |
11518 | LIBS=$ac_check_lib_save_LIBS |
12470 | fi |
11519 | fi |
12471 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12472 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6 |
11521 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12473 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11522 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12474 | cat >>confdefs.h <<_ACEOF |
11523 | : |
12475 | #define HAVE_LIBXFT 1 |
|
|
12476 | _ACEOF |
|
|
12477 | |
|
|
12478 | LIBS="-lXft $LIBS" |
|
|
12479 | |
|
|
12480 | else |
11524 | else |
12481 | support_xft=no |
11525 | support_xft=no |
12482 | fi |
11526 | fi |
12483 | |
11527 | |
|
|
11528 | LIBS="$save_LIBS" |
12484 | |
11529 | |
12485 | if test x$support_xft = xyes; then |
11530 | if test x$support_xft = xyes; then |
12486 | |
11531 | |
12487 | cat >>confdefs.h <<\_ACEOF |
11532 | cat >>confdefs.h <<\_ACEOF |
12488 | #define XFT 1 |
11533 | #define XFT 1 |
… | |
… | |
12516 | cat >>confdefs.h <<\_ACEOF |
11561 | cat >>confdefs.h <<\_ACEOF |
12517 | #define OFF_FOCUS_FADING 1 |
11562 | #define OFF_FOCUS_FADING 1 |
12518 | _ACEOF |
11563 | _ACEOF |
12519 | |
11564 | |
12520 | fi |
11565 | fi |
12521 | if test x$support_tinting = xyes; then |
11566 | if test x$support_inheritpixmap = xyes; then |
12522 | |
11567 | |
12523 | cat >>confdefs.h <<\_ACEOF |
11568 | cat >>confdefs.h <<\_ACEOF |
12524 | #define TINTING 1 |
|
|
12525 | _ACEOF |
|
|
12526 | |
|
|
12527 | fi |
|
|
12528 | if test x$support_inheritpixmap = xyes; then |
|
|
12529 | |
|
|
12530 | cat >>confdefs.h <<\_ACEOF |
|
|
12531 | #define TRANSPARENT 1 |
11569 | #define ENABLE_TRANSPARENCY 1 |
12532 | _ACEOF |
11570 | _ACEOF |
12533 | |
11571 | |
12534 | fi |
11572 | fi |
12535 | if test x$support_keepscrolling = xno; then |
11573 | if test x$support_keepscrolling = xno; then |
12536 | |
11574 | |
… | |
… | |
12551 | cat >>confdefs.h <<\_ACEOF |
11589 | cat >>confdefs.h <<\_ACEOF |
12552 | #define ENABLE_FRILLS 1 |
11590 | #define ENABLE_FRILLS 1 |
12553 | _ACEOF |
11591 | _ACEOF |
12554 | |
11592 | |
12555 | fi |
11593 | fi |
12556 | if test x$support_24bit = xyes; then |
|
|
12557 | |
|
|
12558 | cat >>confdefs.h <<\_ACEOF |
|
|
12559 | #define PREFER_24BIT 1 |
|
|
12560 | _ACEOF |
|
|
12561 | |
|
|
12562 | fi |
|
|
12563 | if test x$support_mousewheel = xyes; then |
11594 | if test x$support_mousewheel = xyes; then |
12564 | |
11595 | |
12565 | cat >>confdefs.h <<\_ACEOF |
11596 | cat >>confdefs.h <<\_ACEOF |
12566 | #define MOUSE_WHEEL 1 |
11597 | #define MOUSE_WHEEL 1 |
12567 | _ACEOF |
11598 | _ACEOF |
… | |
… | |
12572 | cat >>confdefs.h <<\_ACEOF |
11603 | cat >>confdefs.h <<\_ACEOF |
12573 | #define MOUSE_SLIP_WHEELING 1 |
11604 | #define MOUSE_SLIP_WHEELING 1 |
12574 | _ACEOF |
11605 | _ACEOF |
12575 | |
11606 | |
12576 | fi |
11607 | fi |
12577 | if test x$support_utmp = xyes; then |
11608 | if test x$support_afterimage = xyes; then |
12578 | |
11609 | |
12579 | cat >>confdefs.h <<\_ACEOF |
11610 | cat >>confdefs.h <<\_ACEOF |
12580 | #define UTMP_SUPPORT 1 |
11611 | #define HAVE_AFTERIMAGE 1 |
12581 | _ACEOF |
11612 | _ACEOF |
12582 | |
11613 | |
12583 | fi |
|
|
12584 | if test x$support_wtmp = xyes; then |
|
|
12585 | |
11614 | |
12586 | cat >>confdefs.h <<\_ACEOF |
11615 | cat >>confdefs.h <<\_ACEOF |
12587 | #define WTMP_SUPPORT 1 |
11616 | #define BG_IMAGE_FROM_FILE 1 |
12588 | _ACEOF |
11617 | _ACEOF |
12589 | |
11618 | |
12590 | fi |
11619 | fi |
12591 | if test x$support_lastlog = xyes; then |
11620 | |
|
|
11621 | |
|
|
11622 | scrolltypes=plain |
12592 | |
11623 | |
12593 | cat >>confdefs.h <<\_ACEOF |
11624 | cat >>confdefs.h <<\_ACEOF |
12594 | #define LASTLOG_SUPPORT 1 |
11625 | #define PLAIN_SCROLLBAR 1 |
12595 | _ACEOF |
11626 | _ACEOF |
12596 | |
11627 | |
12597 | fi |
|
|
12598 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
12599 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
12600 | |
11628 | |
12601 | cat >>confdefs.h <<\_ACEOF |
|
|
12602 | #define USE_XIM 1 |
|
|
12603 | _ACEOF |
|
|
12604 | |
|
|
12605 | fi |
|
|
12606 | fi |
|
|
12607 | if test x$support_xpm = xyes; then |
|
|
12608 | |
|
|
12609 | cat >>confdefs.h <<\_ACEOF |
|
|
12610 | #define XPM_BACKGROUND 1 |
|
|
12611 | _ACEOF |
|
|
12612 | |
|
|
12613 | fi |
|
|
12614 | if test x$support_scroll_rxvt = xyes; then |
11629 | if test x$support_scroll_rxvt = xyes; then |
12615 | |
11630 | |
12616 | cat >>confdefs.h <<\_ACEOF |
11631 | cat >>confdefs.h <<\_ACEOF |
12617 | #define RXVT_SCROLLBAR 1 |
11632 | #define RXVT_SCROLLBAR 1 |
12618 | _ACEOF |
11633 | _ACEOF |
12619 | |
11634 | |
12620 | scrolltypes="rxvt" |
11635 | scrolltypes="$scrolltypes rxvt" |
12621 | fi |
11636 | fi |
12622 | if test x$support_scroll_next = xyes; then |
11637 | if test x$support_scroll_next = xyes; then |
12623 | |
11638 | |
12624 | cat >>confdefs.h <<\_ACEOF |
11639 | cat >>confdefs.h <<\_ACEOF |
12625 | #define NEXT_SCROLLBAR 1 |
11640 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
12632 | cat >>confdefs.h <<\_ACEOF |
11647 | cat >>confdefs.h <<\_ACEOF |
12633 | #define XTERM_SCROLLBAR 1 |
11648 | #define XTERM_SCROLLBAR 1 |
12634 | _ACEOF |
11649 | _ACEOF |
12635 | |
11650 | |
12636 | scrolltypes="$scrolltypes xterm" |
11651 | scrolltypes="$scrolltypes xterm" |
12637 | fi |
|
|
12638 | if test x$support_scroll_plain = xyes; then |
|
|
12639 | |
|
|
12640 | cat >>confdefs.h <<\_ACEOF |
|
|
12641 | #define PLAIN_SCROLLBAR 1 |
|
|
12642 | _ACEOF |
|
|
12643 | |
|
|
12644 | scrolltypes="$scrolltypes plain" |
|
|
12645 | fi |
11652 | fi |
12646 | if test x$support_pointer_blank = xyes; then |
11653 | if test x$support_pointer_blank = xyes; then |
12647 | |
11654 | |
12648 | cat >>confdefs.h <<\_ACEOF |
11655 | cat >>confdefs.h <<\_ACEOF |
12649 | #define POINTER_BLANK 1 |
11656 | #define POINTER_BLANK 1 |
… | |
… | |
12716 | |
11723 | |
12717 | IF_PERL=\# |
11724 | IF_PERL=\# |
12718 | if test x$support_perl = xyes; then |
11725 | if test x$support_perl = xyes; then |
12719 | # Extract the first word of "perl5", so it can be a program name with args. |
11726 | # Extract the first word of "perl5", so it can be a program name with args. |
12720 | set dummy perl5; ac_word=$2 |
11727 | set dummy perl5; ac_word=$2 |
12721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
12723 | if test "${ac_cv_path_PERL+set}" = set; then |
11730 | if test "${ac_cv_path_PERL+set}" = set; then |
12724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12725 | else |
11732 | else |
12726 | case $PERL in |
11733 | case $PERL in |
12727 | [\\/]* | ?:[\\/]*) |
11734 | [\\/]* | ?:[\\/]*) |
… | |
… | |
12732 | for as_dir in $PATH |
11739 | for as_dir in $PATH |
12733 | do |
11740 | do |
12734 | IFS=$as_save_IFS |
11741 | IFS=$as_save_IFS |
12735 | test -z "$as_dir" && as_dir=. |
11742 | test -z "$as_dir" && as_dir=. |
12736 | for ac_exec_ext in '' $ac_executable_extensions; do |
11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
12737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12738 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11745 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
12739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12740 | break 2 |
11747 | break 2 |
12741 | fi |
11748 | fi |
12742 | done |
11749 | done |
12743 | done |
11750 | done |
|
|
11751 | IFS=$as_save_IFS |
12744 | |
11752 | |
12745 | ;; |
11753 | ;; |
12746 | esac |
11754 | esac |
12747 | fi |
11755 | fi |
12748 | PERL=$ac_cv_path_PERL |
11756 | PERL=$ac_cv_path_PERL |
12749 | |
|
|
12750 | if test -n "$PERL"; then |
11757 | if test -n "$PERL"; then |
12751 | echo "$as_me:$LINENO: result: $PERL" >&5 |
11758 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
12752 | echo "${ECHO_T}$PERL" >&6 |
11759 | echo "${ECHO_T}$PERL" >&6; } |
12753 | else |
11760 | else |
12754 | echo "$as_me:$LINENO: result: no" >&5 |
11761 | { echo "$as_me:$LINENO: result: no" >&5 |
12755 | echo "${ECHO_T}no" >&6 |
11762 | echo "${ECHO_T}no" >&6; } |
12756 | fi |
11763 | fi |
|
|
11764 | |
12757 | |
11765 | |
12758 | # Extract the first word of "perl", so it can be a program name with args. |
11766 | # Extract the first word of "perl", so it can be a program name with args. |
12759 | set dummy perl; ac_word=$2 |
11767 | set dummy perl; ac_word=$2 |
12760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
12762 | if test "${ac_cv_path_PERL+set}" = set; then |
11770 | if test "${ac_cv_path_PERL+set}" = set; then |
12763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12764 | else |
11772 | else |
12765 | case $PERL in |
11773 | case $PERL in |
12766 | [\\/]* | ?:[\\/]*) |
11774 | [\\/]* | ?:[\\/]*) |
… | |
… | |
12771 | for as_dir in $PATH |
11779 | for as_dir in $PATH |
12772 | do |
11780 | do |
12773 | IFS=$as_save_IFS |
11781 | IFS=$as_save_IFS |
12774 | test -z "$as_dir" && as_dir=. |
11782 | test -z "$as_dir" && as_dir=. |
12775 | for ac_exec_ext in '' $ac_executable_extensions; do |
11783 | for ac_exec_ext in '' $ac_executable_extensions; do |
12776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12777 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11785 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
12778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12779 | break 2 |
11787 | break 2 |
12780 | fi |
11788 | fi |
12781 | done |
11789 | done |
12782 | done |
11790 | done |
|
|
11791 | IFS=$as_save_IFS |
12783 | |
11792 | |
12784 | ;; |
11793 | ;; |
12785 | esac |
11794 | esac |
12786 | fi |
11795 | fi |
12787 | PERL=$ac_cv_path_PERL |
11796 | PERL=$ac_cv_path_PERL |
12788 | |
|
|
12789 | if test -n "$PERL"; then |
11797 | if test -n "$PERL"; then |
12790 | echo "$as_me:$LINENO: result: $PERL" >&5 |
11798 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
12791 | echo "${ECHO_T}$PERL" >&6 |
11799 | echo "${ECHO_T}$PERL" >&6; } |
12792 | else |
11800 | else |
12793 | echo "$as_me:$LINENO: result: no" >&5 |
11801 | { echo "$as_me:$LINENO: result: no" >&5 |
12794 | echo "${ECHO_T}no" >&6 |
11802 | echo "${ECHO_T}no" >&6; } |
12795 | fi |
11803 | fi |
12796 | |
11804 | |
12797 | |
11805 | |
|
|
11806 | |
12798 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
11807 | { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
12799 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
11808 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } |
12800 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
11809 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
12801 | |
11810 | |
12802 | save_CXXFLAGS="$CXXFLAGS" |
11811 | save_CXXFLAGS="$CXXFLAGS" |
12803 | save_LIBS="$LIBS" |
11812 | save_LIBS="$LIBS" |
12804 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
11813 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
… | |
… | |
12823 | ; |
11832 | ; |
12824 | return 0; |
11833 | return 0; |
12825 | } |
11834 | } |
12826 | _ACEOF |
11835 | _ACEOF |
12827 | rm -f conftest.$ac_objext conftest$ac_exeext |
11836 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11837 | if { (ac_try="$ac_link" |
|
|
11838 | case "(($ac_try" in |
|
|
11839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11840 | *) ac_try_echo=$ac_try;; |
|
|
11841 | esac |
12828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12829 | (eval $ac_link) 2>conftest.er1 |
11843 | (eval "$ac_link") 2>conftest.er1 |
12830 | ac_status=$? |
11844 | ac_status=$? |
12831 | grep -v '^ *+' conftest.er1 >conftest.err |
11845 | grep -v '^ *+' conftest.er1 >conftest.err |
12832 | rm -f conftest.er1 |
11846 | rm -f conftest.er1 |
12833 | cat conftest.err >&5 |
11847 | cat conftest.err >&5 |
12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12835 | (exit $ac_status); } && |
11849 | (exit $ac_status); } && { |
12836 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11850 | test -z "$ac_cxx_werror_flag" || |
12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11851 | test ! -s conftest.err |
12838 | (eval $ac_try) 2>&5 |
11852 | } && test -s conftest$ac_exeext && |
12839 | ac_status=$? |
11853 | $as_test_x conftest$ac_exeext; then |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12841 | (exit $ac_status); }; } && |
|
|
12842 | { ac_try='test -s conftest$ac_exeext' |
|
|
12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12844 | (eval $ac_try) 2>&5 |
|
|
12845 | ac_status=$? |
|
|
12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12847 | (exit $ac_status); }; }; then |
|
|
12848 | rxvt_perl_link=yes |
11854 | rxvt_perl_link=yes |
12849 | else |
11855 | else |
12850 | echo "$as_me: failed program was:" >&5 |
11856 | echo "$as_me: failed program was:" >&5 |
12851 | sed 's/^/| /' conftest.$ac_ext >&5 |
11857 | sed 's/^/| /' conftest.$ac_ext >&5 |
12852 | |
11858 | |
12853 | rxvt_perl_link=no |
11859 | rxvt_perl_link=no |
12854 | fi |
11860 | fi |
12855 | rm -f conftest.err conftest.$ac_objext \ |
11861 | |
|
|
11862 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12856 | conftest$ac_exeext conftest.$ac_ext |
11863 | conftest$ac_exeext conftest.$ac_ext |
12857 | CXXFLAGS="$save_CXXFLAGS" |
11864 | CXXFLAGS="$save_CXXFLAGS" |
12858 | LIBS="$save_LIBS" |
11865 | LIBS="$save_LIBS" |
12859 | |
11866 | |
12860 | if test x$rxvt_perl_link = xyes; then |
11867 | if test x$rxvt_perl_link = xyes; then |
12861 | echo "$as_me:$LINENO: result: ok" >&5 |
11868 | { echo "$as_me:$LINENO: result: ok" >&5 |
12862 | echo "${ECHO_T}ok" >&6 |
11869 | echo "${ECHO_T}ok" >&6; } |
12863 | |
11870 | |
12864 | cat >>confdefs.h <<\_ACEOF |
11871 | cat >>confdefs.h <<\_ACEOF |
12865 | #define ENABLE_PERL 1 |
11872 | #define ENABLE_PERL 1 |
12866 | _ACEOF |
11873 | _ACEOF |
12867 | |
11874 | |
… | |
… | |
12869 | PERL_O=rxvtperl.o |
11876 | PERL_O=rxvtperl.o |
12870 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
11877 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
12871 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
11878 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
12872 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
11879 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
12873 | else |
11880 | else |
12874 | support_perl=no |
|
|
12875 | echo "$as_me:$LINENO: result: no, unable to link" >&5 |
11881 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
12876 | echo "${ECHO_T}no, unable to link" >&6 |
11882 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
11883 | { (exit 1); exit 1; }; } |
12877 | fi |
11884 | fi |
12878 | else |
11885 | else |
12879 | { { echo "$as_me:$LINENO: error: no working perl found" >&5 |
11886 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
12880 | echo "$as_me: error: no working perl found" >&2;} |
11887 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
12881 | { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } |
11888 | { (exit 1); exit 1; }; } |
12882 | support_perl=no |
|
|
12883 | fi |
11889 | fi |
12884 | fi |
11890 | fi |
12885 | |
11891 | |
12886 | |
11892 | |
12887 | |
11893 | |
12888 | |
11894 | |
12889 | |
11895 | |
12890 | |
11896 | |
12891 | |
11897 | |
12892 | if test x$support_perl = xyes; then |
|
|
12893 | support_frills=yes |
|
|
12894 | fi |
|
|
12895 | |
11898 | |
12896 | |
11899 | |
12897 | CFLAGS=${CFLAGS--O} |
|
|
12898 | LDFLAGS=${LDFLAGS--O} |
|
|
12899 | |
11900 | |
12900 | CPPFLAGS="$CPPFLAGS" |
|
|
12901 | |
11901 | |
12902 | |
11902 | |
12903 | |
11903 | |
12904 | |
11904 | |
12905 | |
|
|
12906 | |
|
|
12907 | |
|
|
12908 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
12909 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
12910 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
12911 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
12912 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
12913 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
12914 | fi |
|
|
12915 | |
11905 | |
12916 | |
11906 | |
12917 | |
11907 | |
12918 | |
11908 | |
12919 | |
11909 | |
12920 | test "$program_prefix" != NONE && |
11910 | test "$program_prefix" != NONE && |
12921 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
11911 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
12922 | # Use a double $ so make ignores it. |
11912 | # Use a double $ so make ignores it. |
12923 | test "$program_suffix" != NONE && |
11913 | test "$program_suffix" != NONE && |
12924 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
11914 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
12925 | # Double any \ or $. echo might interpret backslashes. |
11915 | # Double any \ or $. echo might interpret backslashes. |
12926 | # By default was `s,x,x', remove it if useless. |
11916 | # By default was `s,x,x', remove it if useless. |
12927 | cat <<\_ACEOF >conftest.sed |
11917 | cat <<\_ACEOF >conftest.sed |
12928 | s/[\\$]/&&/g;s/;s,x,x,$// |
11918 | s/[\\$]/&&/g;s/;s,x,x,$// |
12929 | _ACEOF |
11919 | _ACEOF |
12930 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11920 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
12931 | rm conftest.sed |
11921 | rm -f conftest.sed |
12932 | |
11922 | |
12933 | |
11923 | |
12934 | |
11924 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
12935 | |
|
|
12936 | |
|
|
12937 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12938 | include_stdint_h="#include <stdint.h>" |
|
|
12939 | else |
|
|
12940 | include_stdint_h="/* #include <stdint.h> */" |
|
|
12941 | fi |
|
|
12942 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12943 | include_stdarg_h="#include <cstdarg>" |
|
|
12944 | else |
|
|
12945 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
12946 | fi |
|
|
12947 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12948 | include_stdlib_h="#include <cstdlib>" |
|
|
12949 | else |
|
|
12950 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
12951 | fi |
|
|
12952 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12953 | include_unistd_h="#include <unistd.h>" |
|
|
12954 | else |
|
|
12955 | include_unistd_h="/* #include <unistd.h> */" |
|
|
12956 | fi |
|
|
12957 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12958 | include_string_h="#include <cstring>" |
|
|
12959 | else |
|
|
12960 | include_string_h="/* #include <cstring> */" |
|
|
12961 | fi |
|
|
12962 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12963 | include_fcntl_h="#include <fcntl.h>" |
|
|
12964 | else |
|
|
12965 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
12966 | fi |
|
|
12967 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12968 | include_util_h="#include <util.h>" |
|
|
12969 | else |
|
|
12970 | include_util_h="/* #include <util.h> */" |
|
|
12971 | fi |
|
|
12972 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12973 | include_assert_h="#include <assert.h>" |
|
|
12974 | else |
|
|
12975 | include_assert_h="/* #include <assert.h> */" |
|
|
12976 | fi |
|
|
12977 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12978 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
12979 | else |
|
|
12980 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
12981 | fi |
|
|
12982 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12983 | include_sys_select_h="#include <sys/select.h>" |
|
|
12984 | else |
|
|
12985 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
12986 | fi |
|
|
12987 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12988 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
12989 | else |
|
|
12990 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
12991 | fi |
|
|
12992 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12993 | include_sys_time_h="#include <sys/time.h>" |
|
|
12994 | else |
|
|
12995 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
12996 | fi |
|
|
12997 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
12998 | include_time_h="#include <time.h>" |
|
|
12999 | else |
|
|
13000 | include_time_h="/* #include <time.h> */" |
|
|
13001 | fi |
|
|
13002 | |
|
|
13003 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
|
|
13004 | |
11925 | |
13005 | cat >confcache <<\_ACEOF |
11926 | cat >confcache <<\_ACEOF |
13006 | # This file is a shell script that caches the results of configure |
11927 | # This file is a shell script that caches the results of configure |
13007 | # tests run on this system so they can be shared between configure |
11928 | # tests run on this system so they can be shared between configure |
13008 | # scripts and configure runs, see configure's option --config-cache. |
11929 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13018 | |
11939 | |
13019 | _ACEOF |
11940 | _ACEOF |
13020 | |
11941 | |
13021 | # The following way of writing the cache mishandles newlines in values, |
11942 | # The following way of writing the cache mishandles newlines in values, |
13022 | # but we know of no workaround that is simple, portable, and efficient. |
11943 | # but we know of no workaround that is simple, portable, and efficient. |
13023 | # So, don't put newlines in cache variables' values. |
11944 | # So, we kill variables containing newlines. |
13024 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11945 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13025 | # and sets the high bit in the cache file unless we assign to the vars. |
11946 | # and sets the high bit in the cache file unless we assign to the vars. |
13026 | { |
11947 | ( |
|
|
11948 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
|
11949 | eval ac_val=\$$ac_var |
|
|
11950 | case $ac_val in #( |
|
|
11951 | *${as_nl}*) |
|
|
11952 | case $ac_var in #( |
|
|
11953 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
|
11954 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
|
11955 | esac |
|
|
11956 | case $ac_var in #( |
|
|
11957 | _ | IFS | as_nl) ;; #( |
|
|
11958 | *) $as_unset $ac_var ;; |
|
|
11959 | esac ;; |
|
|
11960 | esac |
|
|
11961 | done |
|
|
11962 | |
13027 | (set) 2>&1 | |
11963 | (set) 2>&1 | |
13028 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
11964 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13029 | *ac_space=\ *) |
11965 | *${as_nl}ac_space=\ *) |
13030 | # `set' does not quote correctly, so add quotes (double-quote |
11966 | # `set' does not quote correctly, so add quotes (double-quote |
13031 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
11967 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
13032 | sed -n \ |
11968 | sed -n \ |
13033 | "s/'/'\\\\''/g; |
11969 | "s/'/'\\\\''/g; |
13034 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
11970 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13035 | ;; |
11971 | ;; #( |
13036 | *) |
11972 | *) |
13037 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
11973 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
13038 | sed -n \ |
11974 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13039 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
|
13040 | ;; |
11975 | ;; |
13041 | esac; |
11976 | esac | |
13042 | } | |
11977 | sort |
|
|
11978 | ) | |
13043 | sed ' |
11979 | sed ' |
|
|
11980 | /^ac_cv_env_/b end |
13044 | t clear |
11981 | t clear |
13045 | : clear |
11982 | :clear |
13046 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11983 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13047 | t end |
11984 | t end |
13048 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11985 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13049 | : end' >>confcache |
11986 | :end' >>confcache |
13050 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
11987 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13051 | if test -w $cache_file; then |
11988 | if test -w "$cache_file"; then |
13052 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
11989 | test "x$cache_file" != "x/dev/null" && |
|
|
11990 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
|
|
11991 | echo "$as_me: updating cache $cache_file" >&6;} |
13053 | cat confcache >$cache_file |
11992 | cat confcache >$cache_file |
13054 | else |
11993 | else |
|
|
11994 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
13055 | echo "not updating unwritable cache $cache_file" |
11995 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13056 | fi |
11996 | fi |
13057 | fi |
11997 | fi |
13058 | rm -f confcache |
11998 | rm -f confcache |
13059 | |
11999 | |
13060 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12000 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13061 | # Let make expand exec_prefix. |
12001 | # Let make expand exec_prefix. |
13062 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
12002 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
13063 | |
|
|
13064 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
|
13065 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
|
13066 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
13067 | # (actually we leave an empty line to preserve line numbers). |
|
|
13068 | if test "x$srcdir" = x.; then |
|
|
13069 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
|
13070 | s/:*\$(srcdir):*/:/; |
|
|
13071 | s/:*\${srcdir}:*/:/; |
|
|
13072 | s/:*@srcdir@:*/:/; |
|
|
13073 | s/^\([^=]*=[ ]*\):*/\1/; |
|
|
13074 | s/:*$//; |
|
|
13075 | s/^[^=]*=[ ]*$//; |
|
|
13076 | }' |
|
|
13077 | fi |
|
|
13078 | |
12003 | |
13079 | DEFS=-DHAVE_CONFIG_H |
12004 | DEFS=-DHAVE_CONFIG_H |
13080 | |
12005 | |
13081 | ac_libobjs= |
12006 | ac_libobjs= |
13082 | ac_ltlibobjs= |
12007 | ac_ltlibobjs= |
13083 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12008 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13084 | # 1. Remove the extension, and $U if already installed. |
12009 | # 1. Remove the extension, and $U if already installed. |
13085 | ac_i=`echo "$ac_i" | |
|
|
13086 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
12010 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13087 | # 2. Add them. |
12011 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
|
|
12012 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
|
12013 | # will be set to the directory where LIBOBJS objects are built. |
13088 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
12014 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13089 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
12015 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
13090 | done |
12016 | done |
13091 | LIBOBJS=$ac_libobjs |
12017 | LIBOBJS=$ac_libobjs |
13092 | |
12018 | |
13093 | LTLIBOBJS=$ac_ltlibobjs |
12019 | LTLIBOBJS=$ac_ltlibobjs |
13094 | |
12020 | |
… | |
… | |
13115 | cat >>$CONFIG_STATUS <<\_ACEOF |
12041 | cat >>$CONFIG_STATUS <<\_ACEOF |
13116 | ## --------------------- ## |
12042 | ## --------------------- ## |
13117 | ## M4sh Initialization. ## |
12043 | ## M4sh Initialization. ## |
13118 | ## --------------------- ## |
12044 | ## --------------------- ## |
13119 | |
12045 | |
13120 | # Be Bourne compatible |
12046 | # Be more Bourne compatible |
|
|
12047 | DUALCASE=1; export DUALCASE # for MKS sh |
13121 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12048 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
13122 | emulate sh |
12049 | emulate sh |
13123 | NULLCMD=: |
12050 | NULLCMD=: |
13124 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
12051 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
13125 | # is contrary to our usage. Disable this feature. |
12052 | # is contrary to our usage. Disable this feature. |
13126 | alias -g '${1+"$@"}'='"$@"' |
12053 | alias -g '${1+"$@"}'='"$@"' |
13127 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
12054 | setopt NO_GLOB_SUBST |
13128 | set -o posix |
|
|
13129 | fi |
|
|
13130 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
13131 | |
|
|
13132 | # Support unset when possible. |
|
|
13133 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
13134 | as_unset=unset |
|
|
13135 | else |
|
|
13136 | as_unset=false |
|
|
13137 | fi |
|
|
13138 | |
|
|
13139 | |
|
|
13140 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
13141 | $as_unset ENV MAIL MAILPATH |
|
|
13142 | PS1='$ ' |
|
|
13143 | PS2='> ' |
|
|
13144 | PS4='+ ' |
|
|
13145 | |
|
|
13146 | # NLS nuisances. |
|
|
13147 | for as_var in \ |
|
|
13148 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
13149 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
13150 | LC_TELEPHONE LC_TIME |
|
|
13151 | do |
|
|
13152 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
13153 | eval $as_var=C; export $as_var |
|
|
13154 | else |
12055 | else |
13155 | $as_unset $as_var |
12056 | case `(set -o) 2>/dev/null` in |
13156 | fi |
12057 | *posix*) set -o posix ;; |
13157 | done |
12058 | esac |
13158 | |
12059 | |
13159 | # Required to use basename. |
|
|
13160 | if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
13161 | as_expr=expr |
|
|
13162 | else |
|
|
13163 | as_expr=false |
|
|
13164 | fi |
12060 | fi |
13165 | |
12061 | |
13166 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
|
13167 | as_basename=basename |
|
|
13168 | else |
|
|
13169 | as_basename=false |
|
|
13170 | fi |
|
|
13171 | |
12062 | |
13172 | |
12063 | |
13173 | # Name of the executable. |
|
|
13174 | as_me=`$as_basename "$0" || |
|
|
13175 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
13176 | X"$0" : 'X\(//\)$' \| \ |
|
|
13177 | X"$0" : 'X\(/\)$' \| \ |
|
|
13178 | . : '\(.\)' 2>/dev/null || |
|
|
13179 | echo X/"$0" | |
|
|
13180 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
13181 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
13182 | /^X\/\(\/\).*/{ s//\1/; q; } |
|
|
13183 | s/.*/./; q'` |
|
|
13184 | |
12064 | |
13185 | |
12065 | # PATH needs CR |
13186 | # PATH needs CR, and LINENO needs CR and PATH. |
|
|
13187 | # Avoid depending upon Character Ranges. |
12066 | # Avoid depending upon Character Ranges. |
13188 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
12067 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13189 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
12068 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13190 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
12069 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13191 | as_cr_digits='0123456789' |
12070 | as_cr_digits='0123456789' |
… | |
… | |
13202 | PATH_SEPARATOR=: |
12081 | PATH_SEPARATOR=: |
13203 | fi |
12082 | fi |
13204 | rm -f conf$$.sh |
12083 | rm -f conf$$.sh |
13205 | fi |
12084 | fi |
13206 | |
12085 | |
|
|
12086 | # Support unset when possible. |
|
|
12087 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
12088 | as_unset=unset |
|
|
12089 | else |
|
|
12090 | as_unset=false |
|
|
12091 | fi |
13207 | |
12092 | |
13208 | as_lineno_1=$LINENO |
12093 | |
13209 | as_lineno_2=$LINENO |
12094 | # IFS |
13210 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
12095 | # We need space, tab and new line, in precisely that order. Quoting is |
13211 | test "x$as_lineno_1" != "x$as_lineno_2" && |
12096 | # there to prevent editors from complaining about space-tab. |
13212 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
12097 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
12098 | # splitting by setting IFS to empty value.) |
|
|
12099 | as_nl=' |
|
|
12100 | ' |
|
|
12101 | IFS=" "" $as_nl" |
|
|
12102 | |
13213 | # Find who we are. Look in the path if we contain no path at all |
12103 | # Find who we are. Look in the path if we contain no directory separator. |
13214 | # relative or not. |
|
|
13215 | case $0 in |
12104 | case $0 in |
13216 | *[\\/]* ) as_myself=$0 ;; |
12105 | *[\\/]* ) as_myself=$0 ;; |
13217 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13218 | for as_dir in $PATH |
12107 | for as_dir in $PATH |
13219 | do |
12108 | do |
13220 | IFS=$as_save_IFS |
12109 | IFS=$as_save_IFS |
13221 | test -z "$as_dir" && as_dir=. |
12110 | test -z "$as_dir" && as_dir=. |
13222 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13223 | done |
12112 | done |
|
|
12113 | IFS=$as_save_IFS |
13224 | |
12114 | |
13225 | ;; |
12115 | ;; |
13226 | esac |
12116 | esac |
13227 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
12117 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
13228 | # in which case we are not to be found in the path. |
12118 | # in which case we are not to be found in the path. |
13229 | if test "x$as_myself" = x; then |
12119 | if test "x$as_myself" = x; then |
13230 | as_myself=$0 |
12120 | as_myself=$0 |
|
|
12121 | fi |
|
|
12122 | if test ! -f "$as_myself"; then |
|
|
12123 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
|
12124 | { (exit 1); exit 1; } |
|
|
12125 | fi |
|
|
12126 | |
|
|
12127 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
12128 | for as_var in ENV MAIL MAILPATH |
|
|
12129 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
12130 | done |
|
|
12131 | PS1='$ ' |
|
|
12132 | PS2='> ' |
|
|
12133 | PS4='+ ' |
|
|
12134 | |
|
|
12135 | # NLS nuisances. |
|
|
12136 | for as_var in \ |
|
|
12137 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
12138 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
12139 | LC_TELEPHONE LC_TIME |
|
|
12140 | do |
|
|
12141 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
12142 | eval $as_var=C; export $as_var |
|
|
12143 | else |
|
|
12144 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
13231 | fi |
12145 | fi |
13232 | if test ! -f "$as_myself"; then |
12146 | done |
13233 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
12147 | |
13234 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
12148 | # Required to use basename. |
13235 | { (exit 1); exit 1; }; } |
12149 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13236 | fi |
12150 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13237 | case $CONFIG_SHELL in |
12151 | as_expr=expr |
13238 | '') |
12152 | else |
13239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12153 | as_expr=false |
13240 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
12154 | fi |
13241 | do |
12155 | |
13242 | IFS=$as_save_IFS |
12156 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13243 | test -z "$as_dir" && as_dir=. |
12157 | as_basename=basename |
13244 | for as_base in sh bash ksh sh5; do |
12158 | else |
13245 | case $as_dir in |
12159 | as_basename=false |
13246 | /*) |
12160 | fi |
13247 | if ("$as_dir/$as_base" -c ' |
12161 | |
|
|
12162 | |
|
|
12163 | # Name of the executable. |
|
|
12164 | as_me=`$as_basename -- "$0" || |
|
|
12165 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
12166 | X"$0" : 'X\(//\)$' \| \ |
|
|
12167 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
|
12168 | echo X/"$0" | |
|
|
12169 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
|
12170 | s//\1/ |
|
|
12171 | q |
|
|
12172 | } |
|
|
12173 | /^X\/\(\/\/\)$/{ |
|
|
12174 | s//\1/ |
|
|
12175 | q |
|
|
12176 | } |
|
|
12177 | /^X\/\(\/\).*/{ |
|
|
12178 | s//\1/ |
|
|
12179 | q |
|
|
12180 | } |
|
|
12181 | s/.*/./; q'` |
|
|
12182 | |
|
|
12183 | # CDPATH. |
|
|
12184 | $as_unset CDPATH |
|
|
12185 | |
|
|
12186 | |
|
|
12187 | |
13248 | as_lineno_1=$LINENO |
12188 | as_lineno_1=$LINENO |
13249 | as_lineno_2=$LINENO |
12189 | as_lineno_2=$LINENO |
13250 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
13251 | test "x$as_lineno_1" != "x$as_lineno_2" && |
12190 | test "x$as_lineno_1" != "x$as_lineno_2" && |
13252 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
12191 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
13253 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
|
13254 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
|
13255 | CONFIG_SHELL=$as_dir/$as_base |
|
|
13256 | export CONFIG_SHELL |
|
|
13257 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
|
13258 | fi;; |
|
|
13259 | esac |
|
|
13260 | done |
|
|
13261 | done |
|
|
13262 | ;; |
|
|
13263 | esac |
|
|
13264 | |
12192 | |
13265 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12193 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13266 | # uniformly replaced by the line number. The first 'sed' inserts a |
12194 | # uniformly replaced by the line number. The first 'sed' inserts a |
13267 | # line-number line before each line; the second 'sed' does the real |
12195 | # line-number line after each line using $LINENO; the second 'sed' |
13268 | # work. The second script uses 'N' to pair each line-number line |
12196 | # does the real work. The second script uses 'N' to pair each |
13269 | # with the numbered line, and appends trailing '-' during |
12197 | # line-number line with the line containing $LINENO, and appends |
13270 | # substitution so that $LINENO is not a special case at line end. |
12198 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
12199 | # case at line end. |
13271 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
12200 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
13272 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
12201 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
12202 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
12203 | sed -n ' |
|
|
12204 | p |
|
|
12205 | /[$]LINENO/= |
13273 | sed '=' <$as_myself | |
12206 | ' <$as_myself | |
13274 | sed ' |
12207 | sed ' |
|
|
12208 | s/[$]LINENO.*/&-/ |
|
|
12209 | t lineno |
|
|
12210 | b |
|
|
12211 | :lineno |
13275 | N |
12212 | N |
13276 | s,$,-, |
|
|
13277 | : loop |
12213 | :loop |
13278 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
12214 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
13279 | t loop |
12215 | t loop |
13280 | s,-$,, |
12216 | s/-\n.*// |
13281 | s,^['$as_cr_digits']*\n,, |
|
|
13282 | ' >$as_me.lineno && |
12217 | ' >$as_me.lineno && |
13283 | chmod +x $as_me.lineno || |
12218 | chmod +x "$as_me.lineno" || |
13284 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|
|
13285 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
12219 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
13286 | { (exit 1); exit 1; }; } |
12220 | { (exit 1); exit 1; }; } |
13287 | |
12221 | |
13288 | # Don't try to exec as it changes $[0], causing all sort of problems |
12222 | # Don't try to exec as it changes $[0], causing all sort of problems |
13289 | # (the dirname of $[0] is not the place where we might find the |
12223 | # (the dirname of $[0] is not the place where we might find the |
13290 | # original and so on. Autoconf is especially sensible to this). |
12224 | # original and so on. Autoconf is especially sensitive to this). |
13291 | . ./$as_me.lineno |
12225 | . "./$as_me.lineno" |
13292 | # Exit status is that of the last command. |
12226 | # Exit status is that of the last command. |
13293 | exit |
12227 | exit |
13294 | } |
12228 | } |
13295 | |
12229 | |
13296 | |
12230 | |
13297 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
12231 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13298 | *c*,-n*) ECHO_N= ECHO_C=' |
12232 | as_dirname=dirname |
13299 | ' ECHO_T=' ' ;; |
12233 | else |
13300 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
12234 | as_dirname=false |
13301 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
12235 | fi |
13302 | esac |
|
|
13303 | |
12236 | |
|
|
12237 | ECHO_C= ECHO_N= ECHO_T= |
|
|
12238 | case `echo -n x` in |
|
|
12239 | -n*) |
|
|
12240 | case `echo 'x\c'` in |
|
|
12241 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
|
12242 | *) ECHO_C='\c';; |
|
|
12243 | esac;; |
|
|
12244 | *) |
|
|
12245 | ECHO_N='-n';; |
|
|
12246 | esac |
|
|
12247 | |
13304 | if expr a : '\(a\)' >/dev/null 2>&1; then |
12248 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|
|
12249 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13305 | as_expr=expr |
12250 | as_expr=expr |
13306 | else |
12251 | else |
13307 | as_expr=false |
12252 | as_expr=false |
13308 | fi |
12253 | fi |
13309 | |
12254 | |
13310 | rm -f conf$$ conf$$.exe conf$$.file |
12255 | rm -f conf$$ conf$$.exe conf$$.file |
|
|
12256 | if test -d conf$$.dir; then |
|
|
12257 | rm -f conf$$.dir/conf$$.file |
|
|
12258 | else |
|
|
12259 | rm -f conf$$.dir |
|
|
12260 | mkdir conf$$.dir |
|
|
12261 | fi |
13311 | echo >conf$$.file |
12262 | echo >conf$$.file |
13312 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
12263 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
13313 | # We could just check for DJGPP; but this test a) works b) is more generic |
12264 | as_ln_s='ln -s' |
13314 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
12265 | # ... but there are two gotchas: |
13315 | if test -f conf$$.exe; then |
12266 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13316 | # Don't use ln at all; we don't have any links |
12267 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
|
12268 | # In both cases, we have to default to `cp -p'. |
|
|
12269 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13317 | as_ln_s='cp -p' |
12270 | as_ln_s='cp -p' |
13318 | else |
|
|
13319 | as_ln_s='ln -s' |
|
|
13320 | fi |
|
|
13321 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12271 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13322 | as_ln_s=ln |
12272 | as_ln_s=ln |
13323 | else |
12273 | else |
13324 | as_ln_s='cp -p' |
12274 | as_ln_s='cp -p' |
13325 | fi |
12275 | fi |
13326 | rm -f conf$$ conf$$.exe conf$$.file |
12276 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
|
12277 | rmdir conf$$.dir 2>/dev/null |
13327 | |
12278 | |
13328 | if mkdir -p . 2>/dev/null; then |
12279 | if mkdir -p . 2>/dev/null; then |
13329 | as_mkdir_p=: |
12280 | as_mkdir_p=: |
13330 | else |
12281 | else |
13331 | test -d ./-p && rmdir ./-p |
12282 | test -d ./-p && rmdir ./-p |
13332 | as_mkdir_p=false |
12283 | as_mkdir_p=false |
13333 | fi |
12284 | fi |
13334 | |
12285 | |
|
|
12286 | if test -x / >/dev/null 2>&1; then |
|
|
12287 | as_test_x='test -x' |
|
|
12288 | else |
|
|
12289 | if ls -dL / >/dev/null 2>&1; then |
|
|
12290 | as_ls_L_option=L |
|
|
12291 | else |
|
|
12292 | as_ls_L_option= |
|
|
12293 | fi |
|
|
12294 | as_test_x=' |
|
|
12295 | eval sh -c '\'' |
|
|
12296 | if test -d "$1"; then |
|
|
12297 | test -d "$1/."; |
|
|
12298 | else |
|
|
12299 | case $1 in |
|
|
12300 | -*)set "./$1";; |
|
|
12301 | esac; |
|
|
12302 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
12303 | ???[sx]*):;;*)false;;esac;fi |
|
|
12304 | '\'' sh |
|
|
12305 | ' |
|
|
12306 | fi |
13335 | as_executable_p="test -f" |
12307 | as_executable_p=$as_test_x |
13336 | |
12308 | |
13337 | # Sed expression to map a string onto a valid CPP name. |
12309 | # Sed expression to map a string onto a valid CPP name. |
13338 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
12310 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13339 | |
12311 | |
13340 | # Sed expression to map a string onto a valid variable name. |
12312 | # Sed expression to map a string onto a valid variable name. |
13341 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
12313 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13342 | |
12314 | |
13343 | |
12315 | |
13344 | # IFS |
|
|
13345 | # We need space, tab and new line, in precisely that order. |
|
|
13346 | as_nl=' |
|
|
13347 | ' |
|
|
13348 | IFS=" $as_nl" |
|
|
13349 | |
|
|
13350 | # CDPATH. |
|
|
13351 | $as_unset CDPATH |
|
|
13352 | |
|
|
13353 | exec 6>&1 |
12316 | exec 6>&1 |
13354 | |
12317 | |
13355 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
12318 | # Save the log message, to keep $[0] and so on meaningful, and to |
13356 | # report actual input values of CONFIG_FILES etc. instead of their |
12319 | # report actual input values of CONFIG_FILES etc. instead of their |
13357 | # values after options handling. Logging --version etc. is OK. |
12320 | # values after options handling. |
13358 | exec 5>>config.log |
12321 | ac_log=" |
13359 | { |
|
|
13360 | echo |
|
|
13361 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
13362 | ## Running $as_me. ## |
|
|
13363 | _ASBOX |
|
|
13364 | } >&5 |
|
|
13365 | cat >&5 <<_CSEOF |
|
|
13366 | |
|
|
13367 | This file was extended by $as_me, which was |
12322 | This file was extended by $as_me, which was |
13368 | generated by GNU Autoconf 2.59. Invocation command line was |
12323 | generated by GNU Autoconf 2.61. Invocation command line was |
13369 | |
12324 | |
13370 | CONFIG_FILES = $CONFIG_FILES |
12325 | CONFIG_FILES = $CONFIG_FILES |
13371 | CONFIG_HEADERS = $CONFIG_HEADERS |
12326 | CONFIG_HEADERS = $CONFIG_HEADERS |
13372 | CONFIG_LINKS = $CONFIG_LINKS |
12327 | CONFIG_LINKS = $CONFIG_LINKS |
13373 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
12328 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
13374 | $ $0 $@ |
12329 | $ $0 $@ |
13375 | |
12330 | |
13376 | _CSEOF |
|
|
13377 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
12331 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13378 | echo >&5 |
12332 | " |
13379 | _ACEOF |
|
|
13380 | |
12333 | |
|
|
12334 | _ACEOF |
|
|
12335 | |
|
|
12336 | cat >>$CONFIG_STATUS <<_ACEOF |
13381 | # Files that config.status was made for. |
12337 | # Files that config.status was made for. |
13382 | if test -n "$ac_config_files"; then |
12338 | config_files="$ac_config_files" |
13383 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
12339 | config_headers="$ac_config_headers" |
13384 | fi |
|
|
13385 | |
12340 | |
13386 | if test -n "$ac_config_headers"; then |
12341 | _ACEOF |
13387 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
|
13388 | fi |
|
|
13389 | |
|
|
13390 | if test -n "$ac_config_links"; then |
|
|
13391 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
|
13392 | fi |
|
|
13393 | |
|
|
13394 | if test -n "$ac_config_commands"; then |
|
|
13395 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|
|
13396 | fi |
|
|
13397 | |
12342 | |
13398 | cat >>$CONFIG_STATUS <<\_ACEOF |
12343 | cat >>$CONFIG_STATUS <<\_ACEOF |
13399 | |
|
|
13400 | ac_cs_usage="\ |
12344 | ac_cs_usage="\ |
13401 | \`$as_me' instantiates files from templates according to the |
12345 | \`$as_me' instantiates files from templates according to the |
13402 | current configuration. |
12346 | current configuration. |
13403 | |
12347 | |
13404 | Usage: $0 [OPTIONS] [FILE]... |
12348 | Usage: $0 [OPTIONS] [FILE]... |
13405 | |
12349 | |
13406 | -h, --help print this help, then exit |
12350 | -h, --help print this help, then exit |
13407 | -V, --version print version number, then exit |
12351 | -V, --version print version number and configuration settings, then exit |
13408 | -q, --quiet do not print progress messages |
12352 | -q, --quiet do not print progress messages |
13409 | -d, --debug don't remove temporary files |
12353 | -d, --debug don't remove temporary files |
13410 | --recheck update $as_me by reconfiguring in the same conditions |
12354 | --recheck update $as_me by reconfiguring in the same conditions |
13411 | --file=FILE[:TEMPLATE] |
12355 | --file=FILE[:TEMPLATE] |
13412 | instantiate the configuration file FILE |
12356 | instantiate the configuration file FILE |
… | |
… | |
13418 | |
12362 | |
13419 | Configuration headers: |
12363 | Configuration headers: |
13420 | $config_headers |
12364 | $config_headers |
13421 | |
12365 | |
13422 | Report bugs to <bug-autoconf@gnu.org>." |
12366 | Report bugs to <bug-autoconf@gnu.org>." |
13423 | _ACEOF |
|
|
13424 | |
12367 | |
|
|
12368 | _ACEOF |
13425 | cat >>$CONFIG_STATUS <<_ACEOF |
12369 | cat >>$CONFIG_STATUS <<_ACEOF |
13426 | ac_cs_version="\\ |
12370 | ac_cs_version="\\ |
13427 | config.status |
12371 | config.status |
13428 | configured by $0, generated by GNU Autoconf 2.59, |
12372 | configured by $0, generated by GNU Autoconf 2.61, |
13429 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
12373 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
13430 | |
12374 | |
13431 | Copyright (C) 2003 Free Software Foundation, Inc. |
12375 | Copyright (C) 2006 Free Software Foundation, Inc. |
13432 | This config.status script is free software; the Free Software Foundation |
12376 | This config.status script is free software; the Free Software Foundation |
13433 | gives unlimited permission to copy, distribute and modify it." |
12377 | gives unlimited permission to copy, distribute and modify it." |
|
|
12378 | |
|
|
12379 | ac_pwd='$ac_pwd' |
13434 | srcdir=$srcdir |
12380 | srcdir='$srcdir' |
13435 | INSTALL="$INSTALL" |
12381 | INSTALL='$INSTALL' |
13436 | _ACEOF |
12382 | _ACEOF |
13437 | |
12383 | |
13438 | cat >>$CONFIG_STATUS <<\_ACEOF |
12384 | cat >>$CONFIG_STATUS <<\_ACEOF |
13439 | # If no file are specified by the user, then we need to provide default |
12385 | # If no file are specified by the user, then we need to provide default |
13440 | # value. By we need to know if files were specified by the user. |
12386 | # value. By we need to know if files were specified by the user. |
13441 | ac_need_defaults=: |
12387 | ac_need_defaults=: |
13442 | while test $# != 0 |
12388 | while test $# != 0 |
13443 | do |
12389 | do |
13444 | case $1 in |
12390 | case $1 in |
13445 | --*=*) |
12391 | --*=*) |
13446 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
12392 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13447 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
12393 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
13448 | ac_shift=: |
12394 | ac_shift=: |
13449 | ;; |
12395 | ;; |
13450 | -*) |
12396 | *) |
13451 | ac_option=$1 |
12397 | ac_option=$1 |
13452 | ac_optarg=$2 |
12398 | ac_optarg=$2 |
13453 | ac_shift=shift |
12399 | ac_shift=shift |
13454 | ;; |
12400 | ;; |
13455 | *) # This is not an option, so the user has probably given explicit |
|
|
13456 | # arguments. |
|
|
13457 | ac_option=$1 |
|
|
13458 | ac_need_defaults=false;; |
|
|
13459 | esac |
12401 | esac |
13460 | |
12402 | |
13461 | case $ac_option in |
12403 | case $ac_option in |
13462 | # Handling of the options. |
12404 | # Handling of the options. |
13463 | _ACEOF |
|
|
13464 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13465 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12405 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13466 | ac_cs_recheck=: ;; |
12406 | ac_cs_recheck=: ;; |
13467 | --version | --vers* | -V ) |
12407 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13468 | echo "$ac_cs_version"; exit 0 ;; |
12408 | echo "$ac_cs_version"; exit ;; |
13469 | --he | --h) |
12409 | --debug | --debu | --deb | --de | --d | -d ) |
13470 | # Conflict between --help and --header |
|
|
13471 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
|
|
13472 | Try \`$0 --help' for more information." >&5 |
|
|
13473 | echo "$as_me: error: ambiguous option: $1 |
|
|
13474 | Try \`$0 --help' for more information." >&2;} |
|
|
13475 | { (exit 1); exit 1; }; };; |
|
|
13476 | --help | --hel | -h ) |
|
|
13477 | echo "$ac_cs_usage"; exit 0 ;; |
|
|
13478 | --debug | --d* | -d ) |
|
|
13479 | debug=: ;; |
12410 | debug=: ;; |
13480 | --file | --fil | --fi | --f ) |
12411 | --file | --fil | --fi | --f ) |
13481 | $ac_shift |
12412 | $ac_shift |
13482 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
12413 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
13483 | ac_need_defaults=false;; |
12414 | ac_need_defaults=false;; |
13484 | --header | --heade | --head | --hea ) |
12415 | --header | --heade | --head | --hea ) |
13485 | $ac_shift |
12416 | $ac_shift |
13486 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
12417 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
13487 | ac_need_defaults=false;; |
12418 | ac_need_defaults=false;; |
|
|
12419 | --he | --h) |
|
|
12420 | # Conflict between --help and --header |
|
|
12421 | { echo "$as_me: error: ambiguous option: $1 |
|
|
12422 | Try \`$0 --help' for more information." >&2 |
|
|
12423 | { (exit 1); exit 1; }; };; |
|
|
12424 | --help | --hel | -h ) |
|
|
12425 | echo "$ac_cs_usage"; exit ;; |
13488 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12426 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13489 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
12427 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
13490 | ac_cs_silent=: ;; |
12428 | ac_cs_silent=: ;; |
13491 | |
12429 | |
13492 | # This is an error. |
12430 | # This is an error. |
13493 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
|
|
13494 | Try \`$0 --help' for more information." >&5 |
|
|
13495 | echo "$as_me: error: unrecognized option: $1 |
12431 | -*) { echo "$as_me: error: unrecognized option: $1 |
13496 | Try \`$0 --help' for more information." >&2;} |
12432 | Try \`$0 --help' for more information." >&2 |
13497 | { (exit 1); exit 1; }; } ;; |
12433 | { (exit 1); exit 1; }; } ;; |
13498 | |
12434 | |
13499 | *) ac_config_targets="$ac_config_targets $1" ;; |
12435 | *) ac_config_targets="$ac_config_targets $1" |
|
|
12436 | ac_need_defaults=false ;; |
13500 | |
12437 | |
13501 | esac |
12438 | esac |
13502 | shift |
12439 | shift |
13503 | done |
12440 | done |
13504 | |
12441 | |
… | |
… | |
13510 | fi |
12447 | fi |
13511 | |
12448 | |
13512 | _ACEOF |
12449 | _ACEOF |
13513 | cat >>$CONFIG_STATUS <<_ACEOF |
12450 | cat >>$CONFIG_STATUS <<_ACEOF |
13514 | if \$ac_cs_recheck; then |
12451 | if \$ac_cs_recheck; then |
13515 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12452 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
12453 | CONFIG_SHELL=$SHELL |
|
|
12454 | export CONFIG_SHELL |
13516 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12455 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13517 | fi |
12456 | fi |
13518 | |
12457 | |
13519 | _ACEOF |
12458 | _ACEOF |
13520 | |
|
|
13521 | |
|
|
13522 | |
|
|
13523 | |
|
|
13524 | |
|
|
13525 | cat >>$CONFIG_STATUS <<\_ACEOF |
12459 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
12460 | exec 5>>config.log |
|
|
12461 | { |
|
|
12462 | echo |
|
|
12463 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
12464 | ## Running $as_me. ## |
|
|
12465 | _ASBOX |
|
|
12466 | echo "$ac_log" |
|
|
12467 | } >&5 |
|
|
12468 | |
|
|
12469 | _ACEOF |
|
|
12470 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
12471 | _ACEOF |
|
|
12472 | |
|
|
12473 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
12474 | |
|
|
12475 | # Handling of arguments. |
13526 | for ac_config_target in $ac_config_targets |
12476 | for ac_config_target in $ac_config_targets |
13527 | do |
12477 | do |
13528 | case "$ac_config_target" in |
12478 | case $ac_config_target in |
13529 | # Handling of arguments. |
|
|
13530 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
13531 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
13532 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
13533 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13534 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12479 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
|
|
12480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
12481 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
12482 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
12483 | |
13535 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13536 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13537 | { (exit 1); exit 1; }; };; |
12486 | { (exit 1); exit 1; }; };; |
13538 | esac |
12487 | esac |
13539 | done |
12488 | done |
|
|
12489 | |
13540 | |
12490 | |
13541 | # If the user did not use the arguments to specify the items to instantiate, |
12491 | # If the user did not use the arguments to specify the items to instantiate, |
13542 | # then the envvar interface is used. Set only those that are not. |
12492 | # then the envvar interface is used. Set only those that are not. |
13543 | # We use the long form for the default assignment because of an extremely |
12493 | # We use the long form for the default assignment because of an extremely |
13544 | # bizarre bug on SunOS 4.1.3. |
12494 | # bizarre bug on SunOS 4.1.3. |
… | |
… | |
13546 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
12496 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13547 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
12497 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
13548 | fi |
12498 | fi |
13549 | |
12499 | |
13550 | # Have a temporary directory for convenience. Make it in the build tree |
12500 | # Have a temporary directory for convenience. Make it in the build tree |
13551 | # simply because there is no reason to put it here, and in addition, |
12501 | # simply because there is no reason against having it here, and in addition, |
13552 | # creating and moving files from /tmp can sometimes cause problems. |
12502 | # creating and moving files from /tmp can sometimes cause problems. |
13553 | # Create a temporary directory, and hook for its removal unless debugging. |
12503 | # Hook for its removal unless debugging. |
|
|
12504 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
12505 | # after its creation but before its name has been assigned to `$tmp'. |
13554 | $debug || |
12506 | $debug || |
13555 | { |
12507 | { |
13556 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
12508 | tmp= |
|
|
12509 | trap 'exit_status=$? |
|
|
12510 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
|
12511 | ' 0 |
13557 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12512 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13558 | } |
12513 | } |
13559 | |
|
|
13560 | # Create a (secure) tmp directory for tmp files. |
12514 | # Create a (secure) tmp directory for tmp files. |
13561 | |
12515 | |
13562 | { |
12516 | { |
13563 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
12517 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13564 | test -n "$tmp" && test -d "$tmp" |
12518 | test -n "$tmp" && test -d "$tmp" |
13565 | } || |
12519 | } || |
13566 | { |
12520 | { |
13567 | tmp=./confstat$$-$RANDOM |
12521 | tmp=./conf$$-$RANDOM |
13568 | (umask 077 && mkdir $tmp) |
12522 | (umask 077 && mkdir "$tmp") |
13569 | } || |
12523 | } || |
13570 | { |
12524 | { |
13571 | echo "$me: cannot create a temporary directory in ." >&2 |
12525 | echo "$me: cannot create a temporary directory in ." >&2 |
13572 | { (exit 1); exit 1; } |
12526 | { (exit 1); exit 1; } |
13573 | } |
12527 | } |
13574 | |
12528 | |
13575 | _ACEOF |
|
|
13576 | |
|
|
13577 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13578 | |
|
|
13579 | # |
12529 | # |
13580 | # CONFIG_FILES section. |
12530 | # Set up the sed scripts for CONFIG_FILES section. |
13581 | # |
12531 | # |
13582 | |
12532 | |
13583 | # No need to generate the scripts if there are no CONFIG_FILES. |
12533 | # No need to generate the scripts if there are no CONFIG_FILES. |
13584 | # This happens for instance when ./config.status config.h |
12534 | # This happens for instance when ./config.status config.h |
13585 | if test -n "\$CONFIG_FILES"; then |
12535 | if test -n "$CONFIG_FILES"; then |
13586 | # Protect against being on the right side of a sed subst in config.status. |
12536 | |
13587 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
12537 | _ACEOF |
13588 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
12538 | |
13589 | s,@SHELL@,$SHELL,;t t |
12539 | |
13590 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
12540 | |
13591 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
12541 | ac_delim='%!_!# ' |
|
|
12542 | for ac_last_try in false false false false false :; do |
|
|
12543 | cat >conf$$subs.sed <<_ACEOF |
|
|
12544 | SHELL!$SHELL$ac_delim |
|
|
12545 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
|
12546 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
13592 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
12547 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
13593 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
12548 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
13594 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
12549 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
13595 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
12550 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
13596 | s,@exec_prefix@,$exec_prefix,;t t |
12551 | exec_prefix!$exec_prefix$ac_delim |
13597 | s,@prefix@,$prefix,;t t |
12552 | prefix!$prefix$ac_delim |
13598 | s,@program_transform_name@,$program_transform_name,;t t |
12553 | program_transform_name!$program_transform_name$ac_delim |
13599 | s,@bindir@,$bindir,;t t |
12554 | bindir!$bindir$ac_delim |
13600 | s,@sbindir@,$sbindir,;t t |
12555 | sbindir!$sbindir$ac_delim |
13601 | s,@libexecdir@,$libexecdir,;t t |
12556 | libexecdir!$libexecdir$ac_delim |
13602 | s,@datadir@,$datadir,;t t |
12557 | datarootdir!$datarootdir$ac_delim |
13603 | s,@sysconfdir@,$sysconfdir,;t t |
12558 | datadir!$datadir$ac_delim |
13604 | s,@sharedstatedir@,$sharedstatedir,;t t |
12559 | sysconfdir!$sysconfdir$ac_delim |
13605 | s,@localstatedir@,$localstatedir,;t t |
12560 | sharedstatedir!$sharedstatedir$ac_delim |
13606 | s,@libdir@,$libdir,;t t |
12561 | localstatedir!$localstatedir$ac_delim |
13607 | s,@includedir@,$includedir,;t t |
12562 | includedir!$includedir$ac_delim |
13608 | s,@oldincludedir@,$oldincludedir,;t t |
12563 | oldincludedir!$oldincludedir$ac_delim |
13609 | s,@infodir@,$infodir,;t t |
12564 | docdir!$docdir$ac_delim |
13610 | s,@mandir@,$mandir,;t t |
12565 | infodir!$infodir$ac_delim |
13611 | s,@build_alias@,$build_alias,;t t |
12566 | htmldir!$htmldir$ac_delim |
13612 | s,@host_alias@,$host_alias,;t t |
12567 | dvidir!$dvidir$ac_delim |
13613 | s,@target_alias@,$target_alias,;t t |
12568 | pdfdir!$pdfdir$ac_delim |
13614 | s,@DEFS@,$DEFS,;t t |
12569 | psdir!$psdir$ac_delim |
13615 | s,@ECHO_C@,$ECHO_C,;t t |
12570 | libdir!$libdir$ac_delim |
13616 | s,@ECHO_N@,$ECHO_N,;t t |
12571 | localedir!$localedir$ac_delim |
13617 | s,@ECHO_T@,$ECHO_T,;t t |
12572 | mandir!$mandir$ac_delim |
13618 | s,@LIBS@,$LIBS,;t t |
12573 | DEFS!$DEFS$ac_delim |
13619 | s,@build@,$build,;t t |
12574 | ECHO_C!$ECHO_C$ac_delim |
13620 | s,@build_cpu@,$build_cpu,;t t |
12575 | ECHO_N!$ECHO_N$ac_delim |
13621 | s,@build_vendor@,$build_vendor,;t t |
12576 | ECHO_T!$ECHO_T$ac_delim |
13622 | s,@build_os@,$build_os,;t t |
12577 | LIBS!$LIBS$ac_delim |
13623 | s,@host@,$host,;t t |
12578 | build_alias!$build_alias$ac_delim |
13624 | s,@host_cpu@,$host_cpu,;t t |
12579 | host_alias!$host_alias$ac_delim |
13625 | s,@host_vendor@,$host_vendor,;t t |
12580 | target_alias!$target_alias$ac_delim |
13626 | s,@host_os@,$host_os,;t t |
12581 | build!$build$ac_delim |
13627 | s,@VERSION@,$VERSION,;t t |
12582 | build_cpu!$build_cpu$ac_delim |
13628 | s,@DATE@,$DATE,;t t |
12583 | build_vendor!$build_vendor$ac_delim |
13629 | s,@LSMDATE@,$LSMDATE,;t t |
12584 | build_os!$build_os$ac_delim |
13630 | s,@LIBVERSION@,$LIBVERSION,;t t |
12585 | host!$host$ac_delim |
13631 | s,@CC@,$CC,;t t |
12586 | host_cpu!$host_cpu$ac_delim |
13632 | s,@CFLAGS@,$CFLAGS,;t t |
12587 | host_vendor!$host_vendor$ac_delim |
13633 | s,@LDFLAGS@,$LDFLAGS,;t t |
12588 | host_os!$host_os$ac_delim |
13634 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
12589 | VERSION!$VERSION$ac_delim |
13635 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
12590 | DATE!$DATE$ac_delim |
13636 | s,@EXEEXT@,$EXEEXT,;t t |
12591 | CC!$CC$ac_delim |
13637 | s,@OBJEXT@,$OBJEXT,;t t |
12592 | CFLAGS!$CFLAGS$ac_delim |
13638 | s,@CXX@,$CXX,;t t |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
13639 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
13640 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
13641 | s,@CPP@,$CPP,;t t |
12596 | EXEEXT!$EXEEXT$ac_delim |
|
|
12597 | OBJEXT!$OBJEXT$ac_delim |
|
|
12598 | CXX!$CXX$ac_delim |
|
|
12599 | CXXFLAGS!$CXXFLAGS$ac_delim |
|
|
12600 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
|
12601 | CPP!$CPP$ac_delim |
13642 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
12602 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
13643 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13644 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13645 | s,@AWK@,$AWK,;t t |
12605 | GREP!$GREP$ac_delim |
13646 | s,@LINKER@,$LINKER,;t t |
12606 | EGREP!$EGREP$ac_delim |
13647 | s,@CXXCPP@,$CXXCPP,;t t |
12607 | LINKER!$LINKER$ac_delim |
13648 | s,@EGREP@,$EGREP,;t t |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
13649 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
12609 | CXXCPP!$CXXCPP$ac_delim |
13650 | s,@RXVTNAME@,$RXVTNAME,;t t |
12610 | TIC!$TIC$ac_delim |
13651 | s,@MV@,$MV,;t t |
12611 | XMKMF!$XMKMF$ac_delim |
13652 | s,@RM@,$RM,;t t |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
13653 | s,@CP@,$CP,;t t |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13654 | s,@LN@,$LN,;t t |
12614 | X_LIBS!$X_LIBS$ac_delim |
13655 | s,@SED@,$SED,;t t |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13656 | s,@ECHO@,$ECHO,;t t |
12616 | afterimage_config!$afterimage_config$ac_delim |
13657 | s,@CMP@,$CMP,;t t |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13658 | s,@TBL@,$TBL,;t t |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13659 | s,@TIC@,$TIC,;t t |
12619 | PERL!$PERL$ac_delim |
13660 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
12620 | PERLLIB!$PERLLIB$ac_delim |
13661 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
13662 | s,@X_LIBS@,$X_LIBS,;t t |
12622 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13663 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
12623 | IF_PERL!$IF_PERL$ac_delim |
13664 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
12624 | PERL_O!$PERL_O$ac_delim |
13665 | s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13666 | s,@XPM_LIBS@,$XPM_LIBS,;t t |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13667 | s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t |
12627 | LIBOBJS!$LIBOBJS$ac_delim |
13668 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
12628 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13669 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
|
|
13670 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
|
|
13671 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
|
|
13672 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
13673 | s,@PERL@,$PERL,;t t |
|
|
13674 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
13675 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
13676 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
13677 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
13678 | s,@PERL_O@,$PERL_O,;t t |
|
|
13679 | s,@DEBUG@,$DEBUG,;t t |
|
|
13680 | s,@DINCLUDE@,$DINCLUDE,;t t |
|
|
13681 | s,@DLIB@,$DLIB,;t t |
|
|
13682 | s,@include_stdint_h@,$include_stdint_h,;t t |
|
|
13683 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
|
|
13684 | s,@include_stdlib_h@,$include_stdlib_h,;t t |
|
|
13685 | s,@include_unistd_h@,$include_unistd_h,;t t |
|
|
13686 | s,@include_string_h@,$include_string_h,;t t |
|
|
13687 | s,@include_fcntl_h@,$include_fcntl_h,;t t |
|
|
13688 | s,@include_util_h@,$include_util_h,;t t |
|
|
13689 | s,@include_assert_h@,$include_assert_h,;t t |
|
|
13690 | s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t |
|
|
13691 | s,@include_sys_select_h@,$include_sys_select_h,;t t |
|
|
13692 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
|
|
13693 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
|
|
13694 | s,@include_time_h@,$include_time_h,;t t |
|
|
13695 | s,@LIBOBJS@,$LIBOBJS,;t t |
|
|
13696 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
|
13697 | CEOF |
12629 | _ACEOF |
13698 | |
12630 | |
13699 | _ACEOF |
12631 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
|
|
12632 | break |
|
|
12633 | elif $ac_last_try; then |
|
|
12634 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
12635 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
12636 | { (exit 1); exit 1; }; } |
|
|
12637 | else |
|
|
12638 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
12639 | fi |
|
|
12640 | done |
13700 | |
12641 | |
|
|
12642 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
12643 | if test -n "$ac_eof"; then |
|
|
12644 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
12645 | ac_eof=`expr $ac_eof + 1` |
|
|
12646 | fi |
|
|
12647 | |
|
|
12648 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
12649 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
|
12650 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
|
12651 | _ACEOF |
|
|
12652 | sed ' |
|
|
12653 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
12654 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
12655 | :n |
|
|
12656 | t n |
|
|
12657 | s/'"$ac_delim"'$/,g/; t |
|
|
12658 | s/$/\\/; p |
|
|
12659 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
12660 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
12661 | rm -f conf$$subs.sed |
|
|
12662 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
12663 | :end |
|
|
12664 | s/|#_!!_#|//g |
|
|
12665 | CEOF$ac_eof |
|
|
12666 | _ACEOF |
|
|
12667 | |
|
|
12668 | |
|
|
12669 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
|
12670 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
|
12671 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
12672 | # (actually we leave an empty line to preserve line numbers). |
|
|
12673 | if test "x$srcdir" = x.; then |
|
|
12674 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
|
12675 | s/:*\$(srcdir):*/:/ |
|
|
12676 | s/:*\${srcdir}:*/:/ |
|
|
12677 | s/:*@srcdir@:*/:/ |
|
|
12678 | s/^\([^=]*=[ ]*\):*/\1/ |
|
|
12679 | s/:*$// |
|
|
12680 | s/^[^=]*=[ ]*$// |
|
|
12681 | }' |
|
|
12682 | fi |
|
|
12683 | |
13701 | cat >>$CONFIG_STATUS <<\_ACEOF |
12684 | cat >>$CONFIG_STATUS <<\_ACEOF |
13702 | # Split the substitutions into bite-sized pieces for seds with |
12685 | fi # test -n "$CONFIG_FILES" |
13703 | # small command number limits, like on Digital OSF/1 and HP-UX. |
12686 | |
13704 | ac_max_sed_lines=48 |
12687 | |
13705 | ac_sed_frag=1 # Number of current file. |
12688 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
13706 | ac_beg=1 # First line for current file. |
12689 | do |
13707 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
12690 | case $ac_tag in |
13708 | ac_more_lines=: |
12691 | :[FHLC]) ac_mode=$ac_tag; continue;; |
13709 | ac_sed_cmds= |
12692 | esac |
13710 | while $ac_more_lines; do |
12693 | case $ac_mode$ac_tag in |
13711 | if test $ac_beg -gt 1; then |
12694 | :[FHL]*:*);; |
13712 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
12695 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
13713 | else |
12696 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
13714 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
12697 | { (exit 1); exit 1; }; };; |
|
|
12698 | :[FH]-) ac_tag=-:-;; |
|
|
12699 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
12700 | esac |
|
|
12701 | ac_save_IFS=$IFS |
|
|
12702 | IFS=: |
|
|
12703 | set x $ac_tag |
|
|
12704 | IFS=$ac_save_IFS |
|
|
12705 | shift |
|
|
12706 | ac_file=$1 |
|
|
12707 | shift |
|
|
12708 | |
|
|
12709 | case $ac_mode in |
|
|
12710 | :L) ac_source=$1;; |
|
|
12711 | :[FH]) |
|
|
12712 | ac_file_inputs= |
|
|
12713 | for ac_f |
|
|
12714 | do |
|
|
12715 | case $ac_f in |
|
|
12716 | -) ac_f="$tmp/stdin";; |
|
|
12717 | *) # Look for the file first in the build tree, then in the source tree |
|
|
12718 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
12719 | # because $ac_f cannot contain `:'. |
|
|
12720 | test -f "$ac_f" || |
|
|
12721 | case $ac_f in |
|
|
12722 | [\\/$]*) false;; |
|
|
12723 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
12724 | esac || |
|
|
12725 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
|
12726 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
|
12727 | { (exit 1); exit 1; }; };; |
|
|
12728 | esac |
|
|
12729 | ac_file_inputs="$ac_file_inputs $ac_f" |
|
|
12730 | done |
|
|
12731 | |
|
|
12732 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
12733 | # use $as_me), people would be surprised to read: |
|
|
12734 | # /* config.h. Generated by config.status. */ |
|
|
12735 | configure_input="Generated from "`IFS=: |
|
|
12736 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
|
12737 | if test x"$ac_file" != x-; then |
|
|
12738 | configure_input="$ac_file. $configure_input" |
|
|
12739 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
12740 | echo "$as_me: creating $ac_file" >&6;} |
13715 | fi |
12741 | fi |
13716 | if test ! -s $tmp/subs.frag; then |
|
|
13717 | ac_more_lines=false |
|
|
13718 | else |
|
|
13719 | # The purpose of the label and of the branching condition is to |
|
|
13720 | # speed up the sed processing (if there are no `@' at all, there |
|
|
13721 | # is no need to browse any of the substitutions). |
|
|
13722 | # These are the two extra sed commands mentioned above. |
|
|
13723 | (echo ':t |
|
|
13724 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
|
|
13725 | if test -z "$ac_sed_cmds"; then |
|
|
13726 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
|
|
13727 | else |
|
|
13728 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
|
|
13729 | fi |
|
|
13730 | ac_sed_frag=`expr $ac_sed_frag + 1` |
|
|
13731 | ac_beg=$ac_end |
|
|
13732 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
|
|
13733 | fi |
|
|
13734 | done |
|
|
13735 | if test -z "$ac_sed_cmds"; then |
|
|
13736 | ac_sed_cmds=cat |
|
|
13737 | fi |
|
|
13738 | fi # test -n "$CONFIG_FILES" |
|
|
13739 | |
12742 | |
13740 | _ACEOF |
|
|
13741 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13742 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
|
13743 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
|
13744 | case $ac_file in |
12743 | case $ac_tag in |
13745 | - | *:- | *:-:* ) # input from stdin |
12744 | *:-:* | *:-) cat >"$tmp/stdin";; |
13746 | cat >$tmp/stdin |
12745 | esac |
13747 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
12746 | ;; |
13748 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
13749 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
13750 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
13751 | * ) ac_file_in=$ac_file.in ;; |
|
|
13752 | esac |
12747 | esac |
13753 | |
12748 | |
13754 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
12749 | ac_dir=`$as_dirname -- "$ac_file" || |
13755 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
|
13756 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12750 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13757 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12751 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13758 | X"$ac_file" : 'X\(//\)$' \| \ |
12752 | X"$ac_file" : 'X\(//\)$' \| \ |
13759 | X"$ac_file" : 'X\(/\)' \| \ |
12753 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
13760 | . : '\(.\)' 2>/dev/null || |
|
|
13761 | echo X"$ac_file" | |
12754 | echo X"$ac_file" | |
13762 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13763 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
12756 | s//\1/ |
13764 | /^X\(\/\/\)$/{ s//\1/; q; } |
12757 | q |
13765 | /^X\(\/\).*/{ s//\1/; q; } |
12758 | } |
|
|
12759 | /^X\(\/\/\)[^/].*/{ |
|
|
12760 | s//\1/ |
|
|
12761 | q |
|
|
12762 | } |
|
|
12763 | /^X\(\/\/\)$/{ |
|
|
12764 | s//\1/ |
|
|
12765 | q |
|
|
12766 | } |
|
|
12767 | /^X\(\/\).*/{ |
|
|
12768 | s//\1/ |
|
|
12769 | q |
|
|
12770 | } |
13766 | s/.*/./; q'` |
12771 | s/.*/./; q'` |
13767 | { if $as_mkdir_p; then |
|
|
13768 | mkdir -p "$ac_dir" |
|
|
13769 | else |
|
|
13770 | as_dir="$ac_dir" |
12772 | { as_dir="$ac_dir" |
|
|
12773 | case $as_dir in #( |
|
|
12774 | -*) as_dir=./$as_dir;; |
|
|
12775 | esac |
|
|
12776 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
13771 | as_dirs= |
12777 | as_dirs= |
13772 | while test ! -d "$as_dir"; do |
12778 | while :; do |
|
|
12779 | case $as_dir in #( |
|
|
12780 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
|
12781 | *) as_qdir=$as_dir;; |
|
|
12782 | esac |
13773 | as_dirs="$as_dir $as_dirs" |
12783 | as_dirs="'$as_qdir' $as_dirs" |
13774 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
12784 | as_dir=`$as_dirname -- "$as_dir" || |
13775 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12785 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13776 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12786 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13777 | X"$as_dir" : 'X\(//\)$' \| \ |
12787 | X"$as_dir" : 'X\(//\)$' \| \ |
13778 | X"$as_dir" : 'X\(/\)' \| \ |
12788 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
13779 | . : '\(.\)' 2>/dev/null || |
|
|
13780 | echo X"$as_dir" | |
12789 | echo X"$as_dir" | |
13781 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12790 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13782 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
12791 | s//\1/ |
13783 | /^X\(\/\/\)$/{ s//\1/; q; } |
12792 | q |
13784 | /^X\(\/\).*/{ s//\1/; q; } |
12793 | } |
|
|
12794 | /^X\(\/\/\)[^/].*/{ |
|
|
12795 | s//\1/ |
|
|
12796 | q |
|
|
12797 | } |
|
|
12798 | /^X\(\/\/\)$/{ |
|
|
12799 | s//\1/ |
|
|
12800 | q |
|
|
12801 | } |
|
|
12802 | /^X\(\/\).*/{ |
|
|
12803 | s//\1/ |
|
|
12804 | q |
|
|
12805 | } |
13785 | s/.*/./; q'` |
12806 | s/.*/./; q'` |
|
|
12807 | test -d "$as_dir" && break |
13786 | done |
12808 | done |
13787 | test ! -n "$as_dirs" || mkdir $as_dirs |
12809 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
13788 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
12810 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13789 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
12811 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
13790 | { (exit 1); exit 1; }; }; } |
12812 | { (exit 1); exit 1; }; }; } |
13791 | |
|
|
13792 | ac_builddir=. |
12813 | ac_builddir=. |
13793 | |
12814 | |
13794 | if test "$ac_dir" != .; then |
12815 | case "$ac_dir" in |
|
|
12816 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
12817 | *) |
13795 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
12818 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
13796 | # A "../" for each directory in $ac_dir_suffix. |
12819 | # A ".." for each directory in $ac_dir_suffix. |
13797 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
12820 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
13798 | else |
12821 | case $ac_top_builddir_sub in |
13799 | ac_dir_suffix= ac_top_builddir= |
12822 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
13800 | fi |
12823 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
|
12824 | esac ;; |
|
|
12825 | esac |
|
|
12826 | ac_abs_top_builddir=$ac_pwd |
|
|
12827 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
|
12828 | # for backward compatibility: |
|
|
12829 | ac_top_builddir=$ac_top_build_prefix |
13801 | |
12830 | |
13802 | case $srcdir in |
12831 | case $srcdir in |
13803 | .) # No --srcdir option. We are building in place. |
12832 | .) # We are building in place. |
13804 | ac_srcdir=. |
12833 | ac_srcdir=. |
13805 | if test -z "$ac_top_builddir"; then |
12834 | ac_top_srcdir=$ac_top_builddir_sub |
13806 | ac_top_srcdir=. |
12835 | ac_abs_top_srcdir=$ac_pwd ;; |
13807 | else |
|
|
13808 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
13809 | fi ;; |
|
|
13810 | [\\/]* | ?:[\\/]* ) # Absolute path. |
12836 | [\\/]* | ?:[\\/]* ) # Absolute name. |
13811 | ac_srcdir=$srcdir$ac_dir_suffix; |
12837 | ac_srcdir=$srcdir$ac_dir_suffix; |
13812 | ac_top_srcdir=$srcdir ;; |
12838 | ac_top_srcdir=$srcdir |
|
|
12839 | ac_abs_top_srcdir=$srcdir ;; |
13813 | *) # Relative path. |
12840 | *) # Relative name. |
13814 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
12841 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
13815 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
12842 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
13816 | esac |
|
|
13817 | |
|
|
13818 | # Do not use `cd foo && pwd` to compute absolute paths, because |
|
|
13819 | # the directories may not exist. |
|
|
13820 | case `pwd` in |
|
|
13821 | .) ac_abs_builddir="$ac_dir";; |
|
|
13822 | *) |
|
|
13823 | case "$ac_dir" in |
|
|
13824 | .) ac_abs_builddir=`pwd`;; |
|
|
13825 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
|
13826 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
|
13827 | esac;; |
|
|
13828 | esac |
|
|
13829 | case $ac_abs_builddir in |
|
|
13830 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
13831 | *) |
|
|
13832 | case ${ac_top_builddir}. in |
|
|
13833 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
|
|
13834 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
13835 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
|
13836 | esac;; |
|
|
13837 | esac |
|
|
13838 | case $ac_abs_builddir in |
|
|
13839 | .) ac_abs_srcdir=$ac_srcdir;; |
|
|
13840 | *) |
|
|
13841 | case $ac_srcdir in |
|
|
13842 | .) ac_abs_srcdir=$ac_abs_builddir;; |
|
|
13843 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
|
13844 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
|
13845 | esac;; |
|
|
13846 | esac |
|
|
13847 | case $ac_abs_builddir in |
|
|
13848 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
12843 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
13849 | *) |
12844 | esac |
|
|
12845 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
|
12846 | |
|
|
12847 | |
13850 | case $ac_top_srcdir in |
12848 | case $ac_mode in |
13851 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
12849 | :F) |
13852 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
12850 | # |
13853 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
12851 | # CONFIG_FILE |
13854 | esac;; |
12852 | # |
13855 | esac |
|
|
13856 | |
|
|
13857 | |
12853 | |
13858 | case $INSTALL in |
12854 | case $INSTALL in |
13859 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
12855 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
13860 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
12856 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
13861 | esac |
12857 | esac |
13862 | |
|
|
13863 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
13864 | # use $as_me), people would be surprised to read: |
|
|
13865 | # /* config.h. Generated by config.status. */ |
|
|
13866 | if test x"$ac_file" = x-; then |
|
|
13867 | configure_input= |
|
|
13868 | else |
|
|
13869 | configure_input="$ac_file. " |
|
|
13870 | fi |
|
|
13871 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
|
13872 | sed 's,.*/,,'` by configure." |
|
|
13873 | |
|
|
13874 | # First look for the input files in the build tree, otherwise in the |
|
|
13875 | # src tree. |
|
|
13876 | ac_file_inputs=`IFS=: |
|
|
13877 | for f in $ac_file_in; do |
|
|
13878 | case $f in |
|
|
13879 | -) echo $tmp/stdin ;; |
|
|
13880 | [\\/$]*) |
|
|
13881 | # Absolute (can't be DOS-style, as IFS=:) |
|
|
13882 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
13883 | echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
13884 | { (exit 1); exit 1; }; } |
|
|
13885 | echo "$f";; |
|
|
13886 | *) # Relative |
|
|
13887 | if test -f "$f"; then |
|
|
13888 | # Build tree |
|
|
13889 | echo "$f" |
|
|
13890 | elif test -f "$srcdir/$f"; then |
|
|
13891 | # Source tree |
|
|
13892 | echo "$srcdir/$f" |
|
|
13893 | else |
|
|
13894 | # /dev/null tree |
|
|
13895 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
13896 | echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
13897 | { (exit 1); exit 1; }; } |
|
|
13898 | fi;; |
|
|
13899 | esac |
|
|
13900 | done` || { (exit 1); exit 1; } |
|
|
13901 | |
|
|
13902 | if test x"$ac_file" != x-; then |
|
|
13903 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
13904 | echo "$as_me: creating $ac_file" >&6;} |
|
|
13905 | rm -f "$ac_file" |
|
|
13906 | fi |
|
|
13907 | _ACEOF |
12858 | _ACEOF |
|
|
12859 | |
|
|
12860 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
12861 | # If the template does not know about datarootdir, expand it. |
|
|
12862 | # FIXME: This hack should be removed a few years after 2.60. |
|
|
12863 | ac_datarootdir_hack=; ac_datarootdir_seen= |
|
|
12864 | |
|
|
12865 | case `sed -n '/datarootdir/ { |
|
|
12866 | p |
|
|
12867 | q |
|
|
12868 | } |
|
|
12869 | /@datadir@/p |
|
|
12870 | /@docdir@/p |
|
|
12871 | /@infodir@/p |
|
|
12872 | /@localedir@/p |
|
|
12873 | /@mandir@/p |
|
|
12874 | ' $ac_file_inputs` in |
|
|
12875 | *datarootdir*) ac_datarootdir_seen=yes;; |
|
|
12876 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
|
12877 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
|
12878 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
|
12879 | _ACEOF |
|
|
12880 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
12881 | ac_datarootdir_hack=' |
|
|
12882 | s&@datadir@&$datadir&g |
|
|
12883 | s&@docdir@&$docdir&g |
|
|
12884 | s&@infodir@&$infodir&g |
|
|
12885 | s&@localedir@&$localedir&g |
|
|
12886 | s&@mandir@&$mandir&g |
|
|
12887 | s&\\\${datarootdir}&$datarootdir&g' ;; |
|
|
12888 | esac |
|
|
12889 | _ACEOF |
|
|
12890 | |
|
|
12891 | # Neutralize VPATH when `$srcdir' = `.'. |
|
|
12892 | # Shell code in configure.ac might set extrasub. |
|
|
12893 | # FIXME: do we really want to maintain this feature? |
13908 | cat >>$CONFIG_STATUS <<_ACEOF |
12894 | cat >>$CONFIG_STATUS <<_ACEOF |
13909 | sed "$ac_vpsub |
12895 | sed "$ac_vpsub |
13910 | $extrasub |
12896 | $extrasub |
13911 | _ACEOF |
12897 | _ACEOF |
13912 | cat >>$CONFIG_STATUS <<\_ACEOF |
12898 | cat >>$CONFIG_STATUS <<\_ACEOF |
13913 | :t |
12899 | :t |
13914 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
12900 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
13915 | s,@configure_input@,$configure_input,;t t |
12901 | s&@configure_input@&$configure_input&;t t |
|
|
12902 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
13916 | s,@srcdir@,$ac_srcdir,;t t |
12903 | s&@srcdir@&$ac_srcdir&;t t |
13917 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
12904 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
13918 | s,@top_srcdir@,$ac_top_srcdir,;t t |
12905 | s&@top_srcdir@&$ac_top_srcdir&;t t |
13919 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
12906 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
13920 | s,@builddir@,$ac_builddir,;t t |
12907 | s&@builddir@&$ac_builddir&;t t |
13921 | s,@abs_builddir@,$ac_abs_builddir,;t t |
12908 | s&@abs_builddir@&$ac_abs_builddir&;t t |
13922 | s,@top_builddir@,$ac_top_builddir,;t t |
|
|
13923 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
12909 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
13924 | s,@INSTALL@,$ac_INSTALL,;t t |
12910 | s&@INSTALL@&$ac_INSTALL&;t t |
13925 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
12911 | $ac_datarootdir_hack |
|
|
12912 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
|
|
12913 | |
|
|
12914 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
|
12915 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
|
12916 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
|
12917 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
|
12918 | which seems to be undefined. Please make sure it is defined." >&5 |
|
|
12919 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
|
12920 | which seems to be undefined. Please make sure it is defined." >&2;} |
|
|
12921 | |
13926 | rm -f $tmp/stdin |
12922 | rm -f "$tmp/stdin" |
13927 | if test x"$ac_file" != x-; then |
12923 | case $ac_file in |
13928 | mv $tmp/out $ac_file |
12924 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
13929 | else |
12925 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
13930 | cat $tmp/out |
12926 | esac |
13931 | rm -f $tmp/out |
12927 | ;; |
13932 | fi |
12928 | :H) |
13933 | |
12929 | # |
13934 | done |
12930 | # CONFIG_HEADER |
|
|
12931 | # |
13935 | _ACEOF |
12932 | _ACEOF |
13936 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13937 | |
12933 | |
13938 | # |
12934 | # Transform confdefs.h into a sed script `conftest.defines', that |
13939 | # CONFIG_HEADER section. |
12935 | # substitutes the proper values into config.h.in to produce config.h. |
13940 | # |
12936 | rm -f conftest.defines conftest.tail |
13941 | |
12937 | # First, append a space to every undef/define line, to ease matching. |
|
|
12938 | echo 's/$/ /' >conftest.defines |
|
|
12939 | # Then, protect against being on the right side of a sed subst, or in |
|
|
12940 | # an unquoted here document, in config.status. If some macros were |
|
|
12941 | # called several times there might be several #defines for the same |
|
|
12942 | # symbol, which is useless. But do not sort them, since the last |
|
|
12943 | # AC_DEFINE must be honored. |
|
|
12944 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13942 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
12945 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
13943 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
12946 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
13944 | # |
12947 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
13945 | # ac_d sets the value in "#define NAME VALUE" lines. |
12948 | # just an empty string. |
13946 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
12949 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
13947 | ac_dB='[ ].*$,\1#\2' |
12950 | ac_dB='\\)[ (].*,\\1define\\2' |
13948 | ac_dC=' ' |
12951 | ac_dC=' ' |
13949 | ac_dD=',;t' |
12952 | ac_dD=' ,' |
13950 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
|
13951 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
|
13952 | ac_uB='$,\1#\2define\3' |
|
|
13953 | ac_uC=' ' |
|
|
13954 | ac_uD=',;t' |
|
|
13955 | |
12953 | |
13956 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
12954 | uniq confdefs.h | |
13957 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
12955 | sed -n ' |
13958 | case $ac_file in |
12956 | t rset |
13959 | - | *:- | *:-:* ) # input from stdin |
12957 | :rset |
13960 | cat >$tmp/stdin |
12958 | s/^[ ]*#[ ]*define[ ][ ]*// |
13961 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
12959 | t ok |
13962 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
12960 | d |
13963 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
12961 | :ok |
13964 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
13965 | * ) ac_file_in=$ac_file.in ;; |
|
|
13966 | esac |
|
|
13967 | |
|
|
13968 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
13969 | echo "$as_me: creating $ac_file" >&6;} |
|
|
13970 | |
|
|
13971 | # First look for the input files in the build tree, otherwise in the |
|
|
13972 | # src tree. |
|
|
13973 | ac_file_inputs=`IFS=: |
|
|
13974 | for f in $ac_file_in; do |
|
|
13975 | case $f in |
|
|
13976 | -) echo $tmp/stdin ;; |
|
|
13977 | [\\/$]*) |
|
|
13978 | # Absolute (can't be DOS-style, as IFS=:) |
|
|
13979 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
13980 | echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
13981 | { (exit 1); exit 1; }; } |
|
|
13982 | # Do quote $f, to prevent DOS paths from being IFS'd. |
|
|
13983 | echo "$f";; |
|
|
13984 | *) # Relative |
|
|
13985 | if test -f "$f"; then |
|
|
13986 | # Build tree |
|
|
13987 | echo "$f" |
|
|
13988 | elif test -f "$srcdir/$f"; then |
|
|
13989 | # Source tree |
|
|
13990 | echo "$srcdir/$f" |
|
|
13991 | else |
|
|
13992 | # /dev/null tree |
|
|
13993 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
13994 | echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
13995 | { (exit 1); exit 1; }; } |
|
|
13996 | fi;; |
|
|
13997 | esac |
|
|
13998 | done` || { (exit 1); exit 1; } |
|
|
13999 | # Remove the trailing spaces. |
|
|
14000 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
|
14001 | |
|
|
14002 | _ACEOF |
|
|
14003 | |
|
|
14004 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
|
14005 | # `conftest.undefs', that substitutes the proper values into |
|
|
14006 | # config.h.in to produce config.h. The first handles `#define' |
|
|
14007 | # templates, and the second `#undef' templates. |
|
|
14008 | # And first: Protect against being on the right side of a sed subst in |
|
|
14009 | # config.status. Protect against being in an unquoted here document |
|
|
14010 | # in config.status. |
|
|
14011 | rm -f conftest.defines conftest.undefs |
|
|
14012 | # Using a here document instead of a string reduces the quoting nightmare. |
|
|
14013 | # Putting comments in sed scripts is not portable. |
|
|
14014 | # |
|
|
14015 | # `end' is used to avoid that the second main sed command (meant for |
|
|
14016 | # 0-ary CPP macros) applies to n-ary macro definitions. |
|
|
14017 | # See the Autoconf documentation for `clear'. |
|
|
14018 | cat >confdef2sed.sed <<\_ACEOF |
|
|
14019 | s/[\\&,]/\\&/g |
12962 | s/[\\&,]/\\&/g |
14020 | s,[\\$`],\\&,g |
12963 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
14021 | t clear |
12964 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
14022 | : clear |
12965 | ' >>conftest.defines |
14023 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
|
14024 | t end |
|
|
14025 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
|
14026 | : end |
|
|
14027 | _ACEOF |
|
|
14028 | # If some macros were called several times there might be several times |
|
|
14029 | # the same #defines, which is useless. Nevertheless, we may not want to |
|
|
14030 | # sort them, since we want the *last* AC-DEFINE to be honored. |
|
|
14031 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
|
14032 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
|
14033 | rm -f confdef2sed.sed |
|
|
14034 | |
12966 | |
|
|
12967 | # Remove the space that was appended to ease matching. |
14035 | # This sed command replaces #undef with comments. This is necessary, for |
12968 | # Then replace #undef with comments. This is necessary, for |
14036 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12969 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
14037 | # on some systems where configure will not decide to define it. |
12970 | # on some systems where configure will not decide to define it. |
14038 | cat >>conftest.undefs <<\_ACEOF |
12971 | # (The regexp can be short, since the line contains either #define or #undef.) |
14039 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
12972 | echo 's/ $// |
14040 | _ACEOF |
12973 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
14041 | |
12974 | |
14042 | # Break up conftest.defines because some shells have a limit on the size |
12975 | # Break up conftest.defines: |
14043 | # of here documents, and old seds have small limits too (100 cmds). |
12976 | ac_max_sed_lines=50 |
14044 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
12977 | |
14045 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
12978 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
14046 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
12979 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
14047 | echo ' :' >>$CONFIG_STATUS |
12980 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
14048 | rm -f conftest.tail |
12981 | # et cetera. |
14049 | while grep . conftest.defines >/dev/null |
12982 | ac_in='$ac_file_inputs' |
|
|
12983 | ac_out='"$tmp/out1"' |
|
|
12984 | ac_nxt='"$tmp/out2"' |
|
|
12985 | |
|
|
12986 | while : |
14050 | do |
12987 | do |
14051 | # Write a limited-size here document to $tmp/defines.sed. |
12988 | # Write a here document: |
14052 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
12989 | cat >>$CONFIG_STATUS <<_ACEOF |
14053 | # Speed up: don't consider the non `#define' lines. |
12990 | # First, check the format of the line: |
14054 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
12991 | cat >"\$tmp/defines.sed" <<\\CEOF |
14055 | # Work around the forget-to-reset-the-flag bug. |
12992 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
14056 | echo 't clr' >>$CONFIG_STATUS |
12993 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
14057 | echo ': clr' >>$CONFIG_STATUS |
12994 | b |
|
|
12995 | :def |
|
|
12996 | _ACEOF |
14058 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
12997 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
14059 | echo 'CEOF |
12998 | echo 'CEOF |
14060 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
12999 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
14061 | rm -f $tmp/in |
13000 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
14062 | mv $tmp/out $tmp/in |
|
|
14063 | ' >>$CONFIG_STATUS |
|
|
14064 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
13001 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
|
13002 | grep . conftest.tail >/dev/null || break |
14065 | rm -f conftest.defines |
13003 | rm -f conftest.defines |
14066 | mv conftest.tail conftest.defines |
13004 | mv conftest.tail conftest.defines |
14067 | done |
13005 | done |
14068 | rm -f conftest.defines |
13006 | rm -f conftest.defines conftest.tail |
14069 | echo ' fi # grep' >>$CONFIG_STATUS |
|
|
14070 | echo >>$CONFIG_STATUS |
|
|
14071 | |
13007 | |
14072 | # Break up conftest.undefs because some shells have a limit on the size |
13008 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
14073 | # of here documents, and old seds have small limits too (100 cmds). |
|
|
14074 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
|
14075 | rm -f conftest.tail |
|
|
14076 | while grep . conftest.undefs >/dev/null |
|
|
14077 | do |
|
|
14078 | # Write a limited-size here document to $tmp/undefs.sed. |
|
|
14079 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
|
|
14080 | # Speed up: don't consider the non `#undef' |
|
|
14081 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
|
|
14082 | # Work around the forget-to-reset-the-flag bug. |
|
|
14083 | echo 't clr' >>$CONFIG_STATUS |
|
|
14084 | echo ': clr' >>$CONFIG_STATUS |
|
|
14085 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
|
14086 | echo 'CEOF |
|
|
14087 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
|
|
14088 | rm -f $tmp/in |
|
|
14089 | mv $tmp/out $tmp/in |
|
|
14090 | ' >>$CONFIG_STATUS |
|
|
14091 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
|
|
14092 | rm -f conftest.undefs |
|
|
14093 | mv conftest.tail conftest.undefs |
|
|
14094 | done |
|
|
14095 | rm -f conftest.undefs |
|
|
14096 | |
|
|
14097 | cat >>$CONFIG_STATUS <<\_ACEOF |
13009 | cat >>$CONFIG_STATUS <<\_ACEOF |
14098 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
14099 | # use $as_me), people would be surprised to read: |
|
|
14100 | # /* config.h. Generated by config.status. */ |
|
|
14101 | if test x"$ac_file" = x-; then |
|
|
14102 | echo "/* Generated by configure. */" >$tmp/config.h |
|
|
14103 | else |
|
|
14104 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
|
|
14105 | fi |
|
|
14106 | cat $tmp/in >>$tmp/config.h |
|
|
14107 | rm -f $tmp/in |
|
|
14108 | if test x"$ac_file" != x-; then |
13010 | if test x"$ac_file" != x-; then |
|
|
13011 | echo "/* $configure_input */" >"$tmp/config.h" |
|
|
13012 | cat "$ac_result" >>"$tmp/config.h" |
14109 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
13013 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
14110 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
13014 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
14111 | echo "$as_me: $ac_file is unchanged" >&6;} |
13015 | echo "$as_me: $ac_file is unchanged" >&6;} |
14112 | else |
13016 | else |
14113 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
|
14114 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
14115 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
14116 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
14117 | X"$ac_file" : 'X\(/\)' \| \ |
|
|
14118 | . : '\(.\)' 2>/dev/null || |
|
|
14119 | echo X"$ac_file" | |
|
|
14120 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
14121 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
14122 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
14123 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
14124 | s/.*/./; q'` |
|
|
14125 | { if $as_mkdir_p; then |
|
|
14126 | mkdir -p "$ac_dir" |
|
|
14127 | else |
|
|
14128 | as_dir="$ac_dir" |
|
|
14129 | as_dirs= |
|
|
14130 | while test ! -d "$as_dir"; do |
|
|
14131 | as_dirs="$as_dir $as_dirs" |
|
|
14132 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
|
14133 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
14134 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
14135 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
14136 | X"$as_dir" : 'X\(/\)' \| \ |
|
|
14137 | . : '\(.\)' 2>/dev/null || |
|
|
14138 | echo X"$as_dir" | |
|
|
14139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
14140 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
14141 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
14142 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
14143 | s/.*/./; q'` |
|
|
14144 | done |
|
|
14145 | test ! -n "$as_dirs" || mkdir $as_dirs |
|
|
14146 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
|
14147 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
|
14148 | { (exit 1); exit 1; }; }; } |
|
|
14149 | |
|
|
14150 | rm -f $ac_file |
13017 | rm -f $ac_file |
14151 | mv $tmp/config.h $ac_file |
13018 | mv "$tmp/config.h" $ac_file |
14152 | fi |
13019 | fi |
14153 | else |
13020 | else |
14154 | cat $tmp/config.h |
13021 | echo "/* $configure_input */" |
14155 | rm -f $tmp/config.h |
13022 | cat "$ac_result" |
14156 | fi |
13023 | fi |
14157 | done |
13024 | rm -f "$tmp/out12" |
14158 | _ACEOF |
13025 | ;; |
14159 | |
13026 | |
14160 | cat >>$CONFIG_STATUS <<\_ACEOF |
13027 | |
|
|
13028 | esac |
|
|
13029 | |
|
|
13030 | done # for ac_tag |
|
|
13031 | |
14161 | |
13032 | |
14162 | { (exit 0); exit 0; } |
13033 | { (exit 0); exit 0; } |
14163 | _ACEOF |
13034 | _ACEOF |
14164 | chmod +x $CONFIG_STATUS |
13035 | chmod +x $CONFIG_STATUS |
14165 | ac_clean_files=$ac_clean_files_save |
13036 | ac_clean_files=$ac_clean_files_save |
… | |
… | |
14191 | |
13062 | |
14192 | Rxvt version: $VERSION : $DATE |
13063 | Rxvt version: $VERSION : $DATE |
14193 | Source code location: $srcdir |
13064 | Source code location: $srcdir |
14194 | Install path: ${prefix}/bin |
13065 | Install path: ${prefix}/bin |
14195 | Compiler: $CXX |
13066 | Compiler: $CXX |
14196 | Compiler flags: $CFLAGS |
13067 | Compiler flags: $CXXFLAGS |
14197 | Linker: $LINKER" |
13068 | Linker: $LINKER" |
14198 | |
13069 | |
14199 | if test "$MALLOC_TYPE" = S; then |
|
|
14200 | echo " malloc support: system default" |
|
|
14201 | fi |
|
|
14202 | if test "$MALLOC_TYPE" = G; then |
|
|
14203 | echo " malloc support: Gray Watson's dmalloc" |
|
|
14204 | fi |
|
|
14205 | if test "$MALLOC_TYPE" = D; then |
|
|
14206 | echo " malloc support: Doug Lea's malloc" |
|
|
14207 | fi |
|
|
14208 | |
|
|
14209 | if test x$support_xpm = xyes; then |
|
|
14210 | echo " Xpm library: $XPM_LIBS" |
|
|
14211 | fi |
|
|
14212 | |
|
|
14213 | echo " |
|
|
14214 | The following are set in config.h |
|
|
14215 | " |
|
|
14216 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
14217 | if test x$support_utmp != xyes; then |
|
|
14218 | echo " utmp support: disabled" |
|
|
14219 | echo |
|
|
14220 | else |
|
|
14221 | echo " utmp support: enabled |
|
|
14222 | utmp file: $rxvt_cv_path_utmp |
|
|
14223 | utmpx file: $rxvt_cv_path_utmpx |
|
|
14224 | wtmp file: $rxvt_cv_path_wtmp |
|
|
14225 | wtmpx file: $rxvt_cv_path_wtmpx |
|
|
14226 | lastlog file: $rxvt_cv_path_lastlog |
|
|
14227 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
14228 | embedded perl: $support_perl" |
|
|
14229 | echo |
|
|
14230 | fi |
|
|
14231 | if test x$term != x; then |
13070 | if test x$term != x; then |
14232 | echo " set TERM to: $term" |
13071 | echo " set TERM to: $term" |
14233 | fi |
13072 | fi |
14234 | if test x$terminfo != x; then |
13073 | if test x$terminfo != x; then |
14235 | echo " set TERMINFO to: $terminfo" |
13074 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14238 | echo " resource class: $RESCLASS" |
13077 | echo " resource class: $RESCLASS" |
14239 | if test x$RESFALLBACK != x; then |
13078 | if test x$RESFALLBACK != x; then |
14240 | echo " resource class fallback: $RESFALLBACK" |
13079 | echo " resource class fallback: $RESFALLBACK" |
14241 | fi |
13080 | fi |
14242 | echo |
13081 | echo |
14243 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
13082 | echo " embedded perl: $support_perl" |
14244 | echo ".----------------------------------------------------------------." |
13083 | echo " libafterimage: $support_afterimage" |
14245 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
13084 | echo |
14246 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
14247 | echo ".----------------------------------------------------------------." |
|
|
14248 | fi |
|
|
14249 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14250 | echo ".----------------------------------------------------------------." |
|
|
14251 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14252 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14253 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14254 | echo ". to use them you should rerun configure with the ." |
|
|
14255 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14256 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14257 | echo ".----------------------------------------------------------------." |
|
|
14258 | fi |
|
|
14259 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13085 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14260 | echo ".----------------------------------------------------------------." |
13086 | echo ".----------------------------------------------------------------." |
14261 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13087 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14262 | echo ". functions could not be found. ." |
13088 | echo ". functions could not be found. ." |
14263 | echo ". XIM is now being DISABLED! ." |
13089 | echo ". XIM is now being DISABLED! ." |
14264 | echo ".----------------------------------------------------------------." |
13090 | echo ".----------------------------------------------------------------." |
14265 | fi |
13091 | fi |
14266 | |
13092 | |
14267 | echo " *** Optionally check src/feature.h for further options ***" |
13093 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
14268 | echo |
13094 | echo |
14269 | |
13095 | |
14270 | echo ".----------------------------------------------------------------." |
|
|
14271 | echo ". NOTE: some features are disabled by default, try ." |
|
|
14272 | echo ". configure --help to get an idea of the optional features, ." |
|
|
14273 | echo ". or read ./README.configure ." |
|
|
14274 | echo ". ." |
|
|
14275 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
14276 | echo ". you do not want to read documentation and still want some ." |
|
|
14277 | echo ". useful features. ." |
|
|
14278 | echo ".----------------------------------------------------------------." |
|
|
14279 | echo |
|
|
14280 | |
|
|