1 |
pcg |
1.1 |
#! /bin/sh |
2 |
|
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
ayin |
1.108 |
# Generated by GNU Autoconf 2.61. |
4 |
pcg |
1.1 |
# |
5 |
ayin |
1.108 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 |
|
|
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
7 |
pcg |
1.1 |
# This configure script is free software; the Free Software Foundation |
8 |
|
|
# gives unlimited permission to copy, distribute and modify it. |
9 |
pcg |
1.11 |
## --------------------- ## |
10 |
|
|
## M4sh Initialization. ## |
11 |
|
|
## --------------------- ## |
12 |
|
|
|
13 |
ayin |
1.108 |
# Be more Bourne compatible |
14 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
15 |
pcg |
1.11 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 |
|
|
emulate sh |
17 |
|
|
NULLCMD=: |
18 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 |
|
|
# is contrary to our usage. Disable this feature. |
20 |
|
|
alias -g '${1+"$@"}'='"$@"' |
21 |
ayin |
1.108 |
setopt NO_GLOB_SUBST |
22 |
|
|
else |
23 |
|
|
case `(set -o) 2>/dev/null` in |
24 |
|
|
*posix*) set -o posix ;; |
25 |
|
|
esac |
26 |
|
|
|
27 |
|
|
fi |
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
# PATH needs CR |
33 |
|
|
# Avoid depending upon Character Ranges. |
34 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
35 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
36 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
37 |
|
|
as_cr_digits='0123456789' |
38 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
39 |
|
|
|
40 |
|
|
# The user is always right. |
41 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
42 |
|
|
echo "#! /bin/sh" >conf$$.sh |
43 |
|
|
echo "exit 0" >>conf$$.sh |
44 |
|
|
chmod +x conf$$.sh |
45 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
46 |
|
|
PATH_SEPARATOR=';' |
47 |
|
|
else |
48 |
|
|
PATH_SEPARATOR=: |
49 |
|
|
fi |
50 |
|
|
rm -f conf$$.sh |
51 |
pcg |
1.11 |
fi |
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 |
59 |
|
|
|
60 |
|
|
|
61 |
ayin |
1.108 |
# IFS |
62 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is |
63 |
|
|
# there to prevent editors from complaining about space-tab. |
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 |
|
|
|
70 |
|
|
# Find who we are. Look in the path if we contain no directory separator. |
71 |
|
|
case $0 in |
72 |
|
|
*[\\/]* ) as_myself=$0 ;; |
73 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
74 |
|
|
for as_dir in $PATH |
75 |
|
|
do |
76 |
|
|
IFS=$as_save_IFS |
77 |
|
|
test -z "$as_dir" && as_dir=. |
78 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
79 |
|
|
done |
80 |
|
|
IFS=$as_save_IFS |
81 |
|
|
|
82 |
|
|
;; |
83 |
|
|
esac |
84 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
85 |
|
|
# in which case we are not to be found in the path. |
86 |
|
|
if test "x$as_myself" = x; then |
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 |
pcg |
1.11 |
# Work around bugs in pre-3.0 UWIN ksh. |
95 |
ayin |
1.108 |
for as_var in ENV MAIL MAILPATH |
96 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
97 |
|
|
done |
98 |
pcg |
1.11 |
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 |
ayin |
1.108 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
112 |
pcg |
1.11 |
fi |
113 |
|
|
done |
114 |
|
|
|
115 |
|
|
# Required to use basename. |
116 |
ayin |
1.108 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
117 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
118 |
pcg |
1.11 |
as_expr=expr |
119 |
|
|
else |
120 |
|
|
as_expr=false |
121 |
|
|
fi |
122 |
|
|
|
123 |
ayin |
1.108 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
124 |
pcg |
1.11 |
as_basename=basename |
125 |
|
|
else |
126 |
|
|
as_basename=false |
127 |
|
|
fi |
128 |
|
|
|
129 |
|
|
|
130 |
|
|
# Name of the executable. |
131 |
ayin |
1.108 |
as_me=`$as_basename -- "$0" || |
132 |
pcg |
1.11 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 |
|
|
X"$0" : 'X\(//\)$' \| \ |
134 |
ayin |
1.108 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
135 |
pcg |
1.11 |
echo X/"$0" | |
136 |
ayin |
1.108 |
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 |
root |
1.105 |
|
178 |
ayin |
1.108 |
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 |
root |
1.105 |
|
191 |
ayin |
1.108 |
if as_func_ret_success; then |
192 |
|
|
: |
193 |
|
|
else |
194 |
|
|
exitcode=1 |
195 |
|
|
echo as_func_ret_success failed. |
196 |
|
|
fi |
197 |
root |
1.105 |
|
198 |
ayin |
1.108 |
if as_func_ret_failure; then |
199 |
|
|
exitcode=1 |
200 |
|
|
echo as_func_ret_failure succeeded. |
201 |
root |
1.105 |
fi |
202 |
|
|
|
203 |
ayin |
1.108 |
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 |
ayin |
1.102 |
|
210 |
ayin |
1.108 |
test \$exitcode = 0) || { (exit 1); exit 1; } |
211 |
ayin |
1.102 |
|
212 |
ayin |
1.108 |
( |
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= |
221 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
223 |
|
|
do |
224 |
|
|
IFS=$as_save_IFS |
225 |
|
|
test -z "$as_dir" && as_dir=. |
226 |
ayin |
1.108 |
case $as_dir in |
227 |
pcg |
1.11 |
/*) |
228 |
ayin |
1.108 |
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 |
|
|
( |
328 |
|
|
as_lineno_1=$LINENO |
329 |
|
|
as_lineno_2=$LINENO |
330 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
331 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 |
|
|
|
333 |
|
|
_ASEOF |
334 |
|
|
}; then |
335 |
|
|
break |
336 |
|
|
fi |
337 |
|
|
|
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 |
345 |
|
|
done |
346 |
|
|
export CONFIG_SHELL |
347 |
|
|
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
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 |
root |
1.105 |
as_lineno_1=$LINENO |
424 |
|
|
as_lineno_2=$LINENO |
425 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
426 |
ayin |
1.108 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
427 |
pcg |
1.11 |
|
428 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
429 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a |
430 |
ayin |
1.108 |
# line-number line after each line using $LINENO; the second 'sed' |
431 |
|
|
# does the real work. The second script uses 'N' to pair each |
432 |
|
|
# line-number line with the line containing $LINENO, and appends |
433 |
|
|
# trailing '-' during substitution so that $LINENO is not a special |
434 |
|
|
# case at line end. |
435 |
pcg |
1.11 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
436 |
ayin |
1.108 |
# 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/= |
441 |
|
|
' <$as_myself | |
442 |
pcg |
1.11 |
sed ' |
443 |
ayin |
1.108 |
s/[$]LINENO.*/&-/ |
444 |
|
|
t lineno |
445 |
|
|
b |
446 |
|
|
:lineno |
447 |
pcg |
1.11 |
N |
448 |
ayin |
1.108 |
:loop |
449 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
450 |
pcg |
1.11 |
t loop |
451 |
ayin |
1.108 |
s/-\n.*// |
452 |
pcg |
1.11 |
' >$as_me.lineno && |
453 |
ayin |
1.108 |
chmod +x "$as_me.lineno" || |
454 |
pcg |
1.11 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 |
|
|
{ (exit 1); exit 1; }; } |
456 |
|
|
|
457 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems |
458 |
|
|
# (the dirname of $[0] is not the place where we might find the |
459 |
ayin |
1.108 |
# original and so on. Autoconf is especially sensitive to this). |
460 |
|
|
. "./$as_me.lineno" |
461 |
pcg |
1.11 |
# Exit status is that of the last command. |
462 |
|
|
exit |
463 |
|
|
} |
464 |
|
|
|
465 |
|
|
|
466 |
ayin |
1.108 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 |
|
|
as_dirname=dirname |
468 |
|
|
else |
469 |
|
|
as_dirname=false |
470 |
|
|
fi |
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 |
pcg |
1.11 |
esac |
482 |
|
|
|
483 |
ayin |
1.108 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
484 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
485 |
pcg |
1.11 |
as_expr=expr |
486 |
|
|
else |
487 |
|
|
as_expr=false |
488 |
|
|
fi |
489 |
|
|
|
490 |
|
|
rm -f conf$$ conf$$.exe conf$$.file |
491 |
ayin |
1.108 |
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 |
497 |
pcg |
1.11 |
echo >conf$$.file |
498 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
499 |
ayin |
1.108 |
as_ln_s='ln -s' |
500 |
|
|
# ... but there are two gotchas: |
501 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
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 || |
505 |
pcg |
1.11 |
as_ln_s='cp -p' |
506 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
507 |
|
|
as_ln_s=ln |
508 |
|
|
else |
509 |
|
|
as_ln_s='cp -p' |
510 |
|
|
fi |
511 |
ayin |
1.108 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 |
|
|
rmdir conf$$.dir 2>/dev/null |
513 |
pcg |
1.11 |
|
514 |
|
|
if mkdir -p . 2>/dev/null; then |
515 |
|
|
as_mkdir_p=: |
516 |
|
|
else |
517 |
|
|
test -d ./-p && rmdir ./-p |
518 |
|
|
as_mkdir_p=false |
519 |
|
|
fi |
520 |
|
|
|
521 |
ayin |
1.108 |
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 |
542 |
|
|
as_executable_p=$as_test_x |
543 |
pcg |
1.11 |
|
544 |
|
|
# Sed expression to map a string onto a valid CPP name. |
545 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
546 |
|
|
|
547 |
|
|
# Sed expression to map a string onto a valid variable name. |
548 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
549 |
|
|
|
550 |
|
|
|
551 |
pcg |
1.1 |
|
552 |
ayin |
1.108 |
exec 7<&0 </dev/null 6>&1 |
553 |
pcg |
1.1 |
|
554 |
pcg |
1.11 |
# Name of the host. |
555 |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
556 |
|
|
# so uname gets run too. |
557 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
558 |
|
|
|
559 |
|
|
# |
560 |
|
|
# Initializations. |
561 |
|
|
# |
562 |
|
|
ac_default_prefix=/usr/local |
563 |
ayin |
1.108 |
ac_clean_files= |
564 |
pcg |
1.11 |
ac_config_libobj_dir=. |
565 |
ayin |
1.108 |
LIBOBJS= |
566 |
pcg |
1.11 |
cross_compiling=no |
567 |
|
|
subdirs= |
568 |
|
|
MFLAGS= |
569 |
|
|
MAKEFLAGS= |
570 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
571 |
|
|
|
572 |
|
|
# Identity of this package. |
573 |
|
|
PACKAGE_NAME= |
574 |
|
|
PACKAGE_TARNAME= |
575 |
|
|
PACKAGE_VERSION= |
576 |
|
|
PACKAGE_STRING= |
577 |
|
|
PACKAGE_BUGREPORT= |
578 |
|
|
|
579 |
|
|
ac_unique_file="src/feature.h" |
580 |
|
|
# Factoring default headers for most tests. |
581 |
|
|
ac_includes_default="\ |
582 |
|
|
#include <stdio.h> |
583 |
ayin |
1.108 |
#ifdef HAVE_SYS_TYPES_H |
584 |
pcg |
1.11 |
# include <sys/types.h> |
585 |
|
|
#endif |
586 |
ayin |
1.108 |
#ifdef HAVE_SYS_STAT_H |
587 |
pcg |
1.11 |
# include <sys/stat.h> |
588 |
|
|
#endif |
589 |
ayin |
1.108 |
#ifdef STDC_HEADERS |
590 |
pcg |
1.11 |
# include <stdlib.h> |
591 |
|
|
# include <stddef.h> |
592 |
|
|
#else |
593 |
ayin |
1.108 |
# ifdef HAVE_STDLIB_H |
594 |
pcg |
1.11 |
# include <stdlib.h> |
595 |
|
|
# endif |
596 |
|
|
#endif |
597 |
ayin |
1.108 |
#ifdef HAVE_STRING_H |
598 |
|
|
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
599 |
pcg |
1.11 |
# include <memory.h> |
600 |
|
|
# endif |
601 |
|
|
# include <string.h> |
602 |
|
|
#endif |
603 |
ayin |
1.108 |
#ifdef HAVE_STRINGS_H |
604 |
pcg |
1.11 |
# include <strings.h> |
605 |
|
|
#endif |
606 |
ayin |
1.108 |
#ifdef HAVE_INTTYPES_H |
607 |
pcg |
1.11 |
# include <inttypes.h> |
608 |
|
|
#endif |
609 |
ayin |
1.108 |
#ifdef HAVE_STDINT_H |
610 |
|
|
# include <stdint.h> |
611 |
|
|
#endif |
612 |
|
|
#ifdef HAVE_UNISTD_H |
613 |
pcg |
1.11 |
# include <unistd.h> |
614 |
|
|
#endif" |
615 |
|
|
|
616 |
ayin |
1.108 |
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 |
root |
1.116 |
CXXCPP |
682 |
ayin |
1.108 |
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' |
701 |
root |
1.73 |
ac_subst_files='' |
702 |
ayin |
1.108 |
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 |
root |
1.116 |
CXXCPP |
715 |
|
|
XMKMF' |
716 |
ayin |
1.108 |
|
717 |
pcg |
1.1 |
|
718 |
|
|
# Initialize some variables set by options. |
719 |
pcg |
1.11 |
ac_init_help= |
720 |
|
|
ac_init_version=false |
721 |
pcg |
1.1 |
# The variables have the same names as the options, with |
722 |
|
|
# dashes changed to underlines. |
723 |
pcg |
1.11 |
cache_file=/dev/null |
724 |
pcg |
1.1 |
exec_prefix=NONE |
725 |
|
|
no_create= |
726 |
|
|
no_recursion= |
727 |
|
|
prefix=NONE |
728 |
|
|
program_prefix=NONE |
729 |
|
|
program_suffix=NONE |
730 |
|
|
program_transform_name=s,x,x, |
731 |
|
|
silent= |
732 |
|
|
site= |
733 |
|
|
srcdir= |
734 |
|
|
verbose= |
735 |
|
|
x_includes=NONE |
736 |
|
|
x_libraries=NONE |
737 |
pcg |
1.11 |
|
738 |
|
|
# Installation directory options. |
739 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo" |
740 |
|
|
# and all the variables that are supposed to be based on exec_prefix |
741 |
|
|
# by default will actually change. |
742 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them. |
743 |
ayin |
1.108 |
# (The list follows the same order as the GNU Coding Standards.) |
744 |
pcg |
1.1 |
bindir='${exec_prefix}/bin' |
745 |
|
|
sbindir='${exec_prefix}/sbin' |
746 |
|
|
libexecdir='${exec_prefix}/libexec' |
747 |
ayin |
1.108 |
datarootdir='${prefix}/share' |
748 |
|
|
datadir='${datarootdir}' |
749 |
pcg |
1.1 |
sysconfdir='${prefix}/etc' |
750 |
|
|
sharedstatedir='${prefix}/com' |
751 |
|
|
localstatedir='${prefix}/var' |
752 |
|
|
includedir='${prefix}/include' |
753 |
|
|
oldincludedir='/usr/include' |
754 |
ayin |
1.108 |
docdir='${datarootdir}/doc/${PACKAGE}' |
755 |
|
|
infodir='${datarootdir}/info' |
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' |
763 |
pcg |
1.1 |
|
764 |
|
|
ac_prev= |
765 |
ayin |
1.108 |
ac_dashdash= |
766 |
pcg |
1.1 |
for ac_option |
767 |
|
|
do |
768 |
|
|
# If the previous option needs an argument, assign it. |
769 |
|
|
if test -n "$ac_prev"; then |
770 |
ayin |
1.108 |
eval $ac_prev=\$ac_option |
771 |
pcg |
1.1 |
ac_prev= |
772 |
|
|
continue |
773 |
|
|
fi |
774 |
|
|
|
775 |
ayin |
1.108 |
case $ac_option in |
776 |
|
|
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
777 |
|
|
*) ac_optarg=yes ;; |
778 |
|
|
esac |
779 |
pcg |
1.1 |
|
780 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
781 |
|
|
|
782 |
ayin |
1.108 |
case $ac_dashdash$ac_option in |
783 |
|
|
--) |
784 |
|
|
ac_dashdash=yes ;; |
785 |
pcg |
1.1 |
|
786 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
787 |
|
|
ac_prev=bindir ;; |
788 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
789 |
pcg |
1.11 |
bindir=$ac_optarg ;; |
790 |
pcg |
1.1 |
|
791 |
|
|
-build | --build | --buil | --bui | --bu) |
792 |
pcg |
1.11 |
ac_prev=build_alias ;; |
793 |
pcg |
1.1 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
794 |
pcg |
1.11 |
build_alias=$ac_optarg ;; |
795 |
pcg |
1.1 |
|
796 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
797 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
798 |
|
|
ac_prev=cache_file ;; |
799 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
800 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
801 |
pcg |
1.11 |
cache_file=$ac_optarg ;; |
802 |
|
|
|
803 |
|
|
--config-cache | -C) |
804 |
|
|
cache_file=config.cache ;; |
805 |
pcg |
1.1 |
|
806 |
ayin |
1.108 |
-datadir | --datadir | --datadi | --datad) |
807 |
pcg |
1.1 |
ac_prev=datadir ;; |
808 |
ayin |
1.108 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
809 |
pcg |
1.11 |
datadir=$ac_optarg ;; |
810 |
pcg |
1.1 |
|
811 |
ayin |
1.108 |
-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 ;; |
817 |
|
|
|
818 |
pcg |
1.1 |
-disable-* | --disable-*) |
819 |
pcg |
1.11 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
820 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
821 |
ayin |
1.108 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
822 |
pcg |
1.11 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
823 |
|
|
{ (exit 1); exit 1; }; } |
824 |
ayin |
1.108 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
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 ;; |
836 |
pcg |
1.1 |
|
837 |
|
|
-enable-* | --enable-*) |
838 |
pcg |
1.11 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
839 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
840 |
ayin |
1.108 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
841 |
pcg |
1.11 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
842 |
|
|
{ (exit 1); exit 1; }; } |
843 |
ayin |
1.108 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
844 |
|
|
eval enable_$ac_feature=\$ac_optarg ;; |
845 |
pcg |
1.1 |
|
846 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
847 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
848 |
|
|
| --exec | --exe | --ex) |
849 |
|
|
ac_prev=exec_prefix ;; |
850 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
851 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
852 |
|
|
| --exec=* | --exe=* | --ex=*) |
853 |
pcg |
1.11 |
exec_prefix=$ac_optarg ;; |
854 |
pcg |
1.1 |
|
855 |
|
|
-gas | --gas | --ga | --g) |
856 |
|
|
# Obsolete; use --with-gas. |
857 |
|
|
with_gas=yes ;; |
858 |
|
|
|
859 |
pcg |
1.11 |
-help | --help | --hel | --he | -h) |
860 |
|
|
ac_init_help=long ;; |
861 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
862 |
|
|
ac_init_help=recursive ;; |
863 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
864 |
|
|
ac_init_help=short ;; |
865 |
pcg |
1.1 |
|
866 |
|
|
-host | --host | --hos | --ho) |
867 |
pcg |
1.11 |
ac_prev=host_alias ;; |
868 |
pcg |
1.1 |
-host=* | --host=* | --hos=* | --ho=*) |
869 |
pcg |
1.11 |
host_alias=$ac_optarg ;; |
870 |
pcg |
1.1 |
|
871 |
ayin |
1.108 |
-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 |
|
|
|
877 |
pcg |
1.1 |
-includedir | --includedir | --includedi | --included | --include \ |
878 |
|
|
| --includ | --inclu | --incl | --inc) |
879 |
|
|
ac_prev=includedir ;; |
880 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
881 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*) |
882 |
pcg |
1.11 |
includedir=$ac_optarg ;; |
883 |
pcg |
1.1 |
|
884 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf) |
885 |
|
|
ac_prev=infodir ;; |
886 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
887 |
pcg |
1.11 |
infodir=$ac_optarg ;; |
888 |
pcg |
1.1 |
|
889 |
|
|
-libdir | --libdir | --libdi | --libd) |
890 |
|
|
ac_prev=libdir ;; |
891 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
892 |
pcg |
1.11 |
libdir=$ac_optarg ;; |
893 |
pcg |
1.1 |
|
894 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
895 |
|
|
| --libexe | --libex | --libe) |
896 |
|
|
ac_prev=libexecdir ;; |
897 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
898 |
|
|
| --libexe=* | --libex=* | --libe=*) |
899 |
pcg |
1.11 |
libexecdir=$ac_optarg ;; |
900 |
pcg |
1.1 |
|
901 |
ayin |
1.108 |
-localedir | --localedir | --localedi | --localed | --locale) |
902 |
|
|
ac_prev=localedir ;; |
903 |
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
904 |
|
|
localedir=$ac_optarg ;; |
905 |
|
|
|
906 |
pcg |
1.1 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
907 |
ayin |
1.108 |
| --localstate | --localstat | --localsta | --localst | --locals) |
908 |
pcg |
1.1 |
ac_prev=localstatedir ;; |
909 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
910 |
ayin |
1.108 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
911 |
pcg |
1.11 |
localstatedir=$ac_optarg ;; |
912 |
pcg |
1.1 |
|
913 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
914 |
|
|
ac_prev=mandir ;; |
915 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
916 |
pcg |
1.11 |
mandir=$ac_optarg ;; |
917 |
pcg |
1.1 |
|
918 |
|
|
-nfp | --nfp | --nf) |
919 |
|
|
# Obsolete; use --without-fp. |
920 |
|
|
with_fp=no ;; |
921 |
|
|
|
922 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
923 |
pcg |
1.11 |
| --no-cr | --no-c | -n) |
924 |
pcg |
1.1 |
no_create=yes ;; |
925 |
|
|
|
926 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
927 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
928 |
|
|
no_recursion=yes ;; |
929 |
|
|
|
930 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
931 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
932 |
|
|
| --oldin | --oldi | --old | --ol | --o) |
933 |
|
|
ac_prev=oldincludedir ;; |
934 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
935 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
936 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
937 |
pcg |
1.11 |
oldincludedir=$ac_optarg ;; |
938 |
pcg |
1.1 |
|
939 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
940 |
|
|
ac_prev=prefix ;; |
941 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
942 |
pcg |
1.11 |
prefix=$ac_optarg ;; |
943 |
pcg |
1.1 |
|
944 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
945 |
|
|
| --program-pre | --program-pr | --program-p) |
946 |
|
|
ac_prev=program_prefix ;; |
947 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
948 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
949 |
pcg |
1.11 |
program_prefix=$ac_optarg ;; |
950 |
pcg |
1.1 |
|
951 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
952 |
|
|
| --program-suf | --program-su | --program-s) |
953 |
|
|
ac_prev=program_suffix ;; |
954 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
955 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
956 |
pcg |
1.11 |
program_suffix=$ac_optarg ;; |
957 |
pcg |
1.1 |
|
958 |
|
|
-program-transform-name | --program-transform-name \ |
959 |
|
|
| --program-transform-nam | --program-transform-na \ |
960 |
|
|
| --program-transform-n | --program-transform- \ |
961 |
|
|
| --program-transform | --program-transfor \ |
962 |
|
|
| --program-transfo | --program-transf \ |
963 |
|
|
| --program-trans | --program-tran \ |
964 |
|
|
| --progr-tra | --program-tr | --program-t) |
965 |
|
|
ac_prev=program_transform_name ;; |
966 |
|
|
-program-transform-name=* | --program-transform-name=* \ |
967 |
|
|
| --program-transform-nam=* | --program-transform-na=* \ |
968 |
|
|
| --program-transform-n=* | --program-transform-=* \ |
969 |
|
|
| --program-transform=* | --program-transfor=* \ |
970 |
|
|
| --program-transfo=* | --program-transf=* \ |
971 |
|
|
| --program-trans=* | --program-tran=* \ |
972 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
973 |
pcg |
1.11 |
program_transform_name=$ac_optarg ;; |
974 |
pcg |
1.1 |
|
975 |
ayin |
1.108 |
-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 |
|
|
|
985 |
pcg |
1.1 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
986 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
987 |
|
|
silent=yes ;; |
988 |
|
|
|
989 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
990 |
|
|
ac_prev=sbindir ;; |
991 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
992 |
|
|
| --sbi=* | --sb=*) |
993 |
pcg |
1.11 |
sbindir=$ac_optarg ;; |
994 |
pcg |
1.1 |
|
995 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
996 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
997 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \ |
998 |
|
|
| --sha | --sh) |
999 |
|
|
ac_prev=sharedstatedir ;; |
1000 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1001 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1002 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1003 |
|
|
| --sha=* | --sh=*) |
1004 |
pcg |
1.11 |
sharedstatedir=$ac_optarg ;; |
1005 |
pcg |
1.1 |
|
1006 |
|
|
-site | --site | --sit) |
1007 |
|
|
ac_prev=site ;; |
1008 |
|
|
-site=* | --site=* | --sit=*) |
1009 |
pcg |
1.11 |
site=$ac_optarg ;; |
1010 |
pcg |
1.1 |
|
1011 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1012 |
|
|
ac_prev=srcdir ;; |
1013 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1014 |
pcg |
1.11 |
srcdir=$ac_optarg ;; |
1015 |
pcg |
1.1 |
|
1016 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1017 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy) |
1018 |
|
|
ac_prev=sysconfdir ;; |
1019 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1020 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1021 |
pcg |
1.11 |
sysconfdir=$ac_optarg ;; |
1022 |
pcg |
1.1 |
|
1023 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t) |
1024 |
pcg |
1.11 |
ac_prev=target_alias ;; |
1025 |
pcg |
1.1 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1026 |
pcg |
1.11 |
target_alias=$ac_optarg ;; |
1027 |
pcg |
1.1 |
|
1028 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1029 |
|
|
verbose=yes ;; |
1030 |
|
|
|
1031 |
pcg |
1.11 |
-version | --version | --versio | --versi | --vers | -V) |
1032 |
|
|
ac_init_version=: ;; |
1033 |
pcg |
1.1 |
|
1034 |
|
|
-with-* | --with-*) |
1035 |
pcg |
1.11 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1036 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
1037 |
ayin |
1.108 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1038 |
pcg |
1.11 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1039 |
|
|
{ (exit 1); exit 1; }; } |
1040 |
ayin |
1.108 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1041 |
|
|
eval with_$ac_package=\$ac_optarg ;; |
1042 |
pcg |
1.1 |
|
1043 |
|
|
-without-* | --without-*) |
1044 |
pcg |
1.11 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1045 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
1046 |
ayin |
1.108 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1047 |
pcg |
1.11 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1048 |
|
|
{ (exit 1); exit 1; }; } |
1049 |
ayin |
1.108 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1050 |
|
|
eval with_$ac_package=no ;; |
1051 |
pcg |
1.1 |
|
1052 |
|
|
--x) |
1053 |
|
|
# Obsolete; use --with-x. |
1054 |
|
|
with_x=yes ;; |
1055 |
|
|
|
1056 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1057 |
|
|
| --x-incl | --x-inc | --x-in | --x-i) |
1058 |
|
|
ac_prev=x_includes ;; |
1059 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1060 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1061 |
pcg |
1.11 |
x_includes=$ac_optarg ;; |
1062 |
pcg |
1.1 |
|
1063 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1064 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1065 |
|
|
ac_prev=x_libraries ;; |
1066 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1067 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1068 |
pcg |
1.11 |
x_libraries=$ac_optarg ;; |
1069 |
pcg |
1.1 |
|
1070 |
pcg |
1.11 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
1071 |
|
|
Try \`$0 --help' for more information." >&2 |
1072 |
|
|
{ (exit 1); exit 1; }; } |
1073 |
pcg |
1.1 |
;; |
1074 |
|
|
|
1075 |
pcg |
1.11 |
*=*) |
1076 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1077 |
|
|
# Reject names that are not valid shell variable names. |
1078 |
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1079 |
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1080 |
|
|
{ (exit 1); exit 1; }; } |
1081 |
ayin |
1.108 |
eval $ac_envvar=\$ac_optarg |
1082 |
pcg |
1.11 |
export $ac_envvar ;; |
1083 |
|
|
|
1084 |
pcg |
1.1 |
*) |
1085 |
pcg |
1.11 |
# FIXME: should be removed in autoconf 3.0. |
1086 |
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1087 |
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1088 |
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1089 |
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1090 |
pcg |
1.1 |
;; |
1091 |
|
|
|
1092 |
|
|
esac |
1093 |
|
|
done |
1094 |
|
|
|
1095 |
|
|
if test -n "$ac_prev"; then |
1096 |
pcg |
1.11 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1097 |
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
1098 |
|
|
{ (exit 1); exit 1; }; } |
1099 |
pcg |
1.1 |
fi |
1100 |
|
|
|
1101 |
ayin |
1.108 |
# Be sure to have absolute directory names. |
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 |
1106 |
pcg |
1.11 |
do |
1107 |
ayin |
1.108 |
eval ac_val=\$$ac_var |
1108 |
pcg |
1.11 |
case $ac_val in |
1109 |
ayin |
1.108 |
[\\/$]* | ?:[\\/]* ) continue;; |
1110 |
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1111 |
pcg |
1.1 |
esac |
1112 |
ayin |
1.108 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1113 |
|
|
{ (exit 1); exit 1; }; } |
1114 |
pcg |
1.1 |
done |
1115 |
|
|
|
1116 |
pcg |
1.11 |
# There might be people who depend on the old broken behavior: `$host' |
1117 |
|
|
# used to hold the argument of --host etc. |
1118 |
|
|
# FIXME: To remove some day. |
1119 |
|
|
build=$build_alias |
1120 |
|
|
host=$host_alias |
1121 |
|
|
target=$target_alias |
1122 |
|
|
|
1123 |
|
|
# FIXME: To remove some day. |
1124 |
|
|
if test "x$host_alias" != x; then |
1125 |
|
|
if test "x$build_alias" = x; then |
1126 |
|
|
cross_compiling=maybe |
1127 |
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1128 |
|
|
If a cross compiler is detected then cross compile mode will be used." >&2 |
1129 |
|
|
elif test "x$build_alias" != "x$host_alias"; then |
1130 |
|
|
cross_compiling=yes |
1131 |
|
|
fi |
1132 |
|
|
fi |
1133 |
|
|
|
1134 |
|
|
ac_tool_prefix= |
1135 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1136 |
pcg |
1.1 |
|
1137 |
pcg |
1.11 |
test "$silent" = yes && exec 6>/dev/null |
1138 |
pcg |
1.1 |
|
1139 |
|
|
|
1140 |
ayin |
1.108 |
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 |
|
|
|
1150 |
pcg |
1.1 |
# Find the source files, if location was not specified. |
1151 |
|
|
if test -z "$srcdir"; then |
1152 |
|
|
ac_srcdir_defaulted=yes |
1153 |
ayin |
1.108 |
# Try the directory containing this script, then the parent directory. |
1154 |
|
|
ac_confdir=`$as_dirname -- "$0" || |
1155 |
pcg |
1.11 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1156 |
|
|
X"$0" : 'X\(//\)[^/]' \| \ |
1157 |
|
|
X"$0" : 'X\(//\)$' \| \ |
1158 |
ayin |
1.108 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1159 |
pcg |
1.11 |
echo X"$0" | |
1160 |
ayin |
1.108 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1161 |
|
|
s//\1/ |
1162 |
|
|
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 |
|
|
} |
1176 |
|
|
s/.*/./; q'` |
1177 |
pcg |
1.1 |
srcdir=$ac_confdir |
1178 |
ayin |
1.108 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1179 |
pcg |
1.1 |
srcdir=.. |
1180 |
|
|
fi |
1181 |
|
|
else |
1182 |
|
|
ac_srcdir_defaulted=no |
1183 |
|
|
fi |
1184 |
ayin |
1.108 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1185 |
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1186 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1187 |
|
|
{ (exit 1); exit 1; }; } |
1188 |
|
|
fi |
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 |
1192 |
|
|
{ (exit 1); exit 1; }; } |
1193 |
|
|
pwd)` |
1194 |
|
|
# When building in place, set srcdir=. |
1195 |
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1196 |
|
|
srcdir=. |
1197 |
|
|
fi |
1198 |
|
|
# Remove unnecessary trailing slashes from srcdir. |
1199 |
|
|
# Double slashes in file names in object file debugging info |
1200 |
|
|
# mess up M-x gdb in Emacs. |
1201 |
|
|
case $srcdir in |
1202 |
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1203 |
|
|
esac |
1204 |
|
|
for ac_var in $ac_precious_vars; do |
1205 |
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1206 |
|
|
eval ac_env_${ac_var}_value=\$${ac_var} |
1207 |
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1208 |
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1209 |
|
|
done |
1210 |
|
|
|
1211 |
pcg |
1.11 |
# |
1212 |
|
|
# Report the --help message. |
1213 |
|
|
# |
1214 |
|
|
if test "$ac_init_help" = "long"; then |
1215 |
|
|
# Omit some internal or obsolete options to make the list less imposing. |
1216 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1217 |
|
|
cat <<_ACEOF |
1218 |
|
|
\`configure' configures this package to adapt to many kinds of systems. |
1219 |
|
|
|
1220 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1221 |
|
|
|
1222 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1223 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables. |
1224 |
|
|
|
1225 |
|
|
Defaults for the options are specified in brackets. |
1226 |
|
|
|
1227 |
|
|
Configuration: |
1228 |
|
|
-h, --help display this help and exit |
1229 |
|
|
--help=short display options specific to this package |
1230 |
|
|
--help=recursive display the short help of all the included packages |
1231 |
|
|
-V, --version display version information and exit |
1232 |
|
|
-q, --quiet, --silent do not print \`checking...' messages |
1233 |
|
|
--cache-file=FILE cache test results in FILE [disabled] |
1234 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache' |
1235 |
|
|
-n, --no-create do not create output files |
1236 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1237 |
|
|
|
1238 |
|
|
Installation directories: |
1239 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
1240 |
|
|
[$ac_default_prefix] |
1241 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1242 |
|
|
[PREFIX] |
1243 |
|
|
|
1244 |
|
|
By default, \`make install' will install all the files in |
1245 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1246 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1247 |
|
|
for instance \`--prefix=\$HOME'. |
1248 |
|
|
|
1249 |
|
|
For better control, use the options below. |
1250 |
|
|
|
1251 |
|
|
Fine tuning of the installation directories: |
1252 |
|
|
--bindir=DIR user executables [EPREFIX/bin] |
1253 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1254 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec] |
1255 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1256 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1257 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1258 |
|
|
--libdir=DIR object code libraries [EPREFIX/lib] |
1259 |
|
|
--includedir=DIR C header files [PREFIX/include] |
1260 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1261 |
ayin |
1.108 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1262 |
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1263 |
|
|
--infodir=DIR info documentation [DATAROOTDIR/info] |
1264 |
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
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] |
1271 |
pcg |
1.11 |
_ACEOF |
1272 |
|
|
|
1273 |
|
|
cat <<\_ACEOF |
1274 |
|
|
|
1275 |
|
|
X features: |
1276 |
|
|
--x-includes=DIR X include files are in DIR |
1277 |
|
|
--x-libraries=DIR X library files are in DIR |
1278 |
|
|
|
1279 |
|
|
Program names: |
1280 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
1281 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
1282 |
|
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1283 |
|
|
|
1284 |
|
|
System types: |
1285 |
|
|
--build=BUILD configure for building on BUILD [guessed] |
1286 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1287 |
|
|
_ACEOF |
1288 |
|
|
fi |
1289 |
|
|
|
1290 |
|
|
if test -n "$ac_init_help"; then |
1291 |
|
|
|
1292 |
|
|
cat <<\_ACEOF |
1293 |
|
|
|
1294 |
|
|
Optional Features: |
1295 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1296 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1297 |
pcg |
1.13 |
--enable-everything enable standard non-multichoice features |
1298 |
pcg |
1.11 |
NOTE: this option is order dependent |
1299 |
ayin |
1.114 |
--enable-warnings turn on g++ warnings |
1300 |
pcg |
1.11 |
--enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1301 |
pcg |
1.18 |
--enable-combining enable composition of base and combining characters |
1302 |
pcg |
1.15 |
--enable-xft enable xft support on systems that have it |
1303 |
root |
1.39 |
--enable-font-styles enable bold and italic support |
1304 |
root |
1.103 |
--enable-afterimage enable integration with libAfterImage for background images |
1305 |
pcg |
1.11 |
--enable-transparency enable transparent backgrounds |
1306 |
root |
1.31 |
--enable-fading enable colors fading when off focus |
1307 |
pcg |
1.11 |
--enable-rxvt-scroll enable rxvt style scrollbar |
1308 |
|
|
--enable-next-scroll enable NeXT style scrollbar |
1309 |
|
|
--enable-xterm-scroll enable Xterm style scrollbar |
1310 |
ayin |
1.121 |
--enable-plain-scroll enable plain style scrollbar |
1311 |
root |
1.60 |
--enable-perl enable embedded perl interpreter |
1312 |
pcg |
1.11 |
--enable-xim XIM (X Input Method) protocol support |
1313 |
|
|
--disable-backspace-key disable handling of the backspace key |
1314 |
|
|
--disable-delete-key disable handling of the delete key |
1315 |
|
|
--disable-resources disable all resource checking |
1316 |
root |
1.26 |
--enable-8bitctrls enable 8 bit control sequences (not recommended) |
1317 |
ayin |
1.114 |
--enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1318 |
pcg |
1.11 |
--disable-swapscreen disable swap screen support |
1319 |
root |
1.34 |
--enable-iso14755 enable support for extended ISO 14755 modes |
1320 |
pcg |
1.11 |
--enable-frills enable support for rarely used features |
1321 |
|
|
--enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1322 |
|
|
--enable-selectionscrolling enable scrolling during selections |
1323 |
|
|
--enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1324 |
ayin |
1.114 |
--enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1325 |
pcg |
1.11 |
--enable-smart-resize enable smart growth/shrink behaviour |
1326 |
|
|
--enable-text-blink enable blinking text |
1327 |
|
|
--enable-pointer-blank enable pointer blank when typing or inactive pointer |
1328 |
root |
1.92 |
--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) |
1331 |
pcg |
1.11 |
|
1332 |
|
|
Optional Packages: |
1333 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1334 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1335 |
root |
1.103 |
--with-afterimage-config=DIR use libAfterImage config script in DIR |
1336 |
ayin |
1.114 |
--with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1337 |
pcg |
1.15 |
--with-res-name=NAME use this as default resource name (default: urxvt) |
1338 |
pcg |
1.18 |
--with-res-class=CLASS use this as the resource class (default: URxvt) |
1339 |
pcg |
1.15 |
--with-name=NAME set the basename for the installed binaries (default: urxvt) |
1340 |
|
|
--with-term=NAME set the terminal to NAME (default: rxvt) |
1341 |
pcg |
1.11 |
--with-terminfo=PATH set the path to the terminfo tree to PATH |
1342 |
|
|
--with-x use the X Window System |
1343 |
|
|
|
1344 |
|
|
Some influential environment variables: |
1345 |
|
|
CC C compiler command |
1346 |
|
|
CFLAGS C compiler flags |
1347 |
|
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1348 |
|
|
nonstandard directory <lib dir> |
1349 |
ayin |
1.108 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1350 |
|
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1351 |
|
|
you have headers in a nonstandard directory <include dir> |
1352 |
pcg |
1.11 |
CXX C++ compiler command |
1353 |
|
|
CXXFLAGS C++ compiler flags |
1354 |
|
|
CPP C preprocessor |
1355 |
root |
1.116 |
CXXCPP C++ preprocessor |
1356 |
ayin |
1.108 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
1357 |
pcg |
1.11 |
|
1358 |
|
|
Use these variables to override the choices made by `configure' or to help |
1359 |
|
|
it to find libraries and programs with nonstandard names/locations. |
1360 |
|
|
|
1361 |
|
|
_ACEOF |
1362 |
ayin |
1.108 |
ac_status=$? |
1363 |
pcg |
1.11 |
fi |
1364 |
|
|
|
1365 |
|
|
if test "$ac_init_help" = "recursive"; then |
1366 |
|
|
# If there are subdirs, report their specific --help. |
1367 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1368 |
ayin |
1.108 |
test -d "$ac_dir" || continue |
1369 |
pcg |
1.11 |
ac_builddir=. |
1370 |
|
|
|
1371 |
ayin |
1.108 |
case "$ac_dir" in |
1372 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1373 |
|
|
*) |
1374 |
pcg |
1.11 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1375 |
ayin |
1.108 |
# A ".." for each directory in $ac_dir_suffix. |
1376 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1377 |
|
|
case $ac_top_builddir_sub in |
1378 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
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 |
1386 |
pcg |
1.11 |
|
1387 |
|
|
case $srcdir in |
1388 |
ayin |
1.108 |
.) # We are building in place. |
1389 |
pcg |
1.11 |
ac_srcdir=. |
1390 |
ayin |
1.108 |
ac_top_srcdir=$ac_top_builddir_sub |
1391 |
|
|
ac_abs_top_srcdir=$ac_pwd ;; |
1392 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name. |
1393 |
pcg |
1.11 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1394 |
ayin |
1.108 |
ac_top_srcdir=$srcdir |
1395 |
|
|
ac_abs_top_srcdir=$srcdir ;; |
1396 |
|
|
*) # Relative name. |
1397 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1398 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1399 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1400 |
pcg |
1.11 |
esac |
1401 |
ayin |
1.108 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1402 |
pcg |
1.11 |
|
1403 |
ayin |
1.108 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1404 |
|
|
# Check for guested configure. |
1405 |
|
|
if test -f "$ac_srcdir/configure.gnu"; then |
1406 |
|
|
echo && |
1407 |
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1408 |
|
|
elif test -f "$ac_srcdir/configure"; then |
1409 |
|
|
echo && |
1410 |
|
|
$SHELL "$ac_srcdir/configure" --help=recursive |
1411 |
pcg |
1.11 |
else |
1412 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1413 |
ayin |
1.108 |
fi || ac_status=$? |
1414 |
|
|
cd "$ac_pwd" || { ac_status=$?; break; } |
1415 |
pcg |
1.11 |
done |
1416 |
|
|
fi |
1417 |
|
|
|
1418 |
ayin |
1.108 |
test -n "$ac_init_help" && exit $ac_status |
1419 |
pcg |
1.11 |
if $ac_init_version; then |
1420 |
|
|
cat <<\_ACEOF |
1421 |
ayin |
1.108 |
configure |
1422 |
|
|
generated by GNU Autoconf 2.61 |
1423 |
pcg |
1.11 |
|
1424 |
ayin |
1.108 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1425 |
|
|
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1426 |
pcg |
1.11 |
This configure script is free software; the Free Software Foundation |
1427 |
|
|
gives unlimited permission to copy, distribute and modify it. |
1428 |
|
|
_ACEOF |
1429 |
ayin |
1.108 |
exit |
1430 |
pcg |
1.11 |
fi |
1431 |
ayin |
1.108 |
cat >config.log <<_ACEOF |
1432 |
pcg |
1.11 |
This file contains any messages produced by compilers while |
1433 |
|
|
running configure, to aid debugging if configure makes a mistake. |
1434 |
|
|
|
1435 |
|
|
It was created by $as_me, which was |
1436 |
ayin |
1.108 |
generated by GNU Autoconf 2.61. Invocation command line was |
1437 |
pcg |
1.11 |
|
1438 |
|
|
$ $0 $@ |
1439 |
|
|
|
1440 |
|
|
_ACEOF |
1441 |
ayin |
1.108 |
exec 5>>config.log |
1442 |
pcg |
1.11 |
{ |
1443 |
|
|
cat <<_ASUNAME |
1444 |
|
|
## --------- ## |
1445 |
|
|
## Platform. ## |
1446 |
|
|
## --------- ## |
1447 |
|
|
|
1448 |
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1449 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1450 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1451 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1452 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1453 |
|
|
|
1454 |
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1455 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1456 |
|
|
|
1457 |
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1458 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1459 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1460 |
ayin |
1.108 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1461 |
pcg |
1.11 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1462 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1463 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1464 |
|
|
|
1465 |
|
|
_ASUNAME |
1466 |
|
|
|
1467 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1468 |
|
|
for as_dir in $PATH |
1469 |
|
|
do |
1470 |
|
|
IFS=$as_save_IFS |
1471 |
|
|
test -z "$as_dir" && as_dir=. |
1472 |
|
|
echo "PATH: $as_dir" |
1473 |
|
|
done |
1474 |
ayin |
1.108 |
IFS=$as_save_IFS |
1475 |
pcg |
1.11 |
|
1476 |
|
|
} >&5 |
1477 |
|
|
|
1478 |
|
|
cat >&5 <<_ACEOF |
1479 |
|
|
|
1480 |
|
|
|
1481 |
|
|
## ----------- ## |
1482 |
|
|
## Core tests. ## |
1483 |
|
|
## ----------- ## |
1484 |
|
|
|
1485 |
|
|
_ACEOF |
1486 |
|
|
|
1487 |
|
|
|
1488 |
|
|
# Keep a trace of the command line. |
1489 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
1490 |
|
|
# Strip out --silent because we don't want to record it for future runs. |
1491 |
|
|
# Also quote any args containing shell meta-characters. |
1492 |
|
|
# Make two passes to allow for proper duplicate-argument suppression. |
1493 |
|
|
ac_configure_args= |
1494 |
|
|
ac_configure_args0= |
1495 |
|
|
ac_configure_args1= |
1496 |
|
|
ac_must_keep_next=false |
1497 |
|
|
for ac_pass in 1 2 |
1498 |
|
|
do |
1499 |
|
|
for ac_arg |
1500 |
|
|
do |
1501 |
|
|
case $ac_arg in |
1502 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1503 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1504 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
1505 |
|
|
continue ;; |
1506 |
ayin |
1.108 |
*\'*) |
1507 |
pcg |
1.11 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1508 |
|
|
esac |
1509 |
|
|
case $ac_pass in |
1510 |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1511 |
|
|
2) |
1512 |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1513 |
|
|
if test $ac_must_keep_next = true; then |
1514 |
|
|
ac_must_keep_next=false # Got value, back to normal. |
1515 |
|
|
else |
1516 |
|
|
case $ac_arg in |
1517 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1518 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1519 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1520 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x) |
1521 |
|
|
case "$ac_configure_args0 " in |
1522 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1523 |
|
|
esac |
1524 |
|
|
;; |
1525 |
|
|
-* ) ac_must_keep_next=true ;; |
1526 |
|
|
esac |
1527 |
|
|
fi |
1528 |
ayin |
1.108 |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1529 |
pcg |
1.11 |
;; |
1530 |
|
|
esac |
1531 |
|
|
done |
1532 |
|
|
done |
1533 |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1534 |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1535 |
|
|
|
1536 |
|
|
# When interrupted or exit'd, cleanup temporary files, and complete |
1537 |
|
|
# config.log. We remove comments because anyway the quotes in there |
1538 |
|
|
# would cause problems or look ugly. |
1539 |
ayin |
1.108 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1540 |
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1541 |
pcg |
1.11 |
trap 'exit_status=$? |
1542 |
|
|
# Save into config.log some information that might help in debugging. |
1543 |
|
|
{ |
1544 |
|
|
echo |
1545 |
|
|
|
1546 |
|
|
cat <<\_ASBOX |
1547 |
|
|
## ---------------- ## |
1548 |
|
|
## Cache variables. ## |
1549 |
|
|
## ---------------- ## |
1550 |
|
|
_ASBOX |
1551 |
|
|
echo |
1552 |
|
|
# The following way of writing the cache mishandles newlines in values, |
1553 |
ayin |
1.108 |
( |
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 |
1568 |
pcg |
1.11 |
(set) 2>&1 | |
1569 |
ayin |
1.108 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1570 |
|
|
*${as_nl}ac_space=\ *) |
1571 |
pcg |
1.11 |
sed -n \ |
1572 |
ayin |
1.108 |
"s/'\''/'\''\\\\'\'''\''/g; |
1573 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1574 |
|
|
;; #( |
1575 |
pcg |
1.11 |
*) |
1576 |
ayin |
1.108 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1577 |
pcg |
1.11 |
;; |
1578 |
ayin |
1.108 |
esac | |
1579 |
|
|
sort |
1580 |
|
|
) |
1581 |
pcg |
1.11 |
echo |
1582 |
|
|
|
1583 |
|
|
cat <<\_ASBOX |
1584 |
|
|
## ----------------- ## |
1585 |
|
|
## Output variables. ## |
1586 |
|
|
## ----------------- ## |
1587 |
|
|
_ASBOX |
1588 |
|
|
echo |
1589 |
|
|
for ac_var in $ac_subst_vars |
1590 |
|
|
do |
1591 |
ayin |
1.108 |
eval ac_val=\$$ac_var |
1592 |
|
|
case $ac_val in |
1593 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1594 |
|
|
esac |
1595 |
|
|
echo "$ac_var='\''$ac_val'\''" |
1596 |
pcg |
1.11 |
done | sort |
1597 |
|
|
echo |
1598 |
|
|
|
1599 |
|
|
if test -n "$ac_subst_files"; then |
1600 |
|
|
cat <<\_ASBOX |
1601 |
ayin |
1.108 |
## ------------------- ## |
1602 |
|
|
## File substitutions. ## |
1603 |
|
|
## ------------------- ## |
1604 |
pcg |
1.11 |
_ASBOX |
1605 |
|
|
echo |
1606 |
|
|
for ac_var in $ac_subst_files |
1607 |
|
|
do |
1608 |
ayin |
1.108 |
eval ac_val=\$$ac_var |
1609 |
|
|
case $ac_val in |
1610 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1611 |
|
|
esac |
1612 |
|
|
echo "$ac_var='\''$ac_val'\''" |
1613 |
pcg |
1.11 |
done | sort |
1614 |
|
|
echo |
1615 |
|
|
fi |
1616 |
|
|
|
1617 |
|
|
if test -s confdefs.h; then |
1618 |
|
|
cat <<\_ASBOX |
1619 |
|
|
## ----------- ## |
1620 |
|
|
## confdefs.h. ## |
1621 |
|
|
## ----------- ## |
1622 |
|
|
_ASBOX |
1623 |
|
|
echo |
1624 |
ayin |
1.108 |
cat confdefs.h |
1625 |
pcg |
1.11 |
echo |
1626 |
|
|
fi |
1627 |
|
|
test "$ac_signal" != 0 && |
1628 |
|
|
echo "$as_me: caught signal $ac_signal" |
1629 |
|
|
echo "$as_me: exit $exit_status" |
1630 |
|
|
} >&5 |
1631 |
ayin |
1.108 |
rm -f core *.core core.conftest.* && |
1632 |
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1633 |
pcg |
1.11 |
exit $exit_status |
1634 |
ayin |
1.108 |
' 0 |
1635 |
pcg |
1.11 |
for ac_signal in 1 2 13 15; do |
1636 |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1637 |
|
|
done |
1638 |
|
|
ac_signal=0 |
1639 |
|
|
|
1640 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1641 |
ayin |
1.108 |
rm -f -r conftest* confdefs.h |
1642 |
pcg |
1.11 |
|
1643 |
|
|
# Predefined preprocessor variables. |
1644 |
|
|
|
1645 |
|
|
cat >>confdefs.h <<_ACEOF |
1646 |
|
|
#define PACKAGE_NAME "$PACKAGE_NAME" |
1647 |
|
|
_ACEOF |
1648 |
|
|
|
1649 |
|
|
|
1650 |
|
|
cat >>confdefs.h <<_ACEOF |
1651 |
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1652 |
|
|
_ACEOF |
1653 |
|
|
|
1654 |
|
|
|
1655 |
|
|
cat >>confdefs.h <<_ACEOF |
1656 |
|
|
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1657 |
|
|
_ACEOF |
1658 |
|
|
|
1659 |
|
|
|
1660 |
|
|
cat >>confdefs.h <<_ACEOF |
1661 |
|
|
#define PACKAGE_STRING "$PACKAGE_STRING" |
1662 |
|
|
_ACEOF |
1663 |
|
|
|
1664 |
|
|
|
1665 |
|
|
cat >>confdefs.h <<_ACEOF |
1666 |
|
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1667 |
|
|
_ACEOF |
1668 |
pcg |
1.1 |
|
1669 |
pcg |
1.11 |
|
1670 |
|
|
# Let the site file select an alternate cache file if it wants to. |
1671 |
pcg |
1.1 |
# Prefer explicitly selected file to automatically selected ones. |
1672 |
ayin |
1.108 |
if test -n "$CONFIG_SITE"; then |
1673 |
|
|
set x "$CONFIG_SITE" |
1674 |
|
|
elif test "x$prefix" != xNONE; then |
1675 |
|
|
set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1676 |
|
|
else |
1677 |
|
|
set x "$ac_default_prefix/share/config.site" \ |
1678 |
|
|
"$ac_default_prefix/etc/config.site" |
1679 |
pcg |
1.1 |
fi |
1680 |
ayin |
1.108 |
shift |
1681 |
|
|
for ac_site_file |
1682 |
|
|
do |
1683 |
pcg |
1.1 |
if test -r "$ac_site_file"; then |
1684 |
pcg |
1.11 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1685 |
|
|
echo "$as_me: loading site script $ac_site_file" >&6;} |
1686 |
|
|
sed 's/^/| /' "$ac_site_file" >&5 |
1687 |
pcg |
1.1 |
. "$ac_site_file" |
1688 |
|
|
fi |
1689 |
|
|
done |
1690 |
|
|
|
1691 |
|
|
if test -r "$cache_file"; then |
1692 |
pcg |
1.11 |
# Some versions of bash will fail to source /dev/null (special |
1693 |
|
|
# files actually), so we avoid doing that. |
1694 |
|
|
if test -f "$cache_file"; then |
1695 |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1696 |
|
|
echo "$as_me: loading cache $cache_file" >&6;} |
1697 |
|
|
case $cache_file in |
1698 |
ayin |
1.108 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1699 |
|
|
*) . "./$cache_file";; |
1700 |
pcg |
1.11 |
esac |
1701 |
|
|
fi |
1702 |
pcg |
1.1 |
else |
1703 |
pcg |
1.11 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1704 |
|
|
echo "$as_me: creating cache $cache_file" >&6;} |
1705 |
|
|
>$cache_file |
1706 |
|
|
fi |
1707 |
|
|
|
1708 |
|
|
# Check that the precious variables saved in the cache have kept the same |
1709 |
|
|
# value. |
1710 |
|
|
ac_cache_corrupted=false |
1711 |
ayin |
1.108 |
for ac_var in $ac_precious_vars; do |
1712 |
pcg |
1.11 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1713 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1714 |
ayin |
1.108 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1715 |
|
|
eval ac_new_val=\$ac_env_${ac_var}_value |
1716 |
pcg |
1.11 |
case $ac_old_set,$ac_new_set in |
1717 |
|
|
set,) |
1718 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1719 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1720 |
|
|
ac_cache_corrupted=: ;; |
1721 |
|
|
,set) |
1722 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1723 |
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1724 |
|
|
ac_cache_corrupted=: ;; |
1725 |
|
|
,);; |
1726 |
|
|
*) |
1727 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1728 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1729 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1730 |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1731 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;} |
1732 |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1733 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;} |
1734 |
|
|
ac_cache_corrupted=: |
1735 |
|
|
fi;; |
1736 |
|
|
esac |
1737 |
|
|
# Pass precious variables to config.status. |
1738 |
|
|
if test "$ac_new_set" = set; then |
1739 |
|
|
case $ac_new_val in |
1740 |
ayin |
1.108 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1741 |
pcg |
1.11 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1742 |
|
|
esac |
1743 |
|
|
case " $ac_configure_args " in |
1744 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1745 |
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1746 |
|
|
esac |
1747 |
|
|
fi |
1748 |
|
|
done |
1749 |
|
|
if $ac_cache_corrupted; then |
1750 |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1751 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1752 |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1753 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1754 |
|
|
{ (exit 1); exit 1; }; } |
1755 |
pcg |
1.1 |
fi |
1756 |
|
|
|
1757 |
ayin |
1.106 |
|
1758 |
ayin |
1.104 |
|
1759 |
pcg |
1.11 |
|
1760 |
|
|
|
1761 |
|
|
|
1762 |
|
|
|
1763 |
|
|
|
1764 |
|
|
|
1765 |
|
|
|
1766 |
|
|
|
1767 |
|
|
|
1768 |
|
|
|
1769 |
|
|
|
1770 |
|
|
|
1771 |
|
|
|
1772 |
|
|
|
1773 |
ayin |
1.108 |
ac_ext=c |
1774 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
1775 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1776 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1777 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1778 |
pcg |
1.11 |
|
1779 |
|
|
|
1780 |
|
|
|
1781 |
pcg |
1.1 |
|
1782 |
ayin |
1.108 |
ac_config_headers="$ac_config_headers config.h:config.h.in" |
1783 |
root |
1.76 |
|
1784 |
|
|
|
1785 |
pcg |
1.1 |
ac_aux_dir= |
1786 |
ayin |
1.108 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1787 |
|
|
if test -f "$ac_dir/install-sh"; then |
1788 |
pcg |
1.1 |
ac_aux_dir=$ac_dir |
1789 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c" |
1790 |
|
|
break |
1791 |
ayin |
1.108 |
elif test -f "$ac_dir/install.sh"; then |
1792 |
pcg |
1.1 |
ac_aux_dir=$ac_dir |
1793 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c" |
1794 |
|
|
break |
1795 |
ayin |
1.108 |
elif test -f "$ac_dir/shtool"; then |
1796 |
pcg |
1.11 |
ac_aux_dir=$ac_dir |
1797 |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
1798 |
|
|
break |
1799 |
pcg |
1.1 |
fi |
1800 |
|
|
done |
1801 |
|
|
if test -z "$ac_aux_dir"; then |
1802 |
ayin |
1.108 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1803 |
|
|
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
1804 |
pcg |
1.11 |
{ (exit 1); exit 1; }; } |
1805 |
|
|
fi |
1806 |
ayin |
1.108 |
|
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. |
1811 |
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1812 |
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1813 |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1814 |
|
|
|
1815 |
pcg |
1.1 |
|
1816 |
root |
1.48 |
# Make sure we can run config.sub. |
1817 |
ayin |
1.108 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1818 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1819 |
|
|
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
1820 |
root |
1.48 |
{ (exit 1); exit 1; }; } |
1821 |
|
|
|
1822 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking build system type" >&5 |
1823 |
|
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
1824 |
root |
1.48 |
if test "${ac_cv_build+set}" = set; then |
1825 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1826 |
|
|
else |
1827 |
ayin |
1.108 |
ac_build_alias=$build_alias |
1828 |
|
|
test "x$ac_build_alias" = x && |
1829 |
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
1830 |
|
|
test "x$ac_build_alias" = x && |
1831 |
root |
1.48 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1832 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1833 |
|
|
{ (exit 1); exit 1; }; } |
1834 |
ayin |
1.108 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1835 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1836 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
1837 |
root |
1.48 |
{ (exit 1); exit 1; }; } |
1838 |
|
|
|
1839 |
|
|
fi |
1840 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
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 |
1848 |
root |
1.48 |
build=$ac_cv_build |
1849 |
ayin |
1.108 |
ac_save_IFS=$IFS; IFS='-' |
1850 |
|
|
set x $ac_cv_build |
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 |
1860 |
root |
1.48 |
|
1861 |
|
|
|
1862 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking host system type" >&5 |
1863 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
1864 |
root |
1.48 |
if test "${ac_cv_host+set}" = set; then |
1865 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1866 |
|
|
else |
1867 |
ayin |
1.108 |
if test "x$host_alias" = x; then |
1868 |
|
|
ac_cv_host=$ac_cv_build |
1869 |
|
|
else |
1870 |
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
1871 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1872 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
1873 |
root |
1.48 |
{ (exit 1); exit 1; }; } |
1874 |
ayin |
1.108 |
fi |
1875 |
root |
1.48 |
|
1876 |
|
|
fi |
1877 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
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 |
1885 |
root |
1.48 |
host=$ac_cv_host |
1886 |
ayin |
1.108 |
ac_save_IFS=$IFS; IFS='-' |
1887 |
|
|
set x $ac_cv_host |
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 |
1897 |
root |
1.48 |
|
1898 |
|
|
|
1899 |
|
|
|
1900 |
pcg |
1.1 |
VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1901 |
|
|
DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1902 |
root |
1.117 |
|
1903 |
pcg |
1.1 |
echo "" |
1904 |
|
|
echo "configuring for rxvt $VERSION" |
1905 |
|
|
echo "" |
1906 |
|
|
|
1907 |
root |
1.72 |
orig_CXXFLAGS="$CXXFLAGS" |
1908 |
|
|
|
1909 |
pcg |
1.11 |
ac_ext=c |
1910 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
1911 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1912 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1913 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1914 |
|
|
if test -n "$ac_tool_prefix"; then |
1915 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1916 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1917 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1918 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1919 |
pcg |
1.11 |
if test "${ac_cv_prog_CC+set}" = set; then |
1920 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1921 |
|
|
else |
1922 |
|
|
if test -n "$CC"; then |
1923 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
1924 |
|
|
else |
1925 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1926 |
|
|
for as_dir in $PATH |
1927 |
|
|
do |
1928 |
|
|
IFS=$as_save_IFS |
1929 |
|
|
test -z "$as_dir" && as_dir=. |
1930 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1931 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1932 |
pcg |
1.11 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1933 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1934 |
|
|
break 2 |
1935 |
|
|
fi |
1936 |
|
|
done |
1937 |
|
|
done |
1938 |
ayin |
1.108 |
IFS=$as_save_IFS |
1939 |
pcg |
1.11 |
|
1940 |
|
|
fi |
1941 |
|
|
fi |
1942 |
|
|
CC=$ac_cv_prog_CC |
1943 |
|
|
if test -n "$CC"; then |
1944 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1945 |
|
|
echo "${ECHO_T}$CC" >&6; } |
1946 |
pcg |
1.11 |
else |
1947 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1948 |
|
|
echo "${ECHO_T}no" >&6; } |
1949 |
pcg |
1.11 |
fi |
1950 |
|
|
|
1951 |
ayin |
1.108 |
|
1952 |
pcg |
1.11 |
fi |
1953 |
|
|
if test -z "$ac_cv_prog_CC"; then |
1954 |
|
|
ac_ct_CC=$CC |
1955 |
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
1956 |
pcg |
1.1 |
set dummy gcc; ac_word=$2 |
1957 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1958 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1959 |
pcg |
1.11 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1960 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1961 |
|
|
else |
1962 |
|
|
if test -n "$ac_ct_CC"; then |
1963 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1964 |
|
|
else |
1965 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1966 |
|
|
for as_dir in $PATH |
1967 |
|
|
do |
1968 |
|
|
IFS=$as_save_IFS |
1969 |
|
|
test -z "$as_dir" && as_dir=. |
1970 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1971 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1972 |
pcg |
1.11 |
ac_cv_prog_ac_ct_CC="gcc" |
1973 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1974 |
|
|
break 2 |
1975 |
|
|
fi |
1976 |
|
|
done |
1977 |
|
|
done |
1978 |
ayin |
1.108 |
IFS=$as_save_IFS |
1979 |
pcg |
1.11 |
|
1980 |
|
|
fi |
1981 |
|
|
fi |
1982 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1983 |
|
|
if test -n "$ac_ct_CC"; then |
1984 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1985 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; } |
1986 |
pcg |
1.11 |
else |
1987 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1988 |
|
|
echo "${ECHO_T}no" >&6; } |
1989 |
pcg |
1.11 |
fi |
1990 |
|
|
|
1991 |
ayin |
1.108 |
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 |
2004 |
|
|
CC=$ac_ct_CC |
2005 |
|
|
fi |
2006 |
pcg |
1.11 |
else |
2007 |
|
|
CC="$ac_cv_prog_CC" |
2008 |
|
|
fi |
2009 |
|
|
|
2010 |
|
|
if test -z "$CC"; then |
2011 |
ayin |
1.108 |
if test -n "$ac_tool_prefix"; then |
2012 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2013 |
pcg |
1.11 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2014 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2015 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2016 |
pcg |
1.11 |
if test "${ac_cv_prog_CC+set}" = set; then |
2017 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2018 |
pcg |
1.1 |
else |
2019 |
|
|
if test -n "$CC"; then |
2020 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
2021 |
|
|
else |
2022 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2023 |
|
|
for as_dir in $PATH |
2024 |
|
|
do |
2025 |
|
|
IFS=$as_save_IFS |
2026 |
|
|
test -z "$as_dir" && as_dir=. |
2027 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2028 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2029 |
pcg |
1.11 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2030 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2031 |
|
|
break 2 |
2032 |
|
|
fi |
2033 |
|
|
done |
2034 |
|
|
done |
2035 |
ayin |
1.108 |
IFS=$as_save_IFS |
2036 |
pcg |
1.11 |
|
2037 |
pcg |
1.1 |
fi |
2038 |
|
|
fi |
2039 |
pcg |
1.11 |
CC=$ac_cv_prog_CC |
2040 |
pcg |
1.1 |
if test -n "$CC"; then |
2041 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2042 |
|
|
echo "${ECHO_T}$CC" >&6; } |
2043 |
ayin |
1.106 |
else |
2044 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2045 |
|
|
echo "${ECHO_T}no" >&6; } |
2046 |
ayin |
1.106 |
fi |
2047 |
|
|
|
2048 |
ayin |
1.108 |
|
2049 |
ayin |
1.106 |
fi |
2050 |
pcg |
1.11 |
fi |
2051 |
pcg |
1.1 |
if test -z "$CC"; then |
2052 |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
2053 |
|
|
set dummy cc; ac_word=$2 |
2054 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2055 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2056 |
pcg |
1.11 |
if test "${ac_cv_prog_CC+set}" = set; then |
2057 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2058 |
pcg |
1.1 |
else |
2059 |
|
|
if test -n "$CC"; then |
2060 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
2061 |
|
|
else |
2062 |
|
|
ac_prog_rejected=no |
2063 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2064 |
|
|
for as_dir in $PATH |
2065 |
|
|
do |
2066 |
|
|
IFS=$as_save_IFS |
2067 |
|
|
test -z "$as_dir" && as_dir=. |
2068 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2069 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2070 |
pcg |
1.11 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2071 |
|
|
ac_prog_rejected=yes |
2072 |
|
|
continue |
2073 |
|
|
fi |
2074 |
|
|
ac_cv_prog_CC="cc" |
2075 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2076 |
|
|
break 2 |
2077 |
|
|
fi |
2078 |
|
|
done |
2079 |
|
|
done |
2080 |
ayin |
1.108 |
IFS=$as_save_IFS |
2081 |
pcg |
1.11 |
|
2082 |
pcg |
1.1 |
if test $ac_prog_rejected = yes; then |
2083 |
|
|
# We found a bogon in the path, so make sure we never use it. |
2084 |
|
|
set dummy $ac_cv_prog_CC |
2085 |
|
|
shift |
2086 |
pcg |
1.11 |
if test $# != 0; then |
2087 |
pcg |
1.1 |
# We chose a different compiler from the bogus one. |
2088 |
|
|
# However, it has the same basename, so the bogon will be chosen |
2089 |
|
|
# first if we set CC to just the basename; use the full file name. |
2090 |
|
|
shift |
2091 |
pcg |
1.11 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2092 |
pcg |
1.1 |
fi |
2093 |
|
|
fi |
2094 |
|
|
fi |
2095 |
|
|
fi |
2096 |
pcg |
1.11 |
CC=$ac_cv_prog_CC |
2097 |
pcg |
1.1 |
if test -n "$CC"; then |
2098 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2099 |
|
|
echo "${ECHO_T}$CC" >&6; } |
2100 |
pcg |
1.1 |
else |
2101 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2102 |
|
|
echo "${ECHO_T}no" >&6; } |
2103 |
pcg |
1.1 |
fi |
2104 |
|
|
|
2105 |
ayin |
1.108 |
|
2106 |
pcg |
1.11 |
fi |
2107 |
|
|
if test -z "$CC"; then |
2108 |
|
|
if test -n "$ac_tool_prefix"; then |
2109 |
ayin |
1.108 |
for ac_prog in cl.exe |
2110 |
pcg |
1.11 |
do |
2111 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2112 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2113 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2114 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2115 |
pcg |
1.11 |
if test "${ac_cv_prog_CC+set}" = set; then |
2116 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2117 |
pcg |
1.1 |
else |
2118 |
|
|
if test -n "$CC"; then |
2119 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
2120 |
|
|
else |
2121 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2122 |
|
|
for as_dir in $PATH |
2123 |
|
|
do |
2124 |
|
|
IFS=$as_save_IFS |
2125 |
|
|
test -z "$as_dir" && as_dir=. |
2126 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2127 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2128 |
pcg |
1.11 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2129 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2130 |
|
|
break 2 |
2131 |
|
|
fi |
2132 |
|
|
done |
2133 |
|
|
done |
2134 |
ayin |
1.108 |
IFS=$as_save_IFS |
2135 |
pcg |
1.11 |
|
2136 |
pcg |
1.1 |
fi |
2137 |
|
|
fi |
2138 |
pcg |
1.11 |
CC=$ac_cv_prog_CC |
2139 |
pcg |
1.1 |
if test -n "$CC"; then |
2140 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2141 |
|
|
echo "${ECHO_T}$CC" >&6; } |
2142 |
pcg |
1.1 |
else |
2143 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2144 |
|
|
echo "${ECHO_T}no" >&6; } |
2145 |
pcg |
1.11 |
fi |
2146 |
|
|
|
2147 |
ayin |
1.108 |
|
2148 |
pcg |
1.11 |
test -n "$CC" && break |
2149 |
|
|
done |
2150 |
pcg |
1.1 |
fi |
2151 |
pcg |
1.11 |
if test -z "$CC"; then |
2152 |
|
|
ac_ct_CC=$CC |
2153 |
ayin |
1.108 |
for ac_prog in cl.exe |
2154 |
pcg |
1.11 |
do |
2155 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2156 |
|
|
set dummy $ac_prog; ac_word=$2 |
2157 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2158 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2159 |
pcg |
1.11 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2160 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2161 |
|
|
else |
2162 |
|
|
if test -n "$ac_ct_CC"; then |
2163 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2164 |
|
|
else |
2165 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2166 |
|
|
for as_dir in $PATH |
2167 |
|
|
do |
2168 |
|
|
IFS=$as_save_IFS |
2169 |
|
|
test -z "$as_dir" && as_dir=. |
2170 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2171 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2172 |
pcg |
1.11 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2173 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2174 |
|
|
break 2 |
2175 |
pcg |
1.1 |
fi |
2176 |
pcg |
1.11 |
done |
2177 |
|
|
done |
2178 |
ayin |
1.108 |
IFS=$as_save_IFS |
2179 |
pcg |
1.11 |
|
2180 |
|
|
fi |
2181 |
|
|
fi |
2182 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2183 |
|
|
if test -n "$ac_ct_CC"; then |
2184 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2185 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2186 |
pcg |
1.11 |
else |
2187 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2188 |
|
|
echo "${ECHO_T}no" >&6; } |
2189 |
pcg |
1.11 |
fi |
2190 |
|
|
|
2191 |
ayin |
1.108 |
|
2192 |
pcg |
1.11 |
test -n "$ac_ct_CC" && break |
2193 |
|
|
done |
2194 |
|
|
|
2195 |
ayin |
1.108 |
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 |
2208 |
|
|
CC=$ac_ct_CC |
2209 |
|
|
fi |
2210 |
pcg |
1.11 |
fi |
2211 |
|
|
|
2212 |
pcg |
1.1 |
fi |
2213 |
|
|
|
2214 |
|
|
|
2215 |
pcg |
1.11 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2216 |
|
|
See \`config.log' for more details." >&5 |
2217 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2218 |
|
|
See \`config.log' for more details." >&2;} |
2219 |
|
|
{ (exit 1); exit 1; }; } |
2220 |
|
|
|
2221 |
|
|
# Provide some information about the compiler. |
2222 |
ayin |
1.108 |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2223 |
pcg |
1.11 |
ac_compiler=`set X $ac_compile; echo $2` |
2224 |
ayin |
1.108 |
{ (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 |
2230 |
|
|
(eval "$ac_compiler --version >&5") 2>&5 |
2231 |
pcg |
1.11 |
ac_status=$? |
2232 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2233 |
|
|
(exit $ac_status); } |
2234 |
ayin |
1.108 |
{ (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 |
2240 |
|
|
(eval "$ac_compiler -v >&5") 2>&5 |
2241 |
pcg |
1.11 |
ac_status=$? |
2242 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2243 |
|
|
(exit $ac_status); } |
2244 |
ayin |
1.108 |
{ (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 |
2250 |
|
|
(eval "$ac_compiler -V >&5") 2>&5 |
2251 |
pcg |
1.11 |
ac_status=$? |
2252 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2253 |
|
|
(exit $ac_status); } |
2254 |
|
|
|
2255 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2256 |
|
|
/* confdefs.h. */ |
2257 |
|
|
_ACEOF |
2258 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2259 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2260 |
|
|
/* end confdefs.h. */ |
2261 |
pcg |
1.1 |
|
2262 |
pcg |
1.11 |
int |
2263 |
|
|
main () |
2264 |
|
|
{ |
2265 |
pcg |
1.1 |
|
2266 |
pcg |
1.11 |
; |
2267 |
|
|
return 0; |
2268 |
|
|
} |
2269 |
|
|
_ACEOF |
2270 |
|
|
ac_clean_files_save=$ac_clean_files |
2271 |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2272 |
|
|
# Try to create an executable without -o first, disregard a.out. |
2273 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition |
2274 |
|
|
# of exeext. |
2275 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2276 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2277 |
pcg |
1.11 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2278 |
ayin |
1.108 |
# |
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 |
2302 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2303 |
|
|
(eval "$ac_link_default") 2>&5 |
2304 |
pcg |
1.11 |
ac_status=$? |
2305 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2306 |
|
|
(exit $ac_status); }; then |
2307 |
ayin |
1.108 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2308 |
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2309 |
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2310 |
|
|
# so that the user can short-circuit this test for compilers unknown to |
2311 |
|
|
# Autoconf. |
2312 |
|
|
for ac_file in $ac_files '' |
2313 |
pcg |
1.11 |
do |
2314 |
|
|
test -f "$ac_file" || continue |
2315 |
|
|
case $ac_file in |
2316 |
ayin |
1.108 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2317 |
pcg |
1.11 |
;; |
2318 |
|
|
[ab].out ) |
2319 |
|
|
# We found the default executable, but exeext='' is most |
2320 |
|
|
# certainly right. |
2321 |
|
|
break;; |
2322 |
|
|
*.* ) |
2323 |
ayin |
1.108 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2324 |
|
|
then :; else |
2325 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2326 |
|
|
fi |
2327 |
|
|
# We set ac_cv_exeext here because the later test for it is not |
2328 |
|
|
# safe: cross compilers may not add the suffix if given an `-o' |
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. |
2332 |
pcg |
1.11 |
break;; |
2333 |
|
|
* ) |
2334 |
|
|
break;; |
2335 |
|
|
esac |
2336 |
|
|
done |
2337 |
ayin |
1.108 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2338 |
|
|
|
2339 |
pcg |
1.11 |
else |
2340 |
ayin |
1.108 |
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 |
2346 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
2347 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2348 |
pcg |
1.1 |
|
2349 |
pcg |
1.11 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2350 |
|
|
See \`config.log' for more details." >&5 |
2351 |
|
|
echo "$as_me: error: C compiler cannot create executables |
2352 |
|
|
See \`config.log' for more details." >&2;} |
2353 |
|
|
{ (exit 77); exit 77; }; } |
2354 |
|
|
fi |
2355 |
|
|
|
2356 |
|
|
ac_exeext=$ac_cv_exeext |
2357 |
|
|
|
2358 |
ayin |
1.108 |
# Check that the compiler produces executables we can run. If not, either |
2359 |
pcg |
1.11 |
# the compiler is broken, or we cross compile. |
2360 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2361 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
2362 |
pcg |
1.11 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2363 |
|
|
# If not cross compiling, check that we can run a simple program. |
2364 |
|
|
if test "$cross_compiling" != yes; then |
2365 |
|
|
if { ac_try='./$ac_file' |
2366 |
ayin |
1.108 |
{ (case "(($ac_try" in |
2367 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2368 |
|
|
*) ac_try_echo=$ac_try;; |
2369 |
|
|
esac |
2370 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2371 |
|
|
(eval "$ac_try") 2>&5 |
2372 |
pcg |
1.11 |
ac_status=$? |
2373 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2374 |
|
|
(exit $ac_status); }; }; then |
2375 |
|
|
cross_compiling=no |
2376 |
|
|
else |
2377 |
|
|
if test "$cross_compiling" = maybe; then |
2378 |
|
|
cross_compiling=yes |
2379 |
|
|
else |
2380 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2381 |
|
|
If you meant to cross compile, use \`--host'. |
2382 |
|
|
See \`config.log' for more details." >&5 |
2383 |
|
|
echo "$as_me: error: cannot run C compiled programs. |
2384 |
|
|
If you meant to cross compile, use \`--host'. |
2385 |
|
|
See \`config.log' for more details." >&2;} |
2386 |
|
|
{ (exit 1); exit 1; }; } |
2387 |
|
|
fi |
2388 |
pcg |
1.1 |
fi |
2389 |
pcg |
1.11 |
fi |
2390 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2391 |
|
|
echo "${ECHO_T}yes" >&6; } |
2392 |
pcg |
1.11 |
|
2393 |
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2394 |
|
|
ac_clean_files=$ac_clean_files_save |
2395 |
ayin |
1.108 |
# Check that the compiler produces executables we can run. If not, either |
2396 |
pcg |
1.11 |
# the compiler is broken, or we cross compile. |
2397 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2398 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2399 |
|
|
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2400 |
|
|
echo "${ECHO_T}$cross_compiling" >&6; } |
2401 |
|
|
|
2402 |
|
|
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
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 |
2409 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2410 |
|
|
(eval "$ac_link") 2>&5 |
2411 |
pcg |
1.11 |
ac_status=$? |
2412 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2413 |
|
|
(exit $ac_status); }; then |
2414 |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2415 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2416 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2417 |
|
|
# `rm'. |
2418 |
|
|
for ac_file in conftest.exe conftest conftest.*; do |
2419 |
|
|
test -f "$ac_file" || continue |
2420 |
|
|
case $ac_file in |
2421 |
ayin |
1.108 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2422 |
pcg |
1.11 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2423 |
|
|
break;; |
2424 |
|
|
* ) break;; |
2425 |
|
|
esac |
2426 |
|
|
done |
2427 |
pcg |
1.1 |
else |
2428 |
pcg |
1.11 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2429 |
|
|
See \`config.log' for more details." >&5 |
2430 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2431 |
|
|
See \`config.log' for more details." >&2;} |
2432 |
|
|
{ (exit 1); exit 1; }; } |
2433 |
pcg |
1.1 |
fi |
2434 |
pcg |
1.11 |
|
2435 |
|
|
rm -f conftest$ac_cv_exeext |
2436 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2437 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2438 |
pcg |
1.11 |
|
2439 |
|
|
rm -f conftest.$ac_ext |
2440 |
|
|
EXEEXT=$ac_cv_exeext |
2441 |
|
|
ac_exeext=$EXEEXT |
2442 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2443 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2444 |
pcg |
1.11 |
if test "${ac_cv_objext+set}" = set; then |
2445 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2446 |
|
|
else |
2447 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2448 |
|
|
/* confdefs.h. */ |
2449 |
|
|
_ACEOF |
2450 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2451 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2452 |
|
|
/* end confdefs.h. */ |
2453 |
|
|
|
2454 |
|
|
int |
2455 |
|
|
main () |
2456 |
|
|
{ |
2457 |
|
|
|
2458 |
|
|
; |
2459 |
|
|
return 0; |
2460 |
|
|
} |
2461 |
|
|
_ACEOF |
2462 |
|
|
rm -f conftest.o conftest.obj |
2463 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
2464 |
|
|
case "(($ac_try" in |
2465 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2466 |
|
|
*) ac_try_echo=$ac_try;; |
2467 |
|
|
esac |
2468 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2469 |
|
|
(eval "$ac_compile") 2>&5 |
2470 |
pcg |
1.11 |
ac_status=$? |
2471 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2472 |
|
|
(exit $ac_status); }; then |
2473 |
ayin |
1.108 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2474 |
|
|
test -f "$ac_file" || continue; |
2475 |
pcg |
1.11 |
case $ac_file in |
2476 |
ayin |
1.108 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2477 |
pcg |
1.11 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2478 |
|
|
break;; |
2479 |
|
|
esac |
2480 |
|
|
done |
2481 |
pcg |
1.1 |
else |
2482 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
2483 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2484 |
|
|
|
2485 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2486 |
|
|
See \`config.log' for more details." >&5 |
2487 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2488 |
|
|
See \`config.log' for more details." >&2;} |
2489 |
|
|
{ (exit 1); exit 1; }; } |
2490 |
pcg |
1.1 |
fi |
2491 |
pcg |
1.11 |
|
2492 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2493 |
pcg |
1.1 |
fi |
2494 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2495 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2496 |
pcg |
1.11 |
OBJEXT=$ac_cv_objext |
2497 |
|
|
ac_objext=$OBJEXT |
2498 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2499 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2500 |
pcg |
1.11 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2501 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2502 |
|
|
else |
2503 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2504 |
|
|
/* confdefs.h. */ |
2505 |
|
|
_ACEOF |
2506 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2507 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2508 |
|
|
/* end confdefs.h. */ |
2509 |
|
|
|
2510 |
|
|
int |
2511 |
|
|
main () |
2512 |
|
|
{ |
2513 |
|
|
#ifndef __GNUC__ |
2514 |
|
|
choke me |
2515 |
|
|
#endif |
2516 |
pcg |
1.1 |
|
2517 |
pcg |
1.11 |
; |
2518 |
|
|
return 0; |
2519 |
|
|
} |
2520 |
|
|
_ACEOF |
2521 |
|
|
rm -f conftest.$ac_objext |
2522 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
2523 |
|
|
case "(($ac_try" in |
2524 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2525 |
|
|
*) ac_try_echo=$ac_try;; |
2526 |
|
|
esac |
2527 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2528 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
2529 |
pcg |
1.11 |
ac_status=$? |
2530 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
2531 |
|
|
rm -f conftest.er1 |
2532 |
|
|
cat conftest.err >&5 |
2533 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2534 |
ayin |
1.108 |
(exit $ac_status); } && { |
2535 |
|
|
test -z "$ac_c_werror_flag" || |
2536 |
|
|
test ! -s conftest.err |
2537 |
|
|
} && test -s conftest.$ac_objext; then |
2538 |
pcg |
1.11 |
ac_compiler_gnu=yes |
2539 |
|
|
else |
2540 |
|
|
echo "$as_me: failed program was:" >&5 |
2541 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2542 |
|
|
|
2543 |
ayin |
1.108 |
ac_compiler_gnu=no |
2544 |
pcg |
1.11 |
fi |
2545 |
ayin |
1.108 |
|
2546 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2547 |
pcg |
1.11 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2548 |
|
|
|
2549 |
|
|
fi |
2550 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2551 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2552 |
pcg |
1.11 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2553 |
|
|
ac_test_CFLAGS=${CFLAGS+set} |
2554 |
|
|
ac_save_CFLAGS=$CFLAGS |
2555 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2556 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2557 |
pcg |
1.11 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2558 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2559 |
|
|
else |
2560 |
ayin |
1.108 |
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" |
2564 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2565 |
pcg |
1.11 |
/* confdefs.h. */ |
2566 |
|
|
_ACEOF |
2567 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2568 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2569 |
|
|
/* end confdefs.h. */ |
2570 |
pcg |
1.1 |
|
2571 |
pcg |
1.11 |
int |
2572 |
|
|
main () |
2573 |
|
|
{ |
2574 |
pcg |
1.1 |
|
2575 |
pcg |
1.11 |
; |
2576 |
|
|
return 0; |
2577 |
|
|
} |
2578 |
|
|
_ACEOF |
2579 |
|
|
rm -f conftest.$ac_objext |
2580 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
2581 |
|
|
case "(($ac_try" in |
2582 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2583 |
|
|
*) ac_try_echo=$ac_try;; |
2584 |
|
|
esac |
2585 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2586 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
2587 |
pcg |
1.11 |
ac_status=$? |
2588 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
2589 |
|
|
rm -f conftest.er1 |
2590 |
|
|
cat conftest.err >&5 |
2591 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2592 |
ayin |
1.108 |
(exit $ac_status); } && { |
2593 |
|
|
test -z "$ac_c_werror_flag" || |
2594 |
|
|
test ! -s conftest.err |
2595 |
|
|
} && test -s conftest.$ac_objext; then |
2596 |
|
|
ac_cv_prog_cc_g=yes |
2597 |
|
|
else |
2598 |
|
|
echo "$as_me: failed program was:" >&5 |
2599 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
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 |
pcg |
1.11 |
ac_status=$? |
2626 |
ayin |
1.108 |
grep -v '^ *+' conftest.er1 >conftest.err |
2627 |
|
|
rm -f conftest.er1 |
2628 |
|
|
cat conftest.err >&5 |
2629 |
pcg |
1.11 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2630 |
ayin |
1.108 |
(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 |
pcg |
1.11 |
ac_status=$? |
2665 |
ayin |
1.108 |
grep -v '^ *+' conftest.er1 >conftest.err |
2666 |
|
|
rm -f conftest.er1 |
2667 |
|
|
cat conftest.err >&5 |
2668 |
pcg |
1.11 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2669 |
ayin |
1.108 |
(exit $ac_status); } && { |
2670 |
|
|
test -z "$ac_c_werror_flag" || |
2671 |
|
|
test ! -s conftest.err |
2672 |
|
|
} && test -s conftest.$ac_objext; then |
2673 |
pcg |
1.1 |
ac_cv_prog_cc_g=yes |
2674 |
|
|
else |
2675 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
2676 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2677 |
|
|
|
2678 |
ayin |
1.108 |
|
2679 |
|
|
fi |
2680 |
|
|
|
2681 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2682 |
root |
1.105 |
fi |
2683 |
ayin |
1.108 |
|
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 |
pcg |
1.1 |
fi |
2690 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2691 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
2692 |
pcg |
1.1 |
if test "$ac_test_CFLAGS" = set; then |
2693 |
pcg |
1.11 |
CFLAGS=$ac_save_CFLAGS |
2694 |
pcg |
1.1 |
elif test $ac_cv_prog_cc_g = yes; then |
2695 |
|
|
if test "$GCC" = yes; then |
2696 |
|
|
CFLAGS="-g -O2" |
2697 |
|
|
else |
2698 |
|
|
CFLAGS="-g" |
2699 |
|
|
fi |
2700 |
|
|
else |
2701 |
|
|
if test "$GCC" = yes; then |
2702 |
|
|
CFLAGS="-O2" |
2703 |
|
|
else |
2704 |
|
|
CFLAGS= |
2705 |
|
|
fi |
2706 |
|
|
fi |
2707 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2708 |
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2709 |
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then |
2710 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2711 |
|
|
else |
2712 |
ayin |
1.108 |
ac_cv_prog_cc_c89=no |
2713 |
pcg |
1.11 |
ac_save_CC=$CC |
2714 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2715 |
|
|
/* confdefs.h. */ |
2716 |
|
|
_ACEOF |
2717 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2718 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2719 |
|
|
/* end confdefs.h. */ |
2720 |
|
|
#include <stdarg.h> |
2721 |
|
|
#include <stdio.h> |
2722 |
|
|
#include <sys/types.h> |
2723 |
|
|
#include <sys/stat.h> |
2724 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2725 |
|
|
struct buf { int x; }; |
2726 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2727 |
|
|
static char *e (p, i) |
2728 |
|
|
char **p; |
2729 |
|
|
int i; |
2730 |
|
|
{ |
2731 |
|
|
return p[i]; |
2732 |
|
|
} |
2733 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...) |
2734 |
|
|
{ |
2735 |
|
|
char *s; |
2736 |
|
|
va_list v; |
2737 |
|
|
va_start (v,p); |
2738 |
|
|
s = g (p, va_arg (v,int)); |
2739 |
|
|
va_end (v); |
2740 |
|
|
return s; |
2741 |
|
|
} |
2742 |
pcg |
1.1 |
|
2743 |
pcg |
1.11 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2744 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants. |
2745 |
|
|
These don't provoke an error unfortunately, instead are silently treated |
2746 |
ayin |
1.108 |
as 'x'. The following induces an error, until -std is added to get |
2747 |
pcg |
1.11 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2748 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something |
2749 |
ayin |
1.108 |
that's true only with -std. */ |
2750 |
pcg |
1.11 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2751 |
|
|
|
2752 |
ayin |
1.108 |
/* 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]; |
2756 |
|
|
|
2757 |
pcg |
1.11 |
int test (int i, double x); |
2758 |
|
|
struct s1 {int (*f) (int a);}; |
2759 |
|
|
struct s2 {int (*f) (double a);}; |
2760 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2761 |
|
|
int argc; |
2762 |
|
|
char **argv; |
2763 |
|
|
int |
2764 |
|
|
main () |
2765 |
|
|
{ |
2766 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2767 |
|
|
; |
2768 |
|
|
return 0; |
2769 |
|
|
} |
2770 |
|
|
_ACEOF |
2771 |
ayin |
1.108 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2772 |
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2773 |
pcg |
1.1 |
do |
2774 |
pcg |
1.11 |
CC="$ac_save_CC $ac_arg" |
2775 |
|
|
rm -f conftest.$ac_objext |
2776 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
2777 |
|
|
case "(($ac_try" in |
2778 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2779 |
|
|
*) ac_try_echo=$ac_try;; |
2780 |
|
|
esac |
2781 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2782 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
2783 |
pcg |
1.11 |
ac_status=$? |
2784 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
2785 |
|
|
rm -f conftest.er1 |
2786 |
|
|
cat conftest.err >&5 |
2787 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2788 |
ayin |
1.108 |
(exit $ac_status); } && { |
2789 |
|
|
test -z "$ac_c_werror_flag" || |
2790 |
|
|
test ! -s conftest.err |
2791 |
|
|
} && test -s conftest.$ac_objext; then |
2792 |
|
|
ac_cv_prog_cc_c89=$ac_arg |
2793 |
pcg |
1.1 |
else |
2794 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
2795 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2796 |
|
|
|
2797 |
ayin |
1.108 |
|
2798 |
pcg |
1.1 |
fi |
2799 |
ayin |
1.108 |
|
2800 |
|
|
rm -f core conftest.err conftest.$ac_objext |
2801 |
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break |
2802 |
pcg |
1.1 |
done |
2803 |
ayin |
1.108 |
rm -f conftest.$ac_ext |
2804 |
pcg |
1.11 |
CC=$ac_save_CC |
2805 |
pcg |
1.1 |
|
2806 |
pcg |
1.11 |
fi |
2807 |
ayin |
1.108 |
# AC_CACHE_VAL |
2808 |
|
|
case "x$ac_cv_prog_cc_c89" in |
2809 |
|
|
x) |
2810 |
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5 |
2811 |
|
|
echo "${ECHO_T}none needed" >&6; } ;; |
2812 |
|
|
xno) |
2813 |
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
2814 |
|
|
echo "${ECHO_T}unsupported" >&6; } ;; |
2815 |
pcg |
1.11 |
*) |
2816 |
ayin |
1.108 |
CC="$CC $ac_cv_prog_cc_c89" |
2817 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2818 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2819 |
pcg |
1.11 |
esac |
2820 |
pcg |
1.1 |
|
2821 |
ayin |
1.108 |
|
2822 |
|
|
ac_ext=c |
2823 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
2824 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2825 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2826 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2827 |
|
|
|
2828 |
|
|
ac_ext=cpp |
2829 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
2830 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2831 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
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 |
2837 |
|
|
if test -n "$ac_tool_prefix"; then |
2838 |
|
|
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2839 |
|
|
do |
2840 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2841 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2842 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2843 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2844 |
|
|
if test "${ac_cv_prog_CXX+set}" = set; then |
2845 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2846 |
|
|
else |
2847 |
|
|
if test -n "$CXX"; then |
2848 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2849 |
|
|
else |
2850 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2851 |
|
|
for as_dir in $PATH |
2852 |
ayin |
1.106 |
do |
2853 |
ayin |
1.108 |
IFS=$as_save_IFS |
2854 |
|
|
test -z "$as_dir" && as_dir=. |
2855 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2856 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2857 |
|
|
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2858 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2859 |
|
|
break 2 |
2860 |
|
|
fi |
2861 |
|
|
done |
2862 |
|
|
done |
2863 |
|
|
IFS=$as_save_IFS |
2864 |
|
|
|
2865 |
pcg |
1.1 |
fi |
2866 |
|
|
fi |
2867 |
pcg |
1.11 |
CXX=$ac_cv_prog_CXX |
2868 |
|
|
if test -n "$CXX"; then |
2869 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
2870 |
|
|
echo "${ECHO_T}$CXX" >&6; } |
2871 |
pcg |
1.1 |
else |
2872 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2873 |
|
|
echo "${ECHO_T}no" >&6; } |
2874 |
pcg |
1.1 |
fi |
2875 |
|
|
|
2876 |
ayin |
1.108 |
|
2877 |
pcg |
1.11 |
test -n "$CXX" && break |
2878 |
|
|
done |
2879 |
|
|
fi |
2880 |
|
|
if test -z "$CXX"; then |
2881 |
|
|
ac_ct_CXX=$CXX |
2882 |
ayin |
1.108 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2883 |
pcg |
1.11 |
do |
2884 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2885 |
|
|
set dummy $ac_prog; ac_word=$2 |
2886 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2887 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2888 |
pcg |
1.11 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2889 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2890 |
pcg |
1.1 |
else |
2891 |
pcg |
1.11 |
if test -n "$ac_ct_CXX"; then |
2892 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2893 |
pcg |
1.1 |
else |
2894 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2895 |
|
|
for as_dir in $PATH |
2896 |
|
|
do |
2897 |
|
|
IFS=$as_save_IFS |
2898 |
|
|
test -z "$as_dir" && as_dir=. |
2899 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2900 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2901 |
pcg |
1.11 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2902 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2903 |
|
|
break 2 |
2904 |
|
|
fi |
2905 |
|
|
done |
2906 |
|
|
done |
2907 |
ayin |
1.108 |
IFS=$as_save_IFS |
2908 |
pcg |
1.11 |
|
2909 |
pcg |
1.1 |
fi |
2910 |
pcg |
1.11 |
fi |
2911 |
|
|
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2912 |
|
|
if test -n "$ac_ct_CXX"; then |
2913 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2914 |
|
|
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
2915 |
pcg |
1.11 |
else |
2916 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2917 |
|
|
echo "${ECHO_T}no" >&6; } |
2918 |
pcg |
1.1 |
fi |
2919 |
|
|
|
2920 |
ayin |
1.108 |
|
2921 |
pcg |
1.11 |
test -n "$ac_ct_CXX" && break |
2922 |
|
|
done |
2923 |
|
|
|
2924 |
ayin |
1.108 |
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 |
2937 |
|
|
CXX=$ac_ct_CXX |
2938 |
|
|
fi |
2939 |
pcg |
1.11 |
fi |
2940 |
|
|
|
2941 |
ayin |
1.108 |
fi |
2942 |
|
|
fi |
2943 |
pcg |
1.11 |
# Provide some information about the compiler. |
2944 |
ayin |
1.108 |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
2945 |
pcg |
1.11 |
ac_compiler=`set X $ac_compile; echo $2` |
2946 |
ayin |
1.108 |
{ (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 |
2952 |
|
|
(eval "$ac_compiler --version >&5") 2>&5 |
2953 |
pcg |
1.11 |
ac_status=$? |
2954 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2955 |
|
|
(exit $ac_status); } |
2956 |
ayin |
1.108 |
{ (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 |
2962 |
|
|
(eval "$ac_compiler -v >&5") 2>&5 |
2963 |
pcg |
1.11 |
ac_status=$? |
2964 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2965 |
|
|
(exit $ac_status); } |
2966 |
ayin |
1.108 |
{ (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 |
2972 |
|
|
(eval "$ac_compiler -V >&5") 2>&5 |
2973 |
pcg |
1.11 |
ac_status=$? |
2974 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2975 |
|
|
(exit $ac_status); } |
2976 |
|
|
|
2977 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2978 |
|
|
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
2979 |
pcg |
1.11 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2980 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2981 |
|
|
else |
2982 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
2983 |
|
|
/* confdefs.h. */ |
2984 |
|
|
_ACEOF |
2985 |
|
|
cat confdefs.h >>conftest.$ac_ext |
2986 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
2987 |
|
|
/* end confdefs.h. */ |
2988 |
|
|
|
2989 |
|
|
int |
2990 |
|
|
main () |
2991 |
|
|
{ |
2992 |
|
|
#ifndef __GNUC__ |
2993 |
|
|
choke me |
2994 |
|
|
#endif |
2995 |
|
|
|
2996 |
|
|
; |
2997 |
|
|
return 0; |
2998 |
|
|
} |
2999 |
|
|
_ACEOF |
3000 |
|
|
rm -f conftest.$ac_objext |
3001 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
3002 |
|
|
case "(($ac_try" in |
3003 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3004 |
|
|
*) ac_try_echo=$ac_try;; |
3005 |
|
|
esac |
3006 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3007 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
3008 |
pcg |
1.11 |
ac_status=$? |
3009 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3010 |
|
|
rm -f conftest.er1 |
3011 |
|
|
cat conftest.err >&5 |
3012 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3013 |
ayin |
1.108 |
(exit $ac_status); } && { |
3014 |
|
|
test -z "$ac_cxx_werror_flag" || |
3015 |
|
|
test ! -s conftest.err |
3016 |
|
|
} && test -s conftest.$ac_objext; then |
3017 |
pcg |
1.11 |
ac_compiler_gnu=yes |
3018 |
|
|
else |
3019 |
|
|
echo "$as_me: failed program was:" >&5 |
3020 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3021 |
|
|
|
3022 |
ayin |
1.108 |
ac_compiler_gnu=no |
3023 |
pcg |
1.11 |
fi |
3024 |
ayin |
1.108 |
|
3025 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3026 |
pcg |
1.11 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3027 |
|
|
|
3028 |
|
|
fi |
3029 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3030 |
|
|
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
3031 |
pcg |
1.11 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
3032 |
|
|
ac_test_CXXFLAGS=${CXXFLAGS+set} |
3033 |
|
|
ac_save_CXXFLAGS=$CXXFLAGS |
3034 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3035 |
|
|
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
3036 |
pcg |
1.11 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
3037 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3038 |
|
|
else |
3039 |
ayin |
1.108 |
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" |
3043 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3044 |
pcg |
1.11 |
/* confdefs.h. */ |
3045 |
|
|
_ACEOF |
3046 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3047 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3048 |
|
|
/* end confdefs.h. */ |
3049 |
|
|
|
3050 |
|
|
int |
3051 |
|
|
main () |
3052 |
|
|
{ |
3053 |
|
|
|
3054 |
|
|
; |
3055 |
|
|
return 0; |
3056 |
|
|
} |
3057 |
|
|
_ACEOF |
3058 |
|
|
rm -f conftest.$ac_objext |
3059 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
3060 |
|
|
case "(($ac_try" in |
3061 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3062 |
|
|
*) ac_try_echo=$ac_try;; |
3063 |
|
|
esac |
3064 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3065 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
3066 |
pcg |
1.11 |
ac_status=$? |
3067 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3068 |
|
|
rm -f conftest.er1 |
3069 |
|
|
cat conftest.err >&5 |
3070 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3071 |
ayin |
1.108 |
(exit $ac_status); } && { |
3072 |
|
|
test -z "$ac_cxx_werror_flag" || |
3073 |
|
|
test ! -s conftest.err |
3074 |
|
|
} && test -s conftest.$ac_objext; then |
3075 |
pcg |
1.11 |
ac_cv_prog_cxx_g=yes |
3076 |
|
|
else |
3077 |
|
|
echo "$as_me: failed program was:" >&5 |
3078 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3079 |
|
|
|
3080 |
ayin |
1.108 |
CXXFLAGS="" |
3081 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3082 |
pcg |
1.11 |
/* confdefs.h. */ |
3083 |
|
|
_ACEOF |
3084 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3085 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3086 |
|
|
/* end confdefs.h. */ |
3087 |
ayin |
1.108 |
|
3088 |
pcg |
1.11 |
int |
3089 |
|
|
main () |
3090 |
|
|
{ |
3091 |
ayin |
1.108 |
|
3092 |
pcg |
1.11 |
; |
3093 |
|
|
return 0; |
3094 |
|
|
} |
3095 |
|
|
_ACEOF |
3096 |
|
|
rm -f conftest.$ac_objext |
3097 |
ayin |
1.108 |
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 |
pcg |
1.11 |
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 |
ayin |
1.108 |
(exit $ac_status); } && { |
3110 |
|
|
test -z "$ac_cxx_werror_flag" || |
3111 |
|
|
test ! -s conftest.err |
3112 |
|
|
} && test -s conftest.$ac_objext; then |
3113 |
pcg |
1.11 |
: |
3114 |
|
|
else |
3115 |
|
|
echo "$as_me: failed program was:" >&5 |
3116 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3117 |
|
|
|
3118 |
ayin |
1.108 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3119 |
|
|
CXXFLAGS="-g" |
3120 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3121 |
pcg |
1.11 |
/* confdefs.h. */ |
3122 |
|
|
_ACEOF |
3123 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3124 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3125 |
|
|
/* end confdefs.h. */ |
3126 |
ayin |
1.108 |
|
3127 |
pcg |
1.11 |
int |
3128 |
|
|
main () |
3129 |
|
|
{ |
3130 |
ayin |
1.108 |
|
3131 |
pcg |
1.11 |
; |
3132 |
|
|
return 0; |
3133 |
|
|
} |
3134 |
|
|
_ACEOF |
3135 |
|
|
rm -f conftest.$ac_objext |
3136 |
ayin |
1.108 |
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 |
pcg |
1.11 |
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 |
ayin |
1.108 |
(exit $ac_status); } && { |
3149 |
|
|
test -z "$ac_cxx_werror_flag" || |
3150 |
|
|
test ! -s conftest.err |
3151 |
|
|
} && test -s conftest.$ac_objext; then |
3152 |
|
|
ac_cv_prog_cxx_g=yes |
3153 |
pcg |
1.11 |
else |
3154 |
|
|
echo "$as_me: failed program was:" >&5 |
3155 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3156 |
|
|
|
3157 |
ayin |
1.108 |
|
3158 |
pcg |
1.11 |
fi |
3159 |
ayin |
1.108 |
|
3160 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3161 |
|
|
fi |
3162 |
|
|
|
3163 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3164 |
pcg |
1.11 |
fi |
3165 |
|
|
|
3166 |
ayin |
1.108 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3167 |
|
|
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3168 |
|
|
fi |
3169 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3170 |
|
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
3171 |
|
|
if test "$ac_test_CXXFLAGS" = set; then |
3172 |
|
|
CXXFLAGS=$ac_save_CXXFLAGS |
3173 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then |
3174 |
|
|
if test "$GXX" = yes; then |
3175 |
|
|
CXXFLAGS="-g -O2" |
3176 |
|
|
else |
3177 |
|
|
CXXFLAGS="-g" |
3178 |
|
|
fi |
3179 |
|
|
else |
3180 |
|
|
if test "$GXX" = yes; then |
3181 |
|
|
CXXFLAGS="-O2" |
3182 |
|
|
else |
3183 |
|
|
CXXFLAGS= |
3184 |
|
|
fi |
3185 |
|
|
fi |
3186 |
pcg |
1.11 |
ac_ext=c |
3187 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
3188 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3189 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3190 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3191 |
pcg |
1.1 |
|
3192 |
pcg |
1.11 |
ac_ext=c |
3193 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
3194 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3195 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3196 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3197 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3198 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3199 |
pcg |
1.1 |
# On Suns, sometimes $CPP names a directory. |
3200 |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
3201 |
|
|
CPP= |
3202 |
|
|
fi |
3203 |
|
|
if test -z "$CPP"; then |
3204 |
pcg |
1.11 |
if test "${ac_cv_prog_CPP+set}" = set; then |
3205 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3206 |
pcg |
1.1 |
else |
3207 |
pcg |
1.11 |
# Double quotes because CPP needs to be expanded |
3208 |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3209 |
|
|
do |
3210 |
|
|
ac_preproc_ok=false |
3211 |
|
|
for ac_c_preproc_warn_flag in '' yes |
3212 |
|
|
do |
3213 |
|
|
# Use a header file that comes with gcc, so configuring glibc |
3214 |
|
|
# with a fresh cross-compiler works. |
3215 |
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3216 |
|
|
# <limits.h> exists even on freestanding compilers. |
3217 |
pcg |
1.1 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3218 |
pcg |
1.11 |
# not just through cpp. "Syntax error" is here to catch this case. |
3219 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3220 |
|
|
/* confdefs.h. */ |
3221 |
|
|
_ACEOF |
3222 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3223 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3224 |
|
|
/* end confdefs.h. */ |
3225 |
|
|
#ifdef __STDC__ |
3226 |
|
|
# include <limits.h> |
3227 |
|
|
#else |
3228 |
|
|
# include <assert.h> |
3229 |
|
|
#endif |
3230 |
|
|
Syntax error |
3231 |
|
|
_ACEOF |
3232 |
ayin |
1.108 |
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 |
3238 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3239 |
pcg |
1.11 |
ac_status=$? |
3240 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3241 |
|
|
rm -f conftest.er1 |
3242 |
|
|
cat conftest.err >&5 |
3243 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3244 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
3245 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3246 |
|
|
test ! -s conftest.err |
3247 |
|
|
}; then |
3248 |
pcg |
1.1 |
: |
3249 |
|
|
else |
3250 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
3251 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3252 |
|
|
|
3253 |
|
|
# Broken: fails on valid input. |
3254 |
|
|
continue |
3255 |
|
|
fi |
3256 |
ayin |
1.108 |
|
3257 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
3258 |
|
|
|
3259 |
ayin |
1.108 |
# OK, works on sane cases. Now check whether nonexistent headers |
3260 |
pcg |
1.11 |
# can be detected and how. |
3261 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3262 |
|
|
/* confdefs.h. */ |
3263 |
|
|
_ACEOF |
3264 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3265 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3266 |
|
|
/* end confdefs.h. */ |
3267 |
|
|
#include <ac_nonexistent.h> |
3268 |
|
|
_ACEOF |
3269 |
ayin |
1.108 |
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 |
3275 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3276 |
pcg |
1.11 |
ac_status=$? |
3277 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3278 |
|
|
rm -f conftest.er1 |
3279 |
|
|
cat conftest.err >&5 |
3280 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3281 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
3282 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3283 |
|
|
test ! -s conftest.err |
3284 |
|
|
}; then |
3285 |
pcg |
1.11 |
# Broken: success on invalid input. |
3286 |
|
|
continue |
3287 |
|
|
else |
3288 |
|
|
echo "$as_me: failed program was:" >&5 |
3289 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3290 |
|
|
|
3291 |
|
|
# Passes both tests. |
3292 |
|
|
ac_preproc_ok=: |
3293 |
|
|
break |
3294 |
|
|
fi |
3295 |
ayin |
1.108 |
|
3296 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
3297 |
|
|
|
3298 |
|
|
done |
3299 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3300 |
|
|
rm -f conftest.err conftest.$ac_ext |
3301 |
|
|
if $ac_preproc_ok; then |
3302 |
|
|
break |
3303 |
|
|
fi |
3304 |
|
|
|
3305 |
|
|
done |
3306 |
|
|
ac_cv_prog_CPP=$CPP |
3307 |
|
|
|
3308 |
|
|
fi |
3309 |
|
|
CPP=$ac_cv_prog_CPP |
3310 |
|
|
else |
3311 |
|
|
ac_cv_prog_CPP=$CPP |
3312 |
|
|
fi |
3313 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3314 |
|
|
echo "${ECHO_T}$CPP" >&6; } |
3315 |
pcg |
1.11 |
ac_preproc_ok=false |
3316 |
|
|
for ac_c_preproc_warn_flag in '' yes |
3317 |
|
|
do |
3318 |
|
|
# Use a header file that comes with gcc, so configuring glibc |
3319 |
|
|
# with a fresh cross-compiler works. |
3320 |
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3321 |
|
|
# <limits.h> exists even on freestanding compilers. |
3322 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
3323 |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
3324 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3325 |
|
|
/* confdefs.h. */ |
3326 |
|
|
_ACEOF |
3327 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3328 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3329 |
|
|
/* end confdefs.h. */ |
3330 |
|
|
#ifdef __STDC__ |
3331 |
|
|
# include <limits.h> |
3332 |
|
|
#else |
3333 |
|
|
# include <assert.h> |
3334 |
|
|
#endif |
3335 |
|
|
Syntax error |
3336 |
|
|
_ACEOF |
3337 |
ayin |
1.108 |
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 |
3343 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3344 |
pcg |
1.11 |
ac_status=$? |
3345 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3346 |
|
|
rm -f conftest.er1 |
3347 |
|
|
cat conftest.err >&5 |
3348 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3349 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
3350 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3351 |
|
|
test ! -s conftest.err |
3352 |
|
|
}; then |
3353 |
pcg |
1.1 |
: |
3354 |
|
|
else |
3355 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
3356 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3357 |
|
|
|
3358 |
|
|
# Broken: fails on valid input. |
3359 |
|
|
continue |
3360 |
pcg |
1.1 |
fi |
3361 |
ayin |
1.108 |
|
3362 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
3363 |
|
|
|
3364 |
ayin |
1.108 |
# OK, works on sane cases. Now check whether nonexistent headers |
3365 |
pcg |
1.11 |
# can be detected and how. |
3366 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3367 |
|
|
/* confdefs.h. */ |
3368 |
|
|
_ACEOF |
3369 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3370 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3371 |
|
|
/* end confdefs.h. */ |
3372 |
|
|
#include <ac_nonexistent.h> |
3373 |
|
|
_ACEOF |
3374 |
ayin |
1.108 |
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 |
3380 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3381 |
pcg |
1.11 |
ac_status=$? |
3382 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3383 |
|
|
rm -f conftest.er1 |
3384 |
|
|
cat conftest.err >&5 |
3385 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3386 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
3387 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3388 |
|
|
test ! -s conftest.err |
3389 |
|
|
}; then |
3390 |
pcg |
1.11 |
# Broken: success on invalid input. |
3391 |
|
|
continue |
3392 |
|
|
else |
3393 |
|
|
echo "$as_me: failed program was:" >&5 |
3394 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3395 |
|
|
|
3396 |
|
|
# Passes both tests. |
3397 |
|
|
ac_preproc_ok=: |
3398 |
|
|
break |
3399 |
pcg |
1.1 |
fi |
3400 |
ayin |
1.108 |
|
3401 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
3402 |
|
|
|
3403 |
|
|
done |
3404 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3405 |
|
|
rm -f conftest.err conftest.$ac_ext |
3406 |
|
|
if $ac_preproc_ok; then |
3407 |
|
|
: |
3408 |
pcg |
1.1 |
else |
3409 |
pcg |
1.11 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3410 |
|
|
See \`config.log' for more details." >&5 |
3411 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3412 |
|
|
See \`config.log' for more details." >&2;} |
3413 |
|
|
{ (exit 1); exit 1; }; } |
3414 |
pcg |
1.1 |
fi |
3415 |
pcg |
1.11 |
|
3416 |
|
|
ac_ext=c |
3417 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
3418 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3419 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3420 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3421 |
pcg |
1.1 |
|
3422 |
|
|
# Find a good install program. We prefer a C program (faster), |
3423 |
|
|
# so one script is as good as another. But avoid the broken or |
3424 |
|
|
# incompatible versions: |
3425 |
|
|
# SysV /etc/install, /usr/sbin/install |
3426 |
|
|
# SunOS /usr/etc/install |
3427 |
|
|
# IRIX /sbin/install |
3428 |
|
|
# AIX /bin/install |
3429 |
pcg |
1.11 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
3430 |
pcg |
1.1 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3431 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3432 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3433 |
pcg |
1.11 |
# OS/2's system install, which has a completely different semantic |
3434 |
pcg |
1.1 |
# ./install, which can be erroneously created by make from ./install.sh. |
3435 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3436 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
3437 |
pcg |
1.1 |
if test -z "$INSTALL"; then |
3438 |
pcg |
1.11 |
if test "${ac_cv_path_install+set}" = set; then |
3439 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3440 |
pcg |
1.1 |
else |
3441 |
pcg |
1.11 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3442 |
|
|
for as_dir in $PATH |
3443 |
|
|
do |
3444 |
|
|
IFS=$as_save_IFS |
3445 |
|
|
test -z "$as_dir" && as_dir=. |
3446 |
|
|
# Account for people who put trailing slashes in PATH elements. |
3447 |
|
|
case $as_dir/ in |
3448 |
|
|
./ | .// | /cC/* | \ |
3449 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3450 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3451 |
|
|
/usr/ucb/* ) ;; |
3452 |
|
|
*) |
3453 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install. |
3454 |
|
|
# Don't use installbsd from OSF since it installs stuff as root |
3455 |
|
|
# by default. |
3456 |
|
|
for ac_prog in ginstall scoinst install; do |
3457 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3458 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3459 |
pcg |
1.1 |
if test $ac_prog = install && |
3460 |
pcg |
1.11 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3461 |
pcg |
1.1 |
# AIX install. It has an incompatible calling convention. |
3462 |
|
|
: |
3463 |
pcg |
1.11 |
elif test $ac_prog = install && |
3464 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3465 |
|
|
# program-specific install script used by HP pwplus--don't use. |
3466 |
|
|
: |
3467 |
pcg |
1.1 |
else |
3468 |
pcg |
1.11 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3469 |
|
|
break 3 |
3470 |
pcg |
1.1 |
fi |
3471 |
|
|
fi |
3472 |
|
|
done |
3473 |
pcg |
1.11 |
done |
3474 |
|
|
;; |
3475 |
|
|
esac |
3476 |
|
|
done |
3477 |
ayin |
1.108 |
IFS=$as_save_IFS |
3478 |
pcg |
1.11 |
|
3479 |
pcg |
1.1 |
|
3480 |
|
|
fi |
3481 |
|
|
if test "${ac_cv_path_install+set}" = set; then |
3482 |
pcg |
1.11 |
INSTALL=$ac_cv_path_install |
3483 |
pcg |
1.1 |
else |
3484 |
ayin |
1.108 |
# As a last resort, use the slow shell script. Don't cache a |
3485 |
|
|
# value for INSTALL within a source directory, because that will |
3486 |
pcg |
1.1 |
# break other packages using the cache if that directory is |
3487 |
ayin |
1.108 |
# removed, or if the value is a relative name. |
3488 |
pcg |
1.11 |
INSTALL=$ac_install_sh |
3489 |
pcg |
1.1 |
fi |
3490 |
|
|
fi |
3491 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3492 |
|
|
echo "${ECHO_T}$INSTALL" >&6; } |
3493 |
pcg |
1.1 |
|
3494 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3495 |
|
|
# It thinks the first close brace ends the variable substitution. |
3496 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3497 |
|
|
|
3498 |
pcg |
1.11 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3499 |
pcg |
1.1 |
|
3500 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3501 |
|
|
|
3502 |
|
|
|
3503 |
pcg |
1.11 |
|
3504 |
|
|
|
3505 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3506 |
|
|
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3507 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then |
3508 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3509 |
|
|
else |
3510 |
|
|
# Extract the first word of "grep ggrep" to use in msg output |
3511 |
|
|
if test -z "$GREP"; then |
3512 |
|
|
set dummy grep ggrep; ac_prog_name=$2 |
3513 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then |
3514 |
ayin |
1.102 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3515 |
|
|
else |
3516 |
ayin |
1.108 |
ac_path_GREP_found=false |
3517 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST |
3518 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3519 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3520 |
|
|
do |
3521 |
|
|
IFS=$as_save_IFS |
3522 |
|
|
test -z "$as_dir" && as_dir=. |
3523 |
|
|
for ac_prog in grep ggrep; do |
3524 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3525 |
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3526 |
|
|
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3527 |
|
|
# Check for GNU ac_path_GREP and select it if it is found. |
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 |
3548 |
root |
1.105 |
fi |
3549 |
ayin |
1.108 |
# 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 |
3558 |
|
|
done |
3559 |
root |
1.105 |
|
3560 |
ayin |
1.108 |
done |
3561 |
|
|
IFS=$as_save_IFS |
3562 |
root |
1.105 |
|
3563 |
|
|
|
3564 |
ayin |
1.108 |
fi |
3565 |
pcg |
1.1 |
|
3566 |
ayin |
1.108 |
GREP="$ac_cv_path_GREP" |
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 |
root |
1.105 |
|
3573 |
root |
1.80 |
else |
3574 |
ayin |
1.108 |
ac_cv_path_GREP=$GREP |
3575 |
root |
1.105 |
fi |
3576 |
|
|
|
3577 |
root |
1.80 |
|
3578 |
ayin |
1.108 |
fi |
3579 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3580 |
|
|
echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3581 |
|
|
GREP="$ac_cv_path_GREP" |
3582 |
|
|
|
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 |
root |
1.105 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3597 |
|
|
else |
3598 |
ayin |
1.108 |
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 |
3640 |
|
|
done |
3641 |
|
|
|
3642 |
|
|
done |
3643 |
|
|
IFS=$as_save_IFS |
3644 |
|
|
|
3645 |
|
|
|
3646 |
|
|
fi |
3647 |
|
|
|
3648 |
|
|
EGREP="$ac_cv_path_EGREP" |
3649 |
|
|
if test -z "$EGREP"; then |
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 |
|
|
|
3655 |
|
|
else |
3656 |
|
|
ac_cv_path_EGREP=$EGREP |
3657 |
|
|
fi |
3658 |
|
|
|
3659 |
|
|
|
3660 |
|
|
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" |
3665 |
|
|
|
3666 |
|
|
|
3667 |
|
|
|
3668 |
|
|
{ echo "$as_me:$LINENO: checking for AIX" >&5 |
3669 |
|
|
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
3670 |
root |
1.105 |
cat >conftest.$ac_ext <<_ACEOF |
3671 |
ayin |
1.104 |
/* confdefs.h. */ |
3672 |
|
|
_ACEOF |
3673 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3674 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3675 |
|
|
/* end confdefs.h. */ |
3676 |
ayin |
1.108 |
#ifdef _AIX |
3677 |
|
|
yes |
3678 |
|
|
#endif |
3679 |
ayin |
1.104 |
|
3680 |
|
|
_ACEOF |
3681 |
ayin |
1.108 |
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 |
3688 |
|
|
|
3689 |
ayin |
1.104 |
else |
3690 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3691 |
|
|
echo "${ECHO_T}no" >&6; } |
3692 |
|
|
fi |
3693 |
|
|
rm -f conftest* |
3694 |
|
|
|
3695 |
ayin |
1.104 |
|
3696 |
ayin |
1.121 |
|
3697 |
|
|
cat >>confdefs.h <<\_ACEOF |
3698 |
|
|
#define _GNU_SOURCE 1 |
3699 |
|
|
_ACEOF |
3700 |
|
|
|
3701 |
|
|
|
3702 |
ayin |
1.108 |
{ 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 |
ayin |
1.106 |
/* confdefs.h. */ |
3710 |
|
|
_ACEOF |
3711 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3712 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3713 |
|
|
/* end confdefs.h. */ |
3714 |
|
|
|
3715 |
ayin |
1.108 |
/* 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 |
ayin |
1.106 |
#ifdef __cplusplus |
3719 |
|
|
extern "C" |
3720 |
|
|
#endif |
3721 |
|
|
char strerror (); |
3722 |
|
|
int |
3723 |
|
|
main () |
3724 |
|
|
{ |
3725 |
ayin |
1.108 |
return strerror (); |
3726 |
ayin |
1.106 |
; |
3727 |
|
|
return 0; |
3728 |
|
|
} |
3729 |
|
|
_ACEOF |
3730 |
ayin |
1.108 |
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 |
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 |
3743 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3744 |
|
|
(eval "$ac_link") 2>conftest.er1 |
3745 |
ayin |
1.106 |
ac_status=$? |
3746 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
3747 |
|
|
rm -f conftest.er1 |
3748 |
|
|
cat conftest.err >&5 |
3749 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3750 |
ayin |
1.108 |
(exit $ac_status); } && { |
3751 |
|
|
test -z "$ac_c_werror_flag" || |
3752 |
|
|
test ! -s conftest.err |
3753 |
|
|
} && test -s conftest$ac_exeext && |
3754 |
|
|
$as_test_x conftest$ac_exeext; then |
3755 |
|
|
ac_cv_search_strerror=$ac_res |
3756 |
ayin |
1.106 |
else |
3757 |
|
|
echo "$as_me: failed program was:" >&5 |
3758 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3759 |
|
|
|
3760 |
ayin |
1.108 |
|
3761 |
|
|
fi |
3762 |
|
|
|
3763 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3764 |
|
|
conftest$ac_exeext |
3765 |
|
|
if test "${ac_cv_search_strerror+set}" = set; then |
3766 |
|
|
break |
3767 |
ayin |
1.106 |
fi |
3768 |
ayin |
1.108 |
done |
3769 |
|
|
if test "${ac_cv_search_strerror+set}" = set; then |
3770 |
|
|
: |
3771 |
|
|
else |
3772 |
|
|
ac_cv_search_strerror=no |
3773 |
ayin |
1.106 |
fi |
3774 |
ayin |
1.108 |
rm conftest.$ac_ext |
3775 |
ayin |
1.106 |
LIBS=$ac_func_search_save_LIBS |
3776 |
|
|
fi |
3777 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3778 |
|
|
echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3779 |
|
|
ac_res=$ac_cv_search_strerror |
3780 |
|
|
if test "$ac_res" != no; then |
3781 |
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3782 |
ayin |
1.106 |
|
3783 |
|
|
fi |
3784 |
|
|
|
3785 |
ayin |
1.108 |
ac_ext=cpp |
3786 |
ayin |
1.106 |
ac_cpp='$CXXCPP $CPPFLAGS' |
3787 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3788 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3789 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3790 |
|
|
|
3791 |
|
|
|
3792 |
|
|
if test x$GCC = xyes && test x$GXX = xyes; then |
3793 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
3794 |
|
|
echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } |
3795 |
ayin |
1.106 |
save_CXX="$CXX" |
3796 |
|
|
save_LIBS="$LIBS" |
3797 |
|
|
CXX="$CC" |
3798 |
|
|
LIBS="$LIBS -lsupc++" |
3799 |
|
|
LINKER="$CC" |
3800 |
|
|
|
3801 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
3802 |
root |
1.80 |
/* confdefs.h. */ |
3803 |
|
|
_ACEOF |
3804 |
|
|
cat confdefs.h >>conftest.$ac_ext |
3805 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
3806 |
|
|
/* end confdefs.h. */ |
3807 |
root |
1.84 |
struct test { }; void f() try { throw new test; } catch (...) { throw; } |
3808 |
root |
1.80 |
int |
3809 |
|
|
main () |
3810 |
|
|
{ |
3811 |
root |
1.84 |
|
3812 |
root |
1.80 |
; |
3813 |
|
|
return 0; |
3814 |
|
|
} |
3815 |
|
|
_ACEOF |
3816 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
3817 |
ayin |
1.108 |
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 |
root |
1.80 |
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 |
ayin |
1.108 |
(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 |
root |
1.80 |
else |
3837 |
|
|
echo "$as_me: failed program was:" >&5 |
3838 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3839 |
|
|
|
3840 |
root |
1.84 |
|
3841 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
3842 |
|
|
echo "${ECHO_T}no, making everything bigger and slower" >&6; } |
3843 |
root |
1.84 |
LIBS="$save_LIBS" |
3844 |
root |
1.85 |
LINKER="$save_CXX" |
3845 |
root |
1.84 |
|
3846 |
|
|
|
3847 |
root |
1.80 |
fi |
3848 |
ayin |
1.108 |
|
3849 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3850 |
root |
1.80 |
conftest$ac_exeext conftest.$ac_ext |
3851 |
root |
1.85 |
CXX="$save_CXX" |
3852 |
root |
1.80 |
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 |
root |
1.120 |
CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3859 |
root |
1.84 |
cat >conftest.$ac_ext <<_ACEOF |
3860 |
root |
1.83 |
/* 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 |
root |
1.80 |
_ACEOF |
3874 |
|
|
rm -f conftest.$ac_objext |
3875 |
ayin |
1.108 |
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 |
root |
1.80 |
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 |
ayin |
1.108 |
(exit $ac_status); } && { |
3888 |
|
|
test -z "$ac_cxx_werror_flag" || |
3889 |
|
|
test ! -s conftest.err |
3890 |
|
|
} && test -s conftest.$ac_objext; then |
3891 |
root |
1.82 |
: |
3892 |
root |
1.80 |
else |
3893 |
|
|
echo "$as_me: failed program was:" >&5 |
3894 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3895 |
|
|
|
3896 |
ayin |
1.108 |
CXXFLAGS="-g -O3" |
3897 |
root |
1.80 |
fi |
3898 |
ayin |
1.108 |
|
3899 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3900 |
root |
1.80 |
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 |
root |
1.105 |
#define _XOPEN_SOURCE 500 |
3911 |
root |
1.80 |
_ACEOF |
3912 |
pcg |
1.11 |
|
3913 |
root |
1.80 |
;; |
3914 |
|
|
esac |
3915 |
pcg |
1.1 |
|
3916 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for setlocale" >&5 |
3917 |
|
|
echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3918 |
root |
1.57 |
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 |
ayin |
1.108 |
/* 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 |
root |
1.57 |
#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 |
ayin |
1.108 |
#if defined __stub_setlocale || defined __stub___setlocale |
3955 |
root |
1.57 |
choke me |
3956 |
|
|
#endif |
3957 |
|
|
|
3958 |
|
|
int |
3959 |
|
|
main () |
3960 |
|
|
{ |
3961 |
ayin |
1.108 |
return setlocale (); |
3962 |
root |
1.57 |
; |
3963 |
|
|
return 0; |
3964 |
|
|
} |
3965 |
|
|
_ACEOF |
3966 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
3967 |
ayin |
1.108 |
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 |
root |
1.57 |
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 |
ayin |
1.108 |
(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 |
root |
1.57 |
ac_cv_func_setlocale=yes |
3985 |
|
|
else |
3986 |
|
|
echo "$as_me: failed program was:" >&5 |
3987 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3988 |
|
|
|
3989 |
ayin |
1.108 |
ac_cv_func_setlocale=no |
3990 |
root |
1.57 |
fi |
3991 |
ayin |
1.108 |
|
3992 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3993 |
root |
1.57 |
conftest$ac_exeext conftest.$ac_ext |
3994 |
|
|
fi |
3995 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
3996 |
|
|
echo "${ECHO_T}$ac_cv_func_setlocale" >&6; } |
3997 |
root |
1.57 |
if test $ac_cv_func_setlocale = yes; then |
3998 |
|
|
: |
3999 |
|
|
else |
4000 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
4001 |
|
|
echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; } |
4002 |
pcg |
1.25 |
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 |
ayin |
1.108 |
/* 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 |
pcg |
1.25 |
#ifdef __cplusplus |
4018 |
|
|
extern "C" |
4019 |
|
|
#endif |
4020 |
|
|
char setlocale (); |
4021 |
|
|
int |
4022 |
|
|
main () |
4023 |
|
|
{ |
4024 |
ayin |
1.108 |
return setlocale (); |
4025 |
pcg |
1.25 |
; |
4026 |
|
|
return 0; |
4027 |
|
|
} |
4028 |
|
|
_ACEOF |
4029 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4030 |
ayin |
1.108 |
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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
(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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
ac_cv_lib_xpg4_setlocale=no |
4053 |
pcg |
1.25 |
fi |
4054 |
ayin |
1.108 |
|
4055 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4056 |
pcg |
1.25 |
conftest$ac_exeext conftest.$ac_ext |
4057 |
|
|
LIBS=$ac_check_lib_save_LIBS |
4058 |
|
|
fi |
4059 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
4060 |
|
|
echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } |
4061 |
pcg |
1.25 |
if test $ac_cv_lib_xpg4_setlocale = yes; then |
4062 |
|
|
LIBS="$LIBS -lxpg4" |
4063 |
|
|
fi |
4064 |
|
|
|
4065 |
root |
1.57 |
fi |
4066 |
|
|
|
4067 |
|
|
|
4068 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
4069 |
|
|
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
4070 |
root |
1.57 |
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 |
ayin |
1.108 |
/* 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 |
root |
1.57 |
#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 |
ayin |
1.108 |
#if defined __stub_gethostbyname || defined __stub___gethostbyname |
4107 |
root |
1.57 |
choke me |
4108 |
|
|
#endif |
4109 |
|
|
|
4110 |
|
|
int |
4111 |
|
|
main () |
4112 |
|
|
{ |
4113 |
ayin |
1.108 |
return gethostbyname (); |
4114 |
root |
1.57 |
; |
4115 |
|
|
return 0; |
4116 |
|
|
} |
4117 |
|
|
_ACEOF |
4118 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4119 |
ayin |
1.108 |
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 |
root |
1.57 |
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 |
ayin |
1.108 |
(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 |
root |
1.57 |
ac_cv_func_gethostbyname=yes |
4137 |
|
|
else |
4138 |
|
|
echo "$as_me: failed program was:" >&5 |
4139 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4140 |
pcg |
1.25 |
|
4141 |
ayin |
1.108 |
ac_cv_func_gethostbyname=no |
4142 |
root |
1.57 |
fi |
4143 |
ayin |
1.108 |
|
4144 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4145 |
root |
1.57 |
conftest$ac_exeext conftest.$ac_ext |
4146 |
|
|
fi |
4147 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
4148 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
4149 |
root |
1.57 |
if test $ac_cv_func_gethostbyname = yes; then |
4150 |
|
|
: |
4151 |
|
|
else |
4152 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
4153 |
|
|
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
4154 |
pcg |
1.25 |
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 |
ayin |
1.108 |
/* 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 |
pcg |
1.25 |
#ifdef __cplusplus |
4170 |
|
|
extern "C" |
4171 |
|
|
#endif |
4172 |
|
|
char gethostbyname (); |
4173 |
|
|
int |
4174 |
|
|
main () |
4175 |
|
|
{ |
4176 |
ayin |
1.108 |
return gethostbyname (); |
4177 |
pcg |
1.25 |
; |
4178 |
|
|
return 0; |
4179 |
|
|
} |
4180 |
|
|
_ACEOF |
4181 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4182 |
ayin |
1.108 |
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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
(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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
ac_cv_lib_nsl_gethostbyname=no |
4205 |
pcg |
1.25 |
fi |
4206 |
ayin |
1.108 |
|
4207 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4208 |
pcg |
1.25 |
conftest$ac_exeext conftest.$ac_ext |
4209 |
|
|
LIBS=$ac_check_lib_save_LIBS |
4210 |
|
|
fi |
4211 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
4212 |
|
|
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
4213 |
pcg |
1.25 |
if test $ac_cv_lib_nsl_gethostbyname = yes; then |
4214 |
|
|
LIBS="$LIBS -lnsl" |
4215 |
|
|
fi |
4216 |
|
|
|
4217 |
root |
1.57 |
fi |
4218 |
|
|
|
4219 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for socket" >&5 |
4220 |
|
|
echo $ECHO_N "checking for socket... $ECHO_C" >&6; } |
4221 |
root |
1.57 |
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 |
ayin |
1.108 |
/* 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 |
root |
1.57 |
#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 |
ayin |
1.108 |
#if defined __stub_socket || defined __stub___socket |
4258 |
root |
1.57 |
choke me |
4259 |
|
|
#endif |
4260 |
|
|
|
4261 |
|
|
int |
4262 |
|
|
main () |
4263 |
|
|
{ |
4264 |
ayin |
1.108 |
return socket (); |
4265 |
root |
1.57 |
; |
4266 |
|
|
return 0; |
4267 |
|
|
} |
4268 |
|
|
_ACEOF |
4269 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4270 |
ayin |
1.108 |
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 |
root |
1.57 |
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 |
ayin |
1.108 |
(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 |
root |
1.57 |
ac_cv_func_socket=yes |
4288 |
|
|
else |
4289 |
|
|
echo "$as_me: failed program was:" >&5 |
4290 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4291 |
|
|
|
4292 |
ayin |
1.108 |
ac_cv_func_socket=no |
4293 |
root |
1.57 |
fi |
4294 |
ayin |
1.108 |
|
4295 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4296 |
root |
1.57 |
conftest$ac_exeext conftest.$ac_ext |
4297 |
|
|
fi |
4298 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
4299 |
|
|
echo "${ECHO_T}$ac_cv_func_socket" >&6; } |
4300 |
root |
1.57 |
if test $ac_cv_func_socket = yes; then |
4301 |
|
|
: |
4302 |
|
|
else |
4303 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
4304 |
|
|
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
4305 |
pcg |
1.25 |
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 |
ayin |
1.108 |
/* 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 |
pcg |
1.25 |
#ifdef __cplusplus |
4321 |
|
|
extern "C" |
4322 |
|
|
#endif |
4323 |
|
|
char socket (); |
4324 |
|
|
int |
4325 |
|
|
main () |
4326 |
|
|
{ |
4327 |
ayin |
1.108 |
return socket (); |
4328 |
pcg |
1.25 |
; |
4329 |
|
|
return 0; |
4330 |
|
|
} |
4331 |
|
|
_ACEOF |
4332 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4333 |
ayin |
1.108 |
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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
(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 |
pcg |
1.25 |
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 |
ayin |
1.108 |
ac_cv_lib_socket_socket=no |
4356 |
root |
1.51 |
fi |
4357 |
ayin |
1.108 |
|
4358 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4359 |
root |
1.51 |
conftest$ac_exeext conftest.$ac_ext |
4360 |
|
|
LIBS=$ac_check_lib_save_LIBS |
4361 |
|
|
fi |
4362 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
4363 |
|
|
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
4364 |
root |
1.51 |
if test $ac_cv_lib_socket_socket = yes; then |
4365 |
|
|
LIBS="$LIBS -lsocket" |
4366 |
pcg |
1.1 |
fi |
4367 |
|
|
|
4368 |
root |
1.57 |
fi |
4369 |
|
|
|
4370 |
pcg |
1.1 |
|
4371 |
|
|
|
4372 |
root |
1.54 |
support_frills=yes |
4373 |
root |
1.62 |
support_inheritpixmap=yes |
4374 |
root |
1.54 |
support_fading=yes |
4375 |
|
|
support_keepscrolling=yes |
4376 |
|
|
support_selectionscrolling=yes |
4377 |
|
|
support_mousewheel=yes |
4378 |
|
|
support_mouseslipwheel=yes |
4379 |
|
|
support_text_blink=yes |
4380 |
|
|
support_pointer_blank=yes |
4381 |
|
|
support_scroll_rxvt=yes |
4382 |
|
|
support_scroll_next=yes |
4383 |
|
|
support_scroll_xterm=yes |
4384 |
|
|
support_scroll_plain=yes |
4385 |
|
|
support_xim=yes |
4386 |
root |
1.103 |
support_afterimage=yes |
4387 |
|
|
support_afterstep=yes |
4388 |
root |
1.54 |
support_xft=yes |
4389 |
pcg |
1.1 |
support_unicode3=no |
4390 |
root |
1.54 |
support_combining=yes |
4391 |
root |
1.26 |
support_8bitctrls=no |
4392 |
root |
1.54 |
support_iso14755=yes |
4393 |
|
|
support_styles=yes |
4394 |
root |
1.62 |
support_perl=yes |
4395 |
root |
1.54 |
codesets=all |
4396 |
pcg |
1.1 |
|
4397 |
|
|
|
4398 |
|
|
|
4399 |
ayin |
1.108 |
# Check whether --enable-everything was given. |
4400 |
pcg |
1.1 |
if test "${enable_everything+set}" = set; then |
4401 |
ayin |
1.108 |
enableval=$enable_everything; |
4402 |
root |
1.54 |
if test x$enableval = xno; then |
4403 |
|
|
support_frills=no |
4404 |
|
|
support_inheritpixmap=no |
4405 |
|
|
support_fading=no |
4406 |
|
|
support_keepscrolling=no |
4407 |
|
|
support_selectionscrolling=no |
4408 |
|
|
support_lastlog=no |
4409 |
|
|
support_mousewheel=no |
4410 |
|
|
support_mouseslipwheel=no |
4411 |
|
|
support_text_blink=no |
4412 |
|
|
support_pointer_blank=no |
4413 |
|
|
support_scroll_rxvt=no |
4414 |
|
|
support_scroll_next=no |
4415 |
|
|
support_scroll_xterm=no |
4416 |
|
|
support_scroll_plain=no |
4417 |
|
|
support_utmp=no |
4418 |
|
|
support_wtmp=no |
4419 |
|
|
support_xim=no |
4420 |
root |
1.103 |
support_afterimage=no |
4421 |
|
|
support_afterstep=no |
4422 |
root |
1.54 |
support_xft=no |
4423 |
|
|
support_unicode3=no |
4424 |
|
|
support_combining=no |
4425 |
|
|
support_8bitctrls=no |
4426 |
|
|
support_iso14755=no |
4427 |
|
|
support_styles=no |
4428 |
root |
1.60 |
support_perl=no |
4429 |
root |
1.54 |
codesets= |
4430 |
|
|
fi |
4431 |
|
|
if test x$enableval = xyes; then |
4432 |
|
|
support_frills=yes |
4433 |
|
|
support_inheritpixmap=yes |
4434 |
|
|
support_fading=yes |
4435 |
|
|
support_keepscrolling=yes |
4436 |
|
|
support_selectionscrolling=yes |
4437 |
|
|
support_lastlog=yes |
4438 |
|
|
support_mousewheel=yes |
4439 |
|
|
support_mouseslipwheel=yes |
4440 |
|
|
support_text_blink=yes |
4441 |
|
|
support_pointer_blank=yes |
4442 |
|
|
support_scroll_rxvt=yes |
4443 |
|
|
support_scroll_next=yes |
4444 |
|
|
support_scroll_xterm=yes |
4445 |
|
|
support_scroll_plain=yes |
4446 |
|
|
support_utmp=yes |
4447 |
|
|
support_wtmp=yes |
4448 |
|
|
support_xim=yes |
4449 |
root |
1.103 |
support_afterimage=yes |
4450 |
|
|
support_afterstep=yes |
4451 |
root |
1.54 |
support_xft=yes |
4452 |
|
|
support_unicode3=yes |
4453 |
|
|
support_combining=yes |
4454 |
|
|
#support_8bitctrls=yes |
4455 |
|
|
support_iso14755=yes |
4456 |
|
|
support_styles=yes |
4457 |
root |
1.60 |
support_perl=yes |
4458 |
root |
1.54 |
codesets=all |
4459 |
|
|
fi |
4460 |
|
|
|
4461 |
ayin |
1.108 |
fi |
4462 |
|
|
|
4463 |
pcg |
1.4 |
|
4464 |
ayin |
1.114 |
WARNINGS=no |
4465 |
|
|
# Check whether --enable-warnings was given. |
4466 |
|
|
if test "${enable_warnings+set}" = set; then |
4467 |
|
|
enableval=$enable_warnings; if test x$enableval = xyes; then |
4468 |
|
|
WARNINGS=yes |
4469 |
|
|
fi |
4470 |
|
|
fi |
4471 |
|
|
|
4472 |
|
|
if test x$GXX = xyes; then |
4473 |
|
|
if test $WARNINGS = yes; then |
4474 |
|
|
save_CXXFLAGS="$CXXFLAGS" |
4475 |
|
|
CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
4476 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
4477 |
|
|
/* confdefs.h. */ |
4478 |
|
|
_ACEOF |
4479 |
|
|
cat confdefs.h >>conftest.$ac_ext |
4480 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
4481 |
|
|
/* end confdefs.h. */ |
4482 |
|
|
|
4483 |
|
|
int |
4484 |
|
|
main () |
4485 |
|
|
{ |
4486 |
|
|
|
4487 |
|
|
; |
4488 |
|
|
return 0; |
4489 |
|
|
} |
4490 |
|
|
_ACEOF |
4491 |
|
|
rm -f conftest.$ac_objext |
4492 |
|
|
if { (ac_try="$ac_compile" |
4493 |
|
|
case "(($ac_try" in |
4494 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4495 |
|
|
*) ac_try_echo=$ac_try;; |
4496 |
|
|
esac |
4497 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4498 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
4499 |
|
|
ac_status=$? |
4500 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
4501 |
|
|
rm -f conftest.er1 |
4502 |
|
|
cat conftest.err >&5 |
4503 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4504 |
|
|
(exit $ac_status); } && { |
4505 |
|
|
test -z "$ac_cxx_werror_flag" || |
4506 |
|
|
test ! -s conftest.err |
4507 |
|
|
} && test -s conftest.$ac_objext; then |
4508 |
|
|
: |
4509 |
|
|
else |
4510 |
|
|
echo "$as_me: failed program was:" >&5 |
4511 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4512 |
|
|
|
4513 |
|
|
CXXFLAGS="$save_CXXFLAGS" |
4514 |
|
|
fi |
4515 |
|
|
|
4516 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4517 |
|
|
else |
4518 |
|
|
CXXFLAGS="$CXXFLAGS -w" |
4519 |
|
|
fi |
4520 |
|
|
fi |
4521 |
|
|
|
4522 |
ayin |
1.108 |
# Check whether --enable-unicode3 was given. |
4523 |
pcg |
1.1 |
if test "${enable_unicode3+set}" = set; then |
4524 |
ayin |
1.108 |
enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4525 |
root |
1.39 |
support_unicode3=$enableval |
4526 |
pcg |
1.1 |
fi |
4527 |
ayin |
1.108 |
fi |
4528 |
root |
1.105 |
|
4529 |
ayin |
1.108 |
|
4530 |
|
|
# Check whether --enable-combining was given. |
4531 |
pcg |
1.18 |
if test "${enable_combining+set}" = set; then |
4532 |
ayin |
1.108 |
enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
4533 |
root |
1.39 |
support_combining=$enableval |
4534 |
pcg |
1.18 |
fi |
4535 |
ayin |
1.108 |
fi |
4536 |
root |
1.105 |
|
4537 |
ayin |
1.108 |
|
4538 |
|
|
# Check whether --enable-xft was given. |
4539 |
pcg |
1.1 |
if test "${enable_xft+set}" = set; then |
4540 |
ayin |
1.108 |
enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
4541 |
root |
1.39 |
support_xft=$enableval |
4542 |
|
|
fi |
4543 |
ayin |
1.108 |
fi |
4544 |
root |
1.105 |
|
4545 |
ayin |
1.108 |
|
4546 |
|
|
# Check whether --enable-font-styles was given. |
4547 |
root |
1.39 |
if test "${enable_font_styles+set}" = set; then |
4548 |
ayin |
1.108 |
enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4549 |
root |
1.39 |
support_styles=$enableval |
4550 |
pcg |
1.1 |
fi |
4551 |
ayin |
1.108 |
fi |
4552 |
root |
1.105 |
|
4553 |
ayin |
1.108 |
|
4554 |
|
|
# Check whether --enable-afterimage was given. |
4555 |
root |
1.103 |
if test "${enable_afterimage+set}" = set; then |
4556 |
ayin |
1.108 |
enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4557 |
root |
1.103 |
support_afterimage=$enableval |
4558 |
|
|
fi |
4559 |
ayin |
1.108 |
fi |
4560 |
root |
1.103 |
|
4561 |
root |
1.105 |
|
4562 |
ayin |
1.108 |
|
4563 |
|
|
# Check whether --with-afterimage_config was given. |
4564 |
root |
1.103 |
if test "${with_afterimage_config+set}" = set; then |
4565 |
ayin |
1.108 |
withval=$with_afterimage_config; if test "x$withval" != x; then |
4566 |
ayin |
1.104 |
afterimage_config=$withval/afterimage-config |
4567 |
|
|
fi |
4568 |
ayin |
1.108 |
fi |
4569 |
root |
1.105 |
|
4570 |
ayin |
1.108 |
|
4571 |
|
|
|
4572 |
|
|
# Check whether --enable-transparency was given. |
4573 |
pcg |
1.1 |
if test "${enable_transparency+set}" = set; then |
4574 |
ayin |
1.108 |
enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4575 |
pcg |
1.1 |
support_inheritpixmap=$enableval |
4576 |
|
|
fi |
4577 |
ayin |
1.108 |
fi |
4578 |
root |
1.105 |
|
4579 |
ayin |
1.108 |
|
4580 |
|
|
# Check whether --enable-fading was given. |
4581 |
root |
1.31 |
if test "${enable_fading+set}" = set; then |
4582 |
ayin |
1.108 |
enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4583 |
root |
1.31 |
support_fading=$enableval |
4584 |
|
|
fi |
4585 |
ayin |
1.108 |
fi |
4586 |
root |
1.105 |
|
4587 |
ayin |
1.108 |
|
4588 |
|
|
# Check whether --enable-rxvt-scroll was given. |
4589 |
pcg |
1.1 |
if test "${enable_rxvt_scroll+set}" = set; then |
4590 |
ayin |
1.108 |
enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4591 |
pcg |
1.1 |
support_scroll_rxvt=$enableval |
4592 |
|
|
fi |
4593 |
ayin |
1.108 |
fi |
4594 |
root |
1.105 |
|
4595 |
ayin |
1.108 |
|
4596 |
|
|
# Check whether --enable-next-scroll was given. |
4597 |
pcg |
1.1 |
if test "${enable_next_scroll+set}" = set; then |
4598 |
ayin |
1.108 |
enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4599 |
pcg |
1.1 |
support_scroll_next=$enableval |
4600 |
|
|
fi |
4601 |
ayin |
1.108 |
fi |
4602 |
root |
1.105 |
|
4603 |
ayin |
1.108 |
|
4604 |
|
|
# Check whether --enable-xterm-scroll was given. |
4605 |
pcg |
1.1 |
if test "${enable_xterm_scroll+set}" = set; then |
4606 |
ayin |
1.108 |
enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4607 |
pcg |
1.1 |
support_scroll_xterm=$enableval |
4608 |
|
|
fi |
4609 |
ayin |
1.108 |
fi |
4610 |
root |
1.105 |
|
4611 |
ayin |
1.108 |
|
4612 |
ayin |
1.121 |
# Check whether --enable-plain-scroll was given. |
4613 |
|
|
if test "${enable_plain_scroll+set}" = set; then |
4614 |
|
|
enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4615 |
|
|
support_scroll_plain=$enableval |
4616 |
|
|
fi |
4617 |
|
|
fi |
4618 |
|
|
|
4619 |
|
|
|
4620 |
ayin |
1.108 |
# Check whether --enable-perl was given. |
4621 |
root |
1.60 |
if test "${enable_perl+set}" = set; then |
4622 |
ayin |
1.108 |
enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4623 |
root |
1.60 |
support_perl=$enableval |
4624 |
|
|
fi |
4625 |
ayin |
1.108 |
fi |
4626 |
root |
1.105 |
|
4627 |
ayin |
1.108 |
|
4628 |
|
|
|
4629 |
|
|
# Check whether --with-codesets was given. |
4630 |
pcg |
1.15 |
if test "${with_codesets+set}" = set; then |
4631 |
ayin |
1.108 |
withval=$with_codesets; codesets="$withval" |
4632 |
|
|
fi |
4633 |
root |
1.105 |
|
4634 |
ayin |
1.108 |
|
4635 |
|
|
# Check whether --enable-xim was given. |
4636 |
pcg |
1.1 |
if test "${enable_xim+set}" = set; then |
4637 |
ayin |
1.108 |
enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
4638 |
pcg |
1.1 |
support_xim=$enableval |
4639 |
|
|
fi |
4640 |
ayin |
1.108 |
fi |
4641 |
root |
1.105 |
|
4642 |
ayin |
1.108 |
|
4643 |
|
|
# Check whether --enable-backspace-key was given. |
4644 |
pcg |
1.1 |
if test "${enable_backspace_key+set}" = set; then |
4645 |
ayin |
1.108 |
enableval=$enable_backspace_key; if test x$enableval = xno; then |
4646 |
pcg |
1.11 |
|
4647 |
|
|
cat >>confdefs.h <<\_ACEOF |
4648 |
pcg |
1.1 |
#define NO_BACKSPACE_KEY 1 |
4649 |
pcg |
1.11 |
_ACEOF |
4650 |
pcg |
1.1 |
|
4651 |
|
|
fi |
4652 |
ayin |
1.108 |
fi |
4653 |
root |
1.105 |
|
4654 |
ayin |
1.108 |
|
4655 |
|
|
# Check whether --enable-delete-key was given. |
4656 |
pcg |
1.1 |
if test "${enable_delete_key+set}" = set; then |
4657 |
ayin |
1.108 |
enableval=$enable_delete_key; if test x$enableval = xno; then |
4658 |
pcg |
1.11 |
|
4659 |
|
|
cat >>confdefs.h <<\_ACEOF |
4660 |
pcg |
1.1 |
#define NO_DELETE_KEY 1 |
4661 |
pcg |
1.11 |
_ACEOF |
4662 |
pcg |
1.1 |
|
4663 |
|
|
fi |
4664 |
ayin |
1.108 |
fi |
4665 |
root |
1.105 |
|
4666 |
ayin |
1.108 |
|
4667 |
|
|
# Check whether --enable-resources was given. |
4668 |
pcg |
1.1 |
if test "${enable_resources+set}" = set; then |
4669 |
ayin |
1.108 |
enableval=$enable_resources; if test x$enableval = xno; then |
4670 |
pcg |
1.11 |
|
4671 |
|
|
cat >>confdefs.h <<\_ACEOF |
4672 |
pcg |
1.1 |
#define NO_RESOURCES 1 |
4673 |
pcg |
1.11 |
_ACEOF |
4674 |
pcg |
1.1 |
|
4675 |
|
|
fi |
4676 |
ayin |
1.108 |
fi |
4677 |
root |
1.105 |
|
4678 |
ayin |
1.108 |
|
4679 |
|
|
# Check whether --enable-8bitctrls was given. |
4680 |
root |
1.26 |
if test "${enable_8bitctrls+set}" = set; then |
4681 |
ayin |
1.108 |
enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
4682 |
root |
1.39 |
support_8bitctrls=$enableval |
4683 |
root |
1.26 |
fi |
4684 |
ayin |
1.108 |
fi |
4685 |
|
|
|
4686 |
root |
1.26 |
|
4687 |
pcg |
1.15 |
RESFALLBACK=Rxvt |
4688 |
ayin |
1.108 |
# Check whether --enable-fallback was given. |
4689 |
pcg |
1.15 |
if test "${enable_fallback+set}" = set; then |
4690 |
ayin |
1.108 |
enableval=$enable_fallback; |
4691 |
pcg |
1.15 |
test x$enableval = xyes && enableval=Rxvt |
4692 |
|
|
test x$enableval = xno && enableval= |
4693 |
|
|
RESFALLBACK="$enableval" |
4694 |
|
|
|
4695 |
ayin |
1.108 |
fi |
4696 |
|
|
|
4697 |
pcg |
1.15 |
|
4698 |
|
|
if test x$RESFALLBACK != x; then |
4699 |
|
|
|
4700 |
|
|
cat >>confdefs.h <<_ACEOF |
4701 |
|
|
#define RESFALLBACK "$RESFALLBACK" |
4702 |
|
|
_ACEOF |
4703 |
|
|
|
4704 |
|
|
fi |
4705 |
|
|
|
4706 |
|
|
RESNAME=urxvt |
4707 |
|
|
|
4708 |
ayin |
1.108 |
# Check whether --with-res-name was given. |
4709 |
pcg |
1.15 |
if test "${with_res_name+set}" = set; then |
4710 |
ayin |
1.108 |
withval=$with_res_name; RESNAME="$withval" |
4711 |
|
|
fi |
4712 |
|
|
|
4713 |
pcg |
1.15 |
|
4714 |
|
|
cat >>confdefs.h <<_ACEOF |
4715 |
|
|
#define RESNAME "$RESNAME" |
4716 |
|
|
_ACEOF |
4717 |
|
|
|
4718 |
|
|
|
4719 |
|
|
RESCLASS=URxvt |
4720 |
|
|
|
4721 |
ayin |
1.108 |
# Check whether --with-res-class was given. |
4722 |
pcg |
1.15 |
if test "${with_res_class+set}" = set; then |
4723 |
ayin |
1.108 |
withval=$with_res_class; RESCLASS="$withval" |
4724 |
|
|
fi |
4725 |
|
|
|
4726 |
pcg |
1.15 |
|
4727 |
|
|
cat >>confdefs.h <<_ACEOF |
4728 |
|
|
#define RESCLASS "$RESCLASS" |
4729 |
|
|
_ACEOF |
4730 |
|
|
|
4731 |
|
|
|
4732 |
|
|
RXVTNAME=urxvt |
4733 |
|
|
|
4734 |
ayin |
1.108 |
# Check whether --with-name was given. |
4735 |
pcg |
1.15 |
if test "${with_name+set}" = set; then |
4736 |
ayin |
1.108 |
withval=$with_name; RXVTNAME="$withval" |
4737 |
|
|
fi |
4738 |
|
|
|
4739 |
pcg |
1.15 |
|
4740 |
root |
1.39 |
cat >>confdefs.h <<_ACEOF |
4741 |
|
|
#define RXVTNAME "$RXVTNAME" |
4742 |
|
|
_ACEOF |
4743 |
|
|
|
4744 |
|
|
|
4745 |
pcg |
1.15 |
RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4746 |
|
|
|
4747 |
|
|
|
4748 |
ayin |
1.108 |
# Check whether --enable-swapscreen was given. |
4749 |
pcg |
1.1 |
if test "${enable_swapscreen+set}" = set; then |
4750 |
ayin |
1.108 |
enableval=$enable_swapscreen; if test x$enableval = xno; then |
4751 |
pcg |
1.11 |
|
4752 |
|
|
cat >>confdefs.h <<\_ACEOF |
4753 |
pcg |
1.1 |
#define NO_SECONDARY_SCREEN 1 |
4754 |
pcg |
1.11 |
_ACEOF |
4755 |
pcg |
1.1 |
|
4756 |
|
|
fi |
4757 |
ayin |
1.108 |
fi |
4758 |
|
|
|
4759 |
root |
1.105 |
|
4760 |
ayin |
1.108 |
# Check whether --enable-iso14755 was given. |
4761 |
root |
1.34 |
if test "${enable_iso14755+set}" = set; then |
4762 |
ayin |
1.108 |
enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
4763 |
root |
1.34 |
support_iso14755=$enableval |
4764 |
|
|
fi |
4765 |
ayin |
1.108 |
fi |
4766 |
|
|
|
4767 |
root |
1.105 |
|
4768 |
ayin |
1.108 |
# Check whether --enable-frills was given. |
4769 |
pcg |
1.1 |
if test "${enable_frills+set}" = set; then |
4770 |
ayin |
1.108 |
enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
4771 |
pcg |
1.1 |
support_frills=$enableval |
4772 |
|
|
fi |
4773 |
ayin |
1.108 |
fi |
4774 |
|
|
|
4775 |
root |
1.105 |
|
4776 |
ayin |
1.108 |
# Check whether --enable-keepscrolling was given. |
4777 |
pcg |
1.1 |
if test "${enable_keepscrolling+set}" = set; then |
4778 |
ayin |
1.108 |
enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4779 |
pcg |
1.1 |
support_keepscrolling=$enableval |
4780 |
|
|
fi |
4781 |
ayin |
1.108 |
fi |
4782 |
|
|
|
4783 |
root |
1.105 |
|
4784 |
ayin |
1.108 |
# Check whether --enable-selectionscrolling was given. |
4785 |
pcg |
1.1 |
if test "${enable_selectionscrolling+set}" = set; then |
4786 |
ayin |
1.108 |
enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4787 |
pcg |
1.1 |
support_selectionscrolling=$enableval |
4788 |
|
|
fi |
4789 |
ayin |
1.108 |
fi |
4790 |
|
|
|
4791 |
root |
1.105 |
|
4792 |
ayin |
1.108 |
# Check whether --enable-mousewheel was given. |
4793 |
pcg |
1.1 |
if test "${enable_mousewheel+set}" = set; then |
4794 |
ayin |
1.108 |
enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
4795 |
pcg |
1.1 |
support_mousewheel=$enableval |
4796 |
|
|
fi |
4797 |
ayin |
1.108 |
fi |
4798 |
|
|
|
4799 |
root |
1.105 |
|
4800 |
ayin |
1.108 |
# Check whether --enable-slipwheeling was given. |
4801 |
pcg |
1.1 |
if test "${enable_slipwheeling+set}" = set; then |
4802 |
ayin |
1.108 |
enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
4803 |
pcg |
1.1 |
support_mouseslipwheel=$enableval |
4804 |
|
|
fi |
4805 |
ayin |
1.108 |
fi |
4806 |
|
|
|
4807 |
root |
1.105 |
|
4808 |
ayin |
1.108 |
# Check whether --enable-smart-resize was given. |
4809 |
pcg |
1.1 |
if test "${enable_smart_resize+set}" = set; then |
4810 |
ayin |
1.108 |
enableval=$enable_smart_resize; if test x$enableval = xyes; then |
4811 |
pcg |
1.11 |
|
4812 |
|
|
cat >>confdefs.h <<\_ACEOF |
4813 |
pcg |
1.1 |
#define SMART_RESIZE 1 |
4814 |
pcg |
1.11 |
_ACEOF |
4815 |
pcg |
1.1 |
|
4816 |
|
|
fi |
4817 |
ayin |
1.108 |
fi |
4818 |
|
|
|
4819 |
root |
1.105 |
|
4820 |
ayin |
1.108 |
# Check whether --enable-text-blink was given. |
4821 |
pcg |
1.11 |
if test "${enable_text_blink+set}" = set; then |
4822 |
ayin |
1.108 |
enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
4823 |
pcg |
1.11 |
support_text_blink=$enableval |
4824 |
|
|
fi |
4825 |
ayin |
1.108 |
fi |
4826 |
|
|
|
4827 |
root |
1.105 |
|
4828 |
ayin |
1.108 |
# Check whether --enable-pointer-blank was given. |
4829 |
pcg |
1.1 |
if test "${enable_pointer_blank+set}" = set; then |
4830 |
ayin |
1.108 |
enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
4831 |
pcg |
1.1 |
support_pointer_blank=$enableval |
4832 |
|
|
fi |
4833 |
ayin |
1.108 |
fi |
4834 |
|
|
|
4835 |
root |
1.105 |
|
4836 |
pcg |
1.1 |
|
4837 |
ayin |
1.108 |
# Check whether --with-term was given. |
4838 |
pcg |
1.1 |
if test "${with_term+set}" = set; then |
4839 |
ayin |
1.108 |
withval=$with_term; if test x$withval != x; then |
4840 |
pcg |
1.11 |
|
4841 |
|
|
cat >>confdefs.h <<_ACEOF |
4842 |
pcg |
1.1 |
#define TERMENV "$withval" |
4843 |
pcg |
1.11 |
_ACEOF |
4844 |
pcg |
1.1 |
term="$withval" |
4845 |
|
|
fi |
4846 |
ayin |
1.108 |
fi |
4847 |
|
|
|
4848 |
root |
1.105 |
|
4849 |
pcg |
1.1 |
|
4850 |
ayin |
1.108 |
# Check whether --with-terminfo was given. |
4851 |
pcg |
1.1 |
if test "${with_terminfo+set}" = set; then |
4852 |
ayin |
1.108 |
withval=$with_terminfo; if test x$withval != x; then |
4853 |
pcg |
1.11 |
|
4854 |
|
|
cat >>confdefs.h <<_ACEOF |
4855 |
pcg |
1.1 |
#define RXVT_TERMINFO "$withval" |
4856 |
pcg |
1.11 |
_ACEOF |
4857 |
pcg |
1.1 |
terminfo="$withval" |
4858 |
|
|
fi |
4859 |
ayin |
1.108 |
fi |
4860 |
|
|
|
4861 |
ayin |
1.102 |
|
4862 |
pcg |
1.1 |
|
4863 |
root |
1.118 |
LIBEV_M4_AVOID_LIBRT=1 |
4864 |
ayin |
1.108 |
|
4865 |
|
|
ac_ext=cpp |
4866 |
ayin |
1.104 |
ac_cpp='$CXXCPP $CPPFLAGS' |
4867 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4868 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4869 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4870 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
4871 |
|
|
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
4872 |
ayin |
1.104 |
if test -z "$CXXCPP"; then |
4873 |
|
|
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
4874 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4875 |
pcg |
1.1 |
else |
4876 |
ayin |
1.104 |
# Double quotes because CXXCPP needs to be expanded |
4877 |
|
|
for CXXCPP in "$CXX -E" "/lib/cpp" |
4878 |
|
|
do |
4879 |
|
|
ac_preproc_ok=false |
4880 |
|
|
for ac_cxx_preproc_warn_flag in '' yes |
4881 |
pcg |
1.11 |
do |
4882 |
ayin |
1.104 |
# Use a header file that comes with gcc, so configuring glibc |
4883 |
|
|
# with a fresh cross-compiler works. |
4884 |
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4885 |
|
|
# <limits.h> exists even on freestanding compilers. |
4886 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
4887 |
root |
1.80 |
# not just through cpp. "Syntax error" is here to catch this case. |
4888 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
4889 |
|
|
/* confdefs.h. */ |
4890 |
|
|
_ACEOF |
4891 |
|
|
cat confdefs.h >>conftest.$ac_ext |
4892 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
4893 |
|
|
/* end confdefs.h. */ |
4894 |
|
|
#ifdef __STDC__ |
4895 |
|
|
# include <limits.h> |
4896 |
|
|
#else |
4897 |
|
|
# include <assert.h> |
4898 |
|
|
#endif |
4899 |
|
|
Syntax error |
4900 |
|
|
_ACEOF |
4901 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4902 |
|
|
case "(($ac_try" in |
4903 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4904 |
|
|
*) ac_try_echo=$ac_try;; |
4905 |
|
|
esac |
4906 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4907 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4908 |
root |
1.80 |
ac_status=$? |
4909 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
4910 |
|
|
rm -f conftest.er1 |
4911 |
|
|
cat conftest.err >&5 |
4912 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4913 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
4914 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
4915 |
|
|
test ! -s conftest.err |
4916 |
|
|
}; then |
4917 |
root |
1.80 |
: |
4918 |
|
|
else |
4919 |
|
|
echo "$as_me: failed program was:" >&5 |
4920 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4921 |
|
|
|
4922 |
|
|
# Broken: fails on valid input. |
4923 |
|
|
continue |
4924 |
|
|
fi |
4925 |
ayin |
1.108 |
|
4926 |
root |
1.80 |
rm -f conftest.err conftest.$ac_ext |
4927 |
|
|
|
4928 |
ayin |
1.108 |
# OK, works on sane cases. Now check whether nonexistent headers |
4929 |
root |
1.80 |
# can be detected and how. |
4930 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
4931 |
|
|
/* confdefs.h. */ |
4932 |
|
|
_ACEOF |
4933 |
|
|
cat confdefs.h >>conftest.$ac_ext |
4934 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
4935 |
|
|
/* end confdefs.h. */ |
4936 |
|
|
#include <ac_nonexistent.h> |
4937 |
|
|
_ACEOF |
4938 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4939 |
|
|
case "(($ac_try" in |
4940 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4941 |
|
|
*) ac_try_echo=$ac_try;; |
4942 |
|
|
esac |
4943 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4944 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4945 |
root |
1.80 |
ac_status=$? |
4946 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
4947 |
|
|
rm -f conftest.er1 |
4948 |
|
|
cat conftest.err >&5 |
4949 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4950 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
4951 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
4952 |
|
|
test ! -s conftest.err |
4953 |
|
|
}; then |
4954 |
root |
1.80 |
# Broken: success on invalid input. |
4955 |
|
|
continue |
4956 |
|
|
else |
4957 |
|
|
echo "$as_me: failed program was:" >&5 |
4958 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4959 |
|
|
|
4960 |
|
|
# Passes both tests. |
4961 |
|
|
ac_preproc_ok=: |
4962 |
|
|
break |
4963 |
|
|
fi |
4964 |
ayin |
1.108 |
|
4965 |
root |
1.80 |
rm -f conftest.err conftest.$ac_ext |
4966 |
|
|
|
4967 |
|
|
done |
4968 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4969 |
|
|
rm -f conftest.err conftest.$ac_ext |
4970 |
|
|
if $ac_preproc_ok; then |
4971 |
|
|
break |
4972 |
|
|
fi |
4973 |
|
|
|
4974 |
|
|
done |
4975 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP |
4976 |
|
|
|
4977 |
|
|
fi |
4978 |
|
|
CXXCPP=$ac_cv_prog_CXXCPP |
4979 |
|
|
else |
4980 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP |
4981 |
|
|
fi |
4982 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
4983 |
|
|
echo "${ECHO_T}$CXXCPP" >&6; } |
4984 |
root |
1.80 |
ac_preproc_ok=false |
4985 |
|
|
for ac_cxx_preproc_warn_flag in '' yes |
4986 |
|
|
do |
4987 |
|
|
# Use a header file that comes with gcc, so configuring glibc |
4988 |
|
|
# with a fresh cross-compiler works. |
4989 |
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4990 |
|
|
# <limits.h> exists even on freestanding compilers. |
4991 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
4992 |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
4993 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
4994 |
|
|
/* confdefs.h. */ |
4995 |
|
|
_ACEOF |
4996 |
|
|
cat confdefs.h >>conftest.$ac_ext |
4997 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
4998 |
|
|
/* end confdefs.h. */ |
4999 |
|
|
#ifdef __STDC__ |
5000 |
|
|
# include <limits.h> |
5001 |
|
|
#else |
5002 |
|
|
# include <assert.h> |
5003 |
|
|
#endif |
5004 |
|
|
Syntax error |
5005 |
|
|
_ACEOF |
5006 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5007 |
|
|
case "(($ac_try" in |
5008 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5009 |
|
|
*) ac_try_echo=$ac_try;; |
5010 |
|
|
esac |
5011 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5012 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5013 |
root |
1.80 |
ac_status=$? |
5014 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5015 |
|
|
rm -f conftest.er1 |
5016 |
|
|
cat conftest.err >&5 |
5017 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5018 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
5019 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5020 |
|
|
test ! -s conftest.err |
5021 |
|
|
}; then |
5022 |
root |
1.80 |
: |
5023 |
|
|
else |
5024 |
|
|
echo "$as_me: failed program was:" >&5 |
5025 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5026 |
|
|
|
5027 |
|
|
# Broken: fails on valid input. |
5028 |
|
|
continue |
5029 |
|
|
fi |
5030 |
ayin |
1.108 |
|
5031 |
root |
1.80 |
rm -f conftest.err conftest.$ac_ext |
5032 |
|
|
|
5033 |
ayin |
1.108 |
# OK, works on sane cases. Now check whether nonexistent headers |
5034 |
root |
1.80 |
# can be detected and how. |
5035 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5036 |
|
|
/* confdefs.h. */ |
5037 |
|
|
_ACEOF |
5038 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5039 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5040 |
|
|
/* end confdefs.h. */ |
5041 |
|
|
#include <ac_nonexistent.h> |
5042 |
|
|
_ACEOF |
5043 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5044 |
|
|
case "(($ac_try" in |
5045 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5046 |
|
|
*) ac_try_echo=$ac_try;; |
5047 |
|
|
esac |
5048 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5049 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5050 |
root |
1.80 |
ac_status=$? |
5051 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5052 |
|
|
rm -f conftest.er1 |
5053 |
|
|
cat conftest.err >&5 |
5054 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5055 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
5056 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5057 |
|
|
test ! -s conftest.err |
5058 |
|
|
}; then |
5059 |
root |
1.80 |
# Broken: success on invalid input. |
5060 |
|
|
continue |
5061 |
|
|
else |
5062 |
|
|
echo "$as_me: failed program was:" >&5 |
5063 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5064 |
|
|
|
5065 |
|
|
# Passes both tests. |
5066 |
|
|
ac_preproc_ok=: |
5067 |
|
|
break |
5068 |
|
|
fi |
5069 |
ayin |
1.108 |
|
5070 |
root |
1.80 |
rm -f conftest.err conftest.$ac_ext |
5071 |
|
|
|
5072 |
|
|
done |
5073 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5074 |
|
|
rm -f conftest.err conftest.$ac_ext |
5075 |
|
|
if $ac_preproc_ok; then |
5076 |
|
|
: |
5077 |
|
|
else |
5078 |
|
|
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5079 |
root |
1.116 |
See \`config.log' for more details." >&5 |
5080 |
|
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5081 |
|
|
See \`config.log' for more details." >&2;} |
5082 |
|
|
{ (exit 1); exit 1; }; } |
5083 |
|
|
fi |
5084 |
|
|
|
5085 |
|
|
ac_ext=cpp |
5086 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5087 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5088 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5089 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5090 |
|
|
|
5091 |
|
|
|
5092 |
|
|
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5093 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
5094 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then |
5095 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5096 |
|
|
else |
5097 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5098 |
|
|
/* confdefs.h. */ |
5099 |
|
|
_ACEOF |
5100 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5101 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5102 |
|
|
/* end confdefs.h. */ |
5103 |
|
|
#include <stdlib.h> |
5104 |
|
|
#include <stdarg.h> |
5105 |
|
|
#include <string.h> |
5106 |
|
|
#include <float.h> |
5107 |
|
|
|
5108 |
|
|
int |
5109 |
|
|
main () |
5110 |
|
|
{ |
5111 |
|
|
|
5112 |
|
|
; |
5113 |
|
|
return 0; |
5114 |
|
|
} |
5115 |
|
|
_ACEOF |
5116 |
|
|
rm -f conftest.$ac_objext |
5117 |
|
|
if { (ac_try="$ac_compile" |
5118 |
|
|
case "(($ac_try" in |
5119 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5120 |
|
|
*) ac_try_echo=$ac_try;; |
5121 |
|
|
esac |
5122 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5123 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
5124 |
|
|
ac_status=$? |
5125 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5126 |
|
|
rm -f conftest.er1 |
5127 |
|
|
cat conftest.err >&5 |
5128 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5129 |
|
|
(exit $ac_status); } && { |
5130 |
|
|
test -z "$ac_cxx_werror_flag" || |
5131 |
|
|
test ! -s conftest.err |
5132 |
|
|
} && test -s conftest.$ac_objext; then |
5133 |
|
|
ac_cv_header_stdc=yes |
5134 |
|
|
else |
5135 |
|
|
echo "$as_me: failed program was:" >&5 |
5136 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5137 |
|
|
|
5138 |
|
|
ac_cv_header_stdc=no |
5139 |
|
|
fi |
5140 |
|
|
|
5141 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5142 |
|
|
|
5143 |
|
|
if test $ac_cv_header_stdc = yes; then |
5144 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5145 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5146 |
|
|
/* confdefs.h. */ |
5147 |
|
|
_ACEOF |
5148 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5149 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5150 |
|
|
/* end confdefs.h. */ |
5151 |
|
|
#include <string.h> |
5152 |
|
|
|
5153 |
|
|
_ACEOF |
5154 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5155 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then |
5156 |
|
|
: |
5157 |
|
|
else |
5158 |
|
|
ac_cv_header_stdc=no |
5159 |
|
|
fi |
5160 |
|
|
rm -f conftest* |
5161 |
|
|
|
5162 |
|
|
fi |
5163 |
|
|
|
5164 |
|
|
if test $ac_cv_header_stdc = yes; then |
5165 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5166 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5167 |
|
|
/* confdefs.h. */ |
5168 |
|
|
_ACEOF |
5169 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5170 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5171 |
|
|
/* end confdefs.h. */ |
5172 |
|
|
#include <stdlib.h> |
5173 |
|
|
|
5174 |
|
|
_ACEOF |
5175 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5176 |
|
|
$EGREP "free" >/dev/null 2>&1; then |
5177 |
|
|
: |
5178 |
|
|
else |
5179 |
|
|
ac_cv_header_stdc=no |
5180 |
|
|
fi |
5181 |
|
|
rm -f conftest* |
5182 |
|
|
|
5183 |
|
|
fi |
5184 |
|
|
|
5185 |
|
|
if test $ac_cv_header_stdc = yes; then |
5186 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
5187 |
|
|
if test "$cross_compiling" = yes; then |
5188 |
|
|
: |
5189 |
|
|
else |
5190 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5191 |
|
|
/* confdefs.h. */ |
5192 |
|
|
_ACEOF |
5193 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5194 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5195 |
|
|
/* end confdefs.h. */ |
5196 |
|
|
#include <ctype.h> |
5197 |
|
|
#include <stdlib.h> |
5198 |
|
|
#if ((' ' & 0x0FF) == 0x020) |
5199 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5200 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5201 |
|
|
#else |
5202 |
|
|
# define ISLOWER(c) \ |
5203 |
|
|
(('a' <= (c) && (c) <= 'i') \ |
5204 |
|
|
|| ('j' <= (c) && (c) <= 'r') \ |
5205 |
|
|
|| ('s' <= (c) && (c) <= 'z')) |
5206 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5207 |
|
|
#endif |
5208 |
|
|
|
5209 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5210 |
|
|
int |
5211 |
|
|
main () |
5212 |
|
|
{ |
5213 |
|
|
int i; |
5214 |
|
|
for (i = 0; i < 256; i++) |
5215 |
|
|
if (XOR (islower (i), ISLOWER (i)) |
5216 |
|
|
|| toupper (i) != TOUPPER (i)) |
5217 |
|
|
return 2; |
5218 |
|
|
return 0; |
5219 |
|
|
} |
5220 |
|
|
_ACEOF |
5221 |
|
|
rm -f conftest$ac_exeext |
5222 |
|
|
if { (ac_try="$ac_link" |
5223 |
|
|
case "(($ac_try" in |
5224 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5225 |
|
|
*) ac_try_echo=$ac_try;; |
5226 |
|
|
esac |
5227 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5228 |
|
|
(eval "$ac_link") 2>&5 |
5229 |
|
|
ac_status=$? |
5230 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5231 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5232 |
|
|
{ (case "(($ac_try" in |
5233 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5234 |
|
|
*) ac_try_echo=$ac_try;; |
5235 |
|
|
esac |
5236 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5237 |
|
|
(eval "$ac_try") 2>&5 |
5238 |
|
|
ac_status=$? |
5239 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5240 |
|
|
(exit $ac_status); }; }; then |
5241 |
|
|
: |
5242 |
|
|
else |
5243 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
5244 |
|
|
echo "$as_me: failed program was:" >&5 |
5245 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5246 |
|
|
|
5247 |
|
|
( exit $ac_status ) |
5248 |
|
|
ac_cv_header_stdc=no |
5249 |
|
|
fi |
5250 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5251 |
|
|
fi |
5252 |
|
|
|
5253 |
|
|
|
5254 |
|
|
fi |
5255 |
|
|
fi |
5256 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5257 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
5258 |
|
|
if test $ac_cv_header_stdc = yes; then |
5259 |
|
|
|
5260 |
|
|
cat >>confdefs.h <<\_ACEOF |
5261 |
|
|
#define STDC_HEADERS 1 |
5262 |
|
|
_ACEOF |
5263 |
|
|
|
5264 |
|
|
fi |
5265 |
|
|
|
5266 |
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5267 |
|
|
|
5268 |
|
|
|
5269 |
|
|
|
5270 |
|
|
|
5271 |
|
|
|
5272 |
|
|
|
5273 |
|
|
|
5274 |
|
|
|
5275 |
|
|
|
5276 |
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5277 |
|
|
inttypes.h stdint.h unistd.h |
5278 |
|
|
do |
5279 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5280 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5281 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5282 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5283 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5284 |
|
|
else |
5285 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5286 |
|
|
/* confdefs.h. */ |
5287 |
|
|
_ACEOF |
5288 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5289 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5290 |
|
|
/* end confdefs.h. */ |
5291 |
|
|
$ac_includes_default |
5292 |
|
|
|
5293 |
|
|
#include <$ac_header> |
5294 |
|
|
_ACEOF |
5295 |
|
|
rm -f conftest.$ac_objext |
5296 |
|
|
if { (ac_try="$ac_compile" |
5297 |
|
|
case "(($ac_try" in |
5298 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5299 |
|
|
*) ac_try_echo=$ac_try;; |
5300 |
|
|
esac |
5301 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5302 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
5303 |
|
|
ac_status=$? |
5304 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5305 |
|
|
rm -f conftest.er1 |
5306 |
|
|
cat conftest.err >&5 |
5307 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5308 |
|
|
(exit $ac_status); } && { |
5309 |
|
|
test -z "$ac_cxx_werror_flag" || |
5310 |
|
|
test ! -s conftest.err |
5311 |
|
|
} && test -s conftest.$ac_objext; then |
5312 |
|
|
eval "$as_ac_Header=yes" |
5313 |
|
|
else |
5314 |
|
|
echo "$as_me: failed program was:" >&5 |
5315 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5316 |
|
|
|
5317 |
|
|
eval "$as_ac_Header=no" |
5318 |
|
|
fi |
5319 |
|
|
|
5320 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5321 |
|
|
fi |
5322 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'` |
5323 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
5324 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
5325 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5326 |
|
|
cat >>confdefs.h <<_ACEOF |
5327 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5328 |
|
|
_ACEOF |
5329 |
|
|
|
5330 |
|
|
fi |
5331 |
|
|
|
5332 |
|
|
done |
5333 |
|
|
|
5334 |
|
|
|
5335 |
|
|
|
5336 |
|
|
|
5337 |
|
|
|
5338 |
root |
1.117 |
|
5339 |
root |
1.119 |
|
5340 |
|
|
|
5341 |
ayin |
1.121 |
|
5342 |
|
|
for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
5343 |
root |
1.116 |
do |
5344 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5345 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5346 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5347 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5348 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5349 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5350 |
|
|
fi |
5351 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'` |
5352 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
5353 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
5354 |
|
|
else |
5355 |
|
|
# Is the header compilable? |
5356 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5357 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
5358 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5359 |
|
|
/* confdefs.h. */ |
5360 |
|
|
_ACEOF |
5361 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5362 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5363 |
|
|
/* end confdefs.h. */ |
5364 |
|
|
$ac_includes_default |
5365 |
|
|
#include <$ac_header> |
5366 |
|
|
_ACEOF |
5367 |
|
|
rm -f conftest.$ac_objext |
5368 |
|
|
if { (ac_try="$ac_compile" |
5369 |
|
|
case "(($ac_try" in |
5370 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5371 |
|
|
*) ac_try_echo=$ac_try;; |
5372 |
|
|
esac |
5373 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5374 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
5375 |
|
|
ac_status=$? |
5376 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5377 |
|
|
rm -f conftest.er1 |
5378 |
|
|
cat conftest.err >&5 |
5379 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5380 |
|
|
(exit $ac_status); } && { |
5381 |
|
|
test -z "$ac_cxx_werror_flag" || |
5382 |
|
|
test ! -s conftest.err |
5383 |
|
|
} && test -s conftest.$ac_objext; then |
5384 |
|
|
ac_header_compiler=yes |
5385 |
|
|
else |
5386 |
|
|
echo "$as_me: failed program was:" >&5 |
5387 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5388 |
|
|
|
5389 |
|
|
ac_header_compiler=no |
5390 |
|
|
fi |
5391 |
|
|
|
5392 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5393 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5394 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
5395 |
|
|
|
5396 |
|
|
# Is the header present? |
5397 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5398 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
5399 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5400 |
|
|
/* confdefs.h. */ |
5401 |
|
|
_ACEOF |
5402 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5403 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5404 |
|
|
/* end confdefs.h. */ |
5405 |
|
|
#include <$ac_header> |
5406 |
|
|
_ACEOF |
5407 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5408 |
|
|
case "(($ac_try" in |
5409 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5410 |
|
|
*) ac_try_echo=$ac_try;; |
5411 |
|
|
esac |
5412 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5413 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5414 |
|
|
ac_status=$? |
5415 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5416 |
|
|
rm -f conftest.er1 |
5417 |
|
|
cat conftest.err >&5 |
5418 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5419 |
|
|
(exit $ac_status); } >/dev/null && { |
5420 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5421 |
|
|
test ! -s conftest.err |
5422 |
|
|
}; then |
5423 |
|
|
ac_header_preproc=yes |
5424 |
|
|
else |
5425 |
|
|
echo "$as_me: failed program was:" >&5 |
5426 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5427 |
|
|
|
5428 |
|
|
ac_header_preproc=no |
5429 |
|
|
fi |
5430 |
|
|
|
5431 |
|
|
rm -f conftest.err conftest.$ac_ext |
5432 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5433 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
5434 |
|
|
|
5435 |
|
|
# So? What about this header? |
5436 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
5437 |
|
|
yes:no: ) |
5438 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5439 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5440 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5441 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5442 |
|
|
ac_header_preproc=yes |
5443 |
|
|
;; |
5444 |
|
|
no:yes:* ) |
5445 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5446 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5447 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5448 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5449 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5450 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5451 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5452 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5453 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5454 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5455 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5456 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5457 |
|
|
|
5458 |
|
|
;; |
5459 |
|
|
esac |
5460 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5461 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5462 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5463 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5464 |
|
|
else |
5465 |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
5466 |
|
|
fi |
5467 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'` |
5468 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
5469 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
5470 |
|
|
|
5471 |
|
|
fi |
5472 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5473 |
|
|
cat >>confdefs.h <<_ACEOF |
5474 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5475 |
|
|
_ACEOF |
5476 |
|
|
|
5477 |
|
|
fi |
5478 |
|
|
|
5479 |
|
|
done |
5480 |
|
|
|
5481 |
|
|
|
5482 |
|
|
|
5483 |
|
|
|
5484 |
root |
1.117 |
|
5485 |
root |
1.119 |
|
5486 |
|
|
|
5487 |
ayin |
1.121 |
|
5488 |
|
|
for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
5489 |
root |
1.116 |
do |
5490 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5491 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5492 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5493 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5494 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5495 |
|
|
else |
5496 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5497 |
|
|
/* confdefs.h. */ |
5498 |
|
|
_ACEOF |
5499 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5500 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5501 |
|
|
/* end confdefs.h. */ |
5502 |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5503 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5504 |
|
|
#define $ac_func innocuous_$ac_func |
5505 |
|
|
|
5506 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
5507 |
|
|
which can conflict with char $ac_func (); below. |
5508 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5509 |
|
|
<limits.h> exists even on freestanding compilers. */ |
5510 |
|
|
|
5511 |
|
|
#ifdef __STDC__ |
5512 |
|
|
# include <limits.h> |
5513 |
|
|
#else |
5514 |
|
|
# include <assert.h> |
5515 |
|
|
#endif |
5516 |
|
|
|
5517 |
|
|
#undef $ac_func |
5518 |
|
|
|
5519 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5520 |
|
|
Use char because int might match the return type of a GCC |
5521 |
|
|
builtin and then its argument prototype would still apply. */ |
5522 |
|
|
#ifdef __cplusplus |
5523 |
|
|
extern "C" |
5524 |
|
|
#endif |
5525 |
|
|
char $ac_func (); |
5526 |
|
|
/* The GNU C library defines this for functions which it implements |
5527 |
|
|
to always fail with ENOSYS. Some functions are actually named |
5528 |
|
|
something starting with __ and the normal name is an alias. */ |
5529 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func |
5530 |
|
|
choke me |
5531 |
|
|
#endif |
5532 |
|
|
|
5533 |
|
|
int |
5534 |
|
|
main () |
5535 |
|
|
{ |
5536 |
|
|
return $ac_func (); |
5537 |
|
|
; |
5538 |
|
|
return 0; |
5539 |
|
|
} |
5540 |
|
|
_ACEOF |
5541 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5542 |
|
|
if { (ac_try="$ac_link" |
5543 |
|
|
case "(($ac_try" in |
5544 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5545 |
|
|
*) ac_try_echo=$ac_try;; |
5546 |
|
|
esac |
5547 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5548 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5549 |
|
|
ac_status=$? |
5550 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5551 |
|
|
rm -f conftest.er1 |
5552 |
|
|
cat conftest.err >&5 |
5553 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5554 |
|
|
(exit $ac_status); } && { |
5555 |
|
|
test -z "$ac_cxx_werror_flag" || |
5556 |
|
|
test ! -s conftest.err |
5557 |
|
|
} && test -s conftest$ac_exeext && |
5558 |
|
|
$as_test_x conftest$ac_exeext; then |
5559 |
|
|
eval "$as_ac_var=yes" |
5560 |
|
|
else |
5561 |
|
|
echo "$as_me: failed program was:" >&5 |
5562 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5563 |
|
|
|
5564 |
|
|
eval "$as_ac_var=no" |
5565 |
|
|
fi |
5566 |
|
|
|
5567 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5568 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5569 |
|
|
fi |
5570 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'` |
5571 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
5572 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
5573 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5574 |
|
|
cat >>confdefs.h <<_ACEOF |
5575 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5576 |
|
|
_ACEOF |
5577 |
|
|
|
5578 |
|
|
fi |
5579 |
|
|
done |
5580 |
|
|
|
5581 |
|
|
|
5582 |
|
|
{ echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
5583 |
|
|
echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
5584 |
|
|
if test "${ac_cv_func_clock_gettime+set}" = set; then |
5585 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5586 |
|
|
else |
5587 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5588 |
|
|
/* confdefs.h. */ |
5589 |
|
|
_ACEOF |
5590 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5591 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5592 |
|
|
/* end confdefs.h. */ |
5593 |
|
|
/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
5594 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5595 |
|
|
#define clock_gettime innocuous_clock_gettime |
5596 |
|
|
|
5597 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
5598 |
|
|
which can conflict with char clock_gettime (); below. |
5599 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5600 |
|
|
<limits.h> exists even on freestanding compilers. */ |
5601 |
|
|
|
5602 |
|
|
#ifdef __STDC__ |
5603 |
|
|
# include <limits.h> |
5604 |
|
|
#else |
5605 |
|
|
# include <assert.h> |
5606 |
|
|
#endif |
5607 |
|
|
|
5608 |
|
|
#undef clock_gettime |
5609 |
|
|
|
5610 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5611 |
|
|
Use char because int might match the return type of a GCC |
5612 |
|
|
builtin and then its argument prototype would still apply. */ |
5613 |
|
|
#ifdef __cplusplus |
5614 |
|
|
extern "C" |
5615 |
|
|
#endif |
5616 |
|
|
char clock_gettime (); |
5617 |
|
|
/* The GNU C library defines this for functions which it implements |
5618 |
|
|
to always fail with ENOSYS. Some functions are actually named |
5619 |
|
|
something starting with __ and the normal name is an alias. */ |
5620 |
|
|
#if defined __stub_clock_gettime || defined __stub___clock_gettime |
5621 |
|
|
choke me |
5622 |
|
|
#endif |
5623 |
|
|
|
5624 |
|
|
int |
5625 |
|
|
main () |
5626 |
|
|
{ |
5627 |
|
|
return clock_gettime (); |
5628 |
|
|
; |
5629 |
|
|
return 0; |
5630 |
|
|
} |
5631 |
|
|
_ACEOF |
5632 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5633 |
|
|
if { (ac_try="$ac_link" |
5634 |
|
|
case "(($ac_try" in |
5635 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5636 |
|
|
*) ac_try_echo=$ac_try;; |
5637 |
|
|
esac |
5638 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5639 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5640 |
|
|
ac_status=$? |
5641 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5642 |
|
|
rm -f conftest.er1 |
5643 |
|
|
cat conftest.err >&5 |
5644 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5645 |
|
|
(exit $ac_status); } && { |
5646 |
|
|
test -z "$ac_cxx_werror_flag" || |
5647 |
|
|
test ! -s conftest.err |
5648 |
|
|
} && test -s conftest$ac_exeext && |
5649 |
|
|
$as_test_x conftest$ac_exeext; then |
5650 |
|
|
ac_cv_func_clock_gettime=yes |
5651 |
|
|
else |
5652 |
|
|
echo "$as_me: failed program was:" >&5 |
5653 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5654 |
|
|
|
5655 |
|
|
ac_cv_func_clock_gettime=no |
5656 |
|
|
fi |
5657 |
|
|
|
5658 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5659 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5660 |
|
|
fi |
5661 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
5662 |
|
|
echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5663 |
|
|
if test $ac_cv_func_clock_gettime = yes; then |
5664 |
|
|
: |
5665 |
|
|
else |
5666 |
|
|
|
5667 |
root |
1.118 |
if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5668 |
root |
1.116 |
|
5669 |
|
|
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5670 |
|
|
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5671 |
|
|
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5672 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5673 |
|
|
else |
5674 |
|
|
ac_check_lib_save_LIBS=$LIBS |
5675 |
|
|
LIBS="-lrt $LIBS" |
5676 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5677 |
|
|
/* confdefs.h. */ |
5678 |
|
|
_ACEOF |
5679 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5680 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5681 |
|
|
/* end confdefs.h. */ |
5682 |
|
|
|
5683 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5684 |
|
|
Use char because int might match the return type of a GCC |
5685 |
|
|
builtin and then its argument prototype would still apply. */ |
5686 |
|
|
#ifdef __cplusplus |
5687 |
|
|
extern "C" |
5688 |
|
|
#endif |
5689 |
|
|
char clock_gettime (); |
5690 |
|
|
int |
5691 |
|
|
main () |
5692 |
|
|
{ |
5693 |
|
|
return clock_gettime (); |
5694 |
|
|
; |
5695 |
|
|
return 0; |
5696 |
|
|
} |
5697 |
|
|
_ACEOF |
5698 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5699 |
|
|
if { (ac_try="$ac_link" |
5700 |
|
|
case "(($ac_try" in |
5701 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5702 |
|
|
*) ac_try_echo=$ac_try;; |
5703 |
|
|
esac |
5704 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5705 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5706 |
|
|
ac_status=$? |
5707 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5708 |
|
|
rm -f conftest.er1 |
5709 |
|
|
cat conftest.err >&5 |
5710 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5711 |
|
|
(exit $ac_status); } && { |
5712 |
|
|
test -z "$ac_cxx_werror_flag" || |
5713 |
|
|
test ! -s conftest.err |
5714 |
|
|
} && test -s conftest$ac_exeext && |
5715 |
|
|
$as_test_x conftest$ac_exeext; then |
5716 |
|
|
ac_cv_lib_rt_clock_gettime=yes |
5717 |
|
|
else |
5718 |
|
|
echo "$as_me: failed program was:" >&5 |
5719 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5720 |
|
|
|
5721 |
|
|
ac_cv_lib_rt_clock_gettime=no |
5722 |
|
|
fi |
5723 |
|
|
|
5724 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5725 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5726 |
|
|
LIBS=$ac_check_lib_save_LIBS |
5727 |
|
|
fi |
5728 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
5729 |
|
|
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
5730 |
|
|
if test $ac_cv_lib_rt_clock_gettime = yes; then |
5731 |
|
|
cat >>confdefs.h <<_ACEOF |
5732 |
|
|
#define HAVE_LIBRT 1 |
5733 |
|
|
_ACEOF |
5734 |
|
|
|
5735 |
|
|
LIBS="-lrt $LIBS" |
5736 |
|
|
|
5737 |
|
|
fi |
5738 |
|
|
|
5739 |
ayin |
1.121 |
unset ac_cv_func_clock_gettime |
5740 |
root |
1.116 |
|
5741 |
|
|
for ac_func in clock_gettime |
5742 |
|
|
do |
5743 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5744 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5745 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5746 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5747 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5748 |
|
|
else |
5749 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5750 |
|
|
/* confdefs.h. */ |
5751 |
|
|
_ACEOF |
5752 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5753 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5754 |
|
|
/* end confdefs.h. */ |
5755 |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5756 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5757 |
|
|
#define $ac_func innocuous_$ac_func |
5758 |
|
|
|
5759 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
5760 |
|
|
which can conflict with char $ac_func (); below. |
5761 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5762 |
|
|
<limits.h> exists even on freestanding compilers. */ |
5763 |
|
|
|
5764 |
|
|
#ifdef __STDC__ |
5765 |
|
|
# include <limits.h> |
5766 |
|
|
#else |
5767 |
|
|
# include <assert.h> |
5768 |
|
|
#endif |
5769 |
|
|
|
5770 |
|
|
#undef $ac_func |
5771 |
|
|
|
5772 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5773 |
|
|
Use char because int might match the return type of a GCC |
5774 |
|
|
builtin and then its argument prototype would still apply. */ |
5775 |
|
|
#ifdef __cplusplus |
5776 |
|
|
extern "C" |
5777 |
|
|
#endif |
5778 |
|
|
char $ac_func (); |
5779 |
|
|
/* The GNU C library defines this for functions which it implements |
5780 |
|
|
to always fail with ENOSYS. Some functions are actually named |
5781 |
|
|
something starting with __ and the normal name is an alias. */ |
5782 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func |
5783 |
|
|
choke me |
5784 |
|
|
#endif |
5785 |
|
|
|
5786 |
|
|
int |
5787 |
|
|
main () |
5788 |
|
|
{ |
5789 |
|
|
return $ac_func (); |
5790 |
|
|
; |
5791 |
|
|
return 0; |
5792 |
|
|
} |
5793 |
|
|
_ACEOF |
5794 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5795 |
|
|
if { (ac_try="$ac_link" |
5796 |
|
|
case "(($ac_try" in |
5797 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5798 |
|
|
*) ac_try_echo=$ac_try;; |
5799 |
|
|
esac |
5800 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5801 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5802 |
|
|
ac_status=$? |
5803 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5804 |
|
|
rm -f conftest.er1 |
5805 |
|
|
cat conftest.err >&5 |
5806 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5807 |
|
|
(exit $ac_status); } && { |
5808 |
|
|
test -z "$ac_cxx_werror_flag" || |
5809 |
|
|
test ! -s conftest.err |
5810 |
|
|
} && test -s conftest$ac_exeext && |
5811 |
|
|
$as_test_x conftest$ac_exeext; then |
5812 |
|
|
eval "$as_ac_var=yes" |
5813 |
|
|
else |
5814 |
|
|
echo "$as_me: failed program was:" >&5 |
5815 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5816 |
|
|
|
5817 |
|
|
eval "$as_ac_var=no" |
5818 |
|
|
fi |
5819 |
|
|
|
5820 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5821 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5822 |
|
|
fi |
5823 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'` |
5824 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
5825 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
5826 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5827 |
|
|
cat >>confdefs.h <<_ACEOF |
5828 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5829 |
|
|
_ACEOF |
5830 |
|
|
|
5831 |
|
|
fi |
5832 |
|
|
done |
5833 |
|
|
|
5834 |
root |
1.118 |
fi |
5835 |
root |
1.116 |
|
5836 |
|
|
fi |
5837 |
|
|
|
5838 |
|
|
|
5839 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking for nanosleep" >&5 |
5840 |
|
|
echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
5841 |
|
|
if test "${ac_cv_func_nanosleep+set}" = set; then |
5842 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5843 |
|
|
else |
5844 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5845 |
|
|
/* confdefs.h. */ |
5846 |
|
|
_ACEOF |
5847 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5848 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5849 |
|
|
/* end confdefs.h. */ |
5850 |
|
|
/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
5851 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5852 |
|
|
#define nanosleep innocuous_nanosleep |
5853 |
|
|
|
5854 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
5855 |
|
|
which can conflict with char nanosleep (); below. |
5856 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5857 |
|
|
<limits.h> exists even on freestanding compilers. */ |
5858 |
|
|
|
5859 |
|
|
#ifdef __STDC__ |
5860 |
|
|
# include <limits.h> |
5861 |
|
|
#else |
5862 |
|
|
# include <assert.h> |
5863 |
|
|
#endif |
5864 |
|
|
|
5865 |
|
|
#undef nanosleep |
5866 |
|
|
|
5867 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5868 |
|
|
Use char because int might match the return type of a GCC |
5869 |
|
|
builtin and then its argument prototype would still apply. */ |
5870 |
|
|
#ifdef __cplusplus |
5871 |
|
|
extern "C" |
5872 |
|
|
#endif |
5873 |
|
|
char nanosleep (); |
5874 |
|
|
/* The GNU C library defines this for functions which it implements |
5875 |
|
|
to always fail with ENOSYS. Some functions are actually named |
5876 |
|
|
something starting with __ and the normal name is an alias. */ |
5877 |
|
|
#if defined __stub_nanosleep || defined __stub___nanosleep |
5878 |
|
|
choke me |
5879 |
|
|
#endif |
5880 |
|
|
|
5881 |
|
|
int |
5882 |
|
|
main () |
5883 |
|
|
{ |
5884 |
|
|
return nanosleep (); |
5885 |
|
|
; |
5886 |
|
|
return 0; |
5887 |
|
|
} |
5888 |
|
|
_ACEOF |
5889 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5890 |
|
|
if { (ac_try="$ac_link" |
5891 |
|
|
case "(($ac_try" in |
5892 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5893 |
|
|
*) ac_try_echo=$ac_try;; |
5894 |
|
|
esac |
5895 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5896 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5897 |
|
|
ac_status=$? |
5898 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5899 |
|
|
rm -f conftest.er1 |
5900 |
|
|
cat conftest.err >&5 |
5901 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5902 |
|
|
(exit $ac_status); } && { |
5903 |
|
|
test -z "$ac_cxx_werror_flag" || |
5904 |
|
|
test ! -s conftest.err |
5905 |
|
|
} && test -s conftest$ac_exeext && |
5906 |
|
|
$as_test_x conftest$ac_exeext; then |
5907 |
|
|
ac_cv_func_nanosleep=yes |
5908 |
|
|
else |
5909 |
|
|
echo "$as_me: failed program was:" >&5 |
5910 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5911 |
|
|
|
5912 |
|
|
ac_cv_func_nanosleep=no |
5913 |
|
|
fi |
5914 |
|
|
|
5915 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5916 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5917 |
|
|
fi |
5918 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
5919 |
|
|
echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
5920 |
|
|
if test $ac_cv_func_nanosleep = yes; then |
5921 |
|
|
: |
5922 |
|
|
else |
5923 |
|
|
|
5924 |
|
|
if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5925 |
|
|
|
5926 |
|
|
{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
5927 |
|
|
echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
5928 |
|
|
if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
5929 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5930 |
|
|
else |
5931 |
|
|
ac_check_lib_save_LIBS=$LIBS |
5932 |
|
|
LIBS="-lrt $LIBS" |
5933 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
5934 |
|
|
/* confdefs.h. */ |
5935 |
|
|
_ACEOF |
5936 |
|
|
cat confdefs.h >>conftest.$ac_ext |
5937 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
5938 |
|
|
/* end confdefs.h. */ |
5939 |
|
|
|
5940 |
|
|
/* Override any GCC internal prototype to avoid an error. |
5941 |
|
|
Use char because int might match the return type of a GCC |
5942 |
|
|
builtin and then its argument prototype would still apply. */ |
5943 |
|
|
#ifdef __cplusplus |
5944 |
|
|
extern "C" |
5945 |
|
|
#endif |
5946 |
|
|
char nanosleep (); |
5947 |
|
|
int |
5948 |
|
|
main () |
5949 |
|
|
{ |
5950 |
|
|
return nanosleep (); |
5951 |
|
|
; |
5952 |
|
|
return 0; |
5953 |
|
|
} |
5954 |
|
|
_ACEOF |
5955 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5956 |
|
|
if { (ac_try="$ac_link" |
5957 |
|
|
case "(($ac_try" in |
5958 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5959 |
|
|
*) ac_try_echo=$ac_try;; |
5960 |
|
|
esac |
5961 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5962 |
|
|
(eval "$ac_link") 2>conftest.er1 |
5963 |
|
|
ac_status=$? |
5964 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
5965 |
|
|
rm -f conftest.er1 |
5966 |
|
|
cat conftest.err >&5 |
5967 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5968 |
|
|
(exit $ac_status); } && { |
5969 |
|
|
test -z "$ac_cxx_werror_flag" || |
5970 |
|
|
test ! -s conftest.err |
5971 |
|
|
} && test -s conftest$ac_exeext && |
5972 |
|
|
$as_test_x conftest$ac_exeext; then |
5973 |
|
|
ac_cv_lib_rt_nanosleep=yes |
5974 |
|
|
else |
5975 |
|
|
echo "$as_me: failed program was:" >&5 |
5976 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5977 |
|
|
|
5978 |
|
|
ac_cv_lib_rt_nanosleep=no |
5979 |
|
|
fi |
5980 |
|
|
|
5981 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5982 |
|
|
conftest$ac_exeext conftest.$ac_ext |
5983 |
|
|
LIBS=$ac_check_lib_save_LIBS |
5984 |
|
|
fi |
5985 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
5986 |
|
|
echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
5987 |
|
|
if test $ac_cv_lib_rt_nanosleep = yes; then |
5988 |
|
|
cat >>confdefs.h <<_ACEOF |
5989 |
|
|
#define HAVE_LIBRT 1 |
5990 |
|
|
_ACEOF |
5991 |
|
|
|
5992 |
|
|
LIBS="-lrt $LIBS" |
5993 |
|
|
|
5994 |
|
|
fi |
5995 |
|
|
|
5996 |
|
|
unset ac_cv_func_nanosleep |
5997 |
|
|
|
5998 |
|
|
for ac_func in nanosleep |
5999 |
|
|
do |
6000 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6001 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6002 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
6003 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
6004 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6005 |
|
|
else |
6006 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6007 |
|
|
/* confdefs.h. */ |
6008 |
|
|
_ACEOF |
6009 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6010 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6011 |
|
|
/* end confdefs.h. */ |
6012 |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6013 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6014 |
|
|
#define $ac_func innocuous_$ac_func |
6015 |
|
|
|
6016 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
6017 |
|
|
which can conflict with char $ac_func (); below. |
6018 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6019 |
|
|
<limits.h> exists even on freestanding compilers. */ |
6020 |
|
|
|
6021 |
|
|
#ifdef __STDC__ |
6022 |
|
|
# include <limits.h> |
6023 |
|
|
#else |
6024 |
|
|
# include <assert.h> |
6025 |
|
|
#endif |
6026 |
|
|
|
6027 |
|
|
#undef $ac_func |
6028 |
|
|
|
6029 |
|
|
/* Override any GCC internal prototype to avoid an error. |
6030 |
|
|
Use char because int might match the return type of a GCC |
6031 |
|
|
builtin and then its argument prototype would still apply. */ |
6032 |
|
|
#ifdef __cplusplus |
6033 |
|
|
extern "C" |
6034 |
|
|
#endif |
6035 |
|
|
char $ac_func (); |
6036 |
|
|
/* The GNU C library defines this for functions which it implements |
6037 |
|
|
to always fail with ENOSYS. Some functions are actually named |
6038 |
|
|
something starting with __ and the normal name is an alias. */ |
6039 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func |
6040 |
|
|
choke me |
6041 |
|
|
#endif |
6042 |
|
|
|
6043 |
|
|
int |
6044 |
|
|
main () |
6045 |
|
|
{ |
6046 |
|
|
return $ac_func (); |
6047 |
|
|
; |
6048 |
|
|
return 0; |
6049 |
|
|
} |
6050 |
|
|
_ACEOF |
6051 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6052 |
|
|
if { (ac_try="$ac_link" |
6053 |
|
|
case "(($ac_try" in |
6054 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6055 |
|
|
*) ac_try_echo=$ac_try;; |
6056 |
|
|
esac |
6057 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6058 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6059 |
|
|
ac_status=$? |
6060 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6061 |
|
|
rm -f conftest.er1 |
6062 |
|
|
cat conftest.err >&5 |
6063 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6064 |
|
|
(exit $ac_status); } && { |
6065 |
|
|
test -z "$ac_cxx_werror_flag" || |
6066 |
|
|
test ! -s conftest.err |
6067 |
|
|
} && test -s conftest$ac_exeext && |
6068 |
|
|
$as_test_x conftest$ac_exeext; then |
6069 |
|
|
eval "$as_ac_var=yes" |
6070 |
|
|
else |
6071 |
|
|
echo "$as_me: failed program was:" >&5 |
6072 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6073 |
|
|
|
6074 |
|
|
eval "$as_ac_var=no" |
6075 |
|
|
fi |
6076 |
|
|
|
6077 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6078 |
|
|
conftest$ac_exeext conftest.$ac_ext |
6079 |
|
|
fi |
6080 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'` |
6081 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
6082 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
6083 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
6084 |
|
|
cat >>confdefs.h <<_ACEOF |
6085 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6086 |
|
|
_ACEOF |
6087 |
|
|
|
6088 |
|
|
fi |
6089 |
|
|
done |
6090 |
|
|
|
6091 |
|
|
fi |
6092 |
|
|
|
6093 |
|
|
fi |
6094 |
|
|
|
6095 |
|
|
|
6096 |
root |
1.116 |
|
6097 |
|
|
{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
6098 |
|
|
echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
6099 |
|
|
if test "${ac_cv_lib_m_ceil+set}" = set; then |
6100 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6101 |
|
|
else |
6102 |
|
|
ac_check_lib_save_LIBS=$LIBS |
6103 |
|
|
LIBS="-lm $LIBS" |
6104 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6105 |
|
|
/* confdefs.h. */ |
6106 |
|
|
_ACEOF |
6107 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6108 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6109 |
|
|
/* end confdefs.h. */ |
6110 |
|
|
|
6111 |
|
|
/* Override any GCC internal prototype to avoid an error. |
6112 |
|
|
Use char because int might match the return type of a GCC |
6113 |
|
|
builtin and then its argument prototype would still apply. */ |
6114 |
|
|
#ifdef __cplusplus |
6115 |
|
|
extern "C" |
6116 |
|
|
#endif |
6117 |
|
|
char ceil (); |
6118 |
|
|
int |
6119 |
|
|
main () |
6120 |
|
|
{ |
6121 |
|
|
return ceil (); |
6122 |
|
|
; |
6123 |
|
|
return 0; |
6124 |
|
|
} |
6125 |
|
|
_ACEOF |
6126 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6127 |
|
|
if { (ac_try="$ac_link" |
6128 |
|
|
case "(($ac_try" in |
6129 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6130 |
|
|
*) ac_try_echo=$ac_try;; |
6131 |
|
|
esac |
6132 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6133 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6134 |
|
|
ac_status=$? |
6135 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6136 |
|
|
rm -f conftest.er1 |
6137 |
|
|
cat conftest.err >&5 |
6138 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6139 |
|
|
(exit $ac_status); } && { |
6140 |
|
|
test -z "$ac_cxx_werror_flag" || |
6141 |
|
|
test ! -s conftest.err |
6142 |
|
|
} && test -s conftest$ac_exeext && |
6143 |
|
|
$as_test_x conftest$ac_exeext; then |
6144 |
|
|
ac_cv_lib_m_ceil=yes |
6145 |
|
|
else |
6146 |
|
|
echo "$as_me: failed program was:" >&5 |
6147 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6148 |
|
|
|
6149 |
|
|
ac_cv_lib_m_ceil=no |
6150 |
|
|
fi |
6151 |
|
|
|
6152 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6153 |
|
|
conftest$ac_exeext conftest.$ac_ext |
6154 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6155 |
|
|
fi |
6156 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
6157 |
|
|
echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
6158 |
|
|
if test $ac_cv_lib_m_ceil = yes; then |
6159 |
|
|
cat >>confdefs.h <<_ACEOF |
6160 |
|
|
#define HAVE_LIBM 1 |
6161 |
|
|
_ACEOF |
6162 |
|
|
|
6163 |
|
|
LIBS="-lm $LIBS" |
6164 |
|
|
|
6165 |
|
|
fi |
6166 |
|
|
|
6167 |
|
|
|
6168 |
|
|
|
6169 |
|
|
|
6170 |
|
|
|
6171 |
|
|
|
6172 |
|
|
|
6173 |
|
|
# Extract the first word of "tic", so it can be a program name with args. |
6174 |
|
|
set dummy tic; ac_word=$2 |
6175 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6176 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6177 |
|
|
if test "${ac_cv_path_TIC+set}" = set; then |
6178 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6179 |
|
|
else |
6180 |
|
|
case $TIC in |
6181 |
|
|
[\\/]* | ?:[\\/]*) |
6182 |
|
|
ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
6183 |
|
|
;; |
6184 |
|
|
*) |
6185 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6186 |
|
|
for as_dir in $PATH |
6187 |
|
|
do |
6188 |
|
|
IFS=$as_save_IFS |
6189 |
|
|
test -z "$as_dir" && as_dir=. |
6190 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6191 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6192 |
|
|
ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
6193 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6194 |
|
|
break 2 |
6195 |
|
|
fi |
6196 |
|
|
done |
6197 |
|
|
done |
6198 |
|
|
IFS=$as_save_IFS |
6199 |
|
|
|
6200 |
|
|
test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
6201 |
|
|
;; |
6202 |
|
|
esac |
6203 |
|
|
fi |
6204 |
|
|
TIC=$ac_cv_path_TIC |
6205 |
|
|
if test -n "$TIC"; then |
6206 |
|
|
{ echo "$as_me:$LINENO: result: $TIC" >&5 |
6207 |
|
|
echo "${ECHO_T}$TIC" >&6; } |
6208 |
|
|
else |
6209 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5 |
6210 |
|
|
echo "${ECHO_T}no" >&6; } |
6211 |
root |
1.80 |
fi |
6212 |
|
|
|
6213 |
root |
1.116 |
|
6214 |
|
|
|
6215 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for X" >&5 |
6216 |
|
|
echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6217 |
pcg |
1.24 |
|
6218 |
pcg |
1.11 |
|
6219 |
ayin |
1.108 |
# Check whether --with-x was given. |
6220 |
pcg |
1.1 |
if test "${with_x+set}" = set; then |
6221 |
ayin |
1.108 |
withval=$with_x; |
6222 |
|
|
fi |
6223 |
pcg |
1.1 |
|
6224 |
|
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6225 |
|
|
if test "x$with_x" = xno; then |
6226 |
|
|
# The user explicitly disabled X. |
6227 |
|
|
have_x=disabled |
6228 |
|
|
else |
6229 |
ayin |
1.108 |
case $x_includes,$x_libraries in #( |
6230 |
|
|
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
6231 |
|
|
echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
6232 |
|
|
{ (exit 1); exit 1; }; };; #( |
6233 |
|
|
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
6234 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6235 |
pcg |
1.1 |
else |
6236 |
|
|
# One or both of the vars are not set, and there is no cached value. |
6237 |
pcg |
1.11 |
ac_x_includes=no ac_x_libraries=no |
6238 |
ayin |
1.108 |
rm -f -r conftest.dir |
6239 |
pcg |
1.11 |
if mkdir conftest.dir; then |
6240 |
|
|
cd conftest.dir |
6241 |
|
|
cat >Imakefile <<'_ACEOF' |
6242 |
ayin |
1.108 |
incroot: |
6243 |
|
|
@echo incroot='${INCROOT}' |
6244 |
|
|
usrlibdir: |
6245 |
|
|
@echo usrlibdir='${USRLIBDIR}' |
6246 |
|
|
libdir: |
6247 |
|
|
@echo libdir='${LIBDIR}' |
6248 |
pcg |
1.11 |
_ACEOF |
6249 |
ayin |
1.108 |
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
6250 |
pcg |
1.1 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6251 |
ayin |
1.108 |
for ac_var in incroot usrlibdir libdir; do |
6252 |
|
|
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
6253 |
|
|
done |
6254 |
pcg |
1.1 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
6255 |
|
|
for ac_extension in a so sl; do |
6256 |
ayin |
1.108 |
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
6257 |
|
|
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
6258 |
pcg |
1.11 |
ac_im_usrlibdir=$ac_im_libdir; break |
6259 |
pcg |
1.1 |
fi |
6260 |
|
|
done |
6261 |
|
|
# Screen out bogus values from the imake configuration. They are |
6262 |
|
|
# bogus both because they are the default anyway, and because |
6263 |
|
|
# using them would break gcc on systems where it needs fixed includes. |
6264 |
pcg |
1.11 |
case $ac_im_incroot in |
6265 |
ayin |
1.108 |
/usr/include) ac_x_includes= ;; |
6266 |
pcg |
1.11 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
6267 |
pcg |
1.1 |
esac |
6268 |
pcg |
1.11 |
case $ac_im_usrlibdir in |
6269 |
pcg |
1.1 |
/usr/lib | /lib) ;; |
6270 |
pcg |
1.11 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
6271 |
pcg |
1.1 |
esac |
6272 |
|
|
fi |
6273 |
|
|
cd .. |
6274 |
ayin |
1.108 |
rm -f -r conftest.dir |
6275 |
pcg |
1.1 |
fi |
6276 |
|
|
|
6277 |
pcg |
1.11 |
# Standard set of common directories for X headers. |
6278 |
|
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
6279 |
|
|
ac_x_header_dirs=' |
6280 |
|
|
/usr/X11/include |
6281 |
|
|
/usr/X11R6/include |
6282 |
|
|
/usr/X11R5/include |
6283 |
|
|
/usr/X11R4/include |
6284 |
|
|
|
6285 |
|
|
/usr/include/X11 |
6286 |
|
|
/usr/include/X11R6 |
6287 |
|
|
/usr/include/X11R5 |
6288 |
|
|
/usr/include/X11R4 |
6289 |
|
|
|
6290 |
|
|
/usr/local/X11/include |
6291 |
|
|
/usr/local/X11R6/include |
6292 |
|
|
/usr/local/X11R5/include |
6293 |
|
|
/usr/local/X11R4/include |
6294 |
|
|
|
6295 |
|
|
/usr/local/include/X11 |
6296 |
|
|
/usr/local/include/X11R6 |
6297 |
|
|
/usr/local/include/X11R5 |
6298 |
|
|
/usr/local/include/X11R4 |
6299 |
|
|
|
6300 |
|
|
/usr/X386/include |
6301 |
|
|
/usr/x386/include |
6302 |
|
|
/usr/XFree86/include/X11 |
6303 |
|
|
|
6304 |
|
|
/usr/include |
6305 |
|
|
/usr/local/include |
6306 |
|
|
/usr/unsupported/include |
6307 |
|
|
/usr/athena/include |
6308 |
|
|
/usr/local/x11r5/include |
6309 |
|
|
/usr/lpp/Xamples/include |
6310 |
|
|
|
6311 |
|
|
/usr/openwin/include |
6312 |
|
|
/usr/openwin/share/include' |
6313 |
pcg |
1.1 |
|
6314 |
pcg |
1.11 |
if test "$ac_x_includes" = no; then |
6315 |
ayin |
1.108 |
# Guess where to find include files, by looking for Xlib.h. |
6316 |
pcg |
1.1 |
# First, try using that file with no special directory specified. |
6317 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
6318 |
|
|
/* confdefs.h. */ |
6319 |
|
|
_ACEOF |
6320 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6321 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6322 |
|
|
/* end confdefs.h. */ |
6323 |
ayin |
1.108 |
#include <X11/Xlib.h> |
6324 |
pcg |
1.11 |
_ACEOF |
6325 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
6326 |
|
|
case "(($ac_try" in |
6327 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6328 |
|
|
*) ac_try_echo=$ac_try;; |
6329 |
|
|
esac |
6330 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6331 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6332 |
pcg |
1.11 |
ac_status=$? |
6333 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6334 |
|
|
rm -f conftest.er1 |
6335 |
|
|
cat conftest.err >&5 |
6336 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6337 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
6338 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6339 |
|
|
test ! -s conftest.err |
6340 |
|
|
}; then |
6341 |
pcg |
1.1 |
# We can compile using X headers with no special include directory. |
6342 |
|
|
ac_x_includes= |
6343 |
|
|
else |
6344 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
6345 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6346 |
|
|
|
6347 |
|
|
for ac_dir in $ac_x_header_dirs; do |
6348 |
ayin |
1.108 |
if test -r "$ac_dir/X11/Xlib.h"; then |
6349 |
pcg |
1.11 |
ac_x_includes=$ac_dir |
6350 |
|
|
break |
6351 |
|
|
fi |
6352 |
|
|
done |
6353 |
pcg |
1.1 |
fi |
6354 |
ayin |
1.108 |
|
6355 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
6356 |
|
|
fi # $ac_x_includes = no |
6357 |
pcg |
1.1 |
|
6358 |
pcg |
1.11 |
if test "$ac_x_libraries" = no; then |
6359 |
pcg |
1.1 |
# Check for the libraries. |
6360 |
|
|
# See if we find them without any special options. |
6361 |
|
|
# Don't add to $LIBS permanently. |
6362 |
pcg |
1.11 |
ac_save_LIBS=$LIBS |
6363 |
ayin |
1.108 |
LIBS="-lX11 $LIBS" |
6364 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
6365 |
|
|
/* confdefs.h. */ |
6366 |
|
|
_ACEOF |
6367 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6368 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6369 |
|
|
/* end confdefs.h. */ |
6370 |
ayin |
1.108 |
#include <X11/Xlib.h> |
6371 |
pcg |
1.11 |
int |
6372 |
|
|
main () |
6373 |
|
|
{ |
6374 |
ayin |
1.108 |
XrmInitialize () |
6375 |
pcg |
1.11 |
; |
6376 |
|
|
return 0; |
6377 |
|
|
} |
6378 |
|
|
_ACEOF |
6379 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6380 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6381 |
|
|
case "(($ac_try" in |
6382 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6383 |
|
|
*) ac_try_echo=$ac_try;; |
6384 |
|
|
esac |
6385 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6386 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6387 |
pcg |
1.11 |
ac_status=$? |
6388 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6389 |
|
|
rm -f conftest.er1 |
6390 |
|
|
cat conftest.err >&5 |
6391 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6392 |
ayin |
1.108 |
(exit $ac_status); } && { |
6393 |
|
|
test -z "$ac_cxx_werror_flag" || |
6394 |
|
|
test ! -s conftest.err |
6395 |
|
|
} && test -s conftest$ac_exeext && |
6396 |
|
|
$as_test_x conftest$ac_exeext; then |
6397 |
pcg |
1.11 |
LIBS=$ac_save_LIBS |
6398 |
pcg |
1.1 |
# We can link X programs with no special library path. |
6399 |
|
|
ac_x_libraries= |
6400 |
|
|
else |
6401 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
6402 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6403 |
|
|
|
6404 |
ayin |
1.108 |
LIBS=$ac_save_LIBS |
6405 |
pcg |
1.11 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
6406 |
pcg |
1.1 |
do |
6407 |
pcg |
1.11 |
# Don't even attempt the hair of trying to link an X program! |
6408 |
pcg |
1.1 |
for ac_extension in a so sl; do |
6409 |
ayin |
1.108 |
if test -r "$ac_dir/libX11.$ac_extension"; then |
6410 |
pcg |
1.1 |
ac_x_libraries=$ac_dir |
6411 |
|
|
break 2 |
6412 |
|
|
fi |
6413 |
|
|
done |
6414 |
|
|
done |
6415 |
|
|
fi |
6416 |
ayin |
1.108 |
|
6417 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6418 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6419 |
|
|
fi # $ac_x_libraries = no |
6420 |
pcg |
1.1 |
|
6421 |
ayin |
1.108 |
case $ac_x_includes,$ac_x_libraries in #( |
6422 |
|
|
no,* | *,no | *\'*) |
6423 |
|
|
# Didn't find X, or a directory has "'" in its name. |
6424 |
|
|
ac_cv_have_x="have_x=no";; #( |
6425 |
|
|
*) |
6426 |
|
|
# Record where we found X for the cache. |
6427 |
|
|
ac_cv_have_x="have_x=yes\ |
6428 |
|
|
ac_x_includes='$ac_x_includes'\ |
6429 |
|
|
ac_x_libraries='$ac_x_libraries'" |
6430 |
|
|
esac |
6431 |
ayin |
1.106 |
fi |
6432 |
ayin |
1.108 |
;; #( |
6433 |
|
|
*) have_x=yes;; |
6434 |
|
|
esac |
6435 |
pcg |
1.1 |
eval "$ac_cv_have_x" |
6436 |
|
|
fi # $with_x != no |
6437 |
|
|
|
6438 |
|
|
if test "$have_x" != yes; then |
6439 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $have_x" >&5 |
6440 |
|
|
echo "${ECHO_T}$have_x" >&6; } |
6441 |
pcg |
1.1 |
no_x=yes |
6442 |
|
|
else |
6443 |
|
|
# If each of the values was on the command line, it overrides each guess. |
6444 |
|
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6445 |
|
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6446 |
|
|
# Update the cache value to reflect the command line values. |
6447 |
ayin |
1.108 |
ac_cv_have_x="have_x=yes\ |
6448 |
|
|
ac_x_includes='$x_includes'\ |
6449 |
|
|
ac_x_libraries='$x_libraries'" |
6450 |
|
|
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
6451 |
|
|
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
6452 |
pcg |
1.1 |
fi |
6453 |
|
|
|
6454 |
|
|
if test "$no_x" = yes; then |
6455 |
|
|
# Not all programs may use this symbol, but it does not hurt to define it. |
6456 |
pcg |
1.11 |
|
6457 |
|
|
cat >>confdefs.h <<\_ACEOF |
6458 |
pcg |
1.1 |
#define X_DISPLAY_MISSING 1 |
6459 |
pcg |
1.11 |
_ACEOF |
6460 |
pcg |
1.1 |
|
6461 |
|
|
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6462 |
|
|
else |
6463 |
|
|
if test -n "$x_includes"; then |
6464 |
|
|
X_CFLAGS="$X_CFLAGS -I$x_includes" |
6465 |
|
|
fi |
6466 |
|
|
|
6467 |
|
|
# It would also be nice to do this for all -L options, not just this one. |
6468 |
|
|
if test -n "$x_libraries"; then |
6469 |
|
|
X_LIBS="$X_LIBS -L$x_libraries" |
6470 |
|
|
# For Solaris; some versions of Sun CC require a space after -R and |
6471 |
|
|
# others require no space. Words are not sufficient . . . . |
6472 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
6473 |
|
|
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
6474 |
|
|
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
6475 |
|
|
ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
6476 |
|
|
ac_cxx_werror_flag=yes |
6477 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6478 |
pcg |
1.11 |
/* confdefs.h. */ |
6479 |
|
|
_ACEOF |
6480 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6481 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6482 |
|
|
/* end confdefs.h. */ |
6483 |
pcg |
1.1 |
|
6484 |
pcg |
1.11 |
int |
6485 |
|
|
main () |
6486 |
|
|
{ |
6487 |
pcg |
1.1 |
|
6488 |
pcg |
1.11 |
; |
6489 |
|
|
return 0; |
6490 |
|
|
} |
6491 |
|
|
_ACEOF |
6492 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6493 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6494 |
|
|
case "(($ac_try" in |
6495 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6496 |
|
|
*) ac_try_echo=$ac_try;; |
6497 |
|
|
esac |
6498 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6499 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6500 |
pcg |
1.11 |
ac_status=$? |
6501 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6502 |
|
|
rm -f conftest.er1 |
6503 |
|
|
cat conftest.err >&5 |
6504 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6505 |
ayin |
1.108 |
(exit $ac_status); } && { |
6506 |
|
|
test -z "$ac_cxx_werror_flag" || |
6507 |
|
|
test ! -s conftest.err |
6508 |
|
|
} && test -s conftest$ac_exeext && |
6509 |
|
|
$as_test_x conftest$ac_exeext; then |
6510 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5 |
6511 |
|
|
echo "${ECHO_T}no" >&6; } |
6512 |
|
|
X_LIBS="$X_LIBS -R$x_libraries" |
6513 |
pcg |
1.1 |
else |
6514 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
6515 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6516 |
|
|
|
6517 |
pcg |
1.1 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
6518 |
ayin |
1.108 |
cat >conftest.$ac_ext <<_ACEOF |
6519 |
pcg |
1.11 |
/* confdefs.h. */ |
6520 |
|
|
_ACEOF |
6521 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6522 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6523 |
|
|
/* end confdefs.h. */ |
6524 |
pcg |
1.1 |
|
6525 |
pcg |
1.11 |
int |
6526 |
|
|
main () |
6527 |
|
|
{ |
6528 |
pcg |
1.1 |
|
6529 |
pcg |
1.11 |
; |
6530 |
|
|
return 0; |
6531 |
|
|
} |
6532 |
|
|
_ACEOF |
6533 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6534 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6535 |
|
|
case "(($ac_try" in |
6536 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6537 |
|
|
*) ac_try_echo=$ac_try;; |
6538 |
|
|
esac |
6539 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6540 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6541 |
pcg |
1.11 |
ac_status=$? |
6542 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6543 |
|
|
rm -f conftest.er1 |
6544 |
|
|
cat conftest.err >&5 |
6545 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6546 |
ayin |
1.108 |
(exit $ac_status); } && { |
6547 |
|
|
test -z "$ac_cxx_werror_flag" || |
6548 |
|
|
test ! -s conftest.err |
6549 |
|
|
} && test -s conftest$ac_exeext && |
6550 |
|
|
$as_test_x conftest$ac_exeext; then |
6551 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5 |
6552 |
|
|
echo "${ECHO_T}yes" >&6; } |
6553 |
|
|
X_LIBS="$X_LIBS -R $x_libraries" |
6554 |
pcg |
1.1 |
else |
6555 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
6556 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6557 |
|
|
|
6558 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: neither works" >&5 |
6559 |
|
|
echo "${ECHO_T}neither works" >&6; } |
6560 |
ayin |
1.102 |
fi |
6561 |
ayin |
1.108 |
|
6562 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6563 |
|
|
conftest$ac_exeext conftest.$ac_ext |
6564 |
|
|
fi |
6565 |
|
|
|
6566 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6567 |
root |
1.105 |
conftest$ac_exeext conftest.$ac_ext |
6568 |
ayin |
1.108 |
ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
6569 |
|
|
LIBS=$ac_xsave_LIBS |
6570 |
pcg |
1.1 |
fi |
6571 |
|
|
|
6572 |
|
|
# Check for system-dependent libraries X programs must link with. |
6573 |
|
|
# Do this before checking for the system-independent R6 libraries |
6574 |
|
|
# (-lICE), since we may need -lsocket or whatever for X linking. |
6575 |
|
|
|
6576 |
|
|
if test "$ISC" = yes; then |
6577 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
6578 |
|
|
else |
6579 |
pcg |
1.11 |
# Martyn Johnson says this is needed for Ultrix, if the X |
6580 |
|
|
# libraries were built with DECnet support. And Karl Berry says |
6581 |
pcg |
1.1 |
# the Alpha needs dnet_stub (dnet does not exist). |
6582 |
pcg |
1.11 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
6583 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6584 |
|
|
/* confdefs.h. */ |
6585 |
|
|
_ACEOF |
6586 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6587 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6588 |
|
|
/* end confdefs.h. */ |
6589 |
|
|
|
6590 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6591 |
|
|
Use char because int might match the return type of a GCC |
6592 |
|
|
builtin and then its argument prototype would still apply. */ |
6593 |
pcg |
1.11 |
#ifdef __cplusplus |
6594 |
|
|
extern "C" |
6595 |
|
|
#endif |
6596 |
|
|
char XOpenDisplay (); |
6597 |
|
|
int |
6598 |
|
|
main () |
6599 |
|
|
{ |
6600 |
ayin |
1.108 |
return XOpenDisplay (); |
6601 |
pcg |
1.11 |
; |
6602 |
|
|
return 0; |
6603 |
|
|
} |
6604 |
|
|
_ACEOF |
6605 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6606 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6607 |
|
|
case "(($ac_try" in |
6608 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6609 |
|
|
*) ac_try_echo=$ac_try;; |
6610 |
|
|
esac |
6611 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6612 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6613 |
pcg |
1.11 |
ac_status=$? |
6614 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6615 |
|
|
rm -f conftest.er1 |
6616 |
|
|
cat conftest.err >&5 |
6617 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6618 |
ayin |
1.108 |
(exit $ac_status); } && { |
6619 |
|
|
test -z "$ac_cxx_werror_flag" || |
6620 |
|
|
test ! -s conftest.err |
6621 |
|
|
} && test -s conftest$ac_exeext && |
6622 |
|
|
$as_test_x conftest$ac_exeext; then |
6623 |
pcg |
1.11 |
: |
6624 |
|
|
else |
6625 |
|
|
echo "$as_me: failed program was:" >&5 |
6626 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6627 |
pcg |
1.1 |
|
6628 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
6629 |
|
|
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
6630 |
pcg |
1.11 |
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
6631 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6632 |
pcg |
1.1 |
else |
6633 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
6634 |
|
|
LIBS="-ldnet $LIBS" |
6635 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6636 |
|
|
/* confdefs.h. */ |
6637 |
|
|
_ACEOF |
6638 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6639 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6640 |
|
|
/* end confdefs.h. */ |
6641 |
pcg |
1.1 |
|
6642 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6643 |
|
|
Use char because int might match the return type of a GCC |
6644 |
|
|
builtin and then its argument prototype would still apply. */ |
6645 |
pcg |
1.11 |
#ifdef __cplusplus |
6646 |
|
|
extern "C" |
6647 |
|
|
#endif |
6648 |
|
|
char dnet_ntoa (); |
6649 |
|
|
int |
6650 |
|
|
main () |
6651 |
|
|
{ |
6652 |
ayin |
1.108 |
return dnet_ntoa (); |
6653 |
pcg |
1.11 |
; |
6654 |
|
|
return 0; |
6655 |
|
|
} |
6656 |
|
|
_ACEOF |
6657 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6658 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6659 |
|
|
case "(($ac_try" in |
6660 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6661 |
|
|
*) ac_try_echo=$ac_try;; |
6662 |
|
|
esac |
6663 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6664 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6665 |
pcg |
1.11 |
ac_status=$? |
6666 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6667 |
|
|
rm -f conftest.er1 |
6668 |
|
|
cat conftest.err >&5 |
6669 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6670 |
ayin |
1.108 |
(exit $ac_status); } && { |
6671 |
|
|
test -z "$ac_cxx_werror_flag" || |
6672 |
|
|
test ! -s conftest.err |
6673 |
|
|
} && test -s conftest$ac_exeext && |
6674 |
|
|
$as_test_x conftest$ac_exeext; then |
6675 |
pcg |
1.11 |
ac_cv_lib_dnet_dnet_ntoa=yes |
6676 |
|
|
else |
6677 |
|
|
echo "$as_me: failed program was:" >&5 |
6678 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6679 |
|
|
|
6680 |
ayin |
1.108 |
ac_cv_lib_dnet_dnet_ntoa=no |
6681 |
pcg |
1.11 |
fi |
6682 |
ayin |
1.108 |
|
6683 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6684 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6685 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6686 |
|
|
fi |
6687 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
6688 |
|
|
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6689 |
pcg |
1.11 |
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
6690 |
pcg |
1.1 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6691 |
|
|
fi |
6692 |
|
|
|
6693 |
|
|
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6694 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
6695 |
|
|
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
6696 |
pcg |
1.11 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
6697 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6698 |
pcg |
1.1 |
else |
6699 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
6700 |
pcg |
1.1 |
LIBS="-ldnet_stub $LIBS" |
6701 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
6702 |
|
|
/* confdefs.h. */ |
6703 |
|
|
_ACEOF |
6704 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6705 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6706 |
|
|
/* end confdefs.h. */ |
6707 |
|
|
|
6708 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6709 |
|
|
Use char because int might match the return type of a GCC |
6710 |
|
|
builtin and then its argument prototype would still apply. */ |
6711 |
pcg |
1.11 |
#ifdef __cplusplus |
6712 |
|
|
extern "C" |
6713 |
|
|
#endif |
6714 |
|
|
char dnet_ntoa (); |
6715 |
|
|
int |
6716 |
|
|
main () |
6717 |
|
|
{ |
6718 |
ayin |
1.108 |
return dnet_ntoa (); |
6719 |
pcg |
1.11 |
; |
6720 |
|
|
return 0; |
6721 |
|
|
} |
6722 |
|
|
_ACEOF |
6723 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6724 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6725 |
|
|
case "(($ac_try" in |
6726 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6727 |
|
|
*) ac_try_echo=$ac_try;; |
6728 |
|
|
esac |
6729 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6730 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6731 |
pcg |
1.11 |
ac_status=$? |
6732 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6733 |
|
|
rm -f conftest.er1 |
6734 |
|
|
cat conftest.err >&5 |
6735 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6736 |
ayin |
1.108 |
(exit $ac_status); } && { |
6737 |
|
|
test -z "$ac_cxx_werror_flag" || |
6738 |
|
|
test ! -s conftest.err |
6739 |
|
|
} && test -s conftest$ac_exeext && |
6740 |
|
|
$as_test_x conftest$ac_exeext; then |
6741 |
pcg |
1.11 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6742 |
|
|
else |
6743 |
|
|
echo "$as_me: failed program was:" >&5 |
6744 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6745 |
|
|
|
6746 |
ayin |
1.108 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
6747 |
pcg |
1.11 |
fi |
6748 |
ayin |
1.108 |
|
6749 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6750 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6751 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6752 |
|
|
fi |
6753 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
6754 |
|
|
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6755 |
pcg |
1.11 |
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
6756 |
pcg |
1.1 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6757 |
|
|
fi |
6758 |
|
|
|
6759 |
|
|
fi |
6760 |
pcg |
1.11 |
fi |
6761 |
ayin |
1.108 |
|
6762 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6763 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6764 |
|
|
LIBS="$ac_xsave_LIBS" |
6765 |
pcg |
1.1 |
|
6766 |
|
|
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
6767 |
|
|
# to get the SysV transport functions. |
6768 |
pcg |
1.11 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
6769 |
pcg |
1.1 |
# needs -lnsl. |
6770 |
|
|
# The nsl library prevents programs from opening the X display |
6771 |
pcg |
1.11 |
# on Irix 5.2, according to T.E. Dickey. |
6772 |
|
|
# The functions gethostbyname, getservbyname, and inet_addr are |
6773 |
|
|
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
6774 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
6775 |
|
|
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
6776 |
pcg |
1.11 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
6777 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6778 |
|
|
else |
6779 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6780 |
|
|
/* confdefs.h. */ |
6781 |
|
|
_ACEOF |
6782 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6783 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6784 |
|
|
/* end confdefs.h. */ |
6785 |
|
|
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
6786 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6787 |
|
|
#define gethostbyname innocuous_gethostbyname |
6788 |
|
|
|
6789 |
pcg |
1.1 |
/* System header to define __stub macros and hopefully few prototypes, |
6790 |
pcg |
1.11 |
which can conflict with char gethostbyname (); below. |
6791 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6792 |
|
|
<limits.h> exists even on freestanding compilers. */ |
6793 |
|
|
|
6794 |
|
|
#ifdef __STDC__ |
6795 |
|
|
# include <limits.h> |
6796 |
|
|
#else |
6797 |
|
|
# include <assert.h> |
6798 |
|
|
#endif |
6799 |
|
|
|
6800 |
|
|
#undef gethostbyname |
6801 |
|
|
|
6802 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6803 |
|
|
Use char because int might match the return type of a GCC |
6804 |
|
|
builtin and then its argument prototype would still apply. */ |
6805 |
pcg |
1.11 |
#ifdef __cplusplus |
6806 |
|
|
extern "C" |
6807 |
|
|
#endif |
6808 |
|
|
char gethostbyname (); |
6809 |
pcg |
1.1 |
/* The GNU C library defines this for functions which it implements |
6810 |
|
|
to always fail with ENOSYS. Some functions are actually named |
6811 |
|
|
something starting with __ and the normal name is an alias. */ |
6812 |
ayin |
1.108 |
#if defined __stub_gethostbyname || defined __stub___gethostbyname |
6813 |
pcg |
1.1 |
choke me |
6814 |
|
|
#endif |
6815 |
|
|
|
6816 |
pcg |
1.11 |
int |
6817 |
|
|
main () |
6818 |
|
|
{ |
6819 |
ayin |
1.108 |
return gethostbyname (); |
6820 |
pcg |
1.11 |
; |
6821 |
|
|
return 0; |
6822 |
|
|
} |
6823 |
|
|
_ACEOF |
6824 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6825 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6826 |
|
|
case "(($ac_try" in |
6827 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6828 |
|
|
*) ac_try_echo=$ac_try;; |
6829 |
|
|
esac |
6830 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6831 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6832 |
pcg |
1.11 |
ac_status=$? |
6833 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6834 |
|
|
rm -f conftest.er1 |
6835 |
|
|
cat conftest.err >&5 |
6836 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6837 |
ayin |
1.108 |
(exit $ac_status); } && { |
6838 |
|
|
test -z "$ac_cxx_werror_flag" || |
6839 |
|
|
test ! -s conftest.err |
6840 |
|
|
} && test -s conftest$ac_exeext && |
6841 |
|
|
$as_test_x conftest$ac_exeext; then |
6842 |
pcg |
1.11 |
ac_cv_func_gethostbyname=yes |
6843 |
|
|
else |
6844 |
|
|
echo "$as_me: failed program was:" >&5 |
6845 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6846 |
|
|
|
6847 |
ayin |
1.108 |
ac_cv_func_gethostbyname=no |
6848 |
pcg |
1.11 |
fi |
6849 |
ayin |
1.108 |
|
6850 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6851 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6852 |
|
|
fi |
6853 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
6854 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
6855 |
pcg |
1.11 |
|
6856 |
pcg |
1.1 |
if test $ac_cv_func_gethostbyname = no; then |
6857 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
6858 |
|
|
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
6859 |
pcg |
1.11 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
6860 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6861 |
pcg |
1.1 |
else |
6862 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
6863 |
pcg |
1.1 |
LIBS="-lnsl $LIBS" |
6864 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
6865 |
|
|
/* confdefs.h. */ |
6866 |
|
|
_ACEOF |
6867 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6868 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6869 |
|
|
/* end confdefs.h. */ |
6870 |
|
|
|
6871 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6872 |
|
|
Use char because int might match the return type of a GCC |
6873 |
|
|
builtin and then its argument prototype would still apply. */ |
6874 |
pcg |
1.11 |
#ifdef __cplusplus |
6875 |
|
|
extern "C" |
6876 |
|
|
#endif |
6877 |
|
|
char gethostbyname (); |
6878 |
|
|
int |
6879 |
|
|
main () |
6880 |
|
|
{ |
6881 |
ayin |
1.108 |
return gethostbyname (); |
6882 |
pcg |
1.11 |
; |
6883 |
|
|
return 0; |
6884 |
|
|
} |
6885 |
|
|
_ACEOF |
6886 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6887 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6888 |
|
|
case "(($ac_try" in |
6889 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6890 |
|
|
*) ac_try_echo=$ac_try;; |
6891 |
|
|
esac |
6892 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6893 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6894 |
pcg |
1.11 |
ac_status=$? |
6895 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6896 |
|
|
rm -f conftest.er1 |
6897 |
|
|
cat conftest.err >&5 |
6898 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6899 |
ayin |
1.108 |
(exit $ac_status); } && { |
6900 |
|
|
test -z "$ac_cxx_werror_flag" || |
6901 |
|
|
test ! -s conftest.err |
6902 |
|
|
} && test -s conftest$ac_exeext && |
6903 |
|
|
$as_test_x conftest$ac_exeext; then |
6904 |
pcg |
1.11 |
ac_cv_lib_nsl_gethostbyname=yes |
6905 |
|
|
else |
6906 |
|
|
echo "$as_me: failed program was:" >&5 |
6907 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6908 |
|
|
|
6909 |
ayin |
1.108 |
ac_cv_lib_nsl_gethostbyname=no |
6910 |
pcg |
1.11 |
fi |
6911 |
ayin |
1.108 |
|
6912 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6913 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6914 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6915 |
|
|
fi |
6916 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
6917 |
|
|
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
6918 |
pcg |
1.11 |
if test $ac_cv_lib_nsl_gethostbyname = yes; then |
6919 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
6920 |
|
|
fi |
6921 |
pcg |
1.1 |
|
6922 |
pcg |
1.11 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
6923 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
6924 |
|
|
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
6925 |
pcg |
1.11 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
6926 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6927 |
|
|
else |
6928 |
|
|
ac_check_lib_save_LIBS=$LIBS |
6929 |
|
|
LIBS="-lbsd $LIBS" |
6930 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
6931 |
|
|
/* confdefs.h. */ |
6932 |
|
|
_ACEOF |
6933 |
|
|
cat confdefs.h >>conftest.$ac_ext |
6934 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
6935 |
|
|
/* end confdefs.h. */ |
6936 |
pcg |
1.1 |
|
6937 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
6938 |
|
|
Use char because int might match the return type of a GCC |
6939 |
|
|
builtin and then its argument prototype would still apply. */ |
6940 |
pcg |
1.11 |
#ifdef __cplusplus |
6941 |
|
|
extern "C" |
6942 |
|
|
#endif |
6943 |
|
|
char gethostbyname (); |
6944 |
|
|
int |
6945 |
|
|
main () |
6946 |
|
|
{ |
6947 |
ayin |
1.108 |
return gethostbyname (); |
6948 |
pcg |
1.11 |
; |
6949 |
|
|
return 0; |
6950 |
|
|
} |
6951 |
|
|
_ACEOF |
6952 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6953 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
6954 |
|
|
case "(($ac_try" in |
6955 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6956 |
|
|
*) ac_try_echo=$ac_try;; |
6957 |
|
|
esac |
6958 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6959 |
|
|
(eval "$ac_link") 2>conftest.er1 |
6960 |
pcg |
1.11 |
ac_status=$? |
6961 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
6962 |
|
|
rm -f conftest.er1 |
6963 |
|
|
cat conftest.err >&5 |
6964 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6965 |
ayin |
1.108 |
(exit $ac_status); } && { |
6966 |
|
|
test -z "$ac_cxx_werror_flag" || |
6967 |
|
|
test ! -s conftest.err |
6968 |
|
|
} && test -s conftest$ac_exeext && |
6969 |
|
|
$as_test_x conftest$ac_exeext; then |
6970 |
pcg |
1.11 |
ac_cv_lib_bsd_gethostbyname=yes |
6971 |
|
|
else |
6972 |
|
|
echo "$as_me: failed program was:" >&5 |
6973 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6974 |
|
|
|
6975 |
ayin |
1.108 |
ac_cv_lib_bsd_gethostbyname=no |
6976 |
pcg |
1.11 |
fi |
6977 |
ayin |
1.108 |
|
6978 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6979 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
6980 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6981 |
|
|
fi |
6982 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
6983 |
|
|
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
6984 |
pcg |
1.11 |
if test $ac_cv_lib_bsd_gethostbyname = yes; then |
6985 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6986 |
pcg |
1.1 |
fi |
6987 |
|
|
|
6988 |
pcg |
1.11 |
fi |
6989 |
pcg |
1.1 |
fi |
6990 |
|
|
|
6991 |
|
|
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
6992 |
|
|
# socket/setsockopt and other routines are undefined under SCO ODT |
6993 |
|
|
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
6994 |
pcg |
1.11 |
# on later versions), says Simon Leinen: it contains gethostby* |
6995 |
|
|
# variants that don't use the name server (or something). -lsocket |
6996 |
|
|
# must be given before -lnsl if both are needed. We assume that |
6997 |
|
|
# if connect needs -lnsl, so does gethostbyname. |
6998 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for connect" >&5 |
6999 |
|
|
echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
7000 |
pcg |
1.11 |
if test "${ac_cv_func_connect+set}" = set; then |
7001 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7002 |
|
|
else |
7003 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7004 |
|
|
/* confdefs.h. */ |
7005 |
|
|
_ACEOF |
7006 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7007 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7008 |
|
|
/* end confdefs.h. */ |
7009 |
|
|
/* Define connect to an innocuous variant, in case <limits.h> declares connect. |
7010 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7011 |
|
|
#define connect innocuous_connect |
7012 |
|
|
|
7013 |
pcg |
1.1 |
/* System header to define __stub macros and hopefully few prototypes, |
7014 |
pcg |
1.11 |
which can conflict with char connect (); below. |
7015 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7016 |
|
|
<limits.h> exists even on freestanding compilers. */ |
7017 |
|
|
|
7018 |
|
|
#ifdef __STDC__ |
7019 |
|
|
# include <limits.h> |
7020 |
|
|
#else |
7021 |
|
|
# include <assert.h> |
7022 |
|
|
#endif |
7023 |
|
|
|
7024 |
|
|
#undef connect |
7025 |
|
|
|
7026 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7027 |
|
|
Use char because int might match the return type of a GCC |
7028 |
|
|
builtin and then its argument prototype would still apply. */ |
7029 |
pcg |
1.11 |
#ifdef __cplusplus |
7030 |
|
|
extern "C" |
7031 |
|
|
#endif |
7032 |
|
|
char connect (); |
7033 |
pcg |
1.1 |
/* The GNU C library defines this for functions which it implements |
7034 |
|
|
to always fail with ENOSYS. Some functions are actually named |
7035 |
|
|
something starting with __ and the normal name is an alias. */ |
7036 |
ayin |
1.108 |
#if defined __stub_connect || defined __stub___connect |
7037 |
pcg |
1.1 |
choke me |
7038 |
|
|
#endif |
7039 |
|
|
|
7040 |
pcg |
1.11 |
int |
7041 |
|
|
main () |
7042 |
|
|
{ |
7043 |
ayin |
1.108 |
return connect (); |
7044 |
pcg |
1.11 |
; |
7045 |
|
|
return 0; |
7046 |
|
|
} |
7047 |
|
|
_ACEOF |
7048 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7049 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7050 |
|
|
case "(($ac_try" in |
7051 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7052 |
|
|
*) ac_try_echo=$ac_try;; |
7053 |
|
|
esac |
7054 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7055 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7056 |
pcg |
1.11 |
ac_status=$? |
7057 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7058 |
|
|
rm -f conftest.er1 |
7059 |
|
|
cat conftest.err >&5 |
7060 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7061 |
ayin |
1.108 |
(exit $ac_status); } && { |
7062 |
|
|
test -z "$ac_cxx_werror_flag" || |
7063 |
|
|
test ! -s conftest.err |
7064 |
|
|
} && test -s conftest$ac_exeext && |
7065 |
|
|
$as_test_x conftest$ac_exeext; then |
7066 |
pcg |
1.11 |
ac_cv_func_connect=yes |
7067 |
|
|
else |
7068 |
|
|
echo "$as_me: failed program was:" >&5 |
7069 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7070 |
|
|
|
7071 |
ayin |
1.108 |
ac_cv_func_connect=no |
7072 |
pcg |
1.1 |
fi |
7073 |
ayin |
1.108 |
|
7074 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7075 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7076 |
pcg |
1.1 |
fi |
7077 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
7078 |
|
|
echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
7079 |
pcg |
1.1 |
|
7080 |
|
|
if test $ac_cv_func_connect = no; then |
7081 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
7082 |
|
|
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
7083 |
pcg |
1.11 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
7084 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7085 |
pcg |
1.1 |
else |
7086 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
7087 |
pcg |
1.1 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
7088 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7089 |
|
|
/* confdefs.h. */ |
7090 |
|
|
_ACEOF |
7091 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7092 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7093 |
|
|
/* end confdefs.h. */ |
7094 |
|
|
|
7095 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7096 |
|
|
Use char because int might match the return type of a GCC |
7097 |
|
|
builtin and then its argument prototype would still apply. */ |
7098 |
pcg |
1.11 |
#ifdef __cplusplus |
7099 |
|
|
extern "C" |
7100 |
|
|
#endif |
7101 |
|
|
char connect (); |
7102 |
|
|
int |
7103 |
|
|
main () |
7104 |
|
|
{ |
7105 |
ayin |
1.108 |
return connect (); |
7106 |
pcg |
1.11 |
; |
7107 |
|
|
return 0; |
7108 |
|
|
} |
7109 |
|
|
_ACEOF |
7110 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7111 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7112 |
|
|
case "(($ac_try" in |
7113 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7114 |
|
|
*) ac_try_echo=$ac_try;; |
7115 |
|
|
esac |
7116 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7117 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7118 |
pcg |
1.11 |
ac_status=$? |
7119 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7120 |
|
|
rm -f conftest.er1 |
7121 |
|
|
cat conftest.err >&5 |
7122 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7123 |
ayin |
1.108 |
(exit $ac_status); } && { |
7124 |
|
|
test -z "$ac_cxx_werror_flag" || |
7125 |
|
|
test ! -s conftest.err |
7126 |
|
|
} && test -s conftest$ac_exeext && |
7127 |
|
|
$as_test_x conftest$ac_exeext; then |
7128 |
pcg |
1.11 |
ac_cv_lib_socket_connect=yes |
7129 |
|
|
else |
7130 |
|
|
echo "$as_me: failed program was:" >&5 |
7131 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7132 |
|
|
|
7133 |
ayin |
1.108 |
ac_cv_lib_socket_connect=no |
7134 |
pcg |
1.11 |
fi |
7135 |
ayin |
1.108 |
|
7136 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7137 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7138 |
|
|
LIBS=$ac_check_lib_save_LIBS |
7139 |
|
|
fi |
7140 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
7141 |
|
|
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
7142 |
pcg |
1.11 |
if test $ac_cv_lib_socket_connect = yes; then |
7143 |
pcg |
1.1 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
7144 |
|
|
fi |
7145 |
|
|
|
7146 |
|
|
fi |
7147 |
|
|
|
7148 |
pcg |
1.11 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
7149 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for remove" >&5 |
7150 |
|
|
echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
7151 |
pcg |
1.11 |
if test "${ac_cv_func_remove+set}" = set; then |
7152 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7153 |
|
|
else |
7154 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7155 |
|
|
/* confdefs.h. */ |
7156 |
|
|
_ACEOF |
7157 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7158 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7159 |
|
|
/* end confdefs.h. */ |
7160 |
|
|
/* Define remove to an innocuous variant, in case <limits.h> declares remove. |
7161 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7162 |
|
|
#define remove innocuous_remove |
7163 |
|
|
|
7164 |
pcg |
1.1 |
/* System header to define __stub macros and hopefully few prototypes, |
7165 |
pcg |
1.11 |
which can conflict with char remove (); below. |
7166 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7167 |
|
|
<limits.h> exists even on freestanding compilers. */ |
7168 |
|
|
|
7169 |
|
|
#ifdef __STDC__ |
7170 |
|
|
# include <limits.h> |
7171 |
|
|
#else |
7172 |
|
|
# include <assert.h> |
7173 |
|
|
#endif |
7174 |
|
|
|
7175 |
|
|
#undef remove |
7176 |
|
|
|
7177 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7178 |
|
|
Use char because int might match the return type of a GCC |
7179 |
|
|
builtin and then its argument prototype would still apply. */ |
7180 |
pcg |
1.11 |
#ifdef __cplusplus |
7181 |
|
|
extern "C" |
7182 |
|
|
#endif |
7183 |
|
|
char remove (); |
7184 |
pcg |
1.1 |
/* The GNU C library defines this for functions which it implements |
7185 |
|
|
to always fail with ENOSYS. Some functions are actually named |
7186 |
|
|
something starting with __ and the normal name is an alias. */ |
7187 |
ayin |
1.108 |
#if defined __stub_remove || defined __stub___remove |
7188 |
pcg |
1.1 |
choke me |
7189 |
|
|
#endif |
7190 |
|
|
|
7191 |
pcg |
1.11 |
int |
7192 |
|
|
main () |
7193 |
|
|
{ |
7194 |
ayin |
1.108 |
return remove (); |
7195 |
pcg |
1.11 |
; |
7196 |
|
|
return 0; |
7197 |
|
|
} |
7198 |
|
|
_ACEOF |
7199 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7200 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7201 |
|
|
case "(($ac_try" in |
7202 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7203 |
|
|
*) ac_try_echo=$ac_try;; |
7204 |
|
|
esac |
7205 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7206 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7207 |
pcg |
1.11 |
ac_status=$? |
7208 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7209 |
|
|
rm -f conftest.er1 |
7210 |
|
|
cat conftest.err >&5 |
7211 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7212 |
ayin |
1.108 |
(exit $ac_status); } && { |
7213 |
|
|
test -z "$ac_cxx_werror_flag" || |
7214 |
|
|
test ! -s conftest.err |
7215 |
|
|
} && test -s conftest$ac_exeext && |
7216 |
|
|
$as_test_x conftest$ac_exeext; then |
7217 |
pcg |
1.11 |
ac_cv_func_remove=yes |
7218 |
|
|
else |
7219 |
|
|
echo "$as_me: failed program was:" >&5 |
7220 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7221 |
|
|
|
7222 |
ayin |
1.108 |
ac_cv_func_remove=no |
7223 |
pcg |
1.1 |
fi |
7224 |
ayin |
1.108 |
|
7225 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7226 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7227 |
pcg |
1.1 |
fi |
7228 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
7229 |
|
|
echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
7230 |
pcg |
1.1 |
|
7231 |
|
|
if test $ac_cv_func_remove = no; then |
7232 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
7233 |
|
|
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
7234 |
pcg |
1.11 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
7235 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7236 |
pcg |
1.1 |
else |
7237 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
7238 |
pcg |
1.1 |
LIBS="-lposix $LIBS" |
7239 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7240 |
|
|
/* confdefs.h. */ |
7241 |
|
|
_ACEOF |
7242 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7243 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7244 |
|
|
/* end confdefs.h. */ |
7245 |
|
|
|
7246 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7247 |
|
|
Use char because int might match the return type of a GCC |
7248 |
|
|
builtin and then its argument prototype would still apply. */ |
7249 |
pcg |
1.11 |
#ifdef __cplusplus |
7250 |
|
|
extern "C" |
7251 |
|
|
#endif |
7252 |
|
|
char remove (); |
7253 |
|
|
int |
7254 |
|
|
main () |
7255 |
|
|
{ |
7256 |
ayin |
1.108 |
return remove (); |
7257 |
pcg |
1.11 |
; |
7258 |
|
|
return 0; |
7259 |
|
|
} |
7260 |
|
|
_ACEOF |
7261 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7262 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7263 |
|
|
case "(($ac_try" in |
7264 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7265 |
|
|
*) ac_try_echo=$ac_try;; |
7266 |
|
|
esac |
7267 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7268 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7269 |
pcg |
1.11 |
ac_status=$? |
7270 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7271 |
|
|
rm -f conftest.er1 |
7272 |
|
|
cat conftest.err >&5 |
7273 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7274 |
ayin |
1.108 |
(exit $ac_status); } && { |
7275 |
|
|
test -z "$ac_cxx_werror_flag" || |
7276 |
|
|
test ! -s conftest.err |
7277 |
|
|
} && test -s conftest$ac_exeext && |
7278 |
|
|
$as_test_x conftest$ac_exeext; then |
7279 |
pcg |
1.11 |
ac_cv_lib_posix_remove=yes |
7280 |
|
|
else |
7281 |
|
|
echo "$as_me: failed program was:" >&5 |
7282 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7283 |
|
|
|
7284 |
ayin |
1.108 |
ac_cv_lib_posix_remove=no |
7285 |
pcg |
1.11 |
fi |
7286 |
ayin |
1.108 |
|
7287 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7288 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7289 |
|
|
LIBS=$ac_check_lib_save_LIBS |
7290 |
|
|
fi |
7291 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
7292 |
|
|
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
7293 |
pcg |
1.11 |
if test $ac_cv_lib_posix_remove = yes; then |
7294 |
pcg |
1.1 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
7295 |
|
|
fi |
7296 |
|
|
|
7297 |
|
|
fi |
7298 |
|
|
|
7299 |
|
|
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
7300 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for shmat" >&5 |
7301 |
|
|
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
7302 |
pcg |
1.11 |
if test "${ac_cv_func_shmat+set}" = set; then |
7303 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7304 |
|
|
else |
7305 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7306 |
|
|
/* confdefs.h. */ |
7307 |
|
|
_ACEOF |
7308 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7309 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7310 |
|
|
/* end confdefs.h. */ |
7311 |
|
|
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
7312 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7313 |
|
|
#define shmat innocuous_shmat |
7314 |
|
|
|
7315 |
pcg |
1.1 |
/* System header to define __stub macros and hopefully few prototypes, |
7316 |
pcg |
1.11 |
which can conflict with char shmat (); below. |
7317 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7318 |
|
|
<limits.h> exists even on freestanding compilers. */ |
7319 |
|
|
|
7320 |
|
|
#ifdef __STDC__ |
7321 |
|
|
# include <limits.h> |
7322 |
|
|
#else |
7323 |
|
|
# include <assert.h> |
7324 |
|
|
#endif |
7325 |
|
|
|
7326 |
|
|
#undef shmat |
7327 |
|
|
|
7328 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7329 |
|
|
Use char because int might match the return type of a GCC |
7330 |
|
|
builtin and then its argument prototype would still apply. */ |
7331 |
pcg |
1.11 |
#ifdef __cplusplus |
7332 |
|
|
extern "C" |
7333 |
|
|
#endif |
7334 |
|
|
char shmat (); |
7335 |
pcg |
1.1 |
/* The GNU C library defines this for functions which it implements |
7336 |
|
|
to always fail with ENOSYS. Some functions are actually named |
7337 |
|
|
something starting with __ and the normal name is an alias. */ |
7338 |
ayin |
1.108 |
#if defined __stub_shmat || defined __stub___shmat |
7339 |
pcg |
1.1 |
choke me |
7340 |
pcg |
1.11 |
#endif |
7341 |
|
|
|
7342 |
|
|
int |
7343 |
|
|
main () |
7344 |
|
|
{ |
7345 |
ayin |
1.108 |
return shmat (); |
7346 |
pcg |
1.11 |
; |
7347 |
|
|
return 0; |
7348 |
|
|
} |
7349 |
|
|
_ACEOF |
7350 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7351 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7352 |
|
|
case "(($ac_try" in |
7353 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7354 |
|
|
*) ac_try_echo=$ac_try;; |
7355 |
|
|
esac |
7356 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7357 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7358 |
pcg |
1.11 |
ac_status=$? |
7359 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7360 |
|
|
rm -f conftest.er1 |
7361 |
|
|
cat conftest.err >&5 |
7362 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7363 |
ayin |
1.108 |
(exit $ac_status); } && { |
7364 |
|
|
test -z "$ac_cxx_werror_flag" || |
7365 |
|
|
test ! -s conftest.err |
7366 |
|
|
} && test -s conftest$ac_exeext && |
7367 |
|
|
$as_test_x conftest$ac_exeext; then |
7368 |
pcg |
1.11 |
ac_cv_func_shmat=yes |
7369 |
|
|
else |
7370 |
|
|
echo "$as_me: failed program was:" >&5 |
7371 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7372 |
pcg |
1.1 |
|
7373 |
ayin |
1.108 |
ac_cv_func_shmat=no |
7374 |
pcg |
1.1 |
fi |
7375 |
ayin |
1.108 |
|
7376 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7377 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7378 |
pcg |
1.1 |
fi |
7379 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
7380 |
|
|
echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
7381 |
pcg |
1.1 |
|
7382 |
|
|
if test $ac_cv_func_shmat = no; then |
7383 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
7384 |
|
|
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
7385 |
pcg |
1.11 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
7386 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7387 |
pcg |
1.1 |
else |
7388 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
7389 |
pcg |
1.1 |
LIBS="-lipc $LIBS" |
7390 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7391 |
|
|
/* confdefs.h. */ |
7392 |
|
|
_ACEOF |
7393 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7394 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7395 |
|
|
/* end confdefs.h. */ |
7396 |
|
|
|
7397 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7398 |
|
|
Use char because int might match the return type of a GCC |
7399 |
|
|
builtin and then its argument prototype would still apply. */ |
7400 |
pcg |
1.11 |
#ifdef __cplusplus |
7401 |
|
|
extern "C" |
7402 |
|
|
#endif |
7403 |
|
|
char shmat (); |
7404 |
|
|
int |
7405 |
|
|
main () |
7406 |
|
|
{ |
7407 |
ayin |
1.108 |
return shmat (); |
7408 |
pcg |
1.11 |
; |
7409 |
|
|
return 0; |
7410 |
|
|
} |
7411 |
|
|
_ACEOF |
7412 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7413 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7414 |
|
|
case "(($ac_try" in |
7415 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7416 |
|
|
*) ac_try_echo=$ac_try;; |
7417 |
|
|
esac |
7418 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7419 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7420 |
pcg |
1.11 |
ac_status=$? |
7421 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7422 |
|
|
rm -f conftest.er1 |
7423 |
|
|
cat conftest.err >&5 |
7424 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7425 |
ayin |
1.108 |
(exit $ac_status); } && { |
7426 |
|
|
test -z "$ac_cxx_werror_flag" || |
7427 |
|
|
test ! -s conftest.err |
7428 |
|
|
} && test -s conftest$ac_exeext && |
7429 |
|
|
$as_test_x conftest$ac_exeext; then |
7430 |
pcg |
1.11 |
ac_cv_lib_ipc_shmat=yes |
7431 |
|
|
else |
7432 |
|
|
echo "$as_me: failed program was:" >&5 |
7433 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7434 |
|
|
|
7435 |
ayin |
1.108 |
ac_cv_lib_ipc_shmat=no |
7436 |
pcg |
1.11 |
fi |
7437 |
ayin |
1.108 |
|
7438 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7439 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7440 |
|
|
LIBS=$ac_check_lib_save_LIBS |
7441 |
|
|
fi |
7442 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
7443 |
|
|
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
7444 |
pcg |
1.11 |
if test $ac_cv_lib_ipc_shmat = yes; then |
7445 |
pcg |
1.1 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
7446 |
|
|
fi |
7447 |
|
|
|
7448 |
|
|
fi |
7449 |
|
|
fi |
7450 |
|
|
|
7451 |
|
|
# Check for libraries that X11R6 Xt/Xaw programs need. |
7452 |
pcg |
1.11 |
ac_save_LDFLAGS=$LDFLAGS |
7453 |
pcg |
1.1 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
7454 |
|
|
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
7455 |
|
|
# check for ICE first), but we must link in the order -lSM -lICE or |
7456 |
|
|
# we get undefined symbols. So assume we have SM if we have ICE. |
7457 |
|
|
# These have to be linked with before -lX11, unlike the other |
7458 |
|
|
# libraries we check for below, so use a different variable. |
7459 |
pcg |
1.11 |
# John Interrante, Karl Berry |
7460 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
7461 |
|
|
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
7462 |
pcg |
1.11 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
7463 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7464 |
pcg |
1.1 |
else |
7465 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
7466 |
pcg |
1.1 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
7467 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7468 |
|
|
/* confdefs.h. */ |
7469 |
|
|
_ACEOF |
7470 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7471 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7472 |
|
|
/* end confdefs.h. */ |
7473 |
|
|
|
7474 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
7475 |
|
|
Use char because int might match the return type of a GCC |
7476 |
|
|
builtin and then its argument prototype would still apply. */ |
7477 |
pcg |
1.11 |
#ifdef __cplusplus |
7478 |
|
|
extern "C" |
7479 |
|
|
#endif |
7480 |
|
|
char IceConnectionNumber (); |
7481 |
|
|
int |
7482 |
|
|
main () |
7483 |
|
|
{ |
7484 |
ayin |
1.108 |
return IceConnectionNumber (); |
7485 |
pcg |
1.11 |
; |
7486 |
|
|
return 0; |
7487 |
|
|
} |
7488 |
|
|
_ACEOF |
7489 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7490 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
7491 |
|
|
case "(($ac_try" in |
7492 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7493 |
|
|
*) ac_try_echo=$ac_try;; |
7494 |
|
|
esac |
7495 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7496 |
|
|
(eval "$ac_link") 2>conftest.er1 |
7497 |
pcg |
1.11 |
ac_status=$? |
7498 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7499 |
|
|
rm -f conftest.er1 |
7500 |
|
|
cat conftest.err >&5 |
7501 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7502 |
ayin |
1.108 |
(exit $ac_status); } && { |
7503 |
|
|
test -z "$ac_cxx_werror_flag" || |
7504 |
|
|
test ! -s conftest.err |
7505 |
|
|
} && test -s conftest$ac_exeext && |
7506 |
|
|
$as_test_x conftest$ac_exeext; then |
7507 |
pcg |
1.11 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
7508 |
|
|
else |
7509 |
|
|
echo "$as_me: failed program was:" >&5 |
7510 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7511 |
|
|
|
7512 |
ayin |
1.108 |
ac_cv_lib_ICE_IceConnectionNumber=no |
7513 |
pcg |
1.11 |
fi |
7514 |
ayin |
1.108 |
|
7515 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7516 |
pcg |
1.11 |
conftest$ac_exeext conftest.$ac_ext |
7517 |
|
|
LIBS=$ac_check_lib_save_LIBS |
7518 |
|
|
fi |
7519 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
7520 |
|
|
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
7521 |
pcg |
1.11 |
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
7522 |
pcg |
1.1 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
7523 |
|
|
fi |
7524 |
|
|
|
7525 |
pcg |
1.11 |
LDFLAGS=$ac_save_LDFLAGS |
7526 |
pcg |
1.1 |
|
7527 |
|
|
fi |
7528 |
|
|
|
7529 |
|
|
|
7530 |
ayin |
1.108 |
AFTERIMAGE_CFLAGS= |
7531 |
root |
1.103 |
AFTERIMAGE_LIBS= |
7532 |
ayin |
1.108 |
AFTERIMAGE_VERSION= |
7533 |
root |
1.103 |
|
7534 |
|
|
if test x$support_afterimage = xyes; then |
7535 |
|
|
support_afterimage=no |
7536 |
|
|
|
7537 |
ayin |
1.104 |
if test "x$afterimage_config" = "x" ; then |
7538 |
root |
1.103 |
# Extract the first word of "afterimage-config", so it can be a program name with args. |
7539 |
|
|
set dummy afterimage-config; ac_word=$2 |
7540 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7541 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7542 |
root |
1.103 |
if test "${ac_cv_path_afterimage_config+set}" = set; then |
7543 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7544 |
|
|
else |
7545 |
|
|
case $afterimage_config in |
7546 |
|
|
[\\/]* | ?:[\\/]*) |
7547 |
|
|
ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
7548 |
|
|
;; |
7549 |
|
|
*) |
7550 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7551 |
|
|
for as_dir in $PATH |
7552 |
|
|
do |
7553 |
|
|
IFS=$as_save_IFS |
7554 |
|
|
test -z "$as_dir" && as_dir=. |
7555 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7556 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7557 |
root |
1.103 |
ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
7558 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7559 |
|
|
break 2 |
7560 |
|
|
fi |
7561 |
|
|
done |
7562 |
|
|
done |
7563 |
ayin |
1.108 |
IFS=$as_save_IFS |
7564 |
root |
1.103 |
|
7565 |
|
|
test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
7566 |
|
|
;; |
7567 |
|
|
esac |
7568 |
|
|
fi |
7569 |
|
|
afterimage_config=$ac_cv_path_afterimage_config |
7570 |
|
|
if test -n "$afterimage_config"; then |
7571 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
7572 |
|
|
echo "${ECHO_T}$afterimage_config" >&6; } |
7573 |
root |
1.103 |
else |
7574 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
7575 |
|
|
echo "${ECHO_T}no" >&6; } |
7576 |
root |
1.103 |
fi |
7577 |
|
|
|
7578 |
ayin |
1.108 |
|
7579 |
root |
1.103 |
fi |
7580 |
root |
1.109 |
if test "x$afterimage_config" != "xno" ; then |
7581 |
|
|
{ echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
7582 |
ayin |
1.108 |
echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
7583 |
root |
1.109 |
xAFTERIMAGE_VERSION=`$afterimage_config --version` |
7584 |
|
|
if test -n "$xAFTERIMAGE_VERSION" ; then |
7585 |
|
|
xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
7586 |
|
|
xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
7587 |
|
|
if test "x$xAFTERIMAGE_LIBS" != "x"; then |
7588 |
|
|
libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
7589 |
|
|
libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
7590 |
|
|
if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
7591 |
|
|
support_afterimage=yes |
7592 |
|
|
AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
7593 |
|
|
AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
7594 |
|
|
AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
7595 |
|
|
fi |
7596 |
ayin |
1.108 |
fi |
7597 |
root |
1.103 |
fi |
7598 |
root |
1.109 |
if test "x$support_afterimage" = "xyes"; then |
7599 |
|
|
{ echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
7600 |
ayin |
1.108 |
echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
7601 |
root |
1.109 |
else |
7602 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5 |
7603 |
ayin |
1.108 |
echo "${ECHO_T}no" >&6; } |
7604 |
root |
1.109 |
fi |
7605 |
root |
1.103 |
fi |
7606 |
|
|
fi |
7607 |
|
|
|
7608 |
pcg |
1.11 |
|
7609 |
|
|
|
7610 |
|
|
|
7611 |
|
|
|
7612 |
|
|
|
7613 |
|
|
|
7614 |
|
|
|
7615 |
|
|
for ac_header in \ |
7616 |
pcg |
1.1 |
sys/byteorder.h \ |
7617 |
|
|
sys/ioctl.h \ |
7618 |
|
|
sys/sockio.h \ |
7619 |
|
|
sys/strredir.h \ |
7620 |
root |
1.83 |
stdint.h \ |
7621 |
|
|
wchar.h \ |
7622 |
|
|
cwchar \ |
7623 |
pcg |
1.1 |
|
7624 |
|
|
do |
7625 |
pcg |
1.11 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7626 |
ayin |
1.108 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7627 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7628 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7629 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7630 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7631 |
|
|
fi |
7632 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7633 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7634 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
7635 |
pcg |
1.11 |
else |
7636 |
|
|
# Is the header compilable? |
7637 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7638 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
7639 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7640 |
|
|
/* confdefs.h. */ |
7641 |
|
|
_ACEOF |
7642 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7643 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7644 |
|
|
/* end confdefs.h. */ |
7645 |
|
|
$ac_includes_default |
7646 |
|
|
#include <$ac_header> |
7647 |
|
|
_ACEOF |
7648 |
|
|
rm -f conftest.$ac_objext |
7649 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
7650 |
|
|
case "(($ac_try" in |
7651 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7652 |
|
|
*) ac_try_echo=$ac_try;; |
7653 |
|
|
esac |
7654 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7655 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
7656 |
pcg |
1.11 |
ac_status=$? |
7657 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7658 |
|
|
rm -f conftest.er1 |
7659 |
|
|
cat conftest.err >&5 |
7660 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7661 |
ayin |
1.108 |
(exit $ac_status); } && { |
7662 |
|
|
test -z "$ac_cxx_werror_flag" || |
7663 |
|
|
test ! -s conftest.err |
7664 |
|
|
} && test -s conftest.$ac_objext; then |
7665 |
pcg |
1.11 |
ac_header_compiler=yes |
7666 |
|
|
else |
7667 |
|
|
echo "$as_me: failed program was:" >&5 |
7668 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7669 |
|
|
|
7670 |
ayin |
1.108 |
ac_header_compiler=no |
7671 |
pcg |
1.11 |
fi |
7672 |
ayin |
1.108 |
|
7673 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7674 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7675 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7676 |
pcg |
1.11 |
|
7677 |
|
|
# Is the header present? |
7678 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7679 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
7680 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
7681 |
|
|
/* confdefs.h. */ |
7682 |
|
|
_ACEOF |
7683 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7684 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7685 |
|
|
/* end confdefs.h. */ |
7686 |
|
|
#include <$ac_header> |
7687 |
|
|
_ACEOF |
7688 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7689 |
|
|
case "(($ac_try" in |
7690 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7691 |
|
|
*) ac_try_echo=$ac_try;; |
7692 |
|
|
esac |
7693 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7694 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7695 |
pcg |
1.11 |
ac_status=$? |
7696 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7697 |
|
|
rm -f conftest.er1 |
7698 |
|
|
cat conftest.err >&5 |
7699 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7700 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
7701 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
7702 |
|
|
test ! -s conftest.err |
7703 |
|
|
}; then |
7704 |
pcg |
1.11 |
ac_header_preproc=yes |
7705 |
pcg |
1.1 |
else |
7706 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
7707 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7708 |
|
|
|
7709 |
|
|
ac_header_preproc=no |
7710 |
|
|
fi |
7711 |
ayin |
1.108 |
|
7712 |
pcg |
1.11 |
rm -f conftest.err conftest.$ac_ext |
7713 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7714 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7715 |
pcg |
1.11 |
|
7716 |
|
|
# So? What about this header? |
7717 |
pcg |
1.13 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
7718 |
pcg |
1.11 |
yes:no: ) |
7719 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7720 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7721 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7722 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7723 |
|
|
ac_header_preproc=yes |
7724 |
|
|
;; |
7725 |
|
|
no:yes:* ) |
7726 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7727 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7728 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7729 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7730 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7731 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7732 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7733 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7734 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7735 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7736 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7737 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7738 |
ayin |
1.108 |
|
7739 |
pcg |
1.11 |
;; |
7740 |
|
|
esac |
7741 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7742 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7743 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7744 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7745 |
pcg |
1.1 |
else |
7746 |
pcg |
1.11 |
eval "$as_ac_Header=\$ac_header_preproc" |
7747 |
pcg |
1.1 |
fi |
7748 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7749 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7750 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
7751 |
pcg |
1.11 |
|
7752 |
pcg |
1.1 |
fi |
7753 |
pcg |
1.11 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7754 |
|
|
cat >>confdefs.h <<_ACEOF |
7755 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7756 |
|
|
_ACEOF |
7757 |
|
|
|
7758 |
pcg |
1.1 |
fi |
7759 |
pcg |
1.11 |
|
7760 |
pcg |
1.1 |
done |
7761 |
|
|
|
7762 |
|
|
|
7763 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for XPointer" >&5 |
7764 |
|
|
echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7765 |
pcg |
1.11 |
if test "${rxvt_cv_xpointer+set}" = set; then |
7766 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7767 |
|
|
else |
7768 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7769 |
|
|
/* confdefs.h. */ |
7770 |
|
|
_ACEOF |
7771 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7772 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7773 |
|
|
/* end confdefs.h. */ |
7774 |
pcg |
1.1 |
#include <X11/Xlib.h> |
7775 |
pcg |
1.11 |
int |
7776 |
|
|
main () |
7777 |
|
|
{ |
7778 |
pcg |
1.1 |
XPointer dummy; |
7779 |
pcg |
1.11 |
; |
7780 |
|
|
return 0; |
7781 |
|
|
} |
7782 |
|
|
_ACEOF |
7783 |
|
|
rm -f conftest.$ac_objext |
7784 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
7785 |
|
|
case "(($ac_try" in |
7786 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7787 |
|
|
*) ac_try_echo=$ac_try;; |
7788 |
|
|
esac |
7789 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7790 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
7791 |
pcg |
1.11 |
ac_status=$? |
7792 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7793 |
|
|
rm -f conftest.er1 |
7794 |
|
|
cat conftest.err >&5 |
7795 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7796 |
ayin |
1.108 |
(exit $ac_status); } && { |
7797 |
|
|
test -z "$ac_cxx_werror_flag" || |
7798 |
|
|
test ! -s conftest.err |
7799 |
|
|
} && test -s conftest.$ac_objext; then |
7800 |
pcg |
1.1 |
rxvt_cv_xpointer=yes |
7801 |
|
|
else |
7802 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
7803 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7804 |
|
|
|
7805 |
ayin |
1.108 |
rxvt_cv_xpointer=no |
7806 |
pcg |
1.1 |
fi |
7807 |
ayin |
1.108 |
|
7808 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7809 |
pcg |
1.1 |
fi |
7810 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 |
7811 |
|
|
echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } |
7812 |
pcg |
1.11 |
if test x$rxvt_cv_xpointer = xyes; then |
7813 |
pcg |
1.1 |
|
7814 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
7815 |
pcg |
1.1 |
#define HAVE_XPOINTER 1 |
7816 |
pcg |
1.11 |
_ACEOF |
7817 |
pcg |
1.1 |
|
7818 |
|
|
fi |
7819 |
|
|
|
7820 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7821 |
|
|
echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7822 |
root |
1.99 |
if test "${rxvt_xlib_illegal_access+set}" = set; then |
7823 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7824 |
|
|
else |
7825 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7826 |
|
|
/* confdefs.h. */ |
7827 |
|
|
_ACEOF |
7828 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7829 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7830 |
|
|
/* end confdefs.h. */ |
7831 |
|
|
|
7832 |
|
|
#define XLIB_ILLEGAL_ACCESS |
7833 |
|
|
#include <X11/Xlib.h> |
7834 |
|
|
|
7835 |
|
|
int |
7836 |
|
|
main () |
7837 |
|
|
{ |
7838 |
|
|
|
7839 |
|
|
Display *dpy; |
7840 |
|
|
dpy->xdefaults = (char *)0; |
7841 |
|
|
|
7842 |
|
|
; |
7843 |
|
|
return 0; |
7844 |
|
|
} |
7845 |
|
|
_ACEOF |
7846 |
|
|
rm -f conftest.$ac_objext |
7847 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
7848 |
|
|
case "(($ac_try" in |
7849 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7850 |
|
|
*) ac_try_echo=$ac_try;; |
7851 |
|
|
esac |
7852 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7853 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
7854 |
root |
1.99 |
ac_status=$? |
7855 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7856 |
|
|
rm -f conftest.er1 |
7857 |
|
|
cat conftest.err >&5 |
7858 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7859 |
ayin |
1.108 |
(exit $ac_status); } && { |
7860 |
|
|
test -z "$ac_cxx_werror_flag" || |
7861 |
|
|
test ! -s conftest.err |
7862 |
|
|
} && test -s conftest.$ac_objext; then |
7863 |
root |
1.99 |
rxvt_xlib_illegal_access=yes |
7864 |
|
|
else |
7865 |
|
|
echo "$as_me: failed program was:" >&5 |
7866 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7867 |
|
|
|
7868 |
ayin |
1.108 |
rxvt_xlib_illegal_access=no |
7869 |
root |
1.99 |
|
7870 |
|
|
fi |
7871 |
ayin |
1.108 |
|
7872 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7873 |
root |
1.99 |
fi |
7874 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
7875 |
|
|
echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } |
7876 |
root |
1.99 |
if test x$rxvt_xlib_illegal_access = xyes; then |
7877 |
|
|
|
7878 |
|
|
cat >>confdefs.h <<\_ACEOF |
7879 |
|
|
#define XLIB_ILLEGAL_ACCESS 1 |
7880 |
|
|
_ACEOF |
7881 |
|
|
|
7882 |
|
|
fi |
7883 |
pcg |
1.1 |
|
7884 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for mode_t" >&5 |
7885 |
|
|
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7886 |
pcg |
1.11 |
if test "${ac_cv_type_mode_t+set}" = set; then |
7887 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7888 |
|
|
else |
7889 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7890 |
|
|
/* confdefs.h. */ |
7891 |
|
|
_ACEOF |
7892 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7893 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7894 |
|
|
/* end confdefs.h. */ |
7895 |
|
|
$ac_includes_default |
7896 |
ayin |
1.108 |
typedef mode_t ac__type_new_; |
7897 |
pcg |
1.11 |
int |
7898 |
|
|
main () |
7899 |
|
|
{ |
7900 |
ayin |
1.108 |
if ((ac__type_new_ *) 0) |
7901 |
pcg |
1.11 |
return 0; |
7902 |
ayin |
1.108 |
if (sizeof (ac__type_new_)) |
7903 |
pcg |
1.11 |
return 0; |
7904 |
|
|
; |
7905 |
|
|
return 0; |
7906 |
|
|
} |
7907 |
|
|
_ACEOF |
7908 |
|
|
rm -f conftest.$ac_objext |
7909 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
7910 |
|
|
case "(($ac_try" in |
7911 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7912 |
|
|
*) ac_try_echo=$ac_try;; |
7913 |
|
|
esac |
7914 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7915 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
7916 |
pcg |
1.11 |
ac_status=$? |
7917 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7918 |
|
|
rm -f conftest.er1 |
7919 |
|
|
cat conftest.err >&5 |
7920 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7921 |
ayin |
1.108 |
(exit $ac_status); } && { |
7922 |
|
|
test -z "$ac_cxx_werror_flag" || |
7923 |
|
|
test ! -s conftest.err |
7924 |
|
|
} && test -s conftest.$ac_objext; then |
7925 |
pcg |
1.11 |
ac_cv_type_mode_t=yes |
7926 |
pcg |
1.1 |
else |
7927 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
7928 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7929 |
pcg |
1.1 |
|
7930 |
ayin |
1.108 |
ac_cv_type_mode_t=no |
7931 |
pcg |
1.1 |
fi |
7932 |
ayin |
1.108 |
|
7933 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7934 |
pcg |
1.1 |
fi |
7935 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
7936 |
|
|
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
7937 |
pcg |
1.11 |
if test $ac_cv_type_mode_t = yes; then |
7938 |
pcg |
1.1 |
: |
7939 |
|
|
else |
7940 |
|
|
|
7941 |
pcg |
1.11 |
cat >>confdefs.h <<_ACEOF |
7942 |
|
|
#define mode_t int |
7943 |
|
|
_ACEOF |
7944 |
pcg |
1.1 |
|
7945 |
|
|
fi |
7946 |
|
|
|
7947 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for pid_t" >&5 |
7948 |
|
|
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
7949 |
pcg |
1.11 |
if test "${ac_cv_type_pid_t+set}" = set; then |
7950 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7951 |
|
|
else |
7952 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
7953 |
|
|
/* confdefs.h. */ |
7954 |
|
|
_ACEOF |
7955 |
|
|
cat confdefs.h >>conftest.$ac_ext |
7956 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
7957 |
|
|
/* end confdefs.h. */ |
7958 |
|
|
$ac_includes_default |
7959 |
ayin |
1.108 |
typedef pid_t ac__type_new_; |
7960 |
pcg |
1.11 |
int |
7961 |
|
|
main () |
7962 |
|
|
{ |
7963 |
ayin |
1.108 |
if ((ac__type_new_ *) 0) |
7964 |
pcg |
1.11 |
return 0; |
7965 |
ayin |
1.108 |
if (sizeof (ac__type_new_)) |
7966 |
pcg |
1.11 |
return 0; |
7967 |
|
|
; |
7968 |
|
|
return 0; |
7969 |
|
|
} |
7970 |
|
|
_ACEOF |
7971 |
|
|
rm -f conftest.$ac_objext |
7972 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
7973 |
|
|
case "(($ac_try" in |
7974 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7975 |
|
|
*) ac_try_echo=$ac_try;; |
7976 |
|
|
esac |
7977 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7978 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
7979 |
pcg |
1.11 |
ac_status=$? |
7980 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
7981 |
|
|
rm -f conftest.er1 |
7982 |
|
|
cat conftest.err >&5 |
7983 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7984 |
ayin |
1.108 |
(exit $ac_status); } && { |
7985 |
|
|
test -z "$ac_cxx_werror_flag" || |
7986 |
|
|
test ! -s conftest.err |
7987 |
|
|
} && test -s conftest.$ac_objext; then |
7988 |
pcg |
1.11 |
ac_cv_type_pid_t=yes |
7989 |
pcg |
1.1 |
else |
7990 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
7991 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7992 |
pcg |
1.1 |
|
7993 |
ayin |
1.108 |
ac_cv_type_pid_t=no |
7994 |
pcg |
1.1 |
fi |
7995 |
ayin |
1.108 |
|
7996 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7997 |
pcg |
1.1 |
fi |
7998 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
7999 |
|
|
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
8000 |
pcg |
1.11 |
if test $ac_cv_type_pid_t = yes; then |
8001 |
|
|
: |
8002 |
pcg |
1.1 |
else |
8003 |
|
|
|
8004 |
pcg |
1.11 |
cat >>confdefs.h <<_ACEOF |
8005 |
pcg |
1.1 |
#define pid_t int |
8006 |
pcg |
1.11 |
_ACEOF |
8007 |
pcg |
1.1 |
|
8008 |
|
|
fi |
8009 |
|
|
|
8010 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
8011 |
|
|
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
8012 |
pcg |
1.11 |
if test "${ac_cv_type_uid_t+set}" = set; then |
8013 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8014 |
pcg |
1.1 |
else |
8015 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
8016 |
|
|
/* confdefs.h. */ |
8017 |
|
|
_ACEOF |
8018 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8019 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8020 |
|
|
/* end confdefs.h. */ |
8021 |
pcg |
1.1 |
#include <sys/types.h> |
8022 |
pcg |
1.11 |
|
8023 |
|
|
_ACEOF |
8024 |
pcg |
1.1 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8025 |
pcg |
1.11 |
$EGREP "uid_t" >/dev/null 2>&1; then |
8026 |
pcg |
1.1 |
ac_cv_type_uid_t=yes |
8027 |
|
|
else |
8028 |
|
|
ac_cv_type_uid_t=no |
8029 |
|
|
fi |
8030 |
|
|
rm -f conftest* |
8031 |
|
|
|
8032 |
|
|
fi |
8033 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
8034 |
|
|
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
8035 |
pcg |
1.11 |
if test $ac_cv_type_uid_t = no; then |
8036 |
pcg |
1.1 |
|
8037 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
8038 |
pcg |
1.1 |
#define uid_t int |
8039 |
pcg |
1.11 |
_ACEOF |
8040 |
|
|
|
8041 |
pcg |
1.1 |
|
8042 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
8043 |
pcg |
1.1 |
#define gid_t int |
8044 |
pcg |
1.11 |
_ACEOF |
8045 |
pcg |
1.1 |
|
8046 |
|
|
fi |
8047 |
|
|
|
8048 |
|
|
|
8049 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: checking for int16_t" >&5 |
8050 |
|
|
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8051 |
|
|
if test "${ac_cv_c_int16_t+set}" = set; then |
8052 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8053 |
|
|
else |
8054 |
ayin |
1.122 |
ac_cv_c_int16_t=no |
8055 |
|
|
for ac_type in 'int16_t' 'int' 'long int' \ |
8056 |
|
|
'long long int' 'short int' 'signed char'; do |
8057 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8058 |
pcg |
1.11 |
/* confdefs.h. */ |
8059 |
|
|
_ACEOF |
8060 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8061 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8062 |
|
|
/* end confdefs.h. */ |
8063 |
|
|
$ac_includes_default |
8064 |
|
|
int |
8065 |
|
|
main () |
8066 |
|
|
{ |
8067 |
ayin |
1.122 |
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8068 |
pcg |
1.11 |
test_array [0] = 0 |
8069 |
pcg |
1.1 |
|
8070 |
pcg |
1.11 |
; |
8071 |
|
|
return 0; |
8072 |
|
|
} |
8073 |
|
|
_ACEOF |
8074 |
|
|
rm -f conftest.$ac_objext |
8075 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8076 |
|
|
case "(($ac_try" in |
8077 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8078 |
|
|
*) ac_try_echo=$ac_try;; |
8079 |
|
|
esac |
8080 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8081 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8082 |
pcg |
1.11 |
ac_status=$? |
8083 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8084 |
|
|
rm -f conftest.er1 |
8085 |
|
|
cat conftest.err >&5 |
8086 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8087 |
ayin |
1.108 |
(exit $ac_status); } && { |
8088 |
|
|
test -z "$ac_cxx_werror_flag" || |
8089 |
|
|
test ! -s conftest.err |
8090 |
|
|
} && test -s conftest.$ac_objext; then |
8091 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
8092 |
|
|
/* confdefs.h. */ |
8093 |
|
|
_ACEOF |
8094 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8095 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8096 |
|
|
/* end confdefs.h. */ |
8097 |
|
|
$ac_includes_default |
8098 |
|
|
int |
8099 |
|
|
main () |
8100 |
pcg |
1.1 |
{ |
8101 |
ayin |
1.122 |
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
8102 |
|
|
< ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8103 |
|
|
test_array [0] = 0 |
8104 |
pcg |
1.11 |
|
8105 |
|
|
; |
8106 |
|
|
return 0; |
8107 |
pcg |
1.1 |
} |
8108 |
pcg |
1.11 |
_ACEOF |
8109 |
ayin |
1.122 |
rm -f conftest.$ac_objext |
8110 |
|
|
if { (ac_try="$ac_compile" |
8111 |
ayin |
1.108 |
case "(($ac_try" in |
8112 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8113 |
|
|
*) ac_try_echo=$ac_try;; |
8114 |
|
|
esac |
8115 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8116 |
ayin |
1.122 |
(eval "$ac_compile") 2>conftest.er1 |
8117 |
pcg |
1.11 |
ac_status=$? |
8118 |
ayin |
1.122 |
grep -v '^ *+' conftest.er1 >conftest.err |
8119 |
|
|
rm -f conftest.er1 |
8120 |
|
|
cat conftest.err >&5 |
8121 |
pcg |
1.11 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8122 |
ayin |
1.122 |
(exit $ac_status); } && { |
8123 |
|
|
test -z "$ac_cxx_werror_flag" || |
8124 |
|
|
test ! -s conftest.err |
8125 |
|
|
} && test -s conftest.$ac_objext; then |
8126 |
|
|
: |
8127 |
|
|
else |
8128 |
|
|
echo "$as_me: failed program was:" >&5 |
8129 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8130 |
|
|
|
8131 |
|
|
case $ac_type in |
8132 |
|
|
int16_t) ac_cv_c_int16_t=yes ;; |
8133 |
|
|
*) ac_cv_c_int16_t=$ac_type ;; |
8134 |
ayin |
1.108 |
esac |
8135 |
ayin |
1.122 |
|
8136 |
|
|
fi |
8137 |
|
|
|
8138 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8139 |
pcg |
1.11 |
else |
8140 |
ayin |
1.122 |
echo "$as_me: failed program was:" >&5 |
8141 |
pcg |
1.11 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8142 |
|
|
|
8143 |
ayin |
1.122 |
|
8144 |
pcg |
1.11 |
fi |
8145 |
ayin |
1.122 |
|
8146 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8147 |
|
|
test "$ac_cv_c_int16_t" != no && break |
8148 |
|
|
done |
8149 |
pcg |
1.11 |
fi |
8150 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
8151 |
|
|
echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
8152 |
|
|
case $ac_cv_c_int16_t in #( |
8153 |
|
|
no|yes) ;; #( |
8154 |
|
|
*) |
8155 |
ayin |
1.108 |
|
8156 |
pcg |
1.11 |
cat >>confdefs.h <<_ACEOF |
8157 |
ayin |
1.122 |
#define int16_t $ac_cv_c_int16_t |
8158 |
pcg |
1.11 |
_ACEOF |
8159 |
ayin |
1.122 |
;; |
8160 |
|
|
esac |
8161 |
pcg |
1.1 |
|
8162 |
|
|
|
8163 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8164 |
|
|
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
8165 |
|
|
if test "${ac_cv_c_uint16_t+set}" = set; then |
8166 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8167 |
pcg |
1.1 |
else |
8168 |
ayin |
1.122 |
ac_cv_c_uint16_t=no |
8169 |
|
|
for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
8170 |
|
|
'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8171 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8172 |
pcg |
1.11 |
/* confdefs.h. */ |
8173 |
|
|
_ACEOF |
8174 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8175 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8176 |
|
|
/* end confdefs.h. */ |
8177 |
ayin |
1.122 |
$ac_includes_default |
8178 |
pcg |
1.11 |
int |
8179 |
|
|
main () |
8180 |
|
|
{ |
8181 |
ayin |
1.122 |
static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8182 |
|
|
test_array [0] = 0 |
8183 |
|
|
|
8184 |
pcg |
1.11 |
; |
8185 |
|
|
return 0; |
8186 |
|
|
} |
8187 |
|
|
_ACEOF |
8188 |
|
|
rm -f conftest.$ac_objext |
8189 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8190 |
|
|
case "(($ac_try" in |
8191 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8192 |
|
|
*) ac_try_echo=$ac_try;; |
8193 |
|
|
esac |
8194 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8195 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8196 |
pcg |
1.11 |
ac_status=$? |
8197 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8198 |
|
|
rm -f conftest.er1 |
8199 |
|
|
cat conftest.err >&5 |
8200 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8201 |
ayin |
1.108 |
(exit $ac_status); } && { |
8202 |
|
|
test -z "$ac_cxx_werror_flag" || |
8203 |
|
|
test ! -s conftest.err |
8204 |
|
|
} && test -s conftest.$ac_objext; then |
8205 |
ayin |
1.122 |
case $ac_type in |
8206 |
|
|
uint16_t) ac_cv_c_uint16_t=yes ;; |
8207 |
|
|
*) ac_cv_c_uint16_t=$ac_type ;; |
8208 |
|
|
esac |
8209 |
|
|
|
8210 |
pcg |
1.1 |
else |
8211 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
8212 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8213 |
|
|
|
8214 |
ayin |
1.122 |
|
8215 |
pcg |
1.1 |
fi |
8216 |
ayin |
1.108 |
|
8217 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8218 |
ayin |
1.122 |
test "$ac_cv_c_uint16_t" != no && break |
8219 |
|
|
done |
8220 |
pcg |
1.1 |
fi |
8221 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8222 |
|
|
echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
8223 |
|
|
case $ac_cv_c_uint16_t in #( |
8224 |
|
|
no|yes) ;; #( |
8225 |
|
|
*) |
8226 |
|
|
|
8227 |
|
|
|
8228 |
|
|
cat >>confdefs.h <<_ACEOF |
8229 |
|
|
#define uint16_t $ac_cv_c_uint16_t |
8230 |
|
|
_ACEOF |
8231 |
|
|
;; |
8232 |
|
|
esac |
8233 |
|
|
|
8234 |
pcg |
1.1 |
|
8235 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: checking for int32_t" >&5 |
8236 |
|
|
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
8237 |
|
|
if test "${ac_cv_c_int32_t+set}" = set; then |
8238 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8239 |
|
|
else |
8240 |
ayin |
1.122 |
ac_cv_c_int32_t=no |
8241 |
|
|
for ac_type in 'int32_t' 'int' 'long int' \ |
8242 |
|
|
'long long int' 'short int' 'signed char'; do |
8243 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8244 |
pcg |
1.11 |
/* confdefs.h. */ |
8245 |
|
|
_ACEOF |
8246 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8247 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8248 |
|
|
/* end confdefs.h. */ |
8249 |
ayin |
1.122 |
$ac_includes_default |
8250 |
pcg |
1.11 |
int |
8251 |
|
|
main () |
8252 |
|
|
{ |
8253 |
ayin |
1.122 |
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8254 |
|
|
test_array [0] = 0 |
8255 |
|
|
|
8256 |
pcg |
1.11 |
; |
8257 |
|
|
return 0; |
8258 |
|
|
} |
8259 |
|
|
_ACEOF |
8260 |
|
|
rm -f conftest.$ac_objext |
8261 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8262 |
|
|
case "(($ac_try" in |
8263 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8264 |
|
|
*) ac_try_echo=$ac_try;; |
8265 |
|
|
esac |
8266 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8267 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8268 |
pcg |
1.11 |
ac_status=$? |
8269 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8270 |
|
|
rm -f conftest.er1 |
8271 |
|
|
cat conftest.err >&5 |
8272 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8273 |
ayin |
1.108 |
(exit $ac_status); } && { |
8274 |
|
|
test -z "$ac_cxx_werror_flag" || |
8275 |
|
|
test ! -s conftest.err |
8276 |
|
|
} && test -s conftest.$ac_objext; then |
8277 |
pcg |
1.11 |
cat >conftest.$ac_ext <<_ACEOF |
8278 |
|
|
/* confdefs.h. */ |
8279 |
|
|
_ACEOF |
8280 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8281 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8282 |
|
|
/* end confdefs.h. */ |
8283 |
ayin |
1.122 |
$ac_includes_default |
8284 |
pcg |
1.11 |
int |
8285 |
|
|
main () |
8286 |
|
|
{ |
8287 |
ayin |
1.122 |
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
8288 |
|
|
< ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8289 |
|
|
test_array [0] = 0 |
8290 |
|
|
|
8291 |
pcg |
1.11 |
; |
8292 |
|
|
return 0; |
8293 |
|
|
} |
8294 |
|
|
_ACEOF |
8295 |
|
|
rm -f conftest.$ac_objext |
8296 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8297 |
|
|
case "(($ac_try" in |
8298 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8299 |
|
|
*) ac_try_echo=$ac_try;; |
8300 |
|
|
esac |
8301 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8302 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8303 |
pcg |
1.11 |
ac_status=$? |
8304 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8305 |
|
|
rm -f conftest.er1 |
8306 |
|
|
cat conftest.err >&5 |
8307 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8308 |
ayin |
1.108 |
(exit $ac_status); } && { |
8309 |
|
|
test -z "$ac_cxx_werror_flag" || |
8310 |
|
|
test ! -s conftest.err |
8311 |
|
|
} && test -s conftest.$ac_objext; then |
8312 |
ayin |
1.122 |
: |
8313 |
pcg |
1.1 |
else |
8314 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
8315 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8316 |
|
|
|
8317 |
ayin |
1.122 |
case $ac_type in |
8318 |
|
|
int32_t) ac_cv_c_int32_t=yes ;; |
8319 |
|
|
*) ac_cv_c_int32_t=$ac_type ;; |
8320 |
|
|
esac |
8321 |
|
|
|
8322 |
|
|
fi |
8323 |
|
|
|
8324 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8325 |
pcg |
1.1 |
else |
8326 |
ayin |
1.122 |
echo "$as_me: failed program was:" >&5 |
8327 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8328 |
|
|
|
8329 |
|
|
|
8330 |
pcg |
1.1 |
fi |
8331 |
ayin |
1.108 |
|
8332 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8333 |
ayin |
1.122 |
test "$ac_cv_c_int32_t" != no && break |
8334 |
|
|
done |
8335 |
pcg |
1.1 |
fi |
8336 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
8337 |
|
|
echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
8338 |
|
|
case $ac_cv_c_int32_t in #( |
8339 |
|
|
no|yes) ;; #( |
8340 |
|
|
*) |
8341 |
|
|
|
8342 |
|
|
cat >>confdefs.h <<_ACEOF |
8343 |
|
|
#define int32_t $ac_cv_c_int32_t |
8344 |
|
|
_ACEOF |
8345 |
|
|
;; |
8346 |
|
|
esac |
8347 |
|
|
|
8348 |
pcg |
1.1 |
|
8349 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: checking for uint32_t" >&5 |
8350 |
ayin |
1.108 |
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
8351 |
ayin |
1.122 |
if test "${ac_cv_c_uint32_t+set}" = set; then |
8352 |
pcg |
1.11 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8353 |
|
|
else |
8354 |
ayin |
1.122 |
ac_cv_c_uint32_t=no |
8355 |
|
|
for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
8356 |
|
|
'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8357 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8358 |
pcg |
1.11 |
/* confdefs.h. */ |
8359 |
|
|
_ACEOF |
8360 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8361 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8362 |
|
|
/* end confdefs.h. */ |
8363 |
ayin |
1.122 |
$ac_includes_default |
8364 |
pcg |
1.11 |
int |
8365 |
|
|
main () |
8366 |
|
|
{ |
8367 |
ayin |
1.122 |
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8368 |
|
|
test_array [0] = 0 |
8369 |
|
|
|
8370 |
pcg |
1.11 |
; |
8371 |
|
|
return 0; |
8372 |
|
|
} |
8373 |
|
|
_ACEOF |
8374 |
|
|
rm -f conftest.$ac_objext |
8375 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8376 |
|
|
case "(($ac_try" in |
8377 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8378 |
|
|
*) ac_try_echo=$ac_try;; |
8379 |
|
|
esac |
8380 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8381 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8382 |
pcg |
1.11 |
ac_status=$? |
8383 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8384 |
|
|
rm -f conftest.er1 |
8385 |
|
|
cat conftest.err >&5 |
8386 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8387 |
ayin |
1.108 |
(exit $ac_status); } && { |
8388 |
|
|
test -z "$ac_cxx_werror_flag" || |
8389 |
|
|
test ! -s conftest.err |
8390 |
|
|
} && test -s conftest.$ac_objext; then |
8391 |
ayin |
1.122 |
case $ac_type in |
8392 |
|
|
uint32_t) ac_cv_c_uint32_t=yes ;; |
8393 |
|
|
*) ac_cv_c_uint32_t=$ac_type ;; |
8394 |
|
|
esac |
8395 |
|
|
|
8396 |
pcg |
1.1 |
else |
8397 |
pcg |
1.11 |
echo "$as_me: failed program was:" >&5 |
8398 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8399 |
|
|
|
8400 |
ayin |
1.122 |
|
8401 |
pcg |
1.1 |
fi |
8402 |
ayin |
1.108 |
|
8403 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8404 |
ayin |
1.122 |
test "$ac_cv_c_uint32_t" != no && break |
8405 |
|
|
done |
8406 |
pcg |
1.1 |
fi |
8407 |
ayin |
1.122 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8408 |
|
|
echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
8409 |
|
|
case $ac_cv_c_uint32_t in #( |
8410 |
|
|
no|yes) ;; #( |
8411 |
|
|
*) |
8412 |
|
|
|
8413 |
|
|
cat >>confdefs.h <<\_ACEOF |
8414 |
|
|
#define _UINT32_T 1 |
8415 |
|
|
_ACEOF |
8416 |
pcg |
1.1 |
|
8417 |
|
|
|
8418 |
ayin |
1.122 |
cat >>confdefs.h <<_ACEOF |
8419 |
|
|
#define uint32_t $ac_cv_c_uint32_t |
8420 |
|
|
_ACEOF |
8421 |
|
|
;; |
8422 |
|
|
esac |
8423 |
pcg |
1.1 |
|
8424 |
|
|
|
8425 |
root |
1.76 |
|
8426 |
ayin |
1.115 |
for ac_func in unsetenv |
8427 |
root |
1.83 |
do |
8428 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8429 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8430 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8431 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8432 |
root |
1.83 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8433 |
|
|
else |
8434 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8435 |
|
|
/* confdefs.h. */ |
8436 |
|
|
_ACEOF |
8437 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8438 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8439 |
|
|
/* end confdefs.h. */ |
8440 |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8441 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8442 |
|
|
#define $ac_func innocuous_$ac_func |
8443 |
|
|
|
8444 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
8445 |
|
|
which can conflict with char $ac_func (); below. |
8446 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8447 |
|
|
<limits.h> exists even on freestanding compilers. */ |
8448 |
|
|
|
8449 |
|
|
#ifdef __STDC__ |
8450 |
|
|
# include <limits.h> |
8451 |
|
|
#else |
8452 |
|
|
# include <assert.h> |
8453 |
|
|
#endif |
8454 |
|
|
|
8455 |
|
|
#undef $ac_func |
8456 |
pcg |
1.11 |
|
8457 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
8458 |
|
|
Use char because int might match the return type of a GCC |
8459 |
|
|
builtin and then its argument prototype would still apply. */ |
8460 |
root |
1.83 |
#ifdef __cplusplus |
8461 |
|
|
extern "C" |
8462 |
|
|
#endif |
8463 |
|
|
char $ac_func (); |
8464 |
|
|
/* The GNU C library defines this for functions which it implements |
8465 |
|
|
to always fail with ENOSYS. Some functions are actually named |
8466 |
|
|
something starting with __ and the normal name is an alias. */ |
8467 |
ayin |
1.108 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8468 |
root |
1.83 |
choke me |
8469 |
|
|
#endif |
8470 |
pcg |
1.11 |
|
8471 |
root |
1.83 |
int |
8472 |
|
|
main () |
8473 |
|
|
{ |
8474 |
ayin |
1.108 |
return $ac_func (); |
8475 |
root |
1.83 |
; |
8476 |
|
|
return 0; |
8477 |
|
|
} |
8478 |
|
|
_ACEOF |
8479 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8480 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
8481 |
|
|
case "(($ac_try" in |
8482 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8483 |
|
|
*) ac_try_echo=$ac_try;; |
8484 |
|
|
esac |
8485 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8486 |
|
|
(eval "$ac_link") 2>conftest.er1 |
8487 |
root |
1.83 |
ac_status=$? |
8488 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8489 |
|
|
rm -f conftest.er1 |
8490 |
|
|
cat conftest.err >&5 |
8491 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8492 |
ayin |
1.108 |
(exit $ac_status); } && { |
8493 |
|
|
test -z "$ac_cxx_werror_flag" || |
8494 |
|
|
test ! -s conftest.err |
8495 |
|
|
} && test -s conftest$ac_exeext && |
8496 |
|
|
$as_test_x conftest$ac_exeext; then |
8497 |
root |
1.83 |
eval "$as_ac_var=yes" |
8498 |
|
|
else |
8499 |
|
|
echo "$as_me: failed program was:" >&5 |
8500 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8501 |
pcg |
1.11 |
|
8502 |
ayin |
1.108 |
eval "$as_ac_var=no" |
8503 |
root |
1.83 |
fi |
8504 |
ayin |
1.108 |
|
8505 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8506 |
root |
1.83 |
conftest$ac_exeext conftest.$ac_ext |
8507 |
|
|
fi |
8508 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8509 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8510 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
8511 |
root |
1.83 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8512 |
|
|
cat >>confdefs.h <<_ACEOF |
8513 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8514 |
|
|
_ACEOF |
8515 |
pcg |
1.11 |
|
8516 |
root |
1.83 |
fi |
8517 |
|
|
done |
8518 |
pcg |
1.11 |
|
8519 |
|
|
|
8520 |
|
|
|
8521 |
root |
1.92 |
support_utmp=yes |
8522 |
|
|
support_wtmp=yes |
8523 |
|
|
support_lastlog=yes |
8524 |
|
|
|
8525 |
ayin |
1.108 |
# Check whether --enable-utmp was given. |
8526 |
root |
1.92 |
if test "${enable_utmp+set}" = set; then |
8527 |
ayin |
1.108 |
enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
8528 |
root |
1.92 |
support_utmp=$enableval |
8529 |
|
|
fi |
8530 |
ayin |
1.108 |
fi |
8531 |
ayin |
1.102 |
|
8532 |
ayin |
1.108 |
|
8533 |
|
|
# Check whether --enable-wtmp was given. |
8534 |
root |
1.92 |
if test "${enable_wtmp+set}" = set; then |
8535 |
ayin |
1.108 |
enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
8536 |
root |
1.92 |
support_wtmp=$enableval |
8537 |
|
|
fi |
8538 |
ayin |
1.108 |
fi |
8539 |
ayin |
1.102 |
|
8540 |
ayin |
1.108 |
|
8541 |
|
|
# Check whether --enable-lastlog was given. |
8542 |
root |
1.92 |
if test "${enable_lastlog+set}" = set; then |
8543 |
ayin |
1.108 |
enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
8544 |
root |
1.92 |
support_lastlog=$enableval |
8545 |
|
|
fi |
8546 |
ayin |
1.108 |
fi |
8547 |
|
|
|
8548 |
root |
1.92 |
|
8549 |
|
|
if test x$support_utmp = xyes; then |
8550 |
|
|
|
8551 |
|
|
cat >>confdefs.h <<\_ACEOF |
8552 |
|
|
#define UTMP_SUPPORT 1 |
8553 |
|
|
_ACEOF |
8554 |
|
|
|
8555 |
|
|
fi |
8556 |
|
|
if test x$support_wtmp = xyes; then |
8557 |
|
|
|
8558 |
|
|
cat >>confdefs.h <<\_ACEOF |
8559 |
|
|
#define WTMP_SUPPORT 1 |
8560 |
|
|
_ACEOF |
8561 |
|
|
|
8562 |
|
|
fi |
8563 |
|
|
if test x$support_lastlog = xyes; then |
8564 |
|
|
|
8565 |
|
|
cat >>confdefs.h <<\_ACEOF |
8566 |
|
|
#define LASTLOG_SUPPORT 1 |
8567 |
|
|
_ACEOF |
8568 |
|
|
|
8569 |
|
|
fi |
8570 |
|
|
|
8571 |
pcg |
1.11 |
|
8572 |
root |
1.88 |
|
8573 |
|
|
|
8574 |
|
|
for ac_func in \ |
8575 |
|
|
updwtmp \ |
8576 |
|
|
updwtmpx \ |
8577 |
ayin |
1.115 |
updlastlogx \ |
8578 |
root |
1.88 |
|
8579 |
|
|
do |
8580 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8581 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8582 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8583 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8584 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8585 |
|
|
else |
8586 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8587 |
|
|
/* confdefs.h. */ |
8588 |
|
|
_ACEOF |
8589 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8590 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8591 |
|
|
/* end confdefs.h. */ |
8592 |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8593 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8594 |
|
|
#define $ac_func innocuous_$ac_func |
8595 |
|
|
|
8596 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
8597 |
|
|
which can conflict with char $ac_func (); below. |
8598 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8599 |
|
|
<limits.h> exists even on freestanding compilers. */ |
8600 |
|
|
|
8601 |
|
|
#ifdef __STDC__ |
8602 |
|
|
# include <limits.h> |
8603 |
|
|
#else |
8604 |
|
|
# include <assert.h> |
8605 |
|
|
#endif |
8606 |
|
|
|
8607 |
|
|
#undef $ac_func |
8608 |
|
|
|
8609 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
8610 |
|
|
Use char because int might match the return type of a GCC |
8611 |
|
|
builtin and then its argument prototype would still apply. */ |
8612 |
root |
1.88 |
#ifdef __cplusplus |
8613 |
|
|
extern "C" |
8614 |
|
|
#endif |
8615 |
|
|
char $ac_func (); |
8616 |
|
|
/* The GNU C library defines this for functions which it implements |
8617 |
|
|
to always fail with ENOSYS. Some functions are actually named |
8618 |
|
|
something starting with __ and the normal name is an alias. */ |
8619 |
ayin |
1.108 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8620 |
root |
1.88 |
choke me |
8621 |
|
|
#endif |
8622 |
|
|
|
8623 |
|
|
int |
8624 |
|
|
main () |
8625 |
|
|
{ |
8626 |
ayin |
1.108 |
return $ac_func (); |
8627 |
root |
1.88 |
; |
8628 |
|
|
return 0; |
8629 |
|
|
} |
8630 |
|
|
_ACEOF |
8631 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8632 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
8633 |
|
|
case "(($ac_try" in |
8634 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8635 |
|
|
*) ac_try_echo=$ac_try;; |
8636 |
|
|
esac |
8637 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8638 |
|
|
(eval "$ac_link") 2>conftest.er1 |
8639 |
root |
1.88 |
ac_status=$? |
8640 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8641 |
|
|
rm -f conftest.er1 |
8642 |
|
|
cat conftest.err >&5 |
8643 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8644 |
ayin |
1.108 |
(exit $ac_status); } && { |
8645 |
|
|
test -z "$ac_cxx_werror_flag" || |
8646 |
|
|
test ! -s conftest.err |
8647 |
|
|
} && test -s conftest$ac_exeext && |
8648 |
|
|
$as_test_x conftest$ac_exeext; then |
8649 |
root |
1.88 |
eval "$as_ac_var=yes" |
8650 |
|
|
else |
8651 |
|
|
echo "$as_me: failed program was:" >&5 |
8652 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8653 |
|
|
|
8654 |
ayin |
1.108 |
eval "$as_ac_var=no" |
8655 |
root |
1.88 |
fi |
8656 |
ayin |
1.108 |
|
8657 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8658 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
8659 |
|
|
fi |
8660 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8661 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8662 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
8663 |
root |
1.88 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8664 |
|
|
cat >>confdefs.h <<_ACEOF |
8665 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8666 |
|
|
_ACEOF |
8667 |
|
|
|
8668 |
|
|
fi |
8669 |
|
|
done |
8670 |
|
|
|
8671 |
|
|
|
8672 |
|
|
|
8673 |
root |
1.123 |
|
8674 |
|
|
|
8675 |
|
|
for ac_header in \ |
8676 |
|
|
utmp.h \ |
8677 |
|
|
utmpx.h \ |
8678 |
|
|
lastlog.h \ |
8679 |
|
|
|
8680 |
root |
1.88 |
do |
8681 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8682 |
ayin |
1.108 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8683 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8684 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8685 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8686 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8687 |
|
|
fi |
8688 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8689 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8690 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
8691 |
root |
1.88 |
else |
8692 |
|
|
# Is the header compilable? |
8693 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8694 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8695 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
8696 |
|
|
/* confdefs.h. */ |
8697 |
|
|
_ACEOF |
8698 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8699 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8700 |
|
|
/* end confdefs.h. */ |
8701 |
|
|
$ac_includes_default |
8702 |
|
|
#include <$ac_header> |
8703 |
|
|
_ACEOF |
8704 |
|
|
rm -f conftest.$ac_objext |
8705 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8706 |
|
|
case "(($ac_try" in |
8707 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8708 |
|
|
*) ac_try_echo=$ac_try;; |
8709 |
|
|
esac |
8710 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8711 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8712 |
root |
1.88 |
ac_status=$? |
8713 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8714 |
|
|
rm -f conftest.er1 |
8715 |
|
|
cat conftest.err >&5 |
8716 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8717 |
ayin |
1.108 |
(exit $ac_status); } && { |
8718 |
|
|
test -z "$ac_cxx_werror_flag" || |
8719 |
|
|
test ! -s conftest.err |
8720 |
|
|
} && test -s conftest.$ac_objext; then |
8721 |
root |
1.88 |
ac_header_compiler=yes |
8722 |
|
|
else |
8723 |
|
|
echo "$as_me: failed program was:" >&5 |
8724 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8725 |
|
|
|
8726 |
ayin |
1.108 |
ac_header_compiler=no |
8727 |
root |
1.88 |
fi |
8728 |
ayin |
1.108 |
|
8729 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8730 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8731 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8732 |
root |
1.88 |
|
8733 |
|
|
# Is the header present? |
8734 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8735 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8736 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
8737 |
|
|
/* confdefs.h. */ |
8738 |
|
|
_ACEOF |
8739 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8740 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8741 |
|
|
/* end confdefs.h. */ |
8742 |
|
|
#include <$ac_header> |
8743 |
|
|
_ACEOF |
8744 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8745 |
|
|
case "(($ac_try" in |
8746 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8747 |
|
|
*) ac_try_echo=$ac_try;; |
8748 |
|
|
esac |
8749 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8750 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8751 |
root |
1.88 |
ac_status=$? |
8752 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8753 |
|
|
rm -f conftest.er1 |
8754 |
|
|
cat conftest.err >&5 |
8755 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8756 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
8757 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
8758 |
|
|
test ! -s conftest.err |
8759 |
|
|
}; then |
8760 |
root |
1.88 |
ac_header_preproc=yes |
8761 |
|
|
else |
8762 |
|
|
echo "$as_me: failed program was:" >&5 |
8763 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8764 |
|
|
|
8765 |
|
|
ac_header_preproc=no |
8766 |
|
|
fi |
8767 |
ayin |
1.108 |
|
8768 |
root |
1.88 |
rm -f conftest.err conftest.$ac_ext |
8769 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8770 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8771 |
root |
1.88 |
|
8772 |
|
|
# So? What about this header? |
8773 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8774 |
|
|
yes:no: ) |
8775 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8776 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8777 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8778 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8779 |
|
|
ac_header_preproc=yes |
8780 |
|
|
;; |
8781 |
|
|
no:yes:* ) |
8782 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8783 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8784 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8785 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8786 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8787 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8788 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8789 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8790 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8791 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8792 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8793 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8794 |
ayin |
1.108 |
|
8795 |
root |
1.88 |
;; |
8796 |
|
|
esac |
8797 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8798 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8799 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8800 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8801 |
|
|
else |
8802 |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
8803 |
|
|
fi |
8804 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8805 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8806 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
8807 |
root |
1.88 |
|
8808 |
|
|
fi |
8809 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8810 |
|
|
cat >>confdefs.h <<_ACEOF |
8811 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8812 |
|
|
_ACEOF |
8813 |
|
|
|
8814 |
|
|
fi |
8815 |
|
|
|
8816 |
|
|
done |
8817 |
|
|
|
8818 |
|
|
|
8819 |
|
|
|
8820 |
root |
1.123 |
if test "${ac_cv_header_utmp_h+set}" = set; then |
8821 |
|
|
{ echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8822 |
|
|
echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8823 |
|
|
if test "${ac_cv_header_utmp_h+set}" = set; then |
8824 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8825 |
|
|
fi |
8826 |
root |
1.123 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8827 |
|
|
echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8828 |
root |
1.88 |
else |
8829 |
|
|
# Is the header compilable? |
8830 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8831 |
|
|
echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8832 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
8833 |
|
|
/* confdefs.h. */ |
8834 |
|
|
_ACEOF |
8835 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8836 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8837 |
|
|
/* end confdefs.h. */ |
8838 |
|
|
$ac_includes_default |
8839 |
root |
1.123 |
#include <utmp.h> |
8840 |
root |
1.88 |
_ACEOF |
8841 |
|
|
rm -f conftest.$ac_objext |
8842 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8843 |
|
|
case "(($ac_try" in |
8844 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8845 |
|
|
*) ac_try_echo=$ac_try;; |
8846 |
|
|
esac |
8847 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8848 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8849 |
root |
1.88 |
ac_status=$? |
8850 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8851 |
|
|
rm -f conftest.er1 |
8852 |
|
|
cat conftest.err >&5 |
8853 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8854 |
ayin |
1.108 |
(exit $ac_status); } && { |
8855 |
|
|
test -z "$ac_cxx_werror_flag" || |
8856 |
|
|
test ! -s conftest.err |
8857 |
|
|
} && test -s conftest.$ac_objext; then |
8858 |
root |
1.88 |
ac_header_compiler=yes |
8859 |
|
|
else |
8860 |
|
|
echo "$as_me: failed program was:" >&5 |
8861 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8862 |
|
|
|
8863 |
ayin |
1.108 |
ac_header_compiler=no |
8864 |
root |
1.88 |
fi |
8865 |
ayin |
1.108 |
|
8866 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8867 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8868 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8869 |
root |
1.88 |
|
8870 |
|
|
# Is the header present? |
8871 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8872 |
|
|
echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8873 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
8874 |
|
|
/* confdefs.h. */ |
8875 |
|
|
_ACEOF |
8876 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8877 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8878 |
|
|
/* end confdefs.h. */ |
8879 |
root |
1.123 |
#include <utmp.h> |
8880 |
root |
1.88 |
_ACEOF |
8881 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8882 |
|
|
case "(($ac_try" in |
8883 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8884 |
|
|
*) ac_try_echo=$ac_try;; |
8885 |
|
|
esac |
8886 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8887 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8888 |
root |
1.88 |
ac_status=$? |
8889 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8890 |
|
|
rm -f conftest.er1 |
8891 |
|
|
cat conftest.err >&5 |
8892 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8893 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
8894 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
8895 |
|
|
test ! -s conftest.err |
8896 |
|
|
}; then |
8897 |
root |
1.88 |
ac_header_preproc=yes |
8898 |
|
|
else |
8899 |
|
|
echo "$as_me: failed program was:" >&5 |
8900 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8901 |
|
|
|
8902 |
|
|
ac_header_preproc=no |
8903 |
|
|
fi |
8904 |
ayin |
1.108 |
|
8905 |
root |
1.88 |
rm -f conftest.err conftest.$ac_ext |
8906 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8907 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8908 |
root |
1.88 |
|
8909 |
|
|
# So? What about this header? |
8910 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8911 |
|
|
yes:no: ) |
8912 |
root |
1.123 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8913 |
|
|
echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8914 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8915 |
|
|
echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8916 |
root |
1.88 |
ac_header_preproc=yes |
8917 |
|
|
;; |
8918 |
|
|
no:yes:* ) |
8919 |
root |
1.123 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8920 |
|
|
echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8921 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8922 |
|
|
echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8923 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8924 |
|
|
echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8925 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8926 |
|
|
echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8927 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8928 |
|
|
echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8929 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8930 |
|
|
echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8931 |
ayin |
1.108 |
|
8932 |
root |
1.88 |
;; |
8933 |
|
|
esac |
8934 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8935 |
|
|
echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8936 |
|
|
if test "${ac_cv_header_utmp_h+set}" = set; then |
8937 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8938 |
|
|
else |
8939 |
root |
1.123 |
ac_cv_header_utmp_h=$ac_header_preproc |
8940 |
root |
1.88 |
fi |
8941 |
root |
1.123 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8942 |
|
|
echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8943 |
root |
1.88 |
|
8944 |
|
|
fi |
8945 |
root |
1.123 |
if test $ac_cv_header_utmp_h = yes; then |
8946 |
|
|
{ echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8947 |
ayin |
1.108 |
echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8948 |
root |
1.88 |
if test "${struct_utmp+set}" = set; then |
8949 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8950 |
|
|
else |
8951 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
8952 |
|
|
/* confdefs.h. */ |
8953 |
|
|
_ACEOF |
8954 |
|
|
cat confdefs.h >>conftest.$ac_ext |
8955 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
8956 |
|
|
/* end confdefs.h. */ |
8957 |
|
|
#include <sys/types.h> |
8958 |
|
|
#include <utmp.h> |
8959 |
|
|
int |
8960 |
|
|
main () |
8961 |
|
|
{ |
8962 |
|
|
struct utmp ut; |
8963 |
|
|
; |
8964 |
|
|
return 0; |
8965 |
|
|
} |
8966 |
|
|
_ACEOF |
8967 |
|
|
rm -f conftest.$ac_objext |
8968 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
8969 |
|
|
case "(($ac_try" in |
8970 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8971 |
|
|
*) ac_try_echo=$ac_try;; |
8972 |
|
|
esac |
8973 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8974 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
8975 |
root |
1.88 |
ac_status=$? |
8976 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
8977 |
|
|
rm -f conftest.er1 |
8978 |
|
|
cat conftest.err >&5 |
8979 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8980 |
ayin |
1.108 |
(exit $ac_status); } && { |
8981 |
|
|
test -z "$ac_cxx_werror_flag" || |
8982 |
|
|
test ! -s conftest.err |
8983 |
|
|
} && test -s conftest.$ac_objext; then |
8984 |
root |
1.88 |
struct_utmp=yes |
8985 |
|
|
else |
8986 |
|
|
echo "$as_me: failed program was:" >&5 |
8987 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8988 |
|
|
|
8989 |
ayin |
1.108 |
struct_utmp=no |
8990 |
root |
1.88 |
fi |
8991 |
ayin |
1.108 |
|
8992 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8993 |
root |
1.88 |
fi |
8994 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
8995 |
|
|
echo "${ECHO_T}$struct_utmp" >&6; } |
8996 |
root |
1.88 |
if test x$struct_utmp = xyes; then |
8997 |
|
|
|
8998 |
|
|
cat >>confdefs.h <<\_ACEOF |
8999 |
|
|
#define HAVE_STRUCT_UTMP 1 |
9000 |
|
|
_ACEOF |
9001 |
|
|
|
9002 |
|
|
fi |
9003 |
|
|
|
9004 |
|
|
|
9005 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
9006 |
|
|
echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; } |
9007 |
root |
1.88 |
if test "${struct_utmp_host+set}" = set; then |
9008 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9009 |
|
|
else |
9010 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9011 |
|
|
/* confdefs.h. */ |
9012 |
|
|
_ACEOF |
9013 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9014 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9015 |
|
|
/* end confdefs.h. */ |
9016 |
|
|
#include <sys/types.h> |
9017 |
|
|
#include <utmp.h> |
9018 |
|
|
int |
9019 |
|
|
main () |
9020 |
|
|
{ |
9021 |
|
|
struct utmp ut; ut.ut_host; |
9022 |
|
|
; |
9023 |
|
|
return 0; |
9024 |
|
|
} |
9025 |
|
|
_ACEOF |
9026 |
|
|
rm -f conftest.$ac_objext |
9027 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9028 |
|
|
case "(($ac_try" in |
9029 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9030 |
|
|
*) ac_try_echo=$ac_try;; |
9031 |
|
|
esac |
9032 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9033 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9034 |
root |
1.88 |
ac_status=$? |
9035 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9036 |
|
|
rm -f conftest.er1 |
9037 |
|
|
cat conftest.err >&5 |
9038 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9039 |
ayin |
1.108 |
(exit $ac_status); } && { |
9040 |
|
|
test -z "$ac_cxx_werror_flag" || |
9041 |
|
|
test ! -s conftest.err |
9042 |
|
|
} && test -s conftest.$ac_objext; then |
9043 |
root |
1.88 |
struct_utmp_host=yes |
9044 |
|
|
else |
9045 |
|
|
echo "$as_me: failed program was:" >&5 |
9046 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9047 |
|
|
|
9048 |
ayin |
1.108 |
struct_utmp_host=no |
9049 |
root |
1.88 |
fi |
9050 |
ayin |
1.108 |
|
9051 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9052 |
root |
1.88 |
fi |
9053 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
9054 |
|
|
echo "${ECHO_T}$struct_utmp_host" >&6; } |
9055 |
root |
1.88 |
if test x$struct_utmp_host = xyes; then |
9056 |
|
|
|
9057 |
|
|
cat >>confdefs.h <<\_ACEOF |
9058 |
|
|
#define HAVE_UTMP_HOST 1 |
9059 |
|
|
_ACEOF |
9060 |
|
|
|
9061 |
|
|
fi |
9062 |
|
|
|
9063 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
9064 |
|
|
echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; } |
9065 |
root |
1.88 |
if test "${struct_utmp_pid+set}" = set; then |
9066 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9067 |
|
|
else |
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 |
|
|
#include <sys/types.h> |
9075 |
|
|
#include <utmp.h> |
9076 |
|
|
int |
9077 |
|
|
main () |
9078 |
|
|
{ |
9079 |
|
|
struct utmp ut; ut.ut_pid; |
9080 |
|
|
; |
9081 |
|
|
return 0; |
9082 |
|
|
} |
9083 |
|
|
_ACEOF |
9084 |
|
|
rm -f conftest.$ac_objext |
9085 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9086 |
|
|
case "(($ac_try" in |
9087 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9088 |
|
|
*) ac_try_echo=$ac_try;; |
9089 |
|
|
esac |
9090 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9091 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9092 |
root |
1.88 |
ac_status=$? |
9093 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9094 |
|
|
rm -f conftest.er1 |
9095 |
|
|
cat conftest.err >&5 |
9096 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9097 |
ayin |
1.108 |
(exit $ac_status); } && { |
9098 |
|
|
test -z "$ac_cxx_werror_flag" || |
9099 |
|
|
test ! -s conftest.err |
9100 |
|
|
} && test -s conftest.$ac_objext; then |
9101 |
root |
1.88 |
struct_utmp_pid=yes |
9102 |
|
|
else |
9103 |
|
|
echo "$as_me: failed program was:" >&5 |
9104 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9105 |
|
|
|
9106 |
ayin |
1.108 |
struct_utmp_pid=no |
9107 |
root |
1.88 |
fi |
9108 |
ayin |
1.108 |
|
9109 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9110 |
root |
1.88 |
fi |
9111 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
9112 |
|
|
echo "${ECHO_T}$struct_utmp_pid" >&6; } |
9113 |
root |
1.88 |
if test x$struct_utmp_pid = xyes; then |
9114 |
|
|
|
9115 |
|
|
cat >>confdefs.h <<\_ACEOF |
9116 |
|
|
#define HAVE_UTMP_PID 1 |
9117 |
|
|
_ACEOF |
9118 |
|
|
|
9119 |
|
|
fi |
9120 |
|
|
|
9121 |
|
|
fi |
9122 |
|
|
|
9123 |
|
|
|
9124 |
|
|
|
9125 |
root |
1.123 |
if test "${ac_cv_header_utmpx_h+set}" = set; then |
9126 |
|
|
{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9127 |
|
|
echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9128 |
|
|
if test "${ac_cv_header_utmpx_h+set}" = set; then |
9129 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9130 |
|
|
fi |
9131 |
root |
1.123 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9132 |
|
|
echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9133 |
root |
1.88 |
else |
9134 |
|
|
# Is the header compilable? |
9135 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9136 |
|
|
echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9137 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
9138 |
|
|
/* confdefs.h. */ |
9139 |
|
|
_ACEOF |
9140 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9141 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9142 |
|
|
/* end confdefs.h. */ |
9143 |
|
|
$ac_includes_default |
9144 |
root |
1.123 |
#include <utmpx.h> |
9145 |
root |
1.88 |
_ACEOF |
9146 |
|
|
rm -f conftest.$ac_objext |
9147 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9148 |
|
|
case "(($ac_try" in |
9149 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9150 |
|
|
*) ac_try_echo=$ac_try;; |
9151 |
|
|
esac |
9152 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9153 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9154 |
root |
1.88 |
ac_status=$? |
9155 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9156 |
|
|
rm -f conftest.er1 |
9157 |
|
|
cat conftest.err >&5 |
9158 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9159 |
ayin |
1.108 |
(exit $ac_status); } && { |
9160 |
|
|
test -z "$ac_cxx_werror_flag" || |
9161 |
|
|
test ! -s conftest.err |
9162 |
|
|
} && test -s conftest.$ac_objext; then |
9163 |
root |
1.88 |
ac_header_compiler=yes |
9164 |
|
|
else |
9165 |
|
|
echo "$as_me: failed program was:" >&5 |
9166 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9167 |
|
|
|
9168 |
ayin |
1.108 |
ac_header_compiler=no |
9169 |
root |
1.88 |
fi |
9170 |
ayin |
1.108 |
|
9171 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9172 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9173 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9174 |
root |
1.88 |
|
9175 |
|
|
# Is the header present? |
9176 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9177 |
|
|
echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9178 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
9179 |
|
|
/* confdefs.h. */ |
9180 |
|
|
_ACEOF |
9181 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9182 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9183 |
|
|
/* end confdefs.h. */ |
9184 |
root |
1.123 |
#include <utmpx.h> |
9185 |
root |
1.88 |
_ACEOF |
9186 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9187 |
|
|
case "(($ac_try" in |
9188 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9189 |
|
|
*) ac_try_echo=$ac_try;; |
9190 |
|
|
esac |
9191 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9192 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9193 |
root |
1.88 |
ac_status=$? |
9194 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9195 |
|
|
rm -f conftest.er1 |
9196 |
|
|
cat conftest.err >&5 |
9197 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9198 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
9199 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9200 |
|
|
test ! -s conftest.err |
9201 |
|
|
}; then |
9202 |
root |
1.88 |
ac_header_preproc=yes |
9203 |
|
|
else |
9204 |
|
|
echo "$as_me: failed program was:" >&5 |
9205 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9206 |
|
|
|
9207 |
|
|
ac_header_preproc=no |
9208 |
|
|
fi |
9209 |
ayin |
1.108 |
|
9210 |
root |
1.88 |
rm -f conftest.err conftest.$ac_ext |
9211 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9212 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9213 |
root |
1.88 |
|
9214 |
|
|
# So? What about this header? |
9215 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9216 |
|
|
yes:no: ) |
9217 |
root |
1.123 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9218 |
|
|
echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9219 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9220 |
|
|
echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9221 |
root |
1.88 |
ac_header_preproc=yes |
9222 |
|
|
;; |
9223 |
|
|
no:yes:* ) |
9224 |
root |
1.123 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9225 |
|
|
echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9226 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9227 |
|
|
echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9228 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9229 |
|
|
echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9230 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9231 |
|
|
echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9232 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9233 |
|
|
echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9234 |
|
|
{ echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9235 |
|
|
echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9236 |
ayin |
1.108 |
|
9237 |
root |
1.88 |
;; |
9238 |
|
|
esac |
9239 |
root |
1.123 |
{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9240 |
|
|
echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9241 |
|
|
if test "${ac_cv_header_utmpx_h+set}" = set; then |
9242 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9243 |
|
|
else |
9244 |
root |
1.123 |
ac_cv_header_utmpx_h=$ac_header_preproc |
9245 |
root |
1.88 |
fi |
9246 |
root |
1.123 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9247 |
|
|
echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9248 |
root |
1.88 |
|
9249 |
|
|
fi |
9250 |
root |
1.123 |
if test $ac_cv_header_utmpx_h = yes; then |
9251 |
|
|
{ echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9252 |
ayin |
1.108 |
echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9253 |
root |
1.88 |
if test "${struct_utmpx+set}" = set; then |
9254 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9255 |
|
|
else |
9256 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9257 |
|
|
/* confdefs.h. */ |
9258 |
|
|
_ACEOF |
9259 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9260 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9261 |
|
|
/* end confdefs.h. */ |
9262 |
|
|
#include <sys/types.h> |
9263 |
|
|
#include <utmpx.h> |
9264 |
|
|
int |
9265 |
|
|
main () |
9266 |
|
|
{ |
9267 |
|
|
struct utmpx ut; |
9268 |
|
|
; |
9269 |
|
|
return 0; |
9270 |
|
|
} |
9271 |
|
|
_ACEOF |
9272 |
|
|
rm -f conftest.$ac_objext |
9273 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9274 |
|
|
case "(($ac_try" in |
9275 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9276 |
|
|
*) ac_try_echo=$ac_try;; |
9277 |
|
|
esac |
9278 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9279 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9280 |
root |
1.88 |
ac_status=$? |
9281 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9282 |
|
|
rm -f conftest.er1 |
9283 |
|
|
cat conftest.err >&5 |
9284 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9285 |
ayin |
1.108 |
(exit $ac_status); } && { |
9286 |
|
|
test -z "$ac_cxx_werror_flag" || |
9287 |
|
|
test ! -s conftest.err |
9288 |
|
|
} && test -s conftest.$ac_objext; then |
9289 |
root |
1.105 |
struct_utmpx=yes |
9290 |
root |
1.88 |
else |
9291 |
|
|
echo "$as_me: failed program was:" >&5 |
9292 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9293 |
|
|
|
9294 |
ayin |
1.108 |
struct_utmpx=no |
9295 |
root |
1.88 |
fi |
9296 |
ayin |
1.108 |
|
9297 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9298 |
root |
1.88 |
fi |
9299 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
9300 |
|
|
echo "${ECHO_T}$struct_utmpx" >&6; } |
9301 |
root |
1.88 |
if test x$struct_utmpx = xyes; then |
9302 |
|
|
|
9303 |
|
|
cat >>confdefs.h <<\_ACEOF |
9304 |
|
|
#define HAVE_STRUCT_UTMPX 1 |
9305 |
|
|
_ACEOF |
9306 |
|
|
|
9307 |
|
|
fi |
9308 |
|
|
|
9309 |
|
|
|
9310 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
9311 |
|
|
echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } |
9312 |
root |
1.88 |
if test "${struct_utmpx_host+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 |
|
|
#include <sys/types.h> |
9322 |
|
|
#include <utmpx.h> |
9323 |
|
|
int |
9324 |
|
|
main () |
9325 |
|
|
{ |
9326 |
|
|
struct utmpx utx; utx.ut_host; |
9327 |
|
|
; |
9328 |
|
|
return 0; |
9329 |
|
|
} |
9330 |
|
|
_ACEOF |
9331 |
|
|
rm -f conftest.$ac_objext |
9332 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9333 |
|
|
case "(($ac_try" in |
9334 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9335 |
|
|
*) ac_try_echo=$ac_try;; |
9336 |
|
|
esac |
9337 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9338 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9339 |
root |
1.88 |
ac_status=$? |
9340 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9341 |
|
|
rm -f conftest.er1 |
9342 |
|
|
cat conftest.err >&5 |
9343 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9344 |
ayin |
1.108 |
(exit $ac_status); } && { |
9345 |
|
|
test -z "$ac_cxx_werror_flag" || |
9346 |
|
|
test ! -s conftest.err |
9347 |
|
|
} && test -s conftest.$ac_objext; then |
9348 |
root |
1.88 |
struct_utmpx_host=yes |
9349 |
|
|
else |
9350 |
|
|
echo "$as_me: failed program was:" >&5 |
9351 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9352 |
|
|
|
9353 |
ayin |
1.108 |
struct_utmpx_host=no |
9354 |
root |
1.88 |
fi |
9355 |
ayin |
1.108 |
|
9356 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9357 |
root |
1.88 |
fi |
9358 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
9359 |
|
|
echo "${ECHO_T}$struct_utmpx_host" >&6; } |
9360 |
root |
1.88 |
if test x$struct_utmpx_host = xyes; then |
9361 |
|
|
|
9362 |
|
|
cat >>confdefs.h <<\_ACEOF |
9363 |
|
|
#define HAVE_UTMPX_HOST 1 |
9364 |
|
|
_ACEOF |
9365 |
|
|
|
9366 |
|
|
fi |
9367 |
|
|
|
9368 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
9369 |
|
|
echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } |
9370 |
root |
1.88 |
if test "${struct_utmpx_session+set}" = set; then |
9371 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9372 |
|
|
else |
9373 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9374 |
|
|
/* confdefs.h. */ |
9375 |
|
|
_ACEOF |
9376 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9377 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9378 |
|
|
/* end confdefs.h. */ |
9379 |
|
|
#include <sys/types.h> |
9380 |
|
|
#include <utmpx.h> |
9381 |
|
|
int |
9382 |
|
|
main () |
9383 |
|
|
{ |
9384 |
|
|
struct utmpx utx; utx.ut_session; |
9385 |
|
|
; |
9386 |
|
|
return 0; |
9387 |
|
|
} |
9388 |
|
|
_ACEOF |
9389 |
|
|
rm -f conftest.$ac_objext |
9390 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9391 |
|
|
case "(($ac_try" in |
9392 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9393 |
|
|
*) ac_try_echo=$ac_try;; |
9394 |
|
|
esac |
9395 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9396 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9397 |
root |
1.88 |
ac_status=$? |
9398 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9399 |
|
|
rm -f conftest.er1 |
9400 |
|
|
cat conftest.err >&5 |
9401 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9402 |
ayin |
1.108 |
(exit $ac_status); } && { |
9403 |
|
|
test -z "$ac_cxx_werror_flag" || |
9404 |
|
|
test ! -s conftest.err |
9405 |
|
|
} && test -s conftest.$ac_objext; then |
9406 |
|
|
struct_utmpx_session=yes |
9407 |
|
|
else |
9408 |
|
|
echo "$as_me: failed program was:" >&5 |
9409 |
root |
1.88 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9410 |
|
|
|
9411 |
ayin |
1.108 |
struct_utmpx_session=no |
9412 |
root |
1.88 |
fi |
9413 |
ayin |
1.108 |
|
9414 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9415 |
root |
1.88 |
fi |
9416 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
9417 |
|
|
echo "${ECHO_T}$struct_utmpx_session" >&6; } |
9418 |
root |
1.88 |
if test x$struct_utmpx_session = xyes; then |
9419 |
|
|
|
9420 |
|
|
cat >>confdefs.h <<\_ACEOF |
9421 |
|
|
#define HAVE_UTMPX_SESSION 1 |
9422 |
|
|
_ACEOF |
9423 |
|
|
|
9424 |
|
|
fi |
9425 |
|
|
|
9426 |
|
|
fi |
9427 |
|
|
|
9428 |
|
|
|
9429 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9430 |
|
|
echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9431 |
root |
1.88 |
if test "${struct_lastlog+set}" = set; then |
9432 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9433 |
|
|
else |
9434 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9435 |
|
|
/* confdefs.h. */ |
9436 |
|
|
_ACEOF |
9437 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9438 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9439 |
|
|
/* end confdefs.h. */ |
9440 |
|
|
#include <sys/types.h> |
9441 |
|
|
#include <utmp.h> |
9442 |
|
|
#ifdef HAVE_LASTLOG_H |
9443 |
|
|
#include <lastlog.h> |
9444 |
|
|
#endif |
9445 |
|
|
|
9446 |
|
|
int |
9447 |
|
|
main () |
9448 |
|
|
{ |
9449 |
|
|
struct lastlog ll; |
9450 |
|
|
; |
9451 |
|
|
return 0; |
9452 |
|
|
} |
9453 |
|
|
_ACEOF |
9454 |
|
|
rm -f conftest.$ac_objext |
9455 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9456 |
|
|
case "(($ac_try" in |
9457 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9458 |
|
|
*) ac_try_echo=$ac_try;; |
9459 |
|
|
esac |
9460 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9461 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9462 |
root |
1.88 |
ac_status=$? |
9463 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9464 |
|
|
rm -f conftest.er1 |
9465 |
|
|
cat conftest.err >&5 |
9466 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9467 |
ayin |
1.108 |
(exit $ac_status); } && { |
9468 |
|
|
test -z "$ac_cxx_werror_flag" || |
9469 |
|
|
test ! -s conftest.err |
9470 |
|
|
} && test -s conftest.$ac_objext; then |
9471 |
root |
1.88 |
struct_lastlog=yes |
9472 |
|
|
else |
9473 |
|
|
echo "$as_me: failed program was:" >&5 |
9474 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9475 |
|
|
|
9476 |
ayin |
1.108 |
struct_lastlog=no |
9477 |
root |
1.88 |
fi |
9478 |
ayin |
1.108 |
|
9479 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9480 |
root |
1.88 |
fi |
9481 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
9482 |
|
|
echo "${ECHO_T}$struct_lastlog" >&6; } |
9483 |
root |
1.88 |
if test x$struct_lastlog = xyes; then |
9484 |
|
|
|
9485 |
|
|
cat >>confdefs.h <<\_ACEOF |
9486 |
|
|
#define HAVE_STRUCT_LASTLOG 1 |
9487 |
|
|
_ACEOF |
9488 |
|
|
|
9489 |
|
|
fi |
9490 |
|
|
|
9491 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
9492 |
|
|
echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } |
9493 |
root |
1.88 |
if test "${struct_lastlogx+set}" = set; then |
9494 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9495 |
|
|
else |
9496 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9497 |
|
|
/* confdefs.h. */ |
9498 |
|
|
_ACEOF |
9499 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9500 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9501 |
|
|
/* end confdefs.h. */ |
9502 |
|
|
#include <sys/types.h> |
9503 |
|
|
#include <utmpx.h> |
9504 |
|
|
#ifdef HAVE_LASTLOG_H |
9505 |
|
|
#include <lastlog.h> |
9506 |
|
|
#endif |
9507 |
|
|
|
9508 |
|
|
int |
9509 |
|
|
main () |
9510 |
|
|
{ |
9511 |
|
|
struct lastlogx ll; |
9512 |
|
|
; |
9513 |
|
|
return 0; |
9514 |
|
|
} |
9515 |
|
|
_ACEOF |
9516 |
|
|
rm -f conftest.$ac_objext |
9517 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
9518 |
|
|
case "(($ac_try" in |
9519 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9520 |
|
|
*) ac_try_echo=$ac_try;; |
9521 |
|
|
esac |
9522 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9523 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
9524 |
root |
1.88 |
ac_status=$? |
9525 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
9526 |
|
|
rm -f conftest.er1 |
9527 |
|
|
cat conftest.err >&5 |
9528 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9529 |
ayin |
1.108 |
(exit $ac_status); } && { |
9530 |
|
|
test -z "$ac_cxx_werror_flag" || |
9531 |
|
|
test ! -s conftest.err |
9532 |
|
|
} && test -s conftest.$ac_objext; then |
9533 |
root |
1.88 |
struct_lastlogx=yes |
9534 |
|
|
else |
9535 |
|
|
echo "$as_me: failed program was:" >&5 |
9536 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9537 |
|
|
|
9538 |
ayin |
1.108 |
struct_lastlogx=no |
9539 |
root |
1.88 |
fi |
9540 |
ayin |
1.108 |
|
9541 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9542 |
root |
1.88 |
fi |
9543 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
9544 |
|
|
echo "${ECHO_T}$struct_lastlogx" >&6; } |
9545 |
root |
1.88 |
if test x$struct_lastlogx = xyes; then |
9546 |
|
|
|
9547 |
|
|
cat >>confdefs.h <<\_ACEOF |
9548 |
|
|
#define HAVE_STRUCT_LASTLOGX 1 |
9549 |
|
|
_ACEOF |
9550 |
|
|
|
9551 |
|
|
fi |
9552 |
|
|
|
9553 |
|
|
|
9554 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where utmp is located" >&5 |
9555 |
|
|
echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } |
9556 |
root |
1.88 |
if test "${path_utmp+set}" = set; then |
9557 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9558 |
|
|
else |
9559 |
|
|
if test "$cross_compiling" = yes; then |
9560 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
9561 |
|
|
echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
9562 |
|
|
else |
9563 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9564 |
|
|
/* confdefs.h. */ |
9565 |
|
|
_ACEOF |
9566 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9567 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9568 |
|
|
/* end confdefs.h. */ |
9569 |
|
|
#include <stdio.h> |
9570 |
ayin |
1.102 |
#include <stdlib.h> |
9571 |
root |
1.88 |
#include <sys/types.h> |
9572 |
|
|
#include <utmp.h> |
9573 |
|
|
#include <errno.h> |
9574 |
|
|
main() |
9575 |
|
|
{ |
9576 |
|
|
char **u, *utmplist[] = { |
9577 |
|
|
"/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
9578 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
9579 |
|
|
if (!f) exit(1); |
9580 |
|
|
#ifdef UTMP_FILE |
9581 |
|
|
fprintf(f, "%s\n", UTMP_FILE); |
9582 |
|
|
exit(0); |
9583 |
|
|
#endif |
9584 |
|
|
#ifdef _PATH_UTMP |
9585 |
|
|
fprintf(f, "%s\n", _PATH_UTMP); |
9586 |
|
|
exit(0); |
9587 |
|
|
#endif |
9588 |
|
|
for (u = utmplist; *u; u++) { |
9589 |
|
|
if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
9590 |
|
|
fprintf(f, "%s\n", *u); |
9591 |
|
|
exit(0); |
9592 |
|
|
} |
9593 |
|
|
} |
9594 |
|
|
exit(0); |
9595 |
|
|
} |
9596 |
|
|
_ACEOF |
9597 |
|
|
rm -f conftest$ac_exeext |
9598 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
9599 |
|
|
case "(($ac_try" in |
9600 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9601 |
|
|
*) ac_try_echo=$ac_try;; |
9602 |
|
|
esac |
9603 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9604 |
|
|
(eval "$ac_link") 2>&5 |
9605 |
root |
1.88 |
ac_status=$? |
9606 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9607 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9608 |
ayin |
1.108 |
{ (case "(($ac_try" in |
9609 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9610 |
|
|
*) ac_try_echo=$ac_try;; |
9611 |
|
|
esac |
9612 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9613 |
|
|
(eval "$ac_try") 2>&5 |
9614 |
root |
1.88 |
ac_status=$? |
9615 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9616 |
|
|
(exit $ac_status); }; }; then |
9617 |
|
|
path_utmp=`cat conftestval` |
9618 |
|
|
else |
9619 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
9620 |
|
|
echo "$as_me: failed program was:" >&5 |
9621 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9622 |
|
|
|
9623 |
|
|
( exit $ac_status ) |
9624 |
|
|
path_utmp= |
9625 |
|
|
fi |
9626 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9627 |
root |
1.88 |
fi |
9628 |
ayin |
1.108 |
|
9629 |
|
|
|
9630 |
root |
1.88 |
fi |
9631 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_utmp" >&5 |
9632 |
|
|
echo "${ECHO_T}$path_utmp" >&6; } |
9633 |
root |
1.88 |
if test x$path_utmp != x; then |
9634 |
|
|
|
9635 |
|
|
cat >>confdefs.h <<_ACEOF |
9636 |
|
|
#define UTMP_FILE "$path_utmp" |
9637 |
|
|
_ACEOF |
9638 |
|
|
|
9639 |
|
|
fi |
9640 |
|
|
|
9641 |
|
|
|
9642 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
9643 |
|
|
echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } |
9644 |
root |
1.88 |
if test "${path_utmpx+set}" = set; then |
9645 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9646 |
|
|
else |
9647 |
|
|
if test "$cross_compiling" = yes; then |
9648 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
9649 |
|
|
echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
9650 |
|
|
else |
9651 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9652 |
|
|
/* confdefs.h. */ |
9653 |
|
|
_ACEOF |
9654 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9655 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9656 |
|
|
/* end confdefs.h. */ |
9657 |
|
|
#include <stdio.h> |
9658 |
ayin |
1.102 |
#include <stdlib.h> |
9659 |
root |
1.88 |
#include <sys/types.h> |
9660 |
|
|
#include <utmpx.h> |
9661 |
|
|
#include <errno.h> |
9662 |
|
|
#include <sys/stat.h> |
9663 |
|
|
#ifdef HAVE_STRING_H |
9664 |
|
|
#include <string.h> |
9665 |
|
|
#endif |
9666 |
|
|
main() |
9667 |
|
|
{ |
9668 |
|
|
char **u, *p, *utmplist[] = { |
9669 |
|
|
#ifdef UTMPX_FILE |
9670 |
|
|
UTMPX_FILE, |
9671 |
|
|
#endif |
9672 |
|
|
#ifdef _PATH_UTMPX |
9673 |
|
|
_PATH_UTMPX, |
9674 |
|
|
#endif |
9675 |
|
|
"/var/adm/utmpx", "/etc/utmpx", NULL }; |
9676 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
9677 |
|
|
struct stat statu, statux; |
9678 |
|
|
if (!f) exit(1); |
9679 |
|
|
for (u = utmplist; *u; u++) { |
9680 |
|
|
if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
9681 |
|
|
if (stat(*u, &statux) < 0) |
9682 |
|
|
continue; |
9683 |
|
|
p = strdup(*u); |
9684 |
|
|
p[strlen(p) - 1] = '\0'; |
9685 |
|
|
if (stat(p, &statu) >= 0 |
9686 |
|
|
&& (statu.st_mtime - statux.st_mtime > 86400)) |
9687 |
|
|
continue; |
9688 |
|
|
fprintf(f, "%s\n", *u); |
9689 |
|
|
exit(0); |
9690 |
|
|
} |
9691 |
|
|
} |
9692 |
|
|
exit(0); |
9693 |
|
|
} |
9694 |
|
|
_ACEOF |
9695 |
|
|
rm -f conftest$ac_exeext |
9696 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
9697 |
|
|
case "(($ac_try" in |
9698 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9699 |
|
|
*) ac_try_echo=$ac_try;; |
9700 |
|
|
esac |
9701 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9702 |
|
|
(eval "$ac_link") 2>&5 |
9703 |
root |
1.88 |
ac_status=$? |
9704 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9705 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9706 |
ayin |
1.108 |
{ (case "(($ac_try" in |
9707 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9708 |
|
|
*) ac_try_echo=$ac_try;; |
9709 |
|
|
esac |
9710 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9711 |
|
|
(eval "$ac_try") 2>&5 |
9712 |
root |
1.88 |
ac_status=$? |
9713 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9714 |
|
|
(exit $ac_status); }; }; then |
9715 |
|
|
path_utmpx=`cat conftestval` |
9716 |
|
|
else |
9717 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
9718 |
|
|
echo "$as_me: failed program was:" >&5 |
9719 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9720 |
|
|
|
9721 |
|
|
( exit $ac_status ) |
9722 |
|
|
path_utmpx= |
9723 |
|
|
fi |
9724 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9725 |
root |
1.88 |
fi |
9726 |
ayin |
1.108 |
|
9727 |
|
|
|
9728 |
root |
1.88 |
fi |
9729 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
9730 |
|
|
echo "${ECHO_T}$path_utmpx" >&6; } |
9731 |
root |
1.88 |
if test x$path_utmpx != x; then |
9732 |
|
|
|
9733 |
|
|
cat >>confdefs.h <<_ACEOF |
9734 |
|
|
#define UTMPX_FILE "$path_utmpx" |
9735 |
|
|
_ACEOF |
9736 |
|
|
|
9737 |
|
|
fi |
9738 |
|
|
|
9739 |
|
|
|
9740 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
9741 |
|
|
echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; } |
9742 |
root |
1.88 |
if test "${path_wtmp+set}" = set; then |
9743 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9744 |
|
|
else |
9745 |
|
|
if test "$cross_compiling" = yes; then |
9746 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
9747 |
|
|
echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
9748 |
|
|
else |
9749 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9750 |
|
|
/* confdefs.h. */ |
9751 |
|
|
_ACEOF |
9752 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9753 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9754 |
|
|
/* end confdefs.h. */ |
9755 |
|
|
#include <stdio.h> |
9756 |
ayin |
1.102 |
#include <stdlib.h> |
9757 |
root |
1.88 |
#include <sys/types.h> |
9758 |
|
|
#ifdef HAVE_UTMP_H |
9759 |
|
|
#include <utmp.h> |
9760 |
|
|
#endif |
9761 |
|
|
#include <errno.h> |
9762 |
|
|
main() |
9763 |
|
|
{ |
9764 |
|
|
char **w, *wtmplist[] = { |
9765 |
|
|
"/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
9766 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
9767 |
|
|
if (!f) exit(1); |
9768 |
|
|
#ifdef WTMP_FILE |
9769 |
|
|
fprintf(f, "%s\n", WTMP_FILE); |
9770 |
|
|
exit(0); |
9771 |
|
|
#endif |
9772 |
|
|
#ifdef _PATH_WTMP |
9773 |
|
|
fprintf(f, "%s\n", _PATH_WTMP); |
9774 |
|
|
exit(0); |
9775 |
|
|
#endif |
9776 |
|
|
for (w = wtmplist; *w; w++) { |
9777 |
|
|
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
9778 |
|
|
fprintf(f, "%s\n", *w); |
9779 |
|
|
exit(0); |
9780 |
|
|
} |
9781 |
|
|
} |
9782 |
|
|
exit(0); |
9783 |
|
|
} |
9784 |
|
|
_ACEOF |
9785 |
|
|
rm -f conftest$ac_exeext |
9786 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
9787 |
|
|
case "(($ac_try" in |
9788 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9789 |
|
|
*) ac_try_echo=$ac_try;; |
9790 |
|
|
esac |
9791 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9792 |
|
|
(eval "$ac_link") 2>&5 |
9793 |
root |
1.88 |
ac_status=$? |
9794 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9795 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9796 |
ayin |
1.108 |
{ (case "(($ac_try" in |
9797 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9798 |
|
|
*) ac_try_echo=$ac_try;; |
9799 |
|
|
esac |
9800 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9801 |
|
|
(eval "$ac_try") 2>&5 |
9802 |
root |
1.88 |
ac_status=$? |
9803 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9804 |
|
|
(exit $ac_status); }; }; then |
9805 |
|
|
path_wtmp=`cat conftestval` |
9806 |
|
|
else |
9807 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
9808 |
|
|
echo "$as_me: failed program was:" >&5 |
9809 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9810 |
|
|
|
9811 |
|
|
( exit $ac_status ) |
9812 |
|
|
path_wtmp= |
9813 |
|
|
fi |
9814 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9815 |
root |
1.88 |
fi |
9816 |
ayin |
1.108 |
|
9817 |
|
|
|
9818 |
root |
1.88 |
fi |
9819 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
9820 |
|
|
echo "${ECHO_T}$path_wtmp" >&6; } |
9821 |
root |
1.88 |
if test x$path_wtmp != x; then |
9822 |
|
|
|
9823 |
|
|
cat >>confdefs.h <<_ACEOF |
9824 |
|
|
#define WTMP_FILE "$path_wtmp" |
9825 |
|
|
_ACEOF |
9826 |
|
|
|
9827 |
|
|
fi |
9828 |
|
|
|
9829 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
9830 |
|
|
echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } |
9831 |
root |
1.88 |
if test "${path_wtmpx+set}" = set; then |
9832 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9833 |
|
|
else |
9834 |
|
|
if test "$cross_compiling" = yes; then |
9835 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
9836 |
|
|
echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
9837 |
|
|
else |
9838 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9839 |
|
|
/* confdefs.h. */ |
9840 |
|
|
_ACEOF |
9841 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9842 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9843 |
|
|
/* end confdefs.h. */ |
9844 |
|
|
#include <stdio.h> |
9845 |
ayin |
1.102 |
#include <stdlib.h> |
9846 |
root |
1.88 |
#ifdef HAVE_UTMPX_H |
9847 |
|
|
#include <utmpx.h> |
9848 |
|
|
#endif |
9849 |
|
|
#include <errno.h> |
9850 |
|
|
main() |
9851 |
|
|
{ |
9852 |
|
|
char **w, *wtmplist[] = { |
9853 |
|
|
"/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
9854 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
9855 |
|
|
if (!f) exit(1); |
9856 |
|
|
#ifdef WTMPX_FILE |
9857 |
|
|
fprintf(f, "%s\n", WTMPX_FILE); |
9858 |
|
|
exit(0); |
9859 |
|
|
#endif |
9860 |
|
|
#ifdef _PATH_WTMPX |
9861 |
|
|
fprintf(f, "%s\n", _PATH_WTMPX); |
9862 |
|
|
exit(0); |
9863 |
|
|
#endif |
9864 |
|
|
for (w = wtmplist; *w; w++) { |
9865 |
|
|
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
9866 |
|
|
fprintf(f, "%s\n", *w); |
9867 |
|
|
exit(0); |
9868 |
|
|
} |
9869 |
|
|
} |
9870 |
|
|
exit(0); |
9871 |
|
|
} |
9872 |
|
|
_ACEOF |
9873 |
|
|
rm -f conftest$ac_exeext |
9874 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
9875 |
|
|
case "(($ac_try" in |
9876 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9877 |
|
|
*) ac_try_echo=$ac_try;; |
9878 |
|
|
esac |
9879 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9880 |
|
|
(eval "$ac_link") 2>&5 |
9881 |
root |
1.88 |
ac_status=$? |
9882 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9883 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9884 |
ayin |
1.108 |
{ (case "(($ac_try" in |
9885 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9886 |
|
|
*) ac_try_echo=$ac_try;; |
9887 |
|
|
esac |
9888 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9889 |
|
|
(eval "$ac_try") 2>&5 |
9890 |
root |
1.88 |
ac_status=$? |
9891 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9892 |
|
|
(exit $ac_status); }; }; then |
9893 |
|
|
path_wtmpx=`cat conftestval` |
9894 |
|
|
else |
9895 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
9896 |
|
|
echo "$as_me: failed program was:" >&5 |
9897 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9898 |
|
|
|
9899 |
|
|
( exit $ac_status ) |
9900 |
|
|
path_wtmpx= |
9901 |
|
|
fi |
9902 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9903 |
root |
1.88 |
fi |
9904 |
ayin |
1.108 |
|
9905 |
|
|
|
9906 |
root |
1.88 |
fi |
9907 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
9908 |
|
|
echo "${ECHO_T}$path_wtmpx" >&6; } |
9909 |
root |
1.88 |
if test x$path_wtmpx != x; then |
9910 |
|
|
|
9911 |
|
|
cat >>confdefs.h <<_ACEOF |
9912 |
|
|
#define WTMPX_FILE "$path_wtmpx" |
9913 |
|
|
_ACEOF |
9914 |
|
|
|
9915 |
|
|
fi |
9916 |
|
|
|
9917 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
9918 |
|
|
echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } |
9919 |
root |
1.88 |
if test "${path_lastlog+set}" = set; then |
9920 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9921 |
|
|
else |
9922 |
|
|
if test "$cross_compiling" = yes; then |
9923 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
9924 |
|
|
echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
9925 |
|
|
else |
9926 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
9927 |
|
|
/* confdefs.h. */ |
9928 |
|
|
_ACEOF |
9929 |
|
|
cat confdefs.h >>conftest.$ac_ext |
9930 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
9931 |
|
|
/* end confdefs.h. */ |
9932 |
|
|
#include <stdio.h> |
9933 |
ayin |
1.102 |
#include <stdlib.h> |
9934 |
root |
1.88 |
#include <sys/types.h> |
9935 |
|
|
#ifdef HAVE_UTMPX_H |
9936 |
|
|
#include <utmpx.h> |
9937 |
|
|
#elif defined(HAVE_UTMP_H) |
9938 |
|
|
#include <utmp.h> |
9939 |
|
|
#endif |
9940 |
|
|
#ifdef HAVE_LASTLOG_H |
9941 |
|
|
#include <lastlog.h> |
9942 |
|
|
#endif |
9943 |
|
|
#include <errno.h> |
9944 |
|
|
main() |
9945 |
|
|
{ |
9946 |
|
|
char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
9947 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
9948 |
|
|
if (!f) exit(1); |
9949 |
|
|
#ifdef LASTLOG_FILE |
9950 |
|
|
fprintf(f, "%s\n", LASTLOG_FILE); |
9951 |
|
|
exit(0); |
9952 |
|
|
#endif |
9953 |
|
|
#ifdef _PATH_LASTLOG |
9954 |
|
|
fprintf(f, "%s\n", _PATH_LASTLOG); |
9955 |
|
|
exit(0); |
9956 |
|
|
#endif |
9957 |
|
|
for (w = lastloglist; *w; w++) { |
9958 |
|
|
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
9959 |
|
|
fprintf(f, "%s\n", *w); |
9960 |
|
|
exit(0); |
9961 |
|
|
} |
9962 |
|
|
} |
9963 |
|
|
exit(0); |
9964 |
|
|
} |
9965 |
|
|
_ACEOF |
9966 |
|
|
rm -f conftest$ac_exeext |
9967 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
9968 |
|
|
case "(($ac_try" in |
9969 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9970 |
|
|
*) ac_try_echo=$ac_try;; |
9971 |
|
|
esac |
9972 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9973 |
|
|
(eval "$ac_link") 2>&5 |
9974 |
root |
1.88 |
ac_status=$? |
9975 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9976 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9977 |
ayin |
1.108 |
{ (case "(($ac_try" in |
9978 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9979 |
|
|
*) ac_try_echo=$ac_try;; |
9980 |
|
|
esac |
9981 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9982 |
|
|
(eval "$ac_try") 2>&5 |
9983 |
root |
1.88 |
ac_status=$? |
9984 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9985 |
|
|
(exit $ac_status); }; }; then |
9986 |
|
|
path_lastlog=`cat conftestval` |
9987 |
|
|
else |
9988 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
9989 |
|
|
echo "$as_me: failed program was:" >&5 |
9990 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9991 |
|
|
|
9992 |
|
|
( exit $ac_status ) |
9993 |
|
|
path_lastlog= |
9994 |
|
|
fi |
9995 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9996 |
root |
1.88 |
fi |
9997 |
ayin |
1.108 |
|
9998 |
|
|
|
9999 |
root |
1.88 |
fi |
10000 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
10001 |
|
|
echo "${ECHO_T}$path_lastlog" >&6; } |
10002 |
root |
1.88 |
if test x$path_lastlog != x; then |
10003 |
|
|
|
10004 |
|
|
cat >>confdefs.h <<_ACEOF |
10005 |
|
|
#define LASTLOG_FILE "$path_lastlog" |
10006 |
|
|
_ACEOF |
10007 |
|
|
|
10008 |
|
|
fi |
10009 |
|
|
|
10010 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10011 |
|
|
echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10012 |
root |
1.88 |
if test "${path_lastlogx+set}" = set; then |
10013 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10014 |
|
|
else |
10015 |
|
|
if test "$cross_compiling" = yes; then |
10016 |
|
|
{ echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
10017 |
|
|
echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
10018 |
|
|
else |
10019 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10020 |
|
|
/* confdefs.h. */ |
10021 |
|
|
_ACEOF |
10022 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10023 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10024 |
|
|
/* end confdefs.h. */ |
10025 |
|
|
#include <stdio.h> |
10026 |
ayin |
1.102 |
#include <stdlib.h> |
10027 |
root |
1.88 |
#ifdef HAVE_UTMPX_H |
10028 |
|
|
#include <utmpx.h> |
10029 |
|
|
#endif |
10030 |
|
|
#include <errno.h> |
10031 |
|
|
main() |
10032 |
|
|
{ |
10033 |
|
|
char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
10034 |
|
|
FILE *a, *f=fopen("conftestval", "w"); |
10035 |
|
|
if (!f) exit(1); |
10036 |
|
|
#ifdef LASTLOGX_FILE |
10037 |
|
|
fprintf(f, "%s\n", LASTLOGX_FILE); |
10038 |
|
|
exit(0); |
10039 |
|
|
#endif |
10040 |
|
|
#ifdef _PATH_LASTLOGX |
10041 |
|
|
fprintf(f, "%s\n", _PATH_LASTLOGX); |
10042 |
|
|
exit(0); |
10043 |
|
|
#endif |
10044 |
|
|
for (w = wtmplist; *w; w++) { |
10045 |
|
|
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
10046 |
|
|
fprintf(f, "%s\n", *w); |
10047 |
|
|
exit(0); |
10048 |
|
|
} |
10049 |
|
|
} |
10050 |
|
|
exit(0); |
10051 |
|
|
} |
10052 |
|
|
_ACEOF |
10053 |
|
|
rm -f conftest$ac_exeext |
10054 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10055 |
|
|
case "(($ac_try" in |
10056 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10057 |
|
|
*) ac_try_echo=$ac_try;; |
10058 |
|
|
esac |
10059 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10060 |
|
|
(eval "$ac_link") 2>&5 |
10061 |
root |
1.88 |
ac_status=$? |
10062 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10063 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10064 |
ayin |
1.108 |
{ (case "(($ac_try" in |
10065 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10066 |
|
|
*) ac_try_echo=$ac_try;; |
10067 |
|
|
esac |
10068 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10069 |
|
|
(eval "$ac_try") 2>&5 |
10070 |
root |
1.88 |
ac_status=$? |
10071 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10072 |
|
|
(exit $ac_status); }; }; then |
10073 |
|
|
path_lastlogx=`cat conftestval` |
10074 |
|
|
else |
10075 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
10076 |
|
|
echo "$as_me: failed program was:" >&5 |
10077 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10078 |
|
|
|
10079 |
|
|
( exit $ac_status ) |
10080 |
|
|
path_lastlogx= |
10081 |
|
|
fi |
10082 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10083 |
root |
1.88 |
fi |
10084 |
ayin |
1.108 |
|
10085 |
|
|
|
10086 |
root |
1.88 |
fi |
10087 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
10088 |
|
|
echo "${ECHO_T}$path_lastlogx" >&6; } |
10089 |
root |
1.88 |
if test x$path_lastlogx != x; then |
10090 |
|
|
|
10091 |
|
|
cat >>confdefs.h <<_ACEOF |
10092 |
|
|
#define LASTLOGX_FILE "$path_lastlogx" |
10093 |
|
|
_ACEOF |
10094 |
|
|
|
10095 |
|
|
fi |
10096 |
|
|
|
10097 |
|
|
|
10098 |
|
|
|
10099 |
|
|
|
10100 |
ayin |
1.114 |
save_LIBS=$LIBS |
10101 |
|
|
save_CFLAGS=$CFLAGS |
10102 |
root |
1.88 |
CFLAGS="$CFLAGS $X_CFLAGS" |
10103 |
|
|
LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10104 |
ayin |
1.111 |
if test x$support_xim = xyes; then |
10105 |
|
|
{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10106 |
ayin |
1.108 |
echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10107 |
root |
1.88 |
if test "${rxvt_cv_func_xlocale+set}" = set; then |
10108 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10109 |
|
|
else |
10110 |
|
|
if test "$cross_compiling" = yes; then |
10111 |
ayin |
1.111 |
: |
10112 |
root |
1.88 |
else |
10113 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10114 |
|
|
/* confdefs.h. */ |
10115 |
|
|
_ACEOF |
10116 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10117 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10118 |
|
|
/* end confdefs.h. */ |
10119 |
|
|
#include <X11/Xlib.h> |
10120 |
ayin |
1.111 |
#include <stdlib.h> |
10121 |
|
|
main() { |
10122 |
|
|
char *p; |
10123 |
|
|
if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10124 |
|
|
exit (XSupportsLocale() ? 0 : 1); |
10125 |
|
|
else |
10126 |
|
|
exit (1);} |
10127 |
root |
1.88 |
_ACEOF |
10128 |
|
|
rm -f conftest$ac_exeext |
10129 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10130 |
|
|
case "(($ac_try" in |
10131 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10132 |
|
|
*) ac_try_echo=$ac_try;; |
10133 |
|
|
esac |
10134 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10135 |
|
|
(eval "$ac_link") 2>&5 |
10136 |
root |
1.88 |
ac_status=$? |
10137 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10138 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10139 |
ayin |
1.108 |
{ (case "(($ac_try" in |
10140 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10141 |
|
|
*) ac_try_echo=$ac_try;; |
10142 |
|
|
esac |
10143 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10144 |
|
|
(eval "$ac_try") 2>&5 |
10145 |
root |
1.88 |
ac_status=$? |
10146 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10147 |
|
|
(exit $ac_status); }; }; then |
10148 |
ayin |
1.111 |
rxvt_cv_func_xlocale=yes |
10149 |
root |
1.88 |
else |
10150 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
10151 |
|
|
echo "$as_me: failed program was:" >&5 |
10152 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10153 |
|
|
|
10154 |
|
|
( exit $ac_status ) |
10155 |
|
|
rxvt_cv_func_xlocale=no |
10156 |
|
|
fi |
10157 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10158 |
root |
1.88 |
fi |
10159 |
ayin |
1.108 |
|
10160 |
|
|
|
10161 |
root |
1.88 |
fi |
10162 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10163 |
|
|
echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10164 |
root |
1.105 |
if test x$rxvt_cv_func_xlocale = xyes; then |
10165 |
root |
1.88 |
|
10166 |
|
|
cat >>confdefs.h <<\_ACEOF |
10167 |
root |
1.105 |
#define USE_XIM 1 |
10168 |
root |
1.88 |
_ACEOF |
10169 |
|
|
|
10170 |
ayin |
1.111 |
{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10171 |
|
|
echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
10172 |
|
|
if test "${rxvt_broken_ximcb+set}" = set; then |
10173 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10174 |
|
|
else |
10175 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10176 |
|
|
|
10177 |
|
|
#include <X11/Xlib.h> |
10178 |
|
|
|
10179 |
|
|
void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
10180 |
|
|
|
10181 |
|
|
void f() { |
10182 |
|
|
XIMCallback cb; |
10183 |
|
|
cb.callback = im_destroy_cb; |
10184 |
|
|
} |
10185 |
|
|
|
10186 |
|
|
_ACEOF |
10187 |
|
|
rm -f conftest.$ac_objext |
10188 |
|
|
if { (ac_try="$ac_compile" |
10189 |
|
|
case "(($ac_try" in |
10190 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10191 |
|
|
*) ac_try_echo=$ac_try;; |
10192 |
|
|
esac |
10193 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10194 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
10195 |
|
|
ac_status=$? |
10196 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10197 |
|
|
rm -f conftest.er1 |
10198 |
|
|
cat conftest.err >&5 |
10199 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10200 |
|
|
(exit $ac_status); } && { |
10201 |
|
|
test -z "$ac_cxx_werror_flag" || |
10202 |
|
|
test ! -s conftest.err |
10203 |
|
|
} && test -s conftest.$ac_objext; then |
10204 |
|
|
rxvt_broken_ximcb=yes |
10205 |
|
|
else |
10206 |
|
|
echo "$as_me: failed program was:" >&5 |
10207 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10208 |
|
|
|
10209 |
|
|
rxvt_broken_ximcb=no |
10210 |
|
|
fi |
10211 |
|
|
|
10212 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10213 |
|
|
fi |
10214 |
|
|
{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
10215 |
|
|
echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
10216 |
|
|
|
10217 |
|
|
if test x$rxvt_broken_ximcb = xyes; then |
10218 |
|
|
|
10219 |
|
|
cat >>confdefs.h <<\_ACEOF |
10220 |
|
|
#define XIMCB_PROTO_BROKEN 1 |
10221 |
|
|
_ACEOF |
10222 |
|
|
|
10223 |
|
|
fi |
10224 |
root |
1.105 |
fi |
10225 |
root |
1.88 |
fi |
10226 |
|
|
|
10227 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10228 |
|
|
echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10229 |
root |
1.88 |
if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
10230 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10231 |
|
|
else |
10232 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10233 |
|
|
/* confdefs.h. */ |
10234 |
|
|
_ACEOF |
10235 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10236 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10237 |
|
|
/* end confdefs.h. */ |
10238 |
|
|
#define X_LOCALE 1 |
10239 |
|
|
#include <X11/Xlocale.h> |
10240 |
|
|
int |
10241 |
|
|
main () |
10242 |
|
|
{ |
10243 |
|
|
setlocale(LC_CTYPE, ""); |
10244 |
|
|
; |
10245 |
|
|
return 0; |
10246 |
|
|
} |
10247 |
|
|
_ACEOF |
10248 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10249 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10250 |
|
|
case "(($ac_try" in |
10251 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10252 |
|
|
*) ac_try_echo=$ac_try;; |
10253 |
|
|
esac |
10254 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10255 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10256 |
root |
1.88 |
ac_status=$? |
10257 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10258 |
|
|
rm -f conftest.er1 |
10259 |
|
|
cat conftest.err >&5 |
10260 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10261 |
ayin |
1.108 |
(exit $ac_status); } && { |
10262 |
|
|
test -z "$ac_cxx_werror_flag" || |
10263 |
|
|
test ! -s conftest.err |
10264 |
|
|
} && test -s conftest$ac_exeext && |
10265 |
|
|
$as_test_x conftest$ac_exeext; then |
10266 |
root |
1.88 |
rxvt_cv_func_xsetlocale=yes |
10267 |
|
|
else |
10268 |
|
|
echo "$as_me: failed program was:" >&5 |
10269 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10270 |
|
|
|
10271 |
ayin |
1.108 |
rxvt_cv_func_xsetlocale=no |
10272 |
root |
1.88 |
fi |
10273 |
ayin |
1.108 |
|
10274 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10275 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
10276 |
|
|
fi |
10277 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
10278 |
|
|
echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } |
10279 |
root |
1.88 |
if test x$rxvt_cv_func_xsetlocale = xyes; then |
10280 |
|
|
|
10281 |
|
|
cat >>confdefs.h <<\_ACEOF |
10282 |
|
|
#define HAVE_XSETLOCALE 1 |
10283 |
|
|
_ACEOF |
10284 |
|
|
|
10285 |
|
|
fi |
10286 |
ayin |
1.114 |
LIBS=$save_LIBS |
10287 |
|
|
CFLAGS=$save_CFLAGS |
10288 |
root |
1.88 |
|
10289 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10290 |
|
|
echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10291 |
root |
1.88 |
if test "${rxvt_cv_func_setlocale+set}" = set; then |
10292 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10293 |
|
|
else |
10294 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10295 |
|
|
/* confdefs.h. */ |
10296 |
|
|
_ACEOF |
10297 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10298 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10299 |
|
|
/* end confdefs.h. */ |
10300 |
|
|
#include <clocale> |
10301 |
|
|
int |
10302 |
|
|
main () |
10303 |
|
|
{ |
10304 |
|
|
setlocale(LC_CTYPE, ""); |
10305 |
|
|
; |
10306 |
|
|
return 0; |
10307 |
|
|
} |
10308 |
|
|
_ACEOF |
10309 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10310 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10311 |
|
|
case "(($ac_try" in |
10312 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10313 |
|
|
*) ac_try_echo=$ac_try;; |
10314 |
|
|
esac |
10315 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10316 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10317 |
root |
1.88 |
ac_status=$? |
10318 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10319 |
|
|
rm -f conftest.er1 |
10320 |
|
|
cat conftest.err >&5 |
10321 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10322 |
ayin |
1.108 |
(exit $ac_status); } && { |
10323 |
|
|
test -z "$ac_cxx_werror_flag" || |
10324 |
|
|
test ! -s conftest.err |
10325 |
|
|
} && test -s conftest$ac_exeext && |
10326 |
|
|
$as_test_x conftest$ac_exeext; then |
10327 |
root |
1.88 |
rxvt_cv_func_setlocale=yes |
10328 |
|
|
else |
10329 |
|
|
echo "$as_me: failed program was:" >&5 |
10330 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10331 |
|
|
|
10332 |
ayin |
1.108 |
rxvt_cv_func_setlocale=no |
10333 |
root |
1.88 |
fi |
10334 |
ayin |
1.108 |
|
10335 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10336 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
10337 |
|
|
fi |
10338 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
10339 |
|
|
echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } |
10340 |
root |
1.88 |
if test x$rxvt_cv_func_setlocale = xyes; then |
10341 |
|
|
|
10342 |
|
|
cat >>confdefs.h <<\_ACEOF |
10343 |
|
|
#define HAVE_SETLOCALE 1 |
10344 |
|
|
_ACEOF |
10345 |
|
|
|
10346 |
|
|
fi |
10347 |
|
|
|
10348 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
10349 |
|
|
echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } |
10350 |
root |
1.88 |
if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
10351 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10352 |
|
|
else |
10353 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10354 |
|
|
/* confdefs.h. */ |
10355 |
|
|
_ACEOF |
10356 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10357 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10358 |
|
|
/* end confdefs.h. */ |
10359 |
|
|
#include <langinfo.h> |
10360 |
|
|
int |
10361 |
|
|
main () |
10362 |
|
|
{ |
10363 |
|
|
nl_langinfo(CODESET); |
10364 |
|
|
; |
10365 |
|
|
return 0; |
10366 |
|
|
} |
10367 |
|
|
_ACEOF |
10368 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10369 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10370 |
|
|
case "(($ac_try" in |
10371 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10372 |
|
|
*) ac_try_echo=$ac_try;; |
10373 |
|
|
esac |
10374 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10375 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10376 |
root |
1.88 |
ac_status=$? |
10377 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10378 |
|
|
rm -f conftest.er1 |
10379 |
|
|
cat conftest.err >&5 |
10380 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10381 |
ayin |
1.108 |
(exit $ac_status); } && { |
10382 |
|
|
test -z "$ac_cxx_werror_flag" || |
10383 |
|
|
test ! -s conftest.err |
10384 |
|
|
} && test -s conftest$ac_exeext && |
10385 |
|
|
$as_test_x conftest$ac_exeext; then |
10386 |
root |
1.88 |
rxvt_cv_func_nl_langinfo=yes |
10387 |
|
|
else |
10388 |
|
|
echo "$as_me: failed program was:" >&5 |
10389 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10390 |
|
|
|
10391 |
ayin |
1.108 |
rxvt_cv_func_nl_langinfo=no |
10392 |
root |
1.88 |
fi |
10393 |
ayin |
1.108 |
|
10394 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10395 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
10396 |
|
|
fi |
10397 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
10398 |
|
|
echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } |
10399 |
root |
1.88 |
if test x$rxvt_cv_func_nl_langinfo = xyes; then |
10400 |
|
|
|
10401 |
|
|
cat >>confdefs.h <<\_ACEOF |
10402 |
|
|
#define HAVE_NL_LANGINFO 1 |
10403 |
|
|
_ACEOF |
10404 |
|
|
|
10405 |
|
|
fi |
10406 |
|
|
|
10407 |
|
|
|
10408 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10409 |
|
|
echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } |
10410 |
root |
1.88 |
if test "${can_pass_fds+set}" = set; then |
10411 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10412 |
|
|
else |
10413 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10414 |
|
|
/* confdefs.h. */ |
10415 |
|
|
_ACEOF |
10416 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10417 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10418 |
|
|
/* end confdefs.h. */ |
10419 |
|
|
|
10420 |
root |
1.93 |
#include <cstddef> // broken bsds (is that redundant?) need this |
10421 |
root |
1.88 |
#include <sys/types.h> |
10422 |
|
|
#include <sys/socket.h> |
10423 |
|
|
#include <sys/uio.h> |
10424 |
|
|
|
10425 |
|
|
int |
10426 |
|
|
main () |
10427 |
|
|
{ |
10428 |
|
|
|
10429 |
|
|
{ |
10430 |
|
|
msghdr msg; |
10431 |
|
|
iovec iov; |
10432 |
|
|
char buf [100]; |
10433 |
|
|
char data = 0; |
10434 |
|
|
|
10435 |
|
|
iov.iov_base = &data; |
10436 |
|
|
iov.iov_len = 1; |
10437 |
|
|
|
10438 |
|
|
msg.msg_iov = &iov; |
10439 |
|
|
msg.msg_iovlen = 1; |
10440 |
|
|
msg.msg_control = buf; |
10441 |
|
|
msg.msg_controllen = sizeof buf; |
10442 |
|
|
|
10443 |
|
|
cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
10444 |
|
|
cmsg->cmsg_level = SOL_SOCKET; |
10445 |
|
|
cmsg->cmsg_type = SCM_RIGHTS; |
10446 |
|
|
cmsg->cmsg_len = 100; |
10447 |
|
|
|
10448 |
|
|
*(int *)CMSG_DATA (cmsg) = 5; |
10449 |
|
|
|
10450 |
|
|
return sendmsg (3, &msg, 0); |
10451 |
|
|
} |
10452 |
|
|
|
10453 |
|
|
; |
10454 |
|
|
return 0; |
10455 |
|
|
} |
10456 |
|
|
_ACEOF |
10457 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10458 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10459 |
|
|
case "(($ac_try" in |
10460 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10461 |
|
|
*) ac_try_echo=$ac_try;; |
10462 |
|
|
esac |
10463 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10464 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10465 |
root |
1.88 |
ac_status=$? |
10466 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10467 |
|
|
rm -f conftest.er1 |
10468 |
|
|
cat conftest.err >&5 |
10469 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10470 |
ayin |
1.108 |
(exit $ac_status); } && { |
10471 |
|
|
test -z "$ac_cxx_werror_flag" || |
10472 |
|
|
test ! -s conftest.err |
10473 |
|
|
} && test -s conftest$ac_exeext && |
10474 |
|
|
$as_test_x conftest$ac_exeext; then |
10475 |
root |
1.88 |
can_pass_fds=yes |
10476 |
|
|
else |
10477 |
|
|
echo "$as_me: failed program was:" >&5 |
10478 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10479 |
|
|
|
10480 |
ayin |
1.108 |
can_pass_fds=no |
10481 |
root |
1.88 |
fi |
10482 |
ayin |
1.108 |
|
10483 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10484 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
10485 |
|
|
fi |
10486 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
10487 |
|
|
echo "${ECHO_T}$can_pass_fds" >&6; } |
10488 |
root |
1.88 |
if test x$can_pass_fds = xyes; then |
10489 |
|
|
|
10490 |
|
|
cat >>confdefs.h <<\_ACEOF |
10491 |
|
|
#define HAVE_UNIX_FDPASS 1 |
10492 |
|
|
_ACEOF |
10493 |
|
|
|
10494 |
|
|
else |
10495 |
|
|
{ { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
10496 |
|
|
echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10497 |
|
|
{ (exit 1); exit 1; }; } |
10498 |
|
|
fi |
10499 |
|
|
|
10500 |
|
|
|
10501 |
|
|
|
10502 |
|
|
|
10503 |
|
|
|
10504 |
|
|
|
10505 |
|
|
|
10506 |
|
|
|
10507 |
|
|
for ac_header in \ |
10508 |
|
|
pty.h \ |
10509 |
|
|
util.h \ |
10510 |
|
|
libutil.h \ |
10511 |
|
|
sys/ioctl.h \ |
10512 |
|
|
sys/stropts.h \ |
10513 |
|
|
|
10514 |
root |
1.83 |
do |
10515 |
root |
1.88 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10516 |
ayin |
1.108 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10517 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10518 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10519 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10520 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10521 |
|
|
fi |
10522 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10523 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10524 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
10525 |
root |
1.88 |
else |
10526 |
|
|
# Is the header compilable? |
10527 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10528 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10529 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
10530 |
|
|
/* confdefs.h. */ |
10531 |
|
|
_ACEOF |
10532 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10533 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10534 |
|
|
/* end confdefs.h. */ |
10535 |
|
|
$ac_includes_default |
10536 |
|
|
#include <$ac_header> |
10537 |
|
|
_ACEOF |
10538 |
|
|
rm -f conftest.$ac_objext |
10539 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
10540 |
|
|
case "(($ac_try" in |
10541 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10542 |
|
|
*) ac_try_echo=$ac_try;; |
10543 |
|
|
esac |
10544 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10545 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
10546 |
root |
1.88 |
ac_status=$? |
10547 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10548 |
|
|
rm -f conftest.er1 |
10549 |
|
|
cat conftest.err >&5 |
10550 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10551 |
ayin |
1.108 |
(exit $ac_status); } && { |
10552 |
|
|
test -z "$ac_cxx_werror_flag" || |
10553 |
|
|
test ! -s conftest.err |
10554 |
|
|
} && test -s conftest.$ac_objext; then |
10555 |
root |
1.88 |
ac_header_compiler=yes |
10556 |
|
|
else |
10557 |
|
|
echo "$as_me: failed program was:" >&5 |
10558 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10559 |
|
|
|
10560 |
ayin |
1.108 |
ac_header_compiler=no |
10561 |
root |
1.88 |
fi |
10562 |
ayin |
1.108 |
|
10563 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10564 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10565 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10566 |
root |
1.88 |
|
10567 |
|
|
# Is the header present? |
10568 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10569 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10570 |
root |
1.88 |
cat >conftest.$ac_ext <<_ACEOF |
10571 |
|
|
/* confdefs.h. */ |
10572 |
|
|
_ACEOF |
10573 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10574 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10575 |
|
|
/* end confdefs.h. */ |
10576 |
|
|
#include <$ac_header> |
10577 |
|
|
_ACEOF |
10578 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10579 |
|
|
case "(($ac_try" in |
10580 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10581 |
|
|
*) ac_try_echo=$ac_try;; |
10582 |
|
|
esac |
10583 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10584 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10585 |
root |
1.88 |
ac_status=$? |
10586 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10587 |
|
|
rm -f conftest.er1 |
10588 |
|
|
cat conftest.err >&5 |
10589 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10590 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
10591 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10592 |
|
|
test ! -s conftest.err |
10593 |
|
|
}; then |
10594 |
root |
1.88 |
ac_header_preproc=yes |
10595 |
|
|
else |
10596 |
|
|
echo "$as_me: failed program was:" >&5 |
10597 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10598 |
|
|
|
10599 |
|
|
ac_header_preproc=no |
10600 |
|
|
fi |
10601 |
ayin |
1.108 |
|
10602 |
root |
1.88 |
rm -f conftest.err conftest.$ac_ext |
10603 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10604 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10605 |
root |
1.88 |
|
10606 |
|
|
# So? What about this header? |
10607 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10608 |
|
|
yes:no: ) |
10609 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10610 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10611 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10612 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10613 |
|
|
ac_header_preproc=yes |
10614 |
|
|
;; |
10615 |
|
|
no:yes:* ) |
10616 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10617 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10618 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10619 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10620 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10621 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10622 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10623 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10624 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10625 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10626 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10627 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10628 |
ayin |
1.108 |
|
10629 |
root |
1.88 |
;; |
10630 |
|
|
esac |
10631 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10632 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10633 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10634 |
root |
1.88 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10635 |
|
|
else |
10636 |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
10637 |
|
|
fi |
10638 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10639 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10640 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
10641 |
root |
1.88 |
|
10642 |
|
|
fi |
10643 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10644 |
|
|
cat >>confdefs.h <<_ACEOF |
10645 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10646 |
|
|
_ACEOF |
10647 |
root |
1.83 |
|
10648 |
pcg |
1.11 |
fi |
10649 |
root |
1.83 |
|
10650 |
root |
1.88 |
done |
10651 |
|
|
|
10652 |
root |
1.83 |
|
10653 |
|
|
|
10654 |
|
|
|
10655 |
|
|
|
10656 |
|
|
|
10657 |
|
|
|
10658 |
root |
1.94 |
|
10659 |
|
|
|
10660 |
|
|
|
10661 |
|
|
|
10662 |
root |
1.88 |
for ac_func in \ |
10663 |
|
|
revoke \ |
10664 |
|
|
_getpty \ |
10665 |
|
|
getpt \ |
10666 |
|
|
posix_openpt \ |
10667 |
|
|
isastream \ |
10668 |
root |
1.94 |
setuid \ |
10669 |
|
|
seteuid \ |
10670 |
|
|
setreuid \ |
10671 |
|
|
setresuid \ |
10672 |
root |
1.83 |
|
10673 |
root |
1.88 |
do |
10674 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10675 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10676 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10677 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10678 |
root |
1.83 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10679 |
|
|
else |
10680 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10681 |
|
|
/* confdefs.h. */ |
10682 |
|
|
_ACEOF |
10683 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10684 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10685 |
|
|
/* end confdefs.h. */ |
10686 |
root |
1.88 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10687 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10688 |
|
|
#define $ac_func innocuous_$ac_func |
10689 |
|
|
|
10690 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
10691 |
|
|
which can conflict with char $ac_func (); below. |
10692 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10693 |
|
|
<limits.h> exists even on freestanding compilers. */ |
10694 |
|
|
|
10695 |
|
|
#ifdef __STDC__ |
10696 |
|
|
# include <limits.h> |
10697 |
|
|
#else |
10698 |
|
|
# include <assert.h> |
10699 |
|
|
#endif |
10700 |
|
|
|
10701 |
|
|
#undef $ac_func |
10702 |
|
|
|
10703 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
10704 |
|
|
Use char because int might match the return type of a GCC |
10705 |
|
|
builtin and then its argument prototype would still apply. */ |
10706 |
root |
1.88 |
#ifdef __cplusplus |
10707 |
|
|
extern "C" |
10708 |
|
|
#endif |
10709 |
|
|
char $ac_func (); |
10710 |
|
|
/* The GNU C library defines this for functions which it implements |
10711 |
|
|
to always fail with ENOSYS. Some functions are actually named |
10712 |
|
|
something starting with __ and the normal name is an alias. */ |
10713 |
ayin |
1.108 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10714 |
root |
1.88 |
choke me |
10715 |
|
|
#endif |
10716 |
|
|
|
10717 |
root |
1.83 |
int |
10718 |
|
|
main () |
10719 |
|
|
{ |
10720 |
ayin |
1.108 |
return $ac_func (); |
10721 |
root |
1.56 |
; |
10722 |
|
|
return 0; |
10723 |
|
|
} |
10724 |
|
|
_ACEOF |
10725 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10726 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10727 |
|
|
case "(($ac_try" in |
10728 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10729 |
|
|
*) ac_try_echo=$ac_try;; |
10730 |
|
|
esac |
10731 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10732 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10733 |
root |
1.56 |
ac_status=$? |
10734 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10735 |
|
|
rm -f conftest.er1 |
10736 |
|
|
cat conftest.err >&5 |
10737 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10738 |
ayin |
1.108 |
(exit $ac_status); } && { |
10739 |
|
|
test -z "$ac_cxx_werror_flag" || |
10740 |
|
|
test ! -s conftest.err |
10741 |
|
|
} && test -s conftest$ac_exeext && |
10742 |
|
|
$as_test_x conftest$ac_exeext; then |
10743 |
root |
1.88 |
eval "$as_ac_var=yes" |
10744 |
root |
1.56 |
else |
10745 |
|
|
echo "$as_me: failed program was:" >&5 |
10746 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10747 |
|
|
|
10748 |
ayin |
1.108 |
eval "$as_ac_var=no" |
10749 |
root |
1.56 |
fi |
10750 |
ayin |
1.108 |
|
10751 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10752 |
root |
1.56 |
conftest$ac_exeext conftest.$ac_ext |
10753 |
|
|
fi |
10754 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_var'}'` |
10755 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10756 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
10757 |
root |
1.88 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10758 |
|
|
cat >>confdefs.h <<_ACEOF |
10759 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10760 |
|
|
_ACEOF |
10761 |
|
|
|
10762 |
|
|
fi |
10763 |
|
|
done |
10764 |
|
|
|
10765 |
|
|
|
10766 |
|
|
have_clone=no |
10767 |
|
|
|
10768 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
10769 |
|
|
echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } |
10770 |
root |
1.88 |
if test -e /dev/ptym/clone; then |
10771 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10772 |
|
|
echo "${ECHO_T}yes" >&6; } |
10773 |
root |
1.88 |
|
10774 |
|
|
cat >>confdefs.h <<\_ACEOF |
10775 |
|
|
#define HAVE_DEV_CLONE 1 |
10776 |
|
|
_ACEOF |
10777 |
|
|
|
10778 |
root |
1.83 |
|
10779 |
|
|
cat >>confdefs.h <<\_ACEOF |
10780 |
root |
1.88 |
#define CLONE_DEVICE "/dev/ptym/clone" |
10781 |
root |
1.56 |
_ACEOF |
10782 |
|
|
|
10783 |
root |
1.88 |
have_clone=yes |
10784 |
|
|
else |
10785 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10786 |
|
|
echo "${ECHO_T}no" >&6; } |
10787 |
root |
1.56 |
fi |
10788 |
|
|
|
10789 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
10790 |
|
|
echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
10791 |
root |
1.88 |
if test -e /dev/ptc; then |
10792 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10793 |
|
|
echo "${ECHO_T}yes" >&6; } |
10794 |
root |
1.88 |
|
10795 |
|
|
cat >>confdefs.h <<\_ACEOF |
10796 |
|
|
#define HAVE_DEV_PTC 1 |
10797 |
|
|
_ACEOF |
10798 |
|
|
|
10799 |
|
|
|
10800 |
|
|
cat >>confdefs.h <<\_ACEOF |
10801 |
|
|
#define CLONE_DEVICE "/dev/ptc" |
10802 |
|
|
_ACEOF |
10803 |
|
|
|
10804 |
|
|
have_clone=yes |
10805 |
root |
1.31 |
else |
10806 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10807 |
|
|
echo "${ECHO_T}no" >&6; } |
10808 |
root |
1.88 |
fi |
10809 |
|
|
|
10810 |
|
|
case $host in |
10811 |
|
|
*-*-cygwin*) |
10812 |
|
|
have_clone=yes |
10813 |
|
|
|
10814 |
|
|
cat >>confdefs.h <<\_ACEOF |
10815 |
|
|
#define CLONE_DEVICE "/dev/ptmx" |
10816 |
|
|
_ACEOF |
10817 |
|
|
|
10818 |
|
|
;; |
10819 |
|
|
*) |
10820 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
10821 |
|
|
echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
10822 |
root |
1.88 |
if test -e /dev/ptmx; then |
10823 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10824 |
|
|
echo "${ECHO_T}yes" >&6; } |
10825 |
root |
1.88 |
|
10826 |
|
|
cat >>confdefs.h <<\_ACEOF |
10827 |
|
|
#define HAVE_DEV_PTMX 1 |
10828 |
|
|
_ACEOF |
10829 |
|
|
|
10830 |
|
|
|
10831 |
|
|
cat >>confdefs.h <<\_ACEOF |
10832 |
|
|
#define CLONE_DEVICE "/dev/ptmx" |
10833 |
|
|
_ACEOF |
10834 |
|
|
|
10835 |
|
|
have_clone=yes |
10836 |
|
|
else |
10837 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10838 |
|
|
echo "${ECHO_T}no" >&6; } |
10839 |
root |
1.88 |
fi |
10840 |
|
|
;; |
10841 |
|
|
esac |
10842 |
|
|
|
10843 |
|
|
if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
10844 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
10845 |
|
|
echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } |
10846 |
root |
1.83 |
cat >conftest.$ac_ext <<_ACEOF |
10847 |
|
|
/* confdefs.h. */ |
10848 |
|
|
_ACEOF |
10849 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10850 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10851 |
|
|
/* end confdefs.h. */ |
10852 |
root |
1.88 |
#include <stdlib.h> |
10853 |
root |
1.83 |
int |
10854 |
|
|
main () |
10855 |
|
|
{ |
10856 |
root |
1.88 |
grantpt(0);unlockpt(0);ptsname(0); |
10857 |
root |
1.83 |
; |
10858 |
|
|
return 0; |
10859 |
root |
1.31 |
} |
10860 |
|
|
_ACEOF |
10861 |
root |
1.83 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10862 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10863 |
|
|
case "(($ac_try" in |
10864 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10865 |
|
|
*) ac_try_echo=$ac_try;; |
10866 |
|
|
esac |
10867 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10868 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10869 |
root |
1.31 |
ac_status=$? |
10870 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10871 |
|
|
rm -f conftest.er1 |
10872 |
|
|
cat conftest.err >&5 |
10873 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10874 |
ayin |
1.108 |
(exit $ac_status); } && { |
10875 |
|
|
test -z "$ac_cxx_werror_flag" || |
10876 |
|
|
test ! -s conftest.err |
10877 |
|
|
} && test -s conftest$ac_exeext && |
10878 |
|
|
$as_test_x conftest$ac_exeext; then |
10879 |
root |
1.88 |
unix98_pty=yes |
10880 |
|
|
|
10881 |
|
|
cat >>confdefs.h <<\_ACEOF |
10882 |
|
|
#define UNIX98_PTY 1 |
10883 |
|
|
_ACEOF |
10884 |
|
|
|
10885 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10886 |
|
|
echo "${ECHO_T}yes" >&6; } |
10887 |
root |
1.31 |
else |
10888 |
|
|
echo "$as_me: failed program was:" >&5 |
10889 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10890 |
|
|
|
10891 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10892 |
|
|
echo "${ECHO_T}no" >&6; } |
10893 |
root |
1.31 |
fi |
10894 |
ayin |
1.108 |
|
10895 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10896 |
root |
1.83 |
conftest$ac_exeext conftest.$ac_ext |
10897 |
root |
1.31 |
fi |
10898 |
|
|
|
10899 |
root |
1.88 |
if test -z "$unix98_pty"; then |
10900 |
root |
1.31 |
|
10901 |
root |
1.88 |
for ac_func in openpty |
10902 |
|
|
do |
10903 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10904 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10905 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10906 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10907 |
root |
1.66 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10908 |
|
|
else |
10909 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
10910 |
|
|
/* confdefs.h. */ |
10911 |
|
|
_ACEOF |
10912 |
|
|
cat confdefs.h >>conftest.$ac_ext |
10913 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
10914 |
|
|
/* end confdefs.h. */ |
10915 |
root |
1.88 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10916 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10917 |
|
|
#define $ac_func innocuous_$ac_func |
10918 |
|
|
|
10919 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
10920 |
|
|
which can conflict with char $ac_func (); below. |
10921 |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10922 |
|
|
<limits.h> exists even on freestanding compilers. */ |
10923 |
|
|
|
10924 |
|
|
#ifdef __STDC__ |
10925 |
|
|
# include <limits.h> |
10926 |
|
|
#else |
10927 |
|
|
# include <assert.h> |
10928 |
|
|
#endif |
10929 |
|
|
|
10930 |
|
|
#undef $ac_func |
10931 |
|
|
|
10932 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
10933 |
|
|
Use char because int might match the return type of a GCC |
10934 |
|
|
builtin and then its argument prototype would still apply. */ |
10935 |
root |
1.88 |
#ifdef __cplusplus |
10936 |
|
|
extern "C" |
10937 |
|
|
#endif |
10938 |
|
|
char $ac_func (); |
10939 |
|
|
/* The GNU C library defines this for functions which it implements |
10940 |
|
|
to always fail with ENOSYS. Some functions are actually named |
10941 |
|
|
something starting with __ and the normal name is an alias. */ |
10942 |
ayin |
1.108 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10943 |
root |
1.88 |
choke me |
10944 |
|
|
#endif |
10945 |
|
|
|
10946 |
root |
1.66 |
int |
10947 |
|
|
main () |
10948 |
|
|
{ |
10949 |
ayin |
1.108 |
return $ac_func (); |
10950 |
root |
1.66 |
; |
10951 |
|
|
return 0; |
10952 |
|
|
} |
10953 |
|
|
_ACEOF |
10954 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10955 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
10956 |
|
|
case "(($ac_try" in |
10957 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10958 |
|
|
*) ac_try_echo=$ac_try;; |
10959 |
|
|
esac |
10960 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10961 |
|
|
(eval "$ac_link") 2>conftest.er1 |
10962 |
root |
1.66 |
ac_status=$? |
10963 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
10964 |
|
|
rm -f conftest.er1 |
10965 |
|
|
cat conftest.err >&5 |
10966 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10967 |
ayin |
1.108 |
(exit $ac_status); } && { |
10968 |
|
|
test -z "$ac_cxx_werror_flag" || |
10969 |
|
|
test ! -s conftest.err |
10970 |
|
|
} && test -s conftest$ac_exeext && |
10971 |
|
|
$as_test_x conftest$ac_exeext; then |
10972 |
root |
1.88 |
eval "$as_ac_var=yes" |
10973 |
root |
1.66 |
else |
10974 |
|
|
echo "$as_me: failed program was:" >&5 |
10975 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10976 |
|
|
|
10977 |
ayin |
1.108 |
eval "$as_ac_var=no" |
10978 |
root |
1.66 |
fi |
10979 |
ayin |
1.108 |
|
10980 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10981 |
root |
1.66 |
conftest$ac_exeext conftest.$ac_ext |
10982 |
|
|
fi |
10983 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_var'}'` |
10984 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10985 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
10986 |
root |
1.88 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10987 |
|
|
cat >>confdefs.h <<_ACEOF |
10988 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10989 |
root |
1.83 |
_ACEOF |
10990 |
|
|
|
10991 |
root |
1.88 |
else |
10992 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
10993 |
|
|
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
10994 |
root |
1.88 |
if test "${ac_cv_lib_util_openpty+set}" = set; then |
10995 |
root |
1.66 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10996 |
|
|
else |
10997 |
root |
1.88 |
ac_check_lib_save_LIBS=$LIBS |
10998 |
|
|
LIBS="-lutil $LIBS" |
10999 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
11000 |
|
|
/* confdefs.h. */ |
11001 |
|
|
_ACEOF |
11002 |
|
|
cat confdefs.h >>conftest.$ac_ext |
11003 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11004 |
|
|
/* end confdefs.h. */ |
11005 |
root |
1.87 |
|
11006 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
11007 |
|
|
Use char because int might match the return type of a GCC |
11008 |
|
|
builtin and then its argument prototype would still apply. */ |
11009 |
root |
1.88 |
#ifdef __cplusplus |
11010 |
|
|
extern "C" |
11011 |
|
|
#endif |
11012 |
|
|
char openpty (); |
11013 |
|
|
int |
11014 |
|
|
main () |
11015 |
|
|
{ |
11016 |
ayin |
1.108 |
return openpty (); |
11017 |
root |
1.88 |
; |
11018 |
|
|
return 0; |
11019 |
root |
1.66 |
} |
11020 |
|
|
_ACEOF |
11021 |
root |
1.88 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11022 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
11023 |
|
|
case "(($ac_try" in |
11024 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11025 |
|
|
*) ac_try_echo=$ac_try;; |
11026 |
|
|
esac |
11027 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11028 |
|
|
(eval "$ac_link") 2>conftest.er1 |
11029 |
root |
1.66 |
ac_status=$? |
11030 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
11031 |
|
|
rm -f conftest.er1 |
11032 |
|
|
cat conftest.err >&5 |
11033 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11034 |
ayin |
1.108 |
(exit $ac_status); } && { |
11035 |
|
|
test -z "$ac_cxx_werror_flag" || |
11036 |
|
|
test ! -s conftest.err |
11037 |
|
|
} && test -s conftest$ac_exeext && |
11038 |
|
|
$as_test_x conftest$ac_exeext; then |
11039 |
root |
1.88 |
ac_cv_lib_util_openpty=yes |
11040 |
root |
1.66 |
else |
11041 |
|
|
echo "$as_me: failed program was:" >&5 |
11042 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11043 |
|
|
|
11044 |
ayin |
1.108 |
ac_cv_lib_util_openpty=no |
11045 |
root |
1.88 |
fi |
11046 |
ayin |
1.108 |
|
11047 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11048 |
root |
1.88 |
conftest$ac_exeext conftest.$ac_ext |
11049 |
|
|
LIBS=$ac_check_lib_save_LIBS |
11050 |
root |
1.66 |
fi |
11051 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
11052 |
|
|
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
11053 |
root |
1.88 |
if test $ac_cv_lib_util_openpty = yes; then |
11054 |
|
|
cat >>confdefs.h <<\_ACEOF |
11055 |
|
|
#define HAVE_OPENPTY 1 |
11056 |
|
|
_ACEOF |
11057 |
|
|
LIBS="$LIBS -lutil" |
11058 |
root |
1.66 |
fi |
11059 |
root |
1.87 |
|
11060 |
root |
1.88 |
fi |
11061 |
|
|
done |
11062 |
pcg |
1.1 |
|
11063 |
|
|
fi |
11064 |
|
|
|
11065 |
|
|
|
11066 |
root |
1.90 |
|
11067 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for tty group" >&5 |
11068 |
|
|
echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } |
11069 |
root |
1.90 |
if test "${tty_group+set}" = set; then |
11070 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11071 |
|
|
else |
11072 |
|
|
if test "$cross_compiling" = yes; then |
11073 |
|
|
tty_group=no |
11074 |
|
|
else |
11075 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
11076 |
|
|
/* confdefs.h. */ |
11077 |
|
|
_ACEOF |
11078 |
|
|
cat confdefs.h >>conftest.$ac_ext |
11079 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11080 |
|
|
/* end confdefs.h. */ |
11081 |
|
|
|
11082 |
|
|
#include <sys/types.h> |
11083 |
|
|
#include <sys/stat.h> |
11084 |
|
|
#include <unistd.h> |
11085 |
|
|
#include <grp.h> |
11086 |
|
|
|
11087 |
|
|
main() |
11088 |
|
|
{ |
11089 |
|
|
struct stat st; |
11090 |
|
|
struct group *gr; |
11091 |
|
|
char *tty; |
11092 |
|
|
gr = getgrnam("tty"); |
11093 |
|
|
tty = ttyname(0); |
11094 |
|
|
if (gr != 0 |
11095 |
|
|
&& tty != 0 |
11096 |
|
|
&& (stat(tty, &st)) == 0 |
11097 |
|
|
&& st.st_gid == gr->gr_gid) |
11098 |
|
|
return 0; |
11099 |
|
|
else |
11100 |
|
|
return 1; |
11101 |
|
|
} |
11102 |
|
|
_ACEOF |
11103 |
|
|
rm -f conftest$ac_exeext |
11104 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
11105 |
|
|
case "(($ac_try" in |
11106 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11107 |
|
|
*) ac_try_echo=$ac_try;; |
11108 |
|
|
esac |
11109 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11110 |
|
|
(eval "$ac_link") 2>&5 |
11111 |
root |
1.90 |
ac_status=$? |
11112 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11113 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11114 |
ayin |
1.108 |
{ (case "(($ac_try" in |
11115 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11116 |
|
|
*) ac_try_echo=$ac_try;; |
11117 |
|
|
esac |
11118 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11119 |
|
|
(eval "$ac_try") 2>&5 |
11120 |
root |
1.90 |
ac_status=$? |
11121 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11122 |
|
|
(exit $ac_status); }; }; then |
11123 |
|
|
tty_group=yes |
11124 |
|
|
else |
11125 |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
11126 |
|
|
echo "$as_me: failed program was:" >&5 |
11127 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11128 |
|
|
|
11129 |
|
|
( exit $ac_status ) |
11130 |
|
|
tty_group=no |
11131 |
|
|
fi |
11132 |
ayin |
1.108 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11133 |
root |
1.90 |
fi |
11134 |
ayin |
1.108 |
|
11135 |
|
|
|
11136 |
root |
1.90 |
fi |
11137 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $tty_group" >&5 |
11138 |
|
|
echo "${ECHO_T}$tty_group" >&6; } |
11139 |
root |
1.90 |
if test x$tty_group = xyes; then |
11140 |
|
|
|
11141 |
|
|
cat >>confdefs.h <<\_ACEOF |
11142 |
|
|
#define TTY_GID_SUPPORT 1 |
11143 |
|
|
_ACEOF |
11144 |
|
|
|
11145 |
|
|
fi |
11146 |
|
|
|
11147 |
root |
1.39 |
if test x$support_xft = xyes; then |
11148 |
root |
1.86 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
11149 |
|
|
set dummy pkg-config; ac_word=$2 |
11150 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11151 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
11152 |
root |
1.86 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11153 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11154 |
|
|
else |
11155 |
|
|
case $PKG_CONFIG in |
11156 |
|
|
[\\/]* | ?:[\\/]*) |
11157 |
|
|
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11158 |
|
|
;; |
11159 |
|
|
*) |
11160 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11161 |
|
|
for as_dir in $PATH |
11162 |
|
|
do |
11163 |
|
|
IFS=$as_save_IFS |
11164 |
|
|
test -z "$as_dir" && as_dir=. |
11165 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
11166 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11167 |
root |
1.86 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11168 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11169 |
|
|
break 2 |
11170 |
|
|
fi |
11171 |
|
|
done |
11172 |
|
|
done |
11173 |
ayin |
1.108 |
IFS=$as_save_IFS |
11174 |
root |
1.86 |
|
11175 |
|
|
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11176 |
|
|
;; |
11177 |
|
|
esac |
11178 |
|
|
fi |
11179 |
|
|
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11180 |
|
|
if test -n "$PKG_CONFIG"; then |
11181 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
11182 |
|
|
echo "${ECHO_T}$PKG_CONFIG" >&6; } |
11183 |
root |
1.86 |
else |
11184 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
11185 |
|
|
echo "${ECHO_T}no" >&6; } |
11186 |
root |
1.86 |
fi |
11187 |
|
|
|
11188 |
ayin |
1.108 |
|
11189 |
root |
1.90 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11190 |
root |
1.117 |
X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
11191 |
root |
1.90 |
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11192 |
|
|
else |
11193 |
|
|
# Extract the first word of "xft-config", so it can be a program name with args. |
11194 |
root |
1.86 |
set dummy xft-config; ac_word=$2 |
11195 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11196 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
11197 |
root |
1.86 |
if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
11198 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11199 |
|
|
else |
11200 |
|
|
case $XFT_CONFIG in |
11201 |
|
|
[\\/]* | ?:[\\/]*) |
11202 |
|
|
ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
11203 |
|
|
;; |
11204 |
|
|
*) |
11205 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11206 |
|
|
for as_dir in $PATH |
11207 |
|
|
do |
11208 |
|
|
IFS=$as_save_IFS |
11209 |
|
|
test -z "$as_dir" && as_dir=. |
11210 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
11211 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11212 |
root |
1.86 |
ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11213 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11214 |
|
|
break 2 |
11215 |
|
|
fi |
11216 |
|
|
done |
11217 |
|
|
done |
11218 |
ayin |
1.108 |
IFS=$as_save_IFS |
11219 |
root |
1.86 |
|
11220 |
|
|
test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
11221 |
|
|
;; |
11222 |
|
|
esac |
11223 |
|
|
fi |
11224 |
|
|
XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
11225 |
|
|
if test -n "$XFT_CONFIG"; then |
11226 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
11227 |
|
|
echo "${ECHO_T}$XFT_CONFIG" >&6; } |
11228 |
root |
1.86 |
else |
11229 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
11230 |
|
|
echo "${ECHO_T}no" >&6; } |
11231 |
root |
1.86 |
fi |
11232 |
|
|
|
11233 |
ayin |
1.108 |
|
11234 |
root |
1.86 |
if test $XFT_CONFIG != no; then |
11235 |
root |
1.117 |
X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
11236 |
root |
1.86 |
CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11237 |
|
|
fi |
11238 |
|
|
fi |
11239 |
root |
1.34 |
|
11240 |
root |
1.118 |
save_LIBS="$LIBS" |
11241 |
|
|
LIBS="$LIBS $X_LIBS" |
11242 |
root |
1.34 |
|
11243 |
root |
1.39 |
for ac_header in X11/Xft/Xft.h |
11244 |
|
|
do |
11245 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11246 |
ayin |
1.108 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11247 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11248 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11249 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11250 |
root |
1.39 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11251 |
root |
1.34 |
fi |
11252 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11253 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11254 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
11255 |
root |
1.39 |
else |
11256 |
|
|
# Is the header compilable? |
11257 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11258 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11259 |
root |
1.39 |
cat >conftest.$ac_ext <<_ACEOF |
11260 |
|
|
/* confdefs.h. */ |
11261 |
root |
1.26 |
_ACEOF |
11262 |
root |
1.39 |
cat confdefs.h >>conftest.$ac_ext |
11263 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11264 |
|
|
/* end confdefs.h. */ |
11265 |
|
|
$ac_includes_default |
11266 |
|
|
#include <$ac_header> |
11267 |
root |
1.31 |
_ACEOF |
11268 |
root |
1.39 |
rm -f conftest.$ac_objext |
11269 |
ayin |
1.108 |
if { (ac_try="$ac_compile" |
11270 |
|
|
case "(($ac_try" in |
11271 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11272 |
|
|
*) ac_try_echo=$ac_try;; |
11273 |
|
|
esac |
11274 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11275 |
|
|
(eval "$ac_compile") 2>conftest.er1 |
11276 |
root |
1.39 |
ac_status=$? |
11277 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
11278 |
|
|
rm -f conftest.er1 |
11279 |
|
|
cat conftest.err >&5 |
11280 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11281 |
ayin |
1.108 |
(exit $ac_status); } && { |
11282 |
|
|
test -z "$ac_cxx_werror_flag" || |
11283 |
|
|
test ! -s conftest.err |
11284 |
|
|
} && test -s conftest.$ac_objext; then |
11285 |
root |
1.39 |
ac_header_compiler=yes |
11286 |
|
|
else |
11287 |
|
|
echo "$as_me: failed program was:" >&5 |
11288 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11289 |
root |
1.31 |
|
11290 |
ayin |
1.108 |
ac_header_compiler=no |
11291 |
root |
1.31 |
fi |
11292 |
ayin |
1.108 |
|
11293 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11294 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11295 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11296 |
pcg |
1.24 |
|
11297 |
root |
1.39 |
# Is the header present? |
11298 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11299 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11300 |
root |
1.39 |
cat >conftest.$ac_ext <<_ACEOF |
11301 |
|
|
/* confdefs.h. */ |
11302 |
pcg |
1.24 |
_ACEOF |
11303 |
root |
1.39 |
cat confdefs.h >>conftest.$ac_ext |
11304 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11305 |
|
|
/* end confdefs.h. */ |
11306 |
|
|
#include <$ac_header> |
11307 |
pcg |
1.11 |
_ACEOF |
11308 |
ayin |
1.108 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11309 |
|
|
case "(($ac_try" in |
11310 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11311 |
|
|
*) ac_try_echo=$ac_try;; |
11312 |
|
|
esac |
11313 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11314 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11315 |
root |
1.39 |
ac_status=$? |
11316 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
11317 |
|
|
rm -f conftest.er1 |
11318 |
|
|
cat conftest.err >&5 |
11319 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11320 |
ayin |
1.108 |
(exit $ac_status); } >/dev/null && { |
11321 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11322 |
|
|
test ! -s conftest.err |
11323 |
|
|
}; then |
11324 |
root |
1.39 |
ac_header_preproc=yes |
11325 |
|
|
else |
11326 |
|
|
echo "$as_me: failed program was:" >&5 |
11327 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11328 |
pcg |
1.1 |
|
11329 |
root |
1.39 |
ac_header_preproc=no |
11330 |
pcg |
1.1 |
fi |
11331 |
ayin |
1.108 |
|
11332 |
root |
1.39 |
rm -f conftest.err conftest.$ac_ext |
11333 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11334 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11335 |
pcg |
1.1 |
|
11336 |
root |
1.39 |
# So? What about this header? |
11337 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11338 |
|
|
yes:no: ) |
11339 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11340 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11341 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11342 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11343 |
|
|
ac_header_preproc=yes |
11344 |
|
|
;; |
11345 |
|
|
no:yes:* ) |
11346 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11347 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11348 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11349 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11350 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11351 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11352 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11353 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11354 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11355 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11356 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11357 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11358 |
ayin |
1.108 |
|
11359 |
root |
1.39 |
;; |
11360 |
|
|
esac |
11361 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11362 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11363 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11364 |
root |
1.39 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11365 |
|
|
else |
11366 |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
11367 |
pcg |
1.1 |
fi |
11368 |
ayin |
1.108 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11369 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11370 |
|
|
echo "${ECHO_T}$ac_res" >&6; } |
11371 |
pcg |
1.1 |
|
11372 |
|
|
fi |
11373 |
root |
1.39 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11374 |
|
|
cat >>confdefs.h <<_ACEOF |
11375 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11376 |
pcg |
1.11 |
_ACEOF |
11377 |
pcg |
1.1 |
|
11378 |
root |
1.39 |
else |
11379 |
|
|
support_xft=no |
11380 |
pcg |
1.1 |
fi |
11381 |
pcg |
1.11 |
|
11382 |
root |
1.39 |
done |
11383 |
pcg |
1.1 |
|
11384 |
root |
1.118 |
{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11385 |
ayin |
1.108 |
echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11386 |
root |
1.39 |
if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11387 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11388 |
|
|
else |
11389 |
|
|
ac_check_lib_save_LIBS=$LIBS |
11390 |
|
|
LIBS="-lXft $LIBS" |
11391 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
11392 |
|
|
/* confdefs.h. */ |
11393 |
|
|
_ACEOF |
11394 |
|
|
cat confdefs.h >>conftest.$ac_ext |
11395 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11396 |
|
|
/* end confdefs.h. */ |
11397 |
|
|
|
11398 |
ayin |
1.108 |
/* Override any GCC internal prototype to avoid an error. |
11399 |
|
|
Use char because int might match the return type of a GCC |
11400 |
|
|
builtin and then its argument prototype would still apply. */ |
11401 |
root |
1.39 |
#ifdef __cplusplus |
11402 |
|
|
extern "C" |
11403 |
|
|
#endif |
11404 |
|
|
char XftDrawString32 (); |
11405 |
|
|
int |
11406 |
|
|
main () |
11407 |
|
|
{ |
11408 |
ayin |
1.108 |
return XftDrawString32 (); |
11409 |
root |
1.39 |
; |
11410 |
|
|
return 0; |
11411 |
|
|
} |
11412 |
|
|
_ACEOF |
11413 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
11414 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
11415 |
|
|
case "(($ac_try" in |
11416 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11417 |
|
|
*) ac_try_echo=$ac_try;; |
11418 |
|
|
esac |
11419 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11420 |
|
|
(eval "$ac_link") 2>conftest.er1 |
11421 |
root |
1.39 |
ac_status=$? |
11422 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
11423 |
|
|
rm -f conftest.er1 |
11424 |
|
|
cat conftest.err >&5 |
11425 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11426 |
ayin |
1.108 |
(exit $ac_status); } && { |
11427 |
|
|
test -z "$ac_cxx_werror_flag" || |
11428 |
|
|
test ! -s conftest.err |
11429 |
|
|
} && test -s conftest$ac_exeext && |
11430 |
|
|
$as_test_x conftest$ac_exeext; then |
11431 |
root |
1.39 |
ac_cv_lib_Xft_XftDrawString32=yes |
11432 |
|
|
else |
11433 |
|
|
echo "$as_me: failed program was:" >&5 |
11434 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11435 |
|
|
|
11436 |
ayin |
1.108 |
ac_cv_lib_Xft_XftDrawString32=no |
11437 |
root |
1.39 |
fi |
11438 |
ayin |
1.108 |
|
11439 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11440 |
root |
1.39 |
conftest$ac_exeext conftest.$ac_ext |
11441 |
|
|
LIBS=$ac_check_lib_save_LIBS |
11442 |
|
|
fi |
11443 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11444 |
|
|
echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11445 |
root |
1.39 |
if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11446 |
root |
1.118 |
: |
11447 |
root |
1.39 |
else |
11448 |
|
|
support_xft=no |
11449 |
|
|
fi |
11450 |
|
|
|
11451 |
root |
1.118 |
LIBS="$save_LIBS" |
11452 |
root |
1.39 |
|
11453 |
|
|
if test x$support_xft = xyes; then |
11454 |
|
|
|
11455 |
|
|
cat >>confdefs.h <<\_ACEOF |
11456 |
|
|
#define XFT 1 |
11457 |
|
|
_ACEOF |
11458 |
|
|
|
11459 |
|
|
fi |
11460 |
|
|
fi |
11461 |
|
|
if test x$support_styles = xyes; then |
11462 |
|
|
|
11463 |
|
|
cat >>confdefs.h <<\_ACEOF |
11464 |
|
|
#define ENABLE_STYLES 1 |
11465 |
|
|
_ACEOF |
11466 |
|
|
|
11467 |
|
|
fi |
11468 |
|
|
if test x$support_iso14755 = xyes; then |
11469 |
|
|
|
11470 |
|
|
cat >>confdefs.h <<\_ACEOF |
11471 |
|
|
#define ISO_14755 1 |
11472 |
|
|
_ACEOF |
11473 |
|
|
|
11474 |
|
|
fi |
11475 |
|
|
if test x$support_8bitctrls = xyes; then |
11476 |
|
|
|
11477 |
|
|
cat >>confdefs.h <<\_ACEOF |
11478 |
|
|
#define EIGHT_BIT_CONTROLS 1 |
11479 |
|
|
_ACEOF |
11480 |
|
|
|
11481 |
|
|
fi |
11482 |
|
|
if test x$support_fading = xyes; then |
11483 |
|
|
|
11484 |
|
|
cat >>confdefs.h <<\_ACEOF |
11485 |
|
|
#define OFF_FOCUS_FADING 1 |
11486 |
|
|
_ACEOF |
11487 |
|
|
|
11488 |
|
|
fi |
11489 |
|
|
if test x$support_inheritpixmap = xyes; then |
11490 |
|
|
|
11491 |
|
|
cat >>confdefs.h <<\_ACEOF |
11492 |
root |
1.105 |
#define ENABLE_TRANSPARENCY 1 |
11493 |
root |
1.39 |
_ACEOF |
11494 |
|
|
|
11495 |
|
|
fi |
11496 |
|
|
if test x$support_keepscrolling = xno; then |
11497 |
|
|
|
11498 |
|
|
cat >>confdefs.h <<\_ACEOF |
11499 |
|
|
#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
11500 |
|
|
_ACEOF |
11501 |
|
|
|
11502 |
|
|
fi |
11503 |
|
|
if test x$support_selectionscrolling = xyes; then |
11504 |
|
|
|
11505 |
|
|
cat >>confdefs.h <<\_ACEOF |
11506 |
|
|
#define SELECTION_SCROLLING 1 |
11507 |
|
|
_ACEOF |
11508 |
|
|
|
11509 |
|
|
fi |
11510 |
ayin |
1.111 |
if test x$support_frills = xyes; then |
11511 |
|
|
|
11512 |
|
|
cat >>confdefs.h <<\_ACEOF |
11513 |
|
|
#define ENABLE_FRILLS 1 |
11514 |
|
|
_ACEOF |
11515 |
|
|
|
11516 |
|
|
fi |
11517 |
pcg |
1.1 |
if test x$support_mousewheel = xyes; then |
11518 |
pcg |
1.11 |
|
11519 |
|
|
cat >>confdefs.h <<\_ACEOF |
11520 |
pcg |
1.1 |
#define MOUSE_WHEEL 1 |
11521 |
pcg |
1.11 |
_ACEOF |
11522 |
pcg |
1.1 |
|
11523 |
|
|
fi |
11524 |
|
|
if test x$support_mouseslipwheel = xyes; then |
11525 |
pcg |
1.11 |
|
11526 |
|
|
cat >>confdefs.h <<\_ACEOF |
11527 |
pcg |
1.1 |
#define MOUSE_SLIP_WHEELING 1 |
11528 |
pcg |
1.11 |
_ACEOF |
11529 |
pcg |
1.1 |
|
11530 |
|
|
fi |
11531 |
ayin |
1.110 |
if test x$support_afterimage = xyes; then |
11532 |
pcg |
1.11 |
|
11533 |
|
|
cat >>confdefs.h <<\_ACEOF |
11534 |
ayin |
1.110 |
#define HAVE_AFTERIMAGE 1 |
11535 |
pcg |
1.11 |
_ACEOF |
11536 |
pcg |
1.1 |
|
11537 |
root |
1.103 |
|
11538 |
|
|
cat >>confdefs.h <<\_ACEOF |
11539 |
sasha |
1.112 |
#define BG_IMAGE_FROM_FILE 1 |
11540 |
root |
1.103 |
_ACEOF |
11541 |
|
|
|
11542 |
|
|
fi |
11543 |
|
|
|
11544 |
|
|
|
11545 |
pcg |
1.1 |
if test x$support_scroll_rxvt = xyes; then |
11546 |
pcg |
1.11 |
|
11547 |
|
|
cat >>confdefs.h <<\_ACEOF |
11548 |
pcg |
1.1 |
#define RXVT_SCROLLBAR 1 |
11549 |
pcg |
1.11 |
_ACEOF |
11550 |
pcg |
1.1 |
|
11551 |
|
|
scrolltypes="rxvt" |
11552 |
|
|
fi |
11553 |
|
|
if test x$support_scroll_next = xyes; then |
11554 |
pcg |
1.11 |
|
11555 |
|
|
cat >>confdefs.h <<\_ACEOF |
11556 |
pcg |
1.1 |
#define NEXT_SCROLLBAR 1 |
11557 |
pcg |
1.11 |
_ACEOF |
11558 |
pcg |
1.1 |
|
11559 |
|
|
scrolltypes="$scrolltypes next" |
11560 |
|
|
fi |
11561 |
|
|
if test x$support_scroll_xterm = xyes; then |
11562 |
pcg |
1.11 |
|
11563 |
|
|
cat >>confdefs.h <<\_ACEOF |
11564 |
pcg |
1.1 |
#define XTERM_SCROLLBAR 1 |
11565 |
pcg |
1.11 |
_ACEOF |
11566 |
pcg |
1.1 |
|
11567 |
|
|
scrolltypes="$scrolltypes xterm" |
11568 |
|
|
fi |
11569 |
pcg |
1.11 |
if test x$support_scroll_plain = xyes; then |
11570 |
|
|
|
11571 |
|
|
cat >>confdefs.h <<\_ACEOF |
11572 |
|
|
#define PLAIN_SCROLLBAR 1 |
11573 |
|
|
_ACEOF |
11574 |
|
|
|
11575 |
|
|
scrolltypes="$scrolltypes plain" |
11576 |
|
|
fi |
11577 |
pcg |
1.1 |
if test x$support_pointer_blank = xyes; then |
11578 |
pcg |
1.11 |
|
11579 |
|
|
cat >>confdefs.h <<\_ACEOF |
11580 |
pcg |
1.1 |
#define POINTER_BLANK 1 |
11581 |
pcg |
1.11 |
_ACEOF |
11582 |
pcg |
1.1 |
|
11583 |
|
|
fi |
11584 |
pcg |
1.11 |
if test x$support_text_blink = xyes; then |
11585 |
|
|
|
11586 |
|
|
cat >>confdefs.h <<\_ACEOF |
11587 |
|
|
#define TEXT_BLINK 1 |
11588 |
|
|
_ACEOF |
11589 |
pcg |
1.1 |
|
11590 |
|
|
fi |
11591 |
|
|
if test x$support_unicode3 = xyes; then |
11592 |
pcg |
1.11 |
|
11593 |
|
|
cat >>confdefs.h <<\_ACEOF |
11594 |
pcg |
1.1 |
#define UNICODE_3 1 |
11595 |
pcg |
1.11 |
_ACEOF |
11596 |
pcg |
1.1 |
|
11597 |
|
|
fi |
11598 |
pcg |
1.18 |
if test x$support_combining = xyes; then |
11599 |
|
|
|
11600 |
|
|
cat >>confdefs.h <<\_ACEOF |
11601 |
pcg |
1.20 |
#define ENABLE_COMBINING 1 |
11602 |
pcg |
1.18 |
_ACEOF |
11603 |
|
|
|
11604 |
|
|
fi |
11605 |
pcg |
1.1 |
if test x$codesets = xall; then |
11606 |
root |
1.40 |
codesets=jp,jp-ext,kr,zh,zh-ext |
11607 |
pcg |
1.1 |
fi |
11608 |
pcg |
1.11 |
|
11609 |
|
|
cat >>confdefs.h <<\_ACEOF |
11610 |
pcg |
1.1 |
#define ENCODING_EU 1 |
11611 |
pcg |
1.11 |
_ACEOF |
11612 |
pcg |
1.1 |
|
11613 |
pcg |
1.13 |
|
11614 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
11615 |
pcg |
1.1 |
#define ENCODING_VN 1 |
11616 |
pcg |
1.11 |
_ACEOF |
11617 |
pcg |
1.13 |
|
11618 |
root |
1.34 |
for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
11619 |
pcg |
1.13 |
case "$codeset" in |
11620 |
pcg |
1.11 |
JP ) |
11621 |
|
|
cat >>confdefs.h <<\_ACEOF |
11622 |
pcg |
1.1 |
#define ENCODING_JP 1 |
11623 |
pcg |
1.11 |
_ACEOF |
11624 |
pcg |
1.1 |
;; |
11625 |
pcg |
1.11 |
JP_EXT ) |
11626 |
|
|
cat >>confdefs.h <<\_ACEOF |
11627 |
pcg |
1.1 |
#define ENCODING_JP_EXT 1 |
11628 |
pcg |
1.11 |
_ACEOF |
11629 |
pcg |
1.1 |
;; |
11630 |
pcg |
1.11 |
KR ) |
11631 |
|
|
cat >>confdefs.h <<\_ACEOF |
11632 |
pcg |
1.1 |
#define ENCODING_KR 1 |
11633 |
pcg |
1.11 |
_ACEOF |
11634 |
pcg |
1.1 |
;; |
11635 |
root |
1.40 |
ZH ) |
11636 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
11637 |
root |
1.40 |
#define ENCODING_ZH 1 |
11638 |
pcg |
1.11 |
_ACEOF |
11639 |
pcg |
1.1 |
;; |
11640 |
root |
1.40 |
ZH_EXT ) |
11641 |
pcg |
1.11 |
cat >>confdefs.h <<\_ACEOF |
11642 |
root |
1.40 |
#define ENCODING_ZH_EXT 1 |
11643 |
pcg |
1.11 |
_ACEOF |
11644 |
pcg |
1.1 |
;; |
11645 |
|
|
esac |
11646 |
|
|
done |
11647 |
|
|
|
11648 |
root |
1.60 |
IF_PERL=\# |
11649 |
|
|
if test x$support_perl = xyes; then |
11650 |
|
|
# Extract the first word of "perl5", so it can be a program name with args. |
11651 |
|
|
set dummy perl5; ac_word=$2 |
11652 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11653 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
11654 |
root |
1.60 |
if test "${ac_cv_path_PERL+set}" = set; then |
11655 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11656 |
|
|
else |
11657 |
|
|
case $PERL in |
11658 |
|
|
[\\/]* | ?:[\\/]*) |
11659 |
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
11660 |
|
|
;; |
11661 |
|
|
*) |
11662 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11663 |
|
|
for as_dir in $PATH |
11664 |
|
|
do |
11665 |
|
|
IFS=$as_save_IFS |
11666 |
|
|
test -z "$as_dir" && as_dir=. |
11667 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
11668 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11669 |
root |
1.60 |
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11670 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11671 |
|
|
break 2 |
11672 |
|
|
fi |
11673 |
|
|
done |
11674 |
|
|
done |
11675 |
ayin |
1.108 |
IFS=$as_save_IFS |
11676 |
root |
1.60 |
|
11677 |
|
|
;; |
11678 |
|
|
esac |
11679 |
|
|
fi |
11680 |
|
|
PERL=$ac_cv_path_PERL |
11681 |
|
|
if test -n "$PERL"; then |
11682 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $PERL" >&5 |
11683 |
|
|
echo "${ECHO_T}$PERL" >&6; } |
11684 |
root |
1.60 |
else |
11685 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
11686 |
|
|
echo "${ECHO_T}no" >&6; } |
11687 |
root |
1.60 |
fi |
11688 |
|
|
|
11689 |
ayin |
1.108 |
|
11690 |
root |
1.60 |
# Extract the first word of "perl", so it can be a program name with args. |
11691 |
|
|
set dummy perl; ac_word=$2 |
11692 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11693 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
11694 |
root |
1.60 |
if test "${ac_cv_path_PERL+set}" = set; then |
11695 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11696 |
|
|
else |
11697 |
|
|
case $PERL in |
11698 |
|
|
[\\/]* | ?:[\\/]*) |
11699 |
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
11700 |
|
|
;; |
11701 |
|
|
*) |
11702 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11703 |
|
|
for as_dir in $PATH |
11704 |
|
|
do |
11705 |
|
|
IFS=$as_save_IFS |
11706 |
|
|
test -z "$as_dir" && as_dir=. |
11707 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
11708 |
ayin |
1.108 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11709 |
root |
1.60 |
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11710 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11711 |
|
|
break 2 |
11712 |
|
|
fi |
11713 |
|
|
done |
11714 |
|
|
done |
11715 |
ayin |
1.108 |
IFS=$as_save_IFS |
11716 |
root |
1.60 |
|
11717 |
|
|
;; |
11718 |
|
|
esac |
11719 |
|
|
fi |
11720 |
|
|
PERL=$ac_cv_path_PERL |
11721 |
|
|
if test -n "$PERL"; then |
11722 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: $PERL" >&5 |
11723 |
|
|
echo "${ECHO_T}$PERL" >&6; } |
11724 |
root |
1.60 |
else |
11725 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: no" >&5 |
11726 |
|
|
echo "${ECHO_T}no" >&6; } |
11727 |
root |
1.60 |
fi |
11728 |
|
|
|
11729 |
|
|
|
11730 |
ayin |
1.108 |
|
11731 |
|
|
{ echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
11732 |
|
|
echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } |
11733 |
root |
1.60 |
if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
11734 |
|
|
|
11735 |
root |
1.62 |
save_CXXFLAGS="$CXXFLAGS" |
11736 |
|
|
save_LIBS="$LIBS" |
11737 |
|
|
CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
11738 |
|
|
LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
11739 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
11740 |
|
|
/* confdefs.h. */ |
11741 |
|
|
_ACEOF |
11742 |
|
|
cat confdefs.h >>conftest.$ac_ext |
11743 |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
11744 |
|
|
/* end confdefs.h. */ |
11745 |
|
|
|
11746 |
|
|
#include <EXTERN.h> |
11747 |
|
|
#include <perl.h> |
11748 |
|
|
#include <XSUB.h> |
11749 |
|
|
|
11750 |
|
|
int |
11751 |
|
|
main () |
11752 |
|
|
{ |
11753 |
|
|
|
11754 |
|
|
PerlInterpreter *perl = perl_alloc (); |
11755 |
|
|
|
11756 |
|
|
; |
11757 |
|
|
return 0; |
11758 |
|
|
} |
11759 |
|
|
_ACEOF |
11760 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
11761 |
ayin |
1.108 |
if { (ac_try="$ac_link" |
11762 |
|
|
case "(($ac_try" in |
11763 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11764 |
|
|
*) ac_try_echo=$ac_try;; |
11765 |
|
|
esac |
11766 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11767 |
|
|
(eval "$ac_link") 2>conftest.er1 |
11768 |
root |
1.62 |
ac_status=$? |
11769 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
11770 |
|
|
rm -f conftest.er1 |
11771 |
|
|
cat conftest.err >&5 |
11772 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11773 |
ayin |
1.108 |
(exit $ac_status); } && { |
11774 |
|
|
test -z "$ac_cxx_werror_flag" || |
11775 |
|
|
test ! -s conftest.err |
11776 |
|
|
} && test -s conftest$ac_exeext && |
11777 |
|
|
$as_test_x conftest$ac_exeext; then |
11778 |
root |
1.62 |
rxvt_perl_link=yes |
11779 |
|
|
else |
11780 |
|
|
echo "$as_me: failed program was:" >&5 |
11781 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11782 |
|
|
|
11783 |
ayin |
1.108 |
rxvt_perl_link=no |
11784 |
root |
1.62 |
fi |
11785 |
ayin |
1.108 |
|
11786 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11787 |
root |
1.62 |
conftest$ac_exeext conftest.$ac_ext |
11788 |
|
|
CXXFLAGS="$save_CXXFLAGS" |
11789 |
|
|
LIBS="$save_LIBS" |
11790 |
|
|
|
11791 |
|
|
if test x$rxvt_perl_link = xyes; then |
11792 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: result: ok" >&5 |
11793 |
|
|
echo "${ECHO_T}ok" >&6; } |
11794 |
root |
1.62 |
|
11795 |
root |
1.60 |
cat >>confdefs.h <<\_ACEOF |
11796 |
|
|
#define ENABLE_PERL 1 |
11797 |
|
|
_ACEOF |
11798 |
|
|
|
11799 |
root |
1.62 |
IF_PERL= |
11800 |
|
|
PERL_O=rxvtperl.o |
11801 |
|
|
PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
11802 |
|
|
PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
11803 |
|
|
PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
11804 |
|
|
else |
11805 |
root |
1.77 |
{ { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
11806 |
|
|
echo "$as_me: error: no, unable to link" >&2;} |
11807 |
|
|
{ (exit 1); exit 1; }; } |
11808 |
root |
1.62 |
fi |
11809 |
root |
1.60 |
else |
11810 |
root |
1.77 |
{ { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
11811 |
|
|
echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
11812 |
|
|
{ (exit 1); exit 1; }; } |
11813 |
root |
1.60 |
fi |
11814 |
|
|
fi |
11815 |
|
|
|
11816 |
|
|
|
11817 |
|
|
|
11818 |
|
|
|
11819 |
|
|
|
11820 |
|
|
|
11821 |
|
|
|
11822 |
pcg |
1.1 |
|
11823 |
|
|
|
11824 |
|
|
|
11825 |
|
|
|
11826 |
|
|
|
11827 |
|
|
|
11828 |
|
|
|
11829 |
|
|
|
11830 |
|
|
|
11831 |
|
|
|
11832 |
root |
1.103 |
|
11833 |
|
|
|
11834 |
pcg |
1.1 |
test "$program_prefix" != NONE && |
11835 |
ayin |
1.108 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
11836 |
pcg |
1.1 |
# Use a double $ so make ignores it. |
11837 |
|
|
test "$program_suffix" != NONE && |
11838 |
ayin |
1.108 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
11839 |
pcg |
1.11 |
# Double any \ or $. echo might interpret backslashes. |
11840 |
|
|
# By default was `s,x,x', remove it if useless. |
11841 |
|
|
cat <<\_ACEOF >conftest.sed |
11842 |
|
|
s/[\\$]/&&/g;s/;s,x,x,$// |
11843 |
|
|
_ACEOF |
11844 |
|
|
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11845 |
ayin |
1.108 |
rm -f conftest.sed |
11846 |
pcg |
1.1 |
|
11847 |
|
|
|
11848 |
ayin |
1.124 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
11849 |
root |
1.32 |
|
11850 |
pcg |
1.11 |
cat >confcache <<\_ACEOF |
11851 |
pcg |
1.1 |
# This file is a shell script that caches the results of configure |
11852 |
|
|
# tests run on this system so they can be shared between configure |
11853 |
pcg |
1.11 |
# scripts and configure runs, see configure's option --config-cache. |
11854 |
|
|
# It is not useful on other systems. If it contains results you don't |
11855 |
|
|
# want to keep, you may remove or edit it. |
11856 |
pcg |
1.1 |
# |
11857 |
pcg |
1.11 |
# config.status only pays attention to the cache file if you give it |
11858 |
|
|
# the --recheck option to rerun configure. |
11859 |
pcg |
1.1 |
# |
11860 |
pcg |
1.11 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
11861 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
11862 |
|
|
# following values. |
11863 |
|
|
|
11864 |
|
|
_ACEOF |
11865 |
|
|
|
11866 |
pcg |
1.1 |
# The following way of writing the cache mishandles newlines in values, |
11867 |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
11868 |
ayin |
1.108 |
# So, we kill variables containing newlines. |
11869 |
pcg |
1.1 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
11870 |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
11871 |
ayin |
1.108 |
( |
11872 |
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
11873 |
|
|
eval ac_val=\$$ac_var |
11874 |
|
|
case $ac_val in #( |
11875 |
|
|
*${as_nl}*) |
11876 |
|
|
case $ac_var in #( |
11877 |
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11878 |
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
11879 |
|
|
esac |
11880 |
|
|
case $ac_var in #( |
11881 |
|
|
_ | IFS | as_nl) ;; #( |
11882 |
|
|
*) $as_unset $ac_var ;; |
11883 |
|
|
esac ;; |
11884 |
|
|
esac |
11885 |
|
|
done |
11886 |
|
|
|
11887 |
pcg |
1.11 |
(set) 2>&1 | |
11888 |
ayin |
1.108 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11889 |
|
|
*${as_nl}ac_space=\ *) |
11890 |
pcg |
1.11 |
# `set' does not quote correctly, so add quotes (double-quote |
11891 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
11892 |
|
|
sed -n \ |
11893 |
|
|
"s/'/'\\\\''/g; |
11894 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
11895 |
ayin |
1.108 |
;; #( |
11896 |
pcg |
1.11 |
*) |
11897 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
11898 |
ayin |
1.108 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
11899 |
pcg |
1.11 |
;; |
11900 |
ayin |
1.108 |
esac | |
11901 |
|
|
sort |
11902 |
|
|
) | |
11903 |
pcg |
1.11 |
sed ' |
11904 |
ayin |
1.108 |
/^ac_cv_env_/b end |
11905 |
pcg |
1.11 |
t clear |
11906 |
ayin |
1.108 |
:clear |
11907 |
pcg |
1.11 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11908 |
|
|
t end |
11909 |
ayin |
1.108 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11910 |
|
|
:end' >>confcache |
11911 |
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
11912 |
|
|
if test -w "$cache_file"; then |
11913 |
|
|
test "x$cache_file" != "x/dev/null" && |
11914 |
|
|
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11915 |
|
|
echo "$as_me: updating cache $cache_file" >&6;} |
11916 |
pcg |
1.11 |
cat confcache >$cache_file |
11917 |
pcg |
1.1 |
else |
11918 |
ayin |
1.108 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11919 |
|
|
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
11920 |
pcg |
1.1 |
fi |
11921 |
|
|
fi |
11922 |
|
|
rm -f confcache |
11923 |
|
|
|
11924 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11925 |
|
|
# Let make expand exec_prefix. |
11926 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
11927 |
|
|
|
11928 |
pcg |
1.11 |
DEFS=-DHAVE_CONFIG_H |
11929 |
|
|
|
11930 |
|
|
ac_libobjs= |
11931 |
|
|
ac_ltlibobjs= |
11932 |
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
11933 |
|
|
# 1. Remove the extension, and $U if already installed. |
11934 |
ayin |
1.108 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
11935 |
|
|
ac_i=`echo "$ac_i" | sed "$ac_script"` |
11936 |
|
|
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11937 |
|
|
# will be set to the directory where LIBOBJS objects are built. |
11938 |
|
|
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
11939 |
|
|
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
11940 |
pcg |
1.11 |
done |
11941 |
|
|
LIBOBJS=$ac_libobjs |
11942 |
|
|
|
11943 |
|
|
LTLIBOBJS=$ac_ltlibobjs |
11944 |
|
|
|
11945 |
pcg |
1.1 |
|
11946 |
|
|
|
11947 |
|
|
: ${CONFIG_STATUS=./config.status} |
11948 |
pcg |
1.11 |
ac_clean_files_save=$ac_clean_files |
11949 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
11950 |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11951 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
11952 |
|
|
cat >$CONFIG_STATUS <<_ACEOF |
11953 |
|
|
#! $SHELL |
11954 |
|
|
# Generated by $as_me. |
11955 |
pcg |
1.1 |
# Run this file to recreate the current configuration. |
11956 |
|
|
# Compiler output produced by configure, useful for debugging |
11957 |
pcg |
1.11 |
# configure, is in config.log if it exists. |
11958 |
|
|
|
11959 |
|
|
debug=false |
11960 |
|
|
ac_cs_recheck=false |
11961 |
|
|
ac_cs_silent=false |
11962 |
|
|
SHELL=\${CONFIG_SHELL-$SHELL} |
11963 |
|
|
_ACEOF |
11964 |
|
|
|
11965 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
11966 |
|
|
## --------------------- ## |
11967 |
|
|
## M4sh Initialization. ## |
11968 |
|
|
## --------------------- ## |
11969 |
|
|
|
11970 |
ayin |
1.108 |
# Be more Bourne compatible |
11971 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
11972 |
pcg |
1.11 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11973 |
|
|
emulate sh |
11974 |
|
|
NULLCMD=: |
11975 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
11976 |
|
|
# is contrary to our usage. Disable this feature. |
11977 |
|
|
alias -g '${1+"$@"}'='"$@"' |
11978 |
ayin |
1.108 |
setopt NO_GLOB_SUBST |
11979 |
|
|
else |
11980 |
|
|
case `(set -o) 2>/dev/null` in |
11981 |
|
|
*posix*) set -o posix ;; |
11982 |
|
|
esac |
11983 |
|
|
|
11984 |
|
|
fi |
11985 |
|
|
|
11986 |
|
|
|
11987 |
|
|
|
11988 |
|
|
|
11989 |
|
|
# PATH needs CR |
11990 |
|
|
# Avoid depending upon Character Ranges. |
11991 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
11992 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
11993 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
11994 |
|
|
as_cr_digits='0123456789' |
11995 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
11996 |
|
|
|
11997 |
|
|
# The user is always right. |
11998 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
11999 |
|
|
echo "#! /bin/sh" >conf$$.sh |
12000 |
|
|
echo "exit 0" >>conf$$.sh |
12001 |
|
|
chmod +x conf$$.sh |
12002 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
12003 |
|
|
PATH_SEPARATOR=';' |
12004 |
|
|
else |
12005 |
|
|
PATH_SEPARATOR=: |
12006 |
|
|
fi |
12007 |
|
|
rm -f conf$$.sh |
12008 |
ayin |
1.106 |
fi |
12009 |
|
|
|
12010 |
|
|
# Support unset when possible. |
12011 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
12012 |
|
|
as_unset=unset |
12013 |
root |
1.105 |
else |
12014 |
ayin |
1.106 |
as_unset=false |
12015 |
pcg |
1.11 |
fi |
12016 |
|
|
|
12017 |
|
|
|
12018 |
ayin |
1.108 |
# IFS |
12019 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is |
12020 |
|
|
# there to prevent editors from complaining about space-tab. |
12021 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
12022 |
|
|
# splitting by setting IFS to empty value.) |
12023 |
|
|
as_nl=' |
12024 |
|
|
' |
12025 |
|
|
IFS=" "" $as_nl" |
12026 |
|
|
|
12027 |
|
|
# Find who we are. Look in the path if we contain no directory separator. |
12028 |
|
|
case $0 in |
12029 |
|
|
*[\\/]* ) as_myself=$0 ;; |
12030 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12031 |
|
|
for as_dir in $PATH |
12032 |
|
|
do |
12033 |
|
|
IFS=$as_save_IFS |
12034 |
|
|
test -z "$as_dir" && as_dir=. |
12035 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12036 |
|
|
done |
12037 |
|
|
IFS=$as_save_IFS |
12038 |
|
|
|
12039 |
|
|
;; |
12040 |
|
|
esac |
12041 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
12042 |
|
|
# in which case we are not to be found in the path. |
12043 |
|
|
if test "x$as_myself" = x; then |
12044 |
|
|
as_myself=$0 |
12045 |
|
|
fi |
12046 |
|
|
if test ! -f "$as_myself"; then |
12047 |
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
12048 |
|
|
{ (exit 1); exit 1; } |
12049 |
|
|
fi |
12050 |
|
|
|
12051 |
ayin |
1.106 |
# Work around bugs in pre-3.0 UWIN ksh. |
12052 |
ayin |
1.108 |
for as_var in ENV MAIL MAILPATH |
12053 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
12054 |
|
|
done |
12055 |
ayin |
1.106 |
PS1='$ ' |
12056 |
|
|
PS2='> ' |
12057 |
root |
1.105 |
PS4='+ ' |
12058 |
|
|
|
12059 |
|
|
# NLS nuisances. |
12060 |
|
|
for as_var in \ |
12061 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
12062 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
12063 |
|
|
LC_TELEPHONE LC_TIME |
12064 |
|
|
do |
12065 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
12066 |
|
|
eval $as_var=C; export $as_var |
12067 |
|
|
else |
12068 |
ayin |
1.108 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
12069 |
ayin |
1.104 |
fi |
12070 |
root |
1.105 |
done |
12071 |
|
|
|
12072 |
|
|
# Required to use basename. |
12073 |
ayin |
1.108 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
12074 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
12075 |
root |
1.105 |
as_expr=expr |
12076 |
|
|
else |
12077 |
|
|
as_expr=false |
12078 |
|
|
fi |
12079 |
|
|
|
12080 |
ayin |
1.108 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12081 |
root |
1.105 |
as_basename=basename |
12082 |
|
|
else |
12083 |
|
|
as_basename=false |
12084 |
|
|
fi |
12085 |
|
|
|
12086 |
|
|
|
12087 |
|
|
# Name of the executable. |
12088 |
ayin |
1.108 |
as_me=`$as_basename -- "$0" || |
12089 |
root |
1.105 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12090 |
|
|
X"$0" : 'X\(//\)$' \| \ |
12091 |
ayin |
1.108 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12092 |
root |
1.105 |
echo X/"$0" | |
12093 |
ayin |
1.108 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12094 |
|
|
s//\1/ |
12095 |
|
|
q |
12096 |
|
|
} |
12097 |
|
|
/^X\/\(\/\/\)$/{ |
12098 |
|
|
s//\1/ |
12099 |
|
|
q |
12100 |
|
|
} |
12101 |
|
|
/^X\/\(\/\).*/{ |
12102 |
|
|
s//\1/ |
12103 |
|
|
q |
12104 |
|
|
} |
12105 |
|
|
s/.*/./; q'` |
12106 |
|
|
|
12107 |
|
|
# CDPATH. |
12108 |
|
|
$as_unset CDPATH |
12109 |
root |
1.105 |
|
12110 |
|
|
|
12111 |
ayin |
1.108 |
|
12112 |
|
|
as_lineno_1=$LINENO |
12113 |
|
|
as_lineno_2=$LINENO |
12114 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
12115 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
12116 |
pcg |
1.11 |
|
12117 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12118 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a |
12119 |
ayin |
1.108 |
# line-number line after each line using $LINENO; the second 'sed' |
12120 |
|
|
# does the real work. The second script uses 'N' to pair each |
12121 |
|
|
# line-number line with the line containing $LINENO, and appends |
12122 |
|
|
# trailing '-' during substitution so that $LINENO is not a special |
12123 |
|
|
# case at line end. |
12124 |
pcg |
1.11 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
12125 |
ayin |
1.108 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
12126 |
|
|
# E. McMahon (1931-1989) for sed's syntax. :-) |
12127 |
|
|
sed -n ' |
12128 |
|
|
p |
12129 |
|
|
/[$]LINENO/= |
12130 |
|
|
' <$as_myself | |
12131 |
pcg |
1.11 |
sed ' |
12132 |
ayin |
1.108 |
s/[$]LINENO.*/&-/ |
12133 |
|
|
t lineno |
12134 |
|
|
b |
12135 |
|
|
:lineno |
12136 |
pcg |
1.11 |
N |
12137 |
ayin |
1.108 |
:loop |
12138 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
12139 |
pcg |
1.11 |
t loop |
12140 |
ayin |
1.108 |
s/-\n.*// |
12141 |
pcg |
1.11 |
' >$as_me.lineno && |
12142 |
ayin |
1.108 |
chmod +x "$as_me.lineno" || |
12143 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
12144 |
pcg |
1.11 |
{ (exit 1); exit 1; }; } |
12145 |
|
|
|
12146 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems |
12147 |
|
|
# (the dirname of $[0] is not the place where we might find the |
12148 |
ayin |
1.108 |
# original and so on. Autoconf is especially sensitive to this). |
12149 |
|
|
. "./$as_me.lineno" |
12150 |
pcg |
1.11 |
# Exit status is that of the last command. |
12151 |
|
|
exit |
12152 |
|
|
} |
12153 |
|
|
|
12154 |
|
|
|
12155 |
ayin |
1.108 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12156 |
|
|
as_dirname=dirname |
12157 |
|
|
else |
12158 |
|
|
as_dirname=false |
12159 |
|
|
fi |
12160 |
|
|
|
12161 |
|
|
ECHO_C= ECHO_N= ECHO_T= |
12162 |
|
|
case `echo -n x` in |
12163 |
|
|
-n*) |
12164 |
|
|
case `echo 'x\c'` in |
12165 |
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
12166 |
|
|
*) ECHO_C='\c';; |
12167 |
|
|
esac;; |
12168 |
|
|
*) |
12169 |
|
|
ECHO_N='-n';; |
12170 |
pcg |
1.11 |
esac |
12171 |
|
|
|
12172 |
ayin |
1.108 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
12173 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
12174 |
pcg |
1.11 |
as_expr=expr |
12175 |
|
|
else |
12176 |
|
|
as_expr=false |
12177 |
|
|
fi |
12178 |
|
|
|
12179 |
|
|
rm -f conf$$ conf$$.exe conf$$.file |
12180 |
ayin |
1.108 |
if test -d conf$$.dir; then |
12181 |
|
|
rm -f conf$$.dir/conf$$.file |
12182 |
|
|
else |
12183 |
|
|
rm -f conf$$.dir |
12184 |
|
|
mkdir conf$$.dir |
12185 |
|
|
fi |
12186 |
pcg |
1.11 |
echo >conf$$.file |
12187 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
12188 |
ayin |
1.108 |
as_ln_s='ln -s' |
12189 |
|
|
# ... but there are two gotchas: |
12190 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
12191 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
12192 |
|
|
# In both cases, we have to default to `cp -p'. |
12193 |
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
12194 |
pcg |
1.11 |
as_ln_s='cp -p' |
12195 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
12196 |
|
|
as_ln_s=ln |
12197 |
|
|
else |
12198 |
|
|
as_ln_s='cp -p' |
12199 |
|
|
fi |
12200 |
ayin |
1.108 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12201 |
|
|
rmdir conf$$.dir 2>/dev/null |
12202 |
pcg |
1.11 |
|
12203 |
|
|
if mkdir -p . 2>/dev/null; then |
12204 |
|
|
as_mkdir_p=: |
12205 |
|
|
else |
12206 |
|
|
test -d ./-p && rmdir ./-p |
12207 |
|
|
as_mkdir_p=false |
12208 |
|
|
fi |
12209 |
|
|
|
12210 |
ayin |
1.108 |
if test -x / >/dev/null 2>&1; then |
12211 |
|
|
as_test_x='test -x' |
12212 |
|
|
else |
12213 |
|
|
if ls -dL / >/dev/null 2>&1; then |
12214 |
|
|
as_ls_L_option=L |
12215 |
|
|
else |
12216 |
|
|
as_ls_L_option= |
12217 |
|
|
fi |
12218 |
|
|
as_test_x=' |
12219 |
|
|
eval sh -c '\'' |
12220 |
|
|
if test -d "$1"; then |
12221 |
|
|
test -d "$1/."; |
12222 |
|
|
else |
12223 |
|
|
case $1 in |
12224 |
|
|
-*)set "./$1";; |
12225 |
|
|
esac; |
12226 |
|
|
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
12227 |
|
|
???[sx]*):;;*)false;;esac;fi |
12228 |
|
|
'\'' sh |
12229 |
|
|
' |
12230 |
|
|
fi |
12231 |
|
|
as_executable_p=$as_test_x |
12232 |
pcg |
1.11 |
|
12233 |
|
|
# Sed expression to map a string onto a valid CPP name. |
12234 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
12235 |
|
|
|
12236 |
|
|
# Sed expression to map a string onto a valid variable name. |
12237 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
12238 |
|
|
|
12239 |
|
|
|
12240 |
|
|
exec 6>&1 |
12241 |
|
|
|
12242 |
ayin |
1.108 |
# Save the log message, to keep $[0] and so on meaningful, and to |
12243 |
pcg |
1.11 |
# report actual input values of CONFIG_FILES etc. instead of their |
12244 |
ayin |
1.108 |
# values after options handling. |
12245 |
|
|
ac_log=" |
12246 |
pcg |
1.11 |
This file was extended by $as_me, which was |
12247 |
ayin |
1.108 |
generated by GNU Autoconf 2.61. Invocation command line was |
12248 |
pcg |
1.11 |
|
12249 |
|
|
CONFIG_FILES = $CONFIG_FILES |
12250 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS |
12251 |
|
|
CONFIG_LINKS = $CONFIG_LINKS |
12252 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS |
12253 |
|
|
$ $0 $@ |
12254 |
|
|
|
12255 |
ayin |
1.108 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12256 |
|
|
" |
12257 |
|
|
|
12258 |
pcg |
1.11 |
_ACEOF |
12259 |
|
|
|
12260 |
ayin |
1.108 |
cat >>$CONFIG_STATUS <<_ACEOF |
12261 |
pcg |
1.11 |
# Files that config.status was made for. |
12262 |
ayin |
1.108 |
config_files="$ac_config_files" |
12263 |
|
|
config_headers="$ac_config_headers" |
12264 |
ayin |
1.106 |
|
12265 |
ayin |
1.108 |
_ACEOF |
12266 |
pcg |
1.11 |
|
12267 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
12268 |
|
|
ac_cs_usage="\ |
12269 |
|
|
\`$as_me' instantiates files from templates according to the |
12270 |
|
|
current configuration. |
12271 |
|
|
|
12272 |
|
|
Usage: $0 [OPTIONS] [FILE]... |
12273 |
|
|
|
12274 |
|
|
-h, --help print this help, then exit |
12275 |
ayin |
1.108 |
-V, --version print version number and configuration settings, then exit |
12276 |
pcg |
1.11 |
-q, --quiet do not print progress messages |
12277 |
|
|
-d, --debug don't remove temporary files |
12278 |
|
|
--recheck update $as_me by reconfiguring in the same conditions |
12279 |
|
|
--file=FILE[:TEMPLATE] |
12280 |
|
|
instantiate the configuration file FILE |
12281 |
|
|
--header=FILE[:TEMPLATE] |
12282 |
|
|
instantiate the configuration header FILE |
12283 |
|
|
|
12284 |
|
|
Configuration files: |
12285 |
|
|
$config_files |
12286 |
|
|
|
12287 |
|
|
Configuration headers: |
12288 |
|
|
$config_headers |
12289 |
|
|
|
12290 |
|
|
Report bugs to <bug-autoconf@gnu.org>." |
12291 |
ayin |
1.108 |
|
12292 |
ayin |
1.106 |
_ACEOF |
12293 |
pcg |
1.11 |
cat >>$CONFIG_STATUS <<_ACEOF |
12294 |
|
|
ac_cs_version="\\ |
12295 |
|
|
config.status |
12296 |
ayin |
1.108 |
configured by $0, generated by GNU Autoconf 2.61, |
12297 |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
12298 |
pcg |
1.11 |
|
12299 |
ayin |
1.108 |
Copyright (C) 2006 Free Software Foundation, Inc. |
12300 |
pcg |
1.11 |
This config.status script is free software; the Free Software Foundation |
12301 |
|
|
gives unlimited permission to copy, distribute and modify it." |
12302 |
ayin |
1.108 |
|
12303 |
|
|
ac_pwd='$ac_pwd' |
12304 |
|
|
srcdir='$srcdir' |
12305 |
|
|
INSTALL='$INSTALL' |
12306 |
pcg |
1.11 |
_ACEOF |
12307 |
|
|
|
12308 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
12309 |
|
|
# If no file are specified by the user, then we need to provide default |
12310 |
|
|
# value. By we need to know if files were specified by the user. |
12311 |
|
|
ac_need_defaults=: |
12312 |
|
|
while test $# != 0 |
12313 |
pcg |
1.1 |
do |
12314 |
pcg |
1.11 |
case $1 in |
12315 |
|
|
--*=*) |
12316 |
ayin |
1.108 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12317 |
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
12318 |
pcg |
1.11 |
ac_shift=: |
12319 |
|
|
;; |
12320 |
ayin |
1.108 |
*) |
12321 |
pcg |
1.11 |
ac_option=$1 |
12322 |
|
|
ac_optarg=$2 |
12323 |
|
|
ac_shift=shift |
12324 |
|
|
;; |
12325 |
|
|
esac |
12326 |
|
|
|
12327 |
|
|
case $ac_option in |
12328 |
|
|
# Handling of the options. |
12329 |
pcg |
1.1 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12330 |
pcg |
1.11 |
ac_cs_recheck=: ;; |
12331 |
ayin |
1.108 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12332 |
|
|
echo "$ac_cs_version"; exit ;; |
12333 |
|
|
--debug | --debu | --deb | --de | --d | -d ) |
12334 |
pcg |
1.11 |
debug=: ;; |
12335 |
|
|
--file | --fil | --fi | --f ) |
12336 |
|
|
$ac_shift |
12337 |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
12338 |
|
|
ac_need_defaults=false;; |
12339 |
|
|
--header | --heade | --head | --hea ) |
12340 |
|
|
$ac_shift |
12341 |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
12342 |
|
|
ac_need_defaults=false;; |
12343 |
ayin |
1.108 |
--he | --h) |
12344 |
|
|
# Conflict between --help and --header |
12345 |
|
|
{ echo "$as_me: error: ambiguous option: $1 |
12346 |
|
|
Try \`$0 --help' for more information." >&2 |
12347 |
|
|
{ (exit 1); exit 1; }; };; |
12348 |
|
|
--help | --hel | -h ) |
12349 |
|
|
echo "$ac_cs_usage"; exit ;; |
12350 |
pcg |
1.11 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12351 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
12352 |
|
|
ac_cs_silent=: ;; |
12353 |
|
|
|
12354 |
|
|
# This is an error. |
12355 |
ayin |
1.108 |
-*) { echo "$as_me: error: unrecognized option: $1 |
12356 |
|
|
Try \`$0 --help' for more information." >&2 |
12357 |
pcg |
1.11 |
{ (exit 1); exit 1; }; } ;; |
12358 |
|
|
|
12359 |
ayin |
1.108 |
*) ac_config_targets="$ac_config_targets $1" |
12360 |
|
|
ac_need_defaults=false ;; |
12361 |
pcg |
1.11 |
|
12362 |
|
|
esac |
12363 |
|
|
shift |
12364 |
|
|
done |
12365 |
|
|
|
12366 |
|
|
ac_configure_extra_args= |
12367 |
|
|
|
12368 |
|
|
if $ac_cs_silent; then |
12369 |
|
|
exec 6>/dev/null |
12370 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent" |
12371 |
|
|
fi |
12372 |
|
|
|
12373 |
|
|
_ACEOF |
12374 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
12375 |
|
|
if \$ac_cs_recheck; then |
12376 |
ayin |
1.108 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12377 |
|
|
CONFIG_SHELL=$SHELL |
12378 |
|
|
export CONFIG_SHELL |
12379 |
|
|
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12380 |
pcg |
1.11 |
fi |
12381 |
|
|
|
12382 |
|
|
_ACEOF |
12383 |
ayin |
1.108 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12384 |
|
|
exec 5>>config.log |
12385 |
|
|
{ |
12386 |
|
|
echo |
12387 |
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
12388 |
|
|
## Running $as_me. ## |
12389 |
|
|
_ASBOX |
12390 |
|
|
echo "$ac_log" |
12391 |
|
|
} >&5 |
12392 |
pcg |
1.11 |
|
12393 |
ayin |
1.108 |
_ACEOF |
12394 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
12395 |
|
|
_ACEOF |
12396 |
ayin |
1.106 |
|
12397 |
ayin |
1.108 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12398 |
ayin |
1.106 |
|
12399 |
ayin |
1.108 |
# Handling of arguments. |
12400 |
pcg |
1.11 |
for ac_config_target in $ac_config_targets |
12401 |
|
|
do |
12402 |
ayin |
1.108 |
case $ac_config_target in |
12403 |
|
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12404 |
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12405 |
|
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12406 |
|
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12407 |
|
|
|
12408 |
pcg |
1.11 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12409 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12410 |
|
|
{ (exit 1); exit 1; }; };; |
12411 |
pcg |
1.1 |
esac |
12412 |
|
|
done |
12413 |
|
|
|
12414 |
ayin |
1.108 |
|
12415 |
pcg |
1.11 |
# If the user did not use the arguments to specify the items to instantiate, |
12416 |
|
|
# then the envvar interface is used. Set only those that are not. |
12417 |
|
|
# We use the long form for the default assignment because of an extremely |
12418 |
|
|
# bizarre bug on SunOS 4.1.3. |
12419 |
|
|
if $ac_need_defaults; then |
12420 |
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
12421 |
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
12422 |
|
|
fi |
12423 |
|
|
|
12424 |
|
|
# Have a temporary directory for convenience. Make it in the build tree |
12425 |
ayin |
1.108 |
# simply because there is no reason against having it here, and in addition, |
12426 |
pcg |
1.11 |
# creating and moving files from /tmp can sometimes cause problems. |
12427 |
ayin |
1.108 |
# Hook for its removal unless debugging. |
12428 |
|
|
# Note that there is a small window in which the directory will not be cleaned: |
12429 |
|
|
# after its creation but before its name has been assigned to `$tmp'. |
12430 |
pcg |
1.11 |
$debug || |
12431 |
|
|
{ |
12432 |
ayin |
1.108 |
tmp= |
12433 |
|
|
trap 'exit_status=$? |
12434 |
|
|
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
12435 |
|
|
' 0 |
12436 |
pcg |
1.11 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12437 |
|
|
} |
12438 |
|
|
# Create a (secure) tmp directory for tmp files. |
12439 |
|
|
|
12440 |
|
|
{ |
12441 |
ayin |
1.108 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
12442 |
pcg |
1.11 |
test -n "$tmp" && test -d "$tmp" |
12443 |
|
|
} || |
12444 |
|
|
{ |
12445 |
ayin |
1.108 |
tmp=./conf$$-$RANDOM |
12446 |
|
|
(umask 077 && mkdir "$tmp") |
12447 |
pcg |
1.11 |
} || |
12448 |
|
|
{ |
12449 |
|
|
echo "$me: cannot create a temporary directory in ." >&2 |
12450 |
|
|
{ (exit 1); exit 1; } |
12451 |
|
|
} |
12452 |
|
|
|
12453 |
ayin |
1.108 |
# |
12454 |
|
|
# Set up the sed scripts for CONFIG_FILES section. |
12455 |
|
|
# |
12456 |
|
|
|
12457 |
|
|
# No need to generate the scripts if there are no CONFIG_FILES. |
12458 |
|
|
# This happens for instance when ./config.status config.h |
12459 |
|
|
if test -n "$CONFIG_FILES"; then |
12460 |
|
|
|
12461 |
ayin |
1.106 |
_ACEOF |
12462 |
|
|
|
12463 |
ayin |
1.108 |
|
12464 |
|
|
|
12465 |
|
|
ac_delim='%!_!# ' |
12466 |
|
|
for ac_last_try in false false false false false :; do |
12467 |
|
|
cat >conf$$subs.sed <<_ACEOF |
12468 |
|
|
SHELL!$SHELL$ac_delim |
12469 |
|
|
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
12470 |
|
|
PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
12471 |
|
|
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
12472 |
|
|
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
12473 |
|
|
PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
12474 |
|
|
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
12475 |
|
|
exec_prefix!$exec_prefix$ac_delim |
12476 |
|
|
prefix!$prefix$ac_delim |
12477 |
|
|
program_transform_name!$program_transform_name$ac_delim |
12478 |
|
|
bindir!$bindir$ac_delim |
12479 |
|
|
sbindir!$sbindir$ac_delim |
12480 |
|
|
libexecdir!$libexecdir$ac_delim |
12481 |
|
|
datarootdir!$datarootdir$ac_delim |
12482 |
|
|
datadir!$datadir$ac_delim |
12483 |
|
|
sysconfdir!$sysconfdir$ac_delim |
12484 |
|
|
sharedstatedir!$sharedstatedir$ac_delim |
12485 |
|
|
localstatedir!$localstatedir$ac_delim |
12486 |
|
|
includedir!$includedir$ac_delim |
12487 |
|
|
oldincludedir!$oldincludedir$ac_delim |
12488 |
|
|
docdir!$docdir$ac_delim |
12489 |
|
|
infodir!$infodir$ac_delim |
12490 |
|
|
htmldir!$htmldir$ac_delim |
12491 |
|
|
dvidir!$dvidir$ac_delim |
12492 |
|
|
pdfdir!$pdfdir$ac_delim |
12493 |
|
|
psdir!$psdir$ac_delim |
12494 |
|
|
libdir!$libdir$ac_delim |
12495 |
|
|
localedir!$localedir$ac_delim |
12496 |
|
|
mandir!$mandir$ac_delim |
12497 |
|
|
DEFS!$DEFS$ac_delim |
12498 |
|
|
ECHO_C!$ECHO_C$ac_delim |
12499 |
|
|
ECHO_N!$ECHO_N$ac_delim |
12500 |
|
|
ECHO_T!$ECHO_T$ac_delim |
12501 |
|
|
LIBS!$LIBS$ac_delim |
12502 |
|
|
build_alias!$build_alias$ac_delim |
12503 |
|
|
host_alias!$host_alias$ac_delim |
12504 |
|
|
target_alias!$target_alias$ac_delim |
12505 |
|
|
build!$build$ac_delim |
12506 |
|
|
build_cpu!$build_cpu$ac_delim |
12507 |
|
|
build_vendor!$build_vendor$ac_delim |
12508 |
|
|
build_os!$build_os$ac_delim |
12509 |
|
|
host!$host$ac_delim |
12510 |
|
|
host_cpu!$host_cpu$ac_delim |
12511 |
|
|
host_vendor!$host_vendor$ac_delim |
12512 |
|
|
host_os!$host_os$ac_delim |
12513 |
|
|
VERSION!$VERSION$ac_delim |
12514 |
|
|
DATE!$DATE$ac_delim |
12515 |
|
|
CC!$CC$ac_delim |
12516 |
|
|
CFLAGS!$CFLAGS$ac_delim |
12517 |
|
|
LDFLAGS!$LDFLAGS$ac_delim |
12518 |
|
|
CPPFLAGS!$CPPFLAGS$ac_delim |
12519 |
|
|
ac_ct_CC!$ac_ct_CC$ac_delim |
12520 |
|
|
EXEEXT!$EXEEXT$ac_delim |
12521 |
|
|
OBJEXT!$OBJEXT$ac_delim |
12522 |
|
|
CXX!$CXX$ac_delim |
12523 |
|
|
CXXFLAGS!$CXXFLAGS$ac_delim |
12524 |
|
|
ac_ct_CXX!$ac_ct_CXX$ac_delim |
12525 |
|
|
CPP!$CPP$ac_delim |
12526 |
|
|
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
12527 |
|
|
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12528 |
|
|
INSTALL_DATA!$INSTALL_DATA$ac_delim |
12529 |
|
|
GREP!$GREP$ac_delim |
12530 |
|
|
EGREP!$EGREP$ac_delim |
12531 |
|
|
LINKER!$LINKER$ac_delim |
12532 |
|
|
RXVTNAME!$RXVTNAME$ac_delim |
12533 |
root |
1.116 |
CXXCPP!$CXXCPP$ac_delim |
12534 |
ayin |
1.108 |
TIC!$TIC$ac_delim |
12535 |
|
|
XMKMF!$XMKMF$ac_delim |
12536 |
|
|
X_CFLAGS!$X_CFLAGS$ac_delim |
12537 |
|
|
X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12538 |
|
|
X_LIBS!$X_LIBS$ac_delim |
12539 |
|
|
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12540 |
|
|
afterimage_config!$afterimage_config$ac_delim |
12541 |
|
|
PKG_CONFIG!$PKG_CONFIG$ac_delim |
12542 |
|
|
XFT_CONFIG!$XFT_CONFIG$ac_delim |
12543 |
|
|
PERL!$PERL$ac_delim |
12544 |
|
|
PERLLIB!$PERLLIB$ac_delim |
12545 |
|
|
PERLFLAGS!$PERLFLAGS$ac_delim |
12546 |
|
|
PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12547 |
|
|
IF_PERL!$IF_PERL$ac_delim |
12548 |
|
|
PERL_O!$PERL_O$ac_delim |
12549 |
|
|
AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12550 |
|
|
AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12551 |
|
|
LIBOBJS!$LIBOBJS$ac_delim |
12552 |
|
|
LTLIBOBJS!$LTLIBOBJS$ac_delim |
12553 |
|
|
_ACEOF |
12554 |
root |
1.105 |
|
12555 |
ayin |
1.124 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
12556 |
ayin |
1.108 |
break |
12557 |
|
|
elif $ac_last_try; then |
12558 |
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12559 |
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12560 |
|
|
{ (exit 1); exit 1; }; } |
12561 |
|
|
else |
12562 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
12563 |
root |
1.105 |
fi |
12564 |
ayin |
1.108 |
done |
12565 |
|
|
|
12566 |
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12567 |
|
|
if test -n "$ac_eof"; then |
12568 |
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
12569 |
|
|
ac_eof=`expr $ac_eof + 1` |
12570 |
|
|
fi |
12571 |
ayin |
1.104 |
|
12572 |
ayin |
1.108 |
cat >>$CONFIG_STATUS <<_ACEOF |
12573 |
ayin |
1.122 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12574 |
ayin |
1.108 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12575 |
root |
1.105 |
_ACEOF |
12576 |
ayin |
1.108 |
sed ' |
12577 |
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12578 |
|
|
s/^/s,@/; s/!/@,|#_!!_#|/ |
12579 |
|
|
:n |
12580 |
|
|
t n |
12581 |
|
|
s/'"$ac_delim"'$/,g/; t |
12582 |
|
|
s/$/\\/; p |
12583 |
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
12584 |
|
|
' >>$CONFIG_STATUS <conf$$subs.sed |
12585 |
|
|
rm -f conf$$subs.sed |
12586 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
12587 |
|
|
:end |
12588 |
|
|
s/|#_!!_#|//g |
12589 |
|
|
CEOF$ac_eof |
12590 |
|
|
_ACEOF |
12591 |
|
|
|
12592 |
|
|
|
12593 |
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
12594 |
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
12595 |
|
|
# trailing colons and then remove the whole line if VPATH becomes empty |
12596 |
|
|
# (actually we leave an empty line to preserve line numbers). |
12597 |
|
|
if test "x$srcdir" = x.; then |
12598 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12599 |
|
|
s/:*\$(srcdir):*/:/ |
12600 |
|
|
s/:*\${srcdir}:*/:/ |
12601 |
|
|
s/:*@srcdir@:*/:/ |
12602 |
|
|
s/^\([^=]*=[ ]*\):*/\1/ |
12603 |
|
|
s/:*$// |
12604 |
|
|
s/^[^=]*=[ ]*$// |
12605 |
|
|
}' |
12606 |
|
|
fi |
12607 |
|
|
|
12608 |
pcg |
1.11 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12609 |
ayin |
1.108 |
fi # test -n "$CONFIG_FILES" |
12610 |
|
|
|
12611 |
|
|
|
12612 |
|
|
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
12613 |
|
|
do |
12614 |
|
|
case $ac_tag in |
12615 |
|
|
:[FHLC]) ac_mode=$ac_tag; continue;; |
12616 |
|
|
esac |
12617 |
|
|
case $ac_mode$ac_tag in |
12618 |
|
|
:[FHL]*:*);; |
12619 |
|
|
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12620 |
|
|
echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
12621 |
|
|
{ (exit 1); exit 1; }; };; |
12622 |
|
|
:[FH]-) ac_tag=-:-;; |
12623 |
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
12624 |
|
|
esac |
12625 |
|
|
ac_save_IFS=$IFS |
12626 |
|
|
IFS=: |
12627 |
|
|
set x $ac_tag |
12628 |
|
|
IFS=$ac_save_IFS |
12629 |
|
|
shift |
12630 |
|
|
ac_file=$1 |
12631 |
|
|
shift |
12632 |
|
|
|
12633 |
|
|
case $ac_mode in |
12634 |
|
|
:L) ac_source=$1;; |
12635 |
|
|
:[FH]) |
12636 |
|
|
ac_file_inputs= |
12637 |
|
|
for ac_f |
12638 |
|
|
do |
12639 |
|
|
case $ac_f in |
12640 |
|
|
-) ac_f="$tmp/stdin";; |
12641 |
|
|
*) # Look for the file first in the build tree, then in the source tree |
12642 |
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style, |
12643 |
|
|
# because $ac_f cannot contain `:'. |
12644 |
|
|
test -f "$ac_f" || |
12645 |
|
|
case $ac_f in |
12646 |
|
|
[\\/$]*) false;; |
12647 |
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
12648 |
|
|
esac || |
12649 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12650 |
|
|
echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
12651 |
|
|
{ (exit 1); exit 1; }; };; |
12652 |
|
|
esac |
12653 |
|
|
ac_file_inputs="$ac_file_inputs $ac_f" |
12654 |
|
|
done |
12655 |
|
|
|
12656 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
12657 |
|
|
# use $as_me), people would be surprised to read: |
12658 |
|
|
# /* config.h. Generated by config.status. */ |
12659 |
|
|
configure_input="Generated from "`IFS=: |
12660 |
|
|
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
12661 |
|
|
if test x"$ac_file" != x-; then |
12662 |
|
|
configure_input="$ac_file. $configure_input" |
12663 |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
12664 |
|
|
echo "$as_me: creating $ac_file" >&6;} |
12665 |
|
|
fi |
12666 |
|
|
|
12667 |
|
|
case $ac_tag in |
12668 |
|
|
*:-:* | *:-) cat >"$tmp/stdin";; |
12669 |
|
|
esac |
12670 |
|
|
;; |
12671 |
ayin |
1.102 |
esac |
12672 |
|
|
|
12673 |
ayin |
1.108 |
ac_dir=`$as_dirname -- "$ac_file" || |
12674 |
pcg |
1.11 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12675 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
12676 |
|
|
X"$ac_file" : 'X\(//\)$' \| \ |
12677 |
ayin |
1.108 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
12678 |
pcg |
1.11 |
echo X"$ac_file" | |
12679 |
ayin |
1.108 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12680 |
|
|
s//\1/ |
12681 |
|
|
q |
12682 |
|
|
} |
12683 |
|
|
/^X\(\/\/\)[^/].*/{ |
12684 |
|
|
s//\1/ |
12685 |
|
|
q |
12686 |
|
|
} |
12687 |
|
|
/^X\(\/\/\)$/{ |
12688 |
|
|
s//\1/ |
12689 |
|
|
q |
12690 |
|
|
} |
12691 |
|
|
/^X\(\/\).*/{ |
12692 |
|
|
s//\1/ |
12693 |
|
|
q |
12694 |
|
|
} |
12695 |
|
|
s/.*/./; q'` |
12696 |
|
|
{ as_dir="$ac_dir" |
12697 |
|
|
case $as_dir in #( |
12698 |
|
|
-*) as_dir=./$as_dir;; |
12699 |
|
|
esac |
12700 |
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
12701 |
pcg |
1.11 |
as_dirs= |
12702 |
ayin |
1.108 |
while :; do |
12703 |
|
|
case $as_dir in #( |
12704 |
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
12705 |
|
|
*) as_qdir=$as_dir;; |
12706 |
|
|
esac |
12707 |
|
|
as_dirs="'$as_qdir' $as_dirs" |
12708 |
|
|
as_dir=`$as_dirname -- "$as_dir" || |
12709 |
pcg |
1.11 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12710 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
12711 |
|
|
X"$as_dir" : 'X\(//\)$' \| \ |
12712 |
ayin |
1.108 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
12713 |
pcg |
1.11 |
echo X"$as_dir" | |
12714 |
ayin |
1.108 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12715 |
|
|
s//\1/ |
12716 |
|
|
q |
12717 |
|
|
} |
12718 |
|
|
/^X\(\/\/\)[^/].*/{ |
12719 |
|
|
s//\1/ |
12720 |
|
|
q |
12721 |
|
|
} |
12722 |
|
|
/^X\(\/\/\)$/{ |
12723 |
|
|
s//\1/ |
12724 |
|
|
q |
12725 |
|
|
} |
12726 |
|
|
/^X\(\/\).*/{ |
12727 |
|
|
s//\1/ |
12728 |
|
|
q |
12729 |
|
|
} |
12730 |
|
|
s/.*/./; q'` |
12731 |
|
|
test -d "$as_dir" && break |
12732 |
pcg |
1.11 |
done |
12733 |
ayin |
1.108 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
12734 |
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12735 |
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
12736 |
pcg |
1.11 |
{ (exit 1); exit 1; }; }; } |
12737 |
|
|
ac_builddir=. |
12738 |
|
|
|
12739 |
ayin |
1.108 |
case "$ac_dir" in |
12740 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
12741 |
|
|
*) |
12742 |
pcg |
1.11 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
12743 |
ayin |
1.108 |
# A ".." for each directory in $ac_dir_suffix. |
12744 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
12745 |
|
|
case $ac_top_builddir_sub in |
12746 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
12747 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
12748 |
|
|
esac ;; |
12749 |
|
|
esac |
12750 |
|
|
ac_abs_top_builddir=$ac_pwd |
12751 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
12752 |
|
|
# for backward compatibility: |
12753 |
|
|
ac_top_builddir=$ac_top_build_prefix |
12754 |
pcg |
1.11 |
|
12755 |
|
|
case $srcdir in |
12756 |
ayin |
1.108 |
.) # We are building in place. |
12757 |
pcg |
1.11 |
ac_srcdir=. |
12758 |
ayin |
1.108 |
ac_top_srcdir=$ac_top_builddir_sub |
12759 |
|
|
ac_abs_top_srcdir=$ac_pwd ;; |
12760 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name. |
12761 |
pcg |
1.11 |
ac_srcdir=$srcdir$ac_dir_suffix; |
12762 |
ayin |
1.108 |
ac_top_srcdir=$srcdir |
12763 |
|
|
ac_abs_top_srcdir=$srcdir ;; |
12764 |
|
|
*) # Relative name. |
12765 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
12766 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir |
12767 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
12768 |
pcg |
1.11 |
esac |
12769 |
ayin |
1.108 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
12770 |
pcg |
1.11 |
|
12771 |
|
|
|
12772 |
ayin |
1.108 |
case $ac_mode in |
12773 |
|
|
:F) |
12774 |
|
|
# |
12775 |
|
|
# CONFIG_FILE |
12776 |
|
|
# |
12777 |
pcg |
1.1 |
|
12778 |
pcg |
1.11 |
case $INSTALL in |
12779 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
12780 |
ayin |
1.108 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
12781 |
pcg |
1.1 |
esac |
12782 |
ayin |
1.108 |
_ACEOF |
12783 |
pcg |
1.1 |
|
12784 |
ayin |
1.108 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12785 |
|
|
# If the template does not know about datarootdir, expand it. |
12786 |
|
|
# FIXME: This hack should be removed a few years after 2.60. |
12787 |
|
|
ac_datarootdir_hack=; ac_datarootdir_seen= |
12788 |
|
|
|
12789 |
|
|
case `sed -n '/datarootdir/ { |
12790 |
|
|
p |
12791 |
|
|
q |
12792 |
|
|
} |
12793 |
|
|
/@datadir@/p |
12794 |
|
|
/@docdir@/p |
12795 |
|
|
/@infodir@/p |
12796 |
|
|
/@localedir@/p |
12797 |
|
|
/@mandir@/p |
12798 |
|
|
' $ac_file_inputs` in |
12799 |
|
|
*datarootdir*) ac_datarootdir_seen=yes;; |
12800 |
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
12801 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12802 |
|
|
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
12803 |
|
|
_ACEOF |
12804 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
12805 |
|
|
ac_datarootdir_hack=' |
12806 |
|
|
s&@datadir@&$datadir&g |
12807 |
|
|
s&@docdir@&$docdir&g |
12808 |
|
|
s&@infodir@&$infodir&g |
12809 |
|
|
s&@localedir@&$localedir&g |
12810 |
|
|
s&@mandir@&$mandir&g |
12811 |
|
|
s&\\\${datarootdir}&$datarootdir&g' ;; |
12812 |
|
|
esac |
12813 |
root |
1.105 |
_ACEOF |
12814 |
ayin |
1.108 |
|
12815 |
|
|
# Neutralize VPATH when `$srcdir' = `.'. |
12816 |
|
|
# Shell code in configure.ac might set extrasub. |
12817 |
|
|
# FIXME: do we really want to maintain this feature? |
12818 |
root |
1.105 |
cat >>$CONFIG_STATUS <<_ACEOF |
12819 |
pcg |
1.11 |
sed "$ac_vpsub |
12820 |
|
|
$extrasub |
12821 |
|
|
_ACEOF |
12822 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
12823 |
|
|
:t |
12824 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
12825 |
ayin |
1.108 |
s&@configure_input@&$configure_input&;t t |
12826 |
|
|
s&@top_builddir@&$ac_top_builddir_sub&;t t |
12827 |
|
|
s&@srcdir@&$ac_srcdir&;t t |
12828 |
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
12829 |
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t |
12830 |
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
12831 |
|
|
s&@builddir@&$ac_builddir&;t t |
12832 |
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t |
12833 |
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12834 |
|
|
s&@INSTALL@&$ac_INSTALL&;t t |
12835 |
|
|
$ac_datarootdir_hack |
12836 |
ayin |
1.122 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
12837 |
ayin |
1.108 |
|
12838 |
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12839 |
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12840 |
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12841 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12842 |
|
|
which seems to be undefined. Please make sure it is defined." >&5 |
12843 |
|
|
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12844 |
|
|
which seems to be undefined. Please make sure it is defined." >&2;} |
12845 |
ayin |
1.106 |
|
12846 |
ayin |
1.108 |
rm -f "$tmp/stdin" |
12847 |
pcg |
1.11 |
case $ac_file in |
12848 |
ayin |
1.108 |
-) cat "$tmp/out"; rm -f "$tmp/out";; |
12849 |
|
|
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
12850 |
pcg |
1.1 |
esac |
12851 |
ayin |
1.108 |
;; |
12852 |
|
|
:H) |
12853 |
|
|
# |
12854 |
|
|
# CONFIG_HEADER |
12855 |
|
|
# |
12856 |
|
|
_ACEOF |
12857 |
|
|
|
12858 |
|
|
# Transform confdefs.h into a sed script `conftest.defines', that |
12859 |
|
|
# substitutes the proper values into config.h.in to produce config.h. |
12860 |
|
|
rm -f conftest.defines conftest.tail |
12861 |
|
|
# First, append a space to every undef/define line, to ease matching. |
12862 |
|
|
echo 's/$/ /' >conftest.defines |
12863 |
|
|
# Then, protect against being on the right side of a sed subst, or in |
12864 |
|
|
# an unquoted here document, in config.status. If some macros were |
12865 |
|
|
# called several times there might be several #defines for the same |
12866 |
|
|
# symbol, which is useless. But do not sort them, since the last |
12867 |
|
|
# AC_DEFINE must be honored. |
12868 |
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
12869 |
|
|
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
12870 |
|
|
# NAME is the cpp macro being defined, VALUE is the value it is being given. |
12871 |
|
|
# PARAMS is the parameter list in the macro definition--in most cases, it's |
12872 |
|
|
# just an empty string. |
12873 |
|
|
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
12874 |
|
|
ac_dB='\\)[ (].*,\\1define\\2' |
12875 |
|
|
ac_dC=' ' |
12876 |
|
|
ac_dD=' ,' |
12877 |
pcg |
1.1 |
|
12878 |
ayin |
1.108 |
uniq confdefs.h | |
12879 |
|
|
sed -n ' |
12880 |
|
|
t rset |
12881 |
|
|
:rset |
12882 |
|
|
s/^[ ]*#[ ]*define[ ][ ]*// |
12883 |
|
|
t ok |
12884 |
|
|
d |
12885 |
|
|
:ok |
12886 |
|
|
s/[\\&,]/\\&/g |
12887 |
|
|
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
12888 |
|
|
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
12889 |
|
|
' >>conftest.defines |
12890 |
ayin |
1.104 |
|
12891 |
ayin |
1.108 |
# Remove the space that was appended to ease matching. |
12892 |
|
|
# Then replace #undef with comments. This is necessary, for |
12893 |
pcg |
1.1 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
12894 |
|
|
# on some systems where configure will not decide to define it. |
12895 |
ayin |
1.108 |
# (The regexp can be short, since the line contains either #define or #undef.) |
12896 |
|
|
echo 's/ $// |
12897 |
|
|
s,^[ #]*u.*,/* & */,' >>conftest.defines |
12898 |
|
|
|
12899 |
|
|
# Break up conftest.defines: |
12900 |
|
|
ac_max_sed_lines=50 |
12901 |
|
|
|
12902 |
|
|
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
12903 |
|
|
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
12904 |
|
|
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
12905 |
|
|
# et cetera. |
12906 |
|
|
ac_in='$ac_file_inputs' |
12907 |
|
|
ac_out='"$tmp/out1"' |
12908 |
|
|
ac_nxt='"$tmp/out2"' |
12909 |
|
|
|
12910 |
|
|
while : |
12911 |
|
|
do |
12912 |
|
|
# Write a here document: |
12913 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
12914 |
|
|
# First, check the format of the line: |
12915 |
|
|
cat >"\$tmp/defines.sed" <<\\CEOF |
12916 |
|
|
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
12917 |
|
|
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
12918 |
|
|
b |
12919 |
|
|
:def |
12920 |
pcg |
1.11 |
_ACEOF |
12921 |
ayin |
1.108 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
12922 |
pcg |
1.11 |
echo 'CEOF |
12923 |
ayin |
1.108 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
12924 |
|
|
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
12925 |
|
|
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
12926 |
|
|
grep . conftest.tail >/dev/null || break |
12927 |
pcg |
1.11 |
rm -f conftest.defines |
12928 |
|
|
mv conftest.tail conftest.defines |
12929 |
|
|
done |
12930 |
ayin |
1.108 |
rm -f conftest.defines conftest.tail |
12931 |
pcg |
1.11 |
|
12932 |
ayin |
1.108 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS |
12933 |
pcg |
1.11 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12934 |
|
|
if test x"$ac_file" != x-; then |
12935 |
ayin |
1.108 |
echo "/* $configure_input */" >"$tmp/config.h" |
12936 |
|
|
cat "$ac_result" >>"$tmp/config.h" |
12937 |
|
|
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
12938 |
pcg |
1.11 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12939 |
|
|
echo "$as_me: $ac_file is unchanged" >&6;} |
12940 |
|
|
else |
12941 |
|
|
rm -f $ac_file |
12942 |
ayin |
1.108 |
mv "$tmp/config.h" $ac_file |
12943 |
pcg |
1.1 |
fi |
12944 |
pcg |
1.11 |
else |
12945 |
ayin |
1.108 |
echo "/* $configure_input */" |
12946 |
|
|
cat "$ac_result" |
12947 |
pcg |
1.1 |
fi |
12948 |
ayin |
1.108 |
rm -f "$tmp/out12" |
12949 |
|
|
;; |
12950 |
|
|
|
12951 |
|
|
|
12952 |
|
|
esac |
12953 |
|
|
|
12954 |
|
|
done # for ac_tag |
12955 |
pcg |
1.11 |
|
12956 |
pcg |
1.1 |
|
12957 |
pcg |
1.11 |
{ (exit 0); exit 0; } |
12958 |
|
|
_ACEOF |
12959 |
|
|
chmod +x $CONFIG_STATUS |
12960 |
|
|
ac_clean_files=$ac_clean_files_save |
12961 |
pcg |
1.1 |
|
12962 |
|
|
|
12963 |
pcg |
1.11 |
# configure is writing to config.log, and then calls config.status. |
12964 |
|
|
# config.status does its own redirection, appending to config.log. |
12965 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open |
12966 |
|
|
# by configure, so config.status won't be able to write to it; its |
12967 |
|
|
# output is simply discarded. So we exec the FD to /dev/null, |
12968 |
|
|
# effectively closing config.log, so it can be properly (re)opened and |
12969 |
|
|
# appended to by config.status. When coming back to configure, we |
12970 |
|
|
# need to make the FD available again. |
12971 |
|
|
if test "$no_create" != yes; then |
12972 |
|
|
ac_cs_success=: |
12973 |
|
|
ac_config_status_args= |
12974 |
|
|
test "$silent" = yes && |
12975 |
|
|
ac_config_status_args="$ac_config_status_args --quiet" |
12976 |
|
|
exec 5>/dev/null |
12977 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
12978 |
|
|
exec 5>>config.log |
12979 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
12980 |
|
|
# would make configure fail if this is the last instruction. |
12981 |
|
|
$ac_cs_success || { (exit 1); exit 1; } |
12982 |
|
|
fi |
12983 |
pcg |
1.1 |
|
12984 |
|
|
|
12985 |
|
|
echo "Configuration: |
12986 |
|
|
|
12987 |
|
|
Rxvt version: $VERSION : $DATE |
12988 |
|
|
Source code location: $srcdir |
12989 |
|
|
Install path: ${prefix}/bin |
12990 |
pcg |
1.13 |
Compiler: $CXX |
12991 |
root |
1.100 |
Compiler flags: $CXXFLAGS |
12992 |
pcg |
1.13 |
Linker: $LINKER" |
12993 |
pcg |
1.1 |
|
12994 |
|
|
if test x$term != x; then |
12995 |
pcg |
1.18 |
echo " set TERM to: $term" |
12996 |
pcg |
1.1 |
fi |
12997 |
|
|
if test x$terminfo != x; then |
12998 |
pcg |
1.18 |
echo " set TERMINFO to: $terminfo" |
12999 |
|
|
fi |
13000 |
|
|
echo " default resource name: $RESNAME" |
13001 |
|
|
echo " resource class: $RESCLASS" |
13002 |
|
|
if test x$RESFALLBACK != x; then |
13003 |
|
|
echo " resource class fallback: $RESFALLBACK" |
13004 |
pcg |
1.1 |
fi |
13005 |
pcg |
1.18 |
echo |
13006 |
root |
1.89 |
echo " embedded perl: $support_perl" |
13007 |
root |
1.109 |
echo " libafterimage: $support_afterimage" |
13008 |
root |
1.89 |
echo |
13009 |
pcg |
1.1 |
if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13010 |
|
|
echo ".----------------------------------------------------------------." |
13011 |
|
|
echo ". WARNING: --enable-xim was specified however the locale support ." |
13012 |
|
|
echo ". functions could not be found. ." |
13013 |
|
|
echo ". XIM is now being DISABLED! ." |
13014 |
|
|
echo ".----------------------------------------------------------------." |
13015 |
|
|
fi |
13016 |
pcg |
1.20 |
|
13017 |
root |
1.96 |
echo "*** Optionally check src/feature.h for further, rarely used options ***" |
13018 |
pcg |
1.20 |
echo |
13019 |
|
|
|