configure revision 1.2 1 1.1 christos #! /bin/sh
2 1.1 christos # Guess values for system-dependent variables and create Makefiles.
3 1.1 christos # Generated by GNU Autoconf 2.59b.
4 1.1 christos #
5 1.1 christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 1.1 christos # 2003, 2004 Free Software Foundation, Inc.
7 1.1 christos # This configure script is free software; the Free Software Foundation
8 1.1 christos # gives unlimited permission to copy, distribute and modify it.
9 1.1 christos ## --------------------- ##
10 1.1 christos ## M4sh Initialization. ##
11 1.1 christos ## --------------------- ##
12 1.1 christos
13 1.1 christos # Be Bourne compatible
14 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 1.1 christos emulate sh
16 1.1 christos NULLCMD=:
17 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 1.1 christos # is contrary to our usage. Disable this feature.
19 1.1 christos alias -g '${1+"$@"}'='"$@"'
20 1.1 christos setopt NO_GLOB_SUBST
21 1.1 christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 1.1 christos set -o posix
23 1.1 christos fi
24 1.1 christos BIN_SH=xpg4; export BIN_SH # for Tru64
25 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
26 1.1 christos
27 1.1 christos
28 1.1 christos # PATH needs CR
29 1.1 christos # Avoid depending upon Character Ranges.
30 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 1.1 christos as_cr_digits='0123456789'
34 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
35 1.1 christos
36 1.1 christos # The user is always right.
37 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
38 1.1 christos echo "#! /bin/sh" >conf$$.sh
39 1.1 christos echo "exit 0" >>conf$$.sh
40 1.1 christos chmod +x conf$$.sh
41 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 1.1 christos PATH_SEPARATOR=';'
43 1.1 christos else
44 1.1 christos PATH_SEPARATOR=:
45 1.1 christos fi
46 1.1 christos rm -f conf$$.sh
47 1.1 christos fi
48 1.1 christos
49 1.1 christos # Support unset when possible.
50 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 1.1 christos as_unset=unset
52 1.1 christos else
53 1.1 christos as_unset=false
54 1.1 christos fi
55 1.1 christos
56 1.1 christos
57 1.1 christos # Find who we are. Look in the path if we contain no path at all
58 1.1 christos # relative or not.
59 1.1 christos case $0 in
60 1.1 christos *[\\/]* ) as_myself=$0 ;;
61 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 1.1 christos for as_dir in $PATH
63 1.1 christos do
64 1.1 christos IFS=$as_save_IFS
65 1.1 christos test -z "$as_dir" && as_dir=.
66 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
67 1.1 christos done
68 1.1 christos
69 1.1 christos ;;
70 1.1 christos esac
71 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
72 1.1 christos # in which case we are not to be found in the path.
73 1.1 christos if test "x$as_myself" = x; then
74 1.1 christos as_myself=$0
75 1.1 christos fi
76 1.1 christos if test ! -f "$as_myself"; then
77 1.1 christos { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 1.1 christos { (exit 1); exit 1; }; }
79 1.1 christos fi
80 1.1 christos
81 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
82 1.1 christos for as_var in ENV MAIL MAILPATH
83 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
84 1.1 christos done
85 1.1 christos PS1='$ '
86 1.1 christos PS2='> '
87 1.1 christos PS4='+ '
88 1.1 christos
89 1.1 christos # NLS nuisances.
90 1.1 christos for as_var in \
91 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
93 1.1 christos LC_TELEPHONE LC_TIME
94 1.1 christos do
95 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 1.1 christos eval $as_var=C; export $as_var
97 1.1 christos else
98 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 1.1 christos fi
100 1.1 christos done
101 1.1 christos
102 1.1 christos # Required to use basename.
103 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
104 1.1 christos as_expr=expr
105 1.1 christos else
106 1.1 christos as_expr=false
107 1.1 christos fi
108 1.1 christos
109 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
110 1.1 christos as_basename=basename
111 1.1 christos else
112 1.1 christos as_basename=false
113 1.1 christos fi
114 1.1 christos
115 1.1 christos
116 1.1 christos # Name of the executable.
117 1.1 christos as_me=`$as_basename "$0" ||
118 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 1.1 christos X"$0" : 'X\(//\)$' \| \
120 1.1 christos X"$0" : 'X\(/\)$' \| \
121 1.1 christos . : '\(.\)' 2>/dev/null ||
122 1.1 christos echo X/"$0" |
123 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; }
125 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; }
126 1.1 christos s/.*/./; q'`
127 1.1 christos
128 1.1 christos
129 1.1 christos
130 1.1 christos if test "x$CONFIG_SHELL" = x; then
131 1.1 christos if (eval ":") 2>/dev/null; then
132 1.1 christos as_have_required=yes
133 1.1 christos else
134 1.1 christos as_have_required=no
135 1.1 christos fi
136 1.1 christos
137 1.1 christos if test $as_have_required = yes && (eval ":
138 1.1 christos (func_return () {
139 1.1 christos (exit \$1)
140 1.1 christos }
141 1.1 christos func_success () {
142 1.1 christos func_return 0
143 1.1 christos }
144 1.1 christos func_failure () {
145 1.1 christos func_return 1
146 1.1 christos }
147 1.1 christos func_ret_success () {
148 1.1 christos return 0
149 1.1 christos }
150 1.1 christos func_ret_failure () {
151 1.1 christos return 1
152 1.1 christos }
153 1.1 christos
154 1.1 christos exitcode=0
155 1.1 christos if func_success; then
156 1.1 christos :
157 1.1 christos else
158 1.1 christos exitcode=1
159 1.1 christos echo func_failure succeeded.
160 1.1 christos fi
161 1.1 christos
162 1.1 christos if func_failure; then
163 1.1 christos exitcode=1
164 1.1 christos echo func_success failed.
165 1.1 christos fi
166 1.1 christos
167 1.1 christos if func_ret_success; then
168 1.1 christos :
169 1.1 christos else
170 1.1 christos exitcode=1
171 1.1 christos echo func_ret_success failed.
172 1.1 christos fi
173 1.1 christos
174 1.1 christos if func_ret_failure; then
175 1.1 christos exitcode=1
176 1.1 christos echo func_ret_failure succeeded.
177 1.1 christos fi
178 1.1 christos
179 1.1 christos test \$exitcode = 0) || { (exit 1); exit 1; }
180 1.1 christos
181 1.1 christos (
182 1.1 christos as_lineno_1=\$LINENO
183 1.1 christos as_lineno_2=\$LINENO
184 1.1 christos as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 1.1 christos test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 1.1 christos test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 1.1 christos ") 2> /dev/null; then
188 1.1 christos :
189 1.1 christos else
190 1.1 christos as_candidate_shells=
191 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 1.1 christos do
194 1.1 christos IFS=$as_save_IFS
195 1.1 christos test -z "$as_dir" && as_dir=.
196 1.1 christos case $as_dir in
197 1.1 christos /*)
198 1.1 christos for as_base in sh bash ksh sh5; do
199 1.1 christos as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
200 1.1 christos done
201 1.1 christos esac
202 1.1 christos done
203 1.1 christos
204 1.1 christos
205 1.1 christos for as_shell in $as_candidate_shells $SHELL; do
206 1.1 christos if { $as_shell 2> /dev/null <<\_ASEOF
207 1.1 christos # Be Bourne compatible
208 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
209 1.1 christos emulate sh
210 1.1 christos NULLCMD=:
211 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 1.1 christos # is contrary to our usage. Disable this feature.
213 1.1 christos alias -g '${1+"$@"}'='"$@"'
214 1.1 christos setopt NO_GLOB_SUBST
215 1.1 christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
216 1.1 christos set -o posix
217 1.1 christos fi
218 1.1 christos BIN_SH=xpg4; export BIN_SH # for Tru64
219 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
220 1.1 christos
221 1.1 christos :
222 1.1 christos _ASEOF
223 1.1 christos }; then
224 1.1 christos CONFIG_SHELL=$as_shell
225 1.1 christos as_have_required=yes
226 1.1 christos if { $as_shell 2> /dev/null <<\_ASEOF
227 1.1 christos # Be Bourne compatible
228 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
229 1.1 christos emulate sh
230 1.1 christos NULLCMD=:
231 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 1.1 christos # is contrary to our usage. Disable this feature.
233 1.1 christos alias -g '${1+"$@"}'='"$@"'
234 1.1 christos setopt NO_GLOB_SUBST
235 1.1 christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
236 1.1 christos set -o posix
237 1.1 christos fi
238 1.1 christos BIN_SH=xpg4; export BIN_SH # for Tru64
239 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
240 1.1 christos
241 1.1 christos :
242 1.1 christos (func_return () {
243 1.1 christos (exit $1)
244 1.1 christos }
245 1.1 christos func_success () {
246 1.1 christos func_return 0
247 1.1 christos }
248 1.1 christos func_failure () {
249 1.1 christos func_return 1
250 1.1 christos }
251 1.1 christos func_ret_success () {
252 1.1 christos return 0
253 1.1 christos }
254 1.1 christos func_ret_failure () {
255 1.1 christos return 1
256 1.1 christos }
257 1.1 christos
258 1.1 christos exitcode=0
259 1.1 christos if func_success; then
260 1.1 christos :
261 1.1 christos else
262 1.1 christos exitcode=1
263 1.1 christos echo func_failure succeeded.
264 1.1 christos fi
265 1.1 christos
266 1.1 christos if func_failure; then
267 1.1 christos exitcode=1
268 1.1 christos echo func_success failed.
269 1.1 christos fi
270 1.1 christos
271 1.1 christos if func_ret_success; then
272 1.1 christos :
273 1.1 christos else
274 1.1 christos exitcode=1
275 1.1 christos echo func_ret_success failed.
276 1.1 christos fi
277 1.1 christos
278 1.1 christos if func_ret_failure; then
279 1.1 christos exitcode=1
280 1.1 christos echo func_ret_failure succeeded.
281 1.1 christos fi
282 1.1 christos
283 1.1 christos test $exitcode = 0) || { (exit 1); exit 1; }
284 1.1 christos
285 1.1 christos (
286 1.1 christos as_lineno_1=$LINENO
287 1.1 christos as_lineno_2=$LINENO
288 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
290 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
291 1.1 christos
292 1.1 christos _ASEOF
293 1.1 christos }; then
294 1.1 christos break
295 1.1 christos fi
296 1.1 christos
297 1.1 christos fi
298 1.1 christos
299 1.1 christos done
300 1.1 christos
301 1.1 christos if test "x$CONFIG_SHELL" != x; then
302 1.1 christos for as_var in BASH_ENV ENV
303 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
304 1.1 christos done
305 1.1 christos export CONFIG_SHELL
306 1.1 christos exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
307 1.1 christos fi
308 1.1 christos
309 1.1 christos
310 1.1 christos if test $as_have_required = no; then
311 1.1 christos echo This script requires a shell more modern than all the
312 1.1 christos echo shells that I found on your system. Please install a
313 1.1 christos echo modern shell, or manually run the script under such a
314 1.1 christos echo shell if you do have one.
315 1.1 christos { (exit 1); exit 1; }
316 1.1 christos fi
317 1.1 christos
318 1.1 christos
319 1.1 christos fi
320 1.1 christos
321 1.1 christos fi
322 1.1 christos
323 1.1 christos
324 1.1 christos
325 1.1 christos (eval "func_return () {
326 1.1 christos (exit \$1)
327 1.1 christos }
328 1.1 christos func_success () {
329 1.1 christos func_return 0
330 1.1 christos }
331 1.1 christos func_failure () {
332 1.1 christos func_return 1
333 1.1 christos }
334 1.1 christos func_ret_success () {
335 1.1 christos return 0
336 1.1 christos }
337 1.1 christos func_ret_failure () {
338 1.1 christos return 1
339 1.1 christos }
340 1.1 christos
341 1.1 christos exitcode=0
342 1.1 christos if func_success; then
343 1.1 christos :
344 1.1 christos else
345 1.1 christos exitcode=1
346 1.1 christos echo func_failure succeeded.
347 1.1 christos fi
348 1.1 christos
349 1.1 christos if func_failure; then
350 1.1 christos exitcode=1
351 1.1 christos echo func_success failed.
352 1.1 christos fi
353 1.1 christos
354 1.1 christos if func_ret_success; then
355 1.1 christos :
356 1.1 christos else
357 1.1 christos exitcode=1
358 1.1 christos echo func_ret_success failed.
359 1.1 christos fi
360 1.1 christos
361 1.1 christos if func_ret_failure; then
362 1.1 christos exitcode=1
363 1.1 christos echo func_ret_failure succeeded.
364 1.1 christos fi
365 1.1 christos
366 1.1 christos test \$exitcode = 0") || {
367 1.1 christos echo No shell found that supports shell functions.
368 1.1 christos echo Please tell autoconf@gnu.org about your system,
369 1.1 christos echo including any error possibly output before this
370 1.1 christos echo message
371 1.1 christos }
372 1.1 christos
373 1.1 christos
374 1.1 christos
375 1.1 christos as_lineno_1=$LINENO
376 1.1 christos as_lineno_2=$LINENO
377 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
379 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || {
380 1.1 christos
381 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
383 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
384 1.1 christos # does the real work. The second script uses 'N' to pair each
385 1.1 christos # line-number line with the line containing $LINENO, and appends
386 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
387 1.1 christos # case at line end.
388 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
390 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
391 1.1 christos sed -n '
392 1.1 christos p
393 1.1 christos /[$]LINENO/=
394 1.1 christos ' <$as_myself |
395 1.1 christos sed '
396 1.1 christos s,[$]LINENO.*,&-,
397 1.1 christos t lineno
398 1.1 christos b
399 1.1 christos : lineno
400 1.1 christos N
401 1.1 christos : loop
402 1.1 christos s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
403 1.1 christos t loop
404 1.1 christos s,-\n.*,,
405 1.1 christos ' >$as_me.lineno &&
406 1.1 christos chmod +x $as_me.lineno ||
407 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 1.1 christos { (exit 1); exit 1; }; }
409 1.1 christos
410 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
411 1.1 christos # (the dirname of $[0] is not the place where we might find the
412 1.1 christos # original and so on. Autoconf is especially sensible to this).
413 1.1 christos . ./$as_me.lineno
414 1.1 christos # Exit status is that of the last command.
415 1.1 christos exit
416 1.1 christos }
417 1.1 christos
418 1.1 christos
419 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 1.1 christos *c*,-n*) ECHO_N= ECHO_C='
421 1.1 christos ' ECHO_T=' ' ;;
422 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
423 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
424 1.1 christos esac
425 1.1 christos
426 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
427 1.1 christos as_expr=expr
428 1.1 christos else
429 1.1 christos as_expr=false
430 1.1 christos fi
431 1.1 christos
432 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
433 1.1 christos echo >conf$$.file
434 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
435 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic
436 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 1.1 christos if test -f conf$$.exe; then
438 1.1 christos # Don't use ln at all; we don't have any links
439 1.1 christos as_ln_s='cp -p'
440 1.1 christos else
441 1.1 christos as_ln_s='ln -s'
442 1.1 christos fi
443 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
444 1.1 christos as_ln_s=ln
445 1.1 christos else
446 1.1 christos as_ln_s='cp -p'
447 1.1 christos fi
448 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
449 1.1 christos
450 1.1 christos if mkdir -p . 2>/dev/null; then
451 1.1 christos as_mkdir_p=:
452 1.1 christos else
453 1.1 christos test -d ./-p && rmdir ./-p
454 1.1 christos as_mkdir_p=false
455 1.1 christos fi
456 1.1 christos
457 1.1 christos as_executable_p="test -f"
458 1.1 christos
459 1.1 christos # Sed expression to map a string onto a valid CPP name.
460 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
461 1.1 christos
462 1.1 christos # Sed expression to map a string onto a valid variable name.
463 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
464 1.1 christos
465 1.1 christos
466 1.1 christos # IFS
467 1.1 christos # We need space, tab and new line, in precisely that order.
468 1.1 christos as_nl='
469 1.1 christos '
470 1.1 christos IFS=" $as_nl"
471 1.1 christos
472 1.1 christos # CDPATH.
473 1.1 christos $as_unset CDPATH
474 1.1 christos
475 1.1 christos
476 1.1 christos # Name of the host.
477 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 1.1 christos # so uname gets run too.
479 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
480 1.1 christos
481 1.1 christos exec 6>&1
482 1.1 christos
483 1.1 christos #
484 1.1 christos # Initializations.
485 1.1 christos #
486 1.1 christos ac_default_prefix=/usr/local
487 1.1 christos ac_config_libobj_dir=.
488 1.1 christos cross_compiling=no
489 1.1 christos subdirs=
490 1.1 christos MFLAGS=
491 1.1 christos MAKEFLAGS=
492 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh}
493 1.1 christos
494 1.1 christos # Maximum number of lines to put in a shell here document.
495 1.1 christos # This variable seems obsolete. It should probably be removed, and
496 1.1 christos # only ac_max_sed_lines should be used.
497 1.1 christos : ${ac_max_here_lines=38}
498 1.1 christos
499 1.1 christos # Identity of this package.
500 1.1 christos PACKAGE_NAME=
501 1.1 christos PACKAGE_TARNAME=
502 1.1 christos PACKAGE_VERSION=
503 1.1 christos PACKAGE_STRING=
504 1.1 christos PACKAGE_BUGREPORT=
505 1.1 christos
506 1.1 christos ac_unique_file="src/roff/groff/groff.cpp"
507 1.1 christos # Factoring default headers for most tests.
508 1.1 christos ac_includes_default="\
509 1.1 christos #include <stdio.h>
510 1.1 christos #if HAVE_SYS_TYPES_H
511 1.1 christos # include <sys/types.h>
512 1.1 christos #endif
513 1.1 christos #if HAVE_SYS_STAT_H
514 1.1 christos # include <sys/stat.h>
515 1.1 christos #endif
516 1.1 christos #if STDC_HEADERS
517 1.1 christos # include <stdlib.h>
518 1.1 christos # include <stddef.h>
519 1.1 christos #else
520 1.1 christos # if HAVE_STDLIB_H
521 1.1 christos # include <stdlib.h>
522 1.1 christos # endif
523 1.1 christos #endif
524 1.1 christos #if HAVE_STRING_H
525 1.1 christos # if !STDC_HEADERS && HAVE_MEMORY_H
526 1.1 christos # include <memory.h>
527 1.1 christos # endif
528 1.1 christos # include <string.h>
529 1.1 christos #endif
530 1.1 christos #if HAVE_STRINGS_H
531 1.1 christos # include <strings.h>
532 1.1 christos #endif
533 1.1 christos #if HAVE_INTTYPES_H
534 1.1 christos # include <inttypes.h>
535 1.1 christos #endif
536 1.1 christos #if HAVE_STDINT_H
537 1.1 christos # include <stdint.h>
538 1.1 christos #endif
539 1.1 christos #if HAVE_UNISTD_H
540 1.1 christos # include <unistd.h>
541 1.1 christos #endif"
542 1.1 christos
543 1.1 christos ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
544 1.1 christos ac_subst_files=''
545 1.1 christos
546 1.1 christos # Initialize some variables set by options.
547 1.1 christos ac_init_help=
548 1.1 christos ac_init_version=false
549 1.1 christos # The variables have the same names as the options, with
550 1.1 christos # dashes changed to underlines.
551 1.1 christos cache_file=/dev/null
552 1.1 christos exec_prefix=NONE
553 1.1 christos no_create=
554 1.1 christos no_recursion=
555 1.1 christos prefix=NONE
556 1.1 christos program_prefix=NONE
557 1.1 christos program_suffix=NONE
558 1.1 christos program_transform_name=s,x,x,
559 1.1 christos silent=
560 1.1 christos site=
561 1.1 christos srcdir=
562 1.1 christos verbose=
563 1.1 christos x_includes=NONE
564 1.1 christos x_libraries=NONE
565 1.1 christos
566 1.1 christos # Installation directory options.
567 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
568 1.1 christos # and all the variables that are supposed to be based on exec_prefix
569 1.1 christos # by default will actually change.
570 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
571 1.1 christos bindir='${exec_prefix}/bin'
572 1.1 christos sbindir='${exec_prefix}/sbin'
573 1.1 christos libexecdir='${exec_prefix}/libexec'
574 1.1 christos datadir='${prefix}/share'
575 1.1 christos sysconfdir='${prefix}/etc'
576 1.1 christos sharedstatedir='${prefix}/com'
577 1.1 christos localstatedir='${prefix}/var'
578 1.1 christos libdir='${exec_prefix}/lib'
579 1.1 christos includedir='${prefix}/include'
580 1.1 christos oldincludedir='/usr/include'
581 1.1 christos infodir='${prefix}/info'
582 1.1 christos mandir='${prefix}/man'
583 1.1 christos
584 1.1 christos ac_prev=
585 1.1 christos ac_dashdash=
586 1.1 christos for ac_option
587 1.1 christos do
588 1.1 christos # If the previous option needs an argument, assign it.
589 1.1 christos if test -n "$ac_prev"; then
590 1.1 christos eval "$ac_prev=\$ac_option"
591 1.1 christos ac_prev=
592 1.1 christos continue
593 1.1 christos fi
594 1.1 christos
595 1.1 christos ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
596 1.1 christos
597 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
598 1.1 christos
599 1.1 christos case $ac_dashdash$ac_option in
600 1.1 christos --)
601 1.1 christos ac_dashdash=yes ;;
602 1.1 christos
603 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
604 1.1 christos ac_prev=bindir ;;
605 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
606 1.1 christos bindir=$ac_optarg ;;
607 1.1 christos
608 1.1 christos -build | --build | --buil | --bui | --bu)
609 1.1 christos ac_prev=build_alias ;;
610 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
611 1.1 christos build_alias=$ac_optarg ;;
612 1.1 christos
613 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
614 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
615 1.1 christos ac_prev=cache_file ;;
616 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
617 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
618 1.1 christos cache_file=$ac_optarg ;;
619 1.1 christos
620 1.1 christos --config-cache | -C)
621 1.1 christos cache_file=config.cache ;;
622 1.1 christos
623 1.1 christos -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
624 1.1 christos ac_prev=datadir ;;
625 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
626 1.1 christos | --da=*)
627 1.1 christos datadir=$ac_optarg ;;
628 1.1 christos
629 1.1 christos -disable-* | --disable-*)
630 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 1.1 christos # Reject names that are not valid shell variable names.
632 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
633 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 1.1 christos { (exit 1); exit 1; }; }
635 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'`
636 1.1 christos eval "enable_$ac_feature=no" ;;
637 1.1 christos
638 1.1 christos -enable-* | --enable-*)
639 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 1.1 christos # Reject names that are not valid shell variable names.
641 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
642 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 1.1 christos { (exit 1); exit 1; }; }
644 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'`
645 1.1 christos case $ac_option in
646 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
647 1.1 christos *) ac_optarg=yes ;;
648 1.1 christos esac
649 1.1 christos eval "enable_$ac_feature='$ac_optarg'" ;;
650 1.1 christos
651 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
652 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
653 1.1 christos | --exec | --exe | --ex)
654 1.1 christos ac_prev=exec_prefix ;;
655 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
656 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
657 1.1 christos | --exec=* | --exe=* | --ex=*)
658 1.1 christos exec_prefix=$ac_optarg ;;
659 1.1 christos
660 1.1 christos -gas | --gas | --ga | --g)
661 1.1 christos # Obsolete; use --with-gas.
662 1.1 christos with_gas=yes ;;
663 1.1 christos
664 1.1 christos -help | --help | --hel | --he | -h)
665 1.1 christos ac_init_help=long ;;
666 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
667 1.1 christos ac_init_help=recursive ;;
668 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
669 1.1 christos ac_init_help=short ;;
670 1.1 christos
671 1.1 christos -host | --host | --hos | --ho)
672 1.1 christos ac_prev=host_alias ;;
673 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
674 1.1 christos host_alias=$ac_optarg ;;
675 1.1 christos
676 1.1 christos -includedir | --includedir | --includedi | --included | --include \
677 1.1 christos | --includ | --inclu | --incl | --inc)
678 1.1 christos ac_prev=includedir ;;
679 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
680 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
681 1.1 christos includedir=$ac_optarg ;;
682 1.1 christos
683 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
684 1.1 christos ac_prev=infodir ;;
685 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
686 1.1 christos infodir=$ac_optarg ;;
687 1.1 christos
688 1.1 christos -libdir | --libdir | --libdi | --libd)
689 1.1 christos ac_prev=libdir ;;
690 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
691 1.1 christos libdir=$ac_optarg ;;
692 1.1 christos
693 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
694 1.1 christos | --libexe | --libex | --libe)
695 1.1 christos ac_prev=libexecdir ;;
696 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
697 1.1 christos | --libexe=* | --libex=* | --libe=*)
698 1.1 christos libexecdir=$ac_optarg ;;
699 1.1 christos
700 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
701 1.1 christos | --localstate | --localstat | --localsta | --localst \
702 1.1 christos | --locals | --local | --loca | --loc | --lo)
703 1.1 christos ac_prev=localstatedir ;;
704 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
705 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* \
706 1.1 christos | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
707 1.1 christos localstatedir=$ac_optarg ;;
708 1.1 christos
709 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
710 1.1 christos ac_prev=mandir ;;
711 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
712 1.1 christos mandir=$ac_optarg ;;
713 1.1 christos
714 1.1 christos -nfp | --nfp | --nf)
715 1.1 christos # Obsolete; use --without-fp.
716 1.1 christos with_fp=no ;;
717 1.1 christos
718 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
719 1.1 christos | --no-cr | --no-c | -n)
720 1.1 christos no_create=yes ;;
721 1.1 christos
722 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
723 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
724 1.1 christos no_recursion=yes ;;
725 1.1 christos
726 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
727 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
728 1.1 christos | --oldin | --oldi | --old | --ol | --o)
729 1.1 christos ac_prev=oldincludedir ;;
730 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
731 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
732 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
733 1.1 christos oldincludedir=$ac_optarg ;;
734 1.1 christos
735 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
736 1.1 christos ac_prev=prefix ;;
737 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
738 1.1 christos prefix=$ac_optarg ;;
739 1.1 christos
740 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
741 1.1 christos | --program-pre | --program-pr | --program-p)
742 1.1 christos ac_prev=program_prefix ;;
743 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
744 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
745 1.1 christos program_prefix=$ac_optarg ;;
746 1.1 christos
747 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
748 1.1 christos | --program-suf | --program-su | --program-s)
749 1.1 christos ac_prev=program_suffix ;;
750 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
751 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
752 1.1 christos program_suffix=$ac_optarg ;;
753 1.1 christos
754 1.1 christos -program-transform-name | --program-transform-name \
755 1.1 christos | --program-transform-nam | --program-transform-na \
756 1.1 christos | --program-transform-n | --program-transform- \
757 1.1 christos | --program-transform | --program-transfor \
758 1.1 christos | --program-transfo | --program-transf \
759 1.1 christos | --program-trans | --program-tran \
760 1.1 christos | --progr-tra | --program-tr | --program-t)
761 1.1 christos ac_prev=program_transform_name ;;
762 1.1 christos -program-transform-name=* | --program-transform-name=* \
763 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
764 1.1 christos | --program-transform-n=* | --program-transform-=* \
765 1.1 christos | --program-transform=* | --program-transfor=* \
766 1.1 christos | --program-transfo=* | --program-transf=* \
767 1.1 christos | --program-trans=* | --program-tran=* \
768 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
769 1.1 christos program_transform_name=$ac_optarg ;;
770 1.1 christos
771 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
772 1.1 christos | -silent | --silent | --silen | --sile | --sil)
773 1.1 christos silent=yes ;;
774 1.1 christos
775 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
776 1.1 christos ac_prev=sbindir ;;
777 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
778 1.1 christos | --sbi=* | --sb=*)
779 1.1 christos sbindir=$ac_optarg ;;
780 1.1 christos
781 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
782 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
783 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
784 1.1 christos | --sha | --sh)
785 1.1 christos ac_prev=sharedstatedir ;;
786 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
787 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
788 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
789 1.1 christos | --sha=* | --sh=*)
790 1.1 christos sharedstatedir=$ac_optarg ;;
791 1.1 christos
792 1.1 christos -site | --site | --sit)
793 1.1 christos ac_prev=site ;;
794 1.1 christos -site=* | --site=* | --sit=*)
795 1.1 christos site=$ac_optarg ;;
796 1.1 christos
797 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
798 1.1 christos ac_prev=srcdir ;;
799 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
800 1.1 christos srcdir=$ac_optarg ;;
801 1.1 christos
802 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
803 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
804 1.1 christos ac_prev=sysconfdir ;;
805 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
806 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
807 1.1 christos sysconfdir=$ac_optarg ;;
808 1.1 christos
809 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
810 1.1 christos ac_prev=target_alias ;;
811 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
812 1.1 christos target_alias=$ac_optarg ;;
813 1.1 christos
814 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
815 1.1 christos verbose=yes ;;
816 1.1 christos
817 1.1 christos -version | --version | --versio | --versi | --vers | -V)
818 1.1 christos ac_init_version=: ;;
819 1.1 christos
820 1.1 christos -with-* | --with-*)
821 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 1.1 christos # Reject names that are not valid shell variable names.
823 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
824 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
825 1.1 christos { (exit 1); exit 1; }; }
826 1.1 christos ac_package=`echo $ac_package| sed 's/-/_/g'`
827 1.1 christos case $ac_option in
828 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
829 1.1 christos *) ac_optarg=yes ;;
830 1.1 christos esac
831 1.1 christos eval "with_$ac_package='$ac_optarg'" ;;
832 1.1 christos
833 1.1 christos -without-* | --without-*)
834 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 1.1 christos # Reject names that are not valid shell variable names.
836 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
838 1.1 christos { (exit 1); exit 1; }; }
839 1.1 christos ac_package=`echo $ac_package | sed 's/-/_/g'`
840 1.1 christos eval "with_$ac_package=no" ;;
841 1.1 christos
842 1.1 christos --x)
843 1.1 christos # Obsolete; use --with-x.
844 1.1 christos with_x=yes ;;
845 1.1 christos
846 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
847 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
848 1.1 christos ac_prev=x_includes ;;
849 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
850 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
851 1.1 christos x_includes=$ac_optarg ;;
852 1.1 christos
853 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
854 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
855 1.1 christos ac_prev=x_libraries ;;
856 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
857 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
858 1.1 christos x_libraries=$ac_optarg ;;
859 1.1 christos
860 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option
861 1.1 christos Try \`$0 --help' for more information." >&2
862 1.1 christos { (exit 1); exit 1; }; }
863 1.1 christos ;;
864 1.1 christos
865 1.1 christos *=*)
866 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
867 1.1 christos # Reject names that are not valid shell variable names.
868 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
869 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 1.1 christos { (exit 1); exit 1; }; }
871 1.1 christos ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 1.1 christos eval "$ac_envvar='$ac_optarg'"
873 1.1 christos export $ac_envvar ;;
874 1.1 christos
875 1.1 christos *)
876 1.1 christos # FIXME: should be removed in autoconf 3.0.
877 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
881 1.1 christos ;;
882 1.1 christos
883 1.1 christos esac
884 1.1 christos done
885 1.1 christos
886 1.1 christos if test -n "$ac_prev"; then
887 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
888 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2
889 1.1 christos { (exit 1); exit 1; }; }
890 1.1 christos fi
891 1.1 christos
892 1.1 christos # Be sure to have absolute directory names.
893 1.1 christos for ac_var in exec_prefix prefix
894 1.1 christos do
895 1.1 christos eval ac_val=$`echo $ac_var`
896 1.1 christos case $ac_val in
897 1.1 christos [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
898 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 1.1 christos { (exit 1); exit 1; }; };;
900 1.1 christos esac
901 1.1 christos done
902 1.1 christos
903 1.1 christos # Be sure to have absolute directory names.
904 1.1 christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 1.1 christos localstatedir libdir includedir oldincludedir infodir mandir
906 1.1 christos do
907 1.1 christos eval ac_val=$`echo $ac_var`
908 1.1 christos case $ac_val in
909 1.1 christos [\\/$]* | ?:[\\/]* ) ;;
910 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 1.1 christos { (exit 1); exit 1; }; };;
912 1.1 christos esac
913 1.1 christos done
914 1.1 christos
915 1.1 christos # There might be people who depend on the old broken behavior: `$host'
916 1.1 christos # used to hold the argument of --host etc.
917 1.1 christos # FIXME: To remove some day.
918 1.1 christos build=$build_alias
919 1.1 christos host=$host_alias
920 1.1 christos target=$target_alias
921 1.1 christos
922 1.1 christos # FIXME: To remove some day.
923 1.1 christos if test "x$host_alias" != x; then
924 1.1 christos if test "x$build_alias" = x; then
925 1.1 christos cross_compiling=maybe
926 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2
928 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
929 1.1 christos cross_compiling=yes
930 1.1 christos fi
931 1.1 christos fi
932 1.1 christos
933 1.1 christos ac_tool_prefix=
934 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
935 1.1 christos
936 1.1 christos test "$silent" = yes && exec 6>/dev/null
937 1.1 christos
938 1.1 christos
939 1.1 christos # Find the source files, if location was not specified.
940 1.1 christos if test -z "$srcdir"; then
941 1.1 christos ac_srcdir_defaulted=yes
942 1.1 christos # Try the directory containing this script, then its parent.
943 1.1 christos ac_confdir=`(dirname "$0") 2>/dev/null ||
944 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 1.1 christos X"$0" : 'X\(//\)[^/]' \| \
946 1.1 christos X"$0" : 'X\(//\)$' \| \
947 1.1 christos X"$0" : 'X\(/\)' \| \
948 1.1 christos . : '\(.\)' 2>/dev/null ||
949 1.1 christos echo X"$0" |
950 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
953 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
954 1.1 christos s/.*/./; q'`
955 1.1 christos srcdir=$ac_confdir
956 1.1 christos if test ! -r $srcdir/$ac_unique_file; then
957 1.1 christos srcdir=..
958 1.1 christos fi
959 1.1 christos else
960 1.1 christos ac_srcdir_defaulted=no
961 1.1 christos fi
962 1.1 christos if test ! -r $srcdir/$ac_unique_file; then
963 1.1 christos if test "$ac_srcdir_defaulted" = yes; then
964 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 1.1 christos { (exit 1); exit 1; }; }
966 1.1 christos else
967 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 1.1 christos { (exit 1); exit 1; }; }
969 1.1 christos fi
970 1.1 christos fi
971 1.1 christos (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
972 1.1 christos { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 1.1 christos { (exit 1); exit 1; }; }
974 1.1 christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 1.1 christos ac_env_build_alias_set=${build_alias+set}
976 1.1 christos ac_env_build_alias_value=$build_alias
977 1.1 christos ac_cv_env_build_alias_set=${build_alias+set}
978 1.1 christos ac_cv_env_build_alias_value=$build_alias
979 1.1 christos ac_env_host_alias_set=${host_alias+set}
980 1.1 christos ac_env_host_alias_value=$host_alias
981 1.1 christos ac_cv_env_host_alias_set=${host_alias+set}
982 1.1 christos ac_cv_env_host_alias_value=$host_alias
983 1.1 christos ac_env_target_alias_set=${target_alias+set}
984 1.1 christos ac_env_target_alias_value=$target_alias
985 1.1 christos ac_cv_env_target_alias_set=${target_alias+set}
986 1.1 christos ac_cv_env_target_alias_value=$target_alias
987 1.1 christos ac_env_CC_set=${CC+set}
988 1.1 christos ac_env_CC_value=$CC
989 1.1 christos ac_cv_env_CC_set=${CC+set}
990 1.1 christos ac_cv_env_CC_value=$CC
991 1.1 christos ac_env_CFLAGS_set=${CFLAGS+set}
992 1.1 christos ac_env_CFLAGS_value=$CFLAGS
993 1.1 christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
994 1.1 christos ac_cv_env_CFLAGS_value=$CFLAGS
995 1.1 christos ac_env_LDFLAGS_set=${LDFLAGS+set}
996 1.1 christos ac_env_LDFLAGS_value=$LDFLAGS
997 1.1 christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
998 1.1 christos ac_cv_env_LDFLAGS_value=$LDFLAGS
999 1.1 christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1000 1.1 christos ac_env_CPPFLAGS_value=$CPPFLAGS
1001 1.1 christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1002 1.1 christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1003 1.1 christos ac_env_CXX_set=${CXX+set}
1004 1.1 christos ac_env_CXX_value=$CXX
1005 1.1 christos ac_cv_env_CXX_set=${CXX+set}
1006 1.1 christos ac_cv_env_CXX_value=$CXX
1007 1.1 christos ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1008 1.1 christos ac_env_CXXFLAGS_value=$CXXFLAGS
1009 1.1 christos ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1010 1.1 christos ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1011 1.1 christos ac_env_CPP_set=${CPP+set}
1012 1.1 christos ac_env_CPP_value=$CPP
1013 1.1 christos ac_cv_env_CPP_set=${CPP+set}
1014 1.1 christos ac_cv_env_CPP_value=$CPP
1015 1.1 christos
1016 1.1 christos #
1017 1.1 christos # Report the --help message.
1018 1.1 christos #
1019 1.1 christos if test "$ac_init_help" = "long"; then
1020 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1021 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1022 1.1 christos cat <<_ACEOF
1023 1.1 christos \`configure' configures this package to adapt to many kinds of systems.
1024 1.1 christos
1025 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1026 1.1 christos
1027 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1029 1.1 christos
1030 1.1 christos Defaults for the options are specified in brackets.
1031 1.1 christos
1032 1.1 christos Configuration:
1033 1.1 christos -h, --help display this help and exit
1034 1.1 christos --help=short display options specific to this package
1035 1.1 christos --help=recursive display the short help of all the included packages
1036 1.1 christos -V, --version display version information and exit
1037 1.1 christos -q, --quiet, --silent do not print \`checking...' messages
1038 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1039 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1040 1.1 christos -n, --no-create do not create output files
1041 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1042 1.1 christos
1043 1.1 christos _ACEOF
1044 1.1 christos
1045 1.1 christos cat <<_ACEOF
1046 1.1 christos Installation directories:
1047 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1048 1.1 christos [$ac_default_prefix]
1049 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1050 1.1 christos [PREFIX]
1051 1.1 christos
1052 1.1 christos By default, \`make install' will install all the files in
1053 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 1.1 christos for instance \`--prefix=\$HOME'.
1056 1.1 christos
1057 1.1 christos For better control, use the options below.
1058 1.1 christos
1059 1.1 christos Fine tuning of the installation directories:
1060 1.1 christos --bindir=DIR user executables [EPREFIX/bin]
1061 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1063 1.1 christos --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib]
1068 1.1 christos --includedir=DIR C header files [PREFIX/include]
1069 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 1.1 christos --infodir=DIR info documentation [PREFIX/info]
1071 1.1 christos --mandir=DIR man documentation [PREFIX/man]
1072 1.1 christos _ACEOF
1073 1.1 christos
1074 1.1 christos cat <<\_ACEOF
1075 1.1 christos
1076 1.1 christos X features:
1077 1.1 christos --x-includes=DIR X include files are in DIR
1078 1.1 christos --x-libraries=DIR X library files are in DIR
1079 1.1 christos _ACEOF
1080 1.1 christos fi
1081 1.1 christos
1082 1.1 christos if test -n "$ac_init_help"; then
1083 1.1 christos
1084 1.1 christos cat <<\_ACEOF
1085 1.1 christos
1086 1.1 christos Optional Packages:
1087 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 1.1 christos --with-x use the X Window System
1090 1.1 christos --with-appresdir=DIR X11 application resource files
1091 1.1 christos --with-alt-gs=LIST alternative names for ghostscript executable
1092 1.1 christos --with-gs=PROG actual [/path/]name of ghostscript executable
1093 1.1 christos --with-alt-awk=LIST alternative names for awk executable
1094 1.1 christos --with-awk=PROG actual [/path/]name of awk executable
1095 1.1 christos
1096 1.1 christos Some influential environment variables:
1097 1.1 christos CC C compiler command
1098 1.1 christos CFLAGS C compiler flags
1099 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1100 1.1 christos nonstandard directory <lib dir>
1101 1.1 christos CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102 1.1 christos headers in a nonstandard directory <include dir>
1103 1.1 christos CXX C++ compiler command
1104 1.1 christos CXXFLAGS C++ compiler flags
1105 1.1 christos CPP C preprocessor
1106 1.1 christos
1107 1.1 christos Use these variables to override the choices made by `configure' or to help
1108 1.1 christos it to find libraries and programs with nonstandard names/locations.
1109 1.1 christos
1110 1.1 christos _ACEOF
1111 1.1 christos fi
1112 1.1 christos
1113 1.1 christos if test "$ac_init_help" = "recursive"; then
1114 1.1 christos # If there are subdirs, report their specific --help.
1115 1.1 christos ac_popdir=`pwd`
1116 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 1.1 christos test -d $ac_dir || continue
1118 1.1 christos ac_builddir=.
1119 1.1 christos
1120 1.1 christos if test "$ac_dir" != .; then
1121 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 1.1 christos # A "../" for each directory in $ac_dir_suffix.
1123 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 1.1 christos else
1125 1.1 christos ac_dir_suffix= ac_top_builddir=
1126 1.1 christos fi
1127 1.1 christos
1128 1.1 christos case $srcdir in
1129 1.1 christos .) # No --srcdir option. We are building in place.
1130 1.1 christos ac_srcdir=.
1131 1.1 christos if test -z "$ac_top_builddir"; then
1132 1.1 christos ac_top_srcdir=.
1133 1.1 christos else
1134 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135 1.1 christos fi ;;
1136 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1137 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1138 1.1 christos ac_top_srcdir=$srcdir ;;
1139 1.1 christos *) # Relative name.
1140 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 1.1 christos esac
1143 1.1 christos
1144 1.1 christos # Do not use `cd foo && pwd` to compute absolute names, because
1145 1.1 christos # the directories may not exist.
1146 1.1 christos case `pwd` in
1147 1.1 christos .) ac_abs_builddir="$ac_dir";;
1148 1.1 christos *)
1149 1.1 christos case "$ac_dir" in
1150 1.1 christos .) ac_abs_builddir=`pwd`;;
1151 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153 1.1 christos esac;;
1154 1.1 christos esac
1155 1.1 christos case $ac_abs_builddir in
1156 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 1.1 christos *)
1158 1.1 christos case ${ac_top_builddir}. in
1159 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162 1.1 christos esac;;
1163 1.1 christos esac
1164 1.1 christos case $ac_abs_builddir in
1165 1.1 christos .) ac_abs_srcdir=$ac_srcdir;;
1166 1.1 christos *)
1167 1.1 christos case $ac_srcdir in
1168 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;;
1169 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171 1.1 christos esac;;
1172 1.1 christos esac
1173 1.1 christos case $ac_abs_builddir in
1174 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 1.1 christos *)
1176 1.1 christos case $ac_top_srcdir in
1177 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180 1.1 christos esac;;
1181 1.1 christos esac
1182 1.1 christos
1183 1.1 christos cd $ac_dir
1184 1.1 christos # Check for guested configure; otherwise get Cygnus style configure.
1185 1.1 christos if test -f $ac_srcdir/configure.gnu; then
1186 1.1 christos echo
1187 1.1 christos $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 1.1 christos elif test -f $ac_srcdir/configure; then
1189 1.1 christos echo
1190 1.1 christos $SHELL $ac_srcdir/configure --help=recursive
1191 1.1 christos elif test -f $ac_srcdir/configure.ac ||
1192 1.1 christos test -f $ac_srcdir/configure.in; then
1193 1.1 christos echo
1194 1.1 christos $ac_configure --help
1195 1.1 christos else
1196 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197 1.1 christos fi
1198 1.1 christos cd "$ac_popdir"
1199 1.1 christos done
1200 1.1 christos fi
1201 1.1 christos
1202 1.1 christos test -n "$ac_init_help" && exit 0
1203 1.1 christos if $ac_init_version; then
1204 1.1 christos cat <<\_ACEOF
1205 1.1 christos
1206 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1207 1.1 christos 2003, 2004 Free Software Foundation, Inc.
1208 1.1 christos This configure script is free software; the Free Software Foundation
1209 1.1 christos gives unlimited permission to copy, distribute and modify it.
1210 1.1 christos _ACEOF
1211 1.1 christos exit 0
1212 1.1 christos fi
1213 1.1 christos exec 5>config.log
1214 1.1 christos cat >&5 <<_ACEOF
1215 1.1 christos This file contains any messages produced by compilers while
1216 1.1 christos running configure, to aid debugging if configure makes a mistake.
1217 1.1 christos
1218 1.1 christos It was created by $as_me, which was
1219 1.1 christos generated by GNU Autoconf 2.59b. Invocation command line was
1220 1.1 christos
1221 1.1 christos $ $0 $@
1222 1.1 christos
1223 1.1 christos _ACEOF
1224 1.1 christos {
1225 1.1 christos cat <<_ASUNAME
1226 1.1 christos ## --------- ##
1227 1.1 christos ## Platform. ##
1228 1.1 christos ## --------- ##
1229 1.1 christos
1230 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235 1.1 christos
1236 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238 1.1 christos
1239 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242 1.1 christos hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1246 1.1 christos
1247 1.1 christos _ASUNAME
1248 1.1 christos
1249 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250 1.1 christos for as_dir in $PATH
1251 1.1 christos do
1252 1.1 christos IFS=$as_save_IFS
1253 1.1 christos test -z "$as_dir" && as_dir=.
1254 1.1 christos echo "PATH: $as_dir"
1255 1.1 christos done
1256 1.1 christos
1257 1.1 christos } >&5
1258 1.1 christos
1259 1.1 christos cat >&5 <<_ACEOF
1260 1.1 christos
1261 1.1 christos
1262 1.1 christos ## ----------- ##
1263 1.1 christos ## Core tests. ##
1264 1.1 christos ## ----------- ##
1265 1.1 christos
1266 1.1 christos _ACEOF
1267 1.1 christos
1268 1.1 christos
1269 1.1 christos # Keep a trace of the command line.
1270 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
1271 1.1 christos # Strip out --silent because we don't want to record it for future runs.
1272 1.1 christos # Also quote any args containing shell meta-characters.
1273 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
1274 1.1 christos ac_configure_args=
1275 1.1 christos ac_configure_args0=
1276 1.1 christos ac_configure_args1=
1277 1.1 christos ac_sep=
1278 1.1 christos ac_must_keep_next=false
1279 1.1 christos for ac_pass in 1 2
1280 1.1 christos do
1281 1.1 christos for ac_arg
1282 1.1 christos do
1283 1.1 christos case $ac_arg in
1284 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1287 1.1 christos continue ;;
1288 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 1.1 christos esac
1291 1.1 christos case $ac_pass in
1292 1.1 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 1.1 christos 2)
1294 1.1 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 1.1 christos if test $ac_must_keep_next = true; then
1296 1.1 christos ac_must_keep_next=false # Got value, back to normal.
1297 1.1 christos else
1298 1.1 christos case $ac_arg in
1299 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1300 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
1303 1.1 christos case "$ac_configure_args0 " in
1304 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 1.1 christos esac
1306 1.1 christos ;;
1307 1.1 christos -* ) ac_must_keep_next=true ;;
1308 1.1 christos esac
1309 1.1 christos fi
1310 1.1 christos ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 1.1 christos # Get rid of the leading space.
1312 1.1 christos ac_sep=" "
1313 1.1 christos ;;
1314 1.1 christos esac
1315 1.1 christos done
1316 1.1 christos done
1317 1.1 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318 1.1 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319 1.1 christos
1320 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
1321 1.1 christos # config.log. We remove comments because anyway the quotes in there
1322 1.1 christos # would cause problems or look ugly.
1323 1.1 christos # WARNING: Be sure not to use single quotes in there, as some shells,
1324 1.1 christos # such as our DU 5.0 friend, will then `close' the trap.
1325 1.1 christos trap 'exit_status=$?
1326 1.1 christos # Save into config.log some information that might help in debugging.
1327 1.1 christos {
1328 1.1 christos echo
1329 1.1 christos
1330 1.1 christos cat <<\_ASBOX
1331 1.1 christos ## ---------------- ##
1332 1.1 christos ## Cache variables. ##
1333 1.1 christos ## ---------------- ##
1334 1.1 christos _ASBOX
1335 1.1 christos echo
1336 1.1 christos # The following way of writing the cache mishandles newlines in values,
1337 1.1 christos {
1338 1.1 christos (set) 2>&1 |
1339 1.1 christos case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 1.1 christos *ac_space=\ *)
1341 1.1 christos sed -n \
1342 1.1 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1344 1.1 christos ;;
1345 1.1 christos *)
1346 1.1 christos sed -n \
1347 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1348 1.1 christos ;;
1349 1.1 christos esac;
1350 1.1 christos }
1351 1.1 christos echo
1352 1.1 christos
1353 1.1 christos cat <<\_ASBOX
1354 1.1 christos ## ----------------- ##
1355 1.1 christos ## Output variables. ##
1356 1.1 christos ## ----------------- ##
1357 1.1 christos _ASBOX
1358 1.1 christos echo
1359 1.1 christos for ac_var in $ac_subst_vars
1360 1.1 christos do
1361 1.1 christos eval ac_val=$`echo $ac_var`
1362 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'"
1363 1.1 christos done | sort
1364 1.1 christos echo
1365 1.1 christos
1366 1.1 christos if test -n "$ac_subst_files"; then
1367 1.1 christos cat <<\_ASBOX
1368 1.1 christos ## ------------- ##
1369 1.1 christos ## Output files. ##
1370 1.1 christos ## ------------- ##
1371 1.1 christos _ASBOX
1372 1.1 christos echo
1373 1.1 christos for ac_var in $ac_subst_files
1374 1.1 christos do
1375 1.1 christos eval ac_val=$`echo $ac_var`
1376 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'"
1377 1.1 christos done | sort
1378 1.1 christos echo
1379 1.1 christos fi
1380 1.1 christos
1381 1.1 christos if test -s confdefs.h; then
1382 1.1 christos cat <<\_ASBOX
1383 1.1 christos ## ----------- ##
1384 1.1 christos ## confdefs.h. ##
1385 1.1 christos ## ----------- ##
1386 1.1 christos _ASBOX
1387 1.1 christos echo
1388 1.1 christos sed "/^$/d" confdefs.h | sort
1389 1.1 christos echo
1390 1.1 christos fi
1391 1.1 christos test "$ac_signal" != 0 &&
1392 1.1 christos echo "$as_me: caught signal $ac_signal"
1393 1.1 christos echo "$as_me: exit $exit_status"
1394 1.1 christos } >&5
1395 1.1 christos rm -f core *.core &&
1396 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1397 1.1 christos exit $exit_status
1398 1.1 christos ' 0
1399 1.1 christos for ac_signal in 1 2 13 15; do
1400 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401 1.1 christos done
1402 1.1 christos ac_signal=0
1403 1.1 christos
1404 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
1405 1.1 christos rm -f -r conftest* confdefs.h
1406 1.1 christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407 1.1 christos # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1408 1.1 christos ac_space=' '
1409 1.1 christos echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1410 1.1 christos
1411 1.1 christos # Predefined preprocessor variables.
1412 1.1 christos
1413 1.1 christos cat >>confdefs.h <<_ACEOF
1414 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
1415 1.1 christos _ACEOF
1416 1.1 christos
1417 1.1 christos
1418 1.1 christos cat >>confdefs.h <<_ACEOF
1419 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 1.1 christos _ACEOF
1421 1.1 christos
1422 1.1 christos
1423 1.1 christos cat >>confdefs.h <<_ACEOF
1424 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 1.1 christos _ACEOF
1426 1.1 christos
1427 1.1 christos
1428 1.1 christos cat >>confdefs.h <<_ACEOF
1429 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
1430 1.1 christos _ACEOF
1431 1.1 christos
1432 1.1 christos
1433 1.1 christos cat >>confdefs.h <<_ACEOF
1434 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 1.1 christos _ACEOF
1436 1.1 christos
1437 1.1 christos
1438 1.1 christos # Let the site file select an alternate cache file if it wants to.
1439 1.1 christos # Prefer explicitly selected file to automatically selected ones.
1440 1.1 christos if test -z "$CONFIG_SITE"; then
1441 1.1 christos if test "x$prefix" != xNONE; then
1442 1.1 christos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 1.1 christos else
1444 1.1 christos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445 1.1 christos fi
1446 1.1 christos fi
1447 1.1 christos for ac_site_file in $CONFIG_SITE; do
1448 1.1 christos if test -r "$ac_site_file"; then
1449 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;}
1451 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
1452 1.1 christos . "$ac_site_file"
1453 1.1 christos fi
1454 1.1 christos done
1455 1.1 christos
1456 1.1 christos if test -r "$cache_file"; then
1457 1.1 christos # Some versions of bash will fail to source /dev/null (special
1458 1.1 christos # files actually), so we avoid doing that.
1459 1.1 christos if test -f "$cache_file"; then
1460 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461 1.1 christos echo "$as_me: loading cache $cache_file" >&6;}
1462 1.1 christos case $cache_file in
1463 1.1 christos [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 1.1 christos *) . ./$cache_file;;
1465 1.1 christos esac
1466 1.1 christos fi
1467 1.1 christos else
1468 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469 1.1 christos echo "$as_me: creating cache $cache_file" >&6;}
1470 1.1 christos >$cache_file
1471 1.1 christos fi
1472 1.1 christos
1473 1.1 christos # Check that the precious variables saved in the cache have kept the same
1474 1.1 christos # value.
1475 1.1 christos ac_cache_corrupted=false
1476 1.1 christos for ac_var in `(set) 2>&1 |
1477 1.1 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1478 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
1480 1.1 christos eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 1.1 christos eval ac_new_val="\$ac_env_${ac_var}_value"
1482 1.1 christos case $ac_old_set,$ac_new_set in
1483 1.1 christos set,)
1484 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1485 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1486 1.1 christos ac_cache_corrupted=: ;;
1487 1.1 christos ,set)
1488 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1489 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 1.1 christos ac_cache_corrupted=: ;;
1491 1.1 christos ,);;
1492 1.1 christos *)
1493 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
1494 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1495 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1496 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1497 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;}
1498 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1499 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;}
1500 1.1 christos ac_cache_corrupted=:
1501 1.1 christos fi;;
1502 1.1 christos esac
1503 1.1 christos # Pass precious variables to config.status.
1504 1.1 christos if test "$ac_new_set" = set; then
1505 1.1 christos case $ac_new_val in
1506 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 1.1 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
1509 1.1 christos esac
1510 1.1 christos case " $ac_configure_args " in
1511 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 1.1 christos esac
1514 1.1 christos fi
1515 1.1 christos done
1516 1.1 christos if $ac_cache_corrupted; then
1517 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1520 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 1.1 christos { (exit 1); exit 1; }; }
1522 1.1 christos fi
1523 1.1 christos
1524 1.1 christos ac_ext=c
1525 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1526 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 1.1 christos
1530 1.1 christos
1531 1.1 christos
1532 1.1 christos
1533 1.1 christos
1534 1.1 christos
1535 1.1 christos
1536 1.1 christos
1537 1.1 christos
1538 1.1 christos
1539 1.1 christos
1540 1.1 christos
1541 1.1 christos
1542 1.1 christos
1543 1.1 christos
1544 1.1 christos
1545 1.1 christos
1546 1.1 christos
1547 1.1 christos
1548 1.1 christos
1549 1.1 christos
1550 1.1 christos ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1551 1.1 christos
1552 1.1 christos
1553 1.1 christos
1554 1.1 christos # checks for programs
1555 1.1 christos ac_ext=c
1556 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1557 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1558 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1559 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 1.1 christos if test -n "$ac_tool_prefix"; then
1561 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1562 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
1563 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1566 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1567 1.1 christos else
1568 1.1 christos if test -n "$CC"; then
1569 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1570 1.1 christos else
1571 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 1.1 christos for as_dir in $PATH
1573 1.1 christos do
1574 1.1 christos IFS=$as_save_IFS
1575 1.1 christos test -z "$as_dir" && as_dir=.
1576 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1577 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
1579 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 1.1 christos break 2
1581 1.1 christos fi
1582 1.1 christos done
1583 1.1 christos done
1584 1.1 christos
1585 1.1 christos fi
1586 1.1 christos fi
1587 1.1 christos CC=$ac_cv_prog_CC
1588 1.1 christos if test -n "$CC"; then
1589 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5
1590 1.1 christos echo "${ECHO_T}$CC" >&6
1591 1.1 christos else
1592 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1593 1.1 christos echo "${ECHO_T}no" >&6
1594 1.1 christos fi
1595 1.1 christos
1596 1.1 christos fi
1597 1.1 christos if test -z "$ac_cv_prog_CC"; then
1598 1.1 christos ac_ct_CC=$CC
1599 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
1600 1.1 christos set dummy gcc; ac_word=$2
1601 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1605 1.1 christos else
1606 1.1 christos if test -n "$ac_ct_CC"; then
1607 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608 1.1 christos else
1609 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 1.1 christos for as_dir in $PATH
1611 1.1 christos do
1612 1.1 christos IFS=$as_save_IFS
1613 1.1 christos test -z "$as_dir" && as_dir=.
1614 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1615 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
1617 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 1.1 christos break 2
1619 1.1 christos fi
1620 1.1 christos done
1621 1.1 christos done
1622 1.1 christos
1623 1.1 christos fi
1624 1.1 christos fi
1625 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626 1.1 christos if test -n "$ac_ct_CC"; then
1627 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1629 1.1 christos else
1630 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1631 1.1 christos echo "${ECHO_T}no" >&6
1632 1.1 christos fi
1633 1.1 christos
1634 1.1 christos if test "x$ac_ct_CC" = x; then
1635 1.1 christos CC=""
1636 1.1 christos else
1637 1.1 christos if test "$build" != "$host"; then
1638 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1639 1.1 christos whose name does not start with the host triplet. If you think this
1640 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&5
1641 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1642 1.1 christos whose name does not start with the host triplet. If you think this
1643 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1644 1.1 christos fi
1645 1.1 christos CC=$ac_ct_CC
1646 1.1 christos fi
1647 1.1 christos else
1648 1.1 christos CC="$ac_cv_prog_CC"
1649 1.1 christos fi
1650 1.1 christos
1651 1.1 christos if test -z "$CC"; then
1652 1.1 christos if test -n "$ac_tool_prefix"; then
1653 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1654 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
1655 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1658 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1659 1.1 christos else
1660 1.1 christos if test -n "$CC"; then
1661 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1662 1.1 christos else
1663 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 1.1 christos for as_dir in $PATH
1665 1.1 christos do
1666 1.1 christos IFS=$as_save_IFS
1667 1.1 christos test -z "$as_dir" && as_dir=.
1668 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1669 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
1671 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 1.1 christos break 2
1673 1.1 christos fi
1674 1.1 christos done
1675 1.1 christos done
1676 1.1 christos
1677 1.1 christos fi
1678 1.1 christos fi
1679 1.1 christos CC=$ac_cv_prog_CC
1680 1.1 christos if test -n "$CC"; then
1681 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5
1682 1.1 christos echo "${ECHO_T}$CC" >&6
1683 1.1 christos else
1684 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1685 1.1 christos echo "${ECHO_T}no" >&6
1686 1.1 christos fi
1687 1.1 christos
1688 1.1 christos fi
1689 1.1 christos if test -z "$ac_cv_prog_CC"; then
1690 1.1 christos ac_ct_CC=$CC
1691 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
1692 1.1 christos set dummy cc; ac_word=$2
1693 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1697 1.1 christos else
1698 1.1 christos if test -n "$ac_ct_CC"; then
1699 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700 1.1 christos else
1701 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 1.1 christos for as_dir in $PATH
1703 1.1 christos do
1704 1.1 christos IFS=$as_save_IFS
1705 1.1 christos test -z "$as_dir" && as_dir=.
1706 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1707 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 1.1 christos ac_cv_prog_ac_ct_CC="cc"
1709 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 1.1 christos break 2
1711 1.1 christos fi
1712 1.1 christos done
1713 1.1 christos done
1714 1.1 christos
1715 1.1 christos fi
1716 1.1 christos fi
1717 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 1.1 christos if test -n "$ac_ct_CC"; then
1719 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1721 1.1 christos else
1722 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1723 1.1 christos echo "${ECHO_T}no" >&6
1724 1.1 christos fi
1725 1.1 christos
1726 1.1 christos if test "x$ac_ct_CC" = x; then
1727 1.1 christos CC=""
1728 1.1 christos else
1729 1.1 christos if test "$build" != "$host"; then
1730 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1731 1.1 christos whose name does not start with the host triplet. If you think this
1732 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&5
1733 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1734 1.1 christos whose name does not start with the host triplet. If you think this
1735 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1736 1.1 christos fi
1737 1.1 christos CC=$ac_ct_CC
1738 1.1 christos fi
1739 1.1 christos else
1740 1.1 christos CC="$ac_cv_prog_CC"
1741 1.1 christos fi
1742 1.1 christos
1743 1.1 christos fi
1744 1.1 christos if test -z "$CC"; then
1745 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
1746 1.1 christos set dummy cc; ac_word=$2
1747 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1750 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1751 1.1 christos else
1752 1.1 christos if test -n "$CC"; then
1753 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1754 1.1 christos else
1755 1.1 christos ac_prog_rejected=no
1756 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 1.1 christos for as_dir in $PATH
1758 1.1 christos do
1759 1.1 christos IFS=$as_save_IFS
1760 1.1 christos test -z "$as_dir" && as_dir=.
1761 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1762 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1764 1.1 christos ac_prog_rejected=yes
1765 1.1 christos continue
1766 1.1 christos fi
1767 1.1 christos ac_cv_prog_CC="cc"
1768 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 1.1 christos break 2
1770 1.1 christos fi
1771 1.1 christos done
1772 1.1 christos done
1773 1.1 christos
1774 1.1 christos if test $ac_prog_rejected = yes; then
1775 1.1 christos # We found a bogon in the path, so make sure we never use it.
1776 1.1 christos set dummy $ac_cv_prog_CC
1777 1.1 christos shift
1778 1.1 christos if test $# != 0; then
1779 1.1 christos # We chose a different compiler from the bogus one.
1780 1.1 christos # However, it has the same basename, so the bogon will be chosen
1781 1.1 christos # first if we set CC to just the basename; use the full file name.
1782 1.1 christos shift
1783 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1784 1.1 christos fi
1785 1.1 christos fi
1786 1.1 christos fi
1787 1.1 christos fi
1788 1.1 christos CC=$ac_cv_prog_CC
1789 1.1 christos if test -n "$CC"; then
1790 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5
1791 1.1 christos echo "${ECHO_T}$CC" >&6
1792 1.1 christos else
1793 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1794 1.1 christos echo "${ECHO_T}no" >&6
1795 1.1 christos fi
1796 1.1 christos
1797 1.1 christos fi
1798 1.1 christos if test -z "$CC"; then
1799 1.1 christos if test -n "$ac_tool_prefix"; then
1800 1.1 christos for ac_prog in cl
1801 1.1 christos do
1802 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1803 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1804 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1807 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1808 1.1 christos else
1809 1.1 christos if test -n "$CC"; then
1810 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1811 1.1 christos else
1812 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 1.1 christos for as_dir in $PATH
1814 1.1 christos do
1815 1.1 christos IFS=$as_save_IFS
1816 1.1 christos test -z "$as_dir" && as_dir=.
1817 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1818 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1820 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 1.1 christos break 2
1822 1.1 christos fi
1823 1.1 christos done
1824 1.1 christos done
1825 1.1 christos
1826 1.1 christos fi
1827 1.1 christos fi
1828 1.1 christos CC=$ac_cv_prog_CC
1829 1.1 christos if test -n "$CC"; then
1830 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5
1831 1.1 christos echo "${ECHO_T}$CC" >&6
1832 1.1 christos else
1833 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1834 1.1 christos echo "${ECHO_T}no" >&6
1835 1.1 christos fi
1836 1.1 christos
1837 1.1 christos test -n "$CC" && break
1838 1.1 christos done
1839 1.1 christos fi
1840 1.1 christos if test -z "$CC"; then
1841 1.1 christos ac_ct_CC=$CC
1842 1.1 christos for ac_prog in cl
1843 1.1 christos do
1844 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
1845 1.1 christos set dummy $ac_prog; ac_word=$2
1846 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1850 1.1 christos else
1851 1.1 christos if test -n "$ac_ct_CC"; then
1852 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 1.1 christos else
1854 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 1.1 christos for as_dir in $PATH
1856 1.1 christos do
1857 1.1 christos IFS=$as_save_IFS
1858 1.1 christos test -z "$as_dir" && as_dir=.
1859 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1860 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
1862 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 1.1 christos break 2
1864 1.1 christos fi
1865 1.1 christos done
1866 1.1 christos done
1867 1.1 christos
1868 1.1 christos fi
1869 1.1 christos fi
1870 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 1.1 christos if test -n "$ac_ct_CC"; then
1872 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1874 1.1 christos else
1875 1.1 christos echo "$as_me:$LINENO: result: no" >&5
1876 1.1 christos echo "${ECHO_T}no" >&6
1877 1.1 christos fi
1878 1.1 christos
1879 1.1 christos test -n "$ac_ct_CC" && break
1880 1.1 christos done
1881 1.1 christos
1882 1.1 christos if test "x$ac_ct_CC" = x; then
1883 1.1 christos CC=""
1884 1.1 christos else
1885 1.1 christos if test "$build" != "$host"; then
1886 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1887 1.1 christos whose name does not start with the host triplet. If you think this
1888 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&5
1889 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1890 1.1 christos whose name does not start with the host triplet. If you think this
1891 1.1 christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1892 1.1 christos fi
1893 1.1 christos CC=$ac_ct_CC
1894 1.1 christos fi
1895 1.1 christos fi
1896 1.1 christos
1897 1.1 christos fi
1898 1.1 christos
1899 1.1 christos
1900 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1901 1.1 christos See \`config.log' for more details." >&5
1902 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH
1903 1.1 christos See \`config.log' for more details." >&2;}
1904 1.1 christos { (exit 1); exit 1; }; }
1905 1.1 christos
1906 1.1 christos # Provide some information about the compiler.
1907 1.1 christos echo "$as_me:$LINENO:" \
1908 1.1 christos "checking for C compiler version" >&5
1909 1.1 christos ac_compiler=`set X $ac_compile; echo $2`
1910 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5
1912 1.1 christos ac_status=$?
1913 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 1.1 christos (exit $ac_status); }
1915 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5
1917 1.1 christos ac_status=$?
1918 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 1.1 christos (exit $ac_status); }
1920 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5
1922 1.1 christos ac_status=$?
1923 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 1.1 christos (exit $ac_status); }
1925 1.1 christos
1926 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1927 1.1 christos /* confdefs.h. */
1928 1.1 christos _ACEOF
1929 1.1 christos cat confdefs.h >>conftest.$ac_ext
1930 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
1931 1.1 christos /* end confdefs.h. */
1932 1.1 christos
1933 1.1 christos int
1934 1.1 christos main ()
1935 1.1 christos {
1936 1.1 christos
1937 1.1 christos ;
1938 1.1 christos return 0;
1939 1.1 christos }
1940 1.1 christos _ACEOF
1941 1.1 christos ac_clean_files_save=$ac_clean_files
1942 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
1943 1.1 christos # Try to create an executable without -o first, disregard a.out.
1944 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
1945 1.1 christos # of exeext.
1946 1.1 christos echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1947 1.1 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1948 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1949 1.1 christos #
1950 1.1 christos # List of possible output files, starting from the most likely.
1951 1.1 christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1952 1.1 christos # only as a last resort. b.out is created by i960 compilers.
1953 1.1 christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1954 1.1 christos #
1955 1.1 christos # The IRIX 6 linker writes into existing files which may not be
1956 1.1 christos # executable, retaining their permissions. Remove them first so a
1957 1.1 christos # subsequent execution test works.
1958 1.1 christos ac_rmfiles=
1959 1.1 christos for ac_file in $ac_files
1960 1.1 christos do
1961 1.1 christos case $ac_file in
1962 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1963 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1964 1.1 christos esac
1965 1.1 christos done
1966 1.1 christos rm -f $ac_rmfiles
1967 1.1 christos
1968 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 1.1 christos (eval $ac_link_default) 2>&5
1970 1.1 christos ac_status=$?
1971 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 1.1 christos (exit $ac_status); }; then
1973 1.1 christos # Be careful to initialize this variable, since it used to be cached.
1974 1.1 christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1975 1.1 christos ac_cv_exeext=
1976 1.1 christos for ac_file in $ac_files
1977 1.1 christos do
1978 1.1 christos test -f "$ac_file" || continue
1979 1.1 christos case $ac_file in
1980 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1981 1.1 christos ;;
1982 1.1 christos [ab].out )
1983 1.1 christos # We found the default executable, but exeext='' is most
1984 1.1 christos # certainly right.
1985 1.1 christos break;;
1986 1.1 christos *.* )
1987 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 1.1 christos # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 1.1 christos # but it would be cool to find out if it's true. Does anybody
1990 1.1 christos # maintain Libtool? --akim.
1991 1.1 christos export ac_cv_exeext
1992 1.1 christos break;;
1993 1.1 christos * )
1994 1.1 christos break;;
1995 1.1 christos esac
1996 1.1 christos done
1997 1.1 christos else
1998 1.1 christos echo "$as_me: failed program was:" >&5
1999 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2000 1.1 christos
2001 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 1.1 christos See \`config.log' for more details." >&5
2003 1.1 christos echo "$as_me: error: C compiler cannot create executables
2004 1.1 christos See \`config.log' for more details." >&2;}
2005 1.1 christos { (exit 77); exit 77; }; }
2006 1.1 christos fi
2007 1.1 christos
2008 1.1 christos ac_exeext=$ac_cv_exeext
2009 1.1 christos echo "$as_me:$LINENO: result: $ac_file" >&5
2010 1.1 christos echo "${ECHO_T}$ac_file" >&6
2011 1.1 christos
2012 1.1 christos # Check the compiler produces executables we can run. If not, either
2013 1.1 christos # the compiler is broken, or we cross compile.
2014 1.1 christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 1.1 christos # If not cross compiling, check that we can run a simple program.
2018 1.1 christos if test "$cross_compiling" != yes; then
2019 1.1 christos if { ac_try='./$ac_file'
2020 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 1.1 christos (eval $ac_try) 2>&5
2022 1.1 christos ac_status=$?
2023 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 1.1 christos (exit $ac_status); }; }; then
2025 1.1 christos cross_compiling=no
2026 1.1 christos else
2027 1.1 christos if test "$cross_compiling" = maybe; then
2028 1.1 christos cross_compiling=yes
2029 1.1 christos else
2030 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031 1.1 christos If you meant to cross compile, use \`--host'.
2032 1.1 christos See \`config.log' for more details." >&5
2033 1.1 christos echo "$as_me: error: cannot run C compiled programs.
2034 1.1 christos If you meant to cross compile, use \`--host'.
2035 1.1 christos See \`config.log' for more details." >&2;}
2036 1.1 christos { (exit 1); exit 1; }; }
2037 1.1 christos fi
2038 1.1 christos fi
2039 1.1 christos fi
2040 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
2041 1.1 christos echo "${ECHO_T}yes" >&6
2042 1.1 christos
2043 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044 1.1 christos ac_clean_files=$ac_clean_files_save
2045 1.1 christos # Check the compiler produces executables we can run. If not, either
2046 1.1 christos # the compiler is broken, or we cross compile.
2047 1.1 christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049 1.1 christos echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050 1.1 christos echo "${ECHO_T}$cross_compiling" >&6
2051 1.1 christos
2052 1.1 christos echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 1.1 christos (eval $ac_link) 2>&5
2056 1.1 christos ac_status=$?
2057 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 1.1 christos (exit $ac_status); }; then
2059 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
2062 1.1 christos # `rm'.
2063 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
2064 1.1 christos test -f "$ac_file" || continue
2065 1.1 christos case $ac_file in
2066 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 1.1 christos export ac_cv_exeext
2069 1.1 christos break;;
2070 1.1 christos * ) break;;
2071 1.1 christos esac
2072 1.1 christos done
2073 1.1 christos else
2074 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075 1.1 christos See \`config.log' for more details." >&5
2076 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077 1.1 christos See \`config.log' for more details." >&2;}
2078 1.1 christos { (exit 1); exit 1; }; }
2079 1.1 christos fi
2080 1.1 christos
2081 1.1 christos rm -f conftest$ac_cv_exeext
2082 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6
2084 1.1 christos
2085 1.1 christos rm -f conftest.$ac_ext
2086 1.1 christos EXEEXT=$ac_cv_exeext
2087 1.1 christos ac_exeext=$EXEEXT
2088 1.1 christos echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090 1.1 christos if test "${ac_cv_objext+set}" = set; then
2091 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2092 1.1 christos else
2093 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2094 1.1 christos /* confdefs.h. */
2095 1.1 christos _ACEOF
2096 1.1 christos cat confdefs.h >>conftest.$ac_ext
2097 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2098 1.1 christos /* end confdefs.h. */
2099 1.1 christos
2100 1.1 christos int
2101 1.1 christos main ()
2102 1.1 christos {
2103 1.1 christos
2104 1.1 christos ;
2105 1.1 christos return 0;
2106 1.1 christos }
2107 1.1 christos _ACEOF
2108 1.1 christos rm -f conftest.o conftest.obj
2109 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 1.1 christos (eval $ac_compile) 2>&5
2111 1.1 christos ac_status=$?
2112 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 1.1 christos (exit $ac_status); }; then
2114 1.1 christos for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115 1.1 christos case $ac_file in
2116 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2117 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118 1.1 christos break;;
2119 1.1 christos esac
2120 1.1 christos done
2121 1.1 christos else
2122 1.1 christos echo "$as_me: failed program was:" >&5
2123 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2124 1.1 christos
2125 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126 1.1 christos See \`config.log' for more details." >&5
2127 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128 1.1 christos See \`config.log' for more details." >&2;}
2129 1.1 christos { (exit 1); exit 1; }; }
2130 1.1 christos fi
2131 1.1 christos
2132 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
2133 1.1 christos fi
2134 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6
2136 1.1 christos OBJEXT=$ac_cv_objext
2137 1.1 christos ac_objext=$OBJEXT
2138 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2142 1.1 christos else
2143 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2144 1.1 christos /* confdefs.h. */
2145 1.1 christos _ACEOF
2146 1.1 christos cat confdefs.h >>conftest.$ac_ext
2147 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2148 1.1 christos /* end confdefs.h. */
2149 1.1 christos
2150 1.1 christos int
2151 1.1 christos main ()
2152 1.1 christos {
2153 1.1 christos #ifndef __GNUC__
2154 1.1 christos choke me
2155 1.1 christos #endif
2156 1.1 christos
2157 1.1 christos ;
2158 1.1 christos return 0;
2159 1.1 christos }
2160 1.1 christos _ACEOF
2161 1.1 christos rm -f conftest.$ac_objext
2162 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 1.1 christos (eval $ac_compile) 2>conftest.er1
2164 1.1 christos ac_status=$?
2165 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2166 1.1 christos rm -f conftest.er1
2167 1.1 christos cat conftest.err >&5
2168 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 1.1 christos (exit $ac_status); } &&
2170 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2171 1.1 christos || test ! -s conftest.err'
2172 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 1.1 christos (eval $ac_try) 2>&5
2174 1.1 christos ac_status=$?
2175 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 1.1 christos (exit $ac_status); }; } &&
2177 1.1 christos { ac_try='test -s conftest.$ac_objext'
2178 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 1.1 christos (eval $ac_try) 2>&5
2180 1.1 christos ac_status=$?
2181 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 1.1 christos (exit $ac_status); }; }; then
2183 1.1 christos ac_compiler_gnu=yes
2184 1.1 christos else
2185 1.1 christos echo "$as_me: failed program was:" >&5
2186 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2187 1.1 christos
2188 1.1 christos ac_compiler_gnu=no
2189 1.1 christos fi
2190 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
2192 1.1 christos
2193 1.1 christos fi
2194 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2195 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2196 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes`
2197 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
2198 1.1 christos ac_save_CFLAGS=$CFLAGS
2199 1.1 christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then
2202 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2203 1.1 christos else
2204 1.1 christos ac_save_c_werror_flag=$ac_c_werror_flag
2205 1.1 christos ac_c_werror_flag=yes
2206 1.1 christos ac_cv_prog_cc_g=no
2207 1.1 christos CFLAGS="-g"
2208 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2209 1.1 christos /* confdefs.h. */
2210 1.1 christos _ACEOF
2211 1.1 christos cat confdefs.h >>conftest.$ac_ext
2212 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2213 1.1 christos /* end confdefs.h. */
2214 1.1 christos
2215 1.1 christos int
2216 1.1 christos main ()
2217 1.1 christos {
2218 1.1 christos
2219 1.1 christos ;
2220 1.1 christos return 0;
2221 1.1 christos }
2222 1.1 christos _ACEOF
2223 1.1 christos rm -f conftest.$ac_objext
2224 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 1.1 christos (eval $ac_compile) 2>conftest.er1
2226 1.1 christos ac_status=$?
2227 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2228 1.1 christos rm -f conftest.er1
2229 1.1 christos cat conftest.err >&5
2230 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 1.1 christos (exit $ac_status); } &&
2232 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2233 1.1 christos || test ! -s conftest.err'
2234 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 1.1 christos (eval $ac_try) 2>&5
2236 1.1 christos ac_status=$?
2237 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 1.1 christos (exit $ac_status); }; } &&
2239 1.1 christos { ac_try='test -s conftest.$ac_objext'
2240 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 1.1 christos (eval $ac_try) 2>&5
2242 1.1 christos ac_status=$?
2243 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 1.1 christos (exit $ac_status); }; }; then
2245 1.1 christos ac_cv_prog_cc_g=yes
2246 1.1 christos else
2247 1.1 christos echo "$as_me: failed program was:" >&5
2248 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2249 1.1 christos
2250 1.1 christos CFLAGS=""
2251 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2252 1.1 christos /* confdefs.h. */
2253 1.1 christos _ACEOF
2254 1.1 christos cat confdefs.h >>conftest.$ac_ext
2255 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2256 1.1 christos /* end confdefs.h. */
2257 1.1 christos
2258 1.1 christos int
2259 1.1 christos main ()
2260 1.1 christos {
2261 1.1 christos
2262 1.1 christos ;
2263 1.1 christos return 0;
2264 1.1 christos }
2265 1.1 christos _ACEOF
2266 1.1 christos rm -f conftest.$ac_objext
2267 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 1.1 christos (eval $ac_compile) 2>conftest.er1
2269 1.1 christos ac_status=$?
2270 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2271 1.1 christos rm -f conftest.er1
2272 1.1 christos cat conftest.err >&5
2273 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 1.1 christos (exit $ac_status); } &&
2275 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2276 1.1 christos || test ! -s conftest.err'
2277 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 1.1 christos (eval $ac_try) 2>&5
2279 1.1 christos ac_status=$?
2280 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 1.1 christos (exit $ac_status); }; } &&
2282 1.1 christos { ac_try='test -s conftest.$ac_objext'
2283 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 1.1 christos (eval $ac_try) 2>&5
2285 1.1 christos ac_status=$?
2286 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 1.1 christos (exit $ac_status); }; }; then
2288 1.1 christos :
2289 1.1 christos else
2290 1.1 christos echo "$as_me: failed program was:" >&5
2291 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2292 1.1 christos
2293 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2294 1.1 christos CFLAGS="-g"
2295 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2296 1.1 christos /* confdefs.h. */
2297 1.1 christos _ACEOF
2298 1.1 christos cat confdefs.h >>conftest.$ac_ext
2299 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2300 1.1 christos /* end confdefs.h. */
2301 1.1 christos
2302 1.1 christos int
2303 1.1 christos main ()
2304 1.1 christos {
2305 1.1 christos
2306 1.1 christos ;
2307 1.1 christos return 0;
2308 1.1 christos }
2309 1.1 christos _ACEOF
2310 1.1 christos rm -f conftest.$ac_objext
2311 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 1.1 christos (eval $ac_compile) 2>conftest.er1
2313 1.1 christos ac_status=$?
2314 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2315 1.1 christos rm -f conftest.er1
2316 1.1 christos cat conftest.err >&5
2317 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 1.1 christos (exit $ac_status); } &&
2319 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2320 1.1 christos || test ! -s conftest.err'
2321 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 1.1 christos (eval $ac_try) 2>&5
2323 1.1 christos ac_status=$?
2324 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 1.1 christos (exit $ac_status); }; } &&
2326 1.1 christos { ac_try='test -s conftest.$ac_objext'
2327 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 1.1 christos (eval $ac_try) 2>&5
2329 1.1 christos ac_status=$?
2330 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 1.1 christos (exit $ac_status); }; }; then
2332 1.1 christos ac_cv_prog_cc_g=yes
2333 1.1 christos else
2334 1.1 christos echo "$as_me: failed program was:" >&5
2335 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2336 1.1 christos
2337 1.1 christos fi
2338 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 1.1 christos fi
2340 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 1.1 christos fi
2342 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2344 1.1 christos fi
2345 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2346 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2347 1.1 christos if test "$ac_test_CFLAGS" = set; then
2348 1.1 christos CFLAGS=$ac_save_CFLAGS
2349 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
2350 1.1 christos if test "$GCC" = yes; then
2351 1.1 christos CFLAGS="-g -O2"
2352 1.1 christos else
2353 1.1 christos CFLAGS="-g"
2354 1.1 christos fi
2355 1.1 christos else
2356 1.1 christos if test "$GCC" = yes; then
2357 1.1 christos CFLAGS="-O2"
2358 1.1 christos else
2359 1.1 christos CFLAGS=
2360 1.1 christos fi
2361 1.1 christos fi
2362 1.1 christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2363 1.1 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 1.1 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2366 1.1 christos else
2367 1.1 christos ac_cv_prog_cc_stdc=no
2368 1.1 christos ac_save_CC=$CC
2369 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2370 1.1 christos /* confdefs.h. */
2371 1.1 christos _ACEOF
2372 1.1 christos cat confdefs.h >>conftest.$ac_ext
2373 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2374 1.1 christos /* end confdefs.h. */
2375 1.1 christos #include <stdarg.h>
2376 1.1 christos #include <stdio.h>
2377 1.1 christos #include <sys/types.h>
2378 1.1 christos #include <sys/stat.h>
2379 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2380 1.1 christos struct buf { int x; };
2381 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
2382 1.1 christos static char *e (p, i)
2383 1.1 christos char **p;
2384 1.1 christos int i;
2385 1.1 christos {
2386 1.1 christos return p[i];
2387 1.1 christos }
2388 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
2389 1.1 christos {
2390 1.1 christos char *s;
2391 1.1 christos va_list v;
2392 1.1 christos va_start (v,p);
2393 1.1 christos s = g (p, va_arg (v,int));
2394 1.1 christos va_end (v);
2395 1.1 christos return s;
2396 1.1 christos }
2397 1.1 christos
2398 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2399 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
2400 1.1 christos These don't provoke an error unfortunately, instead are silently treated
2401 1.1 christos as 'x'. The following induces an error, until -std is added to get
2402 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2403 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
2404 1.1 christos that's true only with -std. */
2405 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2406 1.1 christos
2407 1.1 christos int test (int i, double x);
2408 1.1 christos struct s1 {int (*f) (int a);};
2409 1.1 christos struct s2 {int (*f) (double a);};
2410 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2411 1.1 christos int argc;
2412 1.1 christos char **argv;
2413 1.1 christos int
2414 1.1 christos main ()
2415 1.1 christos {
2416 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2417 1.1 christos ;
2418 1.1 christos return 0;
2419 1.1 christos }
2420 1.1 christos _ACEOF
2421 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and
2422 1.1 christos # breaks some systems' header files.
2423 1.1 christos # AIX -qlanglvl=ansi
2424 1.1 christos # Ultrix, OSF/1, Tru64 -std
2425 1.1 christos # HP-UX 10.20 and later -Ae
2426 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE
2427 1.1 christos # SVR4 -Xc -D__EXTENSIONS__
2428 1.1 christos for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2429 1.1 christos do
2430 1.1 christos CC="$ac_save_CC $ac_arg"
2431 1.1 christos rm -f conftest.$ac_objext
2432 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 1.1 christos (eval $ac_compile) 2>conftest.er1
2434 1.1 christos ac_status=$?
2435 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2436 1.1 christos rm -f conftest.er1
2437 1.1 christos cat conftest.err >&5
2438 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 1.1 christos (exit $ac_status); } &&
2440 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2441 1.1 christos || test ! -s conftest.err'
2442 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 1.1 christos (eval $ac_try) 2>&5
2444 1.1 christos ac_status=$?
2445 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 1.1 christos (exit $ac_status); }; } &&
2447 1.1 christos { ac_try='test -s conftest.$ac_objext'
2448 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 1.1 christos (eval $ac_try) 2>&5
2450 1.1 christos ac_status=$?
2451 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 1.1 christos (exit $ac_status); }; }; then
2453 1.1 christos ac_cv_prog_cc_stdc=$ac_arg
2454 1.1 christos break
2455 1.1 christos else
2456 1.1 christos echo "$as_me: failed program was:" >&5
2457 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2458 1.1 christos
2459 1.1 christos fi
2460 1.1 christos rm -f conftest.err conftest.$ac_objext
2461 1.1 christos done
2462 1.1 christos rm -f conftest.$ac_ext conftest.$ac_objext
2463 1.1 christos CC=$ac_save_CC
2464 1.1 christos
2465 1.1 christos fi
2466 1.1 christos
2467 1.1 christos case "x$ac_cv_prog_cc_stdc" in
2468 1.1 christos x|xno)
2469 1.1 christos echo "$as_me:$LINENO: result: none needed" >&5
2470 1.1 christos echo "${ECHO_T}none needed" >&6 ;;
2471 1.1 christos *)
2472 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 1.1 christos CC="$CC $ac_cv_prog_cc_stdc" ;;
2475 1.1 christos esac
2476 1.1 christos
2477 1.1 christos # Some people use a C++ compiler to compile C. Since we use `exit',
2478 1.1 christos # in C++ we need to declare it. In case someone uses the same compiler
2479 1.1 christos # for both compiling C and C++ we need to have the C++ compiler decide
2480 1.1 christos # the declaration of exit, since it's the most demanding environment.
2481 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2482 1.1 christos #ifndef __cplusplus
2483 1.1 christos choke me
2484 1.1 christos #endif
2485 1.1 christos _ACEOF
2486 1.1 christos rm -f conftest.$ac_objext
2487 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 1.1 christos (eval $ac_compile) 2>conftest.er1
2489 1.1 christos ac_status=$?
2490 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2491 1.1 christos rm -f conftest.er1
2492 1.1 christos cat conftest.err >&5
2493 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 1.1 christos (exit $ac_status); } &&
2495 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2496 1.1 christos || test ! -s conftest.err'
2497 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 1.1 christos (eval $ac_try) 2>&5
2499 1.1 christos ac_status=$?
2500 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 1.1 christos (exit $ac_status); }; } &&
2502 1.1 christos { ac_try='test -s conftest.$ac_objext'
2503 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 1.1 christos (eval $ac_try) 2>&5
2505 1.1 christos ac_status=$?
2506 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 1.1 christos (exit $ac_status); }; }; then
2508 1.1 christos for ac_declaration in \
2509 1.1 christos '' \
2510 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \
2511 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \
2512 1.1 christos 'extern "C" void exit (int) throw ();' \
2513 1.1 christos 'extern "C" void exit (int);' \
2514 1.2 sevan 'extern "C" [[noreturn]] void exit (int);' \
2515 1.2 sevan 'extern "C" _Noreturn void exit (int);' \
2516 1.1 christos 'void exit (int);'
2517 1.1 christos do
2518 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2519 1.1 christos /* confdefs.h. */
2520 1.1 christos _ACEOF
2521 1.1 christos cat confdefs.h >>conftest.$ac_ext
2522 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2523 1.1 christos /* end confdefs.h. */
2524 1.1 christos $ac_declaration
2525 1.1 christos #include <stdlib.h>
2526 1.1 christos int
2527 1.1 christos main ()
2528 1.1 christos {
2529 1.1 christos exit (42);
2530 1.1 christos ;
2531 1.1 christos return 0;
2532 1.1 christos }
2533 1.1 christos _ACEOF
2534 1.1 christos rm -f conftest.$ac_objext
2535 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 1.1 christos (eval $ac_compile) 2>conftest.er1
2537 1.1 christos ac_status=$?
2538 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2539 1.1 christos rm -f conftest.er1
2540 1.1 christos cat conftest.err >&5
2541 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 1.1 christos (exit $ac_status); } &&
2543 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2544 1.1 christos || test ! -s conftest.err'
2545 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 1.1 christos (eval $ac_try) 2>&5
2547 1.1 christos ac_status=$?
2548 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 1.1 christos (exit $ac_status); }; } &&
2550 1.1 christos { ac_try='test -s conftest.$ac_objext'
2551 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 1.1 christos (eval $ac_try) 2>&5
2553 1.1 christos ac_status=$?
2554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 1.1 christos (exit $ac_status); }; }; then
2556 1.1 christos :
2557 1.1 christos else
2558 1.1 christos echo "$as_me: failed program was:" >&5
2559 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2560 1.1 christos
2561 1.1 christos continue
2562 1.1 christos fi
2563 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2565 1.1 christos /* confdefs.h. */
2566 1.1 christos _ACEOF
2567 1.1 christos cat confdefs.h >>conftest.$ac_ext
2568 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2569 1.1 christos /* end confdefs.h. */
2570 1.1 christos $ac_declaration
2571 1.1 christos int
2572 1.1 christos main ()
2573 1.1 christos {
2574 1.1 christos exit (42);
2575 1.1 christos ;
2576 1.1 christos return 0;
2577 1.1 christos }
2578 1.1 christos _ACEOF
2579 1.1 christos rm -f conftest.$ac_objext
2580 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 1.1 christos (eval $ac_compile) 2>conftest.er1
2582 1.1 christos ac_status=$?
2583 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2584 1.1 christos rm -f conftest.er1
2585 1.1 christos cat conftest.err >&5
2586 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 1.1 christos (exit $ac_status); } &&
2588 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
2589 1.1 christos || test ! -s conftest.err'
2590 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 1.1 christos (eval $ac_try) 2>&5
2592 1.1 christos ac_status=$?
2593 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 1.1 christos (exit $ac_status); }; } &&
2595 1.1 christos { ac_try='test -s conftest.$ac_objext'
2596 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 1.1 christos (eval $ac_try) 2>&5
2598 1.1 christos ac_status=$?
2599 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 1.1 christos (exit $ac_status); }; }; then
2601 1.1 christos break
2602 1.1 christos else
2603 1.1 christos echo "$as_me: failed program was:" >&5
2604 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2605 1.1 christos
2606 1.1 christos fi
2607 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 1.1 christos done
2609 1.1 christos rm -f conftest*
2610 1.1 christos if test -n "$ac_declaration"; then
2611 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h
2612 1.1 christos echo $ac_declaration >>confdefs.h
2613 1.1 christos echo '#endif' >>confdefs.h
2614 1.1 christos fi
2615 1.1 christos
2616 1.1 christos else
2617 1.1 christos echo "$as_me: failed program was:" >&5
2618 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2619 1.1 christos
2620 1.1 christos fi
2621 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 1.1 christos ac_ext=c
2623 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2624 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627 1.1 christos
2628 1.1 christos ac_ext=cc
2629 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
2630 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2633 1.1 christos if test -n "$ac_tool_prefix"; then
2634 1.1 christos for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2635 1.1 christos do
2636 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 1.1 christos if test "${ac_cv_prog_CXX+set}" = set; then
2641 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2642 1.1 christos else
2643 1.1 christos if test -n "$CXX"; then
2644 1.1 christos ac_cv_prog_CXX="$CXX" # Let the user override the test.
2645 1.1 christos else
2646 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 1.1 christos for as_dir in $PATH
2648 1.1 christos do
2649 1.1 christos IFS=$as_save_IFS
2650 1.1 christos test -z "$as_dir" && as_dir=.
2651 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2652 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 1.1 christos ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2654 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 1.1 christos break 2
2656 1.1 christos fi
2657 1.1 christos done
2658 1.1 christos done
2659 1.1 christos
2660 1.1 christos fi
2661 1.1 christos fi
2662 1.1 christos CXX=$ac_cv_prog_CXX
2663 1.1 christos if test -n "$CXX"; then
2664 1.1 christos echo "$as_me:$LINENO: result: $CXX" >&5
2665 1.1 christos echo "${ECHO_T}$CXX" >&6
2666 1.1 christos else
2667 1.1 christos echo "$as_me:$LINENO: result: no" >&5
2668 1.1 christos echo "${ECHO_T}no" >&6
2669 1.1 christos fi
2670 1.1 christos
2671 1.1 christos test -n "$CXX" && break
2672 1.1 christos done
2673 1.1 christos fi
2674 1.1 christos if test -z "$CXX"; then
2675 1.1 christos ac_ct_CXX=$CXX
2676 1.1 christos for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2677 1.1 christos do
2678 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 1.1 christos set dummy $ac_prog; ac_word=$2
2680 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 1.1 christos if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2683 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2684 1.1 christos else
2685 1.1 christos if test -n "$ac_ct_CXX"; then
2686 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2687 1.1 christos else
2688 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 1.1 christos for as_dir in $PATH
2690 1.1 christos do
2691 1.1 christos IFS=$as_save_IFS
2692 1.1 christos test -z "$as_dir" && as_dir=.
2693 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2694 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_prog"
2696 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 1.1 christos break 2
2698 1.1 christos fi
2699 1.1 christos done
2700 1.1 christos done
2701 1.1 christos
2702 1.1 christos fi
2703 1.1 christos fi
2704 1.1 christos ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2705 1.1 christos if test -n "$ac_ct_CXX"; then
2706 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2707 1.1 christos echo "${ECHO_T}$ac_ct_CXX" >&6
2708 1.1 christos else
2709 1.1 christos echo "$as_me:$LINENO: result: no" >&5
2710 1.1 christos echo "${ECHO_T}no" >&6
2711 1.1 christos fi
2712 1.1 christos
2713 1.1 christos test -n "$ac_ct_CXX" && break
2714 1.1 christos done
2715 1.1 christos
2716 1.1 christos if test "x$ac_ct_CXX" = x; then
2717 1.1 christos CXX="g++"
2718 1.1 christos else
2719 1.1 christos if test "$build" != "$host"; then
2720 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 1.1 christos whose name does not start with the host triplet. If you think this
2722 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2723 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 1.1 christos whose name does not start with the host triplet. If you think this
2725 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2726 1.1 christos fi
2727 1.1 christos CXX=$ac_ct_CXX
2728 1.1 christos fi
2729 1.1 christos fi
2730 1.1 christos
2731 1.1 christos
2732 1.1 christos # Provide some information about the compiler.
2733 1.1 christos echo "$as_me:$LINENO:" \
2734 1.1 christos "checking for C++ compiler version" >&5
2735 1.1 christos ac_compiler=`set X $ac_compile; echo $2`
2736 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2737 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5
2738 1.1 christos ac_status=$?
2739 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 1.1 christos (exit $ac_status); }
2741 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2742 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5
2743 1.1 christos ac_status=$?
2744 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 1.1 christos (exit $ac_status); }
2746 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2747 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5
2748 1.1 christos ac_status=$?
2749 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 1.1 christos (exit $ac_status); }
2751 1.1 christos
2752 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2753 1.1 christos echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2754 1.1 christos if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2755 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2756 1.1 christos else
2757 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2758 1.1 christos /* confdefs.h. */
2759 1.1 christos _ACEOF
2760 1.1 christos cat confdefs.h >>conftest.$ac_ext
2761 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2762 1.1 christos /* end confdefs.h. */
2763 1.1 christos
2764 1.1 christos int
2765 1.1 christos main ()
2766 1.1 christos {
2767 1.1 christos #ifndef __GNUC__
2768 1.1 christos choke me
2769 1.1 christos #endif
2770 1.1 christos
2771 1.1 christos ;
2772 1.1 christos return 0;
2773 1.1 christos }
2774 1.1 christos _ACEOF
2775 1.1 christos rm -f conftest.$ac_objext
2776 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 1.1 christos (eval $ac_compile) 2>conftest.er1
2778 1.1 christos ac_status=$?
2779 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2780 1.1 christos rm -f conftest.er1
2781 1.1 christos cat conftest.err >&5
2782 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 1.1 christos (exit $ac_status); } &&
2784 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
2785 1.1 christos || test ! -s conftest.err'
2786 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 1.1 christos (eval $ac_try) 2>&5
2788 1.1 christos ac_status=$?
2789 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 1.1 christos (exit $ac_status); }; } &&
2791 1.1 christos { ac_try='test -s conftest.$ac_objext'
2792 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 1.1 christos (eval $ac_try) 2>&5
2794 1.1 christos ac_status=$?
2795 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 1.1 christos (exit $ac_status); }; }; then
2797 1.1 christos ac_compiler_gnu=yes
2798 1.1 christos else
2799 1.1 christos echo "$as_me: failed program was:" >&5
2800 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2801 1.1 christos
2802 1.1 christos ac_compiler_gnu=no
2803 1.1 christos fi
2804 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 1.1 christos ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2806 1.1 christos
2807 1.1 christos fi
2808 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2809 1.1 christos echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2810 1.1 christos GXX=`test $ac_compiler_gnu = yes && echo yes`
2811 1.1 christos ac_test_CXXFLAGS=${CXXFLAGS+set}
2812 1.1 christos ac_save_CXXFLAGS=$CXXFLAGS
2813 1.1 christos echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2814 1.1 christos echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2815 1.1 christos if test "${ac_cv_prog_cxx_g+set}" = set; then
2816 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2817 1.1 christos else
2818 1.1 christos ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2819 1.1 christos ac_cxx_werror_flag=yes
2820 1.1 christos ac_cv_prog_cxx_g=no
2821 1.1 christos CXXFLAGS="-g"
2822 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2823 1.1 christos /* confdefs.h. */
2824 1.1 christos _ACEOF
2825 1.1 christos cat confdefs.h >>conftest.$ac_ext
2826 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2827 1.1 christos /* end confdefs.h. */
2828 1.1 christos
2829 1.1 christos int
2830 1.1 christos main ()
2831 1.1 christos {
2832 1.1 christos
2833 1.1 christos ;
2834 1.1 christos return 0;
2835 1.1 christos }
2836 1.1 christos _ACEOF
2837 1.1 christos rm -f conftest.$ac_objext
2838 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 1.1 christos (eval $ac_compile) 2>conftest.er1
2840 1.1 christos ac_status=$?
2841 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2842 1.1 christos rm -f conftest.er1
2843 1.1 christos cat conftest.err >&5
2844 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 1.1 christos (exit $ac_status); } &&
2846 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
2847 1.1 christos || test ! -s conftest.err'
2848 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 1.1 christos (eval $ac_try) 2>&5
2850 1.1 christos ac_status=$?
2851 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 1.1 christos (exit $ac_status); }; } &&
2853 1.1 christos { ac_try='test -s conftest.$ac_objext'
2854 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 1.1 christos (eval $ac_try) 2>&5
2856 1.1 christos ac_status=$?
2857 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 1.1 christos (exit $ac_status); }; }; then
2859 1.1 christos ac_cv_prog_cxx_g=yes
2860 1.1 christos else
2861 1.1 christos echo "$as_me: failed program was:" >&5
2862 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2863 1.1 christos
2864 1.1 christos CXXFLAGS=""
2865 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2866 1.1 christos /* confdefs.h. */
2867 1.1 christos _ACEOF
2868 1.1 christos cat confdefs.h >>conftest.$ac_ext
2869 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2870 1.1 christos /* end confdefs.h. */
2871 1.1 christos
2872 1.1 christos int
2873 1.1 christos main ()
2874 1.1 christos {
2875 1.1 christos
2876 1.1 christos ;
2877 1.1 christos return 0;
2878 1.1 christos }
2879 1.1 christos _ACEOF
2880 1.1 christos rm -f conftest.$ac_objext
2881 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 1.1 christos (eval $ac_compile) 2>conftest.er1
2883 1.1 christos ac_status=$?
2884 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2885 1.1 christos rm -f conftest.er1
2886 1.1 christos cat conftest.err >&5
2887 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 1.1 christos (exit $ac_status); } &&
2889 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
2890 1.1 christos || test ! -s conftest.err'
2891 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 1.1 christos (eval $ac_try) 2>&5
2893 1.1 christos ac_status=$?
2894 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 1.1 christos (exit $ac_status); }; } &&
2896 1.1 christos { ac_try='test -s conftest.$ac_objext'
2897 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 1.1 christos (eval $ac_try) 2>&5
2899 1.1 christos ac_status=$?
2900 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 1.1 christos (exit $ac_status); }; }; then
2902 1.1 christos :
2903 1.1 christos else
2904 1.1 christos echo "$as_me: failed program was:" >&5
2905 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2906 1.1 christos
2907 1.1 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2908 1.1 christos CXXFLAGS="-g"
2909 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2910 1.1 christos /* confdefs.h. */
2911 1.1 christos _ACEOF
2912 1.1 christos cat confdefs.h >>conftest.$ac_ext
2913 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2914 1.1 christos /* end confdefs.h. */
2915 1.1 christos
2916 1.1 christos int
2917 1.1 christos main ()
2918 1.1 christos {
2919 1.1 christos
2920 1.1 christos ;
2921 1.1 christos return 0;
2922 1.1 christos }
2923 1.1 christos _ACEOF
2924 1.1 christos rm -f conftest.$ac_objext
2925 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 1.1 christos (eval $ac_compile) 2>conftest.er1
2927 1.1 christos ac_status=$?
2928 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2929 1.1 christos rm -f conftest.er1
2930 1.1 christos cat conftest.err >&5
2931 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 1.1 christos (exit $ac_status); } &&
2933 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
2934 1.1 christos || test ! -s conftest.err'
2935 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 1.1 christos (eval $ac_try) 2>&5
2937 1.1 christos ac_status=$?
2938 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 1.1 christos (exit $ac_status); }; } &&
2940 1.1 christos { ac_try='test -s conftest.$ac_objext'
2941 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 1.1 christos (eval $ac_try) 2>&5
2943 1.1 christos ac_status=$?
2944 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 1.1 christos (exit $ac_status); }; }; then
2946 1.1 christos ac_cv_prog_cxx_g=yes
2947 1.1 christos else
2948 1.1 christos echo "$as_me: failed program was:" >&5
2949 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2950 1.1 christos
2951 1.1 christos fi
2952 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 1.1 christos fi
2954 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 1.1 christos fi
2956 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 1.1 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2958 1.1 christos fi
2959 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2960 1.1 christos echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2961 1.1 christos if test "$ac_test_CXXFLAGS" = set; then
2962 1.1 christos CXXFLAGS=$ac_save_CXXFLAGS
2963 1.1 christos elif test $ac_cv_prog_cxx_g = yes; then
2964 1.1 christos if test "$GXX" = yes; then
2965 1.1 christos CXXFLAGS="-g -O2"
2966 1.1 christos else
2967 1.1 christos CXXFLAGS="-g"
2968 1.1 christos fi
2969 1.1 christos else
2970 1.1 christos if test "$GXX" = yes; then
2971 1.1 christos CXXFLAGS="-O2"
2972 1.1 christos else
2973 1.1 christos CXXFLAGS=
2974 1.1 christos fi
2975 1.1 christos fi
2976 1.1 christos for ac_declaration in \
2977 1.1 christos '' \
2978 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \
2979 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \
2980 1.1 christos 'extern "C" void exit (int) throw ();' \
2981 1.1 christos 'extern "C" void exit (int);' \
2982 1.2 sevan 'extern "C" [[noreturn]] void exit (int);' \
2983 1.2 sevan 'extern "C" _Noreturn void exit (int);' \
2984 1.1 christos 'void exit (int);'
2985 1.1 christos do
2986 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2987 1.1 christos /* confdefs.h. */
2988 1.1 christos _ACEOF
2989 1.1 christos cat confdefs.h >>conftest.$ac_ext
2990 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2991 1.1 christos /* end confdefs.h. */
2992 1.1 christos $ac_declaration
2993 1.1 christos #include <stdlib.h>
2994 1.1 christos int
2995 1.1 christos main ()
2996 1.1 christos {
2997 1.1 christos exit (42);
2998 1.1 christos ;
2999 1.1 christos return 0;
3000 1.1 christos }
3001 1.1 christos _ACEOF
3002 1.1 christos rm -f conftest.$ac_objext
3003 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004 1.1 christos (eval $ac_compile) 2>conftest.er1
3005 1.1 christos ac_status=$?
3006 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3007 1.1 christos rm -f conftest.er1
3008 1.1 christos cat conftest.err >&5
3009 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 1.1 christos (exit $ac_status); } &&
3011 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
3012 1.1 christos || test ! -s conftest.err'
3013 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 1.1 christos (eval $ac_try) 2>&5
3015 1.1 christos ac_status=$?
3016 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 1.1 christos (exit $ac_status); }; } &&
3018 1.1 christos { ac_try='test -s conftest.$ac_objext'
3019 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 1.1 christos (eval $ac_try) 2>&5
3021 1.1 christos ac_status=$?
3022 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 1.1 christos (exit $ac_status); }; }; then
3024 1.1 christos :
3025 1.1 christos else
3026 1.1 christos echo "$as_me: failed program was:" >&5
3027 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3028 1.1 christos
3029 1.1 christos continue
3030 1.1 christos fi
3031 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3032 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3033 1.1 christos /* confdefs.h. */
3034 1.1 christos _ACEOF
3035 1.1 christos cat confdefs.h >>conftest.$ac_ext
3036 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3037 1.1 christos /* end confdefs.h. */
3038 1.1 christos $ac_declaration
3039 1.1 christos int
3040 1.1 christos main ()
3041 1.1 christos {
3042 1.1 christos exit (42);
3043 1.1 christos ;
3044 1.1 christos return 0;
3045 1.1 christos }
3046 1.1 christos _ACEOF
3047 1.1 christos rm -f conftest.$ac_objext
3048 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 1.1 christos (eval $ac_compile) 2>conftest.er1
3050 1.1 christos ac_status=$?
3051 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3052 1.1 christos rm -f conftest.er1
3053 1.1 christos cat conftest.err >&5
3054 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 1.1 christos (exit $ac_status); } &&
3056 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
3057 1.1 christos || test ! -s conftest.err'
3058 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 1.1 christos (eval $ac_try) 2>&5
3060 1.1 christos ac_status=$?
3061 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 1.1 christos (exit $ac_status); }; } &&
3063 1.1 christos { ac_try='test -s conftest.$ac_objext'
3064 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 1.1 christos (eval $ac_try) 2>&5
3066 1.1 christos ac_status=$?
3067 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 1.1 christos (exit $ac_status); }; }; then
3069 1.1 christos break
3070 1.1 christos else
3071 1.1 christos echo "$as_me: failed program was:" >&5
3072 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3073 1.1 christos
3074 1.1 christos fi
3075 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3076 1.1 christos done
3077 1.1 christos rm -f conftest*
3078 1.1 christos if test -n "$ac_declaration"; then
3079 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h
3080 1.1 christos echo $ac_declaration >>confdefs.h
3081 1.1 christos echo '#endif' >>confdefs.h
3082 1.1 christos fi
3083 1.1 christos
3084 1.1 christos ac_ext=c
3085 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3086 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 1.1 christos
3090 1.1 christos
3091 1.1 christos
3092 1.1 christos ac_ext=cc
3093 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
3094 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3097 1.1 christos
3098 1.1 christos if test "$cross_compiling" = no; then
3099 1.1 christos echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3100 1.1 christos echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3101 1.1 christos fi
3102 1.1 christos if test "$cross_compiling" = yes; then
3103 1.1 christos :
3104 1.1 christos else
3105 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3106 1.1 christos
3107 1.1 christos /* confdefs.h. */
3108 1.1 christos _ACEOF
3109 1.1 christos cat confdefs.h >>conftest.$ac_ext
3110 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3111 1.1 christos /* end confdefs.h. */
3112 1.1 christos
3113 1.1 christos
3114 1.1 christos int main() {
3115 1.1 christos return 0;
3116 1.1 christos }
3117 1.1 christos
3118 1.1 christos
3119 1.1 christos
3120 1.1 christos _ACEOF
3121 1.1 christos rm -f conftest$ac_exeext
3122 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3123 1.1 christos (eval $ac_link) 2>&5
3124 1.1 christos ac_status=$?
3125 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3127 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 1.1 christos (eval $ac_try) 2>&5
3129 1.1 christos ac_status=$?
3130 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 1.1 christos (exit $ac_status); }; }; then
3132 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3133 1.1 christos echo "${ECHO_T}yes" >&6
3134 1.1 christos else
3135 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
3136 1.1 christos echo "$as_me: failed program was:" >&5
3137 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3138 1.1 christos
3139 1.1 christos ( exit $ac_status )
3140 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3141 1.1 christos echo "${ECHO_T}no" >&6
3142 1.1 christos { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3143 1.1 christos echo "$as_me: error: a working C++ compiler is required" >&2;}
3144 1.1 christos { (exit 1); exit 1; }; }
3145 1.1 christos fi
3146 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3147 1.1 christos fi
3148 1.1 christos
3149 1.1 christos if test "$cross_compiling" = no; then
3150 1.1 christos echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3151 1.1 christos echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3152 1.1 christos fi
3153 1.1 christos if test "$cross_compiling" = yes; then
3154 1.1 christos :
3155 1.1 christos else
3156 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3157 1.1 christos
3158 1.1 christos /* confdefs.h. */
3159 1.1 christos _ACEOF
3160 1.1 christos cat confdefs.h >>conftest.$ac_ext
3161 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3162 1.1 christos /* end confdefs.h. */
3163 1.1 christos
3164 1.1 christos
3165 1.1 christos extern "C" {
3166 1.1 christos void _exit(int);
3167 1.1 christos }
3168 1.1 christos
3169 1.1 christos int i;
3170 1.1 christos struct A {
3171 1.1 christos char dummy;
3172 1.1 christos A() { i = 1; }
3173 1.1 christos ~A() { if (i == 1) _exit(0); }
3174 1.1 christos };
3175 1.1 christos
3176 1.1 christos A a;
3177 1.1 christos
3178 1.1 christos int main()
3179 1.1 christos {
3180 1.1 christos return 1;
3181 1.1 christos }
3182 1.1 christos
3183 1.1 christos
3184 1.1 christos
3185 1.1 christos _ACEOF
3186 1.1 christos rm -f conftest$ac_exeext
3187 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188 1.1 christos (eval $ac_link) 2>&5
3189 1.1 christos ac_status=$?
3190 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3192 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 1.1 christos (eval $ac_try) 2>&5
3194 1.1 christos ac_status=$?
3195 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 1.1 christos (exit $ac_status); }; }; then
3197 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3198 1.1 christos echo "${ECHO_T}yes" >&6
3199 1.1 christos else
3200 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
3201 1.1 christos echo "$as_me: failed program was:" >&5
3202 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3203 1.1 christos
3204 1.1 christos ( exit $ac_status )
3205 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3206 1.1 christos echo "${ECHO_T}no" >&6
3207 1.1 christos { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3208 1.1 christos echo "$as_me: error: a working C++ compiler is required" >&2;}
3209 1.1 christos { (exit 1); exit 1; }; }
3210 1.1 christos fi
3211 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3212 1.1 christos fi
3213 1.1 christos
3214 1.1 christos echo "$as_me:$LINENO: checking that header files support C++" >&5
3215 1.1 christos echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3216 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3217 1.1 christos
3218 1.1 christos /* confdefs.h. */
3219 1.1 christos _ACEOF
3220 1.1 christos cat confdefs.h >>conftest.$ac_ext
3221 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3222 1.1 christos /* end confdefs.h. */
3223 1.1 christos
3224 1.1 christos
3225 1.1 christos #include <stdio.h>
3226 1.1 christos
3227 1.1 christos
3228 1.1 christos int
3229 1.1 christos main ()
3230 1.1 christos {
3231 1.1 christos
3232 1.1 christos
3233 1.1 christos fopen(0, 0);
3234 1.1 christos
3235 1.1 christos
3236 1.1 christos ;
3237 1.1 christos return 0;
3238 1.1 christos }
3239 1.1 christos
3240 1.1 christos _ACEOF
3241 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3242 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3243 1.1 christos (eval $ac_link) 2>conftest.er1
3244 1.1 christos ac_status=$?
3245 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3246 1.1 christos rm -f conftest.er1
3247 1.1 christos cat conftest.err >&5
3248 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 1.1 christos (exit $ac_status); } &&
3250 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
3251 1.1 christos || test ! -s conftest.err'
3252 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 1.1 christos (eval $ac_try) 2>&5
3254 1.1 christos ac_status=$?
3255 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 1.1 christos (exit $ac_status); }; } &&
3257 1.1 christos { ac_try='test -s conftest$ac_exeext'
3258 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 1.1 christos (eval $ac_try) 2>&5
3260 1.1 christos ac_status=$?
3261 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 1.1 christos (exit $ac_status); }; }; then
3263 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3264 1.1 christos echo "${ECHO_T}yes" >&6
3265 1.1 christos else
3266 1.1 christos echo "$as_me: failed program was:" >&5
3267 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3268 1.1 christos
3269 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3270 1.1 christos echo "${ECHO_T}no" >&6
3271 1.1 christos { { echo "$as_me:$LINENO: error: header files do not support C++
3272 1.1 christos (if you are using a version of gcc/g++ earlier than 2.5,
3273 1.1 christos you should install libg++)" >&5
3274 1.1 christos echo "$as_me: error: header files do not support C++
3275 1.1 christos (if you are using a version of gcc/g++ earlier than 2.5,
3276 1.1 christos you should install libg++)" >&2;}
3277 1.1 christos { (exit 1); exit 1; }; }
3278 1.1 christos fi
3279 1.1 christos rm -f conftest.err conftest.$ac_objext \
3280 1.1 christos conftest$ac_exeext conftest.$ac_ext
3281 1.1 christos ac_ext=c
3282 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3283 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 1.1 christos
3287 1.1 christos
3288 1.1 christos echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3289 1.1 christos echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3290 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3291 1.1 christos
3292 1.1 christos /* confdefs.h. */
3293 1.1 christos _ACEOF
3294 1.1 christos cat confdefs.h >>conftest.$ac_ext
3295 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3296 1.1 christos /* end confdefs.h. */
3297 1.1 christos
3298 1.1 christos
3299 1.1 christos /* Treat any failure as ASCII for compatibility with existing art.
3300 1.1 christos Use compile-time rather than run-time tests for cross-compiler
3301 1.1 christos tolerance. */
3302 1.1 christos #if '0' != 240
3303 1.1 christos make an error "Character set is not EBCDIC"
3304 1.1 christos #endif
3305 1.1 christos
3306 1.1 christos
3307 1.1 christos int
3308 1.1 christos main ()
3309 1.1 christos {
3310 1.1 christos
3311 1.1 christos ;
3312 1.1 christos return 0;
3313 1.1 christos }
3314 1.1 christos
3315 1.1 christos _ACEOF
3316 1.1 christos rm -f conftest.$ac_objext
3317 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 1.1 christos (eval $ac_compile) 2>conftest.er1
3319 1.1 christos ac_status=$?
3320 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3321 1.1 christos rm -f conftest.er1
3322 1.1 christos cat conftest.err >&5
3323 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 1.1 christos (exit $ac_status); } &&
3325 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
3326 1.1 christos || test ! -s conftest.err'
3327 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 1.1 christos (eval $ac_try) 2>&5
3329 1.1 christos ac_status=$?
3330 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 1.1 christos (exit $ac_status); }; } &&
3332 1.1 christos { ac_try='test -s conftest.$ac_objext'
3333 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 1.1 christos (eval $ac_try) 2>&5
3335 1.1 christos ac_status=$?
3336 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 1.1 christos (exit $ac_status); }; }; then
3338 1.1 christos groff_cv_ebcdic="yes"
3339 1.1 christos TTYDEVDIRS="font/devcp1047"
3340 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3341 1.1 christos echo "${ECHO_T}yes" >&6
3342 1.1 christos
3343 1.1 christos cat >>confdefs.h <<\_ACEOF
3344 1.1 christos #define IS_EBCDIC_HOST 1
3345 1.1 christos _ACEOF
3346 1.1 christos
3347 1.1 christos else
3348 1.1 christos echo "$as_me: failed program was:" >&5
3349 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3350 1.1 christos
3351 1.1 christos groff_cv_ebcdic="no"
3352 1.1 christos TTYDEVDIRS="font/devascii font/devlatin1"
3353 1.1 christos OTHERDEVDIRS="font/devlj4 font/devlbp"
3354 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3355 1.1 christos echo "${ECHO_T}no" >&6
3356 1.1 christos fi
3357 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 1.1 christos
3359 1.1 christos
3360 1.1 christos if test "$groff_cv_ebcdic" = "yes"; then
3361 1.1 christos echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3362 1.1 christos echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3363 1.1 christos case `uname` in
3364 1.1 christos OS/390)
3365 1.1 christos CFLAGS="$CFLAGS -D_ALL_SOURCE"
3366 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3367 1.1 christos echo "${ECHO_T}yes" >&6 ;;
3368 1.1 christos *)
3369 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3370 1.1 christos echo "${ECHO_T}no" >&6 ;;
3371 1.1 christos esac
3372 1.1 christos fi
3373 1.1 christos ac_ext=c
3374 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3375 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378 1.1 christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3379 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3380 1.1 christos # On Suns, sometimes $CPP names a directory.
3381 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
3382 1.1 christos CPP=
3383 1.1 christos fi
3384 1.1 christos if test -z "$CPP"; then
3385 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then
3386 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3387 1.1 christos else
3388 1.1 christos # Double quotes because CPP needs to be expanded
3389 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390 1.1 christos do
3391 1.1 christos ac_preproc_ok=false
3392 1.1 christos for ac_c_preproc_warn_flag in '' yes
3393 1.1 christos do
3394 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3395 1.1 christos # with a fresh cross-compiler works.
3396 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3397 1.1 christos # <limits.h> exists even on freestanding compilers.
3398 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3399 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3400 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3401 1.1 christos /* confdefs.h. */
3402 1.1 christos _ACEOF
3403 1.1 christos cat confdefs.h >>conftest.$ac_ext
3404 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3405 1.1 christos /* end confdefs.h. */
3406 1.1 christos #ifdef __STDC__
3407 1.1 christos # include <limits.h>
3408 1.1 christos #else
3409 1.1 christos # include <assert.h>
3410 1.1 christos #endif
3411 1.1 christos Syntax error
3412 1.1 christos _ACEOF
3413 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3414 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 1.1 christos ac_status=$?
3416 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3417 1.1 christos rm -f conftest.er1
3418 1.1 christos cat conftest.err >&5
3419 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 1.1 christos (exit $ac_status); } >/dev/null; then
3421 1.1 christos if test -s conftest.err; then
3422 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3423 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 1.1 christos else
3425 1.1 christos ac_cpp_err=
3426 1.1 christos fi
3427 1.1 christos else
3428 1.1 christos ac_cpp_err=yes
3429 1.1 christos fi
3430 1.1 christos if test -z "$ac_cpp_err"; then
3431 1.1 christos :
3432 1.1 christos else
3433 1.1 christos echo "$as_me: failed program was:" >&5
3434 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3435 1.1 christos
3436 1.1 christos # Broken: fails on valid input.
3437 1.1 christos continue
3438 1.1 christos fi
3439 1.1 christos rm -f conftest.err conftest.$ac_ext
3440 1.1 christos
3441 1.1 christos # OK, works on sane cases. Now check whether non-existent headers
3442 1.1 christos # can be detected and how.
3443 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3444 1.1 christos /* confdefs.h. */
3445 1.1 christos _ACEOF
3446 1.1 christos cat confdefs.h >>conftest.$ac_ext
3447 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3448 1.1 christos /* end confdefs.h. */
3449 1.1 christos #include <ac_nonexistent.h>
3450 1.1 christos _ACEOF
3451 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3452 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 1.1 christos ac_status=$?
3454 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3455 1.1 christos rm -f conftest.er1
3456 1.1 christos cat conftest.err >&5
3457 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 1.1 christos (exit $ac_status); } >/dev/null; then
3459 1.1 christos if test -s conftest.err; then
3460 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3461 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 1.1 christos else
3463 1.1 christos ac_cpp_err=
3464 1.1 christos fi
3465 1.1 christos else
3466 1.1 christos ac_cpp_err=yes
3467 1.1 christos fi
3468 1.1 christos if test -z "$ac_cpp_err"; then
3469 1.1 christos # Broken: success on invalid input.
3470 1.1 christos continue
3471 1.1 christos else
3472 1.1 christos echo "$as_me: failed program was:" >&5
3473 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3474 1.1 christos
3475 1.1 christos # Passes both tests.
3476 1.1 christos ac_preproc_ok=:
3477 1.1 christos break
3478 1.1 christos fi
3479 1.1 christos rm -f conftest.err conftest.$ac_ext
3480 1.1 christos
3481 1.1 christos done
3482 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 1.1 christos rm -f conftest.err conftest.$ac_ext
3484 1.1 christos if $ac_preproc_ok; then
3485 1.1 christos break
3486 1.1 christos fi
3487 1.1 christos
3488 1.1 christos done
3489 1.1 christos ac_cv_prog_CPP=$CPP
3490 1.1 christos
3491 1.1 christos fi
3492 1.1 christos CPP=$ac_cv_prog_CPP
3493 1.1 christos else
3494 1.1 christos ac_cv_prog_CPP=$CPP
3495 1.1 christos fi
3496 1.1 christos echo "$as_me:$LINENO: result: $CPP" >&5
3497 1.1 christos echo "${ECHO_T}$CPP" >&6
3498 1.1 christos ac_preproc_ok=false
3499 1.1 christos for ac_c_preproc_warn_flag in '' yes
3500 1.1 christos do
3501 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3502 1.1 christos # with a fresh cross-compiler works.
3503 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 1.1 christos # <limits.h> exists even on freestanding compilers.
3505 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3506 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3507 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3508 1.1 christos /* confdefs.h. */
3509 1.1 christos _ACEOF
3510 1.1 christos cat confdefs.h >>conftest.$ac_ext
3511 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3512 1.1 christos /* end confdefs.h. */
3513 1.1 christos #ifdef __STDC__
3514 1.1 christos # include <limits.h>
3515 1.1 christos #else
3516 1.1 christos # include <assert.h>
3517 1.1 christos #endif
3518 1.1 christos Syntax error
3519 1.1 christos _ACEOF
3520 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3521 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3522 1.1 christos ac_status=$?
3523 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3524 1.1 christos rm -f conftest.er1
3525 1.1 christos cat conftest.err >&5
3526 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 1.1 christos (exit $ac_status); } >/dev/null; then
3528 1.1 christos if test -s conftest.err; then
3529 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3530 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 1.1 christos else
3532 1.1 christos ac_cpp_err=
3533 1.1 christos fi
3534 1.1 christos else
3535 1.1 christos ac_cpp_err=yes
3536 1.1 christos fi
3537 1.1 christos if test -z "$ac_cpp_err"; then
3538 1.1 christos :
3539 1.1 christos else
3540 1.1 christos echo "$as_me: failed program was:" >&5
3541 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3542 1.1 christos
3543 1.1 christos # Broken: fails on valid input.
3544 1.1 christos continue
3545 1.1 christos fi
3546 1.1 christos rm -f conftest.err conftest.$ac_ext
3547 1.1 christos
3548 1.1 christos # OK, works on sane cases. Now check whether non-existent headers
3549 1.1 christos # can be detected and how.
3550 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3551 1.1 christos /* confdefs.h. */
3552 1.1 christos _ACEOF
3553 1.1 christos cat confdefs.h >>conftest.$ac_ext
3554 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3555 1.1 christos /* end confdefs.h. */
3556 1.1 christos #include <ac_nonexistent.h>
3557 1.1 christos _ACEOF
3558 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3559 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3560 1.1 christos ac_status=$?
3561 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3562 1.1 christos rm -f conftest.er1
3563 1.1 christos cat conftest.err >&5
3564 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 1.1 christos (exit $ac_status); } >/dev/null; then
3566 1.1 christos if test -s conftest.err; then
3567 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3568 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 1.1 christos else
3570 1.1 christos ac_cpp_err=
3571 1.1 christos fi
3572 1.1 christos else
3573 1.1 christos ac_cpp_err=yes
3574 1.1 christos fi
3575 1.1 christos if test -z "$ac_cpp_err"; then
3576 1.1 christos # Broken: success on invalid input.
3577 1.1 christos continue
3578 1.1 christos else
3579 1.1 christos echo "$as_me: failed program was:" >&5
3580 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3581 1.1 christos
3582 1.1 christos # Passes both tests.
3583 1.1 christos ac_preproc_ok=:
3584 1.1 christos break
3585 1.1 christos fi
3586 1.1 christos rm -f conftest.err conftest.$ac_ext
3587 1.1 christos
3588 1.1 christos done
3589 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 1.1 christos rm -f conftest.err conftest.$ac_ext
3591 1.1 christos if $ac_preproc_ok; then
3592 1.1 christos :
3593 1.1 christos else
3594 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3595 1.1 christos See \`config.log' for more details." >&5
3596 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3597 1.1 christos See \`config.log' for more details." >&2;}
3598 1.1 christos { (exit 1); exit 1; }; }
3599 1.1 christos fi
3600 1.1 christos
3601 1.1 christos ac_ext=c
3602 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3603 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 1.1 christos
3607 1.1 christos
3608 1.1 christos echo "$as_me:$LINENO: checking for X" >&5
3609 1.1 christos echo $ECHO_N "checking for X... $ECHO_C" >&6
3610 1.1 christos
3611 1.1 christos
3612 1.1 christos # Check whether --with-x or --without-x was given.
3613 1.1 christos if test "${with_x+set}" = set; then
3614 1.1 christos withval="$with_x"
3615 1.1 christos
3616 1.1 christos fi;
3617 1.1 christos # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3618 1.1 christos if test "x$with_x" = xno; then
3619 1.1 christos # The user explicitly disabled X.
3620 1.1 christos have_x=disabled
3621 1.1 christos else
3622 1.1 christos if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3623 1.1 christos # Both variables are already set.
3624 1.1 christos have_x=yes
3625 1.1 christos else
3626 1.1 christos if test "${ac_cv_have_x+set}" = set; then
3627 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3628 1.1 christos else
3629 1.1 christos # One or both of the vars are not set, and there is no cached value.
3630 1.1 christos ac_x_includes=no ac_x_libraries=no
3631 1.1 christos rm -f -r conftest.dir
3632 1.1 christos if mkdir conftest.dir; then
3633 1.1 christos cd conftest.dir
3634 1.1 christos # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3635 1.1 christos cat >Imakefile <<'_ACEOF'
3636 1.1 christos acfindx:
3637 1.1 christos @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3638 1.1 christos _ACEOF
3639 1.1 christos if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3640 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3641 1.1 christos eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3642 1.1 christos # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3643 1.1 christos for ac_extension in a so sl; do
3644 1.1 christos if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3645 1.1 christos test -f $ac_im_libdir/libX11.$ac_extension; then
3646 1.1 christos ac_im_usrlibdir=$ac_im_libdir; break
3647 1.1 christos fi
3648 1.1 christos done
3649 1.1 christos # Screen out bogus values from the imake configuration. They are
3650 1.1 christos # bogus both because they are the default anyway, and because
3651 1.1 christos # using them would break gcc on systems where it needs fixed includes.
3652 1.1 christos case $ac_im_incroot in
3653 1.1 christos /usr/include) ;;
3654 1.1 christos *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3655 1.1 christos esac
3656 1.1 christos case $ac_im_usrlibdir in
3657 1.1 christos /usr/lib | /lib) ;;
3658 1.1 christos *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3659 1.1 christos esac
3660 1.1 christos fi
3661 1.1 christos cd ..
3662 1.1 christos rm -f -r conftest.dir
3663 1.1 christos fi
3664 1.1 christos
3665 1.1 christos # Standard set of common directories for X headers.
3666 1.1 christos # Check X11 before X11Rn because it is often a symlink to the current release.
3667 1.1 christos ac_x_header_dirs='
3668 1.1 christos /usr/X11/include
3669 1.1 christos /usr/X11R6/include
3670 1.1 christos /usr/X11R5/include
3671 1.1 christos /usr/X11R4/include
3672 1.1 christos
3673 1.1 christos /usr/include/X11
3674 1.1 christos /usr/include/X11R6
3675 1.1 christos /usr/include/X11R5
3676 1.1 christos /usr/include/X11R4
3677 1.1 christos
3678 1.1 christos /usr/local/X11/include
3679 1.1 christos /usr/local/X11R6/include
3680 1.1 christos /usr/local/X11R5/include
3681 1.1 christos /usr/local/X11R4/include
3682 1.1 christos
3683 1.1 christos /usr/local/include/X11
3684 1.1 christos /usr/local/include/X11R6
3685 1.1 christos /usr/local/include/X11R5
3686 1.1 christos /usr/local/include/X11R4
3687 1.1 christos
3688 1.1 christos /usr/X386/include
3689 1.1 christos /usr/x386/include
3690 1.1 christos /usr/XFree86/include/X11
3691 1.1 christos
3692 1.1 christos /usr/include
3693 1.1 christos /usr/local/include
3694 1.1 christos /usr/unsupported/include
3695 1.1 christos /usr/athena/include
3696 1.1 christos /usr/local/x11r5/include
3697 1.1 christos /usr/lpp/Xamples/include
3698 1.1 christos
3699 1.1 christos /usr/openwin/include
3700 1.1 christos /usr/openwin/share/include'
3701 1.1 christos
3702 1.1 christos if test "$ac_x_includes" = no; then
3703 1.1 christos # Guess where to find include files, by looking for Intrinsic.h.
3704 1.1 christos # First, try using that file with no special directory specified.
3705 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3706 1.1 christos /* confdefs.h. */
3707 1.1 christos _ACEOF
3708 1.1 christos cat confdefs.h >>conftest.$ac_ext
3709 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3710 1.1 christos /* end confdefs.h. */
3711 1.1 christos #include <X11/Intrinsic.h>
3712 1.1 christos _ACEOF
3713 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715 1.1 christos ac_status=$?
3716 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3717 1.1 christos rm -f conftest.er1
3718 1.1 christos cat conftest.err >&5
3719 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 1.1 christos (exit $ac_status); } >/dev/null; then
3721 1.1 christos if test -s conftest.err; then
3722 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3723 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3724 1.1 christos else
3725 1.1 christos ac_cpp_err=
3726 1.1 christos fi
3727 1.1 christos else
3728 1.1 christos ac_cpp_err=yes
3729 1.1 christos fi
3730 1.1 christos if test -z "$ac_cpp_err"; then
3731 1.1 christos # We can compile using X headers with no special include directory.
3732 1.1 christos ac_x_includes=
3733 1.1 christos else
3734 1.1 christos echo "$as_me: failed program was:" >&5
3735 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3736 1.1 christos
3737 1.1 christos for ac_dir in $ac_x_header_dirs; do
3738 1.1 christos if test -r "$ac_dir/X11/Intrinsic.h"; then
3739 1.1 christos ac_x_includes=$ac_dir
3740 1.1 christos break
3741 1.1 christos fi
3742 1.1 christos done
3743 1.1 christos fi
3744 1.1 christos rm -f conftest.err conftest.$ac_ext
3745 1.1 christos fi # $ac_x_includes = no
3746 1.1 christos
3747 1.1 christos if test "$ac_x_libraries" = no; then
3748 1.1 christos # Check for the libraries.
3749 1.1 christos # See if we find them without any special options.
3750 1.1 christos # Don't add to $LIBS permanently.
3751 1.1 christos ac_save_LIBS=$LIBS
3752 1.1 christos LIBS="-lXt $LIBS"
3753 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3754 1.1 christos /* confdefs.h. */
3755 1.1 christos _ACEOF
3756 1.1 christos cat confdefs.h >>conftest.$ac_ext
3757 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3758 1.1 christos /* end confdefs.h. */
3759 1.1 christos #include <X11/Intrinsic.h>
3760 1.1 christos int
3761 1.1 christos main ()
3762 1.1 christos {
3763 1.1 christos XtMalloc (0)
3764 1.1 christos ;
3765 1.1 christos return 0;
3766 1.1 christos }
3767 1.1 christos _ACEOF
3768 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3769 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 1.1 christos (eval $ac_link) 2>conftest.er1
3771 1.1 christos ac_status=$?
3772 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3773 1.1 christos rm -f conftest.er1
3774 1.1 christos cat conftest.err >&5
3775 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 1.1 christos (exit $ac_status); } &&
3777 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
3778 1.1 christos || test ! -s conftest.err'
3779 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 1.1 christos (eval $ac_try) 2>&5
3781 1.1 christos ac_status=$?
3782 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 1.1 christos (exit $ac_status); }; } &&
3784 1.1 christos { ac_try='test -s conftest$ac_exeext'
3785 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 1.1 christos (eval $ac_try) 2>&5
3787 1.1 christos ac_status=$?
3788 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 1.1 christos (exit $ac_status); }; }; then
3790 1.1 christos LIBS=$ac_save_LIBS
3791 1.1 christos # We can link X programs with no special library path.
3792 1.1 christos ac_x_libraries=
3793 1.1 christos else
3794 1.1 christos echo "$as_me: failed program was:" >&5
3795 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3796 1.1 christos
3797 1.1 christos LIBS=$ac_save_LIBS
3798 1.1 christos for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3799 1.1 christos do
3800 1.1 christos # Don't even attempt the hair of trying to link an X program!
3801 1.1 christos for ac_extension in a so sl; do
3802 1.1 christos if test -r $ac_dir/libXt.$ac_extension; then
3803 1.1 christos ac_x_libraries=$ac_dir
3804 1.1 christos break 2
3805 1.1 christos fi
3806 1.1 christos done
3807 1.1 christos done
3808 1.1 christos fi
3809 1.1 christos rm -f conftest.err conftest.$ac_objext \
3810 1.1 christos conftest$ac_exeext conftest.$ac_ext
3811 1.1 christos fi # $ac_x_libraries = no
3812 1.1 christos
3813 1.1 christos if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3814 1.1 christos # Didn't find X anywhere. Cache the known absence of X.
3815 1.1 christos ac_cv_have_x="have_x=no"
3816 1.1 christos else
3817 1.1 christos # Record where we found X for the cache.
3818 1.1 christos ac_cv_have_x="have_x=yes \
3819 1.1 christos ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3820 1.1 christos fi
3821 1.1 christos fi
3822 1.1 christos
3823 1.1 christos fi
3824 1.1 christos eval "$ac_cv_have_x"
3825 1.1 christos fi # $with_x != no
3826 1.1 christos
3827 1.1 christos if test "$have_x" != yes; then
3828 1.1 christos echo "$as_me:$LINENO: result: $have_x" >&5
3829 1.1 christos echo "${ECHO_T}$have_x" >&6
3830 1.1 christos no_x=yes
3831 1.1 christos else
3832 1.1 christos # If each of the values was on the command line, it overrides each guess.
3833 1.1 christos test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3834 1.1 christos test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3835 1.1 christos # Update the cache value to reflect the command line values.
3836 1.1 christos ac_cv_have_x="have_x=yes \
3837 1.1 christos ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3838 1.1 christos echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3839 1.1 christos echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3840 1.1 christos fi
3841 1.1 christos
3842 1.1 christos if test "$no_x" = yes; then
3843 1.1 christos # Not all programs may use this symbol, but it does not hurt to define it.
3844 1.1 christos
3845 1.1 christos cat >>confdefs.h <<\_ACEOF
3846 1.1 christos #define X_DISPLAY_MISSING 1
3847 1.1 christos _ACEOF
3848 1.1 christos
3849 1.1 christos X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3850 1.1 christos else
3851 1.1 christos if test -n "$x_includes"; then
3852 1.1 christos X_CFLAGS="$X_CFLAGS -I$x_includes"
3853 1.1 christos fi
3854 1.1 christos
3855 1.1 christos # It would also be nice to do this for all -L options, not just this one.
3856 1.1 christos if test -n "$x_libraries"; then
3857 1.1 christos X_LIBS="$X_LIBS -L$x_libraries"
3858 1.1 christos # For Solaris; some versions of Sun CC require a space after -R and
3859 1.1 christos # others require no space. Words are not sufficient . . . .
3860 1.1 christos case `(uname -sr) 2>/dev/null` in
3861 1.1 christos "SunOS 5"*)
3862 1.1 christos echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3863 1.1 christos echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3864 1.1 christos ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3865 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3866 1.1 christos /* confdefs.h. */
3867 1.1 christos _ACEOF
3868 1.1 christos cat confdefs.h >>conftest.$ac_ext
3869 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3870 1.1 christos /* end confdefs.h. */
3871 1.1 christos
3872 1.1 christos int
3873 1.1 christos main ()
3874 1.1 christos {
3875 1.1 christos
3876 1.1 christos ;
3877 1.1 christos return 0;
3878 1.1 christos }
3879 1.1 christos _ACEOF
3880 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3881 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882 1.1 christos (eval $ac_link) 2>conftest.er1
3883 1.1 christos ac_status=$?
3884 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3885 1.1 christos rm -f conftest.er1
3886 1.1 christos cat conftest.err >&5
3887 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 1.1 christos (exit $ac_status); } &&
3889 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
3890 1.1 christos || test ! -s conftest.err'
3891 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 1.1 christos (eval $ac_try) 2>&5
3893 1.1 christos ac_status=$?
3894 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 1.1 christos (exit $ac_status); }; } &&
3896 1.1 christos { ac_try='test -s conftest$ac_exeext'
3897 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 1.1 christos (eval $ac_try) 2>&5
3899 1.1 christos ac_status=$?
3900 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 1.1 christos (exit $ac_status); }; }; then
3902 1.1 christos ac_R_nospace=yes
3903 1.1 christos else
3904 1.1 christos echo "$as_me: failed program was:" >&5
3905 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3906 1.1 christos
3907 1.1 christos ac_R_nospace=no
3908 1.1 christos fi
3909 1.1 christos rm -f conftest.err conftest.$ac_objext \
3910 1.1 christos conftest$ac_exeext conftest.$ac_ext
3911 1.1 christos if test $ac_R_nospace = yes; then
3912 1.1 christos echo "$as_me:$LINENO: result: no" >&5
3913 1.1 christos echo "${ECHO_T}no" >&6
3914 1.1 christos X_LIBS="$X_LIBS -R$x_libraries"
3915 1.1 christos else
3916 1.1 christos LIBS="$ac_xsave_LIBS -R $x_libraries"
3917 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3918 1.1 christos /* confdefs.h. */
3919 1.1 christos _ACEOF
3920 1.1 christos cat confdefs.h >>conftest.$ac_ext
3921 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3922 1.1 christos /* end confdefs.h. */
3923 1.1 christos
3924 1.1 christos int
3925 1.1 christos main ()
3926 1.1 christos {
3927 1.1 christos
3928 1.1 christos ;
3929 1.1 christos return 0;
3930 1.1 christos }
3931 1.1 christos _ACEOF
3932 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3933 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 1.1 christos (eval $ac_link) 2>conftest.er1
3935 1.1 christos ac_status=$?
3936 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3937 1.1 christos rm -f conftest.er1
3938 1.1 christos cat conftest.err >&5
3939 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 1.1 christos (exit $ac_status); } &&
3941 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
3942 1.1 christos || test ! -s conftest.err'
3943 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 1.1 christos (eval $ac_try) 2>&5
3945 1.1 christos ac_status=$?
3946 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 1.1 christos (exit $ac_status); }; } &&
3948 1.1 christos { ac_try='test -s conftest$ac_exeext'
3949 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 1.1 christos (eval $ac_try) 2>&5
3951 1.1 christos ac_status=$?
3952 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 1.1 christos (exit $ac_status); }; }; then
3954 1.1 christos ac_R_space=yes
3955 1.1 christos else
3956 1.1 christos echo "$as_me: failed program was:" >&5
3957 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3958 1.1 christos
3959 1.1 christos ac_R_space=no
3960 1.1 christos fi
3961 1.1 christos rm -f conftest.err conftest.$ac_objext \
3962 1.1 christos conftest$ac_exeext conftest.$ac_ext
3963 1.1 christos if test $ac_R_space = yes; then
3964 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
3965 1.1 christos echo "${ECHO_T}yes" >&6
3966 1.1 christos X_LIBS="$X_LIBS -R $x_libraries"
3967 1.1 christos else
3968 1.1 christos echo "$as_me:$LINENO: result: neither works" >&5
3969 1.1 christos echo "${ECHO_T}neither works" >&6
3970 1.1 christos fi
3971 1.1 christos fi
3972 1.1 christos LIBS=$ac_xsave_LIBS
3973 1.1 christos esac
3974 1.1 christos fi
3975 1.1 christos
3976 1.1 christos # Check for system-dependent libraries X programs must link with.
3977 1.1 christos # Do this before checking for the system-independent R6 libraries
3978 1.1 christos # (-lICE), since we may need -lsocket or whatever for X linking.
3979 1.1 christos
3980 1.1 christos if test "$ISC" = yes; then
3981 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3982 1.1 christos else
3983 1.1 christos # Martyn Johnson says this is needed for Ultrix, if the X
3984 1.1 christos # libraries were built with DECnet support. And Karl Berry says
3985 1.1 christos # the Alpha needs dnet_stub (dnet does not exist).
3986 1.1 christos ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3987 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3988 1.1 christos /* confdefs.h. */
3989 1.1 christos _ACEOF
3990 1.1 christos cat confdefs.h >>conftest.$ac_ext
3991 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3992 1.1 christos /* end confdefs.h. */
3993 1.1 christos
3994 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
3995 1.1 christos #ifdef __cplusplus
3996 1.1 christos extern "C"
3997 1.1 christos #endif
3998 1.1 christos /* We use char because int might match the return type of a gcc2
3999 1.1 christos builtin and then its argument prototype would still apply. */
4000 1.1 christos char XOpenDisplay ();
4001 1.1 christos int
4002 1.1 christos main ()
4003 1.1 christos {
4004 1.1 christos XOpenDisplay ();
4005 1.1 christos ;
4006 1.1 christos return 0;
4007 1.1 christos }
4008 1.1 christos _ACEOF
4009 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4010 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 1.1 christos (eval $ac_link) 2>conftest.er1
4012 1.1 christos ac_status=$?
4013 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4014 1.1 christos rm -f conftest.er1
4015 1.1 christos cat conftest.err >&5
4016 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 1.1 christos (exit $ac_status); } &&
4018 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4019 1.1 christos || test ! -s conftest.err'
4020 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 1.1 christos (eval $ac_try) 2>&5
4022 1.1 christos ac_status=$?
4023 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 1.1 christos (exit $ac_status); }; } &&
4025 1.1 christos { ac_try='test -s conftest$ac_exeext'
4026 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 1.1 christos (eval $ac_try) 2>&5
4028 1.1 christos ac_status=$?
4029 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 1.1 christos (exit $ac_status); }; }; then
4031 1.1 christos :
4032 1.1 christos else
4033 1.1 christos echo "$as_me: failed program was:" >&5
4034 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4035 1.1 christos
4036 1.1 christos echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4037 1.1 christos echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4038 1.1 christos if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4039 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4040 1.1 christos else
4041 1.1 christos ac_check_lib_save_LIBS=$LIBS
4042 1.1 christos LIBS="-ldnet $LIBS"
4043 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4044 1.1 christos /* confdefs.h. */
4045 1.1 christos _ACEOF
4046 1.1 christos cat confdefs.h >>conftest.$ac_ext
4047 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4048 1.1 christos /* end confdefs.h. */
4049 1.1 christos
4050 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4051 1.1 christos #ifdef __cplusplus
4052 1.1 christos extern "C"
4053 1.1 christos #endif
4054 1.1 christos /* We use char because int might match the return type of a gcc2
4055 1.1 christos builtin and then its argument prototype would still apply. */
4056 1.1 christos char dnet_ntoa ();
4057 1.1 christos int
4058 1.1 christos main ()
4059 1.1 christos {
4060 1.1 christos dnet_ntoa ();
4061 1.1 christos ;
4062 1.1 christos return 0;
4063 1.1 christos }
4064 1.1 christos _ACEOF
4065 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4066 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 1.1 christos (eval $ac_link) 2>conftest.er1
4068 1.1 christos ac_status=$?
4069 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4070 1.1 christos rm -f conftest.er1
4071 1.1 christos cat conftest.err >&5
4072 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 1.1 christos (exit $ac_status); } &&
4074 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4075 1.1 christos || test ! -s conftest.err'
4076 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 1.1 christos (eval $ac_try) 2>&5
4078 1.1 christos ac_status=$?
4079 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 1.1 christos (exit $ac_status); }; } &&
4081 1.1 christos { ac_try='test -s conftest$ac_exeext'
4082 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 1.1 christos (eval $ac_try) 2>&5
4084 1.1 christos ac_status=$?
4085 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 1.1 christos (exit $ac_status); }; }; then
4087 1.1 christos ac_cv_lib_dnet_dnet_ntoa=yes
4088 1.1 christos else
4089 1.1 christos echo "$as_me: failed program was:" >&5
4090 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4091 1.1 christos
4092 1.1 christos ac_cv_lib_dnet_dnet_ntoa=no
4093 1.1 christos fi
4094 1.1 christos rm -f conftest.err conftest.$ac_objext \
4095 1.1 christos conftest$ac_exeext conftest.$ac_ext
4096 1.1 christos LIBS=$ac_check_lib_save_LIBS
4097 1.1 christos fi
4098 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4099 1.1 christos echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4100 1.1 christos if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4101 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4102 1.1 christos fi
4103 1.1 christos
4104 1.1 christos if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4105 1.1 christos echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4106 1.1 christos echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4107 1.1 christos if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4108 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4109 1.1 christos else
4110 1.1 christos ac_check_lib_save_LIBS=$LIBS
4111 1.1 christos LIBS="-ldnet_stub $LIBS"
4112 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4113 1.1 christos /* confdefs.h. */
4114 1.1 christos _ACEOF
4115 1.1 christos cat confdefs.h >>conftest.$ac_ext
4116 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4117 1.1 christos /* end confdefs.h. */
4118 1.1 christos
4119 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4120 1.1 christos #ifdef __cplusplus
4121 1.1 christos extern "C"
4122 1.1 christos #endif
4123 1.1 christos /* We use char because int might match the return type of a gcc2
4124 1.1 christos builtin and then its argument prototype would still apply. */
4125 1.1 christos char dnet_ntoa ();
4126 1.1 christos int
4127 1.1 christos main ()
4128 1.1 christos {
4129 1.1 christos dnet_ntoa ();
4130 1.1 christos ;
4131 1.1 christos return 0;
4132 1.1 christos }
4133 1.1 christos _ACEOF
4134 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4135 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 1.1 christos (eval $ac_link) 2>conftest.er1
4137 1.1 christos ac_status=$?
4138 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4139 1.1 christos rm -f conftest.er1
4140 1.1 christos cat conftest.err >&5
4141 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 1.1 christos (exit $ac_status); } &&
4143 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4144 1.1 christos || test ! -s conftest.err'
4145 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 1.1 christos (eval $ac_try) 2>&5
4147 1.1 christos ac_status=$?
4148 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 1.1 christos (exit $ac_status); }; } &&
4150 1.1 christos { ac_try='test -s conftest$ac_exeext'
4151 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 1.1 christos (eval $ac_try) 2>&5
4153 1.1 christos ac_status=$?
4154 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 1.1 christos (exit $ac_status); }; }; then
4156 1.1 christos ac_cv_lib_dnet_stub_dnet_ntoa=yes
4157 1.1 christos else
4158 1.1 christos echo "$as_me: failed program was:" >&5
4159 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4160 1.1 christos
4161 1.1 christos ac_cv_lib_dnet_stub_dnet_ntoa=no
4162 1.1 christos fi
4163 1.1 christos rm -f conftest.err conftest.$ac_objext \
4164 1.1 christos conftest$ac_exeext conftest.$ac_ext
4165 1.1 christos LIBS=$ac_check_lib_save_LIBS
4166 1.1 christos fi
4167 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4168 1.1 christos echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4169 1.1 christos if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4170 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4171 1.1 christos fi
4172 1.1 christos
4173 1.1 christos fi
4174 1.1 christos fi
4175 1.1 christos rm -f conftest.err conftest.$ac_objext \
4176 1.1 christos conftest$ac_exeext conftest.$ac_ext
4177 1.1 christos LIBS="$ac_xsave_LIBS"
4178 1.1 christos
4179 1.1 christos # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4180 1.1 christos # to get the SysV transport functions.
4181 1.1 christos # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4182 1.1 christos # needs -lnsl.
4183 1.1 christos # The nsl library prevents programs from opening the X display
4184 1.1 christos # on Irix 5.2, according to T.E. Dickey.
4185 1.1 christos # The functions gethostbyname, getservbyname, and inet_addr are
4186 1.1 christos # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4187 1.1 christos echo "$as_me:$LINENO: checking for gethostbyname" >&5
4188 1.1 christos echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4189 1.1 christos if test "${ac_cv_func_gethostbyname+set}" = set; then
4190 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4191 1.1 christos else
4192 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4193 1.1 christos /* confdefs.h. */
4194 1.1 christos _ACEOF
4195 1.1 christos cat confdefs.h >>conftest.$ac_ext
4196 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4197 1.1 christos /* end confdefs.h. */
4198 1.1 christos /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4199 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
4200 1.1 christos #define gethostbyname innocuous_gethostbyname
4201 1.1 christos
4202 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
4203 1.1 christos which can conflict with char gethostbyname (); below.
4204 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 1.1 christos <limits.h> exists even on freestanding compilers. */
4206 1.1 christos
4207 1.1 christos #ifdef __STDC__
4208 1.1 christos # include <limits.h>
4209 1.1 christos #else
4210 1.1 christos # include <assert.h>
4211 1.1 christos #endif
4212 1.1 christos
4213 1.1 christos #undef gethostbyname
4214 1.1 christos
4215 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4216 1.1 christos #ifdef __cplusplus
4217 1.1 christos extern "C"
4218 1.1 christos {
4219 1.1 christos #endif
4220 1.1 christos /* We use char because int might match the return type of a gcc2
4221 1.1 christos builtin and then its argument prototype would still apply. */
4222 1.1 christos char gethostbyname ();
4223 1.1 christos /* The GNU C library defines this for functions which it implements
4224 1.1 christos to always fail with ENOSYS. Some functions are actually named
4225 1.1 christos something starting with __ and the normal name is an alias. */
4226 1.1 christos #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4227 1.1 christos choke me
4228 1.1 christos #else
4229 1.1 christos char (*f) () = gethostbyname;
4230 1.1 christos #endif
4231 1.1 christos #ifdef __cplusplus
4232 1.1 christos }
4233 1.1 christos #endif
4234 1.1 christos
4235 1.1 christos int
4236 1.1 christos main ()
4237 1.1 christos {
4238 1.1 christos return f != gethostbyname;
4239 1.1 christos ;
4240 1.1 christos return 0;
4241 1.1 christos }
4242 1.1 christos _ACEOF
4243 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4244 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 1.1 christos (eval $ac_link) 2>conftest.er1
4246 1.1 christos ac_status=$?
4247 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4248 1.1 christos rm -f conftest.er1
4249 1.1 christos cat conftest.err >&5
4250 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 1.1 christos (exit $ac_status); } &&
4252 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4253 1.1 christos || test ! -s conftest.err'
4254 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 1.1 christos (eval $ac_try) 2>&5
4256 1.1 christos ac_status=$?
4257 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 1.1 christos (exit $ac_status); }; } &&
4259 1.1 christos { ac_try='test -s conftest$ac_exeext'
4260 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 1.1 christos (eval $ac_try) 2>&5
4262 1.1 christos ac_status=$?
4263 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 1.1 christos (exit $ac_status); }; }; then
4265 1.1 christos ac_cv_func_gethostbyname=yes
4266 1.1 christos else
4267 1.1 christos echo "$as_me: failed program was:" >&5
4268 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4269 1.1 christos
4270 1.1 christos ac_cv_func_gethostbyname=no
4271 1.1 christos fi
4272 1.1 christos rm -f conftest.err conftest.$ac_objext \
4273 1.1 christos conftest$ac_exeext conftest.$ac_ext
4274 1.1 christos fi
4275 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4276 1.1 christos echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4277 1.1 christos
4278 1.1 christos if test $ac_cv_func_gethostbyname = no; then
4279 1.1 christos echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4280 1.1 christos echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4281 1.1 christos if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4282 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4283 1.1 christos else
4284 1.1 christos ac_check_lib_save_LIBS=$LIBS
4285 1.1 christos LIBS="-lnsl $LIBS"
4286 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4287 1.1 christos /* confdefs.h. */
4288 1.1 christos _ACEOF
4289 1.1 christos cat confdefs.h >>conftest.$ac_ext
4290 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4291 1.1 christos /* end confdefs.h. */
4292 1.1 christos
4293 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4294 1.1 christos #ifdef __cplusplus
4295 1.1 christos extern "C"
4296 1.1 christos #endif
4297 1.1 christos /* We use char because int might match the return type of a gcc2
4298 1.1 christos builtin and then its argument prototype would still apply. */
4299 1.1 christos char gethostbyname ();
4300 1.1 christos int
4301 1.1 christos main ()
4302 1.1 christos {
4303 1.1 christos gethostbyname ();
4304 1.1 christos ;
4305 1.1 christos return 0;
4306 1.1 christos }
4307 1.1 christos _ACEOF
4308 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4309 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 1.1 christos (eval $ac_link) 2>conftest.er1
4311 1.1 christos ac_status=$?
4312 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4313 1.1 christos rm -f conftest.er1
4314 1.1 christos cat conftest.err >&5
4315 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 1.1 christos (exit $ac_status); } &&
4317 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4318 1.1 christos || test ! -s conftest.err'
4319 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 1.1 christos (eval $ac_try) 2>&5
4321 1.1 christos ac_status=$?
4322 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 1.1 christos (exit $ac_status); }; } &&
4324 1.1 christos { ac_try='test -s conftest$ac_exeext'
4325 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 1.1 christos (eval $ac_try) 2>&5
4327 1.1 christos ac_status=$?
4328 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 1.1 christos (exit $ac_status); }; }; then
4330 1.1 christos ac_cv_lib_nsl_gethostbyname=yes
4331 1.1 christos else
4332 1.1 christos echo "$as_me: failed program was:" >&5
4333 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4334 1.1 christos
4335 1.1 christos ac_cv_lib_nsl_gethostbyname=no
4336 1.1 christos fi
4337 1.1 christos rm -f conftest.err conftest.$ac_objext \
4338 1.1 christos conftest$ac_exeext conftest.$ac_ext
4339 1.1 christos LIBS=$ac_check_lib_save_LIBS
4340 1.1 christos fi
4341 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4342 1.1 christos echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4343 1.1 christos if test $ac_cv_lib_nsl_gethostbyname = yes; then
4344 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4345 1.1 christos fi
4346 1.1 christos
4347 1.1 christos if test $ac_cv_lib_nsl_gethostbyname = no; then
4348 1.1 christos echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4349 1.1 christos echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4350 1.1 christos if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4351 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4352 1.1 christos else
4353 1.1 christos ac_check_lib_save_LIBS=$LIBS
4354 1.1 christos LIBS="-lbsd $LIBS"
4355 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4356 1.1 christos /* confdefs.h. */
4357 1.1 christos _ACEOF
4358 1.1 christos cat confdefs.h >>conftest.$ac_ext
4359 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4360 1.1 christos /* end confdefs.h. */
4361 1.1 christos
4362 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4363 1.1 christos #ifdef __cplusplus
4364 1.1 christos extern "C"
4365 1.1 christos #endif
4366 1.1 christos /* We use char because int might match the return type of a gcc2
4367 1.1 christos builtin and then its argument prototype would still apply. */
4368 1.1 christos char gethostbyname ();
4369 1.1 christos int
4370 1.1 christos main ()
4371 1.1 christos {
4372 1.1 christos gethostbyname ();
4373 1.1 christos ;
4374 1.1 christos return 0;
4375 1.1 christos }
4376 1.1 christos _ACEOF
4377 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4378 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379 1.1 christos (eval $ac_link) 2>conftest.er1
4380 1.1 christos ac_status=$?
4381 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4382 1.1 christos rm -f conftest.er1
4383 1.1 christos cat conftest.err >&5
4384 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 1.1 christos (exit $ac_status); } &&
4386 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4387 1.1 christos || test ! -s conftest.err'
4388 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 1.1 christos (eval $ac_try) 2>&5
4390 1.1 christos ac_status=$?
4391 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 1.1 christos (exit $ac_status); }; } &&
4393 1.1 christos { ac_try='test -s conftest$ac_exeext'
4394 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 1.1 christos (eval $ac_try) 2>&5
4396 1.1 christos ac_status=$?
4397 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 1.1 christos (exit $ac_status); }; }; then
4399 1.1 christos ac_cv_lib_bsd_gethostbyname=yes
4400 1.1 christos else
4401 1.1 christos echo "$as_me: failed program was:" >&5
4402 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4403 1.1 christos
4404 1.1 christos ac_cv_lib_bsd_gethostbyname=no
4405 1.1 christos fi
4406 1.1 christos rm -f conftest.err conftest.$ac_objext \
4407 1.1 christos conftest$ac_exeext conftest.$ac_ext
4408 1.1 christos LIBS=$ac_check_lib_save_LIBS
4409 1.1 christos fi
4410 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4411 1.1 christos echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4412 1.1 christos if test $ac_cv_lib_bsd_gethostbyname = yes; then
4413 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4414 1.1 christos fi
4415 1.1 christos
4416 1.1 christos fi
4417 1.1 christos fi
4418 1.1 christos
4419 1.1 christos # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
4420 1.1 christos # socket/setsockopt and other routines are undefined under SCO ODT
4421 1.1 christos # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4422 1.1 christos # on later versions), says Simon Leinen: it contains gethostby*
4423 1.1 christos # variants that don't use the name server (or something). -lsocket
4424 1.1 christos # must be given before -lnsl if both are needed. We assume that
4425 1.1 christos # if connect needs -lnsl, so does gethostbyname.
4426 1.1 christos echo "$as_me:$LINENO: checking for connect" >&5
4427 1.1 christos echo $ECHO_N "checking for connect... $ECHO_C" >&6
4428 1.1 christos if test "${ac_cv_func_connect+set}" = set; then
4429 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4430 1.1 christos else
4431 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4432 1.1 christos /* confdefs.h. */
4433 1.1 christos _ACEOF
4434 1.1 christos cat confdefs.h >>conftest.$ac_ext
4435 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4436 1.1 christos /* end confdefs.h. */
4437 1.1 christos /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4438 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
4439 1.1 christos #define connect innocuous_connect
4440 1.1 christos
4441 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
4442 1.1 christos which can conflict with char connect (); below.
4443 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 1.1 christos <limits.h> exists even on freestanding compilers. */
4445 1.1 christos
4446 1.1 christos #ifdef __STDC__
4447 1.1 christos # include <limits.h>
4448 1.1 christos #else
4449 1.1 christos # include <assert.h>
4450 1.1 christos #endif
4451 1.1 christos
4452 1.1 christos #undef connect
4453 1.1 christos
4454 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4455 1.1 christos #ifdef __cplusplus
4456 1.1 christos extern "C"
4457 1.1 christos {
4458 1.1 christos #endif
4459 1.1 christos /* We use char because int might match the return type of a gcc2
4460 1.1 christos builtin and then its argument prototype would still apply. */
4461 1.1 christos char connect ();
4462 1.1 christos /* The GNU C library defines this for functions which it implements
4463 1.1 christos to always fail with ENOSYS. Some functions are actually named
4464 1.1 christos something starting with __ and the normal name is an alias. */
4465 1.1 christos #if defined (__stub_connect) || defined (__stub___connect)
4466 1.1 christos choke me
4467 1.1 christos #else
4468 1.1 christos char (*f) () = connect;
4469 1.1 christos #endif
4470 1.1 christos #ifdef __cplusplus
4471 1.1 christos }
4472 1.1 christos #endif
4473 1.1 christos
4474 1.1 christos int
4475 1.1 christos main ()
4476 1.1 christos {
4477 1.1 christos return f != connect;
4478 1.1 christos ;
4479 1.1 christos return 0;
4480 1.1 christos }
4481 1.1 christos _ACEOF
4482 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4483 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 1.1 christos (eval $ac_link) 2>conftest.er1
4485 1.1 christos ac_status=$?
4486 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4487 1.1 christos rm -f conftest.er1
4488 1.1 christos cat conftest.err >&5
4489 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 1.1 christos (exit $ac_status); } &&
4491 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4492 1.1 christos || test ! -s conftest.err'
4493 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 1.1 christos (eval $ac_try) 2>&5
4495 1.1 christos ac_status=$?
4496 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 1.1 christos (exit $ac_status); }; } &&
4498 1.1 christos { ac_try='test -s conftest$ac_exeext'
4499 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 1.1 christos (eval $ac_try) 2>&5
4501 1.1 christos ac_status=$?
4502 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 1.1 christos (exit $ac_status); }; }; then
4504 1.1 christos ac_cv_func_connect=yes
4505 1.1 christos else
4506 1.1 christos echo "$as_me: failed program was:" >&5
4507 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4508 1.1 christos
4509 1.1 christos ac_cv_func_connect=no
4510 1.1 christos fi
4511 1.1 christos rm -f conftest.err conftest.$ac_objext \
4512 1.1 christos conftest$ac_exeext conftest.$ac_ext
4513 1.1 christos fi
4514 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4515 1.1 christos echo "${ECHO_T}$ac_cv_func_connect" >&6
4516 1.1 christos
4517 1.1 christos if test $ac_cv_func_connect = no; then
4518 1.1 christos echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4519 1.1 christos echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4520 1.1 christos if test "${ac_cv_lib_socket_connect+set}" = set; then
4521 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4522 1.1 christos else
4523 1.1 christos ac_check_lib_save_LIBS=$LIBS
4524 1.1 christos LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4525 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4526 1.1 christos /* confdefs.h. */
4527 1.1 christos _ACEOF
4528 1.1 christos cat confdefs.h >>conftest.$ac_ext
4529 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4530 1.1 christos /* end confdefs.h. */
4531 1.1 christos
4532 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4533 1.1 christos #ifdef __cplusplus
4534 1.1 christos extern "C"
4535 1.1 christos #endif
4536 1.1 christos /* We use char because int might match the return type of a gcc2
4537 1.1 christos builtin and then its argument prototype would still apply. */
4538 1.1 christos char connect ();
4539 1.1 christos int
4540 1.1 christos main ()
4541 1.1 christos {
4542 1.1 christos connect ();
4543 1.1 christos ;
4544 1.1 christos return 0;
4545 1.1 christos }
4546 1.1 christos _ACEOF
4547 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4548 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 1.1 christos (eval $ac_link) 2>conftest.er1
4550 1.1 christos ac_status=$?
4551 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4552 1.1 christos rm -f conftest.er1
4553 1.1 christos cat conftest.err >&5
4554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 1.1 christos (exit $ac_status); } &&
4556 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4557 1.1 christos || test ! -s conftest.err'
4558 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 1.1 christos (eval $ac_try) 2>&5
4560 1.1 christos ac_status=$?
4561 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 1.1 christos (exit $ac_status); }; } &&
4563 1.1 christos { ac_try='test -s conftest$ac_exeext'
4564 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 1.1 christos (eval $ac_try) 2>&5
4566 1.1 christos ac_status=$?
4567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 1.1 christos (exit $ac_status); }; }; then
4569 1.1 christos ac_cv_lib_socket_connect=yes
4570 1.1 christos else
4571 1.1 christos echo "$as_me: failed program was:" >&5
4572 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4573 1.1 christos
4574 1.1 christos ac_cv_lib_socket_connect=no
4575 1.1 christos fi
4576 1.1 christos rm -f conftest.err conftest.$ac_objext \
4577 1.1 christos conftest$ac_exeext conftest.$ac_ext
4578 1.1 christos LIBS=$ac_check_lib_save_LIBS
4579 1.1 christos fi
4580 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4581 1.1 christos echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4582 1.1 christos if test $ac_cv_lib_socket_connect = yes; then
4583 1.1 christos X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4584 1.1 christos fi
4585 1.1 christos
4586 1.1 christos fi
4587 1.1 christos
4588 1.1 christos # Guillermo Gomez says -lposix is necessary on A/UX.
4589 1.1 christos echo "$as_me:$LINENO: checking for remove" >&5
4590 1.1 christos echo $ECHO_N "checking for remove... $ECHO_C" >&6
4591 1.1 christos if test "${ac_cv_func_remove+set}" = set; then
4592 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4593 1.1 christos else
4594 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4595 1.1 christos /* confdefs.h. */
4596 1.1 christos _ACEOF
4597 1.1 christos cat confdefs.h >>conftest.$ac_ext
4598 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4599 1.1 christos /* end confdefs.h. */
4600 1.1 christos /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4601 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
4602 1.1 christos #define remove innocuous_remove
4603 1.1 christos
4604 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
4605 1.1 christos which can conflict with char remove (); below.
4606 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 1.1 christos <limits.h> exists even on freestanding compilers. */
4608 1.1 christos
4609 1.1 christos #ifdef __STDC__
4610 1.1 christos # include <limits.h>
4611 1.1 christos #else
4612 1.1 christos # include <assert.h>
4613 1.1 christos #endif
4614 1.1 christos
4615 1.1 christos #undef remove
4616 1.1 christos
4617 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4618 1.1 christos #ifdef __cplusplus
4619 1.1 christos extern "C"
4620 1.1 christos {
4621 1.1 christos #endif
4622 1.1 christos /* We use char because int might match the return type of a gcc2
4623 1.1 christos builtin and then its argument prototype would still apply. */
4624 1.1 christos char remove ();
4625 1.1 christos /* The GNU C library defines this for functions which it implements
4626 1.1 christos to always fail with ENOSYS. Some functions are actually named
4627 1.1 christos something starting with __ and the normal name is an alias. */
4628 1.1 christos #if defined (__stub_remove) || defined (__stub___remove)
4629 1.1 christos choke me
4630 1.1 christos #else
4631 1.1 christos char (*f) () = remove;
4632 1.1 christos #endif
4633 1.1 christos #ifdef __cplusplus
4634 1.1 christos }
4635 1.1 christos #endif
4636 1.1 christos
4637 1.1 christos int
4638 1.1 christos main ()
4639 1.1 christos {
4640 1.1 christos return f != remove;
4641 1.1 christos ;
4642 1.1 christos return 0;
4643 1.1 christos }
4644 1.1 christos _ACEOF
4645 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4646 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647 1.1 christos (eval $ac_link) 2>conftest.er1
4648 1.1 christos ac_status=$?
4649 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4650 1.1 christos rm -f conftest.er1
4651 1.1 christos cat conftest.err >&5
4652 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 1.1 christos (exit $ac_status); } &&
4654 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4655 1.1 christos || test ! -s conftest.err'
4656 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 1.1 christos (eval $ac_try) 2>&5
4658 1.1 christos ac_status=$?
4659 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 1.1 christos (exit $ac_status); }; } &&
4661 1.1 christos { ac_try='test -s conftest$ac_exeext'
4662 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 1.1 christos (eval $ac_try) 2>&5
4664 1.1 christos ac_status=$?
4665 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 1.1 christos (exit $ac_status); }; }; then
4667 1.1 christos ac_cv_func_remove=yes
4668 1.1 christos else
4669 1.1 christos echo "$as_me: failed program was:" >&5
4670 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4671 1.1 christos
4672 1.1 christos ac_cv_func_remove=no
4673 1.1 christos fi
4674 1.1 christos rm -f conftest.err conftest.$ac_objext \
4675 1.1 christos conftest$ac_exeext conftest.$ac_ext
4676 1.1 christos fi
4677 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4678 1.1 christos echo "${ECHO_T}$ac_cv_func_remove" >&6
4679 1.1 christos
4680 1.1 christos if test $ac_cv_func_remove = no; then
4681 1.1 christos echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4682 1.1 christos echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4683 1.1 christos if test "${ac_cv_lib_posix_remove+set}" = set; then
4684 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4685 1.1 christos else
4686 1.1 christos ac_check_lib_save_LIBS=$LIBS
4687 1.1 christos LIBS="-lposix $LIBS"
4688 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4689 1.1 christos /* confdefs.h. */
4690 1.1 christos _ACEOF
4691 1.1 christos cat confdefs.h >>conftest.$ac_ext
4692 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4693 1.1 christos /* end confdefs.h. */
4694 1.1 christos
4695 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4696 1.1 christos #ifdef __cplusplus
4697 1.1 christos extern "C"
4698 1.1 christos #endif
4699 1.1 christos /* We use char because int might match the return type of a gcc2
4700 1.1 christos builtin and then its argument prototype would still apply. */
4701 1.1 christos char remove ();
4702 1.1 christos int
4703 1.1 christos main ()
4704 1.1 christos {
4705 1.1 christos remove ();
4706 1.1 christos ;
4707 1.1 christos return 0;
4708 1.1 christos }
4709 1.1 christos _ACEOF
4710 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4711 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 1.1 christos (eval $ac_link) 2>conftest.er1
4713 1.1 christos ac_status=$?
4714 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4715 1.1 christos rm -f conftest.er1
4716 1.1 christos cat conftest.err >&5
4717 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 1.1 christos (exit $ac_status); } &&
4719 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4720 1.1 christos || test ! -s conftest.err'
4721 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 1.1 christos (eval $ac_try) 2>&5
4723 1.1 christos ac_status=$?
4724 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 1.1 christos (exit $ac_status); }; } &&
4726 1.1 christos { ac_try='test -s conftest$ac_exeext'
4727 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 1.1 christos (eval $ac_try) 2>&5
4729 1.1 christos ac_status=$?
4730 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 1.1 christos (exit $ac_status); }; }; then
4732 1.1 christos ac_cv_lib_posix_remove=yes
4733 1.1 christos else
4734 1.1 christos echo "$as_me: failed program was:" >&5
4735 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4736 1.1 christos
4737 1.1 christos ac_cv_lib_posix_remove=no
4738 1.1 christos fi
4739 1.1 christos rm -f conftest.err conftest.$ac_objext \
4740 1.1 christos conftest$ac_exeext conftest.$ac_ext
4741 1.1 christos LIBS=$ac_check_lib_save_LIBS
4742 1.1 christos fi
4743 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4744 1.1 christos echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4745 1.1 christos if test $ac_cv_lib_posix_remove = yes; then
4746 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4747 1.1 christos fi
4748 1.1 christos
4749 1.1 christos fi
4750 1.1 christos
4751 1.1 christos # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4752 1.1 christos echo "$as_me:$LINENO: checking for shmat" >&5
4753 1.1 christos echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4754 1.1 christos if test "${ac_cv_func_shmat+set}" = set; then
4755 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4756 1.1 christos else
4757 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4758 1.1 christos /* confdefs.h. */
4759 1.1 christos _ACEOF
4760 1.1 christos cat confdefs.h >>conftest.$ac_ext
4761 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4762 1.1 christos /* end confdefs.h. */
4763 1.1 christos /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4764 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
4765 1.1 christos #define shmat innocuous_shmat
4766 1.1 christos
4767 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
4768 1.1 christos which can conflict with char shmat (); below.
4769 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770 1.1 christos <limits.h> exists even on freestanding compilers. */
4771 1.1 christos
4772 1.1 christos #ifdef __STDC__
4773 1.1 christos # include <limits.h>
4774 1.1 christos #else
4775 1.1 christos # include <assert.h>
4776 1.1 christos #endif
4777 1.1 christos
4778 1.1 christos #undef shmat
4779 1.1 christos
4780 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4781 1.1 christos #ifdef __cplusplus
4782 1.1 christos extern "C"
4783 1.1 christos {
4784 1.1 christos #endif
4785 1.1 christos /* We use char because int might match the return type of a gcc2
4786 1.1 christos builtin and then its argument prototype would still apply. */
4787 1.1 christos char shmat ();
4788 1.1 christos /* The GNU C library defines this for functions which it implements
4789 1.1 christos to always fail with ENOSYS. Some functions are actually named
4790 1.1 christos something starting with __ and the normal name is an alias. */
4791 1.1 christos #if defined (__stub_shmat) || defined (__stub___shmat)
4792 1.1 christos choke me
4793 1.1 christos #else
4794 1.1 christos char (*f) () = shmat;
4795 1.1 christos #endif
4796 1.1 christos #ifdef __cplusplus
4797 1.1 christos }
4798 1.1 christos #endif
4799 1.1 christos
4800 1.1 christos int
4801 1.1 christos main ()
4802 1.1 christos {
4803 1.1 christos return f != shmat;
4804 1.1 christos ;
4805 1.1 christos return 0;
4806 1.1 christos }
4807 1.1 christos _ACEOF
4808 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4809 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810 1.1 christos (eval $ac_link) 2>conftest.er1
4811 1.1 christos ac_status=$?
4812 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4813 1.1 christos rm -f conftest.er1
4814 1.1 christos cat conftest.err >&5
4815 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 1.1 christos (exit $ac_status); } &&
4817 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4818 1.1 christos || test ! -s conftest.err'
4819 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 1.1 christos (eval $ac_try) 2>&5
4821 1.1 christos ac_status=$?
4822 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 1.1 christos (exit $ac_status); }; } &&
4824 1.1 christos { ac_try='test -s conftest$ac_exeext'
4825 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 1.1 christos (eval $ac_try) 2>&5
4827 1.1 christos ac_status=$?
4828 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 1.1 christos (exit $ac_status); }; }; then
4830 1.1 christos ac_cv_func_shmat=yes
4831 1.1 christos else
4832 1.1 christos echo "$as_me: failed program was:" >&5
4833 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4834 1.1 christos
4835 1.1 christos ac_cv_func_shmat=no
4836 1.1 christos fi
4837 1.1 christos rm -f conftest.err conftest.$ac_objext \
4838 1.1 christos conftest$ac_exeext conftest.$ac_ext
4839 1.1 christos fi
4840 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4841 1.1 christos echo "${ECHO_T}$ac_cv_func_shmat" >&6
4842 1.1 christos
4843 1.1 christos if test $ac_cv_func_shmat = no; then
4844 1.1 christos echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4845 1.1 christos echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4846 1.1 christos if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4847 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4848 1.1 christos else
4849 1.1 christos ac_check_lib_save_LIBS=$LIBS
4850 1.1 christos LIBS="-lipc $LIBS"
4851 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4852 1.1 christos /* confdefs.h. */
4853 1.1 christos _ACEOF
4854 1.1 christos cat confdefs.h >>conftest.$ac_ext
4855 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4856 1.1 christos /* end confdefs.h. */
4857 1.1 christos
4858 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4859 1.1 christos #ifdef __cplusplus
4860 1.1 christos extern "C"
4861 1.1 christos #endif
4862 1.1 christos /* We use char because int might match the return type of a gcc2
4863 1.1 christos builtin and then its argument prototype would still apply. */
4864 1.1 christos char shmat ();
4865 1.1 christos int
4866 1.1 christos main ()
4867 1.1 christos {
4868 1.1 christos shmat ();
4869 1.1 christos ;
4870 1.1 christos return 0;
4871 1.1 christos }
4872 1.1 christos _ACEOF
4873 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4874 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 1.1 christos (eval $ac_link) 2>conftest.er1
4876 1.1 christos ac_status=$?
4877 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4878 1.1 christos rm -f conftest.er1
4879 1.1 christos cat conftest.err >&5
4880 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 1.1 christos (exit $ac_status); } &&
4882 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4883 1.1 christos || test ! -s conftest.err'
4884 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 1.1 christos (eval $ac_try) 2>&5
4886 1.1 christos ac_status=$?
4887 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 1.1 christos (exit $ac_status); }; } &&
4889 1.1 christos { ac_try='test -s conftest$ac_exeext'
4890 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 1.1 christos (eval $ac_try) 2>&5
4892 1.1 christos ac_status=$?
4893 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 1.1 christos (exit $ac_status); }; }; then
4895 1.1 christos ac_cv_lib_ipc_shmat=yes
4896 1.1 christos else
4897 1.1 christos echo "$as_me: failed program was:" >&5
4898 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4899 1.1 christos
4900 1.1 christos ac_cv_lib_ipc_shmat=no
4901 1.1 christos fi
4902 1.1 christos rm -f conftest.err conftest.$ac_objext \
4903 1.1 christos conftest$ac_exeext conftest.$ac_ext
4904 1.1 christos LIBS=$ac_check_lib_save_LIBS
4905 1.1 christos fi
4906 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4907 1.1 christos echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4908 1.1 christos if test $ac_cv_lib_ipc_shmat = yes; then
4909 1.1 christos X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4910 1.1 christos fi
4911 1.1 christos
4912 1.1 christos fi
4913 1.1 christos fi
4914 1.1 christos
4915 1.1 christos # Check for libraries that X11R6 Xt/Xaw programs need.
4916 1.1 christos ac_save_LDFLAGS=$LDFLAGS
4917 1.1 christos test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4918 1.1 christos # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4919 1.1 christos # check for ICE first), but we must link in the order -lSM -lICE or
4920 1.1 christos # we get undefined symbols. So assume we have SM if we have ICE.
4921 1.1 christos # These have to be linked with before -lX11, unlike the other
4922 1.1 christos # libraries we check for below, so use a different variable.
4923 1.1 christos # John Interrante, Karl Berry
4924 1.1 christos echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4925 1.1 christos echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4926 1.1 christos if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4927 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4928 1.1 christos else
4929 1.1 christos ac_check_lib_save_LIBS=$LIBS
4930 1.1 christos LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4931 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4932 1.1 christos /* confdefs.h. */
4933 1.1 christos _ACEOF
4934 1.1 christos cat confdefs.h >>conftest.$ac_ext
4935 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4936 1.1 christos /* end confdefs.h. */
4937 1.1 christos
4938 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4939 1.1 christos #ifdef __cplusplus
4940 1.1 christos extern "C"
4941 1.1 christos #endif
4942 1.1 christos /* We use char because int might match the return type of a gcc2
4943 1.1 christos builtin and then its argument prototype would still apply. */
4944 1.1 christos char IceConnectionNumber ();
4945 1.1 christos int
4946 1.1 christos main ()
4947 1.1 christos {
4948 1.1 christos IceConnectionNumber ();
4949 1.1 christos ;
4950 1.1 christos return 0;
4951 1.1 christos }
4952 1.1 christos _ACEOF
4953 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4954 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 1.1 christos (eval $ac_link) 2>conftest.er1
4956 1.1 christos ac_status=$?
4957 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4958 1.1 christos rm -f conftest.er1
4959 1.1 christos cat conftest.err >&5
4960 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 1.1 christos (exit $ac_status); } &&
4962 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
4963 1.1 christos || test ! -s conftest.err'
4964 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 1.1 christos (eval $ac_try) 2>&5
4966 1.1 christos ac_status=$?
4967 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 1.1 christos (exit $ac_status); }; } &&
4969 1.1 christos { ac_try='test -s conftest$ac_exeext'
4970 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 1.1 christos (eval $ac_try) 2>&5
4972 1.1 christos ac_status=$?
4973 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 1.1 christos (exit $ac_status); }; }; then
4975 1.1 christos ac_cv_lib_ICE_IceConnectionNumber=yes
4976 1.1 christos else
4977 1.1 christos echo "$as_me: failed program was:" >&5
4978 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4979 1.1 christos
4980 1.1 christos ac_cv_lib_ICE_IceConnectionNumber=no
4981 1.1 christos fi
4982 1.1 christos rm -f conftest.err conftest.$ac_objext \
4983 1.1 christos conftest$ac_exeext conftest.$ac_ext
4984 1.1 christos LIBS=$ac_check_lib_save_LIBS
4985 1.1 christos fi
4986 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4987 1.1 christos echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4988 1.1 christos if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4989 1.1 christos X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4990 1.1 christos fi
4991 1.1 christos
4992 1.1 christos LDFLAGS=$ac_save_LDFLAGS
4993 1.1 christos
4994 1.1 christos fi
4995 1.1 christos
4996 1.1 christos
4997 1.1 christos groff_no_x=$no_x
4998 1.1 christos if test -z "$groff_no_x"; then
4999 1.1 christos OLDCFLAGS=$CFLAGS
5000 1.1 christos OLDLDFLAGS=$LDFLAGS
5001 1.1 christos OLDLIBS=$LIBS
5002 1.1 christos CFLAGS="$CFLAGS $X_CFLAGS"
5003 1.1 christos LDFLAGS="$LDFLAGS $X_LIBS"
5004 1.1 christos LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5005 1.1 christos
5006 1.1 christos LIBS="$LIBS -lXaw"
5007 1.1 christos echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5008 1.1 christos echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5009 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5010 1.1 christos
5011 1.1 christos /* confdefs.h. */
5012 1.1 christos _ACEOF
5013 1.1 christos cat confdefs.h >>conftest.$ac_ext
5014 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5015 1.1 christos /* end confdefs.h. */
5016 1.1 christos
5017 1.1 christos
5018 1.1 christos #include <X11/Intrinsic.h>
5019 1.1 christos #include <X11/Xaw/Simple.h>
5020 1.1 christos
5021 1.1 christos
5022 1.1 christos int
5023 1.1 christos main ()
5024 1.1 christos {
5025 1.1 christos
5026 1.1 christos ;
5027 1.1 christos return 0;
5028 1.1 christos }
5029 1.1 christos
5030 1.1 christos _ACEOF
5031 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
5032 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 1.1 christos (eval $ac_link) 2>conftest.er1
5034 1.1 christos ac_status=$?
5035 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5036 1.1 christos rm -f conftest.er1
5037 1.1 christos cat conftest.err >&5
5038 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 1.1 christos (exit $ac_status); } &&
5040 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
5041 1.1 christos || test ! -s conftest.err'
5042 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 1.1 christos (eval $ac_try) 2>&5
5044 1.1 christos ac_status=$?
5045 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 1.1 christos (exit $ac_status); }; } &&
5047 1.1 christos { ac_try='test -s conftest$ac_exeext'
5048 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 1.1 christos (eval $ac_try) 2>&5
5050 1.1 christos ac_status=$?
5051 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 1.1 christos (exit $ac_status); }; }; then
5053 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
5054 1.1 christos echo "${ECHO_T}yes" >&6
5055 1.1 christos else
5056 1.1 christos echo "$as_me: failed program was:" >&5
5057 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5058 1.1 christos
5059 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5060 1.1 christos echo "${ECHO_T}no" >&6
5061 1.1 christos groff_no_x="yes"
5062 1.1 christos fi
5063 1.1 christos rm -f conftest.err conftest.$ac_objext \
5064 1.1 christos conftest$ac_exeext conftest.$ac_ext
5065 1.1 christos
5066 1.1 christos LIBS="$LIBS -lXmu"
5067 1.1 christos echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5068 1.1 christos echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5069 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5070 1.1 christos
5071 1.1 christos /* confdefs.h. */
5072 1.1 christos _ACEOF
5073 1.1 christos cat confdefs.h >>conftest.$ac_ext
5074 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5075 1.1 christos /* end confdefs.h. */
5076 1.1 christos
5077 1.1 christos
5078 1.1 christos #include <X11/Intrinsic.h>
5079 1.1 christos #include <X11/Xmu/Converters.h>
5080 1.1 christos
5081 1.1 christos
5082 1.1 christos int
5083 1.1 christos main ()
5084 1.1 christos {
5085 1.1 christos
5086 1.1 christos ;
5087 1.1 christos return 0;
5088 1.1 christos }
5089 1.1 christos
5090 1.1 christos _ACEOF
5091 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
5092 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093 1.1 christos (eval $ac_link) 2>conftest.er1
5094 1.1 christos ac_status=$?
5095 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5096 1.1 christos rm -f conftest.er1
5097 1.1 christos cat conftest.err >&5
5098 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 1.1 christos (exit $ac_status); } &&
5100 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
5101 1.1 christos || test ! -s conftest.err'
5102 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 1.1 christos (eval $ac_try) 2>&5
5104 1.1 christos ac_status=$?
5105 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 1.1 christos (exit $ac_status); }; } &&
5107 1.1 christos { ac_try='test -s conftest$ac_exeext'
5108 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 1.1 christos (eval $ac_try) 2>&5
5110 1.1 christos ac_status=$?
5111 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 1.1 christos (exit $ac_status); }; }; then
5113 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
5114 1.1 christos echo "${ECHO_T}yes" >&6
5115 1.1 christos else
5116 1.1 christos echo "$as_me: failed program was:" >&5
5117 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5118 1.1 christos
5119 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5120 1.1 christos echo "${ECHO_T}no" >&6
5121 1.1 christos groff_no_x="yes"
5122 1.1 christos fi
5123 1.1 christos rm -f conftest.err conftest.$ac_objext \
5124 1.1 christos conftest$ac_exeext conftest.$ac_ext
5125 1.1 christos
5126 1.1 christos CFLAGS=$OLDCFLAGS
5127 1.1 christos LDFLAGS=$OLDLDFLAGS
5128 1.1 christos LIBS=$OLDLIBS
5129 1.1 christos fi
5130 1.1 christos
5131 1.1 christos if test "x$groff_no_x" = "xyes"; then
5132 1.1 christos { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5133 1.1 christos echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5134 1.1 christos else
5135 1.1 christos XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5136 1.1 christos XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5137 1.1 christos XLIBDIRS="src/libs/libxutil"
5138 1.1 christos fi
5139 1.1 christos
5140 1.1 christos
5141 1.1 christos
5142 1.1 christos
5143 1.1 christos
5144 1.1 christos # Check whether --with-appresdir or --without-appresdir was given.
5145 1.1 christos if test "${with_appresdir+set}" = set; then
5146 1.1 christos withval="$with_appresdir"
5147 1.1 christos
5148 1.1 christos fi;
5149 1.1 christos if test -z "$groff_no_x"; then
5150 1.1 christos # Create an Imakefile, run `xmkmf', then `make'.
5151 1.1 christos rm -f -r conftest.dir
5152 1.1 christos if mkdir conftest.dir; then
5153 1.1 christos cd conftest.dir
5154 1.1 christos # Make sure to not put `make' in the Imakefile rules,
5155 1.1 christos # since we grep it out.
5156 1.1 christos cat >Imakefile <<'EOF'
5157 1.1 christos
5158 1.1 christos xlibdirs:
5159 1.1 christos @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5160 1.1 christos EOF
5161 1.1 christos
5162 1.1 christos if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5163 1.1 christos # GNU make sometimes prints "make[1]: Entering...",
5164 1.1 christos # which would confuse us.
5165 1.1 christos eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5166 1.1 christos
5167 1.1 christos # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5168 1.1 christos for groff_extension in a so sl; do
5169 1.1 christos if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5170 1.1 christos test -f $groff_x_libdir/libX11.$groff_extension; then
5171 1.1 christos groff_x_usrlibdir=$groff_x_libdir
5172 1.1 christos break
5173 1.1 christos fi
5174 1.1 christos done
5175 1.1 christos fi
5176 1.1 christos
5177 1.1 christos cd ..
5178 1.1 christos rm -f -r conftest.dir
5179 1.1 christos fi
5180 1.1 christos
5181 1.1 christos # In case the test with `xmkmf' wasn't successful, try a suite of
5182 1.1 christos # standard directories. Check `X11' before `X11Rn' because it is often
5183 1.1 christos # a symlink to the current release.
5184 1.1 christos groff_x_libdirs='
5185 1.1 christos /usr/X11/lib
5186 1.1 christos /usr/X11R6/lib
5187 1.1 christos /usr/X11R5/lib
5188 1.1 christos /usr/X11R4/lib
5189 1.1 christos
5190 1.1 christos /usr/lib/X11
5191 1.1 christos /usr/lib/X11R6
5192 1.1 christos /usr/lib/X11R5
5193 1.1 christos /usr/lib/X11R4
5194 1.1 christos
5195 1.1 christos /usr/local/X11/lib
5196 1.1 christos /usr/local/X11R6/lib
5197 1.1 christos /usr/local/X11R5/lib
5198 1.1 christos /usr/local/X11R4/lib
5199 1.1 christos
5200 1.1 christos /usr/local/lib/X11
5201 1.1 christos /usr/local/lib/X11R6
5202 1.1 christos /usr/local/lib/X11R5
5203 1.1 christos /usr/local/lib/X11R4
5204 1.1 christos
5205 1.1 christos /usr/X386/lib
5206 1.1 christos /usr/x386/lib
5207 1.1 christos /usr/XFree86/lib/X11
5208 1.1 christos
5209 1.1 christos /usr/lib
5210 1.1 christos /usr/local/lib
5211 1.1 christos /usr/unsupported/lib
5212 1.1 christos /usr/athena/lib
5213 1.1 christos /usr/local/x11r5/lib
5214 1.1 christos /usr/lpp/Xamples/lib
5215 1.1 christos
5216 1.1 christos /usr/openwin/lib
5217 1.1 christos /usr/openwin/share/lib'
5218 1.1 christos
5219 1.1 christos if test -z "$groff_x_usrlibdir"; then
5220 1.1 christos # We only test whether libX11 exists.
5221 1.1 christos for groff_dir in $groff_x_libdirs; do
5222 1.1 christos for groff_extension in a so sl; do
5223 1.1 christos if test ! -r $groff_dir/libX11.$groff_extension; then
5224 1.1 christos groff_x_usrlibdir=$groff_dir
5225 1.1 christos break 2
5226 1.1 christos fi
5227 1.1 christos done
5228 1.1 christos done
5229 1.1 christos fi
5230 1.1 christos
5231 1.1 christos if test "x$with_appresdir" = "x"; then
5232 1.1 christos appresdir=$groff_x_usrlibdir/X11/app-defaults
5233 1.1 christos else
5234 1.1 christos appresdir=$with_appresdir
5235 1.1 christos fi
5236 1.1 christos fi
5237 1.1 christos
5238 1.1 christos if test -z "$PSPRINT"; then
5239 1.1 christos for ac_prog in lpr
5240 1.1 christos do
5241 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5242 1.1 christos set dummy $ac_prog; ac_word=$2
5243 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 1.1 christos if test "${ac_cv_prog_LPR+set}" = set; then
5246 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5247 1.1 christos else
5248 1.1 christos if test -n "$LPR"; then
5249 1.1 christos ac_cv_prog_LPR="$LPR" # Let the user override the test.
5250 1.1 christos else
5251 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 1.1 christos for as_dir in $PATH
5253 1.1 christos do
5254 1.1 christos IFS=$as_save_IFS
5255 1.1 christos test -z "$as_dir" && as_dir=.
5256 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5257 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 1.1 christos ac_cv_prog_LPR="$ac_prog"
5259 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 1.1 christos break 2
5261 1.1 christos fi
5262 1.1 christos done
5263 1.1 christos done
5264 1.1 christos
5265 1.1 christos fi
5266 1.1 christos fi
5267 1.1 christos LPR=$ac_cv_prog_LPR
5268 1.1 christos if test -n "$LPR"; then
5269 1.1 christos echo "$as_me:$LINENO: result: $LPR" >&5
5270 1.1 christos echo "${ECHO_T}$LPR" >&6
5271 1.1 christos else
5272 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5273 1.1 christos echo "${ECHO_T}no" >&6
5274 1.1 christos fi
5275 1.1 christos
5276 1.1 christos test -n "$LPR" && break
5277 1.1 christos done
5278 1.1 christos
5279 1.1 christos for ac_prog in lp
5280 1.1 christos do
5281 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5282 1.1 christos set dummy $ac_prog; ac_word=$2
5283 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285 1.1 christos if test "${ac_cv_prog_LP+set}" = set; then
5286 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5287 1.1 christos else
5288 1.1 christos if test -n "$LP"; then
5289 1.1 christos ac_cv_prog_LP="$LP" # Let the user override the test.
5290 1.1 christos else
5291 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 1.1 christos for as_dir in $PATH
5293 1.1 christos do
5294 1.1 christos IFS=$as_save_IFS
5295 1.1 christos test -z "$as_dir" && as_dir=.
5296 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5297 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 1.1 christos ac_cv_prog_LP="$ac_prog"
5299 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 1.1 christos break 2
5301 1.1 christos fi
5302 1.1 christos done
5303 1.1 christos done
5304 1.1 christos
5305 1.1 christos fi
5306 1.1 christos fi
5307 1.1 christos LP=$ac_cv_prog_LP
5308 1.1 christos if test -n "$LP"; then
5309 1.1 christos echo "$as_me:$LINENO: result: $LP" >&5
5310 1.1 christos echo "${ECHO_T}$LP" >&6
5311 1.1 christos else
5312 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5313 1.1 christos echo "${ECHO_T}no" >&6
5314 1.1 christos fi
5315 1.1 christos
5316 1.1 christos test -n "$LP" && break
5317 1.1 christos done
5318 1.1 christos
5319 1.1 christos if test -n "$LPR" && test -n "$LP"; then
5320 1.1 christos # HP-UX provides an lpr command that emulates lpr using lp,
5321 1.1 christos # but it doesn't have lpq; in this case we want to use lp
5322 1.1 christos # rather than lpr.
5323 1.1 christos for ac_prog in lpq
5324 1.1 christos do
5325 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5326 1.1 christos set dummy $ac_prog; ac_word=$2
5327 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 1.1 christos if test "${ac_cv_prog_LPQ+set}" = set; then
5330 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5331 1.1 christos else
5332 1.1 christos if test -n "$LPQ"; then
5333 1.1 christos ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5334 1.1 christos else
5335 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 1.1 christos for as_dir in $PATH
5337 1.1 christos do
5338 1.1 christos IFS=$as_save_IFS
5339 1.1 christos test -z "$as_dir" && as_dir=.
5340 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5341 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 1.1 christos ac_cv_prog_LPQ="$ac_prog"
5343 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 1.1 christos break 2
5345 1.1 christos fi
5346 1.1 christos done
5347 1.1 christos done
5348 1.1 christos
5349 1.1 christos fi
5350 1.1 christos fi
5351 1.1 christos LPQ=$ac_cv_prog_LPQ
5352 1.1 christos if test -n "$LPQ"; then
5353 1.1 christos echo "$as_me:$LINENO: result: $LPQ" >&5
5354 1.1 christos echo "${ECHO_T}$LPQ" >&6
5355 1.1 christos else
5356 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5357 1.1 christos echo "${ECHO_T}no" >&6
5358 1.1 christos fi
5359 1.1 christos
5360 1.1 christos test -n "$LPQ" && break
5361 1.1 christos done
5362 1.1 christos
5363 1.1 christos test -n "$LPQ" || LPR=
5364 1.1 christos fi
5365 1.1 christos if test -n "$LPR"; then
5366 1.1 christos PSPRINT="$LPR"
5367 1.1 christos elif test -n "$LP"; then
5368 1.1 christos PSPRINT="$LP"
5369 1.1 christos fi
5370 1.1 christos fi
5371 1.1 christos
5372 1.1 christos echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5373 1.1 christos echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5374 1.1 christos echo "$as_me:$LINENO: result: $PSPRINT" >&5
5375 1.1 christos echo "${ECHO_T}$PSPRINT" >&6
5376 1.1 christos
5377 1.1 christos # Figure out DVIPRINT from PSPRINT.
5378 1.1 christos echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5379 1.1 christos echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5380 1.1 christos if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5381 1.1 christos if test "x$PSPRINT" = "xlpr"; then
5382 1.1 christos DVIPRINT="lpr -d"
5383 1.1 christos else
5384 1.1 christos DVIPRINT="$PSPRINT"
5385 1.1 christos fi
5386 1.1 christos fi
5387 1.1 christos
5388 1.1 christos echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5389 1.1 christos echo "${ECHO_T}$DVIPRINT" >&6
5390 1.1 christos # Extract the first word of "perl", so it can be a program name with args.
5391 1.1 christos set dummy perl; ac_word=$2
5392 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 1.1 christos if test "${ac_cv_path_PERLPATH+set}" = set; then
5395 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5396 1.1 christos else
5397 1.1 christos case $PERLPATH in
5398 1.1 christos [\\/]* | ?:[\\/]*)
5399 1.1 christos ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5400 1.1 christos ;;
5401 1.1 christos *)
5402 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 1.1 christos for as_dir in $PATH
5404 1.1 christos do
5405 1.1 christos IFS=$as_save_IFS
5406 1.1 christos test -z "$as_dir" && as_dir=.
5407 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5408 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 1.1 christos ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5410 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 1.1 christos break 2
5412 1.1 christos fi
5413 1.1 christos done
5414 1.1 christos done
5415 1.1 christos
5416 1.1 christos test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5417 1.1 christos ;;
5418 1.1 christos esac
5419 1.1 christos fi
5420 1.1 christos PERLPATH=$ac_cv_path_PERLPATH
5421 1.1 christos
5422 1.1 christos if test -n "$PERLPATH"; then
5423 1.1 christos echo "$as_me:$LINENO: result: $PERLPATH" >&5
5424 1.1 christos echo "${ECHO_T}$PERLPATH" >&6
5425 1.1 christos else
5426 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5427 1.1 christos echo "${ECHO_T}no" >&6
5428 1.1 christos fi
5429 1.1 christos
5430 1.1 christos for ac_prog in byacc 'bison -y'
5431 1.1 christos do
5432 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5433 1.1 christos set dummy $ac_prog; ac_word=$2
5434 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 1.1 christos if test "${ac_cv_prog_YACC+set}" = set; then
5437 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5438 1.1 christos else
5439 1.1 christos if test -n "$YACC"; then
5440 1.1 christos ac_cv_prog_YACC="$YACC" # Let the user override the test.
5441 1.1 christos else
5442 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 1.1 christos for as_dir in $PATH
5444 1.1 christos do
5445 1.1 christos IFS=$as_save_IFS
5446 1.1 christos test -z "$as_dir" && as_dir=.
5447 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5448 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 1.1 christos ac_cv_prog_YACC="$ac_prog"
5450 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 1.1 christos break 2
5452 1.1 christos fi
5453 1.1 christos done
5454 1.1 christos done
5455 1.1 christos
5456 1.1 christos fi
5457 1.1 christos fi
5458 1.1 christos YACC=$ac_cv_prog_YACC
5459 1.1 christos if test -n "$YACC"; then
5460 1.1 christos echo "$as_me:$LINENO: result: $YACC" >&5
5461 1.1 christos echo "${ECHO_T}$YACC" >&6
5462 1.1 christos else
5463 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5464 1.1 christos echo "${ECHO_T}no" >&6
5465 1.1 christos fi
5466 1.1 christos
5467 1.1 christos test -n "$YACC" && break
5468 1.1 christos done
5469 1.1 christos test -n "$YACC" || YACC="yacc"
5470 1.1 christos
5471 1.1 christos if test -n "$ac_tool_prefix"; then
5472 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5473 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5474 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 1.1 christos if test "${ac_cv_prog_RANLIB+set}" = set; then
5477 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5478 1.1 christos else
5479 1.1 christos if test -n "$RANLIB"; then
5480 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5481 1.1 christos else
5482 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 1.1 christos for as_dir in $PATH
5484 1.1 christos do
5485 1.1 christos IFS=$as_save_IFS
5486 1.1 christos test -z "$as_dir" && as_dir=.
5487 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5488 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5490 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 1.1 christos break 2
5492 1.1 christos fi
5493 1.1 christos done
5494 1.1 christos done
5495 1.1 christos
5496 1.1 christos fi
5497 1.1 christos fi
5498 1.1 christos RANLIB=$ac_cv_prog_RANLIB
5499 1.1 christos if test -n "$RANLIB"; then
5500 1.1 christos echo "$as_me:$LINENO: result: $RANLIB" >&5
5501 1.1 christos echo "${ECHO_T}$RANLIB" >&6
5502 1.1 christos else
5503 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5504 1.1 christos echo "${ECHO_T}no" >&6
5505 1.1 christos fi
5506 1.1 christos
5507 1.1 christos fi
5508 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then
5509 1.1 christos ac_ct_RANLIB=$RANLIB
5510 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args.
5511 1.1 christos set dummy ranlib; ac_word=$2
5512 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 1.1 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5515 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5516 1.1 christos else
5517 1.1 christos if test -n "$ac_ct_RANLIB"; then
5518 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5519 1.1 christos else
5520 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 1.1 christos for as_dir in $PATH
5522 1.1 christos do
5523 1.1 christos IFS=$as_save_IFS
5524 1.1 christos test -z "$as_dir" && as_dir=.
5525 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5526 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib"
5528 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 1.1 christos break 2
5530 1.1 christos fi
5531 1.1 christos done
5532 1.1 christos done
5533 1.1 christos
5534 1.1 christos fi
5535 1.1 christos fi
5536 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5537 1.1 christos if test -n "$ac_ct_RANLIB"; then
5538 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5539 1.1 christos echo "${ECHO_T}$ac_ct_RANLIB" >&6
5540 1.1 christos else
5541 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5542 1.1 christos echo "${ECHO_T}no" >&6
5543 1.1 christos fi
5544 1.1 christos
5545 1.1 christos if test "x$ac_ct_RANLIB" = x; then
5546 1.1 christos RANLIB=":"
5547 1.1 christos else
5548 1.1 christos if test "$build" != "$host"; then
5549 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5550 1.1 christos whose name does not start with the host triplet. If you think this
5551 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5552 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5553 1.1 christos whose name does not start with the host triplet. If you think this
5554 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5555 1.1 christos fi
5556 1.1 christos RANLIB=$ac_ct_RANLIB
5557 1.1 christos fi
5558 1.1 christos else
5559 1.1 christos RANLIB="$ac_cv_prog_RANLIB"
5560 1.1 christos fi
5561 1.1 christos
5562 1.1 christos ac_aux_dir=
5563 1.1 christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5564 1.1 christos if test -f $ac_dir/install-sh; then
5565 1.1 christos ac_aux_dir=$ac_dir
5566 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
5567 1.1 christos break
5568 1.1 christos elif test -f $ac_dir/install.sh; then
5569 1.1 christos ac_aux_dir=$ac_dir
5570 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
5571 1.1 christos break
5572 1.1 christos elif test -f $ac_dir/shtool; then
5573 1.1 christos ac_aux_dir=$ac_dir
5574 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
5575 1.1 christos break
5576 1.1 christos fi
5577 1.1 christos done
5578 1.1 christos if test -z "$ac_aux_dir"; then
5579 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5580 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5581 1.1 christos { (exit 1); exit 1; }; }
5582 1.1 christos fi
5583 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5584 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5585 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5586 1.1 christos
5587 1.1 christos
5588 1.1 christos ac_dir=`cd $ac_aux_dir; pwd`
5589 1.1 christos ac_install_sh="$ac_dir/install-sh -c"
5590 1.1 christos for ac_prog in install-info
5591 1.1 christos do
5592 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5593 1.1 christos set dummy $ac_prog; ac_word=$2
5594 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596 1.1 christos if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5597 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5598 1.1 christos else
5599 1.1 christos if test -n "$INSTALL_INFO"; then
5600 1.1 christos ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5601 1.1 christos else
5602 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 1.1 christos for as_dir in $PATH
5604 1.1 christos do
5605 1.1 christos IFS=$as_save_IFS
5606 1.1 christos test -z "$as_dir" && as_dir=.
5607 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5608 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 1.1 christos ac_cv_prog_INSTALL_INFO="$ac_prog"
5610 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 1.1 christos break 2
5612 1.1 christos fi
5613 1.1 christos done
5614 1.1 christos done
5615 1.1 christos
5616 1.1 christos fi
5617 1.1 christos fi
5618 1.1 christos INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5619 1.1 christos if test -n "$INSTALL_INFO"; then
5620 1.1 christos echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5621 1.1 christos echo "${ECHO_T}$INSTALL_INFO" >&6
5622 1.1 christos else
5623 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5624 1.1 christos echo "${ECHO_T}no" >&6
5625 1.1 christos fi
5626 1.1 christos
5627 1.1 christos test -n "$INSTALL_INFO" && break
5628 1.1 christos done
5629 1.1 christos test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5630 1.1 christos
5631 1.1 christos # Find a good install program. We prefer a C program (faster),
5632 1.1 christos # so one script is as good as another. But avoid the broken or
5633 1.1 christos # incompatible versions:
5634 1.1 christos # SysV /etc/install, /usr/sbin/install
5635 1.1 christos # SunOS /usr/etc/install
5636 1.1 christos # IRIX /sbin/install
5637 1.1 christos # AIX /bin/install
5638 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
5639 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5640 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5641 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5642 1.1 christos # OS/2's system install, which has a completely different semantic
5643 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
5644 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5645 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5646 1.1 christos if test -z "$INSTALL"; then
5647 1.1 christos if test "${ac_cv_path_install+set}" = set; then
5648 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5649 1.1 christos else
5650 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 1.1 christos for as_dir in $PATH
5652 1.1 christos do
5653 1.1 christos IFS=$as_save_IFS
5654 1.1 christos test -z "$as_dir" && as_dir=.
5655 1.1 christos # Account for people who put trailing slashes in PATH elements.
5656 1.1 christos case $as_dir/ in
5657 1.1 christos ./ | .// | /cC/* | \
5658 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5659 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5660 1.1 christos /usr/ucb/* ) ;;
5661 1.1 christos *)
5662 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
5663 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
5664 1.1 christos # by default.
5665 1.1 christos for ac_prog in ginstall scoinst install; do
5666 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5667 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5668 1.1 christos if test $ac_prog = install &&
5669 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5670 1.1 christos # AIX install. It has an incompatible calling convention.
5671 1.1 christos :
5672 1.1 christos elif test $ac_prog = install &&
5673 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5674 1.1 christos # program-specific install script used by HP pwplus--don't use.
5675 1.1 christos :
5676 1.1 christos else
5677 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5678 1.1 christos break 3
5679 1.1 christos fi
5680 1.1 christos fi
5681 1.1 christos done
5682 1.1 christos done
5683 1.1 christos ;;
5684 1.1 christos esac
5685 1.1 christos done
5686 1.1 christos
5687 1.1 christos
5688 1.1 christos fi
5689 1.1 christos if test "${ac_cv_path_install+set}" = set; then
5690 1.1 christos INSTALL=$ac_cv_path_install
5691 1.1 christos else
5692 1.1 christos # As a last resort, use the slow shell script. Don't cache a
5693 1.1 christos # value for INSTALL within a source directory, because that will
5694 1.1 christos # break other packages using the cache if that directory is
5695 1.1 christos # removed, or if the value is a relative name.
5696 1.1 christos INSTALL=$ac_install_sh
5697 1.1 christos fi
5698 1.1 christos fi
5699 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5
5700 1.1 christos echo "${ECHO_T}$INSTALL" >&6
5701 1.1 christos
5702 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5703 1.1 christos # It thinks the first close brace ends the variable substitution.
5704 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5705 1.1 christos
5706 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5707 1.1 christos
5708 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5709 1.1 christos
5710 1.1 christos echo "$as_me:$LINENO: checking whether ln -s works" >&5
5711 1.1 christos echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5712 1.1 christos LN_S=$as_ln_s
5713 1.1 christos if test "$LN_S" = "ln -s"; then
5714 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
5715 1.1 christos echo "${ECHO_T}yes" >&6
5716 1.1 christos else
5717 1.1 christos echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5718 1.1 christos echo "${ECHO_T}no, using $LN_S" >&6
5719 1.1 christos fi
5720 1.1 christos
5721 1.1 christos
5722 1.1 christos # use a dummy substitution if no csh hack is necessary to avoid errors
5723 1.1 christos # with non-GNU sed programs
5724 1.1 christos echo "$as_me:$LINENO: checking for csh hash hack" >&5
5725 1.1 christos echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5726 1.1 christos
5727 1.1 christos cat <<EOF >conftest.sh
5728 1.1 christos #! /bin/sh
5729 1.1 christos true || exit 0
5730 1.1 christos export PATH || exit 0
5731 1.1 christos exit 1
5732 1.1 christos EOF
5733 1.1 christos
5734 1.1 christos chmod +x conftest.sh
5735 1.1 christos if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
5736 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
5737 1.1 christos echo "${ECHO_T}yes" >&6
5738 1.1 christos SH_SCRIPT_SED_CMD='1s/.*/:/'
5739 1.1 christos else
5740 1.1 christos echo "$as_me:$LINENO: result: no" >&5
5741 1.1 christos echo "${ECHO_T}no" >&6
5742 1.1 christos SH_SCRIPT_SED_CMD='1s/a/a/'
5743 1.1 christos fi
5744 1.1 christos rm -f conftest.sh
5745 1.1 christos
5746 1.1 christos
5747 1.1 christos # checks for headers
5748 1.1 christos echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5749 1.1 christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5750 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
5751 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5752 1.1 christos else
5753 1.1 christos # Extract the first word of "grep ggrep" to use in msg output
5754 1.1 christos if test -z "$GREP"; then
5755 1.1 christos set dummy grep ggrep; ac_prog_name=$2
5756 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
5757 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5758 1.1 christos else
5759 1.1 christos # Create a temporary directory, and hook for its removal unless debugging.
5760 1.1 christos $debug ||
5761 1.1 christos {
5762 1.1 christos trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5763 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
5764 1.1 christos }
5765 1.1 christos
5766 1.1 christos # Create a (secure) tmp directory for tmp files.
5767 1.1 christos : ${TMPDIR=/tmp}
5768 1.1 christos {
5769 1.1 christos tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5770 1.1 christos test -n "$tmp" && test -d "$tmp"
5771 1.1 christos } ||
5772 1.1 christos {
5773 1.1 christos tmp=$TMPDIR/GREP$$-$RANDOM
5774 1.1 christos (umask 077 && mkdir $tmp)
5775 1.1 christos } ||
5776 1.1 christos {
5777 1.1 christos echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5778 1.1 christos { (exit 1); exit 1; }
5779 1.1 christos }
5780 1.1 christos ac_path_GREP_found=false
5781 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
5782 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 1.1 christos as_dummy="$PATH:/usr/xpg4/bin"
5784 1.1 christos for as_dir in $as_dummy
5785 1.1 christos do
5786 1.1 christos IFS=$as_save_IFS
5787 1.1 christos test -z "$as_dir" && as_dir=.
5788 1.1 christos for ac_prog in grep ggrep; do
5789 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5790 1.1 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5791 1.1 christos test -f "$ac_path_GREP" || continue
5792 1.1 christos $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
5793 1.1 christos # Check for GNU ac_path_GREP and select it if it is found.
5794 1.1 christos # Check for GNU $ac_path_GREP
5795 1.1 christos if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5796 1.1 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
5797 1.1 christos else
5798 1.1 christos ac_count=0
5799 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5800 1.1 christos while :
5801 1.1 christos do
5802 1.1 christos cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5803 1.1 christos mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5804 1.1 christos cp "$tmp/conftest.in" "$tmp/conftest.nl"
5805 1.1 christos echo 'GREP' >> "$tmp/conftest.nl"
5806 1.1 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5807 1.1 christos diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5808 1.1 christos ac_count=`expr $ac_count + 1`
5809 1.1 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
5810 1.1 christos # Best one so far, save it but keep looking for a better one
5811 1.1 christos ac_cv_path_GREP="$ac_path_GREP"
5812 1.1 christos ac_path_GREP_max=$ac_count
5813 1.1 christos fi
5814 1.1 christos # 10*(2^10) chars as input seems more than enough
5815 1.1 christos test $ac_count -gt 10 && break
5816 1.1 christos done
5817 1.1 christos fi
5818 1.1 christos
5819 1.1 christos fi
5820 1.1 christos
5821 1.1 christos $ac_path_GREP_found && break 3
5822 1.1 christos done
5823 1.1 christos done
5824 1.1 christos
5825 1.1 christos done
5826 1.1 christos
5827 1.1 christos rm -rf "$tmp"
5828 1.1 christos
5829 1.1 christos fi
5830 1.1 christos
5831 1.1 christos GREP="$ac_cv_path_GREP"
5832 1.1 christos if test -z "$GREP"; then
5833 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5834 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5835 1.1 christos { (exit 1); exit 1; }; }
5836 1.1 christos fi
5837 1.1 christos
5838 1.1 christos fi
5839 1.1 christos
5840 1.1 christos
5841 1.1 christos fi
5842 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5843 1.1 christos echo "${ECHO_T}$ac_cv_path_GREP" >&6
5844 1.1 christos GREP="$ac_cv_path_GREP"
5845 1.1 christos
5846 1.1 christos
5847 1.1 christos echo "$as_me:$LINENO: checking for egrep" >&5
5848 1.1 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5849 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
5850 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5851 1.1 christos else
5852 1.1 christos if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5853 1.1 christos then ac_cv_path_EGREP="$GREP -E"
5854 1.1 christos else
5855 1.1 christos # Extract the first word of "egrep" to use in msg output
5856 1.1 christos if test -z "$EGREP"; then
5857 1.1 christos set dummy egrep; ac_prog_name=$2
5858 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
5859 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5860 1.1 christos else
5861 1.1 christos # Create a temporary directory, and hook for its removal unless debugging.
5862 1.1 christos $debug ||
5863 1.1 christos {
5864 1.1 christos trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5865 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
5866 1.1 christos }
5867 1.1 christos
5868 1.1 christos # Create a (secure) tmp directory for tmp files.
5869 1.1 christos : ${TMPDIR=/tmp}
5870 1.1 christos {
5871 1.1 christos tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5872 1.1 christos test -n "$tmp" && test -d "$tmp"
5873 1.1 christos } ||
5874 1.1 christos {
5875 1.1 christos tmp=$TMPDIR/EGREP$$-$RANDOM
5876 1.1 christos (umask 077 && mkdir $tmp)
5877 1.1 christos } ||
5878 1.1 christos {
5879 1.1 christos echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5880 1.1 christos { (exit 1); exit 1; }
5881 1.1 christos }
5882 1.1 christos ac_path_EGREP_found=false
5883 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
5884 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 1.1 christos as_dummy="$PATH:/usr/xpg4/bin"
5886 1.1 christos for as_dir in $as_dummy
5887 1.1 christos do
5888 1.1 christos IFS=$as_save_IFS
5889 1.1 christos test -z "$as_dir" && as_dir=.
5890 1.1 christos for ac_prog in egrep; do
5891 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
5892 1.1 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5893 1.1 christos test -f "$ac_path_EGREP" || continue
5894 1.1 christos $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
5895 1.1 christos # Check for GNU ac_path_EGREP and select it if it is found.
5896 1.1 christos # Check for GNU $ac_path_EGREP
5897 1.1 christos if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5898 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
5899 1.1 christos else
5900 1.1 christos ac_count=0
5901 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5902 1.1 christos while :
5903 1.1 christos do
5904 1.1 christos cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5905 1.1 christos mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5906 1.1 christos cp "$tmp/conftest.in" "$tmp/conftest.nl"
5907 1.1 christos echo 'EGREP' >> "$tmp/conftest.nl"
5908 1.1 christos "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5909 1.1 christos diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5910 1.1 christos ac_count=`expr $ac_count + 1`
5911 1.1 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5912 1.1 christos # Best one so far, save it but keep looking for a better one
5913 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP"
5914 1.1 christos ac_path_EGREP_max=$ac_count
5915 1.1 christos fi
5916 1.1 christos # 10*(2^10) chars as input seems more than enough
5917 1.1 christos test $ac_count -gt 10 && break
5918 1.1 christos done
5919 1.1 christos fi
5920 1.1 christos
5921 1.1 christos fi
5922 1.1 christos
5923 1.1 christos $ac_path_EGREP_found && break 3
5924 1.1 christos done
5925 1.1 christos done
5926 1.1 christos
5927 1.1 christos done
5928 1.1 christos
5929 1.1 christos rm -rf "$tmp"
5930 1.1 christos
5931 1.1 christos fi
5932 1.1 christos
5933 1.1 christos EGREP="$ac_cv_path_EGREP"
5934 1.1 christos if test -z "$EGREP"; then
5935 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5936 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5937 1.1 christos { (exit 1); exit 1; }; }
5938 1.1 christos fi
5939 1.1 christos
5940 1.1 christos fi
5941 1.1 christos
5942 1.1 christos
5943 1.1 christos fi
5944 1.1 christos fi
5945 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5946 1.1 christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5947 1.1 christos EGREP="$ac_cv_path_EGREP"
5948 1.1 christos
5949 1.1 christos
5950 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5951 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5952 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then
5953 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5954 1.1 christos else
5955 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5956 1.1 christos /* confdefs.h. */
5957 1.1 christos _ACEOF
5958 1.1 christos cat confdefs.h >>conftest.$ac_ext
5959 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5960 1.1 christos /* end confdefs.h. */
5961 1.1 christos #include <stdlib.h>
5962 1.1 christos #include <stdarg.h>
5963 1.1 christos #include <string.h>
5964 1.1 christos #include <float.h>
5965 1.1 christos
5966 1.1 christos int
5967 1.1 christos main ()
5968 1.1 christos {
5969 1.1 christos
5970 1.1 christos ;
5971 1.1 christos return 0;
5972 1.1 christos }
5973 1.1 christos _ACEOF
5974 1.1 christos rm -f conftest.$ac_objext
5975 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 1.1 christos (eval $ac_compile) 2>conftest.er1
5977 1.1 christos ac_status=$?
5978 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5979 1.1 christos rm -f conftest.er1
5980 1.1 christos cat conftest.err >&5
5981 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 1.1 christos (exit $ac_status); } &&
5983 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
5984 1.1 christos || test ! -s conftest.err'
5985 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 1.1 christos (eval $ac_try) 2>&5
5987 1.1 christos ac_status=$?
5988 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 1.1 christos (exit $ac_status); }; } &&
5990 1.1 christos { ac_try='test -s conftest.$ac_objext'
5991 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 1.1 christos (eval $ac_try) 2>&5
5993 1.1 christos ac_status=$?
5994 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 1.1 christos (exit $ac_status); }; }; then
5996 1.1 christos ac_cv_header_stdc=yes
5997 1.1 christos else
5998 1.1 christos echo "$as_me: failed program was:" >&5
5999 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6000 1.1 christos
6001 1.1 christos ac_cv_header_stdc=no
6002 1.1 christos fi
6003 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 1.1 christos
6005 1.1 christos if test $ac_cv_header_stdc = yes; then
6006 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6007 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6008 1.1 christos /* confdefs.h. */
6009 1.1 christos _ACEOF
6010 1.1 christos cat confdefs.h >>conftest.$ac_ext
6011 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6012 1.1 christos /* end confdefs.h. */
6013 1.1 christos #include <string.h>
6014 1.1 christos
6015 1.1 christos _ACEOF
6016 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then
6018 1.1 christos :
6019 1.1 christos else
6020 1.1 christos ac_cv_header_stdc=no
6021 1.1 christos fi
6022 1.1 christos rm -f conftest*
6023 1.1 christos
6024 1.1 christos fi
6025 1.1 christos
6026 1.1 christos if test $ac_cv_header_stdc = yes; then
6027 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6028 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6029 1.1 christos /* confdefs.h. */
6030 1.1 christos _ACEOF
6031 1.1 christos cat confdefs.h >>conftest.$ac_ext
6032 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6033 1.1 christos /* end confdefs.h. */
6034 1.1 christos #include <stdlib.h>
6035 1.1 christos
6036 1.1 christos _ACEOF
6037 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 1.1 christos $EGREP "free" >/dev/null 2>&1; then
6039 1.1 christos :
6040 1.1 christos else
6041 1.1 christos ac_cv_header_stdc=no
6042 1.1 christos fi
6043 1.1 christos rm -f conftest*
6044 1.1 christos
6045 1.1 christos fi
6046 1.1 christos
6047 1.1 christos if test $ac_cv_header_stdc = yes; then
6048 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6049 1.1 christos if test "$cross_compiling" = yes; then
6050 1.1 christos :
6051 1.1 christos else
6052 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6053 1.1 christos /* confdefs.h. */
6054 1.1 christos _ACEOF
6055 1.1 christos cat confdefs.h >>conftest.$ac_ext
6056 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6057 1.1 christos /* end confdefs.h. */
6058 1.1 christos #include <ctype.h>
6059 1.1 christos #include <stdlib.h>
6060 1.1 christos #if ((' ' & 0x0FF) == 0x020)
6061 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063 1.1 christos #else
6064 1.1 christos # define ISLOWER(c) \
6065 1.1 christos (('a' <= (c) && (c) <= 'i') \
6066 1.1 christos || ('j' <= (c) && (c) <= 'r') \
6067 1.1 christos || ('s' <= (c) && (c) <= 'z'))
6068 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069 1.1 christos #endif
6070 1.1 christos
6071 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6072 1.1 christos int
6073 1.1 christos main ()
6074 1.1 christos {
6075 1.1 christos int i;
6076 1.1 christos for (i = 0; i < 256; i++)
6077 1.1 christos if (XOR (islower (i), ISLOWER (i))
6078 1.1 christos || toupper (i) != TOUPPER (i))
6079 1.1 christos exit (2);
6080 1.1 christos exit (0);
6081 1.1 christos }
6082 1.1 christos _ACEOF
6083 1.1 christos rm -f conftest$ac_exeext
6084 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 1.1 christos (eval $ac_link) 2>&5
6086 1.1 christos ac_status=$?
6087 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6089 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 1.1 christos (eval $ac_try) 2>&5
6091 1.1 christos ac_status=$?
6092 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 1.1 christos (exit $ac_status); }; }; then
6094 1.1 christos :
6095 1.1 christos else
6096 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
6097 1.1 christos echo "$as_me: failed program was:" >&5
6098 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6099 1.1 christos
6100 1.1 christos ( exit $ac_status )
6101 1.1 christos ac_cv_header_stdc=no
6102 1.1 christos fi
6103 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6104 1.1 christos fi
6105 1.1 christos fi
6106 1.1 christos fi
6107 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6108 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
6109 1.1 christos if test $ac_cv_header_stdc = yes; then
6110 1.1 christos
6111 1.1 christos cat >>confdefs.h <<\_ACEOF
6112 1.1 christos #define STDC_HEADERS 1
6113 1.1 christos _ACEOF
6114 1.1 christos
6115 1.1 christos fi
6116 1.1 christos
6117 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 1.1 christos
6119 1.1 christos
6120 1.1 christos
6121 1.1 christos
6122 1.1 christos
6123 1.1 christos
6124 1.1 christos
6125 1.1 christos
6126 1.1 christos
6127 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6128 1.1 christos inttypes.h stdint.h unistd.h
6129 1.1 christos do
6130 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
6132 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6133 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6135 1.1 christos else
6136 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6137 1.1 christos /* confdefs.h. */
6138 1.1 christos _ACEOF
6139 1.1 christos cat confdefs.h >>conftest.$ac_ext
6140 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6141 1.1 christos /* end confdefs.h. */
6142 1.1 christos $ac_includes_default
6143 1.1 christos
6144 1.1 christos #include <$ac_header>
6145 1.1 christos _ACEOF
6146 1.1 christos rm -f conftest.$ac_objext
6147 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 1.1 christos (eval $ac_compile) 2>conftest.er1
6149 1.1 christos ac_status=$?
6150 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6151 1.1 christos rm -f conftest.er1
6152 1.1 christos cat conftest.err >&5
6153 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 1.1 christos (exit $ac_status); } &&
6155 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
6156 1.1 christos || test ! -s conftest.err'
6157 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 1.1 christos (eval $ac_try) 2>&5
6159 1.1 christos ac_status=$?
6160 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 1.1 christos (exit $ac_status); }; } &&
6162 1.1 christos { ac_try='test -s conftest.$ac_objext'
6163 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 1.1 christos (eval $ac_try) 2>&5
6165 1.1 christos ac_status=$?
6166 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 1.1 christos (exit $ac_status); }; }; then
6168 1.1 christos eval "$as_ac_Header=yes"
6169 1.1 christos else
6170 1.1 christos echo "$as_me: failed program was:" >&5
6171 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6172 1.1 christos
6173 1.1 christos eval "$as_ac_Header=no"
6174 1.1 christos fi
6175 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 1.1 christos fi
6177 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6178 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6179 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
6180 1.1 christos cat >>confdefs.h <<_ACEOF
6181 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6182 1.1 christos _ACEOF
6183 1.1 christos
6184 1.1 christos fi
6185 1.1 christos
6186 1.1 christos done
6187 1.1 christos
6188 1.1 christos
6189 1.1 christos
6190 1.1 christos
6191 1.1 christos
6192 1.1 christos
6193 1.1 christos
6194 1.1 christos
6195 1.1 christos
6196 1.1 christos
6197 1.1 christos
6198 1.1 christos
6199 1.1 christos
6200 1.1 christos for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6201 1.1 christos string.h strings.h math.h sys/time.h direct.h process.h
6202 1.1 christos do
6203 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6207 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6209 1.1 christos fi
6210 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6211 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6212 1.1 christos else
6213 1.1 christos # Is the header compilable?
6214 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
6215 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6216 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6217 1.1 christos /* confdefs.h. */
6218 1.1 christos _ACEOF
6219 1.1 christos cat confdefs.h >>conftest.$ac_ext
6220 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6221 1.1 christos /* end confdefs.h. */
6222 1.1 christos $ac_includes_default
6223 1.1 christos #include <$ac_header>
6224 1.1 christos _ACEOF
6225 1.1 christos rm -f conftest.$ac_objext
6226 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227 1.1 christos (eval $ac_compile) 2>conftest.er1
6228 1.1 christos ac_status=$?
6229 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6230 1.1 christos rm -f conftest.er1
6231 1.1 christos cat conftest.err >&5
6232 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 1.1 christos (exit $ac_status); } &&
6234 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
6235 1.1 christos || test ! -s conftest.err'
6236 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 1.1 christos (eval $ac_try) 2>&5
6238 1.1 christos ac_status=$?
6239 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 1.1 christos (exit $ac_status); }; } &&
6241 1.1 christos { ac_try='test -s conftest.$ac_objext'
6242 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 1.1 christos (eval $ac_try) 2>&5
6244 1.1 christos ac_status=$?
6245 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 1.1 christos (exit $ac_status); }; }; then
6247 1.1 christos ac_header_compiler=yes
6248 1.1 christos else
6249 1.1 christos echo "$as_me: failed program was:" >&5
6250 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6251 1.1 christos
6252 1.1 christos ac_header_compiler=no
6253 1.1 christos fi
6254 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6255 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6256 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6
6257 1.1 christos
6258 1.1 christos # Is the header present?
6259 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
6260 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6261 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6262 1.1 christos /* confdefs.h. */
6263 1.1 christos _ACEOF
6264 1.1 christos cat confdefs.h >>conftest.$ac_ext
6265 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6266 1.1 christos /* end confdefs.h. */
6267 1.1 christos #include <$ac_header>
6268 1.1 christos _ACEOF
6269 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6270 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6271 1.1 christos ac_status=$?
6272 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6273 1.1 christos rm -f conftest.er1
6274 1.1 christos cat conftest.err >&5
6275 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 1.1 christos (exit $ac_status); } >/dev/null; then
6277 1.1 christos if test -s conftest.err; then
6278 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
6279 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6280 1.1 christos else
6281 1.1 christos ac_cpp_err=
6282 1.1 christos fi
6283 1.1 christos else
6284 1.1 christos ac_cpp_err=yes
6285 1.1 christos fi
6286 1.1 christos if test -z "$ac_cpp_err"; then
6287 1.1 christos ac_header_preproc=yes
6288 1.1 christos else
6289 1.1 christos echo "$as_me: failed program was:" >&5
6290 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6291 1.1 christos
6292 1.1 christos ac_header_preproc=no
6293 1.1 christos fi
6294 1.1 christos rm -f conftest.err conftest.$ac_ext
6295 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6296 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6
6297 1.1 christos
6298 1.1 christos # So? What about this header?
6299 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6300 1.1 christos yes:no: )
6301 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6302 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6303 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6304 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6305 1.1 christos ac_header_preproc=yes
6306 1.1 christos ;;
6307 1.1 christos no:yes:* )
6308 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6309 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6310 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6311 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6312 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6313 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6314 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6315 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6316 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6317 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6318 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6319 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6320 1.1 christos (
6321 1.1 christos cat <<\_ASBOX
6322 1.1 christos ## ------------------------------------------ ##
6323 1.1 christos ## Report this to the AC_PACKAGE_NAME lists. ##
6324 1.1 christos ## ------------------------------------------ ##
6325 1.1 christos _ASBOX
6326 1.1 christos ) |
6327 1.1 christos sed "s/^/$as_me: WARNING: /" >&2
6328 1.1 christos ;;
6329 1.1 christos esac
6330 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6334 1.1 christos else
6335 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
6336 1.1 christos fi
6337 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6338 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6339 1.1 christos
6340 1.1 christos fi
6341 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
6342 1.1 christos cat >>confdefs.h <<_ACEOF
6343 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344 1.1 christos _ACEOF
6345 1.1 christos
6346 1.1 christos fi
6347 1.1 christos
6348 1.1 christos done
6349 1.1 christos
6350 1.1 christos echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6351 1.1 christos echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6352 1.1 christos if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6353 1.1 christos then
6354 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
6355 1.1 christos echo "${ECHO_T}yes" >&6
6356 1.1 christos
6357 1.1 christos cat >>confdefs.h <<\_ACEOF
6358 1.1 christos #define _SYSV3 1
6359 1.1 christos _ACEOF
6360 1.1 christos
6361 1.1 christos else
6362 1.1 christos echo "$as_me:$LINENO: result: no" >&5
6363 1.1 christos echo "${ECHO_T}no" >&6
6364 1.1 christos fi
6365 1.1 christos echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6366 1.1 christos echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6367 1.1 christos ac_ext=cc
6368 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6369 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6372 1.1 christos
6373 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6374 1.1 christos
6375 1.1 christos /* confdefs.h. */
6376 1.1 christos _ACEOF
6377 1.1 christos cat confdefs.h >>conftest.$ac_ext
6378 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6379 1.1 christos /* end confdefs.h. */
6380 1.1 christos
6381 1.1 christos
6382 1.1 christos #include <stdio.h>
6383 1.1 christos extern "C" { void fileno(int); }
6384 1.1 christos
6385 1.1 christos
6386 1.1 christos int
6387 1.1 christos main ()
6388 1.1 christos {
6389 1.1 christos
6390 1.1 christos ;
6391 1.1 christos return 0;
6392 1.1 christos }
6393 1.1 christos
6394 1.1 christos _ACEOF
6395 1.1 christos rm -f conftest.$ac_objext
6396 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 1.1 christos (eval $ac_compile) 2>conftest.er1
6398 1.1 christos ac_status=$?
6399 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6400 1.1 christos rm -f conftest.er1
6401 1.1 christos cat conftest.err >&5
6402 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 1.1 christos (exit $ac_status); } &&
6404 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6405 1.1 christos || test ! -s conftest.err'
6406 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 1.1 christos (eval $ac_try) 2>&5
6408 1.1 christos ac_status=$?
6409 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 1.1 christos (exit $ac_status); }; } &&
6411 1.1 christos { ac_try='test -s conftest.$ac_objext'
6412 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 1.1 christos (eval $ac_try) 2>&5
6414 1.1 christos ac_status=$?
6415 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 1.1 christos (exit $ac_status); }; }; then
6417 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
6418 1.1 christos echo "${ECHO_T}yes" >&6
6419 1.1 christos
6420 1.1 christos cat >>confdefs.h <<\_ACEOF
6421 1.1 christos #define _POSIX_SOURCE 1
6422 1.1 christos _ACEOF
6423 1.1 christos
6424 1.1 christos else
6425 1.1 christos echo "$as_me: failed program was:" >&5
6426 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6427 1.1 christos
6428 1.1 christos echo "$as_me:$LINENO: result: no" >&5
6429 1.1 christos echo "${ECHO_T}no" >&6
6430 1.1 christos fi
6431 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6432 1.1 christos ac_ext=c
6433 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6434 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437 1.1 christos
6438 1.1 christos
6439 1.1 christos # checks for header stuff
6440 1.1 christos ac_ext=cc
6441 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6442 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6445 1.1 christos
6446 1.1 christos echo "$as_me:$LINENO: checking for return type of srand" >&5
6447 1.1 christos echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6448 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6449 1.1 christos
6450 1.1 christos /* confdefs.h. */
6451 1.1 christos _ACEOF
6452 1.1 christos cat confdefs.h >>conftest.$ac_ext
6453 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6454 1.1 christos /* end confdefs.h. */
6455 1.1 christos
6456 1.1 christos
6457 1.1 christos #include <stdlib.h>
6458 1.1 christos extern "C" { void srand(unsigned int); }
6459 1.1 christos
6460 1.1 christos
6461 1.1 christos int
6462 1.1 christos main ()
6463 1.1 christos {
6464 1.1 christos
6465 1.1 christos ;
6466 1.1 christos return 0;
6467 1.1 christos }
6468 1.1 christos
6469 1.1 christos _ACEOF
6470 1.1 christos rm -f conftest.$ac_objext
6471 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 1.1 christos (eval $ac_compile) 2>conftest.er1
6473 1.1 christos ac_status=$?
6474 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6475 1.1 christos rm -f conftest.er1
6476 1.1 christos cat conftest.err >&5
6477 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 1.1 christos (exit $ac_status); } &&
6479 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6480 1.1 christos || test ! -s conftest.err'
6481 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 1.1 christos (eval $ac_try) 2>&5
6483 1.1 christos ac_status=$?
6484 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 1.1 christos (exit $ac_status); }; } &&
6486 1.1 christos { ac_try='test -s conftest.$ac_objext'
6487 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 1.1 christos (eval $ac_try) 2>&5
6489 1.1 christos ac_status=$?
6490 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 1.1 christos (exit $ac_status); }; }; then
6492 1.1 christos echo "$as_me:$LINENO: result: void" >&5
6493 1.1 christos echo "${ECHO_T}void" >&6
6494 1.1 christos
6495 1.1 christos cat >>confdefs.h <<\_ACEOF
6496 1.1 christos #define RET_TYPE_SRAND_IS_VOID 1
6497 1.1 christos _ACEOF
6498 1.1 christos
6499 1.1 christos else
6500 1.1 christos echo "$as_me: failed program was:" >&5
6501 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6502 1.1 christos
6503 1.1 christos echo "$as_me:$LINENO: result: int" >&5
6504 1.1 christos echo "${ECHO_T}int" >&6
6505 1.1 christos fi
6506 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 1.1 christos ac_ext=c
6508 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6509 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512 1.1 christos
6513 1.1 christos echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6514 1.1 christos echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6515 1.1 christos ac_ext=cc
6516 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6517 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520 1.1 christos
6521 1.1 christos if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6522 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6523 1.1 christos else
6524 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6525 1.1 christos
6526 1.1 christos /* confdefs.h. */
6527 1.1 christos _ACEOF
6528 1.1 christos cat confdefs.h >>conftest.$ac_ext
6529 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6530 1.1 christos /* end confdefs.h. */
6531 1.1 christos
6532 1.1 christos
6533 1.1 christos #include <stdio.h>
6534 1.1 christos #ifdef HAVE_STRING_H
6535 1.1 christos #include <string.h>
6536 1.1 christos #endif
6537 1.1 christos #ifdef HAVE_STRINGS_H
6538 1.1 christos #include <strings.h>
6539 1.1 christos #endif
6540 1.1 christos #ifdef HAVE_STDLIB_H
6541 1.1 christos #include <stdlib.h>
6542 1.1 christos #endif
6543 1.1 christos #ifdef HAVE_SYS_TIME_H
6544 1.1 christos #include <sys/time.h>
6545 1.1 christos #endif
6546 1.1 christos #ifdef HAVE_UNISTD_H
6547 1.1 christos #include <unistd.h>
6548 1.1 christos #endif
6549 1.1 christos #ifdef HAVE_MATH_H
6550 1.1 christos #include <math.h>
6551 1.1 christos #endif
6552 1.1 christos
6553 1.1 christos
6554 1.1 christos int
6555 1.1 christos main ()
6556 1.1 christos {
6557 1.1 christos
6558 1.1 christos
6559 1.1 christos #ifndef gettimeofday
6560 1.1 christos char *p = (char *) gettimeofday;
6561 1.1 christos #endif
6562 1.1 christos
6563 1.1 christos
6564 1.1 christos ;
6565 1.1 christos return 0;
6566 1.1 christos }
6567 1.1 christos
6568 1.1 christos _ACEOF
6569 1.1 christos rm -f conftest.$ac_objext
6570 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 1.1 christos (eval $ac_compile) 2>conftest.er1
6572 1.1 christos ac_status=$?
6573 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6574 1.1 christos rm -f conftest.er1
6575 1.1 christos cat conftest.err >&5
6576 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 1.1 christos (exit $ac_status); } &&
6578 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6579 1.1 christos || test ! -s conftest.err'
6580 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 1.1 christos (eval $ac_try) 2>&5
6582 1.1 christos ac_status=$?
6583 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 1.1 christos (exit $ac_status); }; } &&
6585 1.1 christos { ac_try='test -s conftest.$ac_objext'
6586 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 1.1 christos (eval $ac_try) 2>&5
6588 1.1 christos ac_status=$?
6589 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 1.1 christos (exit $ac_status); }; }; then
6591 1.1 christos groff_cv_decl_needed_gettimeofday=no
6592 1.1 christos else
6593 1.1 christos echo "$as_me: failed program was:" >&5
6594 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6595 1.1 christos
6596 1.1 christos groff_cv_decl_needed_gettimeofday=yes
6597 1.1 christos fi
6598 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599 1.1 christos fi
6600 1.1 christos
6601 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6602 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6603 1.1 christos if test $groff_cv_decl_needed_gettimeofday = yes; then
6604 1.1 christos
6605 1.1 christos cat >>confdefs.h <<\_ACEOF
6606 1.1 christos #define NEED_DECLARATION_GETTIMEOFDAY 1
6607 1.1 christos _ACEOF
6608 1.1 christos
6609 1.1 christos fi
6610 1.1 christos ac_ext=c
6611 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6612 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 1.1 christos
6616 1.1 christos echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6617 1.1 christos echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6618 1.1 christos ac_ext=cc
6619 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6620 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6623 1.1 christos
6624 1.1 christos if test "${groff_cv_decl_needed_hypot+set}" = set; then
6625 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6626 1.1 christos else
6627 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6628 1.1 christos
6629 1.1 christos /* confdefs.h. */
6630 1.1 christos _ACEOF
6631 1.1 christos cat confdefs.h >>conftest.$ac_ext
6632 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6633 1.1 christos /* end confdefs.h. */
6634 1.1 christos
6635 1.1 christos
6636 1.1 christos #include <stdio.h>
6637 1.1 christos #ifdef HAVE_STRING_H
6638 1.1 christos #include <string.h>
6639 1.1 christos #endif
6640 1.1 christos #ifdef HAVE_STRINGS_H
6641 1.1 christos #include <strings.h>
6642 1.1 christos #endif
6643 1.1 christos #ifdef HAVE_STDLIB_H
6644 1.1 christos #include <stdlib.h>
6645 1.1 christos #endif
6646 1.1 christos #ifdef HAVE_SYS_TIME_H
6647 1.1 christos #include <sys/time.h>
6648 1.1 christos #endif
6649 1.1 christos #ifdef HAVE_UNISTD_H
6650 1.1 christos #include <unistd.h>
6651 1.1 christos #endif
6652 1.1 christos #ifdef HAVE_MATH_H
6653 1.1 christos #include <math.h>
6654 1.1 christos #endif
6655 1.1 christos
6656 1.1 christos
6657 1.1 christos int
6658 1.1 christos main ()
6659 1.1 christos {
6660 1.1 christos
6661 1.1 christos
6662 1.1 christos #ifndef hypot
6663 1.1 christos char *p = (char *) hypot;
6664 1.1 christos #endif
6665 1.1 christos
6666 1.1 christos
6667 1.1 christos ;
6668 1.1 christos return 0;
6669 1.1 christos }
6670 1.1 christos
6671 1.1 christos _ACEOF
6672 1.1 christos rm -f conftest.$ac_objext
6673 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 1.1 christos (eval $ac_compile) 2>conftest.er1
6675 1.1 christos ac_status=$?
6676 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6677 1.1 christos rm -f conftest.er1
6678 1.1 christos cat conftest.err >&5
6679 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 1.1 christos (exit $ac_status); } &&
6681 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6682 1.1 christos || test ! -s conftest.err'
6683 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 1.1 christos (eval $ac_try) 2>&5
6685 1.1 christos ac_status=$?
6686 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 1.1 christos (exit $ac_status); }; } &&
6688 1.1 christos { ac_try='test -s conftest.$ac_objext'
6689 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 1.1 christos (eval $ac_try) 2>&5
6691 1.1 christos ac_status=$?
6692 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 1.1 christos (exit $ac_status); }; }; then
6694 1.1 christos groff_cv_decl_needed_hypot=no
6695 1.1 christos else
6696 1.1 christos echo "$as_me: failed program was:" >&5
6697 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6698 1.1 christos
6699 1.1 christos groff_cv_decl_needed_hypot=yes
6700 1.1 christos fi
6701 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702 1.1 christos fi
6703 1.1 christos
6704 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6705 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6706 1.1 christos if test $groff_cv_decl_needed_hypot = yes; then
6707 1.1 christos
6708 1.1 christos cat >>confdefs.h <<\_ACEOF
6709 1.1 christos #define NEED_DECLARATION_HYPOT 1
6710 1.1 christos _ACEOF
6711 1.1 christos
6712 1.1 christos fi
6713 1.1 christos ac_ext=c
6714 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6715 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718 1.1 christos
6719 1.1 christos echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6720 1.1 christos echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6721 1.1 christos ac_ext=cc
6722 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6723 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6726 1.1 christos
6727 1.1 christos if test "${groff_cv_decl_needed_popen+set}" = set; then
6728 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6729 1.1 christos else
6730 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6731 1.1 christos
6732 1.1 christos /* confdefs.h. */
6733 1.1 christos _ACEOF
6734 1.1 christos cat confdefs.h >>conftest.$ac_ext
6735 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6736 1.1 christos /* end confdefs.h. */
6737 1.1 christos
6738 1.1 christos
6739 1.1 christos #include <stdio.h>
6740 1.1 christos #ifdef HAVE_STRING_H
6741 1.1 christos #include <string.h>
6742 1.1 christos #endif
6743 1.1 christos #ifdef HAVE_STRINGS_H
6744 1.1 christos #include <strings.h>
6745 1.1 christos #endif
6746 1.1 christos #ifdef HAVE_STDLIB_H
6747 1.1 christos #include <stdlib.h>
6748 1.1 christos #endif
6749 1.1 christos #ifdef HAVE_SYS_TIME_H
6750 1.1 christos #include <sys/time.h>
6751 1.1 christos #endif
6752 1.1 christos #ifdef HAVE_UNISTD_H
6753 1.1 christos #include <unistd.h>
6754 1.1 christos #endif
6755 1.1 christos #ifdef HAVE_MATH_H
6756 1.1 christos #include <math.h>
6757 1.1 christos #endif
6758 1.1 christos
6759 1.1 christos
6760 1.1 christos int
6761 1.1 christos main ()
6762 1.1 christos {
6763 1.1 christos
6764 1.1 christos
6765 1.1 christos #ifndef popen
6766 1.1 christos char *p = (char *) popen;
6767 1.1 christos #endif
6768 1.1 christos
6769 1.1 christos
6770 1.1 christos ;
6771 1.1 christos return 0;
6772 1.1 christos }
6773 1.1 christos
6774 1.1 christos _ACEOF
6775 1.1 christos rm -f conftest.$ac_objext
6776 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 1.1 christos (eval $ac_compile) 2>conftest.er1
6778 1.1 christos ac_status=$?
6779 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6780 1.1 christos rm -f conftest.er1
6781 1.1 christos cat conftest.err >&5
6782 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 1.1 christos (exit $ac_status); } &&
6784 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6785 1.1 christos || test ! -s conftest.err'
6786 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 1.1 christos (eval $ac_try) 2>&5
6788 1.1 christos ac_status=$?
6789 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 1.1 christos (exit $ac_status); }; } &&
6791 1.1 christos { ac_try='test -s conftest.$ac_objext'
6792 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 1.1 christos (eval $ac_try) 2>&5
6794 1.1 christos ac_status=$?
6795 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 1.1 christos (exit $ac_status); }; }; then
6797 1.1 christos groff_cv_decl_needed_popen=no
6798 1.1 christos else
6799 1.1 christos echo "$as_me: failed program was:" >&5
6800 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6801 1.1 christos
6802 1.1 christos groff_cv_decl_needed_popen=yes
6803 1.1 christos fi
6804 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805 1.1 christos fi
6806 1.1 christos
6807 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6808 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6809 1.1 christos if test $groff_cv_decl_needed_popen = yes; then
6810 1.1 christos
6811 1.1 christos cat >>confdefs.h <<\_ACEOF
6812 1.1 christos #define NEED_DECLARATION_POPEN 1
6813 1.1 christos _ACEOF
6814 1.1 christos
6815 1.1 christos fi
6816 1.1 christos ac_ext=c
6817 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6818 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821 1.1 christos
6822 1.1 christos echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6823 1.1 christos echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6824 1.1 christos ac_ext=cc
6825 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6826 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6829 1.1 christos
6830 1.1 christos if test "${groff_cv_decl_needed_pclose+set}" = set; then
6831 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6832 1.1 christos else
6833 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6834 1.1 christos
6835 1.1 christos /* confdefs.h. */
6836 1.1 christos _ACEOF
6837 1.1 christos cat confdefs.h >>conftest.$ac_ext
6838 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6839 1.1 christos /* end confdefs.h. */
6840 1.1 christos
6841 1.1 christos
6842 1.1 christos #include <stdio.h>
6843 1.1 christos #ifdef HAVE_STRING_H
6844 1.1 christos #include <string.h>
6845 1.1 christos #endif
6846 1.1 christos #ifdef HAVE_STRINGS_H
6847 1.1 christos #include <strings.h>
6848 1.1 christos #endif
6849 1.1 christos #ifdef HAVE_STDLIB_H
6850 1.1 christos #include <stdlib.h>
6851 1.1 christos #endif
6852 1.1 christos #ifdef HAVE_SYS_TIME_H
6853 1.1 christos #include <sys/time.h>
6854 1.1 christos #endif
6855 1.1 christos #ifdef HAVE_UNISTD_H
6856 1.1 christos #include <unistd.h>
6857 1.1 christos #endif
6858 1.1 christos #ifdef HAVE_MATH_H
6859 1.1 christos #include <math.h>
6860 1.1 christos #endif
6861 1.1 christos
6862 1.1 christos
6863 1.1 christos int
6864 1.1 christos main ()
6865 1.1 christos {
6866 1.1 christos
6867 1.1 christos
6868 1.1 christos #ifndef pclose
6869 1.1 christos char *p = (char *) pclose;
6870 1.1 christos #endif
6871 1.1 christos
6872 1.1 christos
6873 1.1 christos ;
6874 1.1 christos return 0;
6875 1.1 christos }
6876 1.1 christos
6877 1.1 christos _ACEOF
6878 1.1 christos rm -f conftest.$ac_objext
6879 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 1.1 christos (eval $ac_compile) 2>conftest.er1
6881 1.1 christos ac_status=$?
6882 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6883 1.1 christos rm -f conftest.er1
6884 1.1 christos cat conftest.err >&5
6885 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 1.1 christos (exit $ac_status); } &&
6887 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6888 1.1 christos || test ! -s conftest.err'
6889 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 1.1 christos (eval $ac_try) 2>&5
6891 1.1 christos ac_status=$?
6892 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 1.1 christos (exit $ac_status); }; } &&
6894 1.1 christos { ac_try='test -s conftest.$ac_objext'
6895 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 1.1 christos (eval $ac_try) 2>&5
6897 1.1 christos ac_status=$?
6898 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 1.1 christos (exit $ac_status); }; }; then
6900 1.1 christos groff_cv_decl_needed_pclose=no
6901 1.1 christos else
6902 1.1 christos echo "$as_me: failed program was:" >&5
6903 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6904 1.1 christos
6905 1.1 christos groff_cv_decl_needed_pclose=yes
6906 1.1 christos fi
6907 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 1.1 christos fi
6909 1.1 christos
6910 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6911 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6912 1.1 christos if test $groff_cv_decl_needed_pclose = yes; then
6913 1.1 christos
6914 1.1 christos cat >>confdefs.h <<\_ACEOF
6915 1.1 christos #define NEED_DECLARATION_PCLOSE 1
6916 1.1 christos _ACEOF
6917 1.1 christos
6918 1.1 christos fi
6919 1.1 christos ac_ext=c
6920 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6921 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924 1.1 christos
6925 1.1 christos echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6926 1.1 christos echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6927 1.1 christos ac_ext=cc
6928 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6929 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6932 1.1 christos
6933 1.1 christos if test "${groff_cv_decl_needed_putenv+set}" = set; then
6934 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6935 1.1 christos else
6936 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6937 1.1 christos
6938 1.1 christos /* confdefs.h. */
6939 1.1 christos _ACEOF
6940 1.1 christos cat confdefs.h >>conftest.$ac_ext
6941 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6942 1.1 christos /* end confdefs.h. */
6943 1.1 christos
6944 1.1 christos
6945 1.1 christos #include <stdio.h>
6946 1.1 christos #ifdef HAVE_STRING_H
6947 1.1 christos #include <string.h>
6948 1.1 christos #endif
6949 1.1 christos #ifdef HAVE_STRINGS_H
6950 1.1 christos #include <strings.h>
6951 1.1 christos #endif
6952 1.1 christos #ifdef HAVE_STDLIB_H
6953 1.1 christos #include <stdlib.h>
6954 1.1 christos #endif
6955 1.1 christos #ifdef HAVE_SYS_TIME_H
6956 1.1 christos #include <sys/time.h>
6957 1.1 christos #endif
6958 1.1 christos #ifdef HAVE_UNISTD_H
6959 1.1 christos #include <unistd.h>
6960 1.1 christos #endif
6961 1.1 christos #ifdef HAVE_MATH_H
6962 1.1 christos #include <math.h>
6963 1.1 christos #endif
6964 1.1 christos
6965 1.1 christos
6966 1.1 christos int
6967 1.1 christos main ()
6968 1.1 christos {
6969 1.1 christos
6970 1.1 christos
6971 1.1 christos #ifndef putenv
6972 1.1 christos char *p = (char *) putenv;
6973 1.1 christos #endif
6974 1.1 christos
6975 1.1 christos
6976 1.1 christos ;
6977 1.1 christos return 0;
6978 1.1 christos }
6979 1.1 christos
6980 1.1 christos _ACEOF
6981 1.1 christos rm -f conftest.$ac_objext
6982 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 1.1 christos (eval $ac_compile) 2>conftest.er1
6984 1.1 christos ac_status=$?
6985 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6986 1.1 christos rm -f conftest.er1
6987 1.1 christos cat conftest.err >&5
6988 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 1.1 christos (exit $ac_status); } &&
6990 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
6991 1.1 christos || test ! -s conftest.err'
6992 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 1.1 christos (eval $ac_try) 2>&5
6994 1.1 christos ac_status=$?
6995 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 1.1 christos (exit $ac_status); }; } &&
6997 1.1 christos { ac_try='test -s conftest.$ac_objext'
6998 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 1.1 christos (eval $ac_try) 2>&5
7000 1.1 christos ac_status=$?
7001 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 1.1 christos (exit $ac_status); }; }; then
7003 1.1 christos groff_cv_decl_needed_putenv=no
7004 1.1 christos else
7005 1.1 christos echo "$as_me: failed program was:" >&5
7006 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7007 1.1 christos
7008 1.1 christos groff_cv_decl_needed_putenv=yes
7009 1.1 christos fi
7010 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 1.1 christos fi
7012 1.1 christos
7013 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7014 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7015 1.1 christos if test $groff_cv_decl_needed_putenv = yes; then
7016 1.1 christos
7017 1.1 christos cat >>confdefs.h <<\_ACEOF
7018 1.1 christos #define NEED_DECLARATION_PUTENV 1
7019 1.1 christos _ACEOF
7020 1.1 christos
7021 1.1 christos fi
7022 1.1 christos ac_ext=c
7023 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7024 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 1.1 christos
7028 1.1 christos echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7029 1.1 christos echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7030 1.1 christos ac_ext=cc
7031 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7032 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7035 1.1 christos
7036 1.1 christos if test "${groff_cv_decl_needed_rand+set}" = set; then
7037 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7038 1.1 christos else
7039 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7040 1.1 christos
7041 1.1 christos /* confdefs.h. */
7042 1.1 christos _ACEOF
7043 1.1 christos cat confdefs.h >>conftest.$ac_ext
7044 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7045 1.1 christos /* end confdefs.h. */
7046 1.1 christos
7047 1.1 christos
7048 1.1 christos #include <stdio.h>
7049 1.1 christos #ifdef HAVE_STRING_H
7050 1.1 christos #include <string.h>
7051 1.1 christos #endif
7052 1.1 christos #ifdef HAVE_STRINGS_H
7053 1.1 christos #include <strings.h>
7054 1.1 christos #endif
7055 1.1 christos #ifdef HAVE_STDLIB_H
7056 1.1 christos #include <stdlib.h>
7057 1.1 christos #endif
7058 1.1 christos #ifdef HAVE_SYS_TIME_H
7059 1.1 christos #include <sys/time.h>
7060 1.1 christos #endif
7061 1.1 christos #ifdef HAVE_UNISTD_H
7062 1.1 christos #include <unistd.h>
7063 1.1 christos #endif
7064 1.1 christos #ifdef HAVE_MATH_H
7065 1.1 christos #include <math.h>
7066 1.1 christos #endif
7067 1.1 christos
7068 1.1 christos
7069 1.1 christos int
7070 1.1 christos main ()
7071 1.1 christos {
7072 1.1 christos
7073 1.1 christos
7074 1.1 christos #ifndef rand
7075 1.1 christos char *p = (char *) rand;
7076 1.1 christos #endif
7077 1.1 christos
7078 1.1 christos
7079 1.1 christos ;
7080 1.1 christos return 0;
7081 1.1 christos }
7082 1.1 christos
7083 1.1 christos _ACEOF
7084 1.1 christos rm -f conftest.$ac_objext
7085 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 1.1 christos (eval $ac_compile) 2>conftest.er1
7087 1.1 christos ac_status=$?
7088 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7089 1.1 christos rm -f conftest.er1
7090 1.1 christos cat conftest.err >&5
7091 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 1.1 christos (exit $ac_status); } &&
7093 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7094 1.1 christos || test ! -s conftest.err'
7095 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 1.1 christos (eval $ac_try) 2>&5
7097 1.1 christos ac_status=$?
7098 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 1.1 christos (exit $ac_status); }; } &&
7100 1.1 christos { ac_try='test -s conftest.$ac_objext'
7101 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 1.1 christos (eval $ac_try) 2>&5
7103 1.1 christos ac_status=$?
7104 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 1.1 christos (exit $ac_status); }; }; then
7106 1.1 christos groff_cv_decl_needed_rand=no
7107 1.1 christos else
7108 1.1 christos echo "$as_me: failed program was:" >&5
7109 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7110 1.1 christos
7111 1.1 christos groff_cv_decl_needed_rand=yes
7112 1.1 christos fi
7113 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 1.1 christos fi
7115 1.1 christos
7116 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7117 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7118 1.1 christos if test $groff_cv_decl_needed_rand = yes; then
7119 1.1 christos
7120 1.1 christos cat >>confdefs.h <<\_ACEOF
7121 1.1 christos #define NEED_DECLARATION_RAND 1
7122 1.1 christos _ACEOF
7123 1.1 christos
7124 1.1 christos fi
7125 1.1 christos ac_ext=c
7126 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7127 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130 1.1 christos
7131 1.1 christos echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7132 1.1 christos echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7133 1.1 christos ac_ext=cc
7134 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7135 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7138 1.1 christos
7139 1.1 christos if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7140 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7141 1.1 christos else
7142 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7143 1.1 christos
7144 1.1 christos /* confdefs.h. */
7145 1.1 christos _ACEOF
7146 1.1 christos cat confdefs.h >>conftest.$ac_ext
7147 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7148 1.1 christos /* end confdefs.h. */
7149 1.1 christos
7150 1.1 christos
7151 1.1 christos #include <stdio.h>
7152 1.1 christos #ifdef HAVE_STRING_H
7153 1.1 christos #include <string.h>
7154 1.1 christos #endif
7155 1.1 christos #ifdef HAVE_STRINGS_H
7156 1.1 christos #include <strings.h>
7157 1.1 christos #endif
7158 1.1 christos #ifdef HAVE_STDLIB_H
7159 1.1 christos #include <stdlib.h>
7160 1.1 christos #endif
7161 1.1 christos #ifdef HAVE_SYS_TIME_H
7162 1.1 christos #include <sys/time.h>
7163 1.1 christos #endif
7164 1.1 christos #ifdef HAVE_UNISTD_H
7165 1.1 christos #include <unistd.h>
7166 1.1 christos #endif
7167 1.1 christos #ifdef HAVE_MATH_H
7168 1.1 christos #include <math.h>
7169 1.1 christos #endif
7170 1.1 christos
7171 1.1 christos
7172 1.1 christos int
7173 1.1 christos main ()
7174 1.1 christos {
7175 1.1 christos
7176 1.1 christos
7177 1.1 christos #ifndef snprintf
7178 1.1 christos char *p = (char *) snprintf;
7179 1.1 christos #endif
7180 1.1 christos
7181 1.1 christos
7182 1.1 christos ;
7183 1.1 christos return 0;
7184 1.1 christos }
7185 1.1 christos
7186 1.1 christos _ACEOF
7187 1.1 christos rm -f conftest.$ac_objext
7188 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189 1.1 christos (eval $ac_compile) 2>conftest.er1
7190 1.1 christos ac_status=$?
7191 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7192 1.1 christos rm -f conftest.er1
7193 1.1 christos cat conftest.err >&5
7194 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 1.1 christos (exit $ac_status); } &&
7196 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7197 1.1 christos || test ! -s conftest.err'
7198 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 1.1 christos (eval $ac_try) 2>&5
7200 1.1 christos ac_status=$?
7201 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 1.1 christos (exit $ac_status); }; } &&
7203 1.1 christos { ac_try='test -s conftest.$ac_objext'
7204 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 1.1 christos (eval $ac_try) 2>&5
7206 1.1 christos ac_status=$?
7207 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 1.1 christos (exit $ac_status); }; }; then
7209 1.1 christos groff_cv_decl_needed_snprintf=no
7210 1.1 christos else
7211 1.1 christos echo "$as_me: failed program was:" >&5
7212 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7213 1.1 christos
7214 1.1 christos groff_cv_decl_needed_snprintf=yes
7215 1.1 christos fi
7216 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7217 1.1 christos fi
7218 1.1 christos
7219 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7220 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7221 1.1 christos if test $groff_cv_decl_needed_snprintf = yes; then
7222 1.1 christos
7223 1.1 christos cat >>confdefs.h <<\_ACEOF
7224 1.1 christos #define NEED_DECLARATION_SNPRINTF 1
7225 1.1 christos _ACEOF
7226 1.1 christos
7227 1.1 christos fi
7228 1.1 christos ac_ext=c
7229 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7230 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233 1.1 christos
7234 1.1 christos echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7235 1.1 christos echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7236 1.1 christos ac_ext=cc
7237 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7238 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7241 1.1 christos
7242 1.1 christos if test "${groff_cv_decl_needed_srand+set}" = set; then
7243 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7244 1.1 christos else
7245 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7246 1.1 christos
7247 1.1 christos /* confdefs.h. */
7248 1.1 christos _ACEOF
7249 1.1 christos cat confdefs.h >>conftest.$ac_ext
7250 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7251 1.1 christos /* end confdefs.h. */
7252 1.1 christos
7253 1.1 christos
7254 1.1 christos #include <stdio.h>
7255 1.1 christos #ifdef HAVE_STRING_H
7256 1.1 christos #include <string.h>
7257 1.1 christos #endif
7258 1.1 christos #ifdef HAVE_STRINGS_H
7259 1.1 christos #include <strings.h>
7260 1.1 christos #endif
7261 1.1 christos #ifdef HAVE_STDLIB_H
7262 1.1 christos #include <stdlib.h>
7263 1.1 christos #endif
7264 1.1 christos #ifdef HAVE_SYS_TIME_H
7265 1.1 christos #include <sys/time.h>
7266 1.1 christos #endif
7267 1.1 christos #ifdef HAVE_UNISTD_H
7268 1.1 christos #include <unistd.h>
7269 1.1 christos #endif
7270 1.1 christos #ifdef HAVE_MATH_H
7271 1.1 christos #include <math.h>
7272 1.1 christos #endif
7273 1.1 christos
7274 1.1 christos
7275 1.1 christos int
7276 1.1 christos main ()
7277 1.1 christos {
7278 1.1 christos
7279 1.1 christos
7280 1.1 christos #ifndef srand
7281 1.1 christos char *p = (char *) srand;
7282 1.1 christos #endif
7283 1.1 christos
7284 1.1 christos
7285 1.1 christos ;
7286 1.1 christos return 0;
7287 1.1 christos }
7288 1.1 christos
7289 1.1 christos _ACEOF
7290 1.1 christos rm -f conftest.$ac_objext
7291 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 1.1 christos (eval $ac_compile) 2>conftest.er1
7293 1.1 christos ac_status=$?
7294 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7295 1.1 christos rm -f conftest.er1
7296 1.1 christos cat conftest.err >&5
7297 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 1.1 christos (exit $ac_status); } &&
7299 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7300 1.1 christos || test ! -s conftest.err'
7301 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 1.1 christos (eval $ac_try) 2>&5
7303 1.1 christos ac_status=$?
7304 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 1.1 christos (exit $ac_status); }; } &&
7306 1.1 christos { ac_try='test -s conftest.$ac_objext'
7307 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 1.1 christos (eval $ac_try) 2>&5
7309 1.1 christos ac_status=$?
7310 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 1.1 christos (exit $ac_status); }; }; then
7312 1.1 christos groff_cv_decl_needed_srand=no
7313 1.1 christos else
7314 1.1 christos echo "$as_me: failed program was:" >&5
7315 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7316 1.1 christos
7317 1.1 christos groff_cv_decl_needed_srand=yes
7318 1.1 christos fi
7319 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320 1.1 christos fi
7321 1.1 christos
7322 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7323 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7324 1.1 christos if test $groff_cv_decl_needed_srand = yes; then
7325 1.1 christos
7326 1.1 christos cat >>confdefs.h <<\_ACEOF
7327 1.1 christos #define NEED_DECLARATION_SRAND 1
7328 1.1 christos _ACEOF
7329 1.1 christos
7330 1.1 christos fi
7331 1.1 christos ac_ext=c
7332 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7333 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336 1.1 christos
7337 1.1 christos echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7338 1.1 christos echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7339 1.1 christos ac_ext=cc
7340 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7341 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7344 1.1 christos
7345 1.1 christos if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7346 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7347 1.1 christos else
7348 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7349 1.1 christos
7350 1.1 christos /* confdefs.h. */
7351 1.1 christos _ACEOF
7352 1.1 christos cat confdefs.h >>conftest.$ac_ext
7353 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7354 1.1 christos /* end confdefs.h. */
7355 1.1 christos
7356 1.1 christos
7357 1.1 christos #include <stdio.h>
7358 1.1 christos #ifdef HAVE_STRING_H
7359 1.1 christos #include <string.h>
7360 1.1 christos #endif
7361 1.1 christos #ifdef HAVE_STRINGS_H
7362 1.1 christos #include <strings.h>
7363 1.1 christos #endif
7364 1.1 christos #ifdef HAVE_STDLIB_H
7365 1.1 christos #include <stdlib.h>
7366 1.1 christos #endif
7367 1.1 christos #ifdef HAVE_SYS_TIME_H
7368 1.1 christos #include <sys/time.h>
7369 1.1 christos #endif
7370 1.1 christos #ifdef HAVE_UNISTD_H
7371 1.1 christos #include <unistd.h>
7372 1.1 christos #endif
7373 1.1 christos #ifdef HAVE_MATH_H
7374 1.1 christos #include <math.h>
7375 1.1 christos #endif
7376 1.1 christos
7377 1.1 christos
7378 1.1 christos int
7379 1.1 christos main ()
7380 1.1 christos {
7381 1.1 christos
7382 1.1 christos
7383 1.1 christos #ifndef strcasecmp
7384 1.1 christos char *p = (char *) strcasecmp;
7385 1.1 christos #endif
7386 1.1 christos
7387 1.1 christos
7388 1.1 christos ;
7389 1.1 christos return 0;
7390 1.1 christos }
7391 1.1 christos
7392 1.1 christos _ACEOF
7393 1.1 christos rm -f conftest.$ac_objext
7394 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 1.1 christos (eval $ac_compile) 2>conftest.er1
7396 1.1 christos ac_status=$?
7397 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7398 1.1 christos rm -f conftest.er1
7399 1.1 christos cat conftest.err >&5
7400 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 1.1 christos (exit $ac_status); } &&
7402 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7403 1.1 christos || test ! -s conftest.err'
7404 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 1.1 christos (eval $ac_try) 2>&5
7406 1.1 christos ac_status=$?
7407 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 1.1 christos (exit $ac_status); }; } &&
7409 1.1 christos { ac_try='test -s conftest.$ac_objext'
7410 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 1.1 christos (eval $ac_try) 2>&5
7412 1.1 christos ac_status=$?
7413 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 1.1 christos (exit $ac_status); }; }; then
7415 1.1 christos groff_cv_decl_needed_strcasecmp=no
7416 1.1 christos else
7417 1.1 christos echo "$as_me: failed program was:" >&5
7418 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7419 1.1 christos
7420 1.1 christos groff_cv_decl_needed_strcasecmp=yes
7421 1.1 christos fi
7422 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423 1.1 christos fi
7424 1.1 christos
7425 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7426 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7427 1.1 christos if test $groff_cv_decl_needed_strcasecmp = yes; then
7428 1.1 christos
7429 1.1 christos cat >>confdefs.h <<\_ACEOF
7430 1.1 christos #define NEED_DECLARATION_STRCASECMP 1
7431 1.1 christos _ACEOF
7432 1.1 christos
7433 1.1 christos fi
7434 1.1 christos ac_ext=c
7435 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7436 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 1.1 christos
7440 1.1 christos echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7441 1.1 christos echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7442 1.1 christos ac_ext=cc
7443 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7444 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7447 1.1 christos
7448 1.1 christos if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7449 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7450 1.1 christos else
7451 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7452 1.1 christos
7453 1.1 christos /* confdefs.h. */
7454 1.1 christos _ACEOF
7455 1.1 christos cat confdefs.h >>conftest.$ac_ext
7456 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7457 1.1 christos /* end confdefs.h. */
7458 1.1 christos
7459 1.1 christos
7460 1.1 christos #include <stdio.h>
7461 1.1 christos #ifdef HAVE_STRING_H
7462 1.1 christos #include <string.h>
7463 1.1 christos #endif
7464 1.1 christos #ifdef HAVE_STRINGS_H
7465 1.1 christos #include <strings.h>
7466 1.1 christos #endif
7467 1.1 christos #ifdef HAVE_STDLIB_H
7468 1.1 christos #include <stdlib.h>
7469 1.1 christos #endif
7470 1.1 christos #ifdef HAVE_SYS_TIME_H
7471 1.1 christos #include <sys/time.h>
7472 1.1 christos #endif
7473 1.1 christos #ifdef HAVE_UNISTD_H
7474 1.1 christos #include <unistd.h>
7475 1.1 christos #endif
7476 1.1 christos #ifdef HAVE_MATH_H
7477 1.1 christos #include <math.h>
7478 1.1 christos #endif
7479 1.1 christos
7480 1.1 christos
7481 1.1 christos int
7482 1.1 christos main ()
7483 1.1 christos {
7484 1.1 christos
7485 1.1 christos
7486 1.1 christos #ifndef strncasecmp
7487 1.1 christos char *p = (char *) strncasecmp;
7488 1.1 christos #endif
7489 1.1 christos
7490 1.1 christos
7491 1.1 christos ;
7492 1.1 christos return 0;
7493 1.1 christos }
7494 1.1 christos
7495 1.1 christos _ACEOF
7496 1.1 christos rm -f conftest.$ac_objext
7497 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 1.1 christos (eval $ac_compile) 2>conftest.er1
7499 1.1 christos ac_status=$?
7500 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7501 1.1 christos rm -f conftest.er1
7502 1.1 christos cat conftest.err >&5
7503 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 1.1 christos (exit $ac_status); } &&
7505 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7506 1.1 christos || test ! -s conftest.err'
7507 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 1.1 christos (eval $ac_try) 2>&5
7509 1.1 christos ac_status=$?
7510 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 1.1 christos (exit $ac_status); }; } &&
7512 1.1 christos { ac_try='test -s conftest.$ac_objext'
7513 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 1.1 christos (eval $ac_try) 2>&5
7515 1.1 christos ac_status=$?
7516 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 1.1 christos (exit $ac_status); }; }; then
7518 1.1 christos groff_cv_decl_needed_strncasecmp=no
7519 1.1 christos else
7520 1.1 christos echo "$as_me: failed program was:" >&5
7521 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7522 1.1 christos
7523 1.1 christos groff_cv_decl_needed_strncasecmp=yes
7524 1.1 christos fi
7525 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7526 1.1 christos fi
7527 1.1 christos
7528 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7529 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7530 1.1 christos if test $groff_cv_decl_needed_strncasecmp = yes; then
7531 1.1 christos
7532 1.1 christos cat >>confdefs.h <<\_ACEOF
7533 1.1 christos #define NEED_DECLARATION_STRNCASECMP 1
7534 1.1 christos _ACEOF
7535 1.1 christos
7536 1.1 christos fi
7537 1.1 christos ac_ext=c
7538 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7539 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542 1.1 christos
7543 1.1 christos echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7544 1.1 christos echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7545 1.1 christos ac_ext=cc
7546 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7547 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7548 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7549 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7550 1.1 christos
7551 1.1 christos if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7552 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7553 1.1 christos else
7554 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7555 1.1 christos
7556 1.1 christos /* confdefs.h. */
7557 1.1 christos _ACEOF
7558 1.1 christos cat confdefs.h >>conftest.$ac_ext
7559 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7560 1.1 christos /* end confdefs.h. */
7561 1.1 christos
7562 1.1 christos
7563 1.1 christos #include <stdio.h>
7564 1.1 christos #ifdef HAVE_STRING_H
7565 1.1 christos #include <string.h>
7566 1.1 christos #endif
7567 1.1 christos #ifdef HAVE_STRINGS_H
7568 1.1 christos #include <strings.h>
7569 1.1 christos #endif
7570 1.1 christos #ifdef HAVE_STDLIB_H
7571 1.1 christos #include <stdlib.h>
7572 1.1 christos #endif
7573 1.1 christos #ifdef HAVE_SYS_TIME_H
7574 1.1 christos #include <sys/time.h>
7575 1.1 christos #endif
7576 1.1 christos #ifdef HAVE_UNISTD_H
7577 1.1 christos #include <unistd.h>
7578 1.1 christos #endif
7579 1.1 christos #ifdef HAVE_MATH_H
7580 1.1 christos #include <math.h>
7581 1.1 christos #endif
7582 1.1 christos
7583 1.1 christos
7584 1.1 christos int
7585 1.1 christos main ()
7586 1.1 christos {
7587 1.1 christos
7588 1.1 christos
7589 1.1 christos #ifndef vfprintf
7590 1.1 christos char *p = (char *) vfprintf;
7591 1.1 christos #endif
7592 1.1 christos
7593 1.1 christos
7594 1.1 christos ;
7595 1.1 christos return 0;
7596 1.1 christos }
7597 1.1 christos
7598 1.1 christos _ACEOF
7599 1.1 christos rm -f conftest.$ac_objext
7600 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 1.1 christos (eval $ac_compile) 2>conftest.er1
7602 1.1 christos ac_status=$?
7603 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7604 1.1 christos rm -f conftest.er1
7605 1.1 christos cat conftest.err >&5
7606 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 1.1 christos (exit $ac_status); } &&
7608 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7609 1.1 christos || test ! -s conftest.err'
7610 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 1.1 christos (eval $ac_try) 2>&5
7612 1.1 christos ac_status=$?
7613 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 1.1 christos (exit $ac_status); }; } &&
7615 1.1 christos { ac_try='test -s conftest.$ac_objext'
7616 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 1.1 christos (eval $ac_try) 2>&5
7618 1.1 christos ac_status=$?
7619 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 1.1 christos (exit $ac_status); }; }; then
7621 1.1 christos groff_cv_decl_needed_vfprintf=no
7622 1.1 christos else
7623 1.1 christos echo "$as_me: failed program was:" >&5
7624 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7625 1.1 christos
7626 1.1 christos groff_cv_decl_needed_vfprintf=yes
7627 1.1 christos fi
7628 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 1.1 christos fi
7630 1.1 christos
7631 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7632 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7633 1.1 christos if test $groff_cv_decl_needed_vfprintf = yes; then
7634 1.1 christos
7635 1.1 christos cat >>confdefs.h <<\_ACEOF
7636 1.1 christos #define NEED_DECLARATION_VFPRINTF 1
7637 1.1 christos _ACEOF
7638 1.1 christos
7639 1.1 christos fi
7640 1.1 christos ac_ext=c
7641 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7642 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 1.1 christos
7646 1.1 christos echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7647 1.1 christos echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7648 1.1 christos ac_ext=cc
7649 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7650 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7653 1.1 christos
7654 1.1 christos if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7655 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7656 1.1 christos else
7657 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7658 1.1 christos
7659 1.1 christos /* confdefs.h. */
7660 1.1 christos _ACEOF
7661 1.1 christos cat confdefs.h >>conftest.$ac_ext
7662 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7663 1.1 christos /* end confdefs.h. */
7664 1.1 christos
7665 1.1 christos
7666 1.1 christos #include <stdio.h>
7667 1.1 christos #ifdef HAVE_STRING_H
7668 1.1 christos #include <string.h>
7669 1.1 christos #endif
7670 1.1 christos #ifdef HAVE_STRINGS_H
7671 1.1 christos #include <strings.h>
7672 1.1 christos #endif
7673 1.1 christos #ifdef HAVE_STDLIB_H
7674 1.1 christos #include <stdlib.h>
7675 1.1 christos #endif
7676 1.1 christos #ifdef HAVE_SYS_TIME_H
7677 1.1 christos #include <sys/time.h>
7678 1.1 christos #endif
7679 1.1 christos #ifdef HAVE_UNISTD_H
7680 1.1 christos #include <unistd.h>
7681 1.1 christos #endif
7682 1.1 christos #ifdef HAVE_MATH_H
7683 1.1 christos #include <math.h>
7684 1.1 christos #endif
7685 1.1 christos
7686 1.1 christos
7687 1.1 christos int
7688 1.1 christos main ()
7689 1.1 christos {
7690 1.1 christos
7691 1.1 christos
7692 1.1 christos #ifndef vsnprintf
7693 1.1 christos char *p = (char *) vsnprintf;
7694 1.1 christos #endif
7695 1.1 christos
7696 1.1 christos
7697 1.1 christos ;
7698 1.1 christos return 0;
7699 1.1 christos }
7700 1.1 christos
7701 1.1 christos _ACEOF
7702 1.1 christos rm -f conftest.$ac_objext
7703 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 1.1 christos (eval $ac_compile) 2>conftest.er1
7705 1.1 christos ac_status=$?
7706 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7707 1.1 christos rm -f conftest.er1
7708 1.1 christos cat conftest.err >&5
7709 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 1.1 christos (exit $ac_status); } &&
7711 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7712 1.1 christos || test ! -s conftest.err'
7713 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 1.1 christos (eval $ac_try) 2>&5
7715 1.1 christos ac_status=$?
7716 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 1.1 christos (exit $ac_status); }; } &&
7718 1.1 christos { ac_try='test -s conftest.$ac_objext'
7719 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 1.1 christos (eval $ac_try) 2>&5
7721 1.1 christos ac_status=$?
7722 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 1.1 christos (exit $ac_status); }; }; then
7724 1.1 christos groff_cv_decl_needed_vsnprintf=no
7725 1.1 christos else
7726 1.1 christos echo "$as_me: failed program was:" >&5
7727 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7728 1.1 christos
7729 1.1 christos groff_cv_decl_needed_vsnprintf=yes
7730 1.1 christos fi
7731 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 1.1 christos fi
7733 1.1 christos
7734 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7735 1.1 christos echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7736 1.1 christos if test $groff_cv_decl_needed_vsnprintf = yes; then
7737 1.1 christos
7738 1.1 christos cat >>confdefs.h <<\_ACEOF
7739 1.1 christos #define NEED_DECLARATION_VSNPRINTF 1
7740 1.1 christos _ACEOF
7741 1.1 christos
7742 1.1 christos fi
7743 1.1 christos ac_ext=c
7744 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7745 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748 1.1 christos
7749 1.1 christos ac_ext=cc
7750 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7751 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7754 1.1 christos
7755 1.1 christos echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7756 1.1 christos echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7757 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7758 1.1 christos
7759 1.1 christos /* confdefs.h. */
7760 1.1 christos _ACEOF
7761 1.1 christos cat confdefs.h >>conftest.$ac_ext
7762 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7763 1.1 christos /* end confdefs.h. */
7764 1.1 christos
7765 1.1 christos
7766 1.1 christos #include <errno.h>
7767 1.1 christos #include <stdio.h>
7768 1.1 christos #include <stdlib.h>
7769 1.1 christos
7770 1.1 christos
7771 1.1 christos int
7772 1.1 christos main ()
7773 1.1 christos {
7774 1.1 christos
7775 1.1 christos
7776 1.1 christos int k;
7777 1.1 christos k = sys_nerr;
7778 1.1 christos
7779 1.1 christos
7780 1.1 christos ;
7781 1.1 christos return 0;
7782 1.1 christos }
7783 1.1 christos
7784 1.1 christos _ACEOF
7785 1.1 christos rm -f conftest.$ac_objext
7786 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 1.1 christos (eval $ac_compile) 2>conftest.er1
7788 1.1 christos ac_status=$?
7789 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7790 1.1 christos rm -f conftest.er1
7791 1.1 christos cat conftest.err >&5
7792 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 1.1 christos (exit $ac_status); } &&
7794 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7795 1.1 christos || test ! -s conftest.err'
7796 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 1.1 christos (eval $ac_try) 2>&5
7798 1.1 christos ac_status=$?
7799 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 1.1 christos (exit $ac_status); }; } &&
7801 1.1 christos { ac_try='test -s conftest.$ac_objext'
7802 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 1.1 christos (eval $ac_try) 2>&5
7804 1.1 christos ac_status=$?
7805 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 1.1 christos (exit $ac_status); }; }; then
7807 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
7808 1.1 christos echo "${ECHO_T}yes" >&6
7809 1.1 christos
7810 1.1 christos cat >>confdefs.h <<\_ACEOF
7811 1.1 christos #define HAVE_SYS_NERR 1
7812 1.1 christos _ACEOF
7813 1.1 christos
7814 1.1 christos else
7815 1.1 christos echo "$as_me: failed program was:" >&5
7816 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7817 1.1 christos
7818 1.1 christos echo "$as_me:$LINENO: result: no" >&5
7819 1.1 christos echo "${ECHO_T}no" >&6
7820 1.1 christos fi
7821 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 1.1 christos ac_ext=c
7823 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7824 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 1.1 christos
7828 1.1 christos echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7829 1.1 christos echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7830 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7831 1.1 christos
7832 1.1 christos /* confdefs.h. */
7833 1.1 christos _ACEOF
7834 1.1 christos cat confdefs.h >>conftest.$ac_ext
7835 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7836 1.1 christos /* end confdefs.h. */
7837 1.1 christos
7838 1.1 christos
7839 1.1 christos #include <errno.h>
7840 1.1 christos #include <stdio.h>
7841 1.1 christos #include <stdlib.h>
7842 1.1 christos
7843 1.1 christos
7844 1.1 christos int
7845 1.1 christos main ()
7846 1.1 christos {
7847 1.1 christos
7848 1.1 christos
7849 1.1 christos int k;
7850 1.1 christos k = (int)sys_errlist[0];
7851 1.1 christos
7852 1.1 christos
7853 1.1 christos ;
7854 1.1 christos return 0;
7855 1.1 christos }
7856 1.1 christos
7857 1.1 christos _ACEOF
7858 1.1 christos rm -f conftest.$ac_objext
7859 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 1.1 christos (eval $ac_compile) 2>conftest.er1
7861 1.1 christos ac_status=$?
7862 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7863 1.1 christos rm -f conftest.er1
7864 1.1 christos cat conftest.err >&5
7865 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 1.1 christos (exit $ac_status); } &&
7867 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
7868 1.1 christos || test ! -s conftest.err'
7869 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 1.1 christos (eval $ac_try) 2>&5
7871 1.1 christos ac_status=$?
7872 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 1.1 christos (exit $ac_status); }; } &&
7874 1.1 christos { ac_try='test -s conftest.$ac_objext'
7875 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 1.1 christos (eval $ac_try) 2>&5
7877 1.1 christos ac_status=$?
7878 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 1.1 christos (exit $ac_status); }; }; then
7880 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
7881 1.1 christos echo "${ECHO_T}yes" >&6
7882 1.1 christos
7883 1.1 christos cat >>confdefs.h <<\_ACEOF
7884 1.1 christos #define HAVE_SYS_ERRLIST 1
7885 1.1 christos _ACEOF
7886 1.1 christos
7887 1.1 christos else
7888 1.1 christos echo "$as_me: failed program was:" >&5
7889 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7890 1.1 christos
7891 1.1 christos echo "$as_me:$LINENO: result: no" >&5
7892 1.1 christos echo "${ECHO_T}no" >&6
7893 1.1 christos fi
7894 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 1.1 christos ac_ext=cc
7896 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7897 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7900 1.1 christos
7901 1.1 christos echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7902 1.1 christos echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7903 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7904 1.1 christos
7905 1.1 christos /* confdefs.h. */
7906 1.1 christos _ACEOF
7907 1.1 christos cat confdefs.h >>conftest.$ac_ext
7908 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7909 1.1 christos /* end confdefs.h. */
7910 1.1 christos
7911 1.1 christos
7912 1.1 christos #include <osfcn.h>
7913 1.1 christos
7914 1.1 christos
7915 1.1 christos int
7916 1.1 christos main ()
7917 1.1 christos {
7918 1.1 christos
7919 1.1 christos
7920 1.1 christos read(0, 0, 0);
7921 1.1 christos open(0, 0);
7922 1.1 christos
7923 1.1 christos
7924 1.1 christos ;
7925 1.1 christos return 0;
7926 1.1 christos }
7927 1.1 christos
7928 1.1 christos _ACEOF
7929 1.1 christos rm -f conftest.$ac_objext
7930 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931 1.1 christos (eval $ac_compile) 2>conftest.er1
7932 1.1 christos ac_status=$?
7933 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7934 1.1 christos rm -f conftest.er1
7935 1.1 christos cat conftest.err >&5
7936 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 1.1 christos (exit $ac_status); } &&
7938 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
7939 1.1 christos || test ! -s conftest.err'
7940 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 1.1 christos (eval $ac_try) 2>&5
7942 1.1 christos ac_status=$?
7943 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 1.1 christos (exit $ac_status); }; } &&
7945 1.1 christos { ac_try='test -s conftest.$ac_objext'
7946 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 1.1 christos (eval $ac_try) 2>&5
7948 1.1 christos ac_status=$?
7949 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 1.1 christos (exit $ac_status); }; }; then
7951 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
7952 1.1 christos echo "${ECHO_T}yes" >&6
7953 1.1 christos
7954 1.1 christos cat >>confdefs.h <<\_ACEOF
7955 1.1 christos #define HAVE_CC_OSFCN_H 1
7956 1.1 christos _ACEOF
7957 1.1 christos
7958 1.1 christos else
7959 1.1 christos echo "$as_me: failed program was:" >&5
7960 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7961 1.1 christos
7962 1.1 christos echo "$as_me:$LINENO: result: no" >&5
7963 1.1 christos echo "${ECHO_T}no" >&6
7964 1.1 christos fi
7965 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966 1.1 christos ac_ext=c
7967 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7968 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 1.1 christos
7972 1.1 christos ac_ext=cc
7973 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7974 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7977 1.1 christos
7978 1.1 christos echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7979 1.1 christos echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7980 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7981 1.1 christos
7982 1.1 christos /* confdefs.h. */
7983 1.1 christos _ACEOF
7984 1.1 christos cat confdefs.h >>conftest.$ac_ext
7985 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7986 1.1 christos /* end confdefs.h. */
7987 1.1 christos
7988 1.1 christos
7989 1.1 christos #include <limits.h>
7990 1.1 christos
7991 1.1 christos
7992 1.1 christos int
7993 1.1 christos main ()
7994 1.1 christos {
7995 1.1 christos
7996 1.1 christos
7997 1.1 christos int x = INT_MIN;
7998 1.1 christos int y = INT_MAX;
7999 1.1 christos int z = UCHAR_MAX;
8000 1.1 christos
8001 1.1 christos
8002 1.1 christos ;
8003 1.1 christos return 0;
8004 1.1 christos }
8005 1.1 christos
8006 1.1 christos _ACEOF
8007 1.1 christos rm -f conftest.$ac_objext
8008 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 1.1 christos (eval $ac_compile) 2>conftest.er1
8010 1.1 christos ac_status=$?
8011 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8012 1.1 christos rm -f conftest.er1
8013 1.1 christos cat conftest.err >&5
8014 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 1.1 christos (exit $ac_status); } &&
8016 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
8017 1.1 christos || test ! -s conftest.err'
8018 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 1.1 christos (eval $ac_try) 2>&5
8020 1.1 christos ac_status=$?
8021 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 1.1 christos (exit $ac_status); }; } &&
8023 1.1 christos { ac_try='test -s conftest.$ac_objext'
8024 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 1.1 christos (eval $ac_try) 2>&5
8026 1.1 christos ac_status=$?
8027 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 1.1 christos (exit $ac_status); }; }; then
8029 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
8030 1.1 christos echo "${ECHO_T}yes" >&6
8031 1.1 christos
8032 1.1 christos cat >>confdefs.h <<\_ACEOF
8033 1.1 christos #define HAVE_CC_LIMITS_H 1
8034 1.1 christos _ACEOF
8035 1.1 christos
8036 1.1 christos else
8037 1.1 christos echo "$as_me: failed program was:" >&5
8038 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8039 1.1 christos
8040 1.1 christos echo "$as_me:$LINENO: result: no" >&5
8041 1.1 christos echo "${ECHO_T}no" >&6
8042 1.1 christos fi
8043 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8044 1.1 christos ac_ext=c
8045 1.1 christos ac_cpp='$CPP $CPPFLAGS'
8046 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
8049 1.1 christos
8050 1.1 christos ac_ext=cc
8051 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
8052 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8055 1.1 christos
8056 1.1 christos echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8057 1.1 christos echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8058 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8059 1.1 christos
8060 1.1 christos /* confdefs.h. */
8061 1.1 christos _ACEOF
8062 1.1 christos cat confdefs.h >>conftest.$ac_ext
8063 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8064 1.1 christos /* end confdefs.h. */
8065 1.1 christos
8066 1.1 christos
8067 1.1 christos #include <sys/types.h>
8068 1.1 christos #include <inttypes.h>
8069 1.1 christos
8070 1.1 christos
8071 1.1 christos int
8072 1.1 christos main ()
8073 1.1 christos {
8074 1.1 christos
8075 1.1 christos
8076 1.1 christos uintmax_t i = (uintmax_t)-1;
8077 1.1 christos
8078 1.1 christos
8079 1.1 christos ;
8080 1.1 christos return 0;
8081 1.1 christos }
8082 1.1 christos
8083 1.1 christos _ACEOF
8084 1.1 christos rm -f conftest.$ac_objext
8085 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 1.1 christos (eval $ac_compile) 2>conftest.er1
8087 1.1 christos ac_status=$?
8088 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8089 1.1 christos rm -f conftest.er1
8090 1.1 christos cat conftest.err >&5
8091 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 1.1 christos (exit $ac_status); } &&
8093 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
8094 1.1 christos || test ! -s conftest.err'
8095 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 1.1 christos (eval $ac_try) 2>&5
8097 1.1 christos ac_status=$?
8098 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 1.1 christos (exit $ac_status); }; } &&
8100 1.1 christos { ac_try='test -s conftest.$ac_objext'
8101 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 1.1 christos (eval $ac_try) 2>&5
8103 1.1 christos ac_status=$?
8104 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 1.1 christos (exit $ac_status); }; }; then
8106 1.1 christos groff_cv_header_inttypes_h=yes
8107 1.1 christos
8108 1.1 christos cat >>confdefs.h <<\_ACEOF
8109 1.1 christos #define HAVE_CC_INTTYPES_H 1
8110 1.1 christos _ACEOF
8111 1.1 christos
8112 1.1 christos else
8113 1.1 christos echo "$as_me: failed program was:" >&5
8114 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8115 1.1 christos
8116 1.1 christos groff_cv_header_inttypes_h=no
8117 1.1 christos fi
8118 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8120 1.1 christos echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8121 1.1 christos ac_ext=c
8122 1.1 christos ac_cpp='$CPP $CPPFLAGS'
8123 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126 1.1 christos
8127 1.1 christos
8128 1.1 christos # checks for typedefs
8129 1.1 christos ac_ext=cc
8130 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
8131 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8134 1.1 christos
8135 1.1 christos echo "$as_me:$LINENO: checking for unsigned long long" >&5
8136 1.1 christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8137 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8138 1.1 christos
8139 1.1 christos /* confdefs.h. */
8140 1.1 christos _ACEOF
8141 1.1 christos cat confdefs.h >>conftest.$ac_ext
8142 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8143 1.1 christos /* end confdefs.h. */
8144 1.1 christos
8145 1.1 christos
8146 1.1 christos unsigned long long ull = 1;
8147 1.1 christos int i = 63;
8148 1.1 christos unsigned long long ullmax = (unsigned long long)-1;
8149 1.1 christos
8150 1.1 christos
8151 1.1 christos int
8152 1.1 christos main ()
8153 1.1 christos {
8154 1.1 christos
8155 1.1 christos
8156 1.1 christos return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8157 1.1 christos
8158 1.1 christos
8159 1.1 christos ;
8160 1.1 christos return 0;
8161 1.1 christos }
8162 1.1 christos
8163 1.1 christos _ACEOF
8164 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8165 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 1.1 christos (eval $ac_link) 2>conftest.er1
8167 1.1 christos ac_status=$?
8168 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8169 1.1 christos rm -f conftest.er1
8170 1.1 christos cat conftest.err >&5
8171 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 1.1 christos (exit $ac_status); } &&
8173 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
8174 1.1 christos || test ! -s conftest.err'
8175 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 1.1 christos (eval $ac_try) 2>&5
8177 1.1 christos ac_status=$?
8178 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 1.1 christos (exit $ac_status); }; } &&
8180 1.1 christos { ac_try='test -s conftest$ac_exeext'
8181 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 1.1 christos (eval $ac_try) 2>&5
8183 1.1 christos ac_status=$?
8184 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 1.1 christos (exit $ac_status); }; }; then
8186 1.1 christos groff_cv_type_unsigned_long_long=yes
8187 1.1 christos else
8188 1.1 christos echo "$as_me: failed program was:" >&5
8189 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8190 1.1 christos
8191 1.1 christos groff_cv_type_unsigned_long_long=no
8192 1.1 christos fi
8193 1.1 christos rm -f conftest.err conftest.$ac_objext \
8194 1.1 christos conftest$ac_exeext conftest.$ac_ext
8195 1.1 christos echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8196 1.1 christos echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8197 1.1 christos ac_ext=c
8198 1.1 christos ac_cpp='$CPP $CPPFLAGS'
8199 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202 1.1 christos
8203 1.1 christos
8204 1.1 christos if test $groff_cv_header_inttypes_h = no; then
8205 1.1 christos
8206 1.1 christos test $groff_cv_type_unsigned_long_long = yes \
8207 1.1 christos && ac_type='unsigned long long' \
8208 1.1 christos || ac_type='unsigned long'
8209 1.1 christos
8210 1.1 christos cat >>confdefs.h <<_ACEOF
8211 1.1 christos #define uintmax_t $ac_type
8212 1.1 christos _ACEOF
8213 1.1 christos
8214 1.1 christos fi
8215 1.1 christos ac_ext=cc
8216 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
8217 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8220 1.1 christos
8221 1.1 christos echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8222 1.1 christos echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8223 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8224 1.1 christos
8225 1.1 christos /* confdefs.h. */
8226 1.1 christos _ACEOF
8227 1.1 christos cat confdefs.h >>conftest.$ac_ext
8228 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8229 1.1 christos /* end confdefs.h. */
8230 1.1 christos
8231 1.1 christos
8232 1.1 christos #include <time.h>
8233 1.1 christos
8234 1.1 christos
8235 1.1 christos int
8236 1.1 christos main ()
8237 1.1 christos {
8238 1.1 christos
8239 1.1 christos
8240 1.1 christos time_t t = time(0);
8241 1.1 christos struct tm *p = localtime(&t);
8242 1.1 christos
8243 1.1 christos
8244 1.1 christos ;
8245 1.1 christos return 0;
8246 1.1 christos }
8247 1.1 christos
8248 1.1 christos _ACEOF
8249 1.1 christos rm -f conftest.$ac_objext
8250 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 1.1 christos (eval $ac_compile) 2>conftest.er1
8252 1.1 christos ac_status=$?
8253 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8254 1.1 christos rm -f conftest.er1
8255 1.1 christos cat conftest.err >&5
8256 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 1.1 christos (exit $ac_status); } &&
8258 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
8259 1.1 christos || test ! -s conftest.err'
8260 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 1.1 christos (eval $ac_try) 2>&5
8262 1.1 christos ac_status=$?
8263 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 1.1 christos (exit $ac_status); }; } &&
8265 1.1 christos { ac_try='test -s conftest.$ac_objext'
8266 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 1.1 christos (eval $ac_try) 2>&5
8268 1.1 christos ac_status=$?
8269 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 1.1 christos (exit $ac_status); }; }; then
8271 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
8272 1.1 christos echo "${ECHO_T}yes" >&6
8273 1.1 christos else
8274 1.1 christos echo "$as_me: failed program was:" >&5
8275 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8276 1.1 christos
8277 1.1 christos echo "$as_me:$LINENO: result: no" >&5
8278 1.1 christos echo "${ECHO_T}no" >&6
8279 1.1 christos
8280 1.1 christos cat >>confdefs.h <<\_ACEOF
8281 1.1 christos #define LONG_FOR_TIME_T 1
8282 1.1 christos _ACEOF
8283 1.1 christos
8284 1.1 christos fi
8285 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 1.1 christos ac_ext=c
8287 1.1 christos ac_cpp='$CPP $CPPFLAGS'
8288 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291 1.1 christos
8292 1.1 christos echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8293 1.1 christos echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
8294 1.1 christos for groff_declaration in \
8295 1.1 christos 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8296 1.1 christos 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8297 1.1 christos 'void (*signal ()) ();'
8298 1.1 christos do
8299 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8300 1.1 christos
8301 1.1 christos /* confdefs.h. */
8302 1.1 christos _ACEOF
8303 1.1 christos cat confdefs.h >>conftest.$ac_ext
8304 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8305 1.1 christos /* end confdefs.h. */
8306 1.1 christos
8307 1.1 christos
8308 1.1 christos #include <sys/types.h>
8309 1.1 christos #include <signal.h>
8310 1.1 christos #ifdef signal
8311 1.1 christos # undef signal
8312 1.1 christos #endif
8313 1.1 christos $groff_declaration
8314 1.1 christos
8315 1.1 christos
8316 1.1 christos int
8317 1.1 christos main ()
8318 1.1 christos {
8319 1.1 christos
8320 1.1 christos
8321 1.1 christos int i;
8322 1.1 christos
8323 1.1 christos
8324 1.1 christos ;
8325 1.1 christos return 0;
8326 1.1 christos }
8327 1.1 christos
8328 1.1 christos _ACEOF
8329 1.1 christos rm -f conftest.$ac_objext
8330 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331 1.1 christos (eval $ac_compile) 2>conftest.er1
8332 1.1 christos ac_status=$?
8333 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8334 1.1 christos rm -f conftest.er1
8335 1.1 christos cat conftest.err >&5
8336 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 1.1 christos (exit $ac_status); } &&
8338 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8339 1.1 christos || test ! -s conftest.err'
8340 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 1.1 christos (eval $ac_try) 2>&5
8342 1.1 christos ac_status=$?
8343 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 1.1 christos (exit $ac_status); }; } &&
8345 1.1 christos { ac_try='test -s conftest.$ac_objext'
8346 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 1.1 christos (eval $ac_try) 2>&5
8348 1.1 christos ac_status=$?
8349 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 1.1 christos (exit $ac_status); }; }; then
8351 1.1 christos break
8352 1.1 christos else
8353 1.1 christos echo "$as_me: failed program was:" >&5
8354 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8355 1.1 christos
8356 1.1 christos continue
8357 1.1 christos fi
8358 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359 1.1 christos done
8360 1.1 christos
8361 1.1 christos if test -n "$groff_declaration"; then
8362 1.1 christos echo "$as_me:$LINENO: result: void" >&5
8363 1.1 christos echo "${ECHO_T}void" >&6
8364 1.1 christos
8365 1.1 christos cat >>confdefs.h <<\_ACEOF
8366 1.1 christos #define RETSIGTYPE void
8367 1.1 christos _ACEOF
8368 1.1 christos
8369 1.1 christos else
8370 1.1 christos echo "$as_me:$LINENO: result: int" >&5
8371 1.1 christos echo "${ECHO_T}int" >&6
8372 1.1 christos
8373 1.1 christos cat >>confdefs.h <<\_ACEOF
8374 1.1 christos #define RETSIGTYPE int
8375 1.1 christos _ACEOF
8376 1.1 christos
8377 1.1 christos fi
8378 1.1 christos echo "$as_me:$LINENO: checking struct exception" >&5
8379 1.1 christos echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8380 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8381 1.1 christos
8382 1.1 christos /* confdefs.h. */
8383 1.1 christos _ACEOF
8384 1.1 christos cat confdefs.h >>conftest.$ac_ext
8385 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8386 1.1 christos /* end confdefs.h. */
8387 1.1 christos
8388 1.1 christos
8389 1.1 christos #include <math.h>
8390 1.1 christos
8391 1.1 christos
8392 1.1 christos int
8393 1.1 christos main ()
8394 1.1 christos {
8395 1.1 christos
8396 1.1 christos
8397 1.1 christos struct exception e;
8398 1.1 christos
8399 1.1 christos
8400 1.1 christos ;
8401 1.1 christos return 0;
8402 1.1 christos }
8403 1.1 christos
8404 1.1 christos _ACEOF
8405 1.1 christos rm -f conftest.$ac_objext
8406 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 1.1 christos (eval $ac_compile) 2>conftest.er1
8408 1.1 christos ac_status=$?
8409 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8410 1.1 christos rm -f conftest.er1
8411 1.1 christos cat conftest.err >&5
8412 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 1.1 christos (exit $ac_status); } &&
8414 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8415 1.1 christos || test ! -s conftest.err'
8416 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 1.1 christos (eval $ac_try) 2>&5
8418 1.1 christos ac_status=$?
8419 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 1.1 christos (exit $ac_status); }; } &&
8421 1.1 christos { ac_try='test -s conftest.$ac_objext'
8422 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 1.1 christos (eval $ac_try) 2>&5
8424 1.1 christos ac_status=$?
8425 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 1.1 christos (exit $ac_status); }; }; then
8427 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
8428 1.1 christos echo "${ECHO_T}yes" >&6
8429 1.1 christos
8430 1.1 christos cat >>confdefs.h <<\_ACEOF
8431 1.1 christos #define HAVE_STRUCT_EXCEPTION 1
8432 1.1 christos _ACEOF
8433 1.1 christos
8434 1.1 christos else
8435 1.1 christos echo "$as_me: failed program was:" >&5
8436 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8437 1.1 christos
8438 1.1 christos echo "$as_me:$LINENO: result: no" >&5
8439 1.1 christos echo "${ECHO_T}no" >&6
8440 1.1 christos fi
8441 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8442 1.1 christos
8443 1.1 christos # checks for libraries
8444 1.1 christos echo "$as_me:$LINENO: checking for main in -lc" >&5
8445 1.1 christos echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8446 1.1 christos if test "${ac_cv_lib_c_main+set}" = set; then
8447 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8448 1.1 christos else
8449 1.1 christos ac_check_lib_save_LIBS=$LIBS
8450 1.1 christos LIBS="-lc $LIBS"
8451 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8452 1.1 christos /* confdefs.h. */
8453 1.1 christos _ACEOF
8454 1.1 christos cat confdefs.h >>conftest.$ac_ext
8455 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8456 1.1 christos /* end confdefs.h. */
8457 1.1 christos
8458 1.1 christos
8459 1.1 christos int
8460 1.1 christos main ()
8461 1.1 christos {
8462 1.1 christos main ();
8463 1.1 christos ;
8464 1.1 christos return 0;
8465 1.1 christos }
8466 1.1 christos _ACEOF
8467 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8468 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 1.1 christos (eval $ac_link) 2>conftest.er1
8470 1.1 christos ac_status=$?
8471 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8472 1.1 christos rm -f conftest.er1
8473 1.1 christos cat conftest.err >&5
8474 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 1.1 christos (exit $ac_status); } &&
8476 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8477 1.1 christos || test ! -s conftest.err'
8478 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 1.1 christos (eval $ac_try) 2>&5
8480 1.1 christos ac_status=$?
8481 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 1.1 christos (exit $ac_status); }; } &&
8483 1.1 christos { ac_try='test -s conftest$ac_exeext'
8484 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 1.1 christos (eval $ac_try) 2>&5
8486 1.1 christos ac_status=$?
8487 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 1.1 christos (exit $ac_status); }; }; then
8489 1.1 christos ac_cv_lib_c_main=yes
8490 1.1 christos else
8491 1.1 christos echo "$as_me: failed program was:" >&5
8492 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8493 1.1 christos
8494 1.1 christos ac_cv_lib_c_main=no
8495 1.1 christos fi
8496 1.1 christos rm -f conftest.err conftest.$ac_objext \
8497 1.1 christos conftest$ac_exeext conftest.$ac_ext
8498 1.1 christos LIBS=$ac_check_lib_save_LIBS
8499 1.1 christos fi
8500 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8501 1.1 christos echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8502 1.1 christos if test $ac_cv_lib_c_main = yes; then
8503 1.1 christos LIBC=-lc
8504 1.1 christos fi
8505 1.1 christos
8506 1.1 christos
8507 1.1 christos echo "$as_me:$LINENO: checking for sin in -lm" >&5
8508 1.1 christos echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8509 1.1 christos if test "${ac_cv_lib_m_sin+set}" = set; then
8510 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8511 1.1 christos else
8512 1.1 christos ac_check_lib_save_LIBS=$LIBS
8513 1.1 christos LIBS="-lm $LIBS"
8514 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8515 1.1 christos /* confdefs.h. */
8516 1.1 christos _ACEOF
8517 1.1 christos cat confdefs.h >>conftest.$ac_ext
8518 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8519 1.1 christos /* end confdefs.h. */
8520 1.1 christos
8521 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
8522 1.1 christos #ifdef __cplusplus
8523 1.1 christos extern "C"
8524 1.1 christos #endif
8525 1.1 christos /* We use char because int might match the return type of a gcc2
8526 1.1 christos builtin and then its argument prototype would still apply. */
8527 1.1 christos char sin ();
8528 1.1 christos int
8529 1.1 christos main ()
8530 1.1 christos {
8531 1.1 christos sin ();
8532 1.1 christos ;
8533 1.1 christos return 0;
8534 1.1 christos }
8535 1.1 christos _ACEOF
8536 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8537 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538 1.1 christos (eval $ac_link) 2>conftest.er1
8539 1.1 christos ac_status=$?
8540 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8541 1.1 christos rm -f conftest.er1
8542 1.1 christos cat conftest.err >&5
8543 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 1.1 christos (exit $ac_status); } &&
8545 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8546 1.1 christos || test ! -s conftest.err'
8547 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 1.1 christos (eval $ac_try) 2>&5
8549 1.1 christos ac_status=$?
8550 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 1.1 christos (exit $ac_status); }; } &&
8552 1.1 christos { ac_try='test -s conftest$ac_exeext'
8553 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 1.1 christos (eval $ac_try) 2>&5
8555 1.1 christos ac_status=$?
8556 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 1.1 christos (exit $ac_status); }; }; then
8558 1.1 christos ac_cv_lib_m_sin=yes
8559 1.1 christos else
8560 1.1 christos echo "$as_me: failed program was:" >&5
8561 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8562 1.1 christos
8563 1.1 christos ac_cv_lib_m_sin=no
8564 1.1 christos fi
8565 1.1 christos rm -f conftest.err conftest.$ac_objext \
8566 1.1 christos conftest$ac_exeext conftest.$ac_ext
8567 1.1 christos LIBS=$ac_check_lib_save_LIBS
8568 1.1 christos fi
8569 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8570 1.1 christos echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8571 1.1 christos if test $ac_cv_lib_m_sin = yes; then
8572 1.1 christos LIBM=-lm
8573 1.1 christos fi
8574 1.1 christos
8575 1.1 christos
8576 1.1 christos
8577 1.1 christos # checks for functions
8578 1.1 christos
8579 1.1 christos
8580 1.1 christos for ac_header in stdlib.h unistd.h
8581 1.1 christos do
8582 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8583 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
8585 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8586 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
8587 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8588 1.1 christos fi
8589 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8590 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8591 1.1 christos else
8592 1.1 christos # Is the header compilable?
8593 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8595 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8596 1.1 christos /* confdefs.h. */
8597 1.1 christos _ACEOF
8598 1.1 christos cat confdefs.h >>conftest.$ac_ext
8599 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8600 1.1 christos /* end confdefs.h. */
8601 1.1 christos $ac_includes_default
8602 1.1 christos #include <$ac_header>
8603 1.1 christos _ACEOF
8604 1.1 christos rm -f conftest.$ac_objext
8605 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 1.1 christos (eval $ac_compile) 2>conftest.er1
8607 1.1 christos ac_status=$?
8608 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8609 1.1 christos rm -f conftest.er1
8610 1.1 christos cat conftest.err >&5
8611 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 1.1 christos (exit $ac_status); } &&
8613 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8614 1.1 christos || test ! -s conftest.err'
8615 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 1.1 christos (eval $ac_try) 2>&5
8617 1.1 christos ac_status=$?
8618 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 1.1 christos (exit $ac_status); }; } &&
8620 1.1 christos { ac_try='test -s conftest.$ac_objext'
8621 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 1.1 christos (eval $ac_try) 2>&5
8623 1.1 christos ac_status=$?
8624 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 1.1 christos (exit $ac_status); }; }; then
8626 1.1 christos ac_header_compiler=yes
8627 1.1 christos else
8628 1.1 christos echo "$as_me: failed program was:" >&5
8629 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8630 1.1 christos
8631 1.1 christos ac_header_compiler=no
8632 1.1 christos fi
8633 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8635 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6
8636 1.1 christos
8637 1.1 christos # Is the header present?
8638 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
8639 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8640 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8641 1.1 christos /* confdefs.h. */
8642 1.1 christos _ACEOF
8643 1.1 christos cat confdefs.h >>conftest.$ac_ext
8644 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8645 1.1 christos /* end confdefs.h. */
8646 1.1 christos #include <$ac_header>
8647 1.1 christos _ACEOF
8648 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8649 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650 1.1 christos ac_status=$?
8651 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8652 1.1 christos rm -f conftest.er1
8653 1.1 christos cat conftest.err >&5
8654 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 1.1 christos (exit $ac_status); } >/dev/null; then
8656 1.1 christos if test -s conftest.err; then
8657 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
8658 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659 1.1 christos else
8660 1.1 christos ac_cpp_err=
8661 1.1 christos fi
8662 1.1 christos else
8663 1.1 christos ac_cpp_err=yes
8664 1.1 christos fi
8665 1.1 christos if test -z "$ac_cpp_err"; then
8666 1.1 christos ac_header_preproc=yes
8667 1.1 christos else
8668 1.1 christos echo "$as_me: failed program was:" >&5
8669 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8670 1.1 christos
8671 1.1 christos ac_header_preproc=no
8672 1.1 christos fi
8673 1.1 christos rm -f conftest.err conftest.$ac_ext
8674 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8675 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6
8676 1.1 christos
8677 1.1 christos # So? What about this header?
8678 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8679 1.1 christos yes:no: )
8680 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8681 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8682 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8683 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8684 1.1 christos ac_header_preproc=yes
8685 1.1 christos ;;
8686 1.1 christos no:yes:* )
8687 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8688 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8689 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8690 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8691 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8692 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8693 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8694 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8695 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8696 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8697 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8698 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8699 1.1 christos (
8700 1.1 christos cat <<\_ASBOX
8701 1.1 christos ## ------------------------------------------ ##
8702 1.1 christos ## Report this to the AC_PACKAGE_NAME lists. ##
8703 1.1 christos ## ------------------------------------------ ##
8704 1.1 christos _ASBOX
8705 1.1 christos ) |
8706 1.1 christos sed "s/^/$as_me: WARNING: /" >&2
8707 1.1 christos ;;
8708 1.1 christos esac
8709 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
8710 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8713 1.1 christos else
8714 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
8715 1.1 christos fi
8716 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718 1.1 christos
8719 1.1 christos fi
8720 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721 1.1 christos cat >>confdefs.h <<_ACEOF
8722 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723 1.1 christos _ACEOF
8724 1.1 christos
8725 1.1 christos fi
8726 1.1 christos
8727 1.1 christos done
8728 1.1 christos
8729 1.1 christos
8730 1.1 christos for ac_func in getpagesize
8731 1.1 christos do
8732 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
8734 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8735 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
8736 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8737 1.1 christos else
8738 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8739 1.1 christos /* confdefs.h. */
8740 1.1 christos _ACEOF
8741 1.1 christos cat confdefs.h >>conftest.$ac_ext
8742 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8743 1.1 christos /* end confdefs.h. */
8744 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8745 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8746 1.1 christos #define $ac_func innocuous_$ac_func
8747 1.1 christos
8748 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8749 1.1 christos which can conflict with char $ac_func (); below.
8750 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8751 1.1 christos <limits.h> exists even on freestanding compilers. */
8752 1.1 christos
8753 1.1 christos #ifdef __STDC__
8754 1.1 christos # include <limits.h>
8755 1.1 christos #else
8756 1.1 christos # include <assert.h>
8757 1.1 christos #endif
8758 1.1 christos
8759 1.1 christos #undef $ac_func
8760 1.1 christos
8761 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
8762 1.1 christos #ifdef __cplusplus
8763 1.1 christos extern "C"
8764 1.1 christos {
8765 1.1 christos #endif
8766 1.1 christos /* We use char because int might match the return type of a gcc2
8767 1.1 christos builtin and then its argument prototype would still apply. */
8768 1.1 christos char $ac_func ();
8769 1.1 christos /* The GNU C library defines this for functions which it implements
8770 1.1 christos to always fail with ENOSYS. Some functions are actually named
8771 1.1 christos something starting with __ and the normal name is an alias. */
8772 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8773 1.1 christos choke me
8774 1.1 christos #else
8775 1.1 christos char (*f) () = $ac_func;
8776 1.1 christos #endif
8777 1.1 christos #ifdef __cplusplus
8778 1.1 christos }
8779 1.1 christos #endif
8780 1.1 christos
8781 1.1 christos int
8782 1.1 christos main ()
8783 1.1 christos {
8784 1.1 christos return f != $ac_func;
8785 1.1 christos ;
8786 1.1 christos return 0;
8787 1.1 christos }
8788 1.1 christos _ACEOF
8789 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8790 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791 1.1 christos (eval $ac_link) 2>conftest.er1
8792 1.1 christos ac_status=$?
8793 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8794 1.1 christos rm -f conftest.er1
8795 1.1 christos cat conftest.err >&5
8796 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 1.1 christos (exit $ac_status); } &&
8798 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
8799 1.1 christos || test ! -s conftest.err'
8800 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 1.1 christos (eval $ac_try) 2>&5
8802 1.1 christos ac_status=$?
8803 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 1.1 christos (exit $ac_status); }; } &&
8805 1.1 christos { ac_try='test -s conftest$ac_exeext'
8806 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 1.1 christos (eval $ac_try) 2>&5
8808 1.1 christos ac_status=$?
8809 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 1.1 christos (exit $ac_status); }; }; then
8811 1.1 christos eval "$as_ac_var=yes"
8812 1.1 christos else
8813 1.1 christos echo "$as_me: failed program was:" >&5
8814 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8815 1.1 christos
8816 1.1 christos eval "$as_ac_var=no"
8817 1.1 christos fi
8818 1.1 christos rm -f conftest.err conftest.$ac_objext \
8819 1.1 christos conftest$ac_exeext conftest.$ac_ext
8820 1.1 christos fi
8821 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8822 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8823 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8824 1.1 christos cat >>confdefs.h <<_ACEOF
8825 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8826 1.1 christos _ACEOF
8827 1.1 christos
8828 1.1 christos fi
8829 1.1 christos done
8830 1.1 christos
8831 1.1 christos echo "$as_me:$LINENO: checking for working mmap" >&5
8832 1.1 christos echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8833 1.1 christos if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8834 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8835 1.1 christos else
8836 1.1 christos if test "$cross_compiling" = yes; then
8837 1.1 christos ac_cv_func_mmap_fixed_mapped=no
8838 1.1 christos else
8839 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8840 1.1 christos /* confdefs.h. */
8841 1.1 christos _ACEOF
8842 1.1 christos cat confdefs.h >>conftest.$ac_ext
8843 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8844 1.1 christos /* end confdefs.h. */
8845 1.1 christos $ac_includes_default
8846 1.1 christos /* malloc might have been renamed as rpl_malloc. */
8847 1.1 christos #undef malloc
8848 1.1 christos
8849 1.1 christos /* Thanks to Mike Haertel and Jim Avera for this test.
8850 1.1 christos Here is a matrix of mmap possibilities:
8851 1.1 christos mmap private not fixed
8852 1.1 christos mmap private fixed at somewhere currently unmapped
8853 1.1 christos mmap private fixed at somewhere already mapped
8854 1.1 christos mmap shared not fixed
8855 1.1 christos mmap shared fixed at somewhere currently unmapped
8856 1.1 christos mmap shared fixed at somewhere already mapped
8857 1.1 christos For private mappings, we should verify that changes cannot be read()
8858 1.1 christos back from the file, nor mmap's back from the file at a different
8859 1.1 christos address. (There have been systems where private was not correctly
8860 1.1 christos implemented like the infamous i386 svr4.0, and systems where the
8861 1.1 christos VM page cache was not coherent with the file system buffer cache
8862 1.1 christos like early versions of FreeBSD and possibly contemporary NetBSD.)
8863 1.1 christos For shared mappings, we should conversely verify that changes get
8864 1.1 christos propagated back to all the places they're supposed to be.
8865 1.1 christos
8866 1.1 christos Grep wants private fixed already mapped.
8867 1.1 christos The main things grep needs to know about mmap are:
8868 1.1 christos * does it exist and is it safe to write into the mmap'd area
8869 1.1 christos * how to use it (BSD variants) */
8870 1.1 christos
8871 1.1 christos #include <fcntl.h>
8872 1.1 christos #include <sys/mman.h>
8873 1.1 christos
8874 1.1 christos #if !STDC_HEADERS && !HAVE_STDLIB_H
8875 1.1 christos char *malloc ();
8876 1.1 christos #endif
8877 1.1 christos
8878 1.1 christos /* This mess was copied from the GNU getpagesize.h. */
8879 1.1 christos #if !HAVE_GETPAGESIZE
8880 1.1 christos /* Assume that all systems that can run configure have sys/param.h. */
8881 1.1 christos # if !HAVE_SYS_PARAM_H
8882 1.1 christos # define HAVE_SYS_PARAM_H 1
8883 1.1 christos # endif
8884 1.1 christos
8885 1.1 christos # ifdef _SC_PAGESIZE
8886 1.1 christos # define getpagesize() sysconf(_SC_PAGESIZE)
8887 1.1 christos # else /* no _SC_PAGESIZE */
8888 1.1 christos # if HAVE_SYS_PARAM_H
8889 1.1 christos # include <sys/param.h>
8890 1.1 christos # ifdef EXEC_PAGESIZE
8891 1.1 christos # define getpagesize() EXEC_PAGESIZE
8892 1.1 christos # else /* no EXEC_PAGESIZE */
8893 1.1 christos # ifdef NBPG
8894 1.1 christos # define getpagesize() NBPG * CLSIZE
8895 1.1 christos # ifndef CLSIZE
8896 1.1 christos # define CLSIZE 1
8897 1.1 christos # endif /* no CLSIZE */
8898 1.1 christos # else /* no NBPG */
8899 1.1 christos # ifdef NBPC
8900 1.1 christos # define getpagesize() NBPC
8901 1.1 christos # else /* no NBPC */
8902 1.1 christos # ifdef PAGESIZE
8903 1.1 christos # define getpagesize() PAGESIZE
8904 1.1 christos # endif /* PAGESIZE */
8905 1.1 christos # endif /* no NBPC */
8906 1.1 christos # endif /* no NBPG */
8907 1.1 christos # endif /* no EXEC_PAGESIZE */
8908 1.1 christos # else /* no HAVE_SYS_PARAM_H */
8909 1.1 christos # define getpagesize() 8192 /* punt totally */
8910 1.1 christos # endif /* no HAVE_SYS_PARAM_H */
8911 1.1 christos # endif /* no _SC_PAGESIZE */
8912 1.1 christos
8913 1.1 christos #endif /* no HAVE_GETPAGESIZE */
8914 1.1 christos
8915 1.1 christos int
8916 1.1 christos main ()
8917 1.1 christos {
8918 1.1 christos char *data, *data2, *data3;
8919 1.1 christos int i, pagesize;
8920 1.1 christos int fd;
8921 1.1 christos
8922 1.1 christos pagesize = getpagesize ();
8923 1.1 christos
8924 1.1 christos /* First, make a file with some known garbage in it. */
8925 1.1 christos data = (char *) malloc (pagesize);
8926 1.1 christos if (!data)
8927 1.1 christos exit (1);
8928 1.1 christos for (i = 0; i < pagesize; ++i)
8929 1.1 christos *(data + i) = rand ();
8930 1.1 christos umask (0);
8931 1.1 christos fd = creat ("conftest.mmap", 0600);
8932 1.1 christos if (fd < 0)
8933 1.1 christos exit (1);
8934 1.1 christos if (write (fd, data, pagesize) != pagesize)
8935 1.1 christos exit (1);
8936 1.1 christos close (fd);
8937 1.1 christos
8938 1.1 christos /* Next, try to mmap the file at a fixed address which already has
8939 1.1 christos something else allocated at it. If we can, also make sure that
8940 1.1 christos we see the same garbage. */
8941 1.1 christos fd = open ("conftest.mmap", O_RDWR);
8942 1.1 christos if (fd < 0)
8943 1.1 christos exit (1);
8944 1.1 christos data2 = (char *) malloc (2 * pagesize);
8945 1.1 christos if (!data2)
8946 1.1 christos exit (1);
8947 1.1 christos data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8948 1.1 christos if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8949 1.1 christos MAP_PRIVATE | MAP_FIXED, fd, 0L))
8950 1.1 christos exit (1);
8951 1.1 christos for (i = 0; i < pagesize; ++i)
8952 1.1 christos if (*(data + i) != *(data2 + i))
8953 1.1 christos exit (1);
8954 1.1 christos
8955 1.1 christos /* Finally, make sure that changes to the mapped area do not
8956 1.1 christos percolate back to the file as seen by read(). (This is a bug on
8957 1.1 christos some variants of i386 svr4.0.) */
8958 1.1 christos for (i = 0; i < pagesize; ++i)
8959 1.1 christos *(data2 + i) = *(data2 + i) + 1;
8960 1.1 christos data3 = (char *) malloc (pagesize);
8961 1.1 christos if (!data3)
8962 1.1 christos exit (1);
8963 1.1 christos if (read (fd, data3, pagesize) != pagesize)
8964 1.1 christos exit (1);
8965 1.1 christos for (i = 0; i < pagesize; ++i)
8966 1.1 christos if (*(data + i) != *(data3 + i))
8967 1.1 christos exit (1);
8968 1.1 christos close (fd);
8969 1.1 christos exit (0);
8970 1.1 christos }
8971 1.1 christos _ACEOF
8972 1.1 christos rm -f conftest$ac_exeext
8973 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 1.1 christos (eval $ac_link) 2>&5
8975 1.1 christos ac_status=$?
8976 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8978 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 1.1 christos (eval $ac_try) 2>&5
8980 1.1 christos ac_status=$?
8981 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 1.1 christos (exit $ac_status); }; }; then
8983 1.1 christos ac_cv_func_mmap_fixed_mapped=yes
8984 1.1 christos else
8985 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
8986 1.1 christos echo "$as_me: failed program was:" >&5
8987 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8988 1.1 christos
8989 1.1 christos ( exit $ac_status )
8990 1.1 christos ac_cv_func_mmap_fixed_mapped=no
8991 1.1 christos fi
8992 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8993 1.1 christos fi
8994 1.1 christos fi
8995 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8996 1.1 christos echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8997 1.1 christos if test $ac_cv_func_mmap_fixed_mapped = yes; then
8998 1.1 christos
8999 1.1 christos cat >>confdefs.h <<\_ACEOF
9000 1.1 christos #define HAVE_MMAP 1
9001 1.1 christos _ACEOF
9002 1.1 christos
9003 1.1 christos fi
9004 1.1 christos rm -f conftest.mmap
9005 1.1 christos
9006 1.1 christos saved_libs="$LIBS"
9007 1.1 christos LIBS="$LIBS $LIBC $LIBM"
9008 1.1 christos
9009 1.1 christos
9010 1.1 christos
9011 1.1 christos
9012 1.1 christos
9013 1.1 christos
9014 1.1 christos
9015 1.1 christos
9016 1.1 christos for ac_func in fmod getcwd putenv snprintf strcasecmp \
9017 1.1 christos strerror strncasecmp strtol
9018 1.1 christos do
9019 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9020 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
9021 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9022 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
9023 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9024 1.1 christos else
9025 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9026 1.1 christos /* confdefs.h. */
9027 1.1 christos _ACEOF
9028 1.1 christos cat confdefs.h >>conftest.$ac_ext
9029 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9030 1.1 christos /* end confdefs.h. */
9031 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9032 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9033 1.1 christos #define $ac_func innocuous_$ac_func
9034 1.1 christos
9035 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9036 1.1 christos which can conflict with char $ac_func (); below.
9037 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9038 1.1 christos <limits.h> exists even on freestanding compilers. */
9039 1.1 christos
9040 1.1 christos #ifdef __STDC__
9041 1.1 christos # include <limits.h>
9042 1.1 christos #else
9043 1.1 christos # include <assert.h>
9044 1.1 christos #endif
9045 1.1 christos
9046 1.1 christos #undef $ac_func
9047 1.1 christos
9048 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
9049 1.1 christos #ifdef __cplusplus
9050 1.1 christos extern "C"
9051 1.1 christos {
9052 1.1 christos #endif
9053 1.1 christos /* We use char because int might match the return type of a gcc2
9054 1.1 christos builtin and then its argument prototype would still apply. */
9055 1.1 christos char $ac_func ();
9056 1.1 christos /* The GNU C library defines this for functions which it implements
9057 1.1 christos to always fail with ENOSYS. Some functions are actually named
9058 1.1 christos something starting with __ and the normal name is an alias. */
9059 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9060 1.1 christos choke me
9061 1.1 christos #else
9062 1.1 christos char (*f) () = $ac_func;
9063 1.1 christos #endif
9064 1.1 christos #ifdef __cplusplus
9065 1.1 christos }
9066 1.1 christos #endif
9067 1.1 christos
9068 1.1 christos int
9069 1.1 christos main ()
9070 1.1 christos {
9071 1.1 christos return f != $ac_func;
9072 1.1 christos ;
9073 1.1 christos return 0;
9074 1.1 christos }
9075 1.1 christos _ACEOF
9076 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9077 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 1.1 christos (eval $ac_link) 2>conftest.er1
9079 1.1 christos ac_status=$?
9080 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9081 1.1 christos rm -f conftest.er1
9082 1.1 christos cat conftest.err >&5
9083 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 1.1 christos (exit $ac_status); } &&
9085 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
9086 1.1 christos || test ! -s conftest.err'
9087 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 1.1 christos (eval $ac_try) 2>&5
9089 1.1 christos ac_status=$?
9090 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 1.1 christos (exit $ac_status); }; } &&
9092 1.1 christos { ac_try='test -s conftest$ac_exeext'
9093 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 1.1 christos (eval $ac_try) 2>&5
9095 1.1 christos ac_status=$?
9096 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 1.1 christos (exit $ac_status); }; }; then
9098 1.1 christos eval "$as_ac_var=yes"
9099 1.1 christos else
9100 1.1 christos echo "$as_me: failed program was:" >&5
9101 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9102 1.1 christos
9103 1.1 christos eval "$as_ac_var=no"
9104 1.1 christos fi
9105 1.1 christos rm -f conftest.err conftest.$ac_objext \
9106 1.1 christos conftest$ac_exeext conftest.$ac_ext
9107 1.1 christos fi
9108 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9109 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9110 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
9111 1.1 christos cat >>confdefs.h <<_ACEOF
9112 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9113 1.1 christos _ACEOF
9114 1.1 christos
9115 1.1 christos else
9116 1.1 christos case $LIBOBJS in
9117 1.1 christos "$ac_func.$ac_objext" | \
9118 1.1 christos *" $ac_func.$ac_objext" | \
9119 1.1 christos "$ac_func.$ac_objext "* | \
9120 1.1 christos *" $ac_func.$ac_objext "* ) ;;
9121 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9122 1.1 christos esac
9123 1.1 christos
9124 1.1 christos fi
9125 1.1 christos done
9126 1.1 christos
9127 1.1 christos
9128 1.1 christos # vsnprintf is in the same source file as snprintf
9129 1.1 christos
9130 1.1 christos for ac_func in vsnprintf
9131 1.1 christos do
9132 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9133 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
9134 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9135 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
9136 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9137 1.1 christos else
9138 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9139 1.1 christos /* confdefs.h. */
9140 1.1 christos _ACEOF
9141 1.1 christos cat confdefs.h >>conftest.$ac_ext
9142 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9143 1.1 christos /* end confdefs.h. */
9144 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9145 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9146 1.1 christos #define $ac_func innocuous_$ac_func
9147 1.1 christos
9148 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9149 1.1 christos which can conflict with char $ac_func (); below.
9150 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9151 1.1 christos <limits.h> exists even on freestanding compilers. */
9152 1.1 christos
9153 1.1 christos #ifdef __STDC__
9154 1.1 christos # include <limits.h>
9155 1.1 christos #else
9156 1.1 christos # include <assert.h>
9157 1.1 christos #endif
9158 1.1 christos
9159 1.1 christos #undef $ac_func
9160 1.1 christos
9161 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
9162 1.1 christos #ifdef __cplusplus
9163 1.1 christos extern "C"
9164 1.1 christos {
9165 1.1 christos #endif
9166 1.1 christos /* We use char because int might match the return type of a gcc2
9167 1.1 christos builtin and then its argument prototype would still apply. */
9168 1.1 christos char $ac_func ();
9169 1.1 christos /* The GNU C library defines this for functions which it implements
9170 1.1 christos to always fail with ENOSYS. Some functions are actually named
9171 1.1 christos something starting with __ and the normal name is an alias. */
9172 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173 1.1 christos choke me
9174 1.1 christos #else
9175 1.1 christos char (*f) () = $ac_func;
9176 1.1 christos #endif
9177 1.1 christos #ifdef __cplusplus
9178 1.1 christos }
9179 1.1 christos #endif
9180 1.1 christos
9181 1.1 christos int
9182 1.1 christos main ()
9183 1.1 christos {
9184 1.1 christos return f != $ac_func;
9185 1.1 christos ;
9186 1.1 christos return 0;
9187 1.1 christos }
9188 1.1 christos _ACEOF
9189 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9190 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 1.1 christos (eval $ac_link) 2>conftest.er1
9192 1.1 christos ac_status=$?
9193 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9194 1.1 christos rm -f conftest.er1
9195 1.1 christos cat conftest.err >&5
9196 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 1.1 christos (exit $ac_status); } &&
9198 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
9199 1.1 christos || test ! -s conftest.err'
9200 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 1.1 christos (eval $ac_try) 2>&5
9202 1.1 christos ac_status=$?
9203 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 1.1 christos (exit $ac_status); }; } &&
9205 1.1 christos { ac_try='test -s conftest$ac_exeext'
9206 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 1.1 christos (eval $ac_try) 2>&5
9208 1.1 christos ac_status=$?
9209 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 1.1 christos (exit $ac_status); }; }; then
9211 1.1 christos eval "$as_ac_var=yes"
9212 1.1 christos else
9213 1.1 christos echo "$as_me: failed program was:" >&5
9214 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9215 1.1 christos
9216 1.1 christos eval "$as_ac_var=no"
9217 1.1 christos fi
9218 1.1 christos rm -f conftest.err conftest.$ac_objext \
9219 1.1 christos conftest$ac_exeext conftest.$ac_ext
9220 1.1 christos fi
9221 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9222 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9223 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
9224 1.1 christos cat >>confdefs.h <<_ACEOF
9225 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226 1.1 christos _ACEOF
9227 1.1 christos
9228 1.1 christos else
9229 1.1 christos case $LIBOBJS in
9230 1.1 christos "snprintf.$ac_objext" | \
9231 1.1 christos *" snprintf.$ac_objext" | \
9232 1.1 christos "snprintf.$ac_objext "* | \
9233 1.1 christos *" snprintf.$ac_objext "* ) ;;
9234 1.1 christos *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
9235 1.1 christos esac
9236 1.1 christos
9237 1.1 christos fi
9238 1.1 christos done
9239 1.1 christos
9240 1.1 christos LIBS="$saved_libs"
9241 1.1 christos
9242 1.1 christos
9243 1.1 christos
9244 1.1 christos
9245 1.1 christos
9246 1.1 christos
9247 1.1 christos for ac_func in gettimeofday isatty kill rename setlocale strsep
9248 1.1 christos do
9249 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9250 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
9251 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9252 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
9253 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9254 1.1 christos else
9255 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9256 1.1 christos /* confdefs.h. */
9257 1.1 christos _ACEOF
9258 1.1 christos cat confdefs.h >>conftest.$ac_ext
9259 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9260 1.1 christos /* end confdefs.h. */
9261 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9262 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9263 1.1 christos #define $ac_func innocuous_$ac_func
9264 1.1 christos
9265 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9266 1.1 christos which can conflict with char $ac_func (); below.
9267 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9268 1.1 christos <limits.h> exists even on freestanding compilers. */
9269 1.1 christos
9270 1.1 christos #ifdef __STDC__
9271 1.1 christos # include <limits.h>
9272 1.1 christos #else
9273 1.1 christos # include <assert.h>
9274 1.1 christos #endif
9275 1.1 christos
9276 1.1 christos #undef $ac_func
9277 1.1 christos
9278 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
9279 1.1 christos #ifdef __cplusplus
9280 1.1 christos extern "C"
9281 1.1 christos {
9282 1.1 christos #endif
9283 1.1 christos /* We use char because int might match the return type of a gcc2
9284 1.1 christos builtin and then its argument prototype would still apply. */
9285 1.1 christos char $ac_func ();
9286 1.1 christos /* The GNU C library defines this for functions which it implements
9287 1.1 christos to always fail with ENOSYS. Some functions are actually named
9288 1.1 christos something starting with __ and the normal name is an alias. */
9289 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9290 1.1 christos choke me
9291 1.1 christos #else
9292 1.1 christos char (*f) () = $ac_func;
9293 1.1 christos #endif
9294 1.1 christos #ifdef __cplusplus
9295 1.1 christos }
9296 1.1 christos #endif
9297 1.1 christos
9298 1.1 christos int
9299 1.1 christos main ()
9300 1.1 christos {
9301 1.1 christos return f != $ac_func;
9302 1.1 christos ;
9303 1.1 christos return 0;
9304 1.1 christos }
9305 1.1 christos _ACEOF
9306 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9307 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 1.1 christos (eval $ac_link) 2>conftest.er1
9309 1.1 christos ac_status=$?
9310 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9311 1.1 christos rm -f conftest.er1
9312 1.1 christos cat conftest.err >&5
9313 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 1.1 christos (exit $ac_status); } &&
9315 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
9316 1.1 christos || test ! -s conftest.err'
9317 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 1.1 christos (eval $ac_try) 2>&5
9319 1.1 christos ac_status=$?
9320 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 1.1 christos (exit $ac_status); }; } &&
9322 1.1 christos { ac_try='test -s conftest$ac_exeext'
9323 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 1.1 christos (eval $ac_try) 2>&5
9325 1.1 christos ac_status=$?
9326 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 1.1 christos (exit $ac_status); }; }; then
9328 1.1 christos eval "$as_ac_var=yes"
9329 1.1 christos else
9330 1.1 christos echo "$as_me: failed program was:" >&5
9331 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9332 1.1 christos
9333 1.1 christos eval "$as_ac_var=no"
9334 1.1 christos fi
9335 1.1 christos rm -f conftest.err conftest.$ac_objext \
9336 1.1 christos conftest$ac_exeext conftest.$ac_ext
9337 1.1 christos fi
9338 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9339 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9340 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
9341 1.1 christos cat >>confdefs.h <<_ACEOF
9342 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9343 1.1 christos _ACEOF
9344 1.1 christos
9345 1.1 christos fi
9346 1.1 christos done
9347 1.1 christos
9348 1.1 christos echo "$as_me:$LINENO: checking for mkstemp" >&5
9349 1.1 christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9350 1.1 christos ac_ext=cc
9351 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9352 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9353 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9354 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9355 1.1 christos
9356 1.1 christos
9357 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9358 1.1 christos
9359 1.1 christos /* confdefs.h. */
9360 1.1 christos _ACEOF
9361 1.1 christos cat confdefs.h >>conftest.$ac_ext
9362 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9363 1.1 christos /* end confdefs.h. */
9364 1.1 christos
9365 1.1 christos
9366 1.1 christos #include <stdlib.h>
9367 1.1 christos #include <unistd.h>
9368 1.1 christos int (*f) (char *);
9369 1.1 christos
9370 1.1 christos
9371 1.1 christos int
9372 1.1 christos main ()
9373 1.1 christos {
9374 1.1 christos
9375 1.1 christos
9376 1.1 christos f = mkstemp;
9377 1.1 christos
9378 1.1 christos
9379 1.1 christos ;
9380 1.1 christos return 0;
9381 1.1 christos }
9382 1.1 christos
9383 1.1 christos _ACEOF
9384 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9385 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 1.1 christos (eval $ac_link) 2>conftest.er1
9387 1.1 christos ac_status=$?
9388 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9389 1.1 christos rm -f conftest.er1
9390 1.1 christos cat conftest.err >&5
9391 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 1.1 christos (exit $ac_status); } &&
9393 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
9394 1.1 christos || test ! -s conftest.err'
9395 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 1.1 christos (eval $ac_try) 2>&5
9397 1.1 christos ac_status=$?
9398 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 1.1 christos (exit $ac_status); }; } &&
9400 1.1 christos { ac_try='test -s conftest$ac_exeext'
9401 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 1.1 christos (eval $ac_try) 2>&5
9403 1.1 christos ac_status=$?
9404 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 1.1 christos (exit $ac_status); }; }; then
9406 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
9407 1.1 christos echo "${ECHO_T}yes" >&6
9408 1.1 christos
9409 1.1 christos cat >>confdefs.h <<\_ACEOF
9410 1.1 christos #define HAVE_MKSTEMP 1
9411 1.1 christos _ACEOF
9412 1.1 christos
9413 1.1 christos else
9414 1.1 christos echo "$as_me: failed program was:" >&5
9415 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9416 1.1 christos
9417 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9418 1.1 christos echo "${ECHO_T}no" >&6
9419 1.1 christos case $LIBOBJS in
9420 1.1 christos "mkstemp.$ac_objext" | \
9421 1.1 christos *" mkstemp.$ac_objext" | \
9422 1.1 christos "mkstemp.$ac_objext "* | \
9423 1.1 christos *" mkstemp.$ac_objext "* ) ;;
9424 1.1 christos *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
9425 1.1 christos esac
9426 1.1 christos
9427 1.1 christos fi
9428 1.1 christos rm -f conftest.err conftest.$ac_objext \
9429 1.1 christos conftest$ac_exeext conftest.$ac_ext
9430 1.1 christos ac_ext=c
9431 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9432 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9435 1.1 christos
9436 1.1 christos echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9437 1.1 christos echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9438 1.1 christos if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9439 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9440 1.1 christos else
9441 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9442 1.1 christos /* confdefs.h. */
9443 1.1 christos _ACEOF
9444 1.1 christos cat confdefs.h >>conftest.$ac_ext
9445 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9446 1.1 christos /* end confdefs.h. */
9447 1.1 christos $ac_includes_default
9448 1.1 christos int
9449 1.1 christos main ()
9450 1.1 christos {
9451 1.1 christos #ifndef sys_siglist
9452 1.1 christos char *p = (char *) sys_siglist;
9453 1.1 christos #endif
9454 1.1 christos
9455 1.1 christos ;
9456 1.1 christos return 0;
9457 1.1 christos }
9458 1.1 christos _ACEOF
9459 1.1 christos rm -f conftest.$ac_objext
9460 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 1.1 christos (eval $ac_compile) 2>conftest.er1
9462 1.1 christos ac_status=$?
9463 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9464 1.1 christos rm -f conftest.er1
9465 1.1 christos cat conftest.err >&5
9466 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 1.1 christos (exit $ac_status); } &&
9468 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
9469 1.1 christos || test ! -s conftest.err'
9470 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 1.1 christos (eval $ac_try) 2>&5
9472 1.1 christos ac_status=$?
9473 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 1.1 christos (exit $ac_status); }; } &&
9475 1.1 christos { ac_try='test -s conftest.$ac_objext'
9476 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 1.1 christos (eval $ac_try) 2>&5
9478 1.1 christos ac_status=$?
9479 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 1.1 christos (exit $ac_status); }; }; then
9481 1.1 christos ac_cv_have_decl_sys_siglist=yes
9482 1.1 christos else
9483 1.1 christos echo "$as_me: failed program was:" >&5
9484 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9485 1.1 christos
9486 1.1 christos ac_cv_have_decl_sys_siglist=no
9487 1.1 christos fi
9488 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9489 1.1 christos fi
9490 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9491 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9492 1.1 christos if test $ac_cv_have_decl_sys_siglist = yes; then
9493 1.1 christos
9494 1.1 christos cat >>confdefs.h <<_ACEOF
9495 1.1 christos #define HAVE_DECL_SYS_SIGLIST 1
9496 1.1 christos _ACEOF
9497 1.1 christos
9498 1.1 christos
9499 1.1 christos else
9500 1.1 christos cat >>confdefs.h <<_ACEOF
9501 1.1 christos #define HAVE_DECL_SYS_SIGLIST 0
9502 1.1 christos _ACEOF
9503 1.1 christos
9504 1.1 christos
9505 1.1 christos fi
9506 1.1 christos
9507 1.1 christos
9508 1.1 christos
9509 1.1 christos # checks for compiler characteristics
9510 1.1 christos ac_ext=cc
9511 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9512 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9513 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9514 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9515 1.1 christos
9516 1.1 christos echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9517 1.1 christos echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9518 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9519 1.1 christos
9520 1.1 christos /* confdefs.h. */
9521 1.1 christos _ACEOF
9522 1.1 christos cat confdefs.h >>conftest.$ac_ext
9523 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9524 1.1 christos /* end confdefs.h. */
9525 1.1 christos
9526 1.1 christos int
9527 1.1 christos main ()
9528 1.1 christos {
9529 1.1 christos
9530 1.1 christos
9531 1.1 christos char *p = new char[5];
9532 1.1 christos delete [] p;
9533 1.1 christos
9534 1.1 christos
9535 1.1 christos ;
9536 1.1 christos return 0;
9537 1.1 christos }
9538 1.1 christos
9539 1.1 christos _ACEOF
9540 1.1 christos rm -f conftest.$ac_objext
9541 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542 1.1 christos (eval $ac_compile) 2>conftest.er1
9543 1.1 christos ac_status=$?
9544 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9545 1.1 christos rm -f conftest.er1
9546 1.1 christos cat conftest.err >&5
9547 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 1.1 christos (exit $ac_status); } &&
9549 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
9550 1.1 christos || test ! -s conftest.err'
9551 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 1.1 christos (eval $ac_try) 2>&5
9553 1.1 christos ac_status=$?
9554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 1.1 christos (exit $ac_status); }; } &&
9556 1.1 christos { ac_try='test -s conftest.$ac_objext'
9557 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 1.1 christos (eval $ac_try) 2>&5
9559 1.1 christos ac_status=$?
9560 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 1.1 christos (exit $ac_status); }; }; then
9562 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
9563 1.1 christos echo "${ECHO_T}yes" >&6
9564 1.1 christos else
9565 1.1 christos echo "$as_me: failed program was:" >&5
9566 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9567 1.1 christos
9568 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9569 1.1 christos echo "${ECHO_T}no" >&6
9570 1.1 christos
9571 1.1 christos cat >>confdefs.h <<\_ACEOF
9572 1.1 christos #define ARRAY_DELETE_NEEDS_SIZE 1
9573 1.1 christos _ACEOF
9574 1.1 christos
9575 1.1 christos fi
9576 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9577 1.1 christos ac_ext=c
9578 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9579 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9582 1.1 christos
9583 1.1 christos ac_ext=cc
9584 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9585 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9588 1.1 christos
9589 1.1 christos echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9590 1.1 christos echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9591 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9592 1.1 christos
9593 1.1 christos /* confdefs.h. */
9594 1.1 christos _ACEOF
9595 1.1 christos cat confdefs.h >>conftest.$ac_ext
9596 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9597 1.1 christos /* end confdefs.h. */
9598 1.1 christos
9599 1.1 christos
9600 1.1 christos #define name2(a, b) a/**/b
9601 1.1 christos
9602 1.1 christos
9603 1.1 christos int
9604 1.1 christos main ()
9605 1.1 christos {
9606 1.1 christos
9607 1.1 christos
9608 1.1 christos int name2(foo, bar);
9609 1.1 christos
9610 1.1 christos
9611 1.1 christos ;
9612 1.1 christos return 0;
9613 1.1 christos }
9614 1.1 christos
9615 1.1 christos _ACEOF
9616 1.1 christos rm -f conftest.$ac_objext
9617 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9618 1.1 christos (eval $ac_compile) 2>conftest.er1
9619 1.1 christos ac_status=$?
9620 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9621 1.1 christos rm -f conftest.er1
9622 1.1 christos cat conftest.err >&5
9623 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 1.1 christos (exit $ac_status); } &&
9625 1.1 christos { ac_try='test -z "$ac_cxx_werror_flag"
9626 1.1 christos || test ! -s conftest.err'
9627 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 1.1 christos (eval $ac_try) 2>&5
9629 1.1 christos ac_status=$?
9630 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 1.1 christos (exit $ac_status); }; } &&
9632 1.1 christos { ac_try='test -s conftest.$ac_objext'
9633 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 1.1 christos (eval $ac_try) 2>&5
9635 1.1 christos ac_status=$?
9636 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 1.1 christos (exit $ac_status); }; }; then
9638 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
9639 1.1 christos echo "${ECHO_T}yes" >&6
9640 1.1 christos
9641 1.1 christos cat >>confdefs.h <<\_ACEOF
9642 1.1 christos #define TRADITIONAL_CPP 1
9643 1.1 christos _ACEOF
9644 1.1 christos
9645 1.1 christos else
9646 1.1 christos echo "$as_me: failed program was:" >&5
9647 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9648 1.1 christos
9649 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9650 1.1 christos echo "${ECHO_T}no" >&6
9651 1.1 christos fi
9652 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653 1.1 christos ac_ext=c
9654 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9655 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658 1.1 christos
9659 1.1 christos
9660 1.1 christos # checks for operating system services
9661 1.1 christos echo "$as_me:$LINENO: checking w_coredump" >&5
9662 1.1 christos echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9663 1.1 christos if test "$cross_compiling" = yes; then
9664 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9665 1.1 christos echo "${ECHO_T}no" >&6
9666 1.1 christos else
9667 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9668 1.1 christos
9669 1.1 christos /* confdefs.h. */
9670 1.1 christos _ACEOF
9671 1.1 christos cat confdefs.h >>conftest.$ac_ext
9672 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9673 1.1 christos /* end confdefs.h. */
9674 1.1 christos
9675 1.1 christos
9676 1.1 christos #include <sys/types.h>
9677 1.1 christos #include <sys/wait.h>
9678 1.1 christos
9679 1.1 christos
9680 1.1 christos int
9681 1.1 christos main ()
9682 1.1 christos {
9683 1.1 christos
9684 1.1 christos
9685 1.1 christos main()
9686 1.1 christos {
9687 1.1 christos #ifdef WCOREFLAG
9688 1.1 christos exit(1);
9689 1.1 christos #else
9690 1.1 christos int i = 0;
9691 1.1 christos ((union wait *)&i)->w_coredump = 1;
9692 1.1 christos exit(i != 0200);
9693 1.1 christos #endif
9694 1.1 christos }
9695 1.1 christos
9696 1.1 christos
9697 1.1 christos ;
9698 1.1 christos return 0;
9699 1.1 christos }
9700 1.1 christos
9701 1.1 christos _ACEOF
9702 1.1 christos rm -f conftest$ac_exeext
9703 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 1.1 christos (eval $ac_link) 2>&5
9705 1.1 christos ac_status=$?
9706 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9708 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 1.1 christos (eval $ac_try) 2>&5
9710 1.1 christos ac_status=$?
9711 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 1.1 christos (exit $ac_status); }; }; then
9713 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
9714 1.1 christos echo "${ECHO_T}yes" >&6
9715 1.1 christos
9716 1.1 christos cat >>confdefs.h <<\_ACEOF
9717 1.1 christos #define WCOREFLAG 0200
9718 1.1 christos _ACEOF
9719 1.1 christos
9720 1.1 christos else
9721 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
9722 1.1 christos echo "$as_me: failed program was:" >&5
9723 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9724 1.1 christos
9725 1.1 christos ( exit $ac_status )
9726 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9727 1.1 christos echo "${ECHO_T}no" >&6
9728 1.1 christos fi
9729 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9730 1.1 christos fi
9731 1.1 christos
9732 1.1 christos # other random stuff
9733 1.1 christos echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9734 1.1 christos echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9735 1.1 christos test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9736 1.1 christos echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9737 1.1 christos echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9738 1.1 christos
9739 1.1 christos echo "$as_me:$LINENO: checking default paper size" >&5
9740 1.1 christos echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9741 1.1 christos groff_prefix=$prefix
9742 1.1 christos test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9743 1.1 christos if test -z "$PAGE"; then
9744 1.1 christos descfile=
9745 1.1 christos if test -r $groff_prefix/share/groff/font/devps/DESC; then
9746 1.1 christos descfile=$groff_prefix/share/groff/font/devps/DESC
9747 1.1 christos elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9748 1.1 christos descfile=$groff_prefix/lib/groff/font/devps/DESC
9749 1.1 christos else
9750 1.1 christos for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9751 1.1 christos if test -r $f; then
9752 1.1 christos descfile=$f
9753 1.1 christos break
9754 1.1 christos fi
9755 1.1 christos done
9756 1.1 christos fi
9757 1.1 christos
9758 1.1 christos if test -n "$descfile"; then
9759 1.1 christos if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
9760 1.1 christos PAGE=A4
9761 1.1 christos elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
9762 1.1 christos PAGE=A4
9763 1.1 christos fi
9764 1.1 christos fi
9765 1.1 christos fi
9766 1.1 christos
9767 1.1 christos if test -z "$PAGE"; then
9768 1.1 christos dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9769 1.1 christos /etc/resolv.conf 2>/dev/null`
9770 1.1 christos if test -z "$dom"; then
9771 1.1 christos dom=`(domainname) 2>/dev/null | tr -d '+'`
9772 1.1 christos if test -z "$dom" \
9773 1.1 christos || test "$dom" = '(none)'; then
9774 1.1 christos dom=`(hostname) 2>/dev/null | grep '\.'`
9775 1.1 christos fi
9776 1.1 christos fi
9777 1.1 christos # If the top-level domain is two letters and it's not `us' or `ca'
9778 1.1 christos # then they probably use A4 paper.
9779 1.1 christos case "$dom" in
9780 1.1 christos *.[Uu][Ss]|*.[Cc][Aa])
9781 1.1 christos ;;
9782 1.1 christos *.[A-Za-z][A-Za-z])
9783 1.1 christos PAGE=A4 ;;
9784 1.1 christos esac
9785 1.1 christos fi
9786 1.1 christos
9787 1.1 christos test -n "$PAGE" || PAGE=letter
9788 1.1 christos if test "x$PAGE" = "xA4"; then
9789 1.1 christos
9790 1.1 christos cat >>confdefs.h <<\_ACEOF
9791 1.1 christos #define PAGEA4 1
9792 1.1 christos _ACEOF
9793 1.1 christos
9794 1.1 christos fi
9795 1.1 christos echo "$as_me:$LINENO: result: $PAGE" >&5
9796 1.1 christos echo "${ECHO_T}$PAGE" >&6
9797 1.1 christos
9798 1.1 christos echo "$as_me:$LINENO: checking for existing troff installation" >&5
9799 1.1 christos echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9800 1.1 christos if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9801 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
9802 1.1 christos echo "${ECHO_T}yes" >&6
9803 1.1 christos g=g
9804 1.1 christos else
9805 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9806 1.1 christos echo "${ECHO_T}no" >&6
9807 1.1 christos g=
9808 1.1 christos fi
9809 1.1 christos
9810 1.1 christos echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9811 1.1 christos echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9812 1.1 christos sys_tmac_prefix=
9813 1.1 christos sys_tmac_file_prefix=
9814 1.1 christos for d in /usr/share/lib/tmac /usr/lib/tmac; do
9815 1.1 christos for t in "" tmac.; do
9816 1.1 christos for m in an s m; do
9817 1.1 christos f=$d/$t$m
9818 1.1 christos if test -z "$sys_tmac_prefix" \
9819 1.1 christos && test -f $f \
9820 1.1 christos && grep '^\.if' $f >/dev/null 2>&1; then
9821 1.1 christos sys_tmac_prefix=$d/$t
9822 1.1 christos sys_tmac_file_prefix=$t
9823 1.1 christos fi
9824 1.1 christos done
9825 1.1 christos done
9826 1.1 christos done
9827 1.1 christos echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9828 1.1 christos echo "${ECHO_T}$sys_tmac_prefix" >&6
9829 1.1 christos
9830 1.1 christos
9831 1.1 christos echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9832 1.1 christos echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9833 1.1 christos tmac_wrap=
9834 1.1 christos if test "x$sys_tmac_file_prefix" = "xtmac."; then
9835 1.1 christos for f in $sys_tmac_prefix*; do
9836 1.1 christos suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9837 1.1 christos case "$suff" in
9838 1.1 christos e)
9839 1.1 christos ;;
9840 1.1 christos *)
9841 1.1 christos grep "Copyright.*Free Software Foundation" $f >/dev/null \
9842 1.1 christos || tmac_wrap="$tmac_wrap $suff" ;;
9843 1.1 christos esac
9844 1.1 christos done
9845 1.1 christos elif test -n "$sys_tmac_prefix"; then
9846 1.1 christos files=`echo $sys_tmac_prefix*`
9847 1.1 christos grep "\\.so" $files >conftest.sol
9848 1.1 christos for f in $files; do
9849 1.1 christos case "$f" in
9850 1.1 christos ${sys_tmac_prefix}e)
9851 1.1 christos ;;
9852 1.1 christos *.me)
9853 1.1 christos ;;
9854 1.1 christos */ms.*)
9855 1.1 christos ;;
9856 1.1 christos *)
9857 1.1 christos b=`basename $f`
9858 1.1 christos if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9859 1.1 christos || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9860 1.1 christos :
9861 1.1 christos else
9862 1.1 christos suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9863 1.1 christos case "$suff" in
9864 1.1 christos tmac.*)
9865 1.1 christos ;;
9866 1.1 christos *)
9867 1.1 christos tmac_wrap="$tmac_wrap $suff" ;;
9868 1.1 christos esac
9869 1.1 christos fi
9870 1.1 christos esac
9871 1.1 christos done
9872 1.1 christos rm -f conftest.sol
9873 1.1 christos fi
9874 1.1 christos echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9875 1.1 christos echo "${ECHO_T}$tmac_wrap" >&6
9876 1.1 christos
9877 1.1 christos echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9878 1.1 christos echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9879 1.1 christos cp ${srcdir}/src/include/nonposix.h conftest.h
9880 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9881 1.1 christos
9882 1.1 christos /* confdefs.h. */
9883 1.1 christos _ACEOF
9884 1.1 christos cat confdefs.h >>conftest.$ac_ext
9885 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9886 1.1 christos /* end confdefs.h. */
9887 1.1 christos
9888 1.1 christos
9889 1.1 christos #include <ctype.h>
9890 1.1 christos #include "conftest.h"
9891 1.1 christos
9892 1.1 christos
9893 1.1 christos int
9894 1.1 christos main ()
9895 1.1 christos {
9896 1.1 christos
9897 1.1 christos
9898 1.1 christos #if PATH_SEP_CHAR == ';'
9899 1.1 christos make an error "Path separator is ';'"
9900 1.1 christos #endif
9901 1.1 christos
9902 1.1 christos
9903 1.1 christos ;
9904 1.1 christos return 0;
9905 1.1 christos }
9906 1.1 christos
9907 1.1 christos _ACEOF
9908 1.1 christos rm -f conftest.$ac_objext
9909 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 1.1 christos (eval $ac_compile) 2>conftest.er1
9911 1.1 christos ac_status=$?
9912 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9913 1.1 christos rm -f conftest.er1
9914 1.1 christos cat conftest.err >&5
9915 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 1.1 christos (exit $ac_status); } &&
9917 1.1 christos { ac_try='test -z "$ac_c_werror_flag"
9918 1.1 christos || test ! -s conftest.err'
9919 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 1.1 christos (eval $ac_try) 2>&5
9921 1.1 christos ac_status=$?
9922 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 1.1 christos (exit $ac_status); }; } &&
9924 1.1 christos { ac_try='test -s conftest.$ac_objext'
9925 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 1.1 christos (eval $ac_try) 2>&5
9927 1.1 christos ac_status=$?
9928 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 1.1 christos (exit $ac_status); }; }; then
9930 1.1 christos GROFF_PATH_SEPARATOR=":"
9931 1.1 christos else
9932 1.1 christos echo "$as_me: failed program was:" >&5
9933 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9934 1.1 christos
9935 1.1 christos GROFF_PATH_SEPARATOR=";"
9936 1.1 christos fi
9937 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9938 1.1 christos echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9939 1.1 christos echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9940 1.1 christos
9941 1.1 christos
9942 1.1 christos # Check whether --with-alt-gs or --without-alt-gs was given.
9943 1.1 christos if test "${with_alt_gs+set}" = set; then
9944 1.1 christos withval="$with_alt_gs"
9945 1.1 christos ALT_GHOSTSCRIPT_PROGS="$withval"
9946 1.1 christos else
9947 1.1 christos ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
9948 1.1 christos fi;
9949 1.1 christos
9950 1.1 christos
9951 1.1 christos
9952 1.1 christos # Check whether --with-gs or --without-gs was given.
9953 1.1 christos if test "${with_gs+set}" = set; then
9954 1.1 christos withval="$with_gs"
9955 1.1 christos GHOSTSCRIPT=$withval
9956 1.1 christos else
9957 1.1 christos if test -n "$ac_tool_prefix"; then
9958 1.1 christos for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9959 1.1 christos do
9960 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9961 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9962 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
9963 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964 1.1 christos if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9965 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9966 1.1 christos else
9967 1.1 christos if test -n "$GHOSTSCRIPT"; then
9968 1.1 christos ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9969 1.1 christos else
9970 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 1.1 christos for as_dir in $PATH
9972 1.1 christos do
9973 1.1 christos IFS=$as_save_IFS
9974 1.1 christos test -z "$as_dir" && as_dir=.
9975 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
9976 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977 1.1 christos ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
9978 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 1.1 christos break 2
9980 1.1 christos fi
9981 1.1 christos done
9982 1.1 christos done
9983 1.1 christos
9984 1.1 christos fi
9985 1.1 christos fi
9986 1.1 christos GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9987 1.1 christos if test -n "$GHOSTSCRIPT"; then
9988 1.1 christos echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9989 1.1 christos echo "${ECHO_T}$GHOSTSCRIPT" >&6
9990 1.1 christos else
9991 1.1 christos echo "$as_me:$LINENO: result: no" >&5
9992 1.1 christos echo "${ECHO_T}no" >&6
9993 1.1 christos fi
9994 1.1 christos
9995 1.1 christos test -n "$GHOSTSCRIPT" && break
9996 1.1 christos done
9997 1.1 christos fi
9998 1.1 christos if test -z "$GHOSTSCRIPT"; then
9999 1.1 christos ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
10000 1.1 christos for ac_prog in $ALT_GHOSTSCRIPT_PROGS
10001 1.1 christos do
10002 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
10003 1.1 christos set dummy $ac_prog; ac_word=$2
10004 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10005 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10006 1.1 christos if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
10007 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10008 1.1 christos else
10009 1.1 christos if test -n "$ac_ct_GHOSTSCRIPT"; then
10010 1.1 christos ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
10011 1.1 christos else
10012 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 1.1 christos for as_dir in $PATH
10014 1.1 christos do
10015 1.1 christos IFS=$as_save_IFS
10016 1.1 christos test -z "$as_dir" && as_dir=.
10017 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10018 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10019 1.1 christos ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
10020 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 1.1 christos break 2
10022 1.1 christos fi
10023 1.1 christos done
10024 1.1 christos done
10025 1.1 christos
10026 1.1 christos fi
10027 1.1 christos fi
10028 1.1 christos ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10029 1.1 christos if test -n "$ac_ct_GHOSTSCRIPT"; then
10030 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
10031 1.1 christos echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
10032 1.1 christos else
10033 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10034 1.1 christos echo "${ECHO_T}no" >&6
10035 1.1 christos fi
10036 1.1 christos
10037 1.1 christos test -n "$ac_ct_GHOSTSCRIPT" && break
10038 1.1 christos done
10039 1.1 christos
10040 1.1 christos if test "x$ac_ct_GHOSTSCRIPT" = x; then
10041 1.1 christos GHOSTSCRIPT="missing"
10042 1.1 christos else
10043 1.1 christos if test "$build" != "$host"; then
10044 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10045 1.1 christos whose name does not start with the host triplet. If you think this
10046 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
10047 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10048 1.1 christos whose name does not start with the host triplet. If you think this
10049 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
10050 1.1 christos fi
10051 1.1 christos GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
10052 1.1 christos fi
10053 1.1 christos fi
10054 1.1 christos
10055 1.1 christos fi;
10056 1.1 christos test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
10057 1.1 christos
10058 1.1 christos make_html=html
10059 1.1 christos make_install_html=install_html
10060 1.1 christos
10061 1.1 christos missing=
10062 1.1 christos # Extract the first word of "pnmcut", so it can be a program name with args.
10063 1.1 christos set dummy pnmcut; ac_word=$2
10064 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10065 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10066 1.1 christos if test "${ac_cv_prog_pnmcut+set}" = set; then
10067 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10068 1.1 christos else
10069 1.1 christos if test -n "$pnmcut"; then
10070 1.1 christos ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
10071 1.1 christos else
10072 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 1.1 christos for as_dir in $PATH
10074 1.1 christos do
10075 1.1 christos IFS=$as_save_IFS
10076 1.1 christos test -z "$as_dir" && as_dir=.
10077 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10078 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10079 1.1 christos ac_cv_prog_pnmcut="found"
10080 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 1.1 christos break 2
10082 1.1 christos fi
10083 1.1 christos done
10084 1.1 christos done
10085 1.1 christos
10086 1.1 christos test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
10087 1.1 christos fi
10088 1.1 christos fi
10089 1.1 christos pnmcut=$ac_cv_prog_pnmcut
10090 1.1 christos if test -n "$pnmcut"; then
10091 1.1 christos echo "$as_me:$LINENO: result: $pnmcut" >&5
10092 1.1 christos echo "${ECHO_T}$pnmcut" >&6
10093 1.1 christos else
10094 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10095 1.1 christos echo "${ECHO_T}no" >&6
10096 1.1 christos fi
10097 1.1 christos
10098 1.1 christos if test $pnmcut = missing; then
10099 1.1 christos missing="$missing \`pnmcut'"
10100 1.1 christos fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10101 1.1 christos set dummy pnmcrop; ac_word=$2
10102 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10103 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10104 1.1 christos if test "${ac_cv_prog_pnmcrop+set}" = set; then
10105 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10106 1.1 christos else
10107 1.1 christos if test -n "$pnmcrop"; then
10108 1.1 christos ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
10109 1.1 christos else
10110 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 1.1 christos for as_dir in $PATH
10112 1.1 christos do
10113 1.1 christos IFS=$as_save_IFS
10114 1.1 christos test -z "$as_dir" && as_dir=.
10115 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10116 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117 1.1 christos ac_cv_prog_pnmcrop="found"
10118 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 1.1 christos break 2
10120 1.1 christos fi
10121 1.1 christos done
10122 1.1 christos done
10123 1.1 christos
10124 1.1 christos test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
10125 1.1 christos fi
10126 1.1 christos fi
10127 1.1 christos pnmcrop=$ac_cv_prog_pnmcrop
10128 1.1 christos if test -n "$pnmcrop"; then
10129 1.1 christos echo "$as_me:$LINENO: result: $pnmcrop" >&5
10130 1.1 christos echo "${ECHO_T}$pnmcrop" >&6
10131 1.1 christos else
10132 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10133 1.1 christos echo "${ECHO_T}no" >&6
10134 1.1 christos fi
10135 1.1 christos
10136 1.1 christos if test $pnmcrop = missing; then
10137 1.1 christos missing="$missing \`pnmcrop'"
10138 1.1 christos fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10139 1.1 christos set dummy pnmtopng; ac_word=$2
10140 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10141 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10142 1.1 christos if test "${ac_cv_prog_pnmtopng+set}" = set; then
10143 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10144 1.1 christos else
10145 1.1 christos if test -n "$pnmtopng"; then
10146 1.1 christos ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
10147 1.1 christos else
10148 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 1.1 christos for as_dir in $PATH
10150 1.1 christos do
10151 1.1 christos IFS=$as_save_IFS
10152 1.1 christos test -z "$as_dir" && as_dir=.
10153 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10154 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10155 1.1 christos ac_cv_prog_pnmtopng="found"
10156 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 1.1 christos break 2
10158 1.1 christos fi
10159 1.1 christos done
10160 1.1 christos done
10161 1.1 christos
10162 1.1 christos test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
10163 1.1 christos fi
10164 1.1 christos fi
10165 1.1 christos pnmtopng=$ac_cv_prog_pnmtopng
10166 1.1 christos if test -n "$pnmtopng"; then
10167 1.1 christos echo "$as_me:$LINENO: result: $pnmtopng" >&5
10168 1.1 christos echo "${ECHO_T}$pnmtopng" >&6
10169 1.1 christos else
10170 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10171 1.1 christos echo "${ECHO_T}no" >&6
10172 1.1 christos fi
10173 1.1 christos
10174 1.1 christos if test $pnmtopng = missing; then
10175 1.1 christos missing="$missing \`pnmtopng'"
10176 1.1 christos fi;# Extract the first word of "psselect", so it can be a program name with args.
10177 1.1 christos set dummy psselect; ac_word=$2
10178 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180 1.1 christos if test "${ac_cv_prog_psselect+set}" = set; then
10181 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10182 1.1 christos else
10183 1.1 christos if test -n "$psselect"; then
10184 1.1 christos ac_cv_prog_psselect="$psselect" # Let the user override the test.
10185 1.1 christos else
10186 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 1.1 christos for as_dir in $PATH
10188 1.1 christos do
10189 1.1 christos IFS=$as_save_IFS
10190 1.1 christos test -z "$as_dir" && as_dir=.
10191 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10192 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 1.1 christos ac_cv_prog_psselect="found"
10194 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 1.1 christos break 2
10196 1.1 christos fi
10197 1.1 christos done
10198 1.1 christos done
10199 1.1 christos
10200 1.1 christos test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
10201 1.1 christos fi
10202 1.1 christos fi
10203 1.1 christos psselect=$ac_cv_prog_psselect
10204 1.1 christos if test -n "$psselect"; then
10205 1.1 christos echo "$as_me:$LINENO: result: $psselect" >&5
10206 1.1 christos echo "${ECHO_T}$psselect" >&6
10207 1.1 christos else
10208 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10209 1.1 christos echo "${ECHO_T}no" >&6
10210 1.1 christos fi
10211 1.1 christos
10212 1.1 christos if test $psselect = missing; then
10213 1.1 christos missing="$missing \`psselect'"
10214 1.1 christos fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10215 1.1 christos set dummy pnmtops; ac_word=$2
10216 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218 1.1 christos if test "${ac_cv_prog_pnmtops+set}" = set; then
10219 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10220 1.1 christos else
10221 1.1 christos if test -n "$pnmtops"; then
10222 1.1 christos ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
10223 1.1 christos else
10224 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 1.1 christos for as_dir in $PATH
10226 1.1 christos do
10227 1.1 christos IFS=$as_save_IFS
10228 1.1 christos test -z "$as_dir" && as_dir=.
10229 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10230 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 1.1 christos ac_cv_prog_pnmtops="found"
10232 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 1.1 christos break 2
10234 1.1 christos fi
10235 1.1 christos done
10236 1.1 christos done
10237 1.1 christos
10238 1.1 christos test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
10239 1.1 christos fi
10240 1.1 christos fi
10241 1.1 christos pnmtops=$ac_cv_prog_pnmtops
10242 1.1 christos if test -n "$pnmtops"; then
10243 1.1 christos echo "$as_me:$LINENO: result: $pnmtops" >&5
10244 1.1 christos echo "${ECHO_T}$pnmtops" >&6
10245 1.1 christos else
10246 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10247 1.1 christos echo "${ECHO_T}no" >&6
10248 1.1 christos fi
10249 1.1 christos
10250 1.1 christos if test $pnmtops = missing; then
10251 1.1 christos missing="$missing \`pnmtops'"
10252 1.1 christos fi;
10253 1.1 christos
10254 1.1 christos test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
10255 1.1 christos
10256 1.1 christos if test -n "$missing"; then
10257 1.1 christos plural=`set $missing; test $# -gt 1 && echo s`
10258 1.1 christos missing=`set $missing
10259 1.1 christos missing=""
10260 1.1 christos while test $# -gt 0
10261 1.1 christos do
10262 1.1 christos case $# in
10263 1.1 christos 1) missing="$missing$1" ;;
10264 1.1 christos 2) missing="$missing$1 and " ;;
10265 1.1 christos *) missing="$missing$1, " ;;
10266 1.1 christos esac
10267 1.1 christos shift
10268 1.1 christos done
10269 1.1 christos echo $missing`
10270 1.1 christos
10271 1.1 christos make_html=
10272 1.1 christos make_install_html=
10273 1.1 christos
10274 1.1 christos { echo "$as_me:$LINENO: WARNING: missing program$plural:
10275 1.1 christos
10276 1.1 christos The program$plural
10277 1.1 christos $missing
10278 1.1 christos cannot be found in the PATH.
10279 1.1 christos Consequently, groff's HTML backend (grohtml) will not work properly;
10280 1.1 christos therefore, it will neither be possible to prepare, nor to install,
10281 1.1 christos documentation in HTML format.
10282 1.1 christos " >&5
10283 1.1 christos echo "$as_me: WARNING: missing program$plural:
10284 1.1 christos
10285 1.1 christos The program$plural
10286 1.1 christos $missing
10287 1.1 christos cannot be found in the PATH.
10288 1.1 christos Consequently, groff's HTML backend (grohtml) will not work properly;
10289 1.1 christos therefore, it will neither be possible to prepare, nor to install,
10290 1.1 christos documentation in HTML format.
10291 1.1 christos " >&2;}
10292 1.1 christos fi
10293 1.1 christos
10294 1.1 christos
10295 1.1 christos
10296 1.1 christos
10297 1.1 christos # Check whether --with-alt-awk or --without-alt-awk was given.
10298 1.1 christos if test "${with_alt_awk+set}" = set; then
10299 1.1 christos withval="$with_alt_awk"
10300 1.1 christos ALT_AWK_PROGS="$withval"
10301 1.1 christos else
10302 1.1 christos ALT_AWK_PROGS="gawk mawk nawk awk"
10303 1.1 christos fi;
10304 1.1 christos
10305 1.1 christos
10306 1.1 christos
10307 1.1 christos # Check whether --with-awk or --without-awk was given.
10308 1.1 christos if test "${with_awk+set}" = set; then
10309 1.1 christos withval="$with_awk"
10310 1.1 christos AWK=$withval
10311 1.1 christos else
10312 1.1 christos if test -n "$ac_tool_prefix"; then
10313 1.1 christos for ac_prog in $ALT_AWK_PROGS
10314 1.1 christos do
10315 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10316 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10317 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10318 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10319 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then
10320 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10321 1.1 christos else
10322 1.1 christos if test -n "$AWK"; then
10323 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test.
10324 1.1 christos else
10325 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 1.1 christos for as_dir in $PATH
10327 1.1 christos do
10328 1.1 christos IFS=$as_save_IFS
10329 1.1 christos test -z "$as_dir" && as_dir=.
10330 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10331 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 1.1 christos ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
10333 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 1.1 christos break 2
10335 1.1 christos fi
10336 1.1 christos done
10337 1.1 christos done
10338 1.1 christos
10339 1.1 christos fi
10340 1.1 christos fi
10341 1.1 christos AWK=$ac_cv_prog_AWK
10342 1.1 christos if test -n "$AWK"; then
10343 1.1 christos echo "$as_me:$LINENO: result: $AWK" >&5
10344 1.1 christos echo "${ECHO_T}$AWK" >&6
10345 1.1 christos else
10346 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10347 1.1 christos echo "${ECHO_T}no" >&6
10348 1.1 christos fi
10349 1.1 christos
10350 1.1 christos test -n "$AWK" && break
10351 1.1 christos done
10352 1.1 christos fi
10353 1.1 christos if test -z "$AWK"; then
10354 1.1 christos ac_ct_AWK=$AWK
10355 1.1 christos for ac_prog in $ALT_AWK_PROGS
10356 1.1 christos do
10357 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
10358 1.1 christos set dummy $ac_prog; ac_word=$2
10359 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361 1.1 christos if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
10362 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10363 1.1 christos else
10364 1.1 christos if test -n "$ac_ct_AWK"; then
10365 1.1 christos ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
10366 1.1 christos else
10367 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 1.1 christos for as_dir in $PATH
10369 1.1 christos do
10370 1.1 christos IFS=$as_save_IFS
10371 1.1 christos test -z "$as_dir" && as_dir=.
10372 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
10373 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 1.1 christos ac_cv_prog_ac_ct_AWK="$ac_prog"
10375 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 1.1 christos break 2
10377 1.1 christos fi
10378 1.1 christos done
10379 1.1 christos done
10380 1.1 christos
10381 1.1 christos fi
10382 1.1 christos fi
10383 1.1 christos ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
10384 1.1 christos if test -n "$ac_ct_AWK"; then
10385 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
10386 1.1 christos echo "${ECHO_T}$ac_ct_AWK" >&6
10387 1.1 christos else
10388 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10389 1.1 christos echo "${ECHO_T}no" >&6
10390 1.1 christos fi
10391 1.1 christos
10392 1.1 christos test -n "$ac_ct_AWK" && break
10393 1.1 christos done
10394 1.1 christos
10395 1.1 christos if test "x$ac_ct_AWK" = x; then
10396 1.1 christos AWK="missing"
10397 1.1 christos else
10398 1.1 christos if test "$build" != "$host"; then
10399 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10400 1.1 christos whose name does not start with the host triplet. If you think this
10401 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
10402 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10403 1.1 christos whose name does not start with the host triplet. If you think this
10404 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
10405 1.1 christos fi
10406 1.1 christos AWK=$ac_ct_AWK
10407 1.1 christos fi
10408 1.1 christos fi
10409 1.1 christos
10410 1.1 christos fi;
10411 1.1 christos test "$AWK" = "no" && AWK=missing
10412 1.1 christos
10413 1.1 christos
10414 1.1 christos
10415 1.1 christos make_pdfdoc=pdfdoc
10416 1.1 christos make_install_pdfdoc=install_pdfdoc
10417 1.1 christos
10418 1.1 christos missing=""
10419 1.1 christos test "$AWK" = missing && missing="\`awk'"
10420 1.1 christos test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
10421 1.1 christos if test -n "$missing"; then
10422 1.1 christos plural=`set $missing; test $# -eq 2 && echo s`
10423 1.1 christos test x$plural = xs \
10424 1.1 christos && missing=`set $missing; echo "$1 and $2"` \
10425 1.1 christos || missing=`echo $missing`
10426 1.1 christos
10427 1.1 christos make_pdfdoc=
10428 1.1 christos make_install_pdfdoc=
10429 1.1 christos
10430 1.1 christos { echo "$as_me:$LINENO: WARNING: missing program$plural:
10431 1.1 christos
10432 1.1 christos The program$plural $missing cannot be found in the PATH.
10433 1.1 christos Consequently, groff's PDF formatter (pdfroff) will not work properly;
10434 1.1 christos therefore, it will neither be possible to prepare, nor to install,
10435 1.1 christos documentation in PDF format.
10436 1.1 christos " >&5
10437 1.1 christos echo "$as_me: WARNING: missing program$plural:
10438 1.1 christos
10439 1.1 christos The program$plural $missing cannot be found in the PATH.
10440 1.1 christos Consequently, groff's PDF formatter (pdfroff) will not work properly;
10441 1.1 christos therefore, it will neither be possible to prepare, nor to install,
10442 1.1 christos documentation in PDF format.
10443 1.1 christos " >&2;}
10444 1.1 christos fi
10445 1.1 christos
10446 1.1 christos
10447 1.1 christos
10448 1.1 christos echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10449 1.1 christos echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10450 1.1 christos if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
10451 1.1 christos echo "$as_me:$LINENO: result: yes" >&5
10452 1.1 christos echo "${ECHO_T}yes" >&6
10453 1.1 christos pnmtops_nosetpage="pnmtops -nosetpage"
10454 1.1 christos else
10455 1.1 christos echo "$as_me:$LINENO: result: no" >&5
10456 1.1 christos echo "${ECHO_T}no" >&6
10457 1.1 christos pnmtops_nosetpage="pnmtops"
10458 1.1 christos fi
10459 1.1 christos
10460 1.1 christos
10461 1.1 christos ac_config_files="$ac_config_files stamp-h"
10462 1.1 christos
10463 1.1 christos ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10464 1.1 christos
10465 1.1 christos ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
10466 1.1 christos
10467 1.1 christos ac_config_files="$ac_config_files test-groff"
10468 1.1 christos
10469 1.1 christos cat >confcache <<\_ACEOF
10470 1.1 christos # This file is a shell script that caches the results of configure
10471 1.1 christos # tests run on this system so they can be shared between configure
10472 1.1 christos # scripts and configure runs, see configure's option --config-cache.
10473 1.1 christos # It is not useful on other systems. If it contains results you don't
10474 1.1 christos # want to keep, you may remove or edit it.
10475 1.1 christos #
10476 1.1 christos # config.status only pays attention to the cache file if you give it
10477 1.1 christos # the --recheck option to rerun configure.
10478 1.1 christos #
10479 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
10480 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
10481 1.1 christos # following values.
10482 1.1 christos
10483 1.1 christos _ACEOF
10484 1.1 christos
10485 1.1 christos # The following way of writing the cache mishandles newlines in values,
10486 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
10487 1.1 christos # So, don't put newlines in cache variables' values.
10488 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
10489 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
10490 1.1 christos {
10491 1.1 christos (set) 2>&1 |
10492 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in
10493 1.1 christos *ac_space=\ *)
10494 1.1 christos # `set' does not quote correctly, so add quotes (double-quote
10495 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
10496 1.1 christos sed -n \
10497 1.1 christos "s/'/'\\\\''/g;
10498 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10499 1.1 christos ;;
10500 1.1 christos *)
10501 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
10502 1.1 christos sed -n \
10503 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10504 1.1 christos ;;
10505 1.1 christos esac;
10506 1.1 christos } |
10507 1.1 christos sed '
10508 1.1 christos t clear
10509 1.1 christos : clear
10510 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10511 1.1 christos t end
10512 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10513 1.1 christos : end' >>confcache
10514 1.1 christos if diff $cache_file confcache >/dev/null 2>&1; then :; else
10515 1.1 christos if test -w $cache_file; then
10516 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10517 1.1 christos cat confcache >$cache_file
10518 1.1 christos else
10519 1.1 christos echo "not updating unwritable cache $cache_file"
10520 1.1 christos fi
10521 1.1 christos fi
10522 1.1 christos rm -f confcache
10523 1.1 christos
10524 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
10525 1.1 christos # Let make expand exec_prefix.
10526 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10527 1.1 christos
10528 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
10529 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10530 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
10531 1.1 christos # (actually we leave an empty line to preserve line numbers).
10532 1.1 christos if test "x$srcdir" = x.; then
10533 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
10534 1.1 christos s/:*\$(srcdir):*/:/;
10535 1.1 christos s/:*\${srcdir}:*/:/;
10536 1.1 christos s/:*@srcdir@:*/:/;
10537 1.1 christos s/^\([^=]*=[ ]*\):*/\1/;
10538 1.1 christos s/:*$//;
10539 1.1 christos s/^[^=]*=[ ]*$//;
10540 1.1 christos }'
10541 1.1 christos fi
10542 1.1 christos
10543 1.1 christos DEFS=-DHAVE_CONFIG_H
10544 1.1 christos
10545 1.1 christos ac_libobjs=
10546 1.1 christos ac_ltlibobjs=
10547 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10548 1.1 christos # 1. Remove the extension, and $U if already installed.
10549 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10550 1.1 christos ac_i=`echo "$ac_i" | sed "$ac_script"`
10551 1.1 christos # 2. Add them.
10552 1.1 christos ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10553 1.1 christos ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10554 1.1 christos done
10555 1.1 christos LIBOBJS=$ac_libobjs
10556 1.1 christos
10557 1.1 christos LTLIBOBJS=$ac_ltlibobjs
10558 1.1 christos
10559 1.1 christos
10560 1.1 christos
10561 1.1 christos : ${CONFIG_STATUS=./config.status}
10562 1.1 christos ac_clean_files_save=$ac_clean_files
10563 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10564 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10565 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
10566 1.1 christos cat >$CONFIG_STATUS <<_ACEOF
10567 1.1 christos #! $SHELL
10568 1.1 christos # Generated by $as_me.
10569 1.1 christos # Run this file to recreate the current configuration.
10570 1.1 christos # Compiler output produced by configure, useful for debugging
10571 1.1 christos # configure, is in config.log if it exists.
10572 1.1 christos
10573 1.1 christos debug=false
10574 1.1 christos ac_cs_recheck=false
10575 1.1 christos ac_cs_silent=false
10576 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
10577 1.1 christos _ACEOF
10578 1.1 christos
10579 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
10580 1.1 christos ## --------------------- ##
10581 1.1 christos ## M4sh Initialization. ##
10582 1.1 christos ## --------------------- ##
10583 1.1 christos
10584 1.1 christos # Be Bourne compatible
10585 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10586 1.1 christos emulate sh
10587 1.1 christos NULLCMD=:
10588 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10589 1.1 christos # is contrary to our usage. Disable this feature.
10590 1.1 christos alias -g '${1+"$@"}'='"$@"'
10591 1.1 christos setopt NO_GLOB_SUBST
10592 1.1 christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10593 1.1 christos set -o posix
10594 1.1 christos fi
10595 1.1 christos BIN_SH=xpg4; export BIN_SH # for Tru64
10596 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
10597 1.1 christos
10598 1.1 christos
10599 1.1 christos # PATH needs CR
10600 1.1 christos # Avoid depending upon Character Ranges.
10601 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10602 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10603 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10604 1.1 christos as_cr_digits='0123456789'
10605 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
10606 1.1 christos
10607 1.1 christos # The user is always right.
10608 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
10609 1.1 christos echo "#! /bin/sh" >conf$$.sh
10610 1.1 christos echo "exit 0" >>conf$$.sh
10611 1.1 christos chmod +x conf$$.sh
10612 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10613 1.1 christos PATH_SEPARATOR=';'
10614 1.1 christos else
10615 1.1 christos PATH_SEPARATOR=:
10616 1.1 christos fi
10617 1.1 christos rm -f conf$$.sh
10618 1.1 christos fi
10619 1.1 christos
10620 1.1 christos # Support unset when possible.
10621 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10622 1.1 christos as_unset=unset
10623 1.1 christos else
10624 1.1 christos as_unset=false
10625 1.1 christos fi
10626 1.1 christos
10627 1.1 christos
10628 1.1 christos # Find who we are. Look in the path if we contain no path at all
10629 1.1 christos # relative or not.
10630 1.1 christos case $0 in
10631 1.1 christos *[\\/]* ) as_myself=$0 ;;
10632 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 1.1 christos for as_dir in $PATH
10634 1.1 christos do
10635 1.1 christos IFS=$as_save_IFS
10636 1.1 christos test -z "$as_dir" && as_dir=.
10637 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10638 1.1 christos done
10639 1.1 christos
10640 1.1 christos ;;
10641 1.1 christos esac
10642 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
10643 1.1 christos # in which case we are not to be found in the path.
10644 1.1 christos if test "x$as_myself" = x; then
10645 1.1 christos as_myself=$0
10646 1.1 christos fi
10647 1.1 christos if test ! -f "$as_myself"; then
10648 1.1 christos { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10649 1.1 christos echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10650 1.1 christos { (exit 1); exit 1; }; }
10651 1.1 christos fi
10652 1.1 christos
10653 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
10654 1.1 christos for as_var in ENV MAIL MAILPATH
10655 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10656 1.1 christos done
10657 1.1 christos PS1='$ '
10658 1.1 christos PS2='> '
10659 1.1 christos PS4='+ '
10660 1.1 christos
10661 1.1 christos # NLS nuisances.
10662 1.1 christos for as_var in \
10663 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10664 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10665 1.1 christos LC_TELEPHONE LC_TIME
10666 1.1 christos do
10667 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10668 1.1 christos eval $as_var=C; export $as_var
10669 1.1 christos else
10670 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10671 1.1 christos fi
10672 1.1 christos done
10673 1.1 christos
10674 1.1 christos # Required to use basename.
10675 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
10676 1.1 christos as_expr=expr
10677 1.1 christos else
10678 1.1 christos as_expr=false
10679 1.1 christos fi
10680 1.1 christos
10681 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10682 1.1 christos as_basename=basename
10683 1.1 christos else
10684 1.1 christos as_basename=false
10685 1.1 christos fi
10686 1.1 christos
10687 1.1 christos
10688 1.1 christos # Name of the executable.
10689 1.1 christos as_me=`$as_basename "$0" ||
10690 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10691 1.1 christos X"$0" : 'X\(//\)$' \| \
10692 1.1 christos X"$0" : 'X\(/\)$' \| \
10693 1.1 christos . : '\(.\)' 2>/dev/null ||
10694 1.1 christos echo X/"$0" |
10695 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10696 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; }
10697 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; }
10698 1.1 christos s/.*/./; q'`
10699 1.1 christos
10700 1.1 christos
10701 1.1 christos
10702 1.1 christos
10703 1.1 christos as_lineno_1=$LINENO
10704 1.1 christos as_lineno_2=$LINENO
10705 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10706 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
10707 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || {
10708 1.1 christos
10709 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10710 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
10711 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
10712 1.1 christos # does the real work. The second script uses 'N' to pair each
10713 1.1 christos # line-number line with the line containing $LINENO, and appends
10714 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
10715 1.1 christos # case at line end.
10716 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10717 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
10718 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
10719 1.1 christos sed -n '
10720 1.1 christos p
10721 1.1 christos /[$]LINENO/=
10722 1.1 christos ' <$as_myself |
10723 1.1 christos sed '
10724 1.1 christos s,[$]LINENO.*,&-,
10725 1.1 christos t lineno
10726 1.1 christos b
10727 1.1 christos : lineno
10728 1.1 christos N
10729 1.1 christos : loop
10730 1.1 christos s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10731 1.1 christos t loop
10732 1.1 christos s,-\n.*,,
10733 1.1 christos ' >$as_me.lineno &&
10734 1.1 christos chmod +x $as_me.lineno ||
10735 1.1 christos { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10736 1.1 christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10737 1.1 christos { (exit 1); exit 1; }; }
10738 1.1 christos
10739 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
10740 1.1 christos # (the dirname of $[0] is not the place where we might find the
10741 1.1 christos # original and so on. Autoconf is especially sensible to this).
10742 1.1 christos . ./$as_me.lineno
10743 1.1 christos # Exit status is that of the last command.
10744 1.1 christos exit
10745 1.1 christos }
10746 1.1 christos
10747 1.1 christos
10748 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10749 1.1 christos *c*,-n*) ECHO_N= ECHO_C='
10750 1.1 christos ' ECHO_T=' ' ;;
10751 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10752 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10753 1.1 christos esac
10754 1.1 christos
10755 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
10756 1.1 christos as_expr=expr
10757 1.1 christos else
10758 1.1 christos as_expr=false
10759 1.1 christos fi
10760 1.1 christos
10761 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
10762 1.1 christos echo >conf$$.file
10763 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
10764 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic
10765 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10766 1.1 christos if test -f conf$$.exe; then
10767 1.1 christos # Don't use ln at all; we don't have any links
10768 1.1 christos as_ln_s='cp -p'
10769 1.1 christos else
10770 1.1 christos as_ln_s='ln -s'
10771 1.1 christos fi
10772 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
10773 1.1 christos as_ln_s=ln
10774 1.1 christos else
10775 1.1 christos as_ln_s='cp -p'
10776 1.1 christos fi
10777 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
10778 1.1 christos
10779 1.1 christos if mkdir -p . 2>/dev/null; then
10780 1.1 christos as_mkdir_p=:
10781 1.1 christos else
10782 1.1 christos test -d ./-p && rmdir ./-p
10783 1.1 christos as_mkdir_p=false
10784 1.1 christos fi
10785 1.1 christos
10786 1.1 christos as_executable_p="test -f"
10787 1.1 christos
10788 1.1 christos # Sed expression to map a string onto a valid CPP name.
10789 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10790 1.1 christos
10791 1.1 christos # Sed expression to map a string onto a valid variable name.
10792 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10793 1.1 christos
10794 1.1 christos
10795 1.1 christos # IFS
10796 1.1 christos # We need space, tab and new line, in precisely that order.
10797 1.1 christos as_nl='
10798 1.1 christos '
10799 1.1 christos IFS=" $as_nl"
10800 1.1 christos
10801 1.1 christos # CDPATH.
10802 1.1 christos $as_unset CDPATH
10803 1.1 christos
10804 1.1 christos exec 6>&1
10805 1.1 christos
10806 1.1 christos # Open the log real soon, to keep \$[0] and so on meaningful, and to
10807 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
10808 1.1 christos # values after options handling. Logging --version etc. is OK.
10809 1.1 christos exec 5>>config.log
10810 1.1 christos {
10811 1.1 christos echo
10812 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10813 1.1 christos ## Running $as_me. ##
10814 1.1 christos _ASBOX
10815 1.1 christos } >&5
10816 1.1 christos cat >&5 <<_CSEOF
10817 1.1 christos
10818 1.1 christos This file was extended by $as_me, which was
10819 1.1 christos generated by GNU Autoconf 2.59b. Invocation command line was
10820 1.1 christos
10821 1.1 christos CONFIG_FILES = $CONFIG_FILES
10822 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
10823 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
10824 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
10825 1.1 christos $ $0 $@
10826 1.1 christos
10827 1.1 christos _CSEOF
10828 1.1 christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10829 1.1 christos echo >&5
10830 1.1 christos _ACEOF
10831 1.1 christos
10832 1.1 christos # Files that config.status was made for.
10833 1.1 christos if test -n "$ac_config_files"; then
10834 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10835 1.1 christos fi
10836 1.1 christos
10837 1.1 christos if test -n "$ac_config_headers"; then
10838 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10839 1.1 christos fi
10840 1.1 christos
10841 1.1 christos if test -n "$ac_config_links"; then
10842 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10843 1.1 christos fi
10844 1.1 christos
10845 1.1 christos if test -n "$ac_config_commands"; then
10846 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10847 1.1 christos fi
10848 1.1 christos
10849 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
10850 1.1 christos
10851 1.1 christos ac_cs_usage="\
10852 1.1 christos \`$as_me' instantiates files from templates according to the
10853 1.1 christos current configuration.
10854 1.1 christos
10855 1.1 christos Usage: $0 [OPTIONS] [FILE]...
10856 1.1 christos
10857 1.1 christos -h, --help print this help, then exit
10858 1.1 christos -V, --version print version number, then exit
10859 1.1 christos -q, --quiet do not print progress messages
10860 1.1 christos -d, --debug don't remove temporary files
10861 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
10862 1.1 christos --file=FILE[:TEMPLATE]
10863 1.1 christos instantiate the configuration file FILE
10864 1.1 christos --header=FILE[:TEMPLATE]
10865 1.1 christos instantiate the configuration header FILE
10866 1.1 christos
10867 1.1 christos Configuration files:
10868 1.1 christos $config_files
10869 1.1 christos
10870 1.1 christos Configuration headers:
10871 1.1 christos $config_headers
10872 1.1 christos
10873 1.1 christos Report bugs to <bug-autoconf@gnu.org>."
10874 1.1 christos _ACEOF
10875 1.1 christos
10876 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
10877 1.1 christos ac_cs_version="\\
10878 1.1 christos config.status
10879 1.1 christos configured by $0, generated by GNU Autoconf 2.59b,
10880 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10881 1.1 christos
10882 1.1 christos Copyright (C) 2004 Free Software Foundation, Inc.
10883 1.1 christos This config.status script is free software; the Free Software Foundation
10884 1.1 christos gives unlimited permission to copy, distribute and modify it."
10885 1.1 christos srcdir=$srcdir
10886 1.1 christos INSTALL="$INSTALL"
10887 1.1 christos _ACEOF
10888 1.1 christos
10889 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
10890 1.1 christos # If no file are specified by the user, then we need to provide default
10891 1.1 christos # value. By we need to know if files were specified by the user.
10892 1.1 christos ac_need_defaults=:
10893 1.1 christos while test $# != 0
10894 1.1 christos do
10895 1.1 christos case $1 in
10896 1.1 christos --*=*)
10897 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='`
10898 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10899 1.1 christos ac_shift=:
10900 1.1 christos ;;
10901 1.1 christos -*)
10902 1.1 christos ac_option=$1
10903 1.1 christos ac_optarg=$2
10904 1.1 christos ac_shift=shift
10905 1.1 christos ;;
10906 1.1 christos *) # This is not an option, so the user has probably given explicit
10907 1.1 christos # arguments.
10908 1.1 christos ac_option=$1
10909 1.1 christos ac_need_defaults=false;;
10910 1.1 christos esac
10911 1.1 christos
10912 1.1 christos case $ac_option in
10913 1.1 christos # Handling of the options.
10914 1.1 christos _ACEOF
10915 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
10916 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10917 1.1 christos ac_cs_recheck=: ;;
10918 1.1 christos --version | --vers* | -V )
10919 1.1 christos echo "$ac_cs_version"; exit 0 ;;
10920 1.1 christos --he | --h)
10921 1.1 christos # Conflict between --help and --header
10922 1.1 christos { { echo "$as_me:$LINENO: error: ambiguous option: $1
10923 1.1 christos Try \`$0 --help' for more information." >&5
10924 1.1 christos echo "$as_me: error: ambiguous option: $1
10925 1.1 christos Try \`$0 --help' for more information." >&2;}
10926 1.1 christos { (exit 1); exit 1; }; };;
10927 1.1 christos --help | --hel | -h )
10928 1.1 christos echo "$ac_cs_usage"; exit 0 ;;
10929 1.1 christos --debug | --d* | -d )
10930 1.1 christos debug=: ;;
10931 1.1 christos --file | --fil | --fi | --f )
10932 1.1 christos $ac_shift
10933 1.1 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10934 1.1 christos ac_need_defaults=false;;
10935 1.1 christos --header | --heade | --head | --hea )
10936 1.1 christos $ac_shift
10937 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10938 1.1 christos ac_need_defaults=false;;
10939 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10940 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
10941 1.1 christos ac_cs_silent=: ;;
10942 1.1 christos
10943 1.1 christos # This is an error.
10944 1.1 christos -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10945 1.1 christos Try \`$0 --help' for more information." >&5
10946 1.1 christos echo "$as_me: error: unrecognized option: $1
10947 1.1 christos Try \`$0 --help' for more information." >&2;}
10948 1.1 christos { (exit 1); exit 1; }; } ;;
10949 1.1 christos
10950 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;;
10951 1.1 christos
10952 1.1 christos esac
10953 1.1 christos shift
10954 1.1 christos done
10955 1.1 christos
10956 1.1 christos ac_configure_extra_args=
10957 1.1 christos
10958 1.1 christos if $ac_cs_silent; then
10959 1.1 christos exec 6>/dev/null
10960 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
10961 1.1 christos fi
10962 1.1 christos
10963 1.1 christos _ACEOF
10964 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
10965 1.1 christos if \$ac_cs_recheck; then
10966 1.1 christos echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10967 1.1 christos exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10968 1.1 christos fi
10969 1.1 christos
10970 1.1 christos _ACEOF
10971 1.1 christos
10972 1.1 christos
10973 1.1 christos
10974 1.1 christos
10975 1.1 christos
10976 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
10977 1.1 christos for ac_config_target in $ac_config_targets
10978 1.1 christos do
10979 1.1 christos case "$ac_config_target" in
10980 1.1 christos # Handling of arguments.
10981 1.1 christos "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10982 1.1 christos "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10983 1.1 christos "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10984 1.1 christos "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10985 1.1 christos "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10986 1.1 christos "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
10987 1.1 christos "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10988 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10989 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10990 1.1 christos { (exit 1); exit 1; }; };;
10991 1.1 christos esac
10992 1.1 christos done
10993 1.1 christos
10994 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
10995 1.1 christos # then the envvar interface is used. Set only those that are not.
10996 1.1 christos # We use the long form for the default assignment because of an extremely
10997 1.1 christos # bizarre bug on SunOS 4.1.3.
10998 1.1 christos if $ac_need_defaults; then
10999 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11000 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11001 1.1 christos fi
11002 1.1 christos
11003 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
11004 1.1 christos # simply because there is no reason to put it here, and in addition,
11005 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
11006 1.1 christos # Create a temporary directory, and hook for its removal unless debugging.
11007 1.1 christos $debug ||
11008 1.1 christos {
11009 1.1 christos trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
11010 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
11011 1.1 christos }
11012 1.1 christos
11013 1.1 christos # Create a (secure) tmp directory for tmp files.
11014 1.1 christos
11015 1.1 christos {
11016 1.1 christos tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11017 1.1 christos test -n "$tmp" && test -d "$tmp"
11018 1.1 christos } ||
11019 1.1 christos {
11020 1.1 christos tmp=./confstat$$-$RANDOM
11021 1.1 christos (umask 077 && mkdir $tmp)
11022 1.1 christos } ||
11023 1.1 christos {
11024 1.1 christos echo "$me: cannot create a temporary directory in ." >&2
11025 1.1 christos { (exit 1); exit 1; }
11026 1.1 christos }
11027 1.1 christos
11028 1.1 christos _ACEOF
11029 1.1 christos
11030 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
11031 1.1 christos
11032 1.1 christos #
11033 1.1 christos # CONFIG_FILES section.
11034 1.1 christos #
11035 1.1 christos
11036 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES.
11037 1.1 christos # This happens for instance when ./config.status config.h
11038 1.1 christos if test -n "\$CONFIG_FILES"; then
11039 1.1 christos # Protect against being on the right side of a sed subst in config.status.
11040 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11041 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11042 1.1 christos s,@SHELL@,$SHELL,;t t
11043 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11044 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11045 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11046 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11047 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11048 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11049 1.1 christos s,@exec_prefix@,$exec_prefix,;t t
11050 1.1 christos s,@prefix@,$prefix,;t t
11051 1.1 christos s,@program_transform_name@,$program_transform_name,;t t
11052 1.1 christos s,@bindir@,$bindir,;t t
11053 1.1 christos s,@sbindir@,$sbindir,;t t
11054 1.1 christos s,@libexecdir@,$libexecdir,;t t
11055 1.1 christos s,@datadir@,$datadir,;t t
11056 1.1 christos s,@sysconfdir@,$sysconfdir,;t t
11057 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t
11058 1.1 christos s,@localstatedir@,$localstatedir,;t t
11059 1.1 christos s,@libdir@,$libdir,;t t
11060 1.1 christos s,@includedir@,$includedir,;t t
11061 1.1 christos s,@oldincludedir@,$oldincludedir,;t t
11062 1.1 christos s,@infodir@,$infodir,;t t
11063 1.1 christos s,@mandir@,$mandir,;t t
11064 1.1 christos s,@build_alias@,$build_alias,;t t
11065 1.1 christos s,@host_alias@,$host_alias,;t t
11066 1.1 christos s,@target_alias@,$target_alias,;t t
11067 1.1 christos s,@DEFS@,$DEFS,;t t
11068 1.1 christos s,@ECHO_C@,$ECHO_C,;t t
11069 1.1 christos s,@ECHO_N@,$ECHO_N,;t t
11070 1.1 christos s,@ECHO_T@,$ECHO_T,;t t
11071 1.1 christos s,@LIBS@,$LIBS,;t t
11072 1.1 christos s,@CC@,$CC,;t t
11073 1.1 christos s,@CFLAGS@,$CFLAGS,;t t
11074 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t
11075 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t
11076 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t
11077 1.1 christos s,@EXEEXT@,$EXEEXT,;t t
11078 1.1 christos s,@OBJEXT@,$OBJEXT,;t t
11079 1.1 christos s,@CXX@,$CXX,;t t
11080 1.1 christos s,@CXXFLAGS@,$CXXFLAGS,;t t
11081 1.1 christos s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11082 1.1 christos s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
11083 1.1 christos s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
11084 1.1 christos s,@CPP@,$CPP,;t t
11085 1.1 christos s,@X_CFLAGS@,$X_CFLAGS,;t t
11086 1.1 christos s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11087 1.1 christos s,@X_LIBS@,$X_LIBS,;t t
11088 1.1 christos s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11089 1.1 christos s,@XDEVDIRS@,$XDEVDIRS,;t t
11090 1.1 christos s,@XPROGDIRS@,$XPROGDIRS,;t t
11091 1.1 christos s,@XLIBDIRS@,$XLIBDIRS,;t t
11092 1.1 christos s,@appresdir@,$appresdir,;t t
11093 1.1 christos s,@LPR@,$LPR,;t t
11094 1.1 christos s,@LP@,$LP,;t t
11095 1.1 christos s,@LPQ@,$LPQ,;t t
11096 1.1 christos s,@PSPRINT@,$PSPRINT,;t t
11097 1.1 christos s,@DVIPRINT@,$DVIPRINT,;t t
11098 1.1 christos s,@PERLPATH@,$PERLPATH,;t t
11099 1.1 christos s,@YACC@,$YACC,;t t
11100 1.1 christos s,@RANLIB@,$RANLIB,;t t
11101 1.1 christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11102 1.1 christos s,@INSTALL_INFO@,$INSTALL_INFO,;t t
11103 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11104 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11105 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11106 1.1 christos s,@LN_S@,$LN_S,;t t
11107 1.1 christos s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
11108 1.1 christos s,@GREP@,$GREP,;t t
11109 1.1 christos s,@EGREP@,$EGREP,;t t
11110 1.1 christos s,@LIBC@,$LIBC,;t t
11111 1.1 christos s,@LIBM@,$LIBM,;t t
11112 1.1 christos s,@LIBOBJS@,$LIBOBJS,;t t
11113 1.1 christos s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
11114 1.1 christos s,@PAGE@,$PAGE,;t t
11115 1.1 christos s,@g@,$g,;t t
11116 1.1 christos s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
11117 1.1 christos s,@tmac_wrap@,$tmac_wrap,;t t
11118 1.1 christos s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
11119 1.1 christos s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
11120 1.1 christos s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
11121 1.1 christos s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
11122 1.1 christos s,@pnmcut@,$pnmcut,;t t
11123 1.1 christos s,@pnmcrop@,$pnmcrop,;t t
11124 1.1 christos s,@pnmtopng@,$pnmtopng,;t t
11125 1.1 christos s,@psselect@,$psselect,;t t
11126 1.1 christos s,@pnmtops@,$pnmtops,;t t
11127 1.1 christos s,@make_html@,$make_html,;t t
11128 1.1 christos s,@make_install_html@,$make_install_html,;t t
11129 1.1 christos s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
11130 1.1 christos s,@AWK@,$AWK,;t t
11131 1.1 christos s,@ac_ct_AWK@,$ac_ct_AWK,;t t
11132 1.1 christos s,@make_pdfdoc@,$make_pdfdoc,;t t
11133 1.1 christos s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
11134 1.1 christos s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
11135 1.1 christos s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11136 1.1 christos CEOF
11137 1.1 christos
11138 1.1 christos _ACEOF
11139 1.1 christos
11140 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11141 1.1 christos # Split the substitutions into bite-sized pieces for seds with
11142 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX.
11143 1.1 christos ac_max_sed_lines=48
11144 1.1 christos ac_sed_frag=1 # Number of current file.
11145 1.1 christos ac_beg=1 # First line for current file.
11146 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file.
11147 1.1 christos ac_more_lines=:
11148 1.1 christos ac_sed_cmds=
11149 1.1 christos while $ac_more_lines; do
11150 1.1 christos if test $ac_beg -gt 1; then
11151 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11152 1.1 christos else
11153 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11154 1.1 christos fi
11155 1.1 christos if test ! -s $tmp/subs.frag; then
11156 1.1 christos ac_more_lines=false
11157 1.1 christos else
11158 1.1 christos # The purpose of the label and of the branching condition is to
11159 1.1 christos # speed up the sed processing (if there are no `@' at all, there
11160 1.1 christos # is no need to browse any of the substitutions).
11161 1.1 christos # These are the two extra sed commands mentioned above.
11162 1.1 christos (echo ':t
11163 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11164 1.1 christos if test -z "$ac_sed_cmds"; then
11165 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11166 1.1 christos else
11167 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11168 1.1 christos fi
11169 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1`
11170 1.1 christos ac_beg=$ac_end
11171 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines`
11172 1.1 christos fi
11173 1.1 christos done
11174 1.1 christos if test -z "$ac_sed_cmds"; then
11175 1.1 christos ac_sed_cmds=cat
11176 1.1 christos fi
11177 1.1 christos fi # test -n "$CONFIG_FILES"
11178 1.1 christos
11179 1.1 christos _ACEOF
11180 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11181 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11182 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11183 1.1 christos case $ac_file in
11184 1.1 christos - | *:- | *:-:* ) # input from stdin
11185 1.1 christos cat >$tmp/stdin
11186 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11187 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11188 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11189 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11190 1.1 christos * ) ac_file_in=$ac_file.in ;;
11191 1.1 christos esac
11192 1.1 christos
11193 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11194 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11195 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11196 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
11197 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
11198 1.1 christos X"$ac_file" : 'X\(/\)' \| \
11199 1.1 christos . : '\(.\)' 2>/dev/null ||
11200 1.1 christos echo X"$ac_file" |
11201 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11202 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11203 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
11204 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
11205 1.1 christos s/.*/./; q'`
11206 1.1 christos { if $as_mkdir_p; then
11207 1.1 christos test -d "$ac_dir" || mkdir -p "$ac_dir"
11208 1.1 christos else
11209 1.1 christos as_dir="$ac_dir"
11210 1.1 christos as_dirs=
11211 1.1 christos while test ! -d "$as_dir"; do
11212 1.1 christos as_dirs="$as_dir $as_dirs"
11213 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null ||
11214 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11215 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
11216 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
11217 1.1 christos X"$as_dir" : 'X\(/\)' \| \
11218 1.1 christos . : '\(.\)' 2>/dev/null ||
11219 1.1 christos echo X"$as_dir" |
11220 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11221 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11222 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
11223 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
11224 1.1 christos s/.*/./; q'`
11225 1.1 christos done
11226 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs
11227 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11228 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11229 1.1 christos { (exit 1); exit 1; }; }; }
11230 1.1 christos
11231 1.1 christos ac_builddir=.
11232 1.1 christos
11233 1.1 christos if test "$ac_dir" != .; then
11234 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11235 1.1 christos # A "../" for each directory in $ac_dir_suffix.
11236 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11237 1.1 christos else
11238 1.1 christos ac_dir_suffix= ac_top_builddir=
11239 1.1 christos fi
11240 1.1 christos
11241 1.1 christos case $srcdir in
11242 1.1 christos .) # No --srcdir option. We are building in place.
11243 1.1 christos ac_srcdir=.
11244 1.1 christos if test -z "$ac_top_builddir"; then
11245 1.1 christos ac_top_srcdir=.
11246 1.1 christos else
11247 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11248 1.1 christos fi ;;
11249 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
11250 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
11251 1.1 christos ac_top_srcdir=$srcdir ;;
11252 1.1 christos *) # Relative name.
11253 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11254 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;;
11255 1.1 christos esac
11256 1.1 christos
11257 1.1 christos # Do not use `cd foo && pwd` to compute absolute names, because
11258 1.1 christos # the directories may not exist.
11259 1.1 christos case `pwd` in
11260 1.1 christos .) ac_abs_builddir="$ac_dir";;
11261 1.1 christos *)
11262 1.1 christos case "$ac_dir" in
11263 1.1 christos .) ac_abs_builddir=`pwd`;;
11264 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11265 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";;
11266 1.1 christos esac;;
11267 1.1 christos esac
11268 1.1 christos case $ac_abs_builddir in
11269 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
11270 1.1 christos *)
11271 1.1 christos case ${ac_top_builddir}. in
11272 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;;
11273 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11274 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11275 1.1 christos esac;;
11276 1.1 christos esac
11277 1.1 christos case $ac_abs_builddir in
11278 1.1 christos .) ac_abs_srcdir=$ac_srcdir;;
11279 1.1 christos *)
11280 1.1 christos case $ac_srcdir in
11281 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;;
11282 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11283 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11284 1.1 christos esac;;
11285 1.1 christos esac
11286 1.1 christos case $ac_abs_builddir in
11287 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
11288 1.1 christos *)
11289 1.1 christos case $ac_top_srcdir in
11290 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;;
11291 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11292 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11293 1.1 christos esac;;
11294 1.1 christos esac
11295 1.1 christos
11296 1.1 christos
11297 1.1 christos case $INSTALL in
11298 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11299 1.1 christos *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11300 1.1 christos esac
11301 1.1 christos
11302 1.1 christos if test x"$ac_file" != x-; then
11303 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5
11304 1.1 christos echo "$as_me: creating $ac_file" >&6;}
11305 1.1 christos rm -f "$ac_file"
11306 1.1 christos fi
11307 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
11308 1.1 christos # use $as_me), people would be surprised to read:
11309 1.1 christos # /* config.h. Generated by config.status. */
11310 1.1 christos if test x"$ac_file" = x-; then
11311 1.1 christos configure_input=
11312 1.1 christos else
11313 1.1 christos configure_input="$ac_file. "
11314 1.1 christos fi
11315 1.1 christos configure_input=$configure_input"Generated from `echo $ac_file_in |
11316 1.1 christos sed 's,.*/,,'` by configure."
11317 1.1 christos
11318 1.1 christos # First look for the input files in the build tree, otherwise in the
11319 1.1 christos # src tree.
11320 1.1 christos ac_file_inputs=`IFS=:
11321 1.1 christos for f in $ac_file_in; do
11322 1.1 christos case $f in
11323 1.1 christos -) echo $tmp/stdin ;;
11324 1.1 christos [\\/$]*)
11325 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
11326 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11327 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
11328 1.1 christos { (exit 1); exit 1; }; }
11329 1.1 christos echo "$f";;
11330 1.1 christos *) # Relative
11331 1.1 christos if test -f "$f"; then
11332 1.1 christos # Build tree
11333 1.1 christos echo "$f"
11334 1.1 christos elif test -f "$srcdir/$f"; then
11335 1.1 christos # Source tree
11336 1.1 christos echo "$srcdir/$f"
11337 1.1 christos else
11338 1.1 christos # /dev/null tree
11339 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11340 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
11341 1.1 christos { (exit 1); exit 1; }; }
11342 1.1 christos fi;;
11343 1.1 christos esac
11344 1.1 christos done` || { (exit 1); exit 1; }
11345 1.1 christos _ACEOF
11346 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
11347 1.1 christos sed "$ac_vpsub
11348 1.1 christos $extrasub
11349 1.1 christos _ACEOF
11350 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11351 1.1 christos :t
11352 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11353 1.1 christos s,@configure_input@,$configure_input,;t t
11354 1.1 christos s,@srcdir@,$ac_srcdir,;t t
11355 1.1 christos s,@abs_srcdir@,$ac_abs_srcdir,;t t
11356 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t
11357 1.1 christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11358 1.1 christos s,@builddir@,$ac_builddir,;t t
11359 1.1 christos s,@abs_builddir@,$ac_abs_builddir,;t t
11360 1.1 christos s,@top_builddir@,$ac_top_builddir,;t t
11361 1.1 christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11362 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t
11363 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11364 1.1 christos rm -f $tmp/stdin
11365 1.1 christos if test x"$ac_file" != x-; then
11366 1.1 christos mv $tmp/out $ac_file
11367 1.1 christos else
11368 1.1 christos cat $tmp/out
11369 1.1 christos rm -f $tmp/out
11370 1.1 christos fi
11371 1.1 christos
11372 1.1 christos # Run the commands associated with the file.
11373 1.1 christos case $ac_file in
11374 1.1 christos stamp-h ) echo timestamp > stamp-h ;;
11375 1.1 christos contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11376 1.1 christos test-groff ) chmod +x test-groff ;;
11377 1.1 christos esac
11378 1.1 christos done
11379 1.1 christos _ACEOF
11380 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11381 1.1 christos
11382 1.1 christos #
11383 1.1 christos # CONFIG_HEADER section.
11384 1.1 christos #
11385 1.1 christos
11386 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11387 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
11388 1.1 christos #
11389 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines.
11390 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11391 1.1 christos ac_dB='[ ].*$,\1#\2'
11392 1.1 christos ac_dC=' '
11393 1.1 christos ac_dD=',;t'
11394 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11395 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11396 1.1 christos ac_uB='$,\1#\2define\3'
11397 1.1 christos ac_uC=' '
11398 1.1 christos ac_uD=',;t'
11399 1.1 christos
11400 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11401 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11402 1.1 christos case $ac_file in
11403 1.1 christos - | *:- | *:-:* ) # input from stdin
11404 1.1 christos cat >$tmp/stdin
11405 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11406 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11407 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11408 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11409 1.1 christos * ) ac_file_in=$ac_file.in ;;
11410 1.1 christos esac
11411 1.1 christos
11412 1.1 christos test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11413 1.1 christos echo "$as_me: creating $ac_file" >&6;}
11414 1.1 christos
11415 1.1 christos # First look for the input files in the build tree, otherwise in the
11416 1.1 christos # src tree.
11417 1.1 christos ac_file_inputs=`IFS=:
11418 1.1 christos for f in $ac_file_in; do
11419 1.1 christos case $f in
11420 1.1 christos -) echo $tmp/stdin ;;
11421 1.1 christos [\\/$]*)
11422 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
11423 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11424 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
11425 1.1 christos { (exit 1); exit 1; }; }
11426 1.1 christos # Quote $f, to prevent DOS file names from being IFS'd.
11427 1.1 christos echo "$f";;
11428 1.1 christos *) # Relative
11429 1.1 christos if test -f "$f"; then
11430 1.1 christos # Build tree
11431 1.1 christos echo "$f"
11432 1.1 christos elif test -f "$srcdir/$f"; then
11433 1.1 christos # Source tree
11434 1.1 christos echo "$srcdir/$f"
11435 1.1 christos else
11436 1.1 christos # /dev/null tree
11437 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11438 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
11439 1.1 christos { (exit 1); exit 1; }; }
11440 1.1 christos fi;;
11441 1.1 christos esac
11442 1.1 christos done` || { (exit 1); exit 1; }
11443 1.1 christos # Remove the trailing spaces.
11444 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11445 1.1 christos
11446 1.1 christos _ACEOF
11447 1.1 christos
11448 1.1 christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
11449 1.1 christos # `conftest.undefs', that substitutes the proper values into
11450 1.1 christos # config.h.in to produce config.h. The first handles `#define'
11451 1.1 christos # templates, and the second `#undef' templates.
11452 1.1 christos # And first: Protect against being on the right side of a sed subst in
11453 1.1 christos # config.status. Protect against being in an unquoted here document
11454 1.1 christos # in config.status.
11455 1.1 christos rm -f conftest.defines conftest.undefs
11456 1.1 christos # Using a here document instead of a string reduces the quoting nightmare.
11457 1.1 christos # Putting comments in sed scripts is not portable.
11458 1.1 christos #
11459 1.1 christos # `end' is used to avoid that the second main sed command (meant for
11460 1.1 christos # 0-ary CPP macros) applies to n-ary macro definitions.
11461 1.1 christos # See the Autoconf documentation for `clear'.
11462 1.1 christos cat >confdef2sed.sed <<\_ACEOF
11463 1.1 christos s/[\\&,]/\\&/g
11464 1.1 christos s,[\\$`],\\&,g
11465 1.1 christos t clear
11466 1.1 christos : clear
11467 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11468 1.1 christos t end
11469 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11470 1.1 christos : end
11471 1.1 christos _ACEOF
11472 1.1 christos # If some macros were called several times there might be several times
11473 1.1 christos # the same #defines, which is useless. Nevertheless, we may not want to
11474 1.1 christos # sort them, since we want the *last* AC-DEFINE to be honored.
11475 1.1 christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11476 1.1 christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11477 1.1 christos rm -f confdef2sed.sed
11478 1.1 christos
11479 1.1 christos # This sed command replaces #undef with comments. This is necessary, for
11480 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required
11481 1.1 christos # on some systems where configure will not decide to define it.
11482 1.1 christos cat >>conftest.undefs <<\_ACEOF
11483 1.1 christos s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11484 1.1 christos _ACEOF
11485 1.1 christos
11486 1.1 christos # Break up conftest.defines because some shells have a limit on the size
11487 1.1 christos # of here documents, and old seds have small limits too (100 cmds).
11488 1.1 christos echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11489 1.1 christos echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11490 1.1 christos echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11491 1.1 christos echo ' :' >>$CONFIG_STATUS
11492 1.1 christos rm -f conftest.tail
11493 1.1 christos while grep . conftest.defines >/dev/null
11494 1.1 christos do
11495 1.1 christos # Write a limited-size here document to $tmp/defines.sed.
11496 1.1 christos echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11497 1.1 christos # Speed up: don't consider the non `#define' lines.
11498 1.1 christos echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11499 1.1 christos # Work around the forget-to-reset-the-flag bug.
11500 1.1 christos echo 't clr' >>$CONFIG_STATUS
11501 1.1 christos echo ': clr' >>$CONFIG_STATUS
11502 1.1 christos sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11503 1.1 christos echo 'CEOF
11504 1.1 christos sed -f $tmp/defines.sed $tmp/in >$tmp/out
11505 1.1 christos rm -f $tmp/in
11506 1.1 christos mv $tmp/out $tmp/in
11507 1.1 christos ' >>$CONFIG_STATUS
11508 1.1 christos sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11509 1.1 christos rm -f conftest.defines
11510 1.1 christos mv conftest.tail conftest.defines
11511 1.1 christos done
11512 1.1 christos rm -f conftest.defines
11513 1.1 christos echo ' fi # grep' >>$CONFIG_STATUS
11514 1.1 christos echo >>$CONFIG_STATUS
11515 1.1 christos
11516 1.1 christos # Break up conftest.undefs because some shells have a limit on the size
11517 1.1 christos # of here documents, and old seds have small limits too (100 cmds).
11518 1.1 christos echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11519 1.1 christos rm -f conftest.tail
11520 1.1 christos while grep . conftest.undefs >/dev/null
11521 1.1 christos do
11522 1.1 christos # Write a limited-size here document to $tmp/undefs.sed.
11523 1.1 christos echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11524 1.1 christos # Speed up: don't consider the non `#undef'
11525 1.1 christos echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11526 1.1 christos # Work around the forget-to-reset-the-flag bug.
11527 1.1 christos echo 't clr' >>$CONFIG_STATUS
11528 1.1 christos echo ': clr' >>$CONFIG_STATUS
11529 1.1 christos sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11530 1.1 christos echo 'CEOF
11531 1.1 christos sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11532 1.1 christos rm -f $tmp/in
11533 1.1 christos mv $tmp/out $tmp/in
11534 1.1 christos ' >>$CONFIG_STATUS
11535 1.1 christos sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11536 1.1 christos rm -f conftest.undefs
11537 1.1 christos mv conftest.tail conftest.undefs
11538 1.1 christos done
11539 1.1 christos rm -f conftest.undefs
11540 1.1 christos
11541 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11542 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
11543 1.1 christos # use $as_me), people would be surprised to read:
11544 1.1 christos # /* config.h. Generated by config.status. */
11545 1.1 christos if test x"$ac_file" = x-; then
11546 1.1 christos echo "/* Generated by configure. */" >$tmp/config.h
11547 1.1 christos else
11548 1.1 christos echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11549 1.1 christos fi
11550 1.1 christos cat $tmp/in >>$tmp/config.h
11551 1.1 christos rm -f $tmp/in
11552 1.1 christos if test x"$ac_file" != x-; then
11553 1.1 christos if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11554 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11555 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;}
11556 1.1 christos else
11557 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11558 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11559 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
11560 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
11561 1.1 christos X"$ac_file" : 'X\(/\)' \| \
11562 1.1 christos . : '\(.\)' 2>/dev/null ||
11563 1.1 christos echo X"$ac_file" |
11564 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11565 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11566 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
11567 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
11568 1.1 christos s/.*/./; q'`
11569 1.1 christos { if $as_mkdir_p; then
11570 1.1 christos test -d "$ac_dir" || mkdir -p "$ac_dir"
11571 1.1 christos else
11572 1.1 christos as_dir="$ac_dir"
11573 1.1 christos as_dirs=
11574 1.1 christos while test ! -d "$as_dir"; do
11575 1.1 christos as_dirs="$as_dir $as_dirs"
11576 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null ||
11577 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11578 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
11579 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
11580 1.1 christos X"$as_dir" : 'X\(/\)' \| \
11581 1.1 christos . : '\(.\)' 2>/dev/null ||
11582 1.1 christos echo X"$as_dir" |
11583 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11584 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11585 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
11586 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
11587 1.1 christos s/.*/./; q'`
11588 1.1 christos done
11589 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs
11590 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11591 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11592 1.1 christos { (exit 1); exit 1; }; }; }
11593 1.1 christos
11594 1.1 christos rm -f $ac_file
11595 1.1 christos mv $tmp/config.h $ac_file
11596 1.1 christos fi
11597 1.1 christos else
11598 1.1 christos cat $tmp/config.h
11599 1.1 christos rm -f $tmp/config.h
11600 1.1 christos fi
11601 1.1 christos done
11602 1.1 christos _ACEOF
11603 1.1 christos
11604 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
11605 1.1 christos
11606 1.1 christos { (exit 0); exit 0; }
11607 1.1 christos _ACEOF
11608 1.1 christos chmod +x $CONFIG_STATUS
11609 1.1 christos ac_clean_files=$ac_clean_files_save
11610 1.1 christos
11611 1.1 christos
11612 1.1 christos # configure is writing to config.log, and then calls config.status.
11613 1.1 christos # config.status does its own redirection, appending to config.log.
11614 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
11615 1.1 christos # by configure, so config.status won't be able to write to it; its
11616 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
11617 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
11618 1.1 christos # appended to by config.status. When coming back to configure, we
11619 1.1 christos # need to make the FD available again.
11620 1.1 christos if test "$no_create" != yes; then
11621 1.1 christos ac_cs_success=:
11622 1.1 christos ac_config_status_args=
11623 1.1 christos test "$silent" = yes &&
11624 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
11625 1.1 christos exec 5>/dev/null
11626 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11627 1.1 christos exec 5>>config.log
11628 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11629 1.1 christos # would make configure fail if this is the last instruction.
11630 1.1 christos $ac_cs_success || { (exit 1); exit 1; }
11631 1.1 christos fi
11632 1.1 christos
11633 1.1 christos
11634 1.1 christos if test -z "$groff_no_x"; then
11635 1.1 christos if test "x$with_appresdir" = "x"; then
11636 1.1 christos { echo "$as_me:$LINENO:
11637 1.1 christos
11638 1.1 christos The application resource file for gxditview will be installed as
11639 1.1 christos
11640 1.1 christos $appresdir/GXditview
11641 1.1 christos
11642 1.1 christos (an existing file will be saved as \`GXditview.old').
11643 1.1 christos To install it into a different directory, say, \`/etc/gxditview',
11644 1.1 christos add \`--with-appresdir=/etc/gxditview' to the configure script
11645 1.1 christos command line options and rerun it. The environment variable
11646 1.1 christos \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11647 1.1 christos omitting the \`gxditview' part which is automatically appended by
11648 1.1 christos the X11 searching routines for resource files. More details can be
11649 1.1 christos found in the X(7) manual page.
11650 1.1 christos " >&5
11651 1.1 christos echo "$as_me:
11652 1.1 christos
11653 1.1 christos The application resource file for gxditview will be installed as
11654 1.1 christos
11655 1.1 christos $appresdir/GXditview
11656 1.1 christos
11657 1.1 christos (an existing file will be saved as \`GXditview.old').
11658 1.1 christos To install it into a different directory, say, \`/etc/gxditview',
11659 1.1 christos add \`--with-appresdir=/etc/gxditview' to the configure script
11660 1.1 christos command line options and rerun it. The environment variable
11661 1.1 christos \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11662 1.1 christos omitting the \`gxditview' part which is automatically appended by
11663 1.1 christos the X11 searching routines for resource files. More details can be
11664 1.1 christos found in the X(7) manual page.
11665 1.1 christos " >&6;}
11666 1.1 christos fi
11667 1.1 christos fi
11668