1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.61.
|
---|
4 | #
|
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 | ## --------------------- ##
|
---|
10 | ## M4sh Initialization. ##
|
---|
11 | ## --------------------- ##
|
---|
12 |
|
---|
13 | # Be more Bourne compatible
|
---|
14 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
16 | emulate sh
|
---|
17 | NULLCMD=:
|
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
19 | # is contrary to our usage. Disable this feature.
|
---|
20 | alias -g '${1+"$@"}'='"$@"'
|
---|
21 | setopt NO_GLOB_SUBST
|
---|
22 | else
|
---|
23 | case `(set -o) 2>/dev/null` in
|
---|
24 | *posix*) set -o posix ;;
|
---|
25 | esac
|
---|
26 |
|
---|
27 | fi
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 | # PATH needs CR
|
---|
33 | # Avoid depending upon Character Ranges.
|
---|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
37 | as_cr_digits='0123456789'
|
---|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
39 |
|
---|
40 | # The user is always right.
|
---|
41 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
42 | echo "#! /bin/sh" >conf$$.sh
|
---|
43 | echo "exit 0" >>conf$$.sh
|
---|
44 | chmod +x conf$$.sh
|
---|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
46 | PATH_SEPARATOR=';'
|
---|
47 | else
|
---|
48 | PATH_SEPARATOR=:
|
---|
49 | fi
|
---|
50 | rm -f conf$$.sh
|
---|
51 | fi
|
---|
52 |
|
---|
53 | # Support unset when possible.
|
---|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
55 | as_unset=unset
|
---|
56 | else
|
---|
57 | as_unset=false
|
---|
58 | fi
|
---|
59 |
|
---|
60 |
|
---|
61 | # IFS
|
---|
62 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
63 | # there to prevent editors from complaining about space-tab.
|
---|
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
65 | # splitting by setting IFS to empty value.)
|
---|
66 | as_nl='
|
---|
67 | '
|
---|
68 | IFS=" "" $as_nl"
|
---|
69 |
|
---|
70 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
71 | case $0 in
|
---|
72 | *[\\/]* ) as_myself=$0 ;;
|
---|
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
74 | for as_dir in $PATH
|
---|
75 | do
|
---|
76 | IFS=$as_save_IFS
|
---|
77 | test -z "$as_dir" && as_dir=.
|
---|
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
79 | done
|
---|
80 | IFS=$as_save_IFS
|
---|
81 |
|
---|
82 | ;;
|
---|
83 | esac
|
---|
84 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
85 | # in which case we are not to be found in the path.
|
---|
86 | if test "x$as_myself" = x; then
|
---|
87 | as_myself=$0
|
---|
88 | fi
|
---|
89 | if test ! -f "$as_myself"; then
|
---|
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
91 | { (exit 1); exit 1; }
|
---|
92 | fi
|
---|
93 |
|
---|
94 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
95 | for as_var in ENV MAIL MAILPATH
|
---|
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
97 | done
|
---|
98 | PS1='$ '
|
---|
99 | PS2='> '
|
---|
100 | PS4='+ '
|
---|
101 |
|
---|
102 | # NLS nuisances.
|
---|
103 | for as_var in \
|
---|
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
106 | LC_TELEPHONE LC_TIME
|
---|
107 | do
|
---|
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
109 | eval $as_var=C; export $as_var
|
---|
110 | else
|
---|
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
112 | fi
|
---|
113 | done
|
---|
114 |
|
---|
115 | # Required to use basename.
|
---|
116 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
118 | as_expr=expr
|
---|
119 | else
|
---|
120 | as_expr=false
|
---|
121 | fi
|
---|
122 |
|
---|
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
124 | as_basename=basename
|
---|
125 | else
|
---|
126 | as_basename=false
|
---|
127 | fi
|
---|
128 |
|
---|
129 |
|
---|
130 | # Name of the executable.
|
---|
131 | as_me=`$as_basename -- "$0" ||
|
---|
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
133 | X"$0" : 'X\(//\)$' \| \
|
---|
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
135 | echo X/"$0" |
|
---|
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
137 | s//\1/
|
---|
138 | q
|
---|
139 | }
|
---|
140 | /^X\/\(\/\/\)$/{
|
---|
141 | s//\1/
|
---|
142 | q
|
---|
143 | }
|
---|
144 | /^X\/\(\/\).*/{
|
---|
145 | s//\1/
|
---|
146 | q
|
---|
147 | }
|
---|
148 | s/.*/./; q'`
|
---|
149 |
|
---|
150 | # CDPATH.
|
---|
151 | $as_unset CDPATH
|
---|
152 |
|
---|
153 |
|
---|
154 | if test "x$CONFIG_SHELL" = x; then
|
---|
155 | if (eval ":") 2>/dev/null; then
|
---|
156 | as_have_required=yes
|
---|
157 | else
|
---|
158 | as_have_required=no
|
---|
159 | fi
|
---|
160 |
|
---|
161 | if test $as_have_required = yes && (eval ":
|
---|
162 | (as_func_return () {
|
---|
163 | (exit \$1)
|
---|
164 | }
|
---|
165 | as_func_success () {
|
---|
166 | as_func_return 0
|
---|
167 | }
|
---|
168 | as_func_failure () {
|
---|
169 | as_func_return 1
|
---|
170 | }
|
---|
171 | as_func_ret_success () {
|
---|
172 | return 0
|
---|
173 | }
|
---|
174 | as_func_ret_failure () {
|
---|
175 | return 1
|
---|
176 | }
|
---|
177 |
|
---|
178 | exitcode=0
|
---|
179 | if as_func_success; then
|
---|
180 | :
|
---|
181 | else
|
---|
182 | exitcode=1
|
---|
183 | echo as_func_success failed.
|
---|
184 | fi
|
---|
185 |
|
---|
186 | if as_func_failure; then
|
---|
187 | exitcode=1
|
---|
188 | echo as_func_failure succeeded.
|
---|
189 | fi
|
---|
190 |
|
---|
191 | if as_func_ret_success; then
|
---|
192 | :
|
---|
193 | else
|
---|
194 | exitcode=1
|
---|
195 | echo as_func_ret_success failed.
|
---|
196 | fi
|
---|
197 |
|
---|
198 | if as_func_ret_failure; then
|
---|
199 | exitcode=1
|
---|
200 | echo as_func_ret_failure succeeded.
|
---|
201 | fi
|
---|
202 |
|
---|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
204 | :
|
---|
205 | else
|
---|
206 | exitcode=1
|
---|
207 | echo positional parameters were not saved.
|
---|
208 | fi
|
---|
209 |
|
---|
210 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
---|
211 |
|
---|
212 | (
|
---|
213 | as_lineno_1=\$LINENO
|
---|
214 | as_lineno_2=\$LINENO
|
---|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
---|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
---|
217 | ") 2> /dev/null; then
|
---|
218 | :
|
---|
219 | else
|
---|
220 | as_candidate_shells=
|
---|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
223 | do
|
---|
224 | IFS=$as_save_IFS
|
---|
225 | test -z "$as_dir" && as_dir=.
|
---|
226 | case $as_dir in
|
---|
227 | /*)
|
---|
228 | for as_base in sh bash ksh sh5; do
|
---|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
---|
230 | done;;
|
---|
231 | esac
|
---|
232 | done
|
---|
233 | IFS=$as_save_IFS
|
---|
234 |
|
---|
235 |
|
---|
236 | for as_shell in $as_candidate_shells $SHELL; do
|
---|
237 | # Try only shells that exist, to save several forks.
|
---|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
---|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
241 | emulate sh
|
---|
242 | NULLCMD=:
|
---|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
244 | # is contrary to our usage. Disable this feature.
|
---|
245 | alias -g '${1+"$@"}'='"$@"'
|
---|
246 | setopt NO_GLOB_SUBST
|
---|
247 | else
|
---|
248 | case `(set -o) 2>/dev/null` in
|
---|
249 | *posix*) set -o posix ;;
|
---|
250 | esac
|
---|
251 |
|
---|
252 | fi
|
---|
253 |
|
---|
254 |
|
---|
255 | :
|
---|
256 | _ASEOF
|
---|
257 | }; then
|
---|
258 | CONFIG_SHELL=$as_shell
|
---|
259 | as_have_required=yes
|
---|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
---|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
262 | emulate sh
|
---|
263 | NULLCMD=:
|
---|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
265 | # is contrary to our usage. Disable this feature.
|
---|
266 | alias -g '${1+"$@"}'='"$@"'
|
---|
267 | setopt NO_GLOB_SUBST
|
---|
268 | else
|
---|
269 | case `(set -o) 2>/dev/null` in
|
---|
270 | *posix*) set -o posix ;;
|
---|
271 | esac
|
---|
272 |
|
---|
273 | fi
|
---|
274 |
|
---|
275 |
|
---|
276 | :
|
---|
277 | (as_func_return () {
|
---|
278 | (exit $1)
|
---|
279 | }
|
---|
280 | as_func_success () {
|
---|
281 | as_func_return 0
|
---|
282 | }
|
---|
283 | as_func_failure () {
|
---|
284 | as_func_return 1
|
---|
285 | }
|
---|
286 | as_func_ret_success () {
|
---|
287 | return 0
|
---|
288 | }
|
---|
289 | as_func_ret_failure () {
|
---|
290 | return 1
|
---|
291 | }
|
---|
292 |
|
---|
293 | exitcode=0
|
---|
294 | if as_func_success; then
|
---|
295 | :
|
---|
296 | else
|
---|
297 | exitcode=1
|
---|
298 | echo as_func_success failed.
|
---|
299 | fi
|
---|
300 |
|
---|
301 | if as_func_failure; then
|
---|
302 | exitcode=1
|
---|
303 | echo as_func_failure succeeded.
|
---|
304 | fi
|
---|
305 |
|
---|
306 | if as_func_ret_success; then
|
---|
307 | :
|
---|
308 | else
|
---|
309 | exitcode=1
|
---|
310 | echo as_func_ret_success failed.
|
---|
311 | fi
|
---|
312 |
|
---|
313 | if as_func_ret_failure; then
|
---|
314 | exitcode=1
|
---|
315 | echo as_func_ret_failure succeeded.
|
---|
316 | fi
|
---|
317 |
|
---|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then
|
---|
319 | :
|
---|
320 | else
|
---|
321 | exitcode=1
|
---|
322 | echo positional parameters were not saved.
|
---|
323 | fi
|
---|
324 |
|
---|
325 | test $exitcode = 0) || { (exit 1); exit 1; }
|
---|
326 |
|
---|
327 | (
|
---|
328 | as_lineno_1=$LINENO
|
---|
329 | as_lineno_2=$LINENO
|
---|
330 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
---|
332 |
|
---|
333 | _ASEOF
|
---|
334 | }; then
|
---|
335 | break
|
---|
336 | fi
|
---|
337 |
|
---|
338 | fi
|
---|
339 |
|
---|
340 | done
|
---|
341 |
|
---|
342 | if test "x$CONFIG_SHELL" != x; then
|
---|
343 | for as_var in BASH_ENV ENV
|
---|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
345 | done
|
---|
346 | export CONFIG_SHELL
|
---|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
348 | fi
|
---|
349 |
|
---|
350 |
|
---|
351 | if test $as_have_required = no; then
|
---|
352 | echo This script requires a shell more modern than all the
|
---|
353 | echo shells that I found on your system. Please install a
|
---|
354 | echo modern shell, or manually run the script under such a
|
---|
355 | echo shell if you do have one.
|
---|
356 | { (exit 1); exit 1; }
|
---|
357 | fi
|
---|
358 |
|
---|
359 |
|
---|
360 | fi
|
---|
361 |
|
---|
362 | fi
|
---|
363 |
|
---|
364 |
|
---|
365 |
|
---|
366 | (eval "as_func_return () {
|
---|
367 | (exit \$1)
|
---|
368 | }
|
---|
369 | as_func_success () {
|
---|
370 | as_func_return 0
|
---|
371 | }
|
---|
372 | as_func_failure () {
|
---|
373 | as_func_return 1
|
---|
374 | }
|
---|
375 | as_func_ret_success () {
|
---|
376 | return 0
|
---|
377 | }
|
---|
378 | as_func_ret_failure () {
|
---|
379 | return 1
|
---|
380 | }
|
---|
381 |
|
---|
382 | exitcode=0
|
---|
383 | if as_func_success; then
|
---|
384 | :
|
---|
385 | else
|
---|
386 | exitcode=1
|
---|
387 | echo as_func_success failed.
|
---|
388 | fi
|
---|
389 |
|
---|
390 | if as_func_failure; then
|
---|
391 | exitcode=1
|
---|
392 | echo as_func_failure succeeded.
|
---|
393 | fi
|
---|
394 |
|
---|
395 | if as_func_ret_success; then
|
---|
396 | :
|
---|
397 | else
|
---|
398 | exitcode=1
|
---|
399 | echo as_func_ret_success failed.
|
---|
400 | fi
|
---|
401 |
|
---|
402 | if as_func_ret_failure; then
|
---|
403 | exitcode=1
|
---|
404 | echo as_func_ret_failure succeeded.
|
---|
405 | fi
|
---|
406 |
|
---|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
408 | :
|
---|
409 | else
|
---|
410 | exitcode=1
|
---|
411 | echo positional parameters were not saved.
|
---|
412 | fi
|
---|
413 |
|
---|
414 | test \$exitcode = 0") || {
|
---|
415 | echo No shell found that supports shell functions.
|
---|
416 | echo Please tell [email protected] about your system,
|
---|
417 | echo including any error possibly output before this
|
---|
418 | echo message
|
---|
419 | }
|
---|
420 |
|
---|
421 |
|
---|
422 |
|
---|
423 | as_lineno_1=$LINENO
|
---|
424 | as_lineno_2=$LINENO
|
---|
425 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
427 |
|
---|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
429 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
430 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
431 | # does the real work. The second script uses 'N' to pair each
|
---|
432 | # line-number line with the line containing $LINENO, and appends
|
---|
433 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
434 | # case at line end.
|
---|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
437 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
438 | sed -n '
|
---|
439 | p
|
---|
440 | /[$]LINENO/=
|
---|
441 | ' <$as_myself |
|
---|
442 | sed '
|
---|
443 | s/[$]LINENO.*/&-/
|
---|
444 | t lineno
|
---|
445 | b
|
---|
446 | :lineno
|
---|
447 | N
|
---|
448 | :loop
|
---|
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
450 | t loop
|
---|
451 | s/-\n.*//
|
---|
452 | ' >$as_me.lineno &&
|
---|
453 | chmod +x "$as_me.lineno" ||
|
---|
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
455 | { (exit 1); exit 1; }; }
|
---|
456 |
|
---|
457 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
458 | # (the dirname of $[0] is not the place where we might find the
|
---|
459 | # original and so on. Autoconf is especially sensitive to this).
|
---|
460 | . "./$as_me.lineno"
|
---|
461 | # Exit status is that of the last command.
|
---|
462 | exit
|
---|
463 | }
|
---|
464 |
|
---|
465 |
|
---|
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
467 | as_dirname=dirname
|
---|
468 | else
|
---|
469 | as_dirname=false
|
---|
470 | fi
|
---|
471 |
|
---|
472 | ECHO_C= ECHO_N= ECHO_T=
|
---|
473 | case `echo -n x` in
|
---|
474 | -n*)
|
---|
475 | case `echo 'x\c'` in
|
---|
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
477 | *) ECHO_C='\c';;
|
---|
478 | esac;;
|
---|
479 | *)
|
---|
480 | ECHO_N='-n';;
|
---|
481 | esac
|
---|
482 |
|
---|
483 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
485 | as_expr=expr
|
---|
486 | else
|
---|
487 | as_expr=false
|
---|
488 | fi
|
---|
489 |
|
---|
490 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
491 | if test -d conf$$.dir; then
|
---|
492 | rm -f conf$$.dir/conf$$.file
|
---|
493 | else
|
---|
494 | rm -f conf$$.dir
|
---|
495 | mkdir conf$$.dir
|
---|
496 | fi
|
---|
497 | echo >conf$$.file
|
---|
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
499 | as_ln_s='ln -s'
|
---|
500 | # ... but there are two gotchas:
|
---|
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
503 | # In both cases, we have to default to `cp -p'.
|
---|
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
505 | as_ln_s='cp -p'
|
---|
506 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
507 | as_ln_s=ln
|
---|
508 | else
|
---|
509 | as_ln_s='cp -p'
|
---|
510 | fi
|
---|
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
512 | rmdir conf$$.dir 2>/dev/null
|
---|
513 |
|
---|
514 | if mkdir -p . 2>/dev/null; then
|
---|
515 | as_mkdir_p=:
|
---|
516 | else
|
---|
517 | test -d ./-p && rmdir ./-p
|
---|
518 | as_mkdir_p=false
|
---|
519 | fi
|
---|
520 |
|
---|
521 | if test -x / >/dev/null 2>&1; then
|
---|
522 | as_test_x='test -x'
|
---|
523 | else
|
---|
524 | if ls -dL / >/dev/null 2>&1; then
|
---|
525 | as_ls_L_option=L
|
---|
526 | else
|
---|
527 | as_ls_L_option=
|
---|
528 | fi
|
---|
529 | as_test_x='
|
---|
530 | eval sh -c '\''
|
---|
531 | if test -d "$1"; then
|
---|
532 | test -d "$1/.";
|
---|
533 | else
|
---|
534 | case $1 in
|
---|
535 | -*)set "./$1";;
|
---|
536 | esac;
|
---|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
538 | ???[sx]*):;;*)false;;esac;fi
|
---|
539 | '\'' sh
|
---|
540 | '
|
---|
541 | fi
|
---|
542 | as_executable_p=$as_test_x
|
---|
543 |
|
---|
544 | # Sed expression to map a string onto a valid CPP name.
|
---|
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
546 |
|
---|
547 | # Sed expression to map a string onto a valid variable name.
|
---|
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
549 |
|
---|
550 |
|
---|
551 |
|
---|
552 | exec 7<&0 </dev/null 6>&1
|
---|
553 |
|
---|
554 | # Name of the host.
|
---|
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
556 | # so uname gets run too.
|
---|
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
558 |
|
---|
559 | #
|
---|
560 | # Initializations.
|
---|
561 | #
|
---|
562 | ac_default_prefix=/usr/local
|
---|
563 | ac_clean_files=
|
---|
564 | ac_config_libobj_dir=.
|
---|
565 | LIBOBJS=
|
---|
566 | cross_compiling=no
|
---|
567 | subdirs=
|
---|
568 | MFLAGS=
|
---|
569 | MAKEFLAGS=
|
---|
570 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
571 |
|
---|
572 | # Identity of this package.
|
---|
573 | PACKAGE_NAME=
|
---|
574 | PACKAGE_TARNAME=
|
---|
575 | PACKAGE_VERSION=
|
---|
576 | PACKAGE_STRING=
|
---|
577 | PACKAGE_BUGREPORT=
|
---|
578 |
|
---|
579 | ac_unique_file="text/MGQuery.cpp"
|
---|
580 | # Factoring default headers for most tests.
|
---|
581 | ac_includes_default="\
|
---|
582 | #include <stdio.h>
|
---|
583 | #ifdef HAVE_SYS_TYPES_H
|
---|
584 | # include <sys/types.h>
|
---|
585 | #endif
|
---|
586 | #ifdef HAVE_SYS_STAT_H
|
---|
587 | # include <sys/stat.h>
|
---|
588 | #endif
|
---|
589 | #ifdef STDC_HEADERS
|
---|
590 | # include <stdlib.h>
|
---|
591 | # include <stddef.h>
|
---|
592 | #else
|
---|
593 | # ifdef HAVE_STDLIB_H
|
---|
594 | # include <stdlib.h>
|
---|
595 | # endif
|
---|
596 | #endif
|
---|
597 | #ifdef HAVE_STRING_H
|
---|
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
599 | # include <memory.h>
|
---|
600 | # endif
|
---|
601 | # include <string.h>
|
---|
602 | #endif
|
---|
603 | #ifdef HAVE_STRINGS_H
|
---|
604 | # include <strings.h>
|
---|
605 | #endif
|
---|
606 | #ifdef HAVE_INTTYPES_H
|
---|
607 | # include <inttypes.h>
|
---|
608 | #endif
|
---|
609 | #ifdef HAVE_STDINT_H
|
---|
610 | # include <stdint.h>
|
---|
611 | #endif
|
---|
612 | #ifdef HAVE_UNISTD_H
|
---|
613 | # include <unistd.h>
|
---|
614 | #endif"
|
---|
615 |
|
---|
616 | ac_subst_vars='SHELL
|
---|
617 | PATH_SEPARATOR
|
---|
618 | PACKAGE_NAME
|
---|
619 | PACKAGE_TARNAME
|
---|
620 | PACKAGE_VERSION
|
---|
621 | PACKAGE_STRING
|
---|
622 | PACKAGE_BUGREPORT
|
---|
623 | exec_prefix
|
---|
624 | prefix
|
---|
625 | program_transform_name
|
---|
626 | bindir
|
---|
627 | sbindir
|
---|
628 | libexecdir
|
---|
629 | datarootdir
|
---|
630 | datadir
|
---|
631 | sysconfdir
|
---|
632 | sharedstatedir
|
---|
633 | localstatedir
|
---|
634 | includedir
|
---|
635 | oldincludedir
|
---|
636 | docdir
|
---|
637 | infodir
|
---|
638 | htmldir
|
---|
639 | dvidir
|
---|
640 | pdfdir
|
---|
641 | psdir
|
---|
642 | libdir
|
---|
643 | localedir
|
---|
644 | mandir
|
---|
645 | DEFS
|
---|
646 | ECHO_C
|
---|
647 | ECHO_N
|
---|
648 | ECHO_T
|
---|
649 | LIBS
|
---|
650 | build_alias
|
---|
651 | host_alias
|
---|
652 | target_alias
|
---|
653 | build
|
---|
654 | build_cpu
|
---|
655 | build_vendor
|
---|
656 | build_os
|
---|
657 | host
|
---|
658 | host_cpu
|
---|
659 | host_vendor
|
---|
660 | host_os
|
---|
661 | target
|
---|
662 | target_cpu
|
---|
663 | target_vendor
|
---|
664 | target_os
|
---|
665 | PACKAGE
|
---|
666 | VERSION
|
---|
667 | COMPAT32BITFLAGS
|
---|
668 | ENABLE_ACCENTFOLD
|
---|
669 | CXX
|
---|
670 | CXXFLAGS
|
---|
671 | LDFLAGS
|
---|
672 | CPPFLAGS
|
---|
673 | ac_ct_CXX
|
---|
674 | EXEEXT
|
---|
675 | OBJEXT
|
---|
676 | AWK
|
---|
677 | YACC
|
---|
678 | YFLAGS
|
---|
679 | CC
|
---|
680 | CFLAGS
|
---|
681 | ac_ct_CC
|
---|
682 | INSTALL_PROGRAM
|
---|
683 | INSTALL_SCRIPT
|
---|
684 | INSTALL_DATA
|
---|
685 | LN_S
|
---|
686 | SET_MAKE
|
---|
687 | RANLIB
|
---|
688 | CPP
|
---|
689 | GREP
|
---|
690 | EGREP
|
---|
691 | U
|
---|
692 | ANSI2KNR
|
---|
693 | UNAC_DIR
|
---|
694 | ALLOCA
|
---|
695 | LIBOBJS
|
---|
696 | JNIINC
|
---|
697 | JNISUFFIX
|
---|
698 | JNIFLAGS
|
---|
699 | LTLIBOBJS'
|
---|
700 | ac_subst_files=''
|
---|
701 | ac_precious_vars='build_alias
|
---|
702 | host_alias
|
---|
703 | target_alias
|
---|
704 | CXX
|
---|
705 | CXXFLAGS
|
---|
706 | LDFLAGS
|
---|
707 | LIBS
|
---|
708 | CPPFLAGS
|
---|
709 | CCC
|
---|
710 | YACC
|
---|
711 | YFLAGS
|
---|
712 | CC
|
---|
713 | CFLAGS
|
---|
714 | CPP'
|
---|
715 |
|
---|
716 |
|
---|
717 | # Initialize some variables set by options.
|
---|
718 | ac_init_help=
|
---|
719 | ac_init_version=false
|
---|
720 | # The variables have the same names as the options, with
|
---|
721 | # dashes changed to underlines.
|
---|
722 | cache_file=/dev/null
|
---|
723 | exec_prefix=NONE
|
---|
724 | no_create=
|
---|
725 | no_recursion=
|
---|
726 | prefix=NONE
|
---|
727 | program_prefix=NONE
|
---|
728 | program_suffix=NONE
|
---|
729 | program_transform_name=s,x,x,
|
---|
730 | silent=
|
---|
731 | site=
|
---|
732 | srcdir=
|
---|
733 | verbose=
|
---|
734 | x_includes=NONE
|
---|
735 | x_libraries=NONE
|
---|
736 |
|
---|
737 | # Installation directory options.
|
---|
738 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
739 | # and all the variables that are supposed to be based on exec_prefix
|
---|
740 | # by default will actually change.
|
---|
741 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
742 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
743 | bindir='${exec_prefix}/bin'
|
---|
744 | sbindir='${exec_prefix}/sbin'
|
---|
745 | libexecdir='${exec_prefix}/libexec'
|
---|
746 | datarootdir='${prefix}/share'
|
---|
747 | datadir='${datarootdir}'
|
---|
748 | sysconfdir='${prefix}/etc'
|
---|
749 | sharedstatedir='${prefix}/com'
|
---|
750 | localstatedir='${prefix}/var'
|
---|
751 | includedir='${prefix}/include'
|
---|
752 | oldincludedir='/usr/include'
|
---|
753 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
754 | infodir='${datarootdir}/info'
|
---|
755 | htmldir='${docdir}'
|
---|
756 | dvidir='${docdir}'
|
---|
757 | pdfdir='${docdir}'
|
---|
758 | psdir='${docdir}'
|
---|
759 | libdir='${exec_prefix}/lib'
|
---|
760 | localedir='${datarootdir}/locale'
|
---|
761 | mandir='${datarootdir}/man'
|
---|
762 |
|
---|
763 | ac_prev=
|
---|
764 | ac_dashdash=
|
---|
765 | for ac_option
|
---|
766 | do
|
---|
767 | # If the previous option needs an argument, assign it.
|
---|
768 | if test -n "$ac_prev"; then
|
---|
769 | eval $ac_prev=\$ac_option
|
---|
770 | ac_prev=
|
---|
771 | continue
|
---|
772 | fi
|
---|
773 |
|
---|
774 | case $ac_option in
|
---|
775 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
776 | *) ac_optarg=yes ;;
|
---|
777 | esac
|
---|
778 |
|
---|
779 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
780 |
|
---|
781 | case $ac_dashdash$ac_option in
|
---|
782 | --)
|
---|
783 | ac_dashdash=yes ;;
|
---|
784 |
|
---|
785 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
786 | ac_prev=bindir ;;
|
---|
787 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
788 | bindir=$ac_optarg ;;
|
---|
789 |
|
---|
790 | -build | --build | --buil | --bui | --bu)
|
---|
791 | ac_prev=build_alias ;;
|
---|
792 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
793 | build_alias=$ac_optarg ;;
|
---|
794 |
|
---|
795 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
796 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
797 | ac_prev=cache_file ;;
|
---|
798 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
799 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
800 | cache_file=$ac_optarg ;;
|
---|
801 |
|
---|
802 | --config-cache | -C)
|
---|
803 | cache_file=config.cache ;;
|
---|
804 |
|
---|
805 | -datadir | --datadir | --datadi | --datad)
|
---|
806 | ac_prev=datadir ;;
|
---|
807 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
808 | datadir=$ac_optarg ;;
|
---|
809 |
|
---|
810 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
811 | | --dataroo | --dataro | --datar)
|
---|
812 | ac_prev=datarootdir ;;
|
---|
813 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
814 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
815 | datarootdir=$ac_optarg ;;
|
---|
816 |
|
---|
817 | -disable-* | --disable-*)
|
---|
818 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
819 | # Reject names that are not valid shell variable names.
|
---|
820 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
821 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
822 | { (exit 1); exit 1; }; }
|
---|
823 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
824 | eval enable_$ac_feature=no ;;
|
---|
825 |
|
---|
826 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
827 | ac_prev=docdir ;;
|
---|
828 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
829 | docdir=$ac_optarg ;;
|
---|
830 |
|
---|
831 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
832 | ac_prev=dvidir ;;
|
---|
833 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
834 | dvidir=$ac_optarg ;;
|
---|
835 |
|
---|
836 | -enable-* | --enable-*)
|
---|
837 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
838 | # Reject names that are not valid shell variable names.
|
---|
839 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
840 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
841 | { (exit 1); exit 1; }; }
|
---|
842 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
843 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
844 |
|
---|
845 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
846 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
847 | | --exec | --exe | --ex)
|
---|
848 | ac_prev=exec_prefix ;;
|
---|
849 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
850 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
851 | | --exec=* | --exe=* | --ex=*)
|
---|
852 | exec_prefix=$ac_optarg ;;
|
---|
853 |
|
---|
854 | -gas | --gas | --ga | --g)
|
---|
855 | # Obsolete; use --with-gas.
|
---|
856 | with_gas=yes ;;
|
---|
857 |
|
---|
858 | -help | --help | --hel | --he | -h)
|
---|
859 | ac_init_help=long ;;
|
---|
860 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
861 | ac_init_help=recursive ;;
|
---|
862 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
863 | ac_init_help=short ;;
|
---|
864 |
|
---|
865 | -host | --host | --hos | --ho)
|
---|
866 | ac_prev=host_alias ;;
|
---|
867 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
868 | host_alias=$ac_optarg ;;
|
---|
869 |
|
---|
870 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
871 | ac_prev=htmldir ;;
|
---|
872 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
873 | | --ht=*)
|
---|
874 | htmldir=$ac_optarg ;;
|
---|
875 |
|
---|
876 | -includedir | --includedir | --includedi | --included | --include \
|
---|
877 | | --includ | --inclu | --incl | --inc)
|
---|
878 | ac_prev=includedir ;;
|
---|
879 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
880 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
881 | includedir=$ac_optarg ;;
|
---|
882 |
|
---|
883 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
884 | ac_prev=infodir ;;
|
---|
885 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
886 | infodir=$ac_optarg ;;
|
---|
887 |
|
---|
888 | -libdir | --libdir | --libdi | --libd)
|
---|
889 | ac_prev=libdir ;;
|
---|
890 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
891 | libdir=$ac_optarg ;;
|
---|
892 |
|
---|
893 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
894 | | --libexe | --libex | --libe)
|
---|
895 | ac_prev=libexecdir ;;
|
---|
896 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
897 | | --libexe=* | --libex=* | --libe=*)
|
---|
898 | libexecdir=$ac_optarg ;;
|
---|
899 |
|
---|
900 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
901 | ac_prev=localedir ;;
|
---|
902 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
903 | localedir=$ac_optarg ;;
|
---|
904 |
|
---|
905 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
906 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
907 | ac_prev=localstatedir ;;
|
---|
908 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
909 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
910 | localstatedir=$ac_optarg ;;
|
---|
911 |
|
---|
912 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
913 | ac_prev=mandir ;;
|
---|
914 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
915 | mandir=$ac_optarg ;;
|
---|
916 |
|
---|
917 | -nfp | --nfp | --nf)
|
---|
918 | # Obsolete; use --without-fp.
|
---|
919 | with_fp=no ;;
|
---|
920 |
|
---|
921 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
922 | | --no-cr | --no-c | -n)
|
---|
923 | no_create=yes ;;
|
---|
924 |
|
---|
925 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
926 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
927 | no_recursion=yes ;;
|
---|
928 |
|
---|
929 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
930 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
931 | | --oldin | --oldi | --old | --ol | --o)
|
---|
932 | ac_prev=oldincludedir ;;
|
---|
933 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
934 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
935 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
936 | oldincludedir=$ac_optarg ;;
|
---|
937 |
|
---|
938 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
939 | ac_prev=prefix ;;
|
---|
940 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
941 | prefix=$ac_optarg ;;
|
---|
942 |
|
---|
943 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
944 | | --program-pre | --program-pr | --program-p)
|
---|
945 | ac_prev=program_prefix ;;
|
---|
946 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
947 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
948 | program_prefix=$ac_optarg ;;
|
---|
949 |
|
---|
950 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
951 | | --program-suf | --program-su | --program-s)
|
---|
952 | ac_prev=program_suffix ;;
|
---|
953 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
954 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
955 | program_suffix=$ac_optarg ;;
|
---|
956 |
|
---|
957 | -program-transform-name | --program-transform-name \
|
---|
958 | | --program-transform-nam | --program-transform-na \
|
---|
959 | | --program-transform-n | --program-transform- \
|
---|
960 | | --program-transform | --program-transfor \
|
---|
961 | | --program-transfo | --program-transf \
|
---|
962 | | --program-trans | --program-tran \
|
---|
963 | | --progr-tra | --program-tr | --program-t)
|
---|
964 | ac_prev=program_transform_name ;;
|
---|
965 | -program-transform-name=* | --program-transform-name=* \
|
---|
966 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
967 | | --program-transform-n=* | --program-transform-=* \
|
---|
968 | | --program-transform=* | --program-transfor=* \
|
---|
969 | | --program-transfo=* | --program-transf=* \
|
---|
970 | | --program-trans=* | --program-tran=* \
|
---|
971 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
972 | program_transform_name=$ac_optarg ;;
|
---|
973 |
|
---|
974 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
975 | ac_prev=pdfdir ;;
|
---|
976 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
977 | pdfdir=$ac_optarg ;;
|
---|
978 |
|
---|
979 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
980 | ac_prev=psdir ;;
|
---|
981 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
982 | psdir=$ac_optarg ;;
|
---|
983 |
|
---|
984 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
985 | | -silent | --silent | --silen | --sile | --sil)
|
---|
986 | silent=yes ;;
|
---|
987 |
|
---|
988 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
989 | ac_prev=sbindir ;;
|
---|
990 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
991 | | --sbi=* | --sb=*)
|
---|
992 | sbindir=$ac_optarg ;;
|
---|
993 |
|
---|
994 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
995 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
996 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
997 | | --sha | --sh)
|
---|
998 | ac_prev=sharedstatedir ;;
|
---|
999 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1000 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1001 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1002 | | --sha=* | --sh=*)
|
---|
1003 | sharedstatedir=$ac_optarg ;;
|
---|
1004 |
|
---|
1005 | -site | --site | --sit)
|
---|
1006 | ac_prev=site ;;
|
---|
1007 | -site=* | --site=* | --sit=*)
|
---|
1008 | site=$ac_optarg ;;
|
---|
1009 |
|
---|
1010 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1011 | ac_prev=srcdir ;;
|
---|
1012 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1013 | srcdir=$ac_optarg ;;
|
---|
1014 |
|
---|
1015 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1016 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1017 | ac_prev=sysconfdir ;;
|
---|
1018 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1019 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1020 | sysconfdir=$ac_optarg ;;
|
---|
1021 |
|
---|
1022 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1023 | ac_prev=target_alias ;;
|
---|
1024 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1025 | target_alias=$ac_optarg ;;
|
---|
1026 |
|
---|
1027 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1028 | verbose=yes ;;
|
---|
1029 |
|
---|
1030 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1031 | ac_init_version=: ;;
|
---|
1032 |
|
---|
1033 | -with-* | --with-*)
|
---|
1034 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1035 | # Reject names that are not valid shell variable names.
|
---|
1036 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1037 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1038 | { (exit 1); exit 1; }; }
|
---|
1039 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1040 | eval with_$ac_package=\$ac_optarg ;;
|
---|
1041 |
|
---|
1042 | -without-* | --without-*)
|
---|
1043 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1044 | # Reject names that are not valid shell variable names.
|
---|
1045 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1046 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1047 | { (exit 1); exit 1; }; }
|
---|
1048 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1049 | eval with_$ac_package=no ;;
|
---|
1050 |
|
---|
1051 | --x)
|
---|
1052 | # Obsolete; use --with-x.
|
---|
1053 | with_x=yes ;;
|
---|
1054 |
|
---|
1055 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1056 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1057 | ac_prev=x_includes ;;
|
---|
1058 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1059 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1060 | x_includes=$ac_optarg ;;
|
---|
1061 |
|
---|
1062 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1063 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1064 | ac_prev=x_libraries ;;
|
---|
1065 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1066 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1067 | x_libraries=$ac_optarg ;;
|
---|
1068 |
|
---|
1069 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
1070 | Try \`$0 --help' for more information." >&2
|
---|
1071 | { (exit 1); exit 1; }; }
|
---|
1072 | ;;
|
---|
1073 |
|
---|
1074 | *=*)
|
---|
1075 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1076 | # Reject names that are not valid shell variable names.
|
---|
1077 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
1078 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
1079 | { (exit 1); exit 1; }; }
|
---|
1080 | eval $ac_envvar=\$ac_optarg
|
---|
1081 | export $ac_envvar ;;
|
---|
1082 |
|
---|
1083 | *)
|
---|
1084 | # FIXME: should be removed in autoconf 3.0.
|
---|
1085 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1086 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1087 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1088 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1089 | ;;
|
---|
1090 |
|
---|
1091 | esac
|
---|
1092 | done
|
---|
1093 |
|
---|
1094 | if test -n "$ac_prev"; then
|
---|
1095 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1096 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
1097 | { (exit 1); exit 1; }; }
|
---|
1098 | fi
|
---|
1099 |
|
---|
1100 | # Be sure to have absolute directory names.
|
---|
1101 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1102 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1103 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1104 | libdir localedir mandir
|
---|
1105 | do
|
---|
1106 | eval ac_val=\$$ac_var
|
---|
1107 | case $ac_val in
|
---|
1108 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1109 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1110 | esac
|
---|
1111 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
1112 | { (exit 1); exit 1; }; }
|
---|
1113 | done
|
---|
1114 |
|
---|
1115 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1116 | # used to hold the argument of --host etc.
|
---|
1117 | # FIXME: To remove some day.
|
---|
1118 | build=$build_alias
|
---|
1119 | host=$host_alias
|
---|
1120 | target=$target_alias
|
---|
1121 |
|
---|
1122 | # FIXME: To remove some day.
|
---|
1123 | if test "x$host_alias" != x; then
|
---|
1124 | if test "x$build_alias" = x; then
|
---|
1125 | cross_compiling=maybe
|
---|
1126 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
1127 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
1128 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1129 | cross_compiling=yes
|
---|
1130 | fi
|
---|
1131 | fi
|
---|
1132 |
|
---|
1133 | ac_tool_prefix=
|
---|
1134 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1135 |
|
---|
1136 | test "$silent" = yes && exec 6>/dev/null
|
---|
1137 |
|
---|
1138 |
|
---|
1139 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1140 | ac_ls_di=`ls -di .` &&
|
---|
1141 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1142 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
1143 | { (exit 1); exit 1; }; }
|
---|
1144 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1145 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
1146 | { (exit 1); exit 1; }; }
|
---|
1147 |
|
---|
1148 |
|
---|
1149 | # Find the source files, if location was not specified.
|
---|
1150 | if test -z "$srcdir"; then
|
---|
1151 | ac_srcdir_defaulted=yes
|
---|
1152 | # Try the directory containing this script, then the parent directory.
|
---|
1153 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
1154 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1155 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
1156 | X"$0" : 'X\(//\)$' \| \
|
---|
1157 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1158 | echo X"$0" |
|
---|
1159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1160 | s//\1/
|
---|
1161 | q
|
---|
1162 | }
|
---|
1163 | /^X\(\/\/\)[^/].*/{
|
---|
1164 | s//\1/
|
---|
1165 | q
|
---|
1166 | }
|
---|
1167 | /^X\(\/\/\)$/{
|
---|
1168 | s//\1/
|
---|
1169 | q
|
---|
1170 | }
|
---|
1171 | /^X\(\/\).*/{
|
---|
1172 | s//\1/
|
---|
1173 | q
|
---|
1174 | }
|
---|
1175 | s/.*/./; q'`
|
---|
1176 | srcdir=$ac_confdir
|
---|
1177 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1178 | srcdir=..
|
---|
1179 | fi
|
---|
1180 | else
|
---|
1181 | ac_srcdir_defaulted=no
|
---|
1182 | fi
|
---|
1183 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1184 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1185 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
1186 | { (exit 1); exit 1; }; }
|
---|
1187 | fi
|
---|
1188 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1189 | ac_abs_confdir=`(
|
---|
1190 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
1191 | { (exit 1); exit 1; }; }
|
---|
1192 | pwd)`
|
---|
1193 | # When building in place, set srcdir=.
|
---|
1194 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1195 | srcdir=.
|
---|
1196 | fi
|
---|
1197 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1198 | # Double slashes in file names in object file debugging info
|
---|
1199 | # mess up M-x gdb in Emacs.
|
---|
1200 | case $srcdir in
|
---|
1201 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1202 | esac
|
---|
1203 | for ac_var in $ac_precious_vars; do
|
---|
1204 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1205 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1206 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1207 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1208 | done
|
---|
1209 |
|
---|
1210 | #
|
---|
1211 | # Report the --help message.
|
---|
1212 | #
|
---|
1213 | if test "$ac_init_help" = "long"; then
|
---|
1214 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1215 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1216 | cat <<_ACEOF
|
---|
1217 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1218 |
|
---|
1219 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1220 |
|
---|
1221 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1222 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1223 |
|
---|
1224 | Defaults for the options are specified in brackets.
|
---|
1225 |
|
---|
1226 | Configuration:
|
---|
1227 | -h, --help display this help and exit
|
---|
1228 | --help=short display options specific to this package
|
---|
1229 | --help=recursive display the short help of all the included packages
|
---|
1230 | -V, --version display version information and exit
|
---|
1231 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
1232 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1233 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1234 | -n, --no-create do not create output files
|
---|
1235 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1236 |
|
---|
1237 | Installation directories:
|
---|
1238 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1239 | [$ac_default_prefix]
|
---|
1240 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1241 | [PREFIX]
|
---|
1242 |
|
---|
1243 | By default, \`make install' will install all the files in
|
---|
1244 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1245 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1246 | for instance \`--prefix=\$HOME'.
|
---|
1247 |
|
---|
1248 | For better control, use the options below.
|
---|
1249 |
|
---|
1250 | Fine tuning of the installation directories:
|
---|
1251 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1252 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1253 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1254 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1255 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1256 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1257 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1258 | --includedir=DIR C header files [PREFIX/include]
|
---|
1259 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1260 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1261 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1262 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1263 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1264 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1265 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1266 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1267 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1268 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1269 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1270 | _ACEOF
|
---|
1271 |
|
---|
1272 | cat <<\_ACEOF
|
---|
1273 |
|
---|
1274 | Program names:
|
---|
1275 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1276 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1277 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1278 |
|
---|
1279 | System types:
|
---|
1280 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1281 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1282 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1283 | _ACEOF
|
---|
1284 | fi
|
---|
1285 |
|
---|
1286 | if test -n "$ac_init_help"; then
|
---|
1287 |
|
---|
1288 | cat <<\_ACEOF
|
---|
1289 |
|
---|
1290 | Optional Features:
|
---|
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1293 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1294 | --enable-override-longlong
|
---|
1295 | overide use of long long with GCC
|
---|
1296 |
|
---|
1297 | Optional Packages:
|
---|
1298 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1299 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1300 | --with-unac=dir Use local unac library and headers
|
---|
1301 | --with-dmalloc use dmalloc, as in
|
---|
1302 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1303 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1304 | --with-gnu-readline compile with GNU readline support
|
---|
1305 |
|
---|
1306 | Some influential environment variables:
|
---|
1307 | CXX C++ compiler command
|
---|
1308 | CXXFLAGS C++ compiler flags
|
---|
1309 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1310 | nonstandard directory <lib dir>
|
---|
1311 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1312 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
1313 | you have headers in a nonstandard directory <include dir>
|
---|
1314 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
1315 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
1316 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1317 | This script will default YFLAGS to the empty string to avoid a
|
---|
1318 | default value of `-d' given by some make applications.
|
---|
1319 | CC C compiler command
|
---|
1320 | CFLAGS C compiler flags
|
---|
1321 | CPP C preprocessor
|
---|
1322 |
|
---|
1323 | Use these variables to override the choices made by `configure' or to help
|
---|
1324 | it to find libraries and programs with nonstandard names/locations.
|
---|
1325 |
|
---|
1326 | _ACEOF
|
---|
1327 | ac_status=$?
|
---|
1328 | fi
|
---|
1329 |
|
---|
1330 | if test "$ac_init_help" = "recursive"; then
|
---|
1331 | # If there are subdirs, report their specific --help.
|
---|
1332 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1333 | test -d "$ac_dir" || continue
|
---|
1334 | ac_builddir=.
|
---|
1335 |
|
---|
1336 | case "$ac_dir" in
|
---|
1337 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1338 | *)
|
---|
1339 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
1340 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1341 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
1342 | case $ac_top_builddir_sub in
|
---|
1343 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1344 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1345 | esac ;;
|
---|
1346 | esac
|
---|
1347 | ac_abs_top_builddir=$ac_pwd
|
---|
1348 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1349 | # for backward compatibility:
|
---|
1350 | ac_top_builddir=$ac_top_build_prefix
|
---|
1351 |
|
---|
1352 | case $srcdir in
|
---|
1353 | .) # We are building in place.
|
---|
1354 | ac_srcdir=.
|
---|
1355 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1356 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1357 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1358 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1359 | ac_top_srcdir=$srcdir
|
---|
1360 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1361 | *) # Relative name.
|
---|
1362 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1363 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1364 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1365 | esac
|
---|
1366 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1367 |
|
---|
1368 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1369 | # Check for guested configure.
|
---|
1370 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1371 | echo &&
|
---|
1372 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1373 | elif test -f "$ac_srcdir/configure"; then
|
---|
1374 | echo &&
|
---|
1375 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1376 | else
|
---|
1377 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1378 | fi || ac_status=$?
|
---|
1379 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1380 | done
|
---|
1381 | fi
|
---|
1382 |
|
---|
1383 | test -n "$ac_init_help" && exit $ac_status
|
---|
1384 | if $ac_init_version; then
|
---|
1385 | cat <<\_ACEOF
|
---|
1386 | configure
|
---|
1387 | generated by GNU Autoconf 2.61
|
---|
1388 |
|
---|
1389 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
1390 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
1391 | This configure script is free software; the Free Software Foundation
|
---|
1392 | gives unlimited permission to copy, distribute and modify it.
|
---|
1393 | _ACEOF
|
---|
1394 | exit
|
---|
1395 | fi
|
---|
1396 | cat >config.log <<_ACEOF
|
---|
1397 | This file contains any messages produced by compilers while
|
---|
1398 | running configure, to aid debugging if configure makes a mistake.
|
---|
1399 |
|
---|
1400 | It was created by $as_me, which was
|
---|
1401 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
1402 |
|
---|
1403 | $ $0 $@
|
---|
1404 |
|
---|
1405 | _ACEOF
|
---|
1406 | exec 5>>config.log
|
---|
1407 | {
|
---|
1408 | cat <<_ASUNAME
|
---|
1409 | ## --------- ##
|
---|
1410 | ## Platform. ##
|
---|
1411 | ## --------- ##
|
---|
1412 |
|
---|
1413 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1414 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1415 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1416 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1417 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1418 |
|
---|
1419 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1420 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1421 |
|
---|
1422 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1423 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1424 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1425 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1426 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1427 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1428 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1429 |
|
---|
1430 | _ASUNAME
|
---|
1431 |
|
---|
1432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1433 | for as_dir in $PATH
|
---|
1434 | do
|
---|
1435 | IFS=$as_save_IFS
|
---|
1436 | test -z "$as_dir" && as_dir=.
|
---|
1437 | echo "PATH: $as_dir"
|
---|
1438 | done
|
---|
1439 | IFS=$as_save_IFS
|
---|
1440 |
|
---|
1441 | } >&5
|
---|
1442 |
|
---|
1443 | cat >&5 <<_ACEOF
|
---|
1444 |
|
---|
1445 |
|
---|
1446 | ## ----------- ##
|
---|
1447 | ## Core tests. ##
|
---|
1448 | ## ----------- ##
|
---|
1449 |
|
---|
1450 | _ACEOF
|
---|
1451 |
|
---|
1452 |
|
---|
1453 | # Keep a trace of the command line.
|
---|
1454 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1455 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1456 | # Also quote any args containing shell meta-characters.
|
---|
1457 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1458 | ac_configure_args=
|
---|
1459 | ac_configure_args0=
|
---|
1460 | ac_configure_args1=
|
---|
1461 | ac_must_keep_next=false
|
---|
1462 | for ac_pass in 1 2
|
---|
1463 | do
|
---|
1464 | for ac_arg
|
---|
1465 | do
|
---|
1466 | case $ac_arg in
|
---|
1467 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1468 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1469 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1470 | continue ;;
|
---|
1471 | *\'*)
|
---|
1472 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1473 | esac
|
---|
1474 | case $ac_pass in
|
---|
1475 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1476 | 2)
|
---|
1477 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1478 | if test $ac_must_keep_next = true; then
|
---|
1479 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1480 | else
|
---|
1481 | case $ac_arg in
|
---|
1482 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1483 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1484 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1485 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1486 | case "$ac_configure_args0 " in
|
---|
1487 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1488 | esac
|
---|
1489 | ;;
|
---|
1490 | -* ) ac_must_keep_next=true ;;
|
---|
1491 | esac
|
---|
1492 | fi
|
---|
1493 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
1494 | ;;
|
---|
1495 | esac
|
---|
1496 | done
|
---|
1497 | done
|
---|
1498 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1499 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1500 |
|
---|
1501 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1502 | # config.log. We remove comments because anyway the quotes in there
|
---|
1503 | # would cause problems or look ugly.
|
---|
1504 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
1505 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
1506 | trap 'exit_status=$?
|
---|
1507 | # Save into config.log some information that might help in debugging.
|
---|
1508 | {
|
---|
1509 | echo
|
---|
1510 |
|
---|
1511 | cat <<\_ASBOX
|
---|
1512 | ## ---------------- ##
|
---|
1513 | ## Cache variables. ##
|
---|
1514 | ## ---------------- ##
|
---|
1515 | _ASBOX
|
---|
1516 | echo
|
---|
1517 | # The following way of writing the cache mishandles newlines in values,
|
---|
1518 | (
|
---|
1519 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
1520 | eval ac_val=\$$ac_var
|
---|
1521 | case $ac_val in #(
|
---|
1522 | *${as_nl}*)
|
---|
1523 | case $ac_var in #(
|
---|
1524 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
1525 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
1526 | esac
|
---|
1527 | case $ac_var in #(
|
---|
1528 | _ | IFS | as_nl) ;; #(
|
---|
1529 | *) $as_unset $ac_var ;;
|
---|
1530 | esac ;;
|
---|
1531 | esac
|
---|
1532 | done
|
---|
1533 | (set) 2>&1 |
|
---|
1534 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
1535 | *${as_nl}ac_space=\ *)
|
---|
1536 | sed -n \
|
---|
1537 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
1538 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
1539 | ;; #(
|
---|
1540 | *)
|
---|
1541 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
1542 | ;;
|
---|
1543 | esac |
|
---|
1544 | sort
|
---|
1545 | )
|
---|
1546 | echo
|
---|
1547 |
|
---|
1548 | cat <<\_ASBOX
|
---|
1549 | ## ----------------- ##
|
---|
1550 | ## Output variables. ##
|
---|
1551 | ## ----------------- ##
|
---|
1552 | _ASBOX
|
---|
1553 | echo
|
---|
1554 | for ac_var in $ac_subst_vars
|
---|
1555 | do
|
---|
1556 | eval ac_val=\$$ac_var
|
---|
1557 | case $ac_val in
|
---|
1558 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1559 | esac
|
---|
1560 | echo "$ac_var='\''$ac_val'\''"
|
---|
1561 | done | sort
|
---|
1562 | echo
|
---|
1563 |
|
---|
1564 | if test -n "$ac_subst_files"; then
|
---|
1565 | cat <<\_ASBOX
|
---|
1566 | ## ------------------- ##
|
---|
1567 | ## File substitutions. ##
|
---|
1568 | ## ------------------- ##
|
---|
1569 | _ASBOX
|
---|
1570 | echo
|
---|
1571 | for ac_var in $ac_subst_files
|
---|
1572 | do
|
---|
1573 | eval ac_val=\$$ac_var
|
---|
1574 | case $ac_val in
|
---|
1575 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1576 | esac
|
---|
1577 | echo "$ac_var='\''$ac_val'\''"
|
---|
1578 | done | sort
|
---|
1579 | echo
|
---|
1580 | fi
|
---|
1581 |
|
---|
1582 | if test -s confdefs.h; then
|
---|
1583 | cat <<\_ASBOX
|
---|
1584 | ## ----------- ##
|
---|
1585 | ## confdefs.h. ##
|
---|
1586 | ## ----------- ##
|
---|
1587 | _ASBOX
|
---|
1588 | echo
|
---|
1589 | cat confdefs.h
|
---|
1590 | echo
|
---|
1591 | fi
|
---|
1592 | test "$ac_signal" != 0 &&
|
---|
1593 | echo "$as_me: caught signal $ac_signal"
|
---|
1594 | echo "$as_me: exit $exit_status"
|
---|
1595 | } >&5
|
---|
1596 | rm -f core *.core core.conftest.* &&
|
---|
1597 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1598 | exit $exit_status
|
---|
1599 | ' 0
|
---|
1600 | for ac_signal in 1 2 13 15; do
|
---|
1601 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1602 | done
|
---|
1603 | ac_signal=0
|
---|
1604 |
|
---|
1605 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1606 | rm -f -r conftest* confdefs.h
|
---|
1607 |
|
---|
1608 | # Predefined preprocessor variables.
|
---|
1609 |
|
---|
1610 | cat >>confdefs.h <<_ACEOF
|
---|
1611 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1612 | _ACEOF
|
---|
1613 |
|
---|
1614 |
|
---|
1615 | cat >>confdefs.h <<_ACEOF
|
---|
1616 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1617 | _ACEOF
|
---|
1618 |
|
---|
1619 |
|
---|
1620 | cat >>confdefs.h <<_ACEOF
|
---|
1621 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1622 | _ACEOF
|
---|
1623 |
|
---|
1624 |
|
---|
1625 | cat >>confdefs.h <<_ACEOF
|
---|
1626 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1627 | _ACEOF
|
---|
1628 |
|
---|
1629 |
|
---|
1630 | cat >>confdefs.h <<_ACEOF
|
---|
1631 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1632 | _ACEOF
|
---|
1633 |
|
---|
1634 |
|
---|
1635 | # Let the site file select an alternate cache file if it wants to.
|
---|
1636 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1637 | if test -n "$CONFIG_SITE"; then
|
---|
1638 | set x "$CONFIG_SITE"
|
---|
1639 | elif test "x$prefix" != xNONE; then
|
---|
1640 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
1641 | else
|
---|
1642 | set x "$ac_default_prefix/share/config.site" \
|
---|
1643 | "$ac_default_prefix/etc/config.site"
|
---|
1644 | fi
|
---|
1645 | shift
|
---|
1646 | for ac_site_file
|
---|
1647 | do
|
---|
1648 | if test -r "$ac_site_file"; then
|
---|
1649 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1650 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1651 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1652 | . "$ac_site_file"
|
---|
1653 | fi
|
---|
1654 | done
|
---|
1655 |
|
---|
1656 | if test -r "$cache_file"; then
|
---|
1657 | # Some versions of bash will fail to source /dev/null (special
|
---|
1658 | # files actually), so we avoid doing that.
|
---|
1659 | if test -f "$cache_file"; then
|
---|
1660 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1661 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1662 | case $cache_file in
|
---|
1663 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
1664 | *) . "./$cache_file";;
|
---|
1665 | esac
|
---|
1666 | fi
|
---|
1667 | else
|
---|
1668 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1669 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1670 | >$cache_file
|
---|
1671 | fi
|
---|
1672 |
|
---|
1673 | # Check that the precious variables saved in the cache have kept the same
|
---|
1674 | # value.
|
---|
1675 | ac_cache_corrupted=false
|
---|
1676 | for ac_var in $ac_precious_vars; do
|
---|
1677 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1678 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1679 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
1680 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
1681 | case $ac_old_set,$ac_new_set in
|
---|
1682 | set,)
|
---|
1683 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1684 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1685 | ac_cache_corrupted=: ;;
|
---|
1686 | ,set)
|
---|
1687 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1688 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1689 | ac_cache_corrupted=: ;;
|
---|
1690 | ,);;
|
---|
1691 | *)
|
---|
1692 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1693 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1694 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1695 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1696 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1697 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1698 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1699 | ac_cache_corrupted=:
|
---|
1700 | fi;;
|
---|
1701 | esac
|
---|
1702 | # Pass precious variables to config.status.
|
---|
1703 | if test "$ac_new_set" = set; then
|
---|
1704 | case $ac_new_val in
|
---|
1705 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1706 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1707 | esac
|
---|
1708 | case " $ac_configure_args " in
|
---|
1709 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1710 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1711 | esac
|
---|
1712 | fi
|
---|
1713 | done
|
---|
1714 | if $ac_cache_corrupted; then
|
---|
1715 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1716 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1717 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1718 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1719 | { (exit 1); exit 1; }; }
|
---|
1720 | fi
|
---|
1721 |
|
---|
1722 |
|
---|
1723 |
|
---|
1724 |
|
---|
1725 |
|
---|
1726 |
|
---|
1727 |
|
---|
1728 |
|
---|
1729 |
|
---|
1730 |
|
---|
1731 |
|
---|
1732 |
|
---|
1733 |
|
---|
1734 |
|
---|
1735 |
|
---|
1736 |
|
---|
1737 |
|
---|
1738 | ac_ext=c
|
---|
1739 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1743 |
|
---|
1744 |
|
---|
1745 | ac_config_headers="$ac_config_headers config.h"
|
---|
1746 |
|
---|
1747 |
|
---|
1748 | ac_aux_dir=
|
---|
1749 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
1750 | if test -f "$ac_dir/install-sh"; then
|
---|
1751 | ac_aux_dir=$ac_dir
|
---|
1752 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1753 | break
|
---|
1754 | elif test -f "$ac_dir/install.sh"; then
|
---|
1755 | ac_aux_dir=$ac_dir
|
---|
1756 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1757 | break
|
---|
1758 | elif test -f "$ac_dir/shtool"; then
|
---|
1759 | ac_aux_dir=$ac_dir
|
---|
1760 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
1761 | break
|
---|
1762 | fi
|
---|
1763 | done
|
---|
1764 | if test -z "$ac_aux_dir"; then
|
---|
1765 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
1766 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
1767 | { (exit 1); exit 1; }; }
|
---|
1768 | fi
|
---|
1769 |
|
---|
1770 | # These three variables are undocumented and unsupported,
|
---|
1771 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
1772 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
1773 | # whose full name contains unusual characters.
|
---|
1774 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
1775 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
1776 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
1777 |
|
---|
1778 |
|
---|
1779 | # Make sure we can run config.sub.
|
---|
1780 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
1781 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
1782 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
1783 | { (exit 1); exit 1; }; }
|
---|
1784 |
|
---|
1785 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
1786 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
1787 | if test "${ac_cv_build+set}" = set; then
|
---|
1788 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1789 | else
|
---|
1790 | ac_build_alias=$build_alias
|
---|
1791 | test "x$ac_build_alias" = x &&
|
---|
1792 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
1793 | test "x$ac_build_alias" = x &&
|
---|
1794 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
1795 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
1796 | { (exit 1); exit 1; }; }
|
---|
1797 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
1798 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
1799 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
1800 | { (exit 1); exit 1; }; }
|
---|
1801 |
|
---|
1802 | fi
|
---|
1803 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
1804 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
1805 | case $ac_cv_build in
|
---|
1806 | *-*-*) ;;
|
---|
1807 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
1808 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
1809 | { (exit 1); exit 1; }; };;
|
---|
1810 | esac
|
---|
1811 | build=$ac_cv_build
|
---|
1812 | ac_save_IFS=$IFS; IFS='-'
|
---|
1813 | set x $ac_cv_build
|
---|
1814 | shift
|
---|
1815 | build_cpu=$1
|
---|
1816 | build_vendor=$2
|
---|
1817 | shift; shift
|
---|
1818 | # Remember, the first character of IFS is used to create $*,
|
---|
1819 | # except with old shells:
|
---|
1820 | build_os=$*
|
---|
1821 | IFS=$ac_save_IFS
|
---|
1822 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
1823 |
|
---|
1824 |
|
---|
1825 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
1826 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
1827 | if test "${ac_cv_host+set}" = set; then
|
---|
1828 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1829 | else
|
---|
1830 | if test "x$host_alias" = x; then
|
---|
1831 | ac_cv_host=$ac_cv_build
|
---|
1832 | else
|
---|
1833 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
1834 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
1835 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
1836 | { (exit 1); exit 1; }; }
|
---|
1837 | fi
|
---|
1838 |
|
---|
1839 | fi
|
---|
1840 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
1841 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
1842 | case $ac_cv_host in
|
---|
1843 | *-*-*) ;;
|
---|
1844 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
1845 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
1846 | { (exit 1); exit 1; }; };;
|
---|
1847 | esac
|
---|
1848 | host=$ac_cv_host
|
---|
1849 | ac_save_IFS=$IFS; IFS='-'
|
---|
1850 | set x $ac_cv_host
|
---|
1851 | shift
|
---|
1852 | host_cpu=$1
|
---|
1853 | host_vendor=$2
|
---|
1854 | shift; shift
|
---|
1855 | # Remember, the first character of IFS is used to create $*,
|
---|
1856 | # except with old shells:
|
---|
1857 | host_os=$*
|
---|
1858 | IFS=$ac_save_IFS
|
---|
1859 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
1860 |
|
---|
1861 |
|
---|
1862 | { echo "$as_me:$LINENO: checking target system type" >&5
|
---|
1863 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
---|
1864 | if test "${ac_cv_target+set}" = set; then
|
---|
1865 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1866 | else
|
---|
1867 | if test "x$target_alias" = x; then
|
---|
1868 | ac_cv_target=$ac_cv_host
|
---|
1869 | else
|
---|
1870 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
1871 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
---|
1872 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
---|
1873 | { (exit 1); exit 1; }; }
|
---|
1874 | fi
|
---|
1875 |
|
---|
1876 | fi
|
---|
1877 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
1878 | echo "${ECHO_T}$ac_cv_target" >&6; }
|
---|
1879 | case $ac_cv_target in
|
---|
1880 | *-*-*) ;;
|
---|
1881 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
---|
1882 | echo "$as_me: error: invalid value of canonical target" >&2;}
|
---|
1883 | { (exit 1); exit 1; }; };;
|
---|
1884 | esac
|
---|
1885 | target=$ac_cv_target
|
---|
1886 | ac_save_IFS=$IFS; IFS='-'
|
---|
1887 | set x $ac_cv_target
|
---|
1888 | shift
|
---|
1889 | target_cpu=$1
|
---|
1890 | target_vendor=$2
|
---|
1891 | shift; shift
|
---|
1892 | # Remember, the first character of IFS is used to create $*,
|
---|
1893 | # except with old shells:
|
---|
1894 | target_os=$*
|
---|
1895 | IFS=$ac_save_IFS
|
---|
1896 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
1897 |
|
---|
1898 |
|
---|
1899 | # The aliases save the names the user supplied, while $host etc.
|
---|
1900 | # will get canonicalized.
|
---|
1901 | test -n "$target_alias" &&
|
---|
1902 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
1903 | NONENONEs,x,x, &&
|
---|
1904 | program_prefix=${target_alias}-
|
---|
1905 | test "$program_prefix" != NONE &&
|
---|
1906 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
1907 | # Use a double $ so make ignores it.
|
---|
1908 | test "$program_suffix" != NONE &&
|
---|
1909 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
1910 | # Double any \ or $. echo might interpret backslashes.
|
---|
1911 | # By default was `s,x,x', remove it if useless.
|
---|
1912 | cat <<\_ACEOF >conftest.sed
|
---|
1913 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
1914 | _ACEOF
|
---|
1915 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
1916 | rm -f conftest.sed
|
---|
1917 |
|
---|
1918 |
|
---|
1919 | PACKAGE=mgpp
|
---|
1920 | VERSION=1.3
|
---|
1921 |
|
---|
1922 | cat >>confdefs.h <<_ACEOF
|
---|
1923 | #define PACKAGE "$PACKAGE"
|
---|
1924 | _ACEOF
|
---|
1925 |
|
---|
1926 | cat >>confdefs.h <<_ACEOF
|
---|
1927 | #define VERSION "$VERSION"
|
---|
1928 | _ACEOF
|
---|
1929 |
|
---|
1930 |
|
---|
1931 |
|
---|
1932 |
|
---|
1933 |
|
---|
1934 | { echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
1935 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
|
---|
1936 | arch_64bit=no
|
---|
1937 | case "$host_cpu" in
|
---|
1938 | x86_64) arch_64bit=yes ;;
|
---|
1939 | esac
|
---|
1940 |
|
---|
1941 | if test "$arch_64bit" = yes; then
|
---|
1942 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
1943 | echo "${ECHO_T}yes" >&6; }
|
---|
1944 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
1945 | COMPAT32BITFLAGS="-m32"
|
---|
1946 | fi
|
---|
1947 | else
|
---|
1948 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1949 | echo "${ECHO_T}no" >&6; }
|
---|
1950 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
1951 | COMPAT32BITFLAGS=
|
---|
1952 | fi
|
---|
1953 | fi
|
---|
1954 |
|
---|
1955 |
|
---|
1956 | # Check whether --enable-accentfold was given.
|
---|
1957 | if test "${enable_accentfold+set}" = set; then
|
---|
1958 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=0
|
---|
1959 | else
|
---|
1960 | ENABLE_ACCENTFOLD=1
|
---|
1961 | fi
|
---|
1962 |
|
---|
1963 | cat >>confdefs.h <<\_ACEOF
|
---|
1964 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
1965 | _ACEOF
|
---|
1966 |
|
---|
1967 |
|
---|
1968 |
|
---|
1969 | ac_ext=cpp
|
---|
1970 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1971 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1972 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1973 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
1974 | if test -z "$CXX"; then
|
---|
1975 | if test -n "$CCC"; then
|
---|
1976 | CXX=$CCC
|
---|
1977 | else
|
---|
1978 | if test -n "$ac_tool_prefix"; then
|
---|
1979 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
1980 | do
|
---|
1981 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1982 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1985 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
1986 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1987 | else
|
---|
1988 | if test -n "$CXX"; then
|
---|
1989 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1990 | else
|
---|
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1992 | for as_dir in $PATH
|
---|
1993 | do
|
---|
1994 | IFS=$as_save_IFS
|
---|
1995 | test -z "$as_dir" && as_dir=.
|
---|
1996 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1998 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
1999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2000 | break 2
|
---|
2001 | fi
|
---|
2002 | done
|
---|
2003 | done
|
---|
2004 | IFS=$as_save_IFS
|
---|
2005 |
|
---|
2006 | fi
|
---|
2007 | fi
|
---|
2008 | CXX=$ac_cv_prog_CXX
|
---|
2009 | if test -n "$CXX"; then
|
---|
2010 | { echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2011 | echo "${ECHO_T}$CXX" >&6; }
|
---|
2012 | else
|
---|
2013 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2014 | echo "${ECHO_T}no" >&6; }
|
---|
2015 | fi
|
---|
2016 |
|
---|
2017 |
|
---|
2018 | test -n "$CXX" && break
|
---|
2019 | done
|
---|
2020 | fi
|
---|
2021 | if test -z "$CXX"; then
|
---|
2022 | ac_ct_CXX=$CXX
|
---|
2023 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2024 | do
|
---|
2025 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2026 | set dummy $ac_prog; ac_word=$2
|
---|
2027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2029 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2030 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2031 | else
|
---|
2032 | if test -n "$ac_ct_CXX"; then
|
---|
2033 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2034 | else
|
---|
2035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2036 | for as_dir in $PATH
|
---|
2037 | do
|
---|
2038 | IFS=$as_save_IFS
|
---|
2039 | test -z "$as_dir" && as_dir=.
|
---|
2040 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2042 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2044 | break 2
|
---|
2045 | fi
|
---|
2046 | done
|
---|
2047 | done
|
---|
2048 | IFS=$as_save_IFS
|
---|
2049 |
|
---|
2050 | fi
|
---|
2051 | fi
|
---|
2052 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2053 | if test -n "$ac_ct_CXX"; then
|
---|
2054 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2055 | echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
---|
2056 | else
|
---|
2057 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2058 | echo "${ECHO_T}no" >&6; }
|
---|
2059 | fi
|
---|
2060 |
|
---|
2061 |
|
---|
2062 | test -n "$ac_ct_CXX" && break
|
---|
2063 | done
|
---|
2064 |
|
---|
2065 | if test "x$ac_ct_CXX" = x; then
|
---|
2066 | CXX="g++"
|
---|
2067 | else
|
---|
2068 | case $cross_compiling:$ac_tool_warned in
|
---|
2069 | yes:)
|
---|
2070 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2071 | whose name does not start with the host triplet. If you think this
|
---|
2072 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2073 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2074 | whose name does not start with the host triplet. If you think this
|
---|
2075 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2076 | ac_tool_warned=yes ;;
|
---|
2077 | esac
|
---|
2078 | CXX=$ac_ct_CXX
|
---|
2079 | fi
|
---|
2080 | fi
|
---|
2081 |
|
---|
2082 | fi
|
---|
2083 | fi
|
---|
2084 | # Provide some information about the compiler.
|
---|
2085 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
---|
2086 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2087 | { (ac_try="$ac_compiler --version >&5"
|
---|
2088 | case "(($ac_try" in
|
---|
2089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2090 | *) ac_try_echo=$ac_try;;
|
---|
2091 | esac
|
---|
2092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2093 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
2094 | ac_status=$?
|
---|
2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2096 | (exit $ac_status); }
|
---|
2097 | { (ac_try="$ac_compiler -v >&5"
|
---|
2098 | case "(($ac_try" in
|
---|
2099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2100 | *) ac_try_echo=$ac_try;;
|
---|
2101 | esac
|
---|
2102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2103 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
2104 | ac_status=$?
|
---|
2105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2106 | (exit $ac_status); }
|
---|
2107 | { (ac_try="$ac_compiler -V >&5"
|
---|
2108 | case "(($ac_try" in
|
---|
2109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2110 | *) ac_try_echo=$ac_try;;
|
---|
2111 | esac
|
---|
2112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2113 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
2114 | ac_status=$?
|
---|
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2116 | (exit $ac_status); }
|
---|
2117 |
|
---|
2118 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2119 | /* confdefs.h. */
|
---|
2120 | _ACEOF
|
---|
2121 | cat confdefs.h >>conftest.$ac_ext
|
---|
2122 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2123 | /* end confdefs.h. */
|
---|
2124 |
|
---|
2125 | int
|
---|
2126 | main ()
|
---|
2127 | {
|
---|
2128 |
|
---|
2129 | ;
|
---|
2130 | return 0;
|
---|
2131 | }
|
---|
2132 | _ACEOF
|
---|
2133 | ac_clean_files_save=$ac_clean_files
|
---|
2134 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2135 | # Try to create an executable without -o first, disregard a.out.
|
---|
2136 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2137 | # of exeext.
|
---|
2138 | { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
2139 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
|
---|
2140 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2141 | #
|
---|
2142 | # List of possible output files, starting from the most likely.
|
---|
2143 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
2144 | # only as a last resort. b.out is created by i960 compilers.
|
---|
2145 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
2146 | #
|
---|
2147 | # The IRIX 6 linker writes into existing files which may not be
|
---|
2148 | # executable, retaining their permissions. Remove them first so a
|
---|
2149 | # subsequent execution test works.
|
---|
2150 | ac_rmfiles=
|
---|
2151 | for ac_file in $ac_files
|
---|
2152 | do
|
---|
2153 | case $ac_file in
|
---|
2154 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2155 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2156 | esac
|
---|
2157 | done
|
---|
2158 | rm -f $ac_rmfiles
|
---|
2159 |
|
---|
2160 | if { (ac_try="$ac_link_default"
|
---|
2161 | case "(($ac_try" in
|
---|
2162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2163 | *) ac_try_echo=$ac_try;;
|
---|
2164 | esac
|
---|
2165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2166 | (eval "$ac_link_default") 2>&5
|
---|
2167 | ac_status=$?
|
---|
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2169 | (exit $ac_status); }; then
|
---|
2170 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2171 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2172 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2173 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2174 | # Autoconf.
|
---|
2175 | for ac_file in $ac_files ''
|
---|
2176 | do
|
---|
2177 | test -f "$ac_file" || continue
|
---|
2178 | case $ac_file in
|
---|
2179 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
2180 | ;;
|
---|
2181 | [ab].out )
|
---|
2182 | # We found the default executable, but exeext='' is most
|
---|
2183 | # certainly right.
|
---|
2184 | break;;
|
---|
2185 | *.* )
|
---|
2186 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2187 | then :; else
|
---|
2188 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2189 | fi
|
---|
2190 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2191 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2192 | # argument, so we may need to know it at that point already.
|
---|
2193 | # Even if this section looks crufty: it has the advantage of
|
---|
2194 | # actually working.
|
---|
2195 | break;;
|
---|
2196 | * )
|
---|
2197 | break;;
|
---|
2198 | esac
|
---|
2199 | done
|
---|
2200 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2201 |
|
---|
2202 | else
|
---|
2203 | ac_file=''
|
---|
2204 | fi
|
---|
2205 |
|
---|
2206 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2207 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
2208 | if test -z "$ac_file"; then
|
---|
2209 | echo "$as_me: failed program was:" >&5
|
---|
2210 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2211 |
|
---|
2212 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
2213 | See \`config.log' for more details." >&5
|
---|
2214 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
2215 | See \`config.log' for more details." >&2;}
|
---|
2216 | { (exit 77); exit 77; }; }
|
---|
2217 | fi
|
---|
2218 |
|
---|
2219 | ac_exeext=$ac_cv_exeext
|
---|
2220 |
|
---|
2221 | # Check that the compiler produces executables we can run. If not, either
|
---|
2222 | # the compiler is broken, or we cross compile.
|
---|
2223 | { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
2224 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
|
---|
2225 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2226 | # If not cross compiling, check that we can run a simple program.
|
---|
2227 | if test "$cross_compiling" != yes; then
|
---|
2228 | if { ac_try='./$ac_file'
|
---|
2229 | { (case "(($ac_try" in
|
---|
2230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2231 | *) ac_try_echo=$ac_try;;
|
---|
2232 | esac
|
---|
2233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2234 | (eval "$ac_try") 2>&5
|
---|
2235 | ac_status=$?
|
---|
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2237 | (exit $ac_status); }; }; then
|
---|
2238 | cross_compiling=no
|
---|
2239 | else
|
---|
2240 | if test "$cross_compiling" = maybe; then
|
---|
2241 | cross_compiling=yes
|
---|
2242 | else
|
---|
2243 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
2244 | If you meant to cross compile, use \`--host'.
|
---|
2245 | See \`config.log' for more details." >&5
|
---|
2246 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
2247 | If you meant to cross compile, use \`--host'.
|
---|
2248 | See \`config.log' for more details." >&2;}
|
---|
2249 | { (exit 1); exit 1; }; }
|
---|
2250 | fi
|
---|
2251 | fi
|
---|
2252 | fi
|
---|
2253 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
2254 | echo "${ECHO_T}yes" >&6; }
|
---|
2255 |
|
---|
2256 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2257 | ac_clean_files=$ac_clean_files_save
|
---|
2258 | # Check that the compiler produces executables we can run. If not, either
|
---|
2259 | # the compiler is broken, or we cross compile.
|
---|
2260 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2261 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
2262 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2263 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
2264 |
|
---|
2265 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2266 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
2267 | if { (ac_try="$ac_link"
|
---|
2268 | case "(($ac_try" in
|
---|
2269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2270 | *) ac_try_echo=$ac_try;;
|
---|
2271 | esac
|
---|
2272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2273 | (eval "$ac_link") 2>&5
|
---|
2274 | ac_status=$?
|
---|
2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2276 | (exit $ac_status); }; then
|
---|
2277 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2278 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2279 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2280 | # `rm'.
|
---|
2281 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2282 | test -f "$ac_file" || continue
|
---|
2283 | case $ac_file in
|
---|
2284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2285 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2286 | break;;
|
---|
2287 | * ) break;;
|
---|
2288 | esac
|
---|
2289 | done
|
---|
2290 | else
|
---|
2291 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2292 | See \`config.log' for more details." >&5
|
---|
2293 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2294 | See \`config.log' for more details." >&2;}
|
---|
2295 | { (exit 1); exit 1; }; }
|
---|
2296 | fi
|
---|
2297 |
|
---|
2298 | rm -f conftest$ac_cv_exeext
|
---|
2299 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2300 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
2301 |
|
---|
2302 | rm -f conftest.$ac_ext
|
---|
2303 | EXEEXT=$ac_cv_exeext
|
---|
2304 | ac_exeext=$EXEEXT
|
---|
2305 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2306 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
2307 | if test "${ac_cv_objext+set}" = set; then
|
---|
2308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2309 | else
|
---|
2310 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2311 | /* confdefs.h. */
|
---|
2312 | _ACEOF
|
---|
2313 | cat confdefs.h >>conftest.$ac_ext
|
---|
2314 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2315 | /* end confdefs.h. */
|
---|
2316 |
|
---|
2317 | int
|
---|
2318 | main ()
|
---|
2319 | {
|
---|
2320 |
|
---|
2321 | ;
|
---|
2322 | return 0;
|
---|
2323 | }
|
---|
2324 | _ACEOF
|
---|
2325 | rm -f conftest.o conftest.obj
|
---|
2326 | if { (ac_try="$ac_compile"
|
---|
2327 | case "(($ac_try" in
|
---|
2328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2329 | *) ac_try_echo=$ac_try;;
|
---|
2330 | esac
|
---|
2331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2332 | (eval "$ac_compile") 2>&5
|
---|
2333 | ac_status=$?
|
---|
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2335 | (exit $ac_status); }; then
|
---|
2336 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2337 | test -f "$ac_file" || continue;
|
---|
2338 | case $ac_file in
|
---|
2339 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
2340 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2341 | break;;
|
---|
2342 | esac
|
---|
2343 | done
|
---|
2344 | else
|
---|
2345 | echo "$as_me: failed program was:" >&5
|
---|
2346 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2347 |
|
---|
2348 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2349 | See \`config.log' for more details." >&5
|
---|
2350 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2351 | See \`config.log' for more details." >&2;}
|
---|
2352 | { (exit 1); exit 1; }; }
|
---|
2353 | fi
|
---|
2354 |
|
---|
2355 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2356 | fi
|
---|
2357 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2358 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
2359 | OBJEXT=$ac_cv_objext
|
---|
2360 | ac_objext=$OBJEXT
|
---|
2361 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2362 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
---|
2363 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2364 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2365 | else
|
---|
2366 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2367 | /* confdefs.h. */
|
---|
2368 | _ACEOF
|
---|
2369 | cat confdefs.h >>conftest.$ac_ext
|
---|
2370 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2371 | /* end confdefs.h. */
|
---|
2372 |
|
---|
2373 | int
|
---|
2374 | main ()
|
---|
2375 | {
|
---|
2376 | #ifndef __GNUC__
|
---|
2377 | choke me
|
---|
2378 | #endif
|
---|
2379 |
|
---|
2380 | ;
|
---|
2381 | return 0;
|
---|
2382 | }
|
---|
2383 | _ACEOF
|
---|
2384 | rm -f conftest.$ac_objext
|
---|
2385 | if { (ac_try="$ac_compile"
|
---|
2386 | case "(($ac_try" in
|
---|
2387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2388 | *) ac_try_echo=$ac_try;;
|
---|
2389 | esac
|
---|
2390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2391 | (eval "$ac_compile") 2>conftest.er1
|
---|
2392 | ac_status=$?
|
---|
2393 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2394 | rm -f conftest.er1
|
---|
2395 | cat conftest.err >&5
|
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2397 | (exit $ac_status); } && {
|
---|
2398 | test -z "$ac_cxx_werror_flag" ||
|
---|
2399 | test ! -s conftest.err
|
---|
2400 | } && test -s conftest.$ac_objext; then
|
---|
2401 | ac_compiler_gnu=yes
|
---|
2402 | else
|
---|
2403 | echo "$as_me: failed program was:" >&5
|
---|
2404 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2405 |
|
---|
2406 | ac_compiler_gnu=no
|
---|
2407 | fi
|
---|
2408 |
|
---|
2409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2410 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2411 |
|
---|
2412 | fi
|
---|
2413 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2414 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
2415 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2416 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2417 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2418 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2419 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
---|
2420 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2422 | else
|
---|
2423 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
2424 | ac_cxx_werror_flag=yes
|
---|
2425 | ac_cv_prog_cxx_g=no
|
---|
2426 | CXXFLAGS="-g"
|
---|
2427 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2428 | /* confdefs.h. */
|
---|
2429 | _ACEOF
|
---|
2430 | cat confdefs.h >>conftest.$ac_ext
|
---|
2431 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2432 | /* end confdefs.h. */
|
---|
2433 |
|
---|
2434 | int
|
---|
2435 | main ()
|
---|
2436 | {
|
---|
2437 |
|
---|
2438 | ;
|
---|
2439 | return 0;
|
---|
2440 | }
|
---|
2441 | _ACEOF
|
---|
2442 | rm -f conftest.$ac_objext
|
---|
2443 | if { (ac_try="$ac_compile"
|
---|
2444 | case "(($ac_try" in
|
---|
2445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2446 | *) ac_try_echo=$ac_try;;
|
---|
2447 | esac
|
---|
2448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2449 | (eval "$ac_compile") 2>conftest.er1
|
---|
2450 | ac_status=$?
|
---|
2451 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2452 | rm -f conftest.er1
|
---|
2453 | cat conftest.err >&5
|
---|
2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2455 | (exit $ac_status); } && {
|
---|
2456 | test -z "$ac_cxx_werror_flag" ||
|
---|
2457 | test ! -s conftest.err
|
---|
2458 | } && test -s conftest.$ac_objext; then
|
---|
2459 | ac_cv_prog_cxx_g=yes
|
---|
2460 | else
|
---|
2461 | echo "$as_me: failed program was:" >&5
|
---|
2462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2463 |
|
---|
2464 | CXXFLAGS=""
|
---|
2465 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2466 | /* confdefs.h. */
|
---|
2467 | _ACEOF
|
---|
2468 | cat confdefs.h >>conftest.$ac_ext
|
---|
2469 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2470 | /* end confdefs.h. */
|
---|
2471 |
|
---|
2472 | int
|
---|
2473 | main ()
|
---|
2474 | {
|
---|
2475 |
|
---|
2476 | ;
|
---|
2477 | return 0;
|
---|
2478 | }
|
---|
2479 | _ACEOF
|
---|
2480 | rm -f conftest.$ac_objext
|
---|
2481 | if { (ac_try="$ac_compile"
|
---|
2482 | case "(($ac_try" in
|
---|
2483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2484 | *) ac_try_echo=$ac_try;;
|
---|
2485 | esac
|
---|
2486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2487 | (eval "$ac_compile") 2>conftest.er1
|
---|
2488 | ac_status=$?
|
---|
2489 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2490 | rm -f conftest.er1
|
---|
2491 | cat conftest.err >&5
|
---|
2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2493 | (exit $ac_status); } && {
|
---|
2494 | test -z "$ac_cxx_werror_flag" ||
|
---|
2495 | test ! -s conftest.err
|
---|
2496 | } && test -s conftest.$ac_objext; then
|
---|
2497 | :
|
---|
2498 | else
|
---|
2499 | echo "$as_me: failed program was:" >&5
|
---|
2500 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2501 |
|
---|
2502 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
2503 | CXXFLAGS="-g"
|
---|
2504 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2505 | /* confdefs.h. */
|
---|
2506 | _ACEOF
|
---|
2507 | cat confdefs.h >>conftest.$ac_ext
|
---|
2508 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2509 | /* end confdefs.h. */
|
---|
2510 |
|
---|
2511 | int
|
---|
2512 | main ()
|
---|
2513 | {
|
---|
2514 |
|
---|
2515 | ;
|
---|
2516 | return 0;
|
---|
2517 | }
|
---|
2518 | _ACEOF
|
---|
2519 | rm -f conftest.$ac_objext
|
---|
2520 | if { (ac_try="$ac_compile"
|
---|
2521 | case "(($ac_try" in
|
---|
2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2523 | *) ac_try_echo=$ac_try;;
|
---|
2524 | esac
|
---|
2525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2526 | (eval "$ac_compile") 2>conftest.er1
|
---|
2527 | ac_status=$?
|
---|
2528 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2529 | rm -f conftest.er1
|
---|
2530 | cat conftest.err >&5
|
---|
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2532 | (exit $ac_status); } && {
|
---|
2533 | test -z "$ac_cxx_werror_flag" ||
|
---|
2534 | test ! -s conftest.err
|
---|
2535 | } && test -s conftest.$ac_objext; then
|
---|
2536 | ac_cv_prog_cxx_g=yes
|
---|
2537 | else
|
---|
2538 | echo "$as_me: failed program was:" >&5
|
---|
2539 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2540 |
|
---|
2541 |
|
---|
2542 | fi
|
---|
2543 |
|
---|
2544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2545 | fi
|
---|
2546 |
|
---|
2547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2548 | fi
|
---|
2549 |
|
---|
2550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2551 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
2552 | fi
|
---|
2553 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2554 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
---|
2555 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2556 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2557 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2558 | if test "$GXX" = yes; then
|
---|
2559 | CXXFLAGS="-g -O2"
|
---|
2560 | else
|
---|
2561 | CXXFLAGS="-g"
|
---|
2562 | fi
|
---|
2563 | else
|
---|
2564 | if test "$GXX" = yes; then
|
---|
2565 | CXXFLAGS="-O2"
|
---|
2566 | else
|
---|
2567 | CXXFLAGS=
|
---|
2568 | fi
|
---|
2569 | fi
|
---|
2570 | ac_ext=c
|
---|
2571 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2575 |
|
---|
2576 | for ac_prog in gawk mawk nawk awk
|
---|
2577 | do
|
---|
2578 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2579 | set dummy $ac_prog; ac_word=$2
|
---|
2580 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2582 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2583 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2584 | else
|
---|
2585 | if test -n "$AWK"; then
|
---|
2586 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2587 | else
|
---|
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2589 | for as_dir in $PATH
|
---|
2590 | do
|
---|
2591 | IFS=$as_save_IFS
|
---|
2592 | test -z "$as_dir" && as_dir=.
|
---|
2593 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2595 | ac_cv_prog_AWK="$ac_prog"
|
---|
2596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2597 | break 2
|
---|
2598 | fi
|
---|
2599 | done
|
---|
2600 | done
|
---|
2601 | IFS=$as_save_IFS
|
---|
2602 |
|
---|
2603 | fi
|
---|
2604 | fi
|
---|
2605 | AWK=$ac_cv_prog_AWK
|
---|
2606 | if test -n "$AWK"; then
|
---|
2607 | { echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2608 | echo "${ECHO_T}$AWK" >&6; }
|
---|
2609 | else
|
---|
2610 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2611 | echo "${ECHO_T}no" >&6; }
|
---|
2612 | fi
|
---|
2613 |
|
---|
2614 |
|
---|
2615 | test -n "$AWK" && break
|
---|
2616 | done
|
---|
2617 |
|
---|
2618 | for ac_prog in 'bison -y' byacc
|
---|
2619 | do
|
---|
2620 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2621 | set dummy $ac_prog; ac_word=$2
|
---|
2622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2624 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2625 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2626 | else
|
---|
2627 | if test -n "$YACC"; then
|
---|
2628 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
2629 | else
|
---|
2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2631 | for as_dir in $PATH
|
---|
2632 | do
|
---|
2633 | IFS=$as_save_IFS
|
---|
2634 | test -z "$as_dir" && as_dir=.
|
---|
2635 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2637 | ac_cv_prog_YACC="$ac_prog"
|
---|
2638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2639 | break 2
|
---|
2640 | fi
|
---|
2641 | done
|
---|
2642 | done
|
---|
2643 | IFS=$as_save_IFS
|
---|
2644 |
|
---|
2645 | fi
|
---|
2646 | fi
|
---|
2647 | YACC=$ac_cv_prog_YACC
|
---|
2648 | if test -n "$YACC"; then
|
---|
2649 | { echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2650 | echo "${ECHO_T}$YACC" >&6; }
|
---|
2651 | else
|
---|
2652 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2653 | echo "${ECHO_T}no" >&6; }
|
---|
2654 | fi
|
---|
2655 |
|
---|
2656 |
|
---|
2657 | test -n "$YACC" && break
|
---|
2658 | done
|
---|
2659 | test -n "$YACC" || YACC="yacc"
|
---|
2660 |
|
---|
2661 | ac_ext=c
|
---|
2662 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2666 | if test -n "$ac_tool_prefix"; then
|
---|
2667 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2668 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2671 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2672 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2673 | else
|
---|
2674 | if test -n "$CC"; then
|
---|
2675 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2676 | else
|
---|
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2678 | for as_dir in $PATH
|
---|
2679 | do
|
---|
2680 | IFS=$as_save_IFS
|
---|
2681 | test -z "$as_dir" && as_dir=.
|
---|
2682 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2684 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2686 | break 2
|
---|
2687 | fi
|
---|
2688 | done
|
---|
2689 | done
|
---|
2690 | IFS=$as_save_IFS
|
---|
2691 |
|
---|
2692 | fi
|
---|
2693 | fi
|
---|
2694 | CC=$ac_cv_prog_CC
|
---|
2695 | if test -n "$CC"; then
|
---|
2696 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2697 | echo "${ECHO_T}$CC" >&6; }
|
---|
2698 | else
|
---|
2699 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2700 | echo "${ECHO_T}no" >&6; }
|
---|
2701 | fi
|
---|
2702 |
|
---|
2703 |
|
---|
2704 | fi
|
---|
2705 | if test -z "$ac_cv_prog_CC"; then
|
---|
2706 | ac_ct_CC=$CC
|
---|
2707 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2708 | set dummy gcc; ac_word=$2
|
---|
2709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2711 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2712 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2713 | else
|
---|
2714 | if test -n "$ac_ct_CC"; then
|
---|
2715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2716 | else
|
---|
2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2718 | for as_dir in $PATH
|
---|
2719 | do
|
---|
2720 | IFS=$as_save_IFS
|
---|
2721 | test -z "$as_dir" && as_dir=.
|
---|
2722 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2724 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2726 | break 2
|
---|
2727 | fi
|
---|
2728 | done
|
---|
2729 | done
|
---|
2730 | IFS=$as_save_IFS
|
---|
2731 |
|
---|
2732 | fi
|
---|
2733 | fi
|
---|
2734 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2735 | if test -n "$ac_ct_CC"; then
|
---|
2736 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2737 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
2738 | else
|
---|
2739 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2740 | echo "${ECHO_T}no" >&6; }
|
---|
2741 | fi
|
---|
2742 |
|
---|
2743 | if test "x$ac_ct_CC" = x; then
|
---|
2744 | CC=""
|
---|
2745 | else
|
---|
2746 | case $cross_compiling:$ac_tool_warned in
|
---|
2747 | yes:)
|
---|
2748 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2749 | whose name does not start with the host triplet. If you think this
|
---|
2750 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2751 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2752 | whose name does not start with the host triplet. If you think this
|
---|
2753 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2754 | ac_tool_warned=yes ;;
|
---|
2755 | esac
|
---|
2756 | CC=$ac_ct_CC
|
---|
2757 | fi
|
---|
2758 | else
|
---|
2759 | CC="$ac_cv_prog_CC"
|
---|
2760 | fi
|
---|
2761 |
|
---|
2762 | if test -z "$CC"; then
|
---|
2763 | if test -n "$ac_tool_prefix"; then
|
---|
2764 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2765 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2768 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2769 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2770 | else
|
---|
2771 | if test -n "$CC"; then
|
---|
2772 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2773 | else
|
---|
2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2775 | for as_dir in $PATH
|
---|
2776 | do
|
---|
2777 | IFS=$as_save_IFS
|
---|
2778 | test -z "$as_dir" && as_dir=.
|
---|
2779 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2781 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2783 | break 2
|
---|
2784 | fi
|
---|
2785 | done
|
---|
2786 | done
|
---|
2787 | IFS=$as_save_IFS
|
---|
2788 |
|
---|
2789 | fi
|
---|
2790 | fi
|
---|
2791 | CC=$ac_cv_prog_CC
|
---|
2792 | if test -n "$CC"; then
|
---|
2793 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2794 | echo "${ECHO_T}$CC" >&6; }
|
---|
2795 | else
|
---|
2796 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2797 | echo "${ECHO_T}no" >&6; }
|
---|
2798 | fi
|
---|
2799 |
|
---|
2800 |
|
---|
2801 | fi
|
---|
2802 | fi
|
---|
2803 | if test -z "$CC"; then
|
---|
2804 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2805 | set dummy cc; ac_word=$2
|
---|
2806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2808 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2809 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2810 | else
|
---|
2811 | if test -n "$CC"; then
|
---|
2812 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2813 | else
|
---|
2814 | ac_prog_rejected=no
|
---|
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2816 | for as_dir in $PATH
|
---|
2817 | do
|
---|
2818 | IFS=$as_save_IFS
|
---|
2819 | test -z "$as_dir" && as_dir=.
|
---|
2820 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2822 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2823 | ac_prog_rejected=yes
|
---|
2824 | continue
|
---|
2825 | fi
|
---|
2826 | ac_cv_prog_CC="cc"
|
---|
2827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2828 | break 2
|
---|
2829 | fi
|
---|
2830 | done
|
---|
2831 | done
|
---|
2832 | IFS=$as_save_IFS
|
---|
2833 |
|
---|
2834 | if test $ac_prog_rejected = yes; then
|
---|
2835 | # We found a bogon in the path, so make sure we never use it.
|
---|
2836 | set dummy $ac_cv_prog_CC
|
---|
2837 | shift
|
---|
2838 | if test $# != 0; then
|
---|
2839 | # We chose a different compiler from the bogus one.
|
---|
2840 | # However, it has the same basename, so the bogon will be chosen
|
---|
2841 | # first if we set CC to just the basename; use the full file name.
|
---|
2842 | shift
|
---|
2843 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2844 | fi
|
---|
2845 | fi
|
---|
2846 | fi
|
---|
2847 | fi
|
---|
2848 | CC=$ac_cv_prog_CC
|
---|
2849 | if test -n "$CC"; then
|
---|
2850 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2851 | echo "${ECHO_T}$CC" >&6; }
|
---|
2852 | else
|
---|
2853 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2854 | echo "${ECHO_T}no" >&6; }
|
---|
2855 | fi
|
---|
2856 |
|
---|
2857 |
|
---|
2858 | fi
|
---|
2859 | if test -z "$CC"; then
|
---|
2860 | if test -n "$ac_tool_prefix"; then
|
---|
2861 | for ac_prog in cl.exe
|
---|
2862 | do
|
---|
2863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2865 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2867 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2868 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2869 | else
|
---|
2870 | if test -n "$CC"; then
|
---|
2871 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2872 | else
|
---|
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2874 | for as_dir in $PATH
|
---|
2875 | do
|
---|
2876 | IFS=$as_save_IFS
|
---|
2877 | test -z "$as_dir" && as_dir=.
|
---|
2878 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2880 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2882 | break 2
|
---|
2883 | fi
|
---|
2884 | done
|
---|
2885 | done
|
---|
2886 | IFS=$as_save_IFS
|
---|
2887 |
|
---|
2888 | fi
|
---|
2889 | fi
|
---|
2890 | CC=$ac_cv_prog_CC
|
---|
2891 | if test -n "$CC"; then
|
---|
2892 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2893 | echo "${ECHO_T}$CC" >&6; }
|
---|
2894 | else
|
---|
2895 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2896 | echo "${ECHO_T}no" >&6; }
|
---|
2897 | fi
|
---|
2898 |
|
---|
2899 |
|
---|
2900 | test -n "$CC" && break
|
---|
2901 | done
|
---|
2902 | fi
|
---|
2903 | if test -z "$CC"; then
|
---|
2904 | ac_ct_CC=$CC
|
---|
2905 | for ac_prog in cl.exe
|
---|
2906 | do
|
---|
2907 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2908 | set dummy $ac_prog; ac_word=$2
|
---|
2909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2911 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2912 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2913 | else
|
---|
2914 | if test -n "$ac_ct_CC"; then
|
---|
2915 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2916 | else
|
---|
2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2918 | for as_dir in $PATH
|
---|
2919 | do
|
---|
2920 | IFS=$as_save_IFS
|
---|
2921 | test -z "$as_dir" && as_dir=.
|
---|
2922 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2924 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2926 | break 2
|
---|
2927 | fi
|
---|
2928 | done
|
---|
2929 | done
|
---|
2930 | IFS=$as_save_IFS
|
---|
2931 |
|
---|
2932 | fi
|
---|
2933 | fi
|
---|
2934 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2935 | if test -n "$ac_ct_CC"; then
|
---|
2936 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2937 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
2938 | else
|
---|
2939 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2940 | echo "${ECHO_T}no" >&6; }
|
---|
2941 | fi
|
---|
2942 |
|
---|
2943 |
|
---|
2944 | test -n "$ac_ct_CC" && break
|
---|
2945 | done
|
---|
2946 |
|
---|
2947 | if test "x$ac_ct_CC" = x; then
|
---|
2948 | CC=""
|
---|
2949 | else
|
---|
2950 | case $cross_compiling:$ac_tool_warned in
|
---|
2951 | yes:)
|
---|
2952 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2953 | whose name does not start with the host triplet. If you think this
|
---|
2954 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2955 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2956 | whose name does not start with the host triplet. If you think this
|
---|
2957 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2958 | ac_tool_warned=yes ;;
|
---|
2959 | esac
|
---|
2960 | CC=$ac_ct_CC
|
---|
2961 | fi
|
---|
2962 | fi
|
---|
2963 |
|
---|
2964 | fi
|
---|
2965 |
|
---|
2966 |
|
---|
2967 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2968 | See \`config.log' for more details." >&5
|
---|
2969 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2970 | See \`config.log' for more details." >&2;}
|
---|
2971 | { (exit 1); exit 1; }; }
|
---|
2972 |
|
---|
2973 | # Provide some information about the compiler.
|
---|
2974 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
2975 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2976 | { (ac_try="$ac_compiler --version >&5"
|
---|
2977 | case "(($ac_try" in
|
---|
2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2979 | *) ac_try_echo=$ac_try;;
|
---|
2980 | esac
|
---|
2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2982 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
2983 | ac_status=$?
|
---|
2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2985 | (exit $ac_status); }
|
---|
2986 | { (ac_try="$ac_compiler -v >&5"
|
---|
2987 | case "(($ac_try" in
|
---|
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2989 | *) ac_try_echo=$ac_try;;
|
---|
2990 | esac
|
---|
2991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2992 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
2993 | ac_status=$?
|
---|
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2995 | (exit $ac_status); }
|
---|
2996 | { (ac_try="$ac_compiler -V >&5"
|
---|
2997 | case "(($ac_try" in
|
---|
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2999 | *) ac_try_echo=$ac_try;;
|
---|
3000 | esac
|
---|
3001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3002 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
3003 | ac_status=$?
|
---|
3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3005 | (exit $ac_status); }
|
---|
3006 |
|
---|
3007 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
3008 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
3009 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
3010 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3011 | else
|
---|
3012 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3013 | /* confdefs.h. */
|
---|
3014 | _ACEOF
|
---|
3015 | cat confdefs.h >>conftest.$ac_ext
|
---|
3016 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3017 | /* end confdefs.h. */
|
---|
3018 |
|
---|
3019 | int
|
---|
3020 | main ()
|
---|
3021 | {
|
---|
3022 | #ifndef __GNUC__
|
---|
3023 | choke me
|
---|
3024 | #endif
|
---|
3025 |
|
---|
3026 | ;
|
---|
3027 | return 0;
|
---|
3028 | }
|
---|
3029 | _ACEOF
|
---|
3030 | rm -f conftest.$ac_objext
|
---|
3031 | if { (ac_try="$ac_compile"
|
---|
3032 | case "(($ac_try" in
|
---|
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3034 | *) ac_try_echo=$ac_try;;
|
---|
3035 | esac
|
---|
3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3037 | (eval "$ac_compile") 2>conftest.er1
|
---|
3038 | ac_status=$?
|
---|
3039 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3040 | rm -f conftest.er1
|
---|
3041 | cat conftest.err >&5
|
---|
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3043 | (exit $ac_status); } && {
|
---|
3044 | test -z "$ac_c_werror_flag" ||
|
---|
3045 | test ! -s conftest.err
|
---|
3046 | } && test -s conftest.$ac_objext; then
|
---|
3047 | ac_compiler_gnu=yes
|
---|
3048 | else
|
---|
3049 | echo "$as_me: failed program was:" >&5
|
---|
3050 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3051 |
|
---|
3052 | ac_compiler_gnu=no
|
---|
3053 | fi
|
---|
3054 |
|
---|
3055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3056 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3057 |
|
---|
3058 | fi
|
---|
3059 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3060 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
3061 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
3062 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3063 | ac_save_CFLAGS=$CFLAGS
|
---|
3064 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
3065 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
3066 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3068 | else
|
---|
3069 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3070 | ac_c_werror_flag=yes
|
---|
3071 | ac_cv_prog_cc_g=no
|
---|
3072 | CFLAGS="-g"
|
---|
3073 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3074 | /* confdefs.h. */
|
---|
3075 | _ACEOF
|
---|
3076 | cat confdefs.h >>conftest.$ac_ext
|
---|
3077 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3078 | /* end confdefs.h. */
|
---|
3079 |
|
---|
3080 | int
|
---|
3081 | main ()
|
---|
3082 | {
|
---|
3083 |
|
---|
3084 | ;
|
---|
3085 | return 0;
|
---|
3086 | }
|
---|
3087 | _ACEOF
|
---|
3088 | rm -f conftest.$ac_objext
|
---|
3089 | if { (ac_try="$ac_compile"
|
---|
3090 | case "(($ac_try" in
|
---|
3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3092 | *) ac_try_echo=$ac_try;;
|
---|
3093 | esac
|
---|
3094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3095 | (eval "$ac_compile") 2>conftest.er1
|
---|
3096 | ac_status=$?
|
---|
3097 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3098 | rm -f conftest.er1
|
---|
3099 | cat conftest.err >&5
|
---|
3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3101 | (exit $ac_status); } && {
|
---|
3102 | test -z "$ac_c_werror_flag" ||
|
---|
3103 | test ! -s conftest.err
|
---|
3104 | } && test -s conftest.$ac_objext; then
|
---|
3105 | ac_cv_prog_cc_g=yes
|
---|
3106 | else
|
---|
3107 | echo "$as_me: failed program was:" >&5
|
---|
3108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3109 |
|
---|
3110 | CFLAGS=""
|
---|
3111 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3112 | /* confdefs.h. */
|
---|
3113 | _ACEOF
|
---|
3114 | cat confdefs.h >>conftest.$ac_ext
|
---|
3115 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3116 | /* end confdefs.h. */
|
---|
3117 |
|
---|
3118 | int
|
---|
3119 | main ()
|
---|
3120 | {
|
---|
3121 |
|
---|
3122 | ;
|
---|
3123 | return 0;
|
---|
3124 | }
|
---|
3125 | _ACEOF
|
---|
3126 | rm -f conftest.$ac_objext
|
---|
3127 | if { (ac_try="$ac_compile"
|
---|
3128 | case "(($ac_try" in
|
---|
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3130 | *) ac_try_echo=$ac_try;;
|
---|
3131 | esac
|
---|
3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3133 | (eval "$ac_compile") 2>conftest.er1
|
---|
3134 | ac_status=$?
|
---|
3135 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3136 | rm -f conftest.er1
|
---|
3137 | cat conftest.err >&5
|
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3139 | (exit $ac_status); } && {
|
---|
3140 | test -z "$ac_c_werror_flag" ||
|
---|
3141 | test ! -s conftest.err
|
---|
3142 | } && test -s conftest.$ac_objext; then
|
---|
3143 | :
|
---|
3144 | else
|
---|
3145 | echo "$as_me: failed program was:" >&5
|
---|
3146 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3147 |
|
---|
3148 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3149 | CFLAGS="-g"
|
---|
3150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3151 | /* confdefs.h. */
|
---|
3152 | _ACEOF
|
---|
3153 | cat confdefs.h >>conftest.$ac_ext
|
---|
3154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3155 | /* end confdefs.h. */
|
---|
3156 |
|
---|
3157 | int
|
---|
3158 | main ()
|
---|
3159 | {
|
---|
3160 |
|
---|
3161 | ;
|
---|
3162 | return 0;
|
---|
3163 | }
|
---|
3164 | _ACEOF
|
---|
3165 | rm -f conftest.$ac_objext
|
---|
3166 | if { (ac_try="$ac_compile"
|
---|
3167 | case "(($ac_try" in
|
---|
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3169 | *) ac_try_echo=$ac_try;;
|
---|
3170 | esac
|
---|
3171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3172 | (eval "$ac_compile") 2>conftest.er1
|
---|
3173 | ac_status=$?
|
---|
3174 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3175 | rm -f conftest.er1
|
---|
3176 | cat conftest.err >&5
|
---|
3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3178 | (exit $ac_status); } && {
|
---|
3179 | test -z "$ac_c_werror_flag" ||
|
---|
3180 | test ! -s conftest.err
|
---|
3181 | } && test -s conftest.$ac_objext; then
|
---|
3182 | ac_cv_prog_cc_g=yes
|
---|
3183 | else
|
---|
3184 | echo "$as_me: failed program was:" >&5
|
---|
3185 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3186 |
|
---|
3187 |
|
---|
3188 | fi
|
---|
3189 |
|
---|
3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3194 | fi
|
---|
3195 |
|
---|
3196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3197 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3198 | fi
|
---|
3199 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
3200 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
3201 | if test "$ac_test_CFLAGS" = set; then
|
---|
3202 | CFLAGS=$ac_save_CFLAGS
|
---|
3203 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3204 | if test "$GCC" = yes; then
|
---|
3205 | CFLAGS="-g -O2"
|
---|
3206 | else
|
---|
3207 | CFLAGS="-g"
|
---|
3208 | fi
|
---|
3209 | else
|
---|
3210 | if test "$GCC" = yes; then
|
---|
3211 | CFLAGS="-O2"
|
---|
3212 | else
|
---|
3213 | CFLAGS=
|
---|
3214 | fi
|
---|
3215 | fi
|
---|
3216 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
3217 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
3218 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
3219 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3220 | else
|
---|
3221 | ac_cv_prog_cc_c89=no
|
---|
3222 | ac_save_CC=$CC
|
---|
3223 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3224 | /* confdefs.h. */
|
---|
3225 | _ACEOF
|
---|
3226 | cat confdefs.h >>conftest.$ac_ext
|
---|
3227 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3228 | /* end confdefs.h. */
|
---|
3229 | #include <stdarg.h>
|
---|
3230 | #include <stdio.h>
|
---|
3231 | #include <sys/types.h>
|
---|
3232 | #include <sys/stat.h>
|
---|
3233 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3234 | struct buf { int x; };
|
---|
3235 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3236 | static char *e (p, i)
|
---|
3237 | char **p;
|
---|
3238 | int i;
|
---|
3239 | {
|
---|
3240 | return p[i];
|
---|
3241 | }
|
---|
3242 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3243 | {
|
---|
3244 | char *s;
|
---|
3245 | va_list v;
|
---|
3246 | va_start (v,p);
|
---|
3247 | s = g (p, va_arg (v,int));
|
---|
3248 | va_end (v);
|
---|
3249 | return s;
|
---|
3250 | }
|
---|
3251 |
|
---|
3252 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3253 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3254 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3255 | as 'x'. The following induces an error, until -std is added to get
|
---|
3256 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3257 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3258 | that's true only with -std. */
|
---|
3259 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3260 |
|
---|
3261 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3262 | inside strings and character constants. */
|
---|
3263 | #define FOO(x) 'x'
|
---|
3264 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3265 |
|
---|
3266 | int test (int i, double x);
|
---|
3267 | struct s1 {int (*f) (int a);};
|
---|
3268 | struct s2 {int (*f) (double a);};
|
---|
3269 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3270 | int argc;
|
---|
3271 | char **argv;
|
---|
3272 | int
|
---|
3273 | main ()
|
---|
3274 | {
|
---|
3275 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3276 | ;
|
---|
3277 | return 0;
|
---|
3278 | }
|
---|
3279 | _ACEOF
|
---|
3280 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3281 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3282 | do
|
---|
3283 | CC="$ac_save_CC $ac_arg"
|
---|
3284 | rm -f conftest.$ac_objext
|
---|
3285 | if { (ac_try="$ac_compile"
|
---|
3286 | case "(($ac_try" in
|
---|
3287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3288 | *) ac_try_echo=$ac_try;;
|
---|
3289 | esac
|
---|
3290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3291 | (eval "$ac_compile") 2>conftest.er1
|
---|
3292 | ac_status=$?
|
---|
3293 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3294 | rm -f conftest.er1
|
---|
3295 | cat conftest.err >&5
|
---|
3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3297 | (exit $ac_status); } && {
|
---|
3298 | test -z "$ac_c_werror_flag" ||
|
---|
3299 | test ! -s conftest.err
|
---|
3300 | } && test -s conftest.$ac_objext; then
|
---|
3301 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3302 | else
|
---|
3303 | echo "$as_me: failed program was:" >&5
|
---|
3304 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3305 |
|
---|
3306 |
|
---|
3307 | fi
|
---|
3308 |
|
---|
3309 | rm -f core conftest.err conftest.$ac_objext
|
---|
3310 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3311 | done
|
---|
3312 | rm -f conftest.$ac_ext
|
---|
3313 | CC=$ac_save_CC
|
---|
3314 |
|
---|
3315 | fi
|
---|
3316 | # AC_CACHE_VAL
|
---|
3317 | case "x$ac_cv_prog_cc_c89" in
|
---|
3318 | x)
|
---|
3319 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
3320 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
3321 | xno)
|
---|
3322 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
3323 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
3324 | *)
|
---|
3325 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3326 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
3327 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3328 | esac
|
---|
3329 |
|
---|
3330 |
|
---|
3331 | ac_ext=c
|
---|
3332 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3336 |
|
---|
3337 | # Find a good install program. We prefer a C program (faster),
|
---|
3338 | # so one script is as good as another. But avoid the broken or
|
---|
3339 | # incompatible versions:
|
---|
3340 | # SysV /etc/install, /usr/sbin/install
|
---|
3341 | # SunOS /usr/etc/install
|
---|
3342 | # IRIX /sbin/install
|
---|
3343 | # AIX /bin/install
|
---|
3344 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3345 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3346 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3347 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3348 | # OS/2's system install, which has a completely different semantic
|
---|
3349 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3350 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
3351 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
3352 | if test -z "$INSTALL"; then
|
---|
3353 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3354 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3355 | else
|
---|
3356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3357 | for as_dir in $PATH
|
---|
3358 | do
|
---|
3359 | IFS=$as_save_IFS
|
---|
3360 | test -z "$as_dir" && as_dir=.
|
---|
3361 | # Account for people who put trailing slashes in PATH elements.
|
---|
3362 | case $as_dir/ in
|
---|
3363 | ./ | .// | /cC/* | \
|
---|
3364 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3365 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
3366 | /usr/ucb/* ) ;;
|
---|
3367 | *)
|
---|
3368 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3369 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3370 | # by default.
|
---|
3371 | for ac_prog in ginstall scoinst install; do
|
---|
3372 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3373 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3374 | if test $ac_prog = install &&
|
---|
3375 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3376 | # AIX install. It has an incompatible calling convention.
|
---|
3377 | :
|
---|
3378 | elif test $ac_prog = install &&
|
---|
3379 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3380 | # program-specific install script used by HP pwplus--don't use.
|
---|
3381 | :
|
---|
3382 | else
|
---|
3383 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3384 | break 3
|
---|
3385 | fi
|
---|
3386 | fi
|
---|
3387 | done
|
---|
3388 | done
|
---|
3389 | ;;
|
---|
3390 | esac
|
---|
3391 | done
|
---|
3392 | IFS=$as_save_IFS
|
---|
3393 |
|
---|
3394 |
|
---|
3395 | fi
|
---|
3396 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3397 | INSTALL=$ac_cv_path_install
|
---|
3398 | else
|
---|
3399 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3400 | # value for INSTALL within a source directory, because that will
|
---|
3401 | # break other packages using the cache if that directory is
|
---|
3402 | # removed, or if the value is a relative name.
|
---|
3403 | INSTALL=$ac_install_sh
|
---|
3404 | fi
|
---|
3405 | fi
|
---|
3406 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
3407 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
3408 |
|
---|
3409 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3410 | # It thinks the first close brace ends the variable substitution.
|
---|
3411 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3412 |
|
---|
3413 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3414 |
|
---|
3415 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3416 |
|
---|
3417 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
3418 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
---|
3419 | LN_S=$as_ln_s
|
---|
3420 | if test "$LN_S" = "ln -s"; then
|
---|
3421 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3422 | echo "${ECHO_T}yes" >&6; }
|
---|
3423 | else
|
---|
3424 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3425 | echo "${ECHO_T}no, using $LN_S" >&6; }
|
---|
3426 | fi
|
---|
3427 |
|
---|
3428 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3429 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
---|
3430 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3431 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
3432 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3433 | else
|
---|
3434 | cat >conftest.make <<\_ACEOF
|
---|
3435 | SHELL = /bin/sh
|
---|
3436 | all:
|
---|
3437 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3438 | _ACEOF
|
---|
3439 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3440 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3441 | *@@@%%%=?*=@@@%%%*)
|
---|
3442 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3443 | *)
|
---|
3444 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3445 | esac
|
---|
3446 | rm -f conftest.make
|
---|
3447 | fi
|
---|
3448 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3449 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3450 | echo "${ECHO_T}yes" >&6; }
|
---|
3451 | SET_MAKE=
|
---|
3452 | else
|
---|
3453 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3454 | echo "${ECHO_T}no" >&6; }
|
---|
3455 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3456 | fi
|
---|
3457 |
|
---|
3458 | if test -n "$ac_tool_prefix"; then
|
---|
3459 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3460 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3463 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3464 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3465 | else
|
---|
3466 | if test -n "$RANLIB"; then
|
---|
3467 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3468 | else
|
---|
3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3470 | for as_dir in $PATH
|
---|
3471 | do
|
---|
3472 | IFS=$as_save_IFS
|
---|
3473 | test -z "$as_dir" && as_dir=.
|
---|
3474 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3476 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3478 | break 2
|
---|
3479 | fi
|
---|
3480 | done
|
---|
3481 | done
|
---|
3482 | IFS=$as_save_IFS
|
---|
3483 |
|
---|
3484 | fi
|
---|
3485 | fi
|
---|
3486 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3487 | if test -n "$RANLIB"; then
|
---|
3488 | { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3489 | echo "${ECHO_T}$RANLIB" >&6; }
|
---|
3490 | else
|
---|
3491 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3492 | echo "${ECHO_T}no" >&6; }
|
---|
3493 | fi
|
---|
3494 |
|
---|
3495 |
|
---|
3496 | fi
|
---|
3497 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3498 | ac_ct_RANLIB=$RANLIB
|
---|
3499 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3500 | set dummy ranlib; ac_word=$2
|
---|
3501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3503 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3504 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3505 | else
|
---|
3506 | if test -n "$ac_ct_RANLIB"; then
|
---|
3507 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3508 | else
|
---|
3509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3510 | for as_dir in $PATH
|
---|
3511 | do
|
---|
3512 | IFS=$as_save_IFS
|
---|
3513 | test -z "$as_dir" && as_dir=.
|
---|
3514 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3516 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3518 | break 2
|
---|
3519 | fi
|
---|
3520 | done
|
---|
3521 | done
|
---|
3522 | IFS=$as_save_IFS
|
---|
3523 |
|
---|
3524 | fi
|
---|
3525 | fi
|
---|
3526 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3527 | if test -n "$ac_ct_RANLIB"; then
|
---|
3528 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3529 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
---|
3530 | else
|
---|
3531 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3532 | echo "${ECHO_T}no" >&6; }
|
---|
3533 | fi
|
---|
3534 |
|
---|
3535 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3536 | RANLIB=":"
|
---|
3537 | else
|
---|
3538 | case $cross_compiling:$ac_tool_warned in
|
---|
3539 | yes:)
|
---|
3540 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3541 | whose name does not start with the host triplet. If you think this
|
---|
3542 | configuration is useful to you, please write to [email protected]." >&5
|
---|
3543 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3544 | whose name does not start with the host triplet. If you think this
|
---|
3545 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
3546 | ac_tool_warned=yes ;;
|
---|
3547 | esac
|
---|
3548 | RANLIB=$ac_ct_RANLIB
|
---|
3549 | fi
|
---|
3550 | else
|
---|
3551 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3552 | fi
|
---|
3553 |
|
---|
3554 |
|
---|
3555 |
|
---|
3556 | ac_ext=c
|
---|
3557 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3561 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3562 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
3563 | # On Suns, sometimes $CPP names a directory.
|
---|
3564 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3565 | CPP=
|
---|
3566 | fi
|
---|
3567 | if test -z "$CPP"; then
|
---|
3568 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3569 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3570 | else
|
---|
3571 | # Double quotes because CPP needs to be expanded
|
---|
3572 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3573 | do
|
---|
3574 | ac_preproc_ok=false
|
---|
3575 | for ac_c_preproc_warn_flag in '' yes
|
---|
3576 | do
|
---|
3577 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3578 | # with a fresh cross-compiler works.
|
---|
3579 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3580 | # <limits.h> exists even on freestanding compilers.
|
---|
3581 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3582 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3583 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3584 | /* confdefs.h. */
|
---|
3585 | _ACEOF
|
---|
3586 | cat confdefs.h >>conftest.$ac_ext
|
---|
3587 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3588 | /* end confdefs.h. */
|
---|
3589 | #ifdef __STDC__
|
---|
3590 | # include <limits.h>
|
---|
3591 | #else
|
---|
3592 | # include <assert.h>
|
---|
3593 | #endif
|
---|
3594 | Syntax error
|
---|
3595 | _ACEOF
|
---|
3596 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3597 | case "(($ac_try" in
|
---|
3598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3599 | *) ac_try_echo=$ac_try;;
|
---|
3600 | esac
|
---|
3601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3602 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3603 | ac_status=$?
|
---|
3604 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3605 | rm -f conftest.er1
|
---|
3606 | cat conftest.err >&5
|
---|
3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3608 | (exit $ac_status); } >/dev/null && {
|
---|
3609 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3610 | test ! -s conftest.err
|
---|
3611 | }; then
|
---|
3612 | :
|
---|
3613 | else
|
---|
3614 | echo "$as_me: failed program was:" >&5
|
---|
3615 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3616 |
|
---|
3617 | # Broken: fails on valid input.
|
---|
3618 | continue
|
---|
3619 | fi
|
---|
3620 |
|
---|
3621 | rm -f conftest.err conftest.$ac_ext
|
---|
3622 |
|
---|
3623 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3624 | # can be detected and how.
|
---|
3625 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3626 | /* confdefs.h. */
|
---|
3627 | _ACEOF
|
---|
3628 | cat confdefs.h >>conftest.$ac_ext
|
---|
3629 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3630 | /* end confdefs.h. */
|
---|
3631 | #include <ac_nonexistent.h>
|
---|
3632 | _ACEOF
|
---|
3633 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3634 | case "(($ac_try" in
|
---|
3635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3636 | *) ac_try_echo=$ac_try;;
|
---|
3637 | esac
|
---|
3638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3639 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3640 | ac_status=$?
|
---|
3641 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3642 | rm -f conftest.er1
|
---|
3643 | cat conftest.err >&5
|
---|
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3645 | (exit $ac_status); } >/dev/null && {
|
---|
3646 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3647 | test ! -s conftest.err
|
---|
3648 | }; then
|
---|
3649 | # Broken: success on invalid input.
|
---|
3650 | continue
|
---|
3651 | else
|
---|
3652 | echo "$as_me: failed program was:" >&5
|
---|
3653 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3654 |
|
---|
3655 | # Passes both tests.
|
---|
3656 | ac_preproc_ok=:
|
---|
3657 | break
|
---|
3658 | fi
|
---|
3659 |
|
---|
3660 | rm -f conftest.err conftest.$ac_ext
|
---|
3661 |
|
---|
3662 | done
|
---|
3663 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3664 | rm -f conftest.err conftest.$ac_ext
|
---|
3665 | if $ac_preproc_ok; then
|
---|
3666 | break
|
---|
3667 | fi
|
---|
3668 |
|
---|
3669 | done
|
---|
3670 | ac_cv_prog_CPP=$CPP
|
---|
3671 |
|
---|
3672 | fi
|
---|
3673 | CPP=$ac_cv_prog_CPP
|
---|
3674 | else
|
---|
3675 | ac_cv_prog_CPP=$CPP
|
---|
3676 | fi
|
---|
3677 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3678 | echo "${ECHO_T}$CPP" >&6; }
|
---|
3679 | ac_preproc_ok=false
|
---|
3680 | for ac_c_preproc_warn_flag in '' yes
|
---|
3681 | do
|
---|
3682 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3683 | # with a fresh cross-compiler works.
|
---|
3684 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3685 | # <limits.h> exists even on freestanding compilers.
|
---|
3686 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3687 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3688 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3689 | /* confdefs.h. */
|
---|
3690 | _ACEOF
|
---|
3691 | cat confdefs.h >>conftest.$ac_ext
|
---|
3692 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3693 | /* end confdefs.h. */
|
---|
3694 | #ifdef __STDC__
|
---|
3695 | # include <limits.h>
|
---|
3696 | #else
|
---|
3697 | # include <assert.h>
|
---|
3698 | #endif
|
---|
3699 | Syntax error
|
---|
3700 | _ACEOF
|
---|
3701 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3702 | case "(($ac_try" in
|
---|
3703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3704 | *) ac_try_echo=$ac_try;;
|
---|
3705 | esac
|
---|
3706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3708 | ac_status=$?
|
---|
3709 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3710 | rm -f conftest.er1
|
---|
3711 | cat conftest.err >&5
|
---|
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3713 | (exit $ac_status); } >/dev/null && {
|
---|
3714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3715 | test ! -s conftest.err
|
---|
3716 | }; then
|
---|
3717 | :
|
---|
3718 | else
|
---|
3719 | echo "$as_me: failed program was:" >&5
|
---|
3720 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3721 |
|
---|
3722 | # Broken: fails on valid input.
|
---|
3723 | continue
|
---|
3724 | fi
|
---|
3725 |
|
---|
3726 | rm -f conftest.err conftest.$ac_ext
|
---|
3727 |
|
---|
3728 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3729 | # can be detected and how.
|
---|
3730 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3731 | /* confdefs.h. */
|
---|
3732 | _ACEOF
|
---|
3733 | cat confdefs.h >>conftest.$ac_ext
|
---|
3734 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3735 | /* end confdefs.h. */
|
---|
3736 | #include <ac_nonexistent.h>
|
---|
3737 | _ACEOF
|
---|
3738 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3739 | case "(($ac_try" in
|
---|
3740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3741 | *) ac_try_echo=$ac_try;;
|
---|
3742 | esac
|
---|
3743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3745 | ac_status=$?
|
---|
3746 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3747 | rm -f conftest.er1
|
---|
3748 | cat conftest.err >&5
|
---|
3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3750 | (exit $ac_status); } >/dev/null && {
|
---|
3751 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3752 | test ! -s conftest.err
|
---|
3753 | }; then
|
---|
3754 | # Broken: success on invalid input.
|
---|
3755 | continue
|
---|
3756 | else
|
---|
3757 | echo "$as_me: failed program was:" >&5
|
---|
3758 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3759 |
|
---|
3760 | # Passes both tests.
|
---|
3761 | ac_preproc_ok=:
|
---|
3762 | break
|
---|
3763 | fi
|
---|
3764 |
|
---|
3765 | rm -f conftest.err conftest.$ac_ext
|
---|
3766 |
|
---|
3767 | done
|
---|
3768 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3769 | rm -f conftest.err conftest.$ac_ext
|
---|
3770 | if $ac_preproc_ok; then
|
---|
3771 | :
|
---|
3772 | else
|
---|
3773 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3774 | See \`config.log' for more details." >&5
|
---|
3775 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3776 | See \`config.log' for more details." >&2;}
|
---|
3777 | { (exit 1); exit 1; }; }
|
---|
3778 | fi
|
---|
3779 |
|
---|
3780 | ac_ext=c
|
---|
3781 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3785 |
|
---|
3786 |
|
---|
3787 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
3788 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
3789 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
3790 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3791 | else
|
---|
3792 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
3793 | if test -z "$GREP"; then
|
---|
3794 | set dummy grep ggrep; ac_prog_name=$2
|
---|
3795 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
3796 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3797 | else
|
---|
3798 | ac_path_GREP_found=false
|
---|
3799 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3801 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3802 | do
|
---|
3803 | IFS=$as_save_IFS
|
---|
3804 | test -z "$as_dir" && as_dir=.
|
---|
3805 | for ac_prog in grep ggrep; do
|
---|
3806 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3807 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3808 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
3809 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3810 | # Check for GNU $ac_path_GREP
|
---|
3811 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3812 | *GNU*)
|
---|
3813 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3814 | *)
|
---|
3815 | ac_count=0
|
---|
3816 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
3817 | while :
|
---|
3818 | do
|
---|
3819 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3820 | mv "conftest.tmp" "conftest.in"
|
---|
3821 | cp "conftest.in" "conftest.nl"
|
---|
3822 | echo 'GREP' >> "conftest.nl"
|
---|
3823 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3824 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3825 | ac_count=`expr $ac_count + 1`
|
---|
3826 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3827 | # Best one so far, save it but keep looking for a better one
|
---|
3828 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3829 | ac_path_GREP_max=$ac_count
|
---|
3830 | fi
|
---|
3831 | # 10*(2^10) chars as input seems more than enough
|
---|
3832 | test $ac_count -gt 10 && break
|
---|
3833 | done
|
---|
3834 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3835 | esac
|
---|
3836 |
|
---|
3837 |
|
---|
3838 | $ac_path_GREP_found && break 3
|
---|
3839 | done
|
---|
3840 | done
|
---|
3841 |
|
---|
3842 | done
|
---|
3843 | IFS=$as_save_IFS
|
---|
3844 |
|
---|
3845 |
|
---|
3846 | fi
|
---|
3847 |
|
---|
3848 | GREP="$ac_cv_path_GREP"
|
---|
3849 | if test -z "$GREP"; then
|
---|
3850 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
3851 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
3852 | { (exit 1); exit 1; }; }
|
---|
3853 | fi
|
---|
3854 |
|
---|
3855 | else
|
---|
3856 | ac_cv_path_GREP=$GREP
|
---|
3857 | fi
|
---|
3858 |
|
---|
3859 |
|
---|
3860 | fi
|
---|
3861 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
3862 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
3863 | GREP="$ac_cv_path_GREP"
|
---|
3864 |
|
---|
3865 |
|
---|
3866 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3867 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
3868 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
3869 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3870 | else
|
---|
3871 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3872 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3873 | else
|
---|
3874 | # Extract the first word of "egrep" to use in msg output
|
---|
3875 | if test -z "$EGREP"; then
|
---|
3876 | set dummy egrep; ac_prog_name=$2
|
---|
3877 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
3878 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3879 | else
|
---|
3880 | ac_path_EGREP_found=false
|
---|
3881 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3883 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3884 | do
|
---|
3885 | IFS=$as_save_IFS
|
---|
3886 | test -z "$as_dir" && as_dir=.
|
---|
3887 | for ac_prog in egrep; do
|
---|
3888 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3889 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3890 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
3891 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3892 | # Check for GNU $ac_path_EGREP
|
---|
3893 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3894 | *GNU*)
|
---|
3895 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3896 | *)
|
---|
3897 | ac_count=0
|
---|
3898 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
3899 | while :
|
---|
3900 | do
|
---|
3901 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3902 | mv "conftest.tmp" "conftest.in"
|
---|
3903 | cp "conftest.in" "conftest.nl"
|
---|
3904 | echo 'EGREP' >> "conftest.nl"
|
---|
3905 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3906 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3907 | ac_count=`expr $ac_count + 1`
|
---|
3908 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3909 | # Best one so far, save it but keep looking for a better one
|
---|
3910 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3911 | ac_path_EGREP_max=$ac_count
|
---|
3912 | fi
|
---|
3913 | # 10*(2^10) chars as input seems more than enough
|
---|
3914 | test $ac_count -gt 10 && break
|
---|
3915 | done
|
---|
3916 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3917 | esac
|
---|
3918 |
|
---|
3919 |
|
---|
3920 | $ac_path_EGREP_found && break 3
|
---|
3921 | done
|
---|
3922 | done
|
---|
3923 |
|
---|
3924 | done
|
---|
3925 | IFS=$as_save_IFS
|
---|
3926 |
|
---|
3927 |
|
---|
3928 | fi
|
---|
3929 |
|
---|
3930 | EGREP="$ac_cv_path_EGREP"
|
---|
3931 | if test -z "$EGREP"; then
|
---|
3932 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
3933 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
3934 | { (exit 1); exit 1; }; }
|
---|
3935 | fi
|
---|
3936 |
|
---|
3937 | else
|
---|
3938 | ac_cv_path_EGREP=$EGREP
|
---|
3939 | fi
|
---|
3940 |
|
---|
3941 |
|
---|
3942 | fi
|
---|
3943 | fi
|
---|
3944 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
3945 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
3946 | EGREP="$ac_cv_path_EGREP"
|
---|
3947 |
|
---|
3948 |
|
---|
3949 |
|
---|
3950 | { echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3951 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
|
---|
3952 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3953 | /* confdefs.h. */
|
---|
3954 | _ACEOF
|
---|
3955 | cat confdefs.h >>conftest.$ac_ext
|
---|
3956 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3957 | /* end confdefs.h. */
|
---|
3958 | #ifdef _AIX
|
---|
3959 | yes
|
---|
3960 | #endif
|
---|
3961 |
|
---|
3962 | _ACEOF
|
---|
3963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3964 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3965 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3966 | echo "${ECHO_T}yes" >&6; }
|
---|
3967 | cat >>confdefs.h <<\_ACEOF
|
---|
3968 | #define _ALL_SOURCE 1
|
---|
3969 | _ACEOF
|
---|
3970 |
|
---|
3971 | else
|
---|
3972 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3973 | echo "${ECHO_T}no" >&6; }
|
---|
3974 | fi
|
---|
3975 | rm -f conftest*
|
---|
3976 |
|
---|
3977 |
|
---|
3978 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3979 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
|
---|
3980 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3981 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3982 | else
|
---|
3983 | ac_func_search_save_LIBS=$LIBS
|
---|
3984 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3985 | /* confdefs.h. */
|
---|
3986 | _ACEOF
|
---|
3987 | cat confdefs.h >>conftest.$ac_ext
|
---|
3988 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3989 | /* end confdefs.h. */
|
---|
3990 |
|
---|
3991 | /* Override any GCC internal prototype to avoid an error.
|
---|
3992 | Use char because int might match the return type of a GCC
|
---|
3993 | builtin and then its argument prototype would still apply. */
|
---|
3994 | #ifdef __cplusplus
|
---|
3995 | extern "C"
|
---|
3996 | #endif
|
---|
3997 | char strerror ();
|
---|
3998 | int
|
---|
3999 | main ()
|
---|
4000 | {
|
---|
4001 | return strerror ();
|
---|
4002 | ;
|
---|
4003 | return 0;
|
---|
4004 | }
|
---|
4005 | _ACEOF
|
---|
4006 | for ac_lib in '' cposix; do
|
---|
4007 | if test -z "$ac_lib"; then
|
---|
4008 | ac_res="none required"
|
---|
4009 | else
|
---|
4010 | ac_res=-l$ac_lib
|
---|
4011 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4012 | fi
|
---|
4013 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4014 | if { (ac_try="$ac_link"
|
---|
4015 | case "(($ac_try" in
|
---|
4016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4017 | *) ac_try_echo=$ac_try;;
|
---|
4018 | esac
|
---|
4019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4020 | (eval "$ac_link") 2>conftest.er1
|
---|
4021 | ac_status=$?
|
---|
4022 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4023 | rm -f conftest.er1
|
---|
4024 | cat conftest.err >&5
|
---|
4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4026 | (exit $ac_status); } && {
|
---|
4027 | test -z "$ac_c_werror_flag" ||
|
---|
4028 | test ! -s conftest.err
|
---|
4029 | } && test -s conftest$ac_exeext &&
|
---|
4030 | $as_test_x conftest$ac_exeext; then
|
---|
4031 | ac_cv_search_strerror=$ac_res
|
---|
4032 | else
|
---|
4033 | echo "$as_me: failed program was:" >&5
|
---|
4034 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4035 |
|
---|
4036 |
|
---|
4037 | fi
|
---|
4038 |
|
---|
4039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4040 | conftest$ac_exeext
|
---|
4041 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
4042 | break
|
---|
4043 | fi
|
---|
4044 | done
|
---|
4045 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
4046 | :
|
---|
4047 | else
|
---|
4048 | ac_cv_search_strerror=no
|
---|
4049 | fi
|
---|
4050 | rm conftest.$ac_ext
|
---|
4051 | LIBS=$ac_func_search_save_LIBS
|
---|
4052 | fi
|
---|
4053 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
4054 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
|
---|
4055 | ac_res=$ac_cv_search_strerror
|
---|
4056 | if test "$ac_res" != no; then
|
---|
4057 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4058 |
|
---|
4059 | fi
|
---|
4060 |
|
---|
4061 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
4062 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
4063 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
4064 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4065 | else
|
---|
4066 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4067 | /* confdefs.h. */
|
---|
4068 | _ACEOF
|
---|
4069 | cat confdefs.h >>conftest.$ac_ext
|
---|
4070 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4071 | /* end confdefs.h. */
|
---|
4072 | #include <stdlib.h>
|
---|
4073 | #include <stdarg.h>
|
---|
4074 | #include <string.h>
|
---|
4075 | #include <float.h>
|
---|
4076 |
|
---|
4077 | int
|
---|
4078 | main ()
|
---|
4079 | {
|
---|
4080 |
|
---|
4081 | ;
|
---|
4082 | return 0;
|
---|
4083 | }
|
---|
4084 | _ACEOF
|
---|
4085 | rm -f conftest.$ac_objext
|
---|
4086 | if { (ac_try="$ac_compile"
|
---|
4087 | case "(($ac_try" in
|
---|
4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4089 | *) ac_try_echo=$ac_try;;
|
---|
4090 | esac
|
---|
4091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4092 | (eval "$ac_compile") 2>conftest.er1
|
---|
4093 | ac_status=$?
|
---|
4094 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4095 | rm -f conftest.er1
|
---|
4096 | cat conftest.err >&5
|
---|
4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4098 | (exit $ac_status); } && {
|
---|
4099 | test -z "$ac_c_werror_flag" ||
|
---|
4100 | test ! -s conftest.err
|
---|
4101 | } && test -s conftest.$ac_objext; then
|
---|
4102 | ac_cv_header_stdc=yes
|
---|
4103 | else
|
---|
4104 | echo "$as_me: failed program was:" >&5
|
---|
4105 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4106 |
|
---|
4107 | ac_cv_header_stdc=no
|
---|
4108 | fi
|
---|
4109 |
|
---|
4110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4111 |
|
---|
4112 | if test $ac_cv_header_stdc = yes; then
|
---|
4113 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4114 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4115 | /* confdefs.h. */
|
---|
4116 | _ACEOF
|
---|
4117 | cat confdefs.h >>conftest.$ac_ext
|
---|
4118 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4119 | /* end confdefs.h. */
|
---|
4120 | #include <string.h>
|
---|
4121 |
|
---|
4122 | _ACEOF
|
---|
4123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4124 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
4125 | :
|
---|
4126 | else
|
---|
4127 | ac_cv_header_stdc=no
|
---|
4128 | fi
|
---|
4129 | rm -f conftest*
|
---|
4130 |
|
---|
4131 | fi
|
---|
4132 |
|
---|
4133 | if test $ac_cv_header_stdc = yes; then
|
---|
4134 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4135 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4136 | /* confdefs.h. */
|
---|
4137 | _ACEOF
|
---|
4138 | cat confdefs.h >>conftest.$ac_ext
|
---|
4139 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4140 | /* end confdefs.h. */
|
---|
4141 | #include <stdlib.h>
|
---|
4142 |
|
---|
4143 | _ACEOF
|
---|
4144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4145 | $EGREP "free" >/dev/null 2>&1; then
|
---|
4146 | :
|
---|
4147 | else
|
---|
4148 | ac_cv_header_stdc=no
|
---|
4149 | fi
|
---|
4150 | rm -f conftest*
|
---|
4151 |
|
---|
4152 | fi
|
---|
4153 |
|
---|
4154 | if test $ac_cv_header_stdc = yes; then
|
---|
4155 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4156 | if test "$cross_compiling" = yes; then
|
---|
4157 | :
|
---|
4158 | else
|
---|
4159 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4160 | /* confdefs.h. */
|
---|
4161 | _ACEOF
|
---|
4162 | cat confdefs.h >>conftest.$ac_ext
|
---|
4163 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4164 | /* end confdefs.h. */
|
---|
4165 | #include <ctype.h>
|
---|
4166 | #include <stdlib.h>
|
---|
4167 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4168 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4169 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4170 | #else
|
---|
4171 | # define ISLOWER(c) \
|
---|
4172 | (('a' <= (c) && (c) <= 'i') \
|
---|
4173 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4174 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4175 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4176 | #endif
|
---|
4177 |
|
---|
4178 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4179 | int
|
---|
4180 | main ()
|
---|
4181 | {
|
---|
4182 | int i;
|
---|
4183 | for (i = 0; i < 256; i++)
|
---|
4184 | if (XOR (islower (i), ISLOWER (i))
|
---|
4185 | || toupper (i) != TOUPPER (i))
|
---|
4186 | return 2;
|
---|
4187 | return 0;
|
---|
4188 | }
|
---|
4189 | _ACEOF
|
---|
4190 | rm -f conftest$ac_exeext
|
---|
4191 | if { (ac_try="$ac_link"
|
---|
4192 | case "(($ac_try" in
|
---|
4193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4194 | *) ac_try_echo=$ac_try;;
|
---|
4195 | esac
|
---|
4196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4197 | (eval "$ac_link") 2>&5
|
---|
4198 | ac_status=$?
|
---|
4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
4201 | { (case "(($ac_try" in
|
---|
4202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4203 | *) ac_try_echo=$ac_try;;
|
---|
4204 | esac
|
---|
4205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4206 | (eval "$ac_try") 2>&5
|
---|
4207 | ac_status=$?
|
---|
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4209 | (exit $ac_status); }; }; then
|
---|
4210 | :
|
---|
4211 | else
|
---|
4212 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
4213 | echo "$as_me: failed program was:" >&5
|
---|
4214 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4215 |
|
---|
4216 | ( exit $ac_status )
|
---|
4217 | ac_cv_header_stdc=no
|
---|
4218 | fi
|
---|
4219 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
4220 | fi
|
---|
4221 |
|
---|
4222 |
|
---|
4223 | fi
|
---|
4224 | fi
|
---|
4225 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
4226 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
4227 | if test $ac_cv_header_stdc = yes; then
|
---|
4228 |
|
---|
4229 | cat >>confdefs.h <<\_ACEOF
|
---|
4230 | #define STDC_HEADERS 1
|
---|
4231 | _ACEOF
|
---|
4232 |
|
---|
4233 | fi
|
---|
4234 |
|
---|
4235 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4236 |
|
---|
4237 |
|
---|
4238 |
|
---|
4239 |
|
---|
4240 |
|
---|
4241 |
|
---|
4242 |
|
---|
4243 |
|
---|
4244 |
|
---|
4245 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4246 | inttypes.h stdint.h unistd.h
|
---|
4247 | do
|
---|
4248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
4251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4253 | else
|
---|
4254 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4255 | /* confdefs.h. */
|
---|
4256 | _ACEOF
|
---|
4257 | cat confdefs.h >>conftest.$ac_ext
|
---|
4258 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4259 | /* end confdefs.h. */
|
---|
4260 | $ac_includes_default
|
---|
4261 |
|
---|
4262 | #include <$ac_header>
|
---|
4263 | _ACEOF
|
---|
4264 | rm -f conftest.$ac_objext
|
---|
4265 | if { (ac_try="$ac_compile"
|
---|
4266 | case "(($ac_try" in
|
---|
4267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4268 | *) ac_try_echo=$ac_try;;
|
---|
4269 | esac
|
---|
4270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4271 | (eval "$ac_compile") 2>conftest.er1
|
---|
4272 | ac_status=$?
|
---|
4273 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4274 | rm -f conftest.er1
|
---|
4275 | cat conftest.err >&5
|
---|
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4277 | (exit $ac_status); } && {
|
---|
4278 | test -z "$ac_c_werror_flag" ||
|
---|
4279 | test ! -s conftest.err
|
---|
4280 | } && test -s conftest.$ac_objext; then
|
---|
4281 | eval "$as_ac_Header=yes"
|
---|
4282 | else
|
---|
4283 | echo "$as_me: failed program was:" >&5
|
---|
4284 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4285 |
|
---|
4286 | eval "$as_ac_Header=no"
|
---|
4287 | fi
|
---|
4288 |
|
---|
4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4290 | fi
|
---|
4291 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
4292 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
4293 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
4294 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4295 | cat >>confdefs.h <<_ACEOF
|
---|
4296 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4297 | _ACEOF
|
---|
4298 |
|
---|
4299 | fi
|
---|
4300 |
|
---|
4301 | done
|
---|
4302 |
|
---|
4303 |
|
---|
4304 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4305 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4306 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
4307 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4309 | fi
|
---|
4310 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4311 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
4312 | else
|
---|
4313 | # Is the header compilable?
|
---|
4314 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
4315 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
|
---|
4316 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4317 | /* confdefs.h. */
|
---|
4318 | _ACEOF
|
---|
4319 | cat confdefs.h >>conftest.$ac_ext
|
---|
4320 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4321 | /* end confdefs.h. */
|
---|
4322 | $ac_includes_default
|
---|
4323 | #include <minix/config.h>
|
---|
4324 | _ACEOF
|
---|
4325 | rm -f conftest.$ac_objext
|
---|
4326 | if { (ac_try="$ac_compile"
|
---|
4327 | case "(($ac_try" in
|
---|
4328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4329 | *) ac_try_echo=$ac_try;;
|
---|
4330 | esac
|
---|
4331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4332 | (eval "$ac_compile") 2>conftest.er1
|
---|
4333 | ac_status=$?
|
---|
4334 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4335 | rm -f conftest.er1
|
---|
4336 | cat conftest.err >&5
|
---|
4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4338 | (exit $ac_status); } && {
|
---|
4339 | test -z "$ac_c_werror_flag" ||
|
---|
4340 | test ! -s conftest.err
|
---|
4341 | } && test -s conftest.$ac_objext; then
|
---|
4342 | ac_header_compiler=yes
|
---|
4343 | else
|
---|
4344 | echo "$as_me: failed program was:" >&5
|
---|
4345 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4346 |
|
---|
4347 | ac_header_compiler=no
|
---|
4348 | fi
|
---|
4349 |
|
---|
4350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4351 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4352 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
4353 |
|
---|
4354 | # Is the header present?
|
---|
4355 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
4356 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
|
---|
4357 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4358 | /* confdefs.h. */
|
---|
4359 | _ACEOF
|
---|
4360 | cat confdefs.h >>conftest.$ac_ext
|
---|
4361 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4362 | /* end confdefs.h. */
|
---|
4363 | #include <minix/config.h>
|
---|
4364 | _ACEOF
|
---|
4365 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4366 | case "(($ac_try" in
|
---|
4367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4368 | *) ac_try_echo=$ac_try;;
|
---|
4369 | esac
|
---|
4370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4372 | ac_status=$?
|
---|
4373 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4374 | rm -f conftest.er1
|
---|
4375 | cat conftest.err >&5
|
---|
4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4377 | (exit $ac_status); } >/dev/null && {
|
---|
4378 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4379 | test ! -s conftest.err
|
---|
4380 | }; then
|
---|
4381 | ac_header_preproc=yes
|
---|
4382 | else
|
---|
4383 | echo "$as_me: failed program was:" >&5
|
---|
4384 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4385 |
|
---|
4386 | ac_header_preproc=no
|
---|
4387 | fi
|
---|
4388 |
|
---|
4389 | rm -f conftest.err conftest.$ac_ext
|
---|
4390 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4391 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
4392 |
|
---|
4393 | # So? What about this header?
|
---|
4394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4395 | yes:no: )
|
---|
4396 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4397 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4398 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
4399 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
4400 | ac_header_preproc=yes
|
---|
4401 | ;;
|
---|
4402 | no:yes:* )
|
---|
4403 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
4404 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
4405 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
4406 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
4407 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
4408 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
4409 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4410 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4411 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
4412 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
4413 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
4414 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
4415 |
|
---|
4416 | ;;
|
---|
4417 | esac
|
---|
4418 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4419 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
4420 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4422 | else
|
---|
4423 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
4424 | fi
|
---|
4425 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4426 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
4427 |
|
---|
4428 | fi
|
---|
4429 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
4430 | MINIX=yes
|
---|
4431 | else
|
---|
4432 | MINIX=
|
---|
4433 | fi
|
---|
4434 |
|
---|
4435 |
|
---|
4436 | if test "$MINIX" = yes; then
|
---|
4437 |
|
---|
4438 | cat >>confdefs.h <<\_ACEOF
|
---|
4439 | #define _POSIX_SOURCE 1
|
---|
4440 | _ACEOF
|
---|
4441 |
|
---|
4442 |
|
---|
4443 | cat >>confdefs.h <<\_ACEOF
|
---|
4444 | #define _POSIX_1_SOURCE 2
|
---|
4445 | _ACEOF
|
---|
4446 |
|
---|
4447 |
|
---|
4448 | cat >>confdefs.h <<\_ACEOF
|
---|
4449 | #define _MINIX 1
|
---|
4450 | _ACEOF
|
---|
4451 |
|
---|
4452 | fi
|
---|
4453 |
|
---|
4454 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4455 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
|
---|
4456 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
4457 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4458 | else
|
---|
4459 | ac_cv_prog_cc_stdc=no
|
---|
4460 | ac_save_CFLAGS="$CFLAGS"
|
---|
4461 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4462 | # breaks some systems' header files.
|
---|
4463 | # AIX -qlanglvl=ansi
|
---|
4464 | # Ultrix and OSF/1 -std1
|
---|
4465 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4466 | # SVR4 -Xc
|
---|
4467 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4468 | do
|
---|
4469 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4470 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4471 | /* confdefs.h. */
|
---|
4472 | _ACEOF
|
---|
4473 | cat confdefs.h >>conftest.$ac_ext
|
---|
4474 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4475 | /* end confdefs.h. */
|
---|
4476 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4477 | choke me
|
---|
4478 | #endif
|
---|
4479 |
|
---|
4480 | int
|
---|
4481 | main ()
|
---|
4482 | {
|
---|
4483 | int test (int i, double x);
|
---|
4484 | struct s1 {int (*f) (int a);};
|
---|
4485 | struct s2 {int (*f) (double a);};
|
---|
4486 | ;
|
---|
4487 | return 0;
|
---|
4488 | }
|
---|
4489 | _ACEOF
|
---|
4490 | rm -f conftest.$ac_objext
|
---|
4491 | if { (ac_try="$ac_compile"
|
---|
4492 | case "(($ac_try" in
|
---|
4493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4494 | *) ac_try_echo=$ac_try;;
|
---|
4495 | esac
|
---|
4496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4497 | (eval "$ac_compile") 2>conftest.er1
|
---|
4498 | ac_status=$?
|
---|
4499 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4500 | rm -f conftest.er1
|
---|
4501 | cat conftest.err >&5
|
---|
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4503 | (exit $ac_status); } && {
|
---|
4504 | test -z "$ac_c_werror_flag" ||
|
---|
4505 | test ! -s conftest.err
|
---|
4506 | } && test -s conftest.$ac_objext; then
|
---|
4507 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4508 | else
|
---|
4509 | echo "$as_me: failed program was:" >&5
|
---|
4510 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4511 |
|
---|
4512 |
|
---|
4513 | fi
|
---|
4514 |
|
---|
4515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4516 | done
|
---|
4517 | CFLAGS="$ac_save_CFLAGS"
|
---|
4518 |
|
---|
4519 | fi
|
---|
4520 |
|
---|
4521 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4522 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
|
---|
4523 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4524 | x|xno) ;;
|
---|
4525 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4526 | esac
|
---|
4527 |
|
---|
4528 |
|
---|
4529 | { echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4530 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
|
---|
4531 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4532 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
4533 | echo "${ECHO_T}yes" >&6; }
|
---|
4534 | cat >>confdefs.h <<\_ACEOF
|
---|
4535 | #define PROTOTYPES 1
|
---|
4536 | _ACEOF
|
---|
4537 |
|
---|
4538 | U= ANSI2KNR=
|
---|
4539 | else
|
---|
4540 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
4541 | echo "${ECHO_T}no" >&6; }
|
---|
4542 | U=_ ANSI2KNR=ansi2knr
|
---|
4543 | fi
|
---|
4544 |
|
---|
4545 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4546 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
---|
4547 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4549 | else
|
---|
4550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4551 | /* confdefs.h. */
|
---|
4552 | _ACEOF
|
---|
4553 | cat confdefs.h >>conftest.$ac_ext
|
---|
4554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4555 | /* end confdefs.h. */
|
---|
4556 |
|
---|
4557 | int
|
---|
4558 | main ()
|
---|
4559 | {
|
---|
4560 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4561 | #ifndef __cplusplus
|
---|
4562 | /* Ultrix mips cc rejects this. */
|
---|
4563 | typedef int charset[2];
|
---|
4564 | const charset cs;
|
---|
4565 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4566 | char const *const *pcpcc;
|
---|
4567 | char **ppc;
|
---|
4568 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4569 | struct point {int x, y;};
|
---|
4570 | static struct point const zero = {0,0};
|
---|
4571 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4572 | It does not let you subtract one const X* pointer from another in
|
---|
4573 | an arm of an if-expression whose if-part is not a constant
|
---|
4574 | expression */
|
---|
4575 | const char *g = "string";
|
---|
4576 | pcpcc = &g + (g ? g-g : 0);
|
---|
4577 | /* HPUX 7.0 cc rejects these. */
|
---|
4578 | ++pcpcc;
|
---|
4579 | ppc = (char**) pcpcc;
|
---|
4580 | pcpcc = (char const *const *) ppc;
|
---|
4581 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4582 | char *t;
|
---|
4583 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4584 |
|
---|
4585 | *t++ = 0;
|
---|
4586 | if (s) return 0;
|
---|
4587 | }
|
---|
4588 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4589 | int x[] = {25, 17};
|
---|
4590 | const int *foo = &x[0];
|
---|
4591 | ++foo;
|
---|
4592 | }
|
---|
4593 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4594 | typedef const int *iptr;
|
---|
4595 | iptr p = 0;
|
---|
4596 | ++p;
|
---|
4597 | }
|
---|
4598 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4599 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4600 | struct s { int j; const int *ap[3]; };
|
---|
4601 | struct s *b; b->j = 5;
|
---|
4602 | }
|
---|
4603 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4604 | const int foo = 10;
|
---|
4605 | if (!foo) return 0;
|
---|
4606 | }
|
---|
4607 | return !cs[0] && !zero.x;
|
---|
4608 | #endif
|
---|
4609 |
|
---|
4610 | ;
|
---|
4611 | return 0;
|
---|
4612 | }
|
---|
4613 | _ACEOF
|
---|
4614 | rm -f conftest.$ac_objext
|
---|
4615 | if { (ac_try="$ac_compile"
|
---|
4616 | case "(($ac_try" in
|
---|
4617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4618 | *) ac_try_echo=$ac_try;;
|
---|
4619 | esac
|
---|
4620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4621 | (eval "$ac_compile") 2>conftest.er1
|
---|
4622 | ac_status=$?
|
---|
4623 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4624 | rm -f conftest.er1
|
---|
4625 | cat conftest.err >&5
|
---|
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4627 | (exit $ac_status); } && {
|
---|
4628 | test -z "$ac_c_werror_flag" ||
|
---|
4629 | test ! -s conftest.err
|
---|
4630 | } && test -s conftest.$ac_objext; then
|
---|
4631 | ac_cv_c_const=yes
|
---|
4632 | else
|
---|
4633 | echo "$as_me: failed program was:" >&5
|
---|
4634 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4635 |
|
---|
4636 | ac_cv_c_const=no
|
---|
4637 | fi
|
---|
4638 |
|
---|
4639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4640 | fi
|
---|
4641 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4642 | echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
---|
4643 | if test $ac_cv_c_const = no; then
|
---|
4644 |
|
---|
4645 | cat >>confdefs.h <<\_ACEOF
|
---|
4646 | #define const
|
---|
4647 | _ACEOF
|
---|
4648 |
|
---|
4649 | fi
|
---|
4650 |
|
---|
4651 | { echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4652 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
|
---|
4653 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4655 | else
|
---|
4656 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4657 | /* confdefs.h. */
|
---|
4658 | _ACEOF
|
---|
4659 | cat confdefs.h >>conftest.$ac_ext
|
---|
4660 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4661 | /* end confdefs.h. */
|
---|
4662 | $ac_includes_default
|
---|
4663 | typedef off_t ac__type_new_;
|
---|
4664 | int
|
---|
4665 | main ()
|
---|
4666 | {
|
---|
4667 | if ((ac__type_new_ *) 0)
|
---|
4668 | return 0;
|
---|
4669 | if (sizeof (ac__type_new_))
|
---|
4670 | return 0;
|
---|
4671 | ;
|
---|
4672 | return 0;
|
---|
4673 | }
|
---|
4674 | _ACEOF
|
---|
4675 | rm -f conftest.$ac_objext
|
---|
4676 | if { (ac_try="$ac_compile"
|
---|
4677 | case "(($ac_try" in
|
---|
4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4679 | *) ac_try_echo=$ac_try;;
|
---|
4680 | esac
|
---|
4681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4682 | (eval "$ac_compile") 2>conftest.er1
|
---|
4683 | ac_status=$?
|
---|
4684 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4685 | rm -f conftest.er1
|
---|
4686 | cat conftest.err >&5
|
---|
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4688 | (exit $ac_status); } && {
|
---|
4689 | test -z "$ac_c_werror_flag" ||
|
---|
4690 | test ! -s conftest.err
|
---|
4691 | } && test -s conftest.$ac_objext; then
|
---|
4692 | ac_cv_type_off_t=yes
|
---|
4693 | else
|
---|
4694 | echo "$as_me: failed program was:" >&5
|
---|
4695 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4696 |
|
---|
4697 | ac_cv_type_off_t=no
|
---|
4698 | fi
|
---|
4699 |
|
---|
4700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4701 | fi
|
---|
4702 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4703 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
|
---|
4704 | if test $ac_cv_type_off_t = yes; then
|
---|
4705 | :
|
---|
4706 | else
|
---|
4707 |
|
---|
4708 | cat >>confdefs.h <<_ACEOF
|
---|
4709 | #define off_t long int
|
---|
4710 | _ACEOF
|
---|
4711 |
|
---|
4712 | fi
|
---|
4713 |
|
---|
4714 | { echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4715 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
---|
4716 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4717 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4718 | else
|
---|
4719 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4720 | /* confdefs.h. */
|
---|
4721 | _ACEOF
|
---|
4722 | cat confdefs.h >>conftest.$ac_ext
|
---|
4723 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4724 | /* end confdefs.h. */
|
---|
4725 | $ac_includes_default
|
---|
4726 | typedef size_t ac__type_new_;
|
---|
4727 | int
|
---|
4728 | main ()
|
---|
4729 | {
|
---|
4730 | if ((ac__type_new_ *) 0)
|
---|
4731 | return 0;
|
---|
4732 | if (sizeof (ac__type_new_))
|
---|
4733 | return 0;
|
---|
4734 | ;
|
---|
4735 | return 0;
|
---|
4736 | }
|
---|
4737 | _ACEOF
|
---|
4738 | rm -f conftest.$ac_objext
|
---|
4739 | if { (ac_try="$ac_compile"
|
---|
4740 | case "(($ac_try" in
|
---|
4741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4742 | *) ac_try_echo=$ac_try;;
|
---|
4743 | esac
|
---|
4744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4745 | (eval "$ac_compile") 2>conftest.er1
|
---|
4746 | ac_status=$?
|
---|
4747 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4748 | rm -f conftest.er1
|
---|
4749 | cat conftest.err >&5
|
---|
4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4751 | (exit $ac_status); } && {
|
---|
4752 | test -z "$ac_c_werror_flag" ||
|
---|
4753 | test ! -s conftest.err
|
---|
4754 | } && test -s conftest.$ac_objext; then
|
---|
4755 | ac_cv_type_size_t=yes
|
---|
4756 | else
|
---|
4757 | echo "$as_me: failed program was:" >&5
|
---|
4758 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4759 |
|
---|
4760 | ac_cv_type_size_t=no
|
---|
4761 | fi
|
---|
4762 |
|
---|
4763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4764 | fi
|
---|
4765 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4766 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
---|
4767 | if test $ac_cv_type_size_t = yes; then
|
---|
4768 | :
|
---|
4769 | else
|
---|
4770 |
|
---|
4771 | cat >>confdefs.h <<_ACEOF
|
---|
4772 | #define size_t unsigned int
|
---|
4773 | _ACEOF
|
---|
4774 |
|
---|
4775 | fi
|
---|
4776 |
|
---|
4777 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4778 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
---|
4779 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4781 | else
|
---|
4782 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4783 | /* confdefs.h. */
|
---|
4784 | _ACEOF
|
---|
4785 | cat confdefs.h >>conftest.$ac_ext
|
---|
4786 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4787 | /* end confdefs.h. */
|
---|
4788 | #include <sys/types.h>
|
---|
4789 | #include <sys/time.h>
|
---|
4790 | #include <time.h>
|
---|
4791 |
|
---|
4792 | int
|
---|
4793 | main ()
|
---|
4794 | {
|
---|
4795 | if ((struct tm *) 0)
|
---|
4796 | return 0;
|
---|
4797 | ;
|
---|
4798 | return 0;
|
---|
4799 | }
|
---|
4800 | _ACEOF
|
---|
4801 | rm -f conftest.$ac_objext
|
---|
4802 | if { (ac_try="$ac_compile"
|
---|
4803 | case "(($ac_try" in
|
---|
4804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4805 | *) ac_try_echo=$ac_try;;
|
---|
4806 | esac
|
---|
4807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4808 | (eval "$ac_compile") 2>conftest.er1
|
---|
4809 | ac_status=$?
|
---|
4810 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4811 | rm -f conftest.er1
|
---|
4812 | cat conftest.err >&5
|
---|
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4814 | (exit $ac_status); } && {
|
---|
4815 | test -z "$ac_c_werror_flag" ||
|
---|
4816 | test ! -s conftest.err
|
---|
4817 | } && test -s conftest.$ac_objext; then
|
---|
4818 | ac_cv_header_time=yes
|
---|
4819 | else
|
---|
4820 | echo "$as_me: failed program was:" >&5
|
---|
4821 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4822 |
|
---|
4823 | ac_cv_header_time=no
|
---|
4824 | fi
|
---|
4825 |
|
---|
4826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4827 | fi
|
---|
4828 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4829 | echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
---|
4830 | if test $ac_cv_header_time = yes; then
|
---|
4831 |
|
---|
4832 | cat >>confdefs.h <<\_ACEOF
|
---|
4833 | #define TIME_WITH_SYS_TIME 1
|
---|
4834 | _ACEOF
|
---|
4835 |
|
---|
4836 | fi
|
---|
4837 |
|
---|
4838 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4839 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
---|
4840 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4841 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4842 | else
|
---|
4843 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4844 | /* confdefs.h. */
|
---|
4845 | _ACEOF
|
---|
4846 | cat confdefs.h >>conftest.$ac_ext
|
---|
4847 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4848 | /* end confdefs.h. */
|
---|
4849 | #include <sys/types.h>
|
---|
4850 | #include <time.h>
|
---|
4851 |
|
---|
4852 | int
|
---|
4853 | main ()
|
---|
4854 | {
|
---|
4855 | struct tm tm;
|
---|
4856 | int *p = &tm.tm_sec;
|
---|
4857 | return !p;
|
---|
4858 | ;
|
---|
4859 | return 0;
|
---|
4860 | }
|
---|
4861 | _ACEOF
|
---|
4862 | rm -f conftest.$ac_objext
|
---|
4863 | if { (ac_try="$ac_compile"
|
---|
4864 | case "(($ac_try" in
|
---|
4865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4866 | *) ac_try_echo=$ac_try;;
|
---|
4867 | esac
|
---|
4868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4869 | (eval "$ac_compile") 2>conftest.er1
|
---|
4870 | ac_status=$?
|
---|
4871 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4872 | rm -f conftest.er1
|
---|
4873 | cat conftest.err >&5
|
---|
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4875 | (exit $ac_status); } && {
|
---|
4876 | test -z "$ac_c_werror_flag" ||
|
---|
4877 | test ! -s conftest.err
|
---|
4878 | } && test -s conftest.$ac_objext; then
|
---|
4879 | ac_cv_struct_tm=time.h
|
---|
4880 | else
|
---|
4881 | echo "$as_me: failed program was:" >&5
|
---|
4882 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4883 |
|
---|
4884 | ac_cv_struct_tm=sys/time.h
|
---|
4885 | fi
|
---|
4886 |
|
---|
4887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4888 | fi
|
---|
4889 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4890 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
---|
4891 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4892 |
|
---|
4893 | cat >>confdefs.h <<\_ACEOF
|
---|
4894 | #define TM_IN_SYS_TIME 1
|
---|
4895 | _ACEOF
|
---|
4896 |
|
---|
4897 | fi
|
---|
4898 |
|
---|
4899 |
|
---|
4900 |
|
---|
4901 | # Check whether --with-unac was given.
|
---|
4902 | if test "${with_unac+set}" = set; then
|
---|
4903 | withval=$with_unac; UNAC_DIR=$withval
|
---|
4904 | else
|
---|
4905 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
4906 | fi
|
---|
4907 |
|
---|
4908 | cat >>confdefs.h <<_ACEOF
|
---|
4909 | #define UNAC_DIR "$UNAC_DIR"
|
---|
4910 | _ACEOF
|
---|
4911 |
|
---|
4912 |
|
---|
4913 |
|
---|
4914 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
4915 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
4916 | #AC_SUBST(LIBICONV_DIR)
|
---|
4917 |
|
---|
4918 |
|
---|
4919 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4920 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4921 | /* confdefs.h. */
|
---|
4922 | _ACEOF
|
---|
4923 | cat confdefs.h >>conftest.$ac_ext
|
---|
4924 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4925 | /* end confdefs.h. */
|
---|
4926 | #include <stdio.h>
|
---|
4927 |
|
---|
4928 | int
|
---|
4929 | main ()
|
---|
4930 | {
|
---|
4931 | FILE *rubbish = popen("yes", "r");
|
---|
4932 | ;
|
---|
4933 | return 0;
|
---|
4934 | }
|
---|
4935 | _ACEOF
|
---|
4936 | rm -f conftest.$ac_objext
|
---|
4937 | if { (ac_try="$ac_compile"
|
---|
4938 | case "(($ac_try" in
|
---|
4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4940 | *) ac_try_echo=$ac_try;;
|
---|
4941 | esac
|
---|
4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4943 | (eval "$ac_compile") 2>conftest.er1
|
---|
4944 | ac_status=$?
|
---|
4945 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4946 | rm -f conftest.er1
|
---|
4947 | cat conftest.err >&5
|
---|
4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4949 | (exit $ac_status); } && {
|
---|
4950 | test -z "$ac_c_werror_flag" ||
|
---|
4951 | test ! -s conftest.err
|
---|
4952 | } && test -s conftest.$ac_objext; then
|
---|
4953 | :
|
---|
4954 | else
|
---|
4955 | echo "$as_me: failed program was:" >&5
|
---|
4956 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4957 |
|
---|
4958 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4959 | fi
|
---|
4960 |
|
---|
4961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4962 | fi
|
---|
4963 |
|
---|
4964 |
|
---|
4965 |
|
---|
4966 | { echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4967 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
|
---|
4968 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4969 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4970 | else
|
---|
4971 | ac_check_lib_save_LIBS=$LIBS
|
---|
4972 | LIBS="-lg $LIBS"
|
---|
4973 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4974 | /* confdefs.h. */
|
---|
4975 | _ACEOF
|
---|
4976 | cat confdefs.h >>conftest.$ac_ext
|
---|
4977 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4978 | /* end confdefs.h. */
|
---|
4979 |
|
---|
4980 |
|
---|
4981 | int
|
---|
4982 | main ()
|
---|
4983 | {
|
---|
4984 | return main ();
|
---|
4985 | ;
|
---|
4986 | return 0;
|
---|
4987 | }
|
---|
4988 | _ACEOF
|
---|
4989 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4990 | if { (ac_try="$ac_link"
|
---|
4991 | case "(($ac_try" in
|
---|
4992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4993 | *) ac_try_echo=$ac_try;;
|
---|
4994 | esac
|
---|
4995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4996 | (eval "$ac_link") 2>conftest.er1
|
---|
4997 | ac_status=$?
|
---|
4998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4999 | rm -f conftest.er1
|
---|
5000 | cat conftest.err >&5
|
---|
5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5002 | (exit $ac_status); } && {
|
---|
5003 | test -z "$ac_c_werror_flag" ||
|
---|
5004 | test ! -s conftest.err
|
---|
5005 | } && test -s conftest$ac_exeext &&
|
---|
5006 | $as_test_x conftest$ac_exeext; then
|
---|
5007 | ac_cv_lib_g_main=yes
|
---|
5008 | else
|
---|
5009 | echo "$as_me: failed program was:" >&5
|
---|
5010 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5011 |
|
---|
5012 | ac_cv_lib_g_main=no
|
---|
5013 | fi
|
---|
5014 |
|
---|
5015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5016 | conftest$ac_exeext conftest.$ac_ext
|
---|
5017 | LIBS=$ac_check_lib_save_LIBS
|
---|
5018 | fi
|
---|
5019 | { echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
5020 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
|
---|
5021 | if test $ac_cv_lib_g_main = yes; then
|
---|
5022 | cat >>confdefs.h <<_ACEOF
|
---|
5023 | #define HAVE_LIBG 1
|
---|
5024 | _ACEOF
|
---|
5025 |
|
---|
5026 | LIBS="-lg $LIBS"
|
---|
5027 |
|
---|
5028 | fi
|
---|
5029 |
|
---|
5030 |
|
---|
5031 | { echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
5032 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
|
---|
5033 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
5034 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5035 | else
|
---|
5036 | ac_check_lib_save_LIBS=$LIBS
|
---|
5037 | LIBS="-lm $LIBS"
|
---|
5038 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5039 | /* confdefs.h. */
|
---|
5040 | _ACEOF
|
---|
5041 | cat confdefs.h >>conftest.$ac_ext
|
---|
5042 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5043 | /* end confdefs.h. */
|
---|
5044 |
|
---|
5045 |
|
---|
5046 | int
|
---|
5047 | main ()
|
---|
5048 | {
|
---|
5049 | return main ();
|
---|
5050 | ;
|
---|
5051 | return 0;
|
---|
5052 | }
|
---|
5053 | _ACEOF
|
---|
5054 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5055 | if { (ac_try="$ac_link"
|
---|
5056 | case "(($ac_try" in
|
---|
5057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5058 | *) ac_try_echo=$ac_try;;
|
---|
5059 | esac
|
---|
5060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5061 | (eval "$ac_link") 2>conftest.er1
|
---|
5062 | ac_status=$?
|
---|
5063 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5064 | rm -f conftest.er1
|
---|
5065 | cat conftest.err >&5
|
---|
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5067 | (exit $ac_status); } && {
|
---|
5068 | test -z "$ac_c_werror_flag" ||
|
---|
5069 | test ! -s conftest.err
|
---|
5070 | } && test -s conftest$ac_exeext &&
|
---|
5071 | $as_test_x conftest$ac_exeext; then
|
---|
5072 | ac_cv_lib_m_main=yes
|
---|
5073 | else
|
---|
5074 | echo "$as_me: failed program was:" >&5
|
---|
5075 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5076 |
|
---|
5077 | ac_cv_lib_m_main=no
|
---|
5078 | fi
|
---|
5079 |
|
---|
5080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5081 | conftest$ac_exeext conftest.$ac_ext
|
---|
5082 | LIBS=$ac_check_lib_save_LIBS
|
---|
5083 | fi
|
---|
5084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
5085 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
|
---|
5086 | if test $ac_cv_lib_m_main = yes; then
|
---|
5087 | cat >>confdefs.h <<_ACEOF
|
---|
5088 | #define HAVE_LIBM 1
|
---|
5089 | _ACEOF
|
---|
5090 |
|
---|
5091 | LIBS="-lm $LIBS"
|
---|
5092 |
|
---|
5093 | fi
|
---|
5094 |
|
---|
5095 |
|
---|
5096 | { echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
5097 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
|
---|
5098 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
5099 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5100 | else
|
---|
5101 | ac_check_lib_save_LIBS=$LIBS
|
---|
5102 | LIBS="-lstdc++ $LIBS"
|
---|
5103 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5104 | /* confdefs.h. */
|
---|
5105 | _ACEOF
|
---|
5106 | cat confdefs.h >>conftest.$ac_ext
|
---|
5107 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5108 | /* end confdefs.h. */
|
---|
5109 |
|
---|
5110 |
|
---|
5111 | int
|
---|
5112 | main ()
|
---|
5113 | {
|
---|
5114 | return main ();
|
---|
5115 | ;
|
---|
5116 | return 0;
|
---|
5117 | }
|
---|
5118 | _ACEOF
|
---|
5119 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5120 | if { (ac_try="$ac_link"
|
---|
5121 | case "(($ac_try" in
|
---|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5123 | *) ac_try_echo=$ac_try;;
|
---|
5124 | esac
|
---|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5126 | (eval "$ac_link") 2>conftest.er1
|
---|
5127 | ac_status=$?
|
---|
5128 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5129 | rm -f conftest.er1
|
---|
5130 | cat conftest.err >&5
|
---|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5132 | (exit $ac_status); } && {
|
---|
5133 | test -z "$ac_c_werror_flag" ||
|
---|
5134 | test ! -s conftest.err
|
---|
5135 | } && test -s conftest$ac_exeext &&
|
---|
5136 | $as_test_x conftest$ac_exeext; then
|
---|
5137 | ac_cv_lib_stdcpp_main=yes
|
---|
5138 | else
|
---|
5139 | echo "$as_me: failed program was:" >&5
|
---|
5140 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5141 |
|
---|
5142 | ac_cv_lib_stdcpp_main=no
|
---|
5143 | fi
|
---|
5144 |
|
---|
5145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5146 | conftest$ac_exeext conftest.$ac_ext
|
---|
5147 | LIBS=$ac_check_lib_save_LIBS
|
---|
5148 | fi
|
---|
5149 | { echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
5150 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; }
|
---|
5151 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
5152 | cat >>confdefs.h <<_ACEOF
|
---|
5153 | #define HAVE_LIBSTDC__ 1
|
---|
5154 | _ACEOF
|
---|
5155 |
|
---|
5156 | LIBS="-lstdc++ $LIBS"
|
---|
5157 |
|
---|
5158 | fi
|
---|
5159 |
|
---|
5160 |
|
---|
5161 | { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
5162 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
|
---|
5163 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5165 | else
|
---|
5166 | ac_check_lib_save_LIBS=$LIBS
|
---|
5167 | LIBS="-lcrypt $LIBS"
|
---|
5168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5169 | /* confdefs.h. */
|
---|
5170 | _ACEOF
|
---|
5171 | cat confdefs.h >>conftest.$ac_ext
|
---|
5172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5173 | /* end confdefs.h. */
|
---|
5174 |
|
---|
5175 |
|
---|
5176 | int
|
---|
5177 | main ()
|
---|
5178 | {
|
---|
5179 | return main ();
|
---|
5180 | ;
|
---|
5181 | return 0;
|
---|
5182 | }
|
---|
5183 | _ACEOF
|
---|
5184 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5185 | if { (ac_try="$ac_link"
|
---|
5186 | case "(($ac_try" in
|
---|
5187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5188 | *) ac_try_echo=$ac_try;;
|
---|
5189 | esac
|
---|
5190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5191 | (eval "$ac_link") 2>conftest.er1
|
---|
5192 | ac_status=$?
|
---|
5193 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5194 | rm -f conftest.er1
|
---|
5195 | cat conftest.err >&5
|
---|
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5197 | (exit $ac_status); } && {
|
---|
5198 | test -z "$ac_c_werror_flag" ||
|
---|
5199 | test ! -s conftest.err
|
---|
5200 | } && test -s conftest$ac_exeext &&
|
---|
5201 | $as_test_x conftest$ac_exeext; then
|
---|
5202 | ac_cv_lib_crypt_main=yes
|
---|
5203 | else
|
---|
5204 | echo "$as_me: failed program was:" >&5
|
---|
5205 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5206 |
|
---|
5207 | ac_cv_lib_crypt_main=no
|
---|
5208 | fi
|
---|
5209 |
|
---|
5210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5211 | conftest$ac_exeext conftest.$ac_ext
|
---|
5212 | LIBS=$ac_check_lib_save_LIBS
|
---|
5213 | fi
|
---|
5214 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
5215 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
|
---|
5216 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
5217 | cat >>confdefs.h <<_ACEOF
|
---|
5218 | #define HAVE_LIBCRYPT 1
|
---|
5219 | _ACEOF
|
---|
5220 |
|
---|
5221 | LIBS="-lcrypt $LIBS"
|
---|
5222 |
|
---|
5223 | fi
|
---|
5224 |
|
---|
5225 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5226 | #AC_HAVE_LIBRARY(iconv)
|
---|
5227 | #fi
|
---|
5228 |
|
---|
5229 |
|
---|
5230 |
|
---|
5231 |
|
---|
5232 |
|
---|
5233 |
|
---|
5234 |
|
---|
5235 | ac_header_dirent=no
|
---|
5236 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5237 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5238 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
5239 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
---|
5240 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5241 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5242 | else
|
---|
5243 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5244 | /* confdefs.h. */
|
---|
5245 | _ACEOF
|
---|
5246 | cat confdefs.h >>conftest.$ac_ext
|
---|
5247 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5248 | /* end confdefs.h. */
|
---|
5249 | #include <sys/types.h>
|
---|
5250 | #include <$ac_hdr>
|
---|
5251 |
|
---|
5252 | int
|
---|
5253 | main ()
|
---|
5254 | {
|
---|
5255 | if ((DIR *) 0)
|
---|
5256 | return 0;
|
---|
5257 | ;
|
---|
5258 | return 0;
|
---|
5259 | }
|
---|
5260 | _ACEOF
|
---|
5261 | rm -f conftest.$ac_objext
|
---|
5262 | if { (ac_try="$ac_compile"
|
---|
5263 | case "(($ac_try" in
|
---|
5264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5265 | *) ac_try_echo=$ac_try;;
|
---|
5266 | esac
|
---|
5267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5268 | (eval "$ac_compile") 2>conftest.er1
|
---|
5269 | ac_status=$?
|
---|
5270 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5271 | rm -f conftest.er1
|
---|
5272 | cat conftest.err >&5
|
---|
5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5274 | (exit $ac_status); } && {
|
---|
5275 | test -z "$ac_c_werror_flag" ||
|
---|
5276 | test ! -s conftest.err
|
---|
5277 | } && test -s conftest.$ac_objext; then
|
---|
5278 | eval "$as_ac_Header=yes"
|
---|
5279 | else
|
---|
5280 | echo "$as_me: failed program was:" >&5
|
---|
5281 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5282 |
|
---|
5283 | eval "$as_ac_Header=no"
|
---|
5284 | fi
|
---|
5285 |
|
---|
5286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5287 | fi
|
---|
5288 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
5289 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
5290 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
5291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5292 | cat >>confdefs.h <<_ACEOF
|
---|
5293 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5294 | _ACEOF
|
---|
5295 |
|
---|
5296 | ac_header_dirent=$ac_hdr; break
|
---|
5297 | fi
|
---|
5298 |
|
---|
5299 | done
|
---|
5300 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5301 | if test $ac_header_dirent = dirent.h; then
|
---|
5302 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5303 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
5304 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5306 | else
|
---|
5307 | ac_func_search_save_LIBS=$LIBS
|
---|
5308 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5309 | /* confdefs.h. */
|
---|
5310 | _ACEOF
|
---|
5311 | cat confdefs.h >>conftest.$ac_ext
|
---|
5312 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5313 | /* end confdefs.h. */
|
---|
5314 |
|
---|
5315 | /* Override any GCC internal prototype to avoid an error.
|
---|
5316 | Use char because int might match the return type of a GCC
|
---|
5317 | builtin and then its argument prototype would still apply. */
|
---|
5318 | #ifdef __cplusplus
|
---|
5319 | extern "C"
|
---|
5320 | #endif
|
---|
5321 | char opendir ();
|
---|
5322 | int
|
---|
5323 | main ()
|
---|
5324 | {
|
---|
5325 | return opendir ();
|
---|
5326 | ;
|
---|
5327 | return 0;
|
---|
5328 | }
|
---|
5329 | _ACEOF
|
---|
5330 | for ac_lib in '' dir; do
|
---|
5331 | if test -z "$ac_lib"; then
|
---|
5332 | ac_res="none required"
|
---|
5333 | else
|
---|
5334 | ac_res=-l$ac_lib
|
---|
5335 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5336 | fi
|
---|
5337 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5338 | if { (ac_try="$ac_link"
|
---|
5339 | case "(($ac_try" in
|
---|
5340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5341 | *) ac_try_echo=$ac_try;;
|
---|
5342 | esac
|
---|
5343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5344 | (eval "$ac_link") 2>conftest.er1
|
---|
5345 | ac_status=$?
|
---|
5346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5347 | rm -f conftest.er1
|
---|
5348 | cat conftest.err >&5
|
---|
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5350 | (exit $ac_status); } && {
|
---|
5351 | test -z "$ac_c_werror_flag" ||
|
---|
5352 | test ! -s conftest.err
|
---|
5353 | } && test -s conftest$ac_exeext &&
|
---|
5354 | $as_test_x conftest$ac_exeext; then
|
---|
5355 | ac_cv_search_opendir=$ac_res
|
---|
5356 | else
|
---|
5357 | echo "$as_me: failed program was:" >&5
|
---|
5358 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5359 |
|
---|
5360 |
|
---|
5361 | fi
|
---|
5362 |
|
---|
5363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5364 | conftest$ac_exeext
|
---|
5365 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5366 | break
|
---|
5367 | fi
|
---|
5368 | done
|
---|
5369 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5370 | :
|
---|
5371 | else
|
---|
5372 | ac_cv_search_opendir=no
|
---|
5373 | fi
|
---|
5374 | rm conftest.$ac_ext
|
---|
5375 | LIBS=$ac_func_search_save_LIBS
|
---|
5376 | fi
|
---|
5377 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5378 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
5379 | ac_res=$ac_cv_search_opendir
|
---|
5380 | if test "$ac_res" != no; then
|
---|
5381 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5382 |
|
---|
5383 | fi
|
---|
5384 |
|
---|
5385 | else
|
---|
5386 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5387 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
5388 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5389 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5390 | else
|
---|
5391 | ac_func_search_save_LIBS=$LIBS
|
---|
5392 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5393 | /* confdefs.h. */
|
---|
5394 | _ACEOF
|
---|
5395 | cat confdefs.h >>conftest.$ac_ext
|
---|
5396 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5397 | /* end confdefs.h. */
|
---|
5398 |
|
---|
5399 | /* Override any GCC internal prototype to avoid an error.
|
---|
5400 | Use char because int might match the return type of a GCC
|
---|
5401 | builtin and then its argument prototype would still apply. */
|
---|
5402 | #ifdef __cplusplus
|
---|
5403 | extern "C"
|
---|
5404 | #endif
|
---|
5405 | char opendir ();
|
---|
5406 | int
|
---|
5407 | main ()
|
---|
5408 | {
|
---|
5409 | return opendir ();
|
---|
5410 | ;
|
---|
5411 | return 0;
|
---|
5412 | }
|
---|
5413 | _ACEOF
|
---|
5414 | for ac_lib in '' x; do
|
---|
5415 | if test -z "$ac_lib"; then
|
---|
5416 | ac_res="none required"
|
---|
5417 | else
|
---|
5418 | ac_res=-l$ac_lib
|
---|
5419 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5420 | fi
|
---|
5421 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5422 | if { (ac_try="$ac_link"
|
---|
5423 | case "(($ac_try" in
|
---|
5424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5425 | *) ac_try_echo=$ac_try;;
|
---|
5426 | esac
|
---|
5427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5428 | (eval "$ac_link") 2>conftest.er1
|
---|
5429 | ac_status=$?
|
---|
5430 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5431 | rm -f conftest.er1
|
---|
5432 | cat conftest.err >&5
|
---|
5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5434 | (exit $ac_status); } && {
|
---|
5435 | test -z "$ac_c_werror_flag" ||
|
---|
5436 | test ! -s conftest.err
|
---|
5437 | } && test -s conftest$ac_exeext &&
|
---|
5438 | $as_test_x conftest$ac_exeext; then
|
---|
5439 | ac_cv_search_opendir=$ac_res
|
---|
5440 | else
|
---|
5441 | echo "$as_me: failed program was:" >&5
|
---|
5442 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5443 |
|
---|
5444 |
|
---|
5445 | fi
|
---|
5446 |
|
---|
5447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5448 | conftest$ac_exeext
|
---|
5449 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5450 | break
|
---|
5451 | fi
|
---|
5452 | done
|
---|
5453 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5454 | :
|
---|
5455 | else
|
---|
5456 | ac_cv_search_opendir=no
|
---|
5457 | fi
|
---|
5458 | rm conftest.$ac_ext
|
---|
5459 | LIBS=$ac_func_search_save_LIBS
|
---|
5460 | fi
|
---|
5461 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5462 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
5463 | ac_res=$ac_cv_search_opendir
|
---|
5464 | if test "$ac_res" != no; then
|
---|
5465 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5466 |
|
---|
5467 | fi
|
---|
5468 |
|
---|
5469 | fi
|
---|
5470 |
|
---|
5471 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5472 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
5473 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5474 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5475 | else
|
---|
5476 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5477 | /* confdefs.h. */
|
---|
5478 | _ACEOF
|
---|
5479 | cat confdefs.h >>conftest.$ac_ext
|
---|
5480 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5481 | /* end confdefs.h. */
|
---|
5482 | #include <stdlib.h>
|
---|
5483 | #include <stdarg.h>
|
---|
5484 | #include <string.h>
|
---|
5485 | #include <float.h>
|
---|
5486 |
|
---|
5487 | int
|
---|
5488 | main ()
|
---|
5489 | {
|
---|
5490 |
|
---|
5491 | ;
|
---|
5492 | return 0;
|
---|
5493 | }
|
---|
5494 | _ACEOF
|
---|
5495 | rm -f conftest.$ac_objext
|
---|
5496 | if { (ac_try="$ac_compile"
|
---|
5497 | case "(($ac_try" in
|
---|
5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5499 | *) ac_try_echo=$ac_try;;
|
---|
5500 | esac
|
---|
5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5502 | (eval "$ac_compile") 2>conftest.er1
|
---|
5503 | ac_status=$?
|
---|
5504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5505 | rm -f conftest.er1
|
---|
5506 | cat conftest.err >&5
|
---|
5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5508 | (exit $ac_status); } && {
|
---|
5509 | test -z "$ac_c_werror_flag" ||
|
---|
5510 | test ! -s conftest.err
|
---|
5511 | } && test -s conftest.$ac_objext; then
|
---|
5512 | ac_cv_header_stdc=yes
|
---|
5513 | else
|
---|
5514 | echo "$as_me: failed program was:" >&5
|
---|
5515 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5516 |
|
---|
5517 | ac_cv_header_stdc=no
|
---|
5518 | fi
|
---|
5519 |
|
---|
5520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5521 |
|
---|
5522 | if test $ac_cv_header_stdc = yes; then
|
---|
5523 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5524 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5525 | /* confdefs.h. */
|
---|
5526 | _ACEOF
|
---|
5527 | cat confdefs.h >>conftest.$ac_ext
|
---|
5528 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5529 | /* end confdefs.h. */
|
---|
5530 | #include <string.h>
|
---|
5531 |
|
---|
5532 | _ACEOF
|
---|
5533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5534 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5535 | :
|
---|
5536 | else
|
---|
5537 | ac_cv_header_stdc=no
|
---|
5538 | fi
|
---|
5539 | rm -f conftest*
|
---|
5540 |
|
---|
5541 | fi
|
---|
5542 |
|
---|
5543 | if test $ac_cv_header_stdc = yes; then
|
---|
5544 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5546 | /* confdefs.h. */
|
---|
5547 | _ACEOF
|
---|
5548 | cat confdefs.h >>conftest.$ac_ext
|
---|
5549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5550 | /* end confdefs.h. */
|
---|
5551 | #include <stdlib.h>
|
---|
5552 |
|
---|
5553 | _ACEOF
|
---|
5554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5555 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5556 | :
|
---|
5557 | else
|
---|
5558 | ac_cv_header_stdc=no
|
---|
5559 | fi
|
---|
5560 | rm -f conftest*
|
---|
5561 |
|
---|
5562 | fi
|
---|
5563 |
|
---|
5564 | if test $ac_cv_header_stdc = yes; then
|
---|
5565 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5566 | if test "$cross_compiling" = yes; then
|
---|
5567 | :
|
---|
5568 | else
|
---|
5569 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5570 | /* confdefs.h. */
|
---|
5571 | _ACEOF
|
---|
5572 | cat confdefs.h >>conftest.$ac_ext
|
---|
5573 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5574 | /* end confdefs.h. */
|
---|
5575 | #include <ctype.h>
|
---|
5576 | #include <stdlib.h>
|
---|
5577 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5578 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5579 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5580 | #else
|
---|
5581 | # define ISLOWER(c) \
|
---|
5582 | (('a' <= (c) && (c) <= 'i') \
|
---|
5583 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5584 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5585 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5586 | #endif
|
---|
5587 |
|
---|
5588 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5589 | int
|
---|
5590 | main ()
|
---|
5591 | {
|
---|
5592 | int i;
|
---|
5593 | for (i = 0; i < 256; i++)
|
---|
5594 | if (XOR (islower (i), ISLOWER (i))
|
---|
5595 | || toupper (i) != TOUPPER (i))
|
---|
5596 | return 2;
|
---|
5597 | return 0;
|
---|
5598 | }
|
---|
5599 | _ACEOF
|
---|
5600 | rm -f conftest$ac_exeext
|
---|
5601 | if { (ac_try="$ac_link"
|
---|
5602 | case "(($ac_try" in
|
---|
5603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5604 | *) ac_try_echo=$ac_try;;
|
---|
5605 | esac
|
---|
5606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5607 | (eval "$ac_link") 2>&5
|
---|
5608 | ac_status=$?
|
---|
5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5610 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5611 | { (case "(($ac_try" in
|
---|
5612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5613 | *) ac_try_echo=$ac_try;;
|
---|
5614 | esac
|
---|
5615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5616 | (eval "$ac_try") 2>&5
|
---|
5617 | ac_status=$?
|
---|
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5619 | (exit $ac_status); }; }; then
|
---|
5620 | :
|
---|
5621 | else
|
---|
5622 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5623 | echo "$as_me: failed program was:" >&5
|
---|
5624 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5625 |
|
---|
5626 | ( exit $ac_status )
|
---|
5627 | ac_cv_header_stdc=no
|
---|
5628 | fi
|
---|
5629 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5630 | fi
|
---|
5631 |
|
---|
5632 |
|
---|
5633 | fi
|
---|
5634 | fi
|
---|
5635 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5636 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
5637 | if test $ac_cv_header_stdc = yes; then
|
---|
5638 |
|
---|
5639 | cat >>confdefs.h <<\_ACEOF
|
---|
5640 | #define STDC_HEADERS 1
|
---|
5641 | _ACEOF
|
---|
5642 |
|
---|
5643 | fi
|
---|
5644 |
|
---|
5645 |
|
---|
5646 |
|
---|
5647 |
|
---|
5648 |
|
---|
5649 |
|
---|
5650 |
|
---|
5651 |
|
---|
5652 |
|
---|
5653 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
5654 | do
|
---|
5655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5656 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5657 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
5659 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5661 | fi
|
---|
5662 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
5663 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
5664 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
5665 | else
|
---|
5666 | # Is the header compilable?
|
---|
5667 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5668 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
5669 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5670 | /* confdefs.h. */
|
---|
5671 | _ACEOF
|
---|
5672 | cat confdefs.h >>conftest.$ac_ext
|
---|
5673 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5674 | /* end confdefs.h. */
|
---|
5675 | $ac_includes_default
|
---|
5676 | #include <$ac_header>
|
---|
5677 | _ACEOF
|
---|
5678 | rm -f conftest.$ac_objext
|
---|
5679 | if { (ac_try="$ac_compile"
|
---|
5680 | case "(($ac_try" in
|
---|
5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5682 | *) ac_try_echo=$ac_try;;
|
---|
5683 | esac
|
---|
5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5685 | (eval "$ac_compile") 2>conftest.er1
|
---|
5686 | ac_status=$?
|
---|
5687 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5688 | rm -f conftest.er1
|
---|
5689 | cat conftest.err >&5
|
---|
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5691 | (exit $ac_status); } && {
|
---|
5692 | test -z "$ac_c_werror_flag" ||
|
---|
5693 | test ! -s conftest.err
|
---|
5694 | } && test -s conftest.$ac_objext; then
|
---|
5695 | ac_header_compiler=yes
|
---|
5696 | else
|
---|
5697 | echo "$as_me: failed program was:" >&5
|
---|
5698 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5699 |
|
---|
5700 | ac_header_compiler=no
|
---|
5701 | fi
|
---|
5702 |
|
---|
5703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5704 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5705 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5706 |
|
---|
5707 | # Is the header present?
|
---|
5708 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
5710 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5711 | /* confdefs.h. */
|
---|
5712 | _ACEOF
|
---|
5713 | cat confdefs.h >>conftest.$ac_ext
|
---|
5714 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5715 | /* end confdefs.h. */
|
---|
5716 | #include <$ac_header>
|
---|
5717 | _ACEOF
|
---|
5718 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5719 | case "(($ac_try" in
|
---|
5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5721 | *) ac_try_echo=$ac_try;;
|
---|
5722 | esac
|
---|
5723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5724 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5725 | ac_status=$?
|
---|
5726 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5727 | rm -f conftest.er1
|
---|
5728 | cat conftest.err >&5
|
---|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5730 | (exit $ac_status); } >/dev/null && {
|
---|
5731 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5732 | test ! -s conftest.err
|
---|
5733 | }; then
|
---|
5734 | ac_header_preproc=yes
|
---|
5735 | else
|
---|
5736 | echo "$as_me: failed program was:" >&5
|
---|
5737 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5738 |
|
---|
5739 | ac_header_preproc=no
|
---|
5740 | fi
|
---|
5741 |
|
---|
5742 | rm -f conftest.err conftest.$ac_ext
|
---|
5743 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5744 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5745 |
|
---|
5746 | # So? What about this header?
|
---|
5747 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5748 | yes:no: )
|
---|
5749 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5750 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5752 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5753 | ac_header_preproc=yes
|
---|
5754 | ;;
|
---|
5755 | no:yes:* )
|
---|
5756 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5757 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5758 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5759 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5761 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5763 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5765 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5766 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5767 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5768 |
|
---|
5769 | ;;
|
---|
5770 | esac
|
---|
5771 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
5773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5774 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5775 | else
|
---|
5776 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5777 | fi
|
---|
5778 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
5779 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
5780 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
5781 |
|
---|
5782 | fi
|
---|
5783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5784 | cat >>confdefs.h <<_ACEOF
|
---|
5785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5786 | _ACEOF
|
---|
5787 |
|
---|
5788 | fi
|
---|
5789 |
|
---|
5790 | done
|
---|
5791 |
|
---|
5792 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5793 | /* confdefs.h. */
|
---|
5794 | _ACEOF
|
---|
5795 | cat confdefs.h >>conftest.$ac_ext
|
---|
5796 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5797 | /* end confdefs.h. */
|
---|
5798 | #include <stdio.h>
|
---|
5799 |
|
---|
5800 | _ACEOF
|
---|
5801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5802 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5803 | cat >>confdefs.h <<\_ACEOF
|
---|
5804 | #define HAVE_FREAD_DECL 1
|
---|
5805 | _ACEOF
|
---|
5806 |
|
---|
5807 | fi
|
---|
5808 | rm -f conftest*
|
---|
5809 |
|
---|
5810 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5811 | /* confdefs.h. */
|
---|
5812 | _ACEOF
|
---|
5813 | cat confdefs.h >>conftest.$ac_ext
|
---|
5814 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5815 | /* end confdefs.h. */
|
---|
5816 | #include <stdio.h>
|
---|
5817 |
|
---|
5818 | _ACEOF
|
---|
5819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5820 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5821 | cat >>confdefs.h <<\_ACEOF
|
---|
5822 | #define HAVE_FGETC_DECL 1
|
---|
5823 | _ACEOF
|
---|
5824 |
|
---|
5825 | fi
|
---|
5826 | rm -f conftest*
|
---|
5827 |
|
---|
5828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5829 | /* confdefs.h. */
|
---|
5830 | _ACEOF
|
---|
5831 | cat confdefs.h >>conftest.$ac_ext
|
---|
5832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5833 | /* end confdefs.h. */
|
---|
5834 | #include <sys/procfs.h>
|
---|
5835 |
|
---|
5836 | _ACEOF
|
---|
5837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5838 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5839 | cat >>confdefs.h <<\_ACEOF
|
---|
5840 | #define HAVE_PR_BRKSIZE 1
|
---|
5841 | _ACEOF
|
---|
5842 |
|
---|
5843 | fi
|
---|
5844 | rm -f conftest*
|
---|
5845 |
|
---|
5846 |
|
---|
5847 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5848 | # for constant arguments. Useless!
|
---|
5849 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5850 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
|
---|
5851 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5852 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5853 | else
|
---|
5854 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5855 | /* confdefs.h. */
|
---|
5856 | _ACEOF
|
---|
5857 | cat confdefs.h >>conftest.$ac_ext
|
---|
5858 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5859 | /* end confdefs.h. */
|
---|
5860 | #include <alloca.h>
|
---|
5861 | int
|
---|
5862 | main ()
|
---|
5863 | {
|
---|
5864 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5865 | if (p) return 0;
|
---|
5866 | ;
|
---|
5867 | return 0;
|
---|
5868 | }
|
---|
5869 | _ACEOF
|
---|
5870 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5871 | if { (ac_try="$ac_link"
|
---|
5872 | case "(($ac_try" in
|
---|
5873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5874 | *) ac_try_echo=$ac_try;;
|
---|
5875 | esac
|
---|
5876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5877 | (eval "$ac_link") 2>conftest.er1
|
---|
5878 | ac_status=$?
|
---|
5879 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5880 | rm -f conftest.er1
|
---|
5881 | cat conftest.err >&5
|
---|
5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5883 | (exit $ac_status); } && {
|
---|
5884 | test -z "$ac_c_werror_flag" ||
|
---|
5885 | test ! -s conftest.err
|
---|
5886 | } && test -s conftest$ac_exeext &&
|
---|
5887 | $as_test_x conftest$ac_exeext; then
|
---|
5888 | ac_cv_working_alloca_h=yes
|
---|
5889 | else
|
---|
5890 | echo "$as_me: failed program was:" >&5
|
---|
5891 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5892 |
|
---|
5893 | ac_cv_working_alloca_h=no
|
---|
5894 | fi
|
---|
5895 |
|
---|
5896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5897 | conftest$ac_exeext conftest.$ac_ext
|
---|
5898 | fi
|
---|
5899 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5900 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
|
---|
5901 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5902 |
|
---|
5903 | cat >>confdefs.h <<\_ACEOF
|
---|
5904 | #define HAVE_ALLOCA_H 1
|
---|
5905 | _ACEOF
|
---|
5906 |
|
---|
5907 | fi
|
---|
5908 |
|
---|
5909 | { echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5910 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
|
---|
5911 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5912 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5913 | else
|
---|
5914 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5915 | /* confdefs.h. */
|
---|
5916 | _ACEOF
|
---|
5917 | cat confdefs.h >>conftest.$ac_ext
|
---|
5918 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5919 | /* end confdefs.h. */
|
---|
5920 | #ifdef __GNUC__
|
---|
5921 | # define alloca __builtin_alloca
|
---|
5922 | #else
|
---|
5923 | # ifdef _MSC_VER
|
---|
5924 | # include <malloc.h>
|
---|
5925 | # define alloca _alloca
|
---|
5926 | # else
|
---|
5927 | # ifdef HAVE_ALLOCA_H
|
---|
5928 | # include <alloca.h>
|
---|
5929 | # else
|
---|
5930 | # ifdef _AIX
|
---|
5931 | #pragma alloca
|
---|
5932 | # else
|
---|
5933 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5934 | char *alloca ();
|
---|
5935 | # endif
|
---|
5936 | # endif
|
---|
5937 | # endif
|
---|
5938 | # endif
|
---|
5939 | #endif
|
---|
5940 |
|
---|
5941 | int
|
---|
5942 | main ()
|
---|
5943 | {
|
---|
5944 | char *p = (char *) alloca (1);
|
---|
5945 | if (p) return 0;
|
---|
5946 | ;
|
---|
5947 | return 0;
|
---|
5948 | }
|
---|
5949 | _ACEOF
|
---|
5950 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5951 | if { (ac_try="$ac_link"
|
---|
5952 | case "(($ac_try" in
|
---|
5953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5954 | *) ac_try_echo=$ac_try;;
|
---|
5955 | esac
|
---|
5956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5957 | (eval "$ac_link") 2>conftest.er1
|
---|
5958 | ac_status=$?
|
---|
5959 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5960 | rm -f conftest.er1
|
---|
5961 | cat conftest.err >&5
|
---|
5962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5963 | (exit $ac_status); } && {
|
---|
5964 | test -z "$ac_c_werror_flag" ||
|
---|
5965 | test ! -s conftest.err
|
---|
5966 | } && test -s conftest$ac_exeext &&
|
---|
5967 | $as_test_x conftest$ac_exeext; then
|
---|
5968 | ac_cv_func_alloca_works=yes
|
---|
5969 | else
|
---|
5970 | echo "$as_me: failed program was:" >&5
|
---|
5971 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5972 |
|
---|
5973 | ac_cv_func_alloca_works=no
|
---|
5974 | fi
|
---|
5975 |
|
---|
5976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5977 | conftest$ac_exeext conftest.$ac_ext
|
---|
5978 | fi
|
---|
5979 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5980 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
|
---|
5981 |
|
---|
5982 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5983 |
|
---|
5984 | cat >>confdefs.h <<\_ACEOF
|
---|
5985 | #define HAVE_ALLOCA 1
|
---|
5986 | _ACEOF
|
---|
5987 |
|
---|
5988 | else
|
---|
5989 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5990 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5991 | # contain a buggy version. If you still want to use their alloca,
|
---|
5992 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5993 |
|
---|
5994 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5995 |
|
---|
5996 | cat >>confdefs.h <<\_ACEOF
|
---|
5997 | #define C_ALLOCA 1
|
---|
5998 | _ACEOF
|
---|
5999 |
|
---|
6000 |
|
---|
6001 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
6002 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
|
---|
6003 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6005 | else
|
---|
6006 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6007 | /* confdefs.h. */
|
---|
6008 | _ACEOF
|
---|
6009 | cat confdefs.h >>conftest.$ac_ext
|
---|
6010 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6011 | /* end confdefs.h. */
|
---|
6012 | #if defined CRAY && ! defined CRAY2
|
---|
6013 | webecray
|
---|
6014 | #else
|
---|
6015 | wenotbecray
|
---|
6016 | #endif
|
---|
6017 |
|
---|
6018 | _ACEOF
|
---|
6019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6020 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
6021 | ac_cv_os_cray=yes
|
---|
6022 | else
|
---|
6023 | ac_cv_os_cray=no
|
---|
6024 | fi
|
---|
6025 | rm -f conftest*
|
---|
6026 |
|
---|
6027 | fi
|
---|
6028 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
6029 | echo "${ECHO_T}$ac_cv_os_cray" >&6; }
|
---|
6030 | if test $ac_cv_os_cray = yes; then
|
---|
6031 | for ac_func in _getb67 GETB67 getb67; do
|
---|
6032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6033 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6035 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6036 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6037 | else
|
---|
6038 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6039 | /* confdefs.h. */
|
---|
6040 | _ACEOF
|
---|
6041 | cat confdefs.h >>conftest.$ac_ext
|
---|
6042 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6043 | /* end confdefs.h. */
|
---|
6044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6046 | #define $ac_func innocuous_$ac_func
|
---|
6047 |
|
---|
6048 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6049 | which can conflict with char $ac_func (); below.
|
---|
6050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6051 | <limits.h> exists even on freestanding compilers. */
|
---|
6052 |
|
---|
6053 | #ifdef __STDC__
|
---|
6054 | # include <limits.h>
|
---|
6055 | #else
|
---|
6056 | # include <assert.h>
|
---|
6057 | #endif
|
---|
6058 |
|
---|
6059 | #undef $ac_func
|
---|
6060 |
|
---|
6061 | /* Override any GCC internal prototype to avoid an error.
|
---|
6062 | Use char because int might match the return type of a GCC
|
---|
6063 | builtin and then its argument prototype would still apply. */
|
---|
6064 | #ifdef __cplusplus
|
---|
6065 | extern "C"
|
---|
6066 | #endif
|
---|
6067 | char $ac_func ();
|
---|
6068 | /* The GNU C library defines this for functions which it implements
|
---|
6069 | to always fail with ENOSYS. Some functions are actually named
|
---|
6070 | something starting with __ and the normal name is an alias. */
|
---|
6071 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6072 | choke me
|
---|
6073 | #endif
|
---|
6074 |
|
---|
6075 | int
|
---|
6076 | main ()
|
---|
6077 | {
|
---|
6078 | return $ac_func ();
|
---|
6079 | ;
|
---|
6080 | return 0;
|
---|
6081 | }
|
---|
6082 | _ACEOF
|
---|
6083 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6084 | if { (ac_try="$ac_link"
|
---|
6085 | case "(($ac_try" in
|
---|
6086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6087 | *) ac_try_echo=$ac_try;;
|
---|
6088 | esac
|
---|
6089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6090 | (eval "$ac_link") 2>conftest.er1
|
---|
6091 | ac_status=$?
|
---|
6092 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6093 | rm -f conftest.er1
|
---|
6094 | cat conftest.err >&5
|
---|
6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6096 | (exit $ac_status); } && {
|
---|
6097 | test -z "$ac_c_werror_flag" ||
|
---|
6098 | test ! -s conftest.err
|
---|
6099 | } && test -s conftest$ac_exeext &&
|
---|
6100 | $as_test_x conftest$ac_exeext; then
|
---|
6101 | eval "$as_ac_var=yes"
|
---|
6102 | else
|
---|
6103 | echo "$as_me: failed program was:" >&5
|
---|
6104 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6105 |
|
---|
6106 | eval "$as_ac_var=no"
|
---|
6107 | fi
|
---|
6108 |
|
---|
6109 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6110 | conftest$ac_exeext conftest.$ac_ext
|
---|
6111 | fi
|
---|
6112 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6113 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6114 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6115 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6116 |
|
---|
6117 | cat >>confdefs.h <<_ACEOF
|
---|
6118 | #define CRAY_STACKSEG_END $ac_func
|
---|
6119 | _ACEOF
|
---|
6120 |
|
---|
6121 | break
|
---|
6122 | fi
|
---|
6123 |
|
---|
6124 | done
|
---|
6125 | fi
|
---|
6126 |
|
---|
6127 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
6128 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
|
---|
6129 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
6130 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6131 | else
|
---|
6132 | if test "$cross_compiling" = yes; then
|
---|
6133 | ac_cv_c_stack_direction=0
|
---|
6134 | else
|
---|
6135 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6136 | /* confdefs.h. */
|
---|
6137 | _ACEOF
|
---|
6138 | cat confdefs.h >>conftest.$ac_ext
|
---|
6139 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6140 | /* end confdefs.h. */
|
---|
6141 | $ac_includes_default
|
---|
6142 | int
|
---|
6143 | find_stack_direction ()
|
---|
6144 | {
|
---|
6145 | static char *addr = 0;
|
---|
6146 | auto char dummy;
|
---|
6147 | if (addr == 0)
|
---|
6148 | {
|
---|
6149 | addr = &dummy;
|
---|
6150 | return find_stack_direction ();
|
---|
6151 | }
|
---|
6152 | else
|
---|
6153 | return (&dummy > addr) ? 1 : -1;
|
---|
6154 | }
|
---|
6155 |
|
---|
6156 | int
|
---|
6157 | main ()
|
---|
6158 | {
|
---|
6159 | return find_stack_direction () < 0;
|
---|
6160 | }
|
---|
6161 | _ACEOF
|
---|
6162 | rm -f conftest$ac_exeext
|
---|
6163 | if { (ac_try="$ac_link"
|
---|
6164 | case "(($ac_try" in
|
---|
6165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6166 | *) ac_try_echo=$ac_try;;
|
---|
6167 | esac
|
---|
6168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6169 | (eval "$ac_link") 2>&5
|
---|
6170 | ac_status=$?
|
---|
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
6173 | { (case "(($ac_try" in
|
---|
6174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6175 | *) ac_try_echo=$ac_try;;
|
---|
6176 | esac
|
---|
6177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6178 | (eval "$ac_try") 2>&5
|
---|
6179 | ac_status=$?
|
---|
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6181 | (exit $ac_status); }; }; then
|
---|
6182 | ac_cv_c_stack_direction=1
|
---|
6183 | else
|
---|
6184 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
6185 | echo "$as_me: failed program was:" >&5
|
---|
6186 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6187 |
|
---|
6188 | ( exit $ac_status )
|
---|
6189 | ac_cv_c_stack_direction=-1
|
---|
6190 | fi
|
---|
6191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
6192 | fi
|
---|
6193 |
|
---|
6194 |
|
---|
6195 | fi
|
---|
6196 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
6197 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
|
---|
6198 |
|
---|
6199 | cat >>confdefs.h <<_ACEOF
|
---|
6200 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
6201 | _ACEOF
|
---|
6202 |
|
---|
6203 |
|
---|
6204 | fi
|
---|
6205 |
|
---|
6206 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
6207 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
6208 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
---|
6209 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
6210 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6211 | else
|
---|
6212 | ac_pattern="Autoconf.*'x'"
|
---|
6213 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6214 | /* confdefs.h. */
|
---|
6215 | _ACEOF
|
---|
6216 | cat confdefs.h >>conftest.$ac_ext
|
---|
6217 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6218 | /* end confdefs.h. */
|
---|
6219 | #include <sgtty.h>
|
---|
6220 | Autoconf TIOCGETP
|
---|
6221 | _ACEOF
|
---|
6222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6223 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
6224 | ac_cv_prog_gcc_traditional=yes
|
---|
6225 | else
|
---|
6226 | ac_cv_prog_gcc_traditional=no
|
---|
6227 | fi
|
---|
6228 | rm -f conftest*
|
---|
6229 |
|
---|
6230 |
|
---|
6231 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
6232 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6233 | /* confdefs.h. */
|
---|
6234 | _ACEOF
|
---|
6235 | cat confdefs.h >>conftest.$ac_ext
|
---|
6236 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6237 | /* end confdefs.h. */
|
---|
6238 | #include <termio.h>
|
---|
6239 | Autoconf TCGETA
|
---|
6240 | _ACEOF
|
---|
6241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6242 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
6243 | ac_cv_prog_gcc_traditional=yes
|
---|
6244 | fi
|
---|
6245 | rm -f conftest*
|
---|
6246 |
|
---|
6247 | fi
|
---|
6248 | fi
|
---|
6249 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
6250 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
---|
6251 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
6252 | CC="$CC -traditional"
|
---|
6253 | fi
|
---|
6254 | fi
|
---|
6255 |
|
---|
6256 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
6257 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
---|
6258 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
6259 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6260 | else
|
---|
6261 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6262 | /* confdefs.h. */
|
---|
6263 | _ACEOF
|
---|
6264 | cat confdefs.h >>conftest.$ac_ext
|
---|
6265 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6266 | /* end confdefs.h. */
|
---|
6267 | #include <sys/types.h>
|
---|
6268 | #include <signal.h>
|
---|
6269 |
|
---|
6270 | int
|
---|
6271 | main ()
|
---|
6272 | {
|
---|
6273 | return *(signal (0, 0)) (0) == 1;
|
---|
6274 | ;
|
---|
6275 | return 0;
|
---|
6276 | }
|
---|
6277 | _ACEOF
|
---|
6278 | rm -f conftest.$ac_objext
|
---|
6279 | if { (ac_try="$ac_compile"
|
---|
6280 | case "(($ac_try" in
|
---|
6281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6282 | *) ac_try_echo=$ac_try;;
|
---|
6283 | esac
|
---|
6284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6285 | (eval "$ac_compile") 2>conftest.er1
|
---|
6286 | ac_status=$?
|
---|
6287 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6288 | rm -f conftest.er1
|
---|
6289 | cat conftest.err >&5
|
---|
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6291 | (exit $ac_status); } && {
|
---|
6292 | test -z "$ac_c_werror_flag" ||
|
---|
6293 | test ! -s conftest.err
|
---|
6294 | } && test -s conftest.$ac_objext; then
|
---|
6295 | ac_cv_type_signal=int
|
---|
6296 | else
|
---|
6297 | echo "$as_me: failed program was:" >&5
|
---|
6298 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6299 |
|
---|
6300 | ac_cv_type_signal=void
|
---|
6301 | fi
|
---|
6302 |
|
---|
6303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6304 | fi
|
---|
6305 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
6306 | echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
---|
6307 |
|
---|
6308 | cat >>confdefs.h <<_ACEOF
|
---|
6309 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
6310 | _ACEOF
|
---|
6311 |
|
---|
6312 |
|
---|
6313 |
|
---|
6314 | for ac_func in vprintf
|
---|
6315 | do
|
---|
6316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6317 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6319 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6320 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6321 | else
|
---|
6322 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6323 | /* confdefs.h. */
|
---|
6324 | _ACEOF
|
---|
6325 | cat confdefs.h >>conftest.$ac_ext
|
---|
6326 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6327 | /* end confdefs.h. */
|
---|
6328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6330 | #define $ac_func innocuous_$ac_func
|
---|
6331 |
|
---|
6332 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6333 | which can conflict with char $ac_func (); below.
|
---|
6334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6335 | <limits.h> exists even on freestanding compilers. */
|
---|
6336 |
|
---|
6337 | #ifdef __STDC__
|
---|
6338 | # include <limits.h>
|
---|
6339 | #else
|
---|
6340 | # include <assert.h>
|
---|
6341 | #endif
|
---|
6342 |
|
---|
6343 | #undef $ac_func
|
---|
6344 |
|
---|
6345 | /* Override any GCC internal prototype to avoid an error.
|
---|
6346 | Use char because int might match the return type of a GCC
|
---|
6347 | builtin and then its argument prototype would still apply. */
|
---|
6348 | #ifdef __cplusplus
|
---|
6349 | extern "C"
|
---|
6350 | #endif
|
---|
6351 | char $ac_func ();
|
---|
6352 | /* The GNU C library defines this for functions which it implements
|
---|
6353 | to always fail with ENOSYS. Some functions are actually named
|
---|
6354 | something starting with __ and the normal name is an alias. */
|
---|
6355 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6356 | choke me
|
---|
6357 | #endif
|
---|
6358 |
|
---|
6359 | int
|
---|
6360 | main ()
|
---|
6361 | {
|
---|
6362 | return $ac_func ();
|
---|
6363 | ;
|
---|
6364 | return 0;
|
---|
6365 | }
|
---|
6366 | _ACEOF
|
---|
6367 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6368 | if { (ac_try="$ac_link"
|
---|
6369 | case "(($ac_try" in
|
---|
6370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6371 | *) ac_try_echo=$ac_try;;
|
---|
6372 | esac
|
---|
6373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6374 | (eval "$ac_link") 2>conftest.er1
|
---|
6375 | ac_status=$?
|
---|
6376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6377 | rm -f conftest.er1
|
---|
6378 | cat conftest.err >&5
|
---|
6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6380 | (exit $ac_status); } && {
|
---|
6381 | test -z "$ac_c_werror_flag" ||
|
---|
6382 | test ! -s conftest.err
|
---|
6383 | } && test -s conftest$ac_exeext &&
|
---|
6384 | $as_test_x conftest$ac_exeext; then
|
---|
6385 | eval "$as_ac_var=yes"
|
---|
6386 | else
|
---|
6387 | echo "$as_me: failed program was:" >&5
|
---|
6388 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6389 |
|
---|
6390 | eval "$as_ac_var=no"
|
---|
6391 | fi
|
---|
6392 |
|
---|
6393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6394 | conftest$ac_exeext conftest.$ac_ext
|
---|
6395 | fi
|
---|
6396 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6397 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6398 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6399 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6400 | cat >>confdefs.h <<_ACEOF
|
---|
6401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6402 | _ACEOF
|
---|
6403 |
|
---|
6404 | { echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6405 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
|
---|
6406 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6407 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6408 | else
|
---|
6409 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6410 | /* confdefs.h. */
|
---|
6411 | _ACEOF
|
---|
6412 | cat confdefs.h >>conftest.$ac_ext
|
---|
6413 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6414 | /* end confdefs.h. */
|
---|
6415 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6417 | #define _doprnt innocuous__doprnt
|
---|
6418 |
|
---|
6419 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6420 | which can conflict with char _doprnt (); below.
|
---|
6421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6422 | <limits.h> exists even on freestanding compilers. */
|
---|
6423 |
|
---|
6424 | #ifdef __STDC__
|
---|
6425 | # include <limits.h>
|
---|
6426 | #else
|
---|
6427 | # include <assert.h>
|
---|
6428 | #endif
|
---|
6429 |
|
---|
6430 | #undef _doprnt
|
---|
6431 |
|
---|
6432 | /* Override any GCC internal prototype to avoid an error.
|
---|
6433 | Use char because int might match the return type of a GCC
|
---|
6434 | builtin and then its argument prototype would still apply. */
|
---|
6435 | #ifdef __cplusplus
|
---|
6436 | extern "C"
|
---|
6437 | #endif
|
---|
6438 | char _doprnt ();
|
---|
6439 | /* The GNU C library defines this for functions which it implements
|
---|
6440 | to always fail with ENOSYS. Some functions are actually named
|
---|
6441 | something starting with __ and the normal name is an alias. */
|
---|
6442 | #if defined __stub__doprnt || defined __stub____doprnt
|
---|
6443 | choke me
|
---|
6444 | #endif
|
---|
6445 |
|
---|
6446 | int
|
---|
6447 | main ()
|
---|
6448 | {
|
---|
6449 | return _doprnt ();
|
---|
6450 | ;
|
---|
6451 | return 0;
|
---|
6452 | }
|
---|
6453 | _ACEOF
|
---|
6454 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6455 | if { (ac_try="$ac_link"
|
---|
6456 | case "(($ac_try" in
|
---|
6457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6458 | *) ac_try_echo=$ac_try;;
|
---|
6459 | esac
|
---|
6460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6461 | (eval "$ac_link") 2>conftest.er1
|
---|
6462 | ac_status=$?
|
---|
6463 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6464 | rm -f conftest.er1
|
---|
6465 | cat conftest.err >&5
|
---|
6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6467 | (exit $ac_status); } && {
|
---|
6468 | test -z "$ac_c_werror_flag" ||
|
---|
6469 | test ! -s conftest.err
|
---|
6470 | } && test -s conftest$ac_exeext &&
|
---|
6471 | $as_test_x conftest$ac_exeext; then
|
---|
6472 | ac_cv_func__doprnt=yes
|
---|
6473 | else
|
---|
6474 | echo "$as_me: failed program was:" >&5
|
---|
6475 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6476 |
|
---|
6477 | ac_cv_func__doprnt=no
|
---|
6478 | fi
|
---|
6479 |
|
---|
6480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6481 | conftest$ac_exeext conftest.$ac_ext
|
---|
6482 | fi
|
---|
6483 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6484 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
|
---|
6485 | if test $ac_cv_func__doprnt = yes; then
|
---|
6486 |
|
---|
6487 | cat >>confdefs.h <<\_ACEOF
|
---|
6488 | #define HAVE_DOPRNT 1
|
---|
6489 | _ACEOF
|
---|
6490 |
|
---|
6491 | fi
|
---|
6492 |
|
---|
6493 | fi
|
---|
6494 | done
|
---|
6495 |
|
---|
6496 |
|
---|
6497 |
|
---|
6498 |
|
---|
6499 |
|
---|
6500 |
|
---|
6501 |
|
---|
6502 |
|
---|
6503 |
|
---|
6504 |
|
---|
6505 |
|
---|
6506 |
|
---|
6507 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6508 | do
|
---|
6509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6510 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6512 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6513 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6514 | else
|
---|
6515 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6516 | /* confdefs.h. */
|
---|
6517 | _ACEOF
|
---|
6518 | cat confdefs.h >>conftest.$ac_ext
|
---|
6519 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6520 | /* end confdefs.h. */
|
---|
6521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6523 | #define $ac_func innocuous_$ac_func
|
---|
6524 |
|
---|
6525 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6526 | which can conflict with char $ac_func (); below.
|
---|
6527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6528 | <limits.h> exists even on freestanding compilers. */
|
---|
6529 |
|
---|
6530 | #ifdef __STDC__
|
---|
6531 | # include <limits.h>
|
---|
6532 | #else
|
---|
6533 | # include <assert.h>
|
---|
6534 | #endif
|
---|
6535 |
|
---|
6536 | #undef $ac_func
|
---|
6537 |
|
---|
6538 | /* Override any GCC internal prototype to avoid an error.
|
---|
6539 | Use char because int might match the return type of a GCC
|
---|
6540 | builtin and then its argument prototype would still apply. */
|
---|
6541 | #ifdef __cplusplus
|
---|
6542 | extern "C"
|
---|
6543 | #endif
|
---|
6544 | char $ac_func ();
|
---|
6545 | /* The GNU C library defines this for functions which it implements
|
---|
6546 | to always fail with ENOSYS. Some functions are actually named
|
---|
6547 | something starting with __ and the normal name is an alias. */
|
---|
6548 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6549 | choke me
|
---|
6550 | #endif
|
---|
6551 |
|
---|
6552 | int
|
---|
6553 | main ()
|
---|
6554 | {
|
---|
6555 | return $ac_func ();
|
---|
6556 | ;
|
---|
6557 | return 0;
|
---|
6558 | }
|
---|
6559 | _ACEOF
|
---|
6560 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6561 | if { (ac_try="$ac_link"
|
---|
6562 | case "(($ac_try" in
|
---|
6563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6564 | *) ac_try_echo=$ac_try;;
|
---|
6565 | esac
|
---|
6566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6567 | (eval "$ac_link") 2>conftest.er1
|
---|
6568 | ac_status=$?
|
---|
6569 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6570 | rm -f conftest.er1
|
---|
6571 | cat conftest.err >&5
|
---|
6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6573 | (exit $ac_status); } && {
|
---|
6574 | test -z "$ac_c_werror_flag" ||
|
---|
6575 | test ! -s conftest.err
|
---|
6576 | } && test -s conftest$ac_exeext &&
|
---|
6577 | $as_test_x conftest$ac_exeext; then
|
---|
6578 | eval "$as_ac_var=yes"
|
---|
6579 | else
|
---|
6580 | echo "$as_me: failed program was:" >&5
|
---|
6581 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6582 |
|
---|
6583 | eval "$as_ac_var=no"
|
---|
6584 | fi
|
---|
6585 |
|
---|
6586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6587 | conftest$ac_exeext conftest.$ac_ext
|
---|
6588 | fi
|
---|
6589 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6590 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6591 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6592 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6593 | cat >>confdefs.h <<_ACEOF
|
---|
6594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6595 | _ACEOF
|
---|
6596 |
|
---|
6597 | fi
|
---|
6598 | done
|
---|
6599 |
|
---|
6600 |
|
---|
6601 |
|
---|
6602 |
|
---|
6603 | for ac_func in ftruncate strstr strcasecmp
|
---|
6604 | do
|
---|
6605 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6606 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6607 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6608 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6609 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6610 | else
|
---|
6611 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6612 | /* confdefs.h. */
|
---|
6613 | _ACEOF
|
---|
6614 | cat confdefs.h >>conftest.$ac_ext
|
---|
6615 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6616 | /* end confdefs.h. */
|
---|
6617 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6619 | #define $ac_func innocuous_$ac_func
|
---|
6620 |
|
---|
6621 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6622 | which can conflict with char $ac_func (); below.
|
---|
6623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6624 | <limits.h> exists even on freestanding compilers. */
|
---|
6625 |
|
---|
6626 | #ifdef __STDC__
|
---|
6627 | # include <limits.h>
|
---|
6628 | #else
|
---|
6629 | # include <assert.h>
|
---|
6630 | #endif
|
---|
6631 |
|
---|
6632 | #undef $ac_func
|
---|
6633 |
|
---|
6634 | /* Override any GCC internal prototype to avoid an error.
|
---|
6635 | Use char because int might match the return type of a GCC
|
---|
6636 | builtin and then its argument prototype would still apply. */
|
---|
6637 | #ifdef __cplusplus
|
---|
6638 | extern "C"
|
---|
6639 | #endif
|
---|
6640 | char $ac_func ();
|
---|
6641 | /* The GNU C library defines this for functions which it implements
|
---|
6642 | to always fail with ENOSYS. Some functions are actually named
|
---|
6643 | something starting with __ and the normal name is an alias. */
|
---|
6644 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6645 | choke me
|
---|
6646 | #endif
|
---|
6647 |
|
---|
6648 | int
|
---|
6649 | main ()
|
---|
6650 | {
|
---|
6651 | return $ac_func ();
|
---|
6652 | ;
|
---|
6653 | return 0;
|
---|
6654 | }
|
---|
6655 | _ACEOF
|
---|
6656 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6657 | if { (ac_try="$ac_link"
|
---|
6658 | case "(($ac_try" in
|
---|
6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6660 | *) ac_try_echo=$ac_try;;
|
---|
6661 | esac
|
---|
6662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6663 | (eval "$ac_link") 2>conftest.er1
|
---|
6664 | ac_status=$?
|
---|
6665 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6666 | rm -f conftest.er1
|
---|
6667 | cat conftest.err >&5
|
---|
6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6669 | (exit $ac_status); } && {
|
---|
6670 | test -z "$ac_c_werror_flag" ||
|
---|
6671 | test ! -s conftest.err
|
---|
6672 | } && test -s conftest$ac_exeext &&
|
---|
6673 | $as_test_x conftest$ac_exeext; then
|
---|
6674 | eval "$as_ac_var=yes"
|
---|
6675 | else
|
---|
6676 | echo "$as_me: failed program was:" >&5
|
---|
6677 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6678 |
|
---|
6679 | eval "$as_ac_var=no"
|
---|
6680 | fi
|
---|
6681 |
|
---|
6682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6683 | conftest$ac_exeext conftest.$ac_ext
|
---|
6684 | fi
|
---|
6685 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6686 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6687 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6688 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6689 | cat >>confdefs.h <<_ACEOF
|
---|
6690 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6691 | _ACEOF
|
---|
6692 |
|
---|
6693 | else
|
---|
6694 | case " $LIBOBJS " in
|
---|
6695 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6696 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
6697 | ;;
|
---|
6698 | esac
|
---|
6699 |
|
---|
6700 | fi
|
---|
6701 | done
|
---|
6702 |
|
---|
6703 |
|
---|
6704 |
|
---|
6705 |
|
---|
6706 | { echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6707 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
|
---|
6708 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6709 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6710 | else
|
---|
6711 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6712 | /* confdefs.h. */
|
---|
6713 | _ACEOF
|
---|
6714 | cat confdefs.h >>conftest.$ac_ext
|
---|
6715 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6716 | /* end confdefs.h. */
|
---|
6717 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6719 | #define textdomain innocuous_textdomain
|
---|
6720 |
|
---|
6721 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6722 | which can conflict with char textdomain (); below.
|
---|
6723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6724 | <limits.h> exists even on freestanding compilers. */
|
---|
6725 |
|
---|
6726 | #ifdef __STDC__
|
---|
6727 | # include <limits.h>
|
---|
6728 | #else
|
---|
6729 | # include <assert.h>
|
---|
6730 | #endif
|
---|
6731 |
|
---|
6732 | #undef textdomain
|
---|
6733 |
|
---|
6734 | /* Override any GCC internal prototype to avoid an error.
|
---|
6735 | Use char because int might match the return type of a GCC
|
---|
6736 | builtin and then its argument prototype would still apply. */
|
---|
6737 | #ifdef __cplusplus
|
---|
6738 | extern "C"
|
---|
6739 | #endif
|
---|
6740 | char textdomain ();
|
---|
6741 | /* The GNU C library defines this for functions which it implements
|
---|
6742 | to always fail with ENOSYS. Some functions are actually named
|
---|
6743 | something starting with __ and the normal name is an alias. */
|
---|
6744 | #if defined __stub_textdomain || defined __stub___textdomain
|
---|
6745 | choke me
|
---|
6746 | #endif
|
---|
6747 |
|
---|
6748 | int
|
---|
6749 | main ()
|
---|
6750 | {
|
---|
6751 | return textdomain ();
|
---|
6752 | ;
|
---|
6753 | return 0;
|
---|
6754 | }
|
---|
6755 | _ACEOF
|
---|
6756 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6757 | if { (ac_try="$ac_link"
|
---|
6758 | case "(($ac_try" in
|
---|
6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6760 | *) ac_try_echo=$ac_try;;
|
---|
6761 | esac
|
---|
6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6763 | (eval "$ac_link") 2>conftest.er1
|
---|
6764 | ac_status=$?
|
---|
6765 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6766 | rm -f conftest.er1
|
---|
6767 | cat conftest.err >&5
|
---|
6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6769 | (exit $ac_status); } && {
|
---|
6770 | test -z "$ac_c_werror_flag" ||
|
---|
6771 | test ! -s conftest.err
|
---|
6772 | } && test -s conftest$ac_exeext &&
|
---|
6773 | $as_test_x conftest$ac_exeext; then
|
---|
6774 | ac_cv_func_textdomain=yes
|
---|
6775 | else
|
---|
6776 | echo "$as_me: failed program was:" >&5
|
---|
6777 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6778 |
|
---|
6779 | ac_cv_func_textdomain=no
|
---|
6780 | fi
|
---|
6781 |
|
---|
6782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6783 | conftest$ac_exeext conftest.$ac_ext
|
---|
6784 | fi
|
---|
6785 | { echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6786 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
|
---|
6787 | if test $ac_cv_func_textdomain = yes; then
|
---|
6788 | cat >>confdefs.h <<\_ACEOF
|
---|
6789 | #define ENABLE_NLS 1
|
---|
6790 | _ACEOF
|
---|
6791 |
|
---|
6792 | fi
|
---|
6793 |
|
---|
6794 |
|
---|
6795 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
6796 | # a non-standard Path
|
---|
6797 | # is there a better way to do this??
|
---|
6798 | { echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
6799 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6; }
|
---|
6800 | # set defaults
|
---|
6801 | JNIINC=""
|
---|
6802 | JNISUFFIX="so"
|
---|
6803 | JNIFLAGS="-shared"
|
---|
6804 |
|
---|
6805 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6806 | { echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
6807 | echo "${ECHO_T}Darwin" >&6; }
|
---|
6808 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
6809 | JNISUFFIX="jnilib"
|
---|
6810 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
6811 | fi
|
---|
6812 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
6813 | { echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
6814 | echo "${ECHO_T}Solaris" >&6; }
|
---|
6815 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
6816 | fi
|
---|
6817 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
6818 | { echo "$as_me:$LINENO: result: Linux" >&5
|
---|
6819 | echo "${ECHO_T}Linux" >&6; }
|
---|
6820 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
6821 | fi
|
---|
6822 |
|
---|
6823 |
|
---|
6824 |
|
---|
6825 |
|
---|
6826 |
|
---|
6827 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6828 | # ---------------------------------------------------------------------------
|
---|
6829 | { echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6830 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
|
---|
6831 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6832 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6833 | echo "${ECHO_T}yes" >&6; }
|
---|
6834 | case " $LIBOBJS " in
|
---|
6835 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6836 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6837 | ;;
|
---|
6838 | esac
|
---|
6839 |
|
---|
6840 | cat >>confdefs.h <<\_ACEOF
|
---|
6841 | #define HAVE_VALLOC 1
|
---|
6842 | _ACEOF
|
---|
6843 |
|
---|
6844 | else
|
---|
6845 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6846 | echo "${ECHO_T}no" >&6; }
|
---|
6847 |
|
---|
6848 | for ac_func in valloc
|
---|
6849 | do
|
---|
6850 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6851 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6852 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6853 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6854 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6855 | else
|
---|
6856 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6857 | /* confdefs.h. */
|
---|
6858 | _ACEOF
|
---|
6859 | cat confdefs.h >>conftest.$ac_ext
|
---|
6860 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6861 | /* end confdefs.h. */
|
---|
6862 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6863 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6864 | #define $ac_func innocuous_$ac_func
|
---|
6865 |
|
---|
6866 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6867 | which can conflict with char $ac_func (); below.
|
---|
6868 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6869 | <limits.h> exists even on freestanding compilers. */
|
---|
6870 |
|
---|
6871 | #ifdef __STDC__
|
---|
6872 | # include <limits.h>
|
---|
6873 | #else
|
---|
6874 | # include <assert.h>
|
---|
6875 | #endif
|
---|
6876 |
|
---|
6877 | #undef $ac_func
|
---|
6878 |
|
---|
6879 | /* Override any GCC internal prototype to avoid an error.
|
---|
6880 | Use char because int might match the return type of a GCC
|
---|
6881 | builtin and then its argument prototype would still apply. */
|
---|
6882 | #ifdef __cplusplus
|
---|
6883 | extern "C"
|
---|
6884 | #endif
|
---|
6885 | char $ac_func ();
|
---|
6886 | /* The GNU C library defines this for functions which it implements
|
---|
6887 | to always fail with ENOSYS. Some functions are actually named
|
---|
6888 | something starting with __ and the normal name is an alias. */
|
---|
6889 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6890 | choke me
|
---|
6891 | #endif
|
---|
6892 |
|
---|
6893 | int
|
---|
6894 | main ()
|
---|
6895 | {
|
---|
6896 | return $ac_func ();
|
---|
6897 | ;
|
---|
6898 | return 0;
|
---|
6899 | }
|
---|
6900 | _ACEOF
|
---|
6901 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6902 | if { (ac_try="$ac_link"
|
---|
6903 | case "(($ac_try" in
|
---|
6904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6905 | *) ac_try_echo=$ac_try;;
|
---|
6906 | esac
|
---|
6907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6908 | (eval "$ac_link") 2>conftest.er1
|
---|
6909 | ac_status=$?
|
---|
6910 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6911 | rm -f conftest.er1
|
---|
6912 | cat conftest.err >&5
|
---|
6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6914 | (exit $ac_status); } && {
|
---|
6915 | test -z "$ac_c_werror_flag" ||
|
---|
6916 | test ! -s conftest.err
|
---|
6917 | } && test -s conftest$ac_exeext &&
|
---|
6918 | $as_test_x conftest$ac_exeext; then
|
---|
6919 | eval "$as_ac_var=yes"
|
---|
6920 | else
|
---|
6921 | echo "$as_me: failed program was:" >&5
|
---|
6922 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6923 |
|
---|
6924 | eval "$as_ac_var=no"
|
---|
6925 | fi
|
---|
6926 |
|
---|
6927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6928 | conftest$ac_exeext conftest.$ac_ext
|
---|
6929 | fi
|
---|
6930 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6931 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6932 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6933 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6934 | cat >>confdefs.h <<_ACEOF
|
---|
6935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6936 | _ACEOF
|
---|
6937 |
|
---|
6938 | fi
|
---|
6939 | done
|
---|
6940 |
|
---|
6941 | fi
|
---|
6942 |
|
---|
6943 | { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6944 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
|
---|
6945 |
|
---|
6946 | # Check whether --with-dmalloc was given.
|
---|
6947 | if test "${with_dmalloc+set}" = set; then
|
---|
6948 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6949 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6950 | echo "${ECHO_T}yes" >&6; }
|
---|
6951 | cat >>confdefs.h <<\_ACEOF
|
---|
6952 | #define WITH_DMALLOC 1
|
---|
6953 | _ACEOF
|
---|
6954 |
|
---|
6955 | LIBS="$LIBS -ldmalloc"
|
---|
6956 | LDFLAGS="$LDFLAGS -g"
|
---|
6957 | else
|
---|
6958 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6959 | echo "${ECHO_T}no" >&6; }
|
---|
6960 | fi
|
---|
6961 | else
|
---|
6962 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6963 | echo "${ECHO_T}no" >&6; }
|
---|
6964 | fi
|
---|
6965 |
|
---|
6966 |
|
---|
6967 | { echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6968 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
|
---|
6969 |
|
---|
6970 | # Check whether --with-regex was given.
|
---|
6971 | if test "${with_regex+set}" = set; then
|
---|
6972 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6973 | ac_with_regex=1
|
---|
6974 | { echo "$as_me:$LINENO: result: regex" >&5
|
---|
6975 | echo "${ECHO_T}regex" >&6; }
|
---|
6976 | cat >>confdefs.h <<\_ACEOF
|
---|
6977 | #define WITH_REGEX 1
|
---|
6978 | _ACEOF
|
---|
6979 |
|
---|
6980 | case " $LIBOBJS " in
|
---|
6981 | *" regex.$ac_objext "* ) ;;
|
---|
6982 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6983 | ;;
|
---|
6984 | esac
|
---|
6985 |
|
---|
6986 | fi
|
---|
6987 | fi
|
---|
6988 |
|
---|
6989 | if test -z "$ac_with_regex"; then
|
---|
6990 | { echo "$as_me:$LINENO: result: rx" >&5
|
---|
6991 | echo "${ECHO_T}rx" >&6; }
|
---|
6992 | { echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6993 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
|
---|
6994 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6996 | else
|
---|
6997 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6998 | /* confdefs.h. */
|
---|
6999 | _ACEOF
|
---|
7000 | cat confdefs.h >>conftest.$ac_ext
|
---|
7001 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7002 | /* end confdefs.h. */
|
---|
7003 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
7004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7005 | #define re_rx_search innocuous_re_rx_search
|
---|
7006 |
|
---|
7007 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7008 | which can conflict with char re_rx_search (); below.
|
---|
7009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7010 | <limits.h> exists even on freestanding compilers. */
|
---|
7011 |
|
---|
7012 | #ifdef __STDC__
|
---|
7013 | # include <limits.h>
|
---|
7014 | #else
|
---|
7015 | # include <assert.h>
|
---|
7016 | #endif
|
---|
7017 |
|
---|
7018 | #undef re_rx_search
|
---|
7019 |
|
---|
7020 | /* Override any GCC internal prototype to avoid an error.
|
---|
7021 | Use char because int might match the return type of a GCC
|
---|
7022 | builtin and then its argument prototype would still apply. */
|
---|
7023 | #ifdef __cplusplus
|
---|
7024 | extern "C"
|
---|
7025 | #endif
|
---|
7026 | char re_rx_search ();
|
---|
7027 | /* The GNU C library defines this for functions which it implements
|
---|
7028 | to always fail with ENOSYS. Some functions are actually named
|
---|
7029 | something starting with __ and the normal name is an alias. */
|
---|
7030 | #if defined __stub_re_rx_search || defined __stub___re_rx_search
|
---|
7031 | choke me
|
---|
7032 | #endif
|
---|
7033 |
|
---|
7034 | int
|
---|
7035 | main ()
|
---|
7036 | {
|
---|
7037 | return re_rx_search ();
|
---|
7038 | ;
|
---|
7039 | return 0;
|
---|
7040 | }
|
---|
7041 | _ACEOF
|
---|
7042 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7043 | if { (ac_try="$ac_link"
|
---|
7044 | case "(($ac_try" in
|
---|
7045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7046 | *) ac_try_echo=$ac_try;;
|
---|
7047 | esac
|
---|
7048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7049 | (eval "$ac_link") 2>conftest.er1
|
---|
7050 | ac_status=$?
|
---|
7051 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7052 | rm -f conftest.er1
|
---|
7053 | cat conftest.err >&5
|
---|
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7055 | (exit $ac_status); } && {
|
---|
7056 | test -z "$ac_c_werror_flag" ||
|
---|
7057 | test ! -s conftest.err
|
---|
7058 | } && test -s conftest$ac_exeext &&
|
---|
7059 | $as_test_x conftest$ac_exeext; then
|
---|
7060 | ac_cv_func_re_rx_search=yes
|
---|
7061 | else
|
---|
7062 | echo "$as_me: failed program was:" >&5
|
---|
7063 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7064 |
|
---|
7065 | ac_cv_func_re_rx_search=no
|
---|
7066 | fi
|
---|
7067 |
|
---|
7068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7069 | conftest$ac_exeext conftest.$ac_ext
|
---|
7070 | fi
|
---|
7071 | { echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
7072 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
|
---|
7073 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
7074 | :
|
---|
7075 | else
|
---|
7076 | { echo "$as_me:$LINENO: checking for unsigned char *" >&5
|
---|
7077 | echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6; }
|
---|
7078 | if test "${ac_cv_type_unsigned_char_p+set}" = set; then
|
---|
7079 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7080 | else
|
---|
7081 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7082 | /* confdefs.h. */
|
---|
7083 | _ACEOF
|
---|
7084 | cat confdefs.h >>conftest.$ac_ext
|
---|
7085 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7086 | /* end confdefs.h. */
|
---|
7087 | $ac_includes_default
|
---|
7088 | typedef unsigned char * ac__type_new_;
|
---|
7089 | int
|
---|
7090 | main ()
|
---|
7091 | {
|
---|
7092 | if ((ac__type_new_ *) 0)
|
---|
7093 | return 0;
|
---|
7094 | if (sizeof (ac__type_new_))
|
---|
7095 | return 0;
|
---|
7096 | ;
|
---|
7097 | return 0;
|
---|
7098 | }
|
---|
7099 | _ACEOF
|
---|
7100 | rm -f conftest.$ac_objext
|
---|
7101 | if { (ac_try="$ac_compile"
|
---|
7102 | case "(($ac_try" in
|
---|
7103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7104 | *) ac_try_echo=$ac_try;;
|
---|
7105 | esac
|
---|
7106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7107 | (eval "$ac_compile") 2>conftest.er1
|
---|
7108 | ac_status=$?
|
---|
7109 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7110 | rm -f conftest.er1
|
---|
7111 | cat conftest.err >&5
|
---|
7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7113 | (exit $ac_status); } && {
|
---|
7114 | test -z "$ac_c_werror_flag" ||
|
---|
7115 | test ! -s conftest.err
|
---|
7116 | } && test -s conftest.$ac_objext; then
|
---|
7117 | ac_cv_type_unsigned_char_p=yes
|
---|
7118 | else
|
---|
7119 | echo "$as_me: failed program was:" >&5
|
---|
7120 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7121 |
|
---|
7122 | ac_cv_type_unsigned_char_p=no
|
---|
7123 | fi
|
---|
7124 |
|
---|
7125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7126 | fi
|
---|
7127 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
|
---|
7128 | echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6; }
|
---|
7129 |
|
---|
7130 | # The cast to long int works around a bug in the HP C Compiler
|
---|
7131 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
7132 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
7133 | # This bug is HP SR number 8606223364.
|
---|
7134 | { echo "$as_me:$LINENO: checking size of unsigned char *" >&5
|
---|
7135 | echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6; }
|
---|
7136 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
|
---|
7137 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7138 | else
|
---|
7139 | if test "$cross_compiling" = yes; then
|
---|
7140 | # Depending upon the size, compute the lo and hi bounds.
|
---|
7141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7142 | /* confdefs.h. */
|
---|
7143 | _ACEOF
|
---|
7144 | cat confdefs.h >>conftest.$ac_ext
|
---|
7145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7146 | /* end confdefs.h. */
|
---|
7147 | $ac_includes_default
|
---|
7148 | typedef unsigned char * ac__type_sizeof_;
|
---|
7149 | int
|
---|
7150 | main ()
|
---|
7151 | {
|
---|
7152 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
---|
7153 | test_array [0] = 0
|
---|
7154 |
|
---|
7155 | ;
|
---|
7156 | return 0;
|
---|
7157 | }
|
---|
7158 | _ACEOF
|
---|
7159 | rm -f conftest.$ac_objext
|
---|
7160 | if { (ac_try="$ac_compile"
|
---|
7161 | case "(($ac_try" in
|
---|
7162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7163 | *) ac_try_echo=$ac_try;;
|
---|
7164 | esac
|
---|
7165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7166 | (eval "$ac_compile") 2>conftest.er1
|
---|
7167 | ac_status=$?
|
---|
7168 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7169 | rm -f conftest.er1
|
---|
7170 | cat conftest.err >&5
|
---|
7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7172 | (exit $ac_status); } && {
|
---|
7173 | test -z "$ac_c_werror_flag" ||
|
---|
7174 | test ! -s conftest.err
|
---|
7175 | } && test -s conftest.$ac_objext; then
|
---|
7176 | ac_lo=0 ac_mid=0
|
---|
7177 | while :; do
|
---|
7178 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7179 | /* confdefs.h. */
|
---|
7180 | _ACEOF
|
---|
7181 | cat confdefs.h >>conftest.$ac_ext
|
---|
7182 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7183 | /* end confdefs.h. */
|
---|
7184 | $ac_includes_default
|
---|
7185 | typedef unsigned char * ac__type_sizeof_;
|
---|
7186 | int
|
---|
7187 | main ()
|
---|
7188 | {
|
---|
7189 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
7190 | test_array [0] = 0
|
---|
7191 |
|
---|
7192 | ;
|
---|
7193 | return 0;
|
---|
7194 | }
|
---|
7195 | _ACEOF
|
---|
7196 | rm -f conftest.$ac_objext
|
---|
7197 | if { (ac_try="$ac_compile"
|
---|
7198 | case "(($ac_try" in
|
---|
7199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7200 | *) ac_try_echo=$ac_try;;
|
---|
7201 | esac
|
---|
7202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7203 | (eval "$ac_compile") 2>conftest.er1
|
---|
7204 | ac_status=$?
|
---|
7205 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7206 | rm -f conftest.er1
|
---|
7207 | cat conftest.err >&5
|
---|
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7209 | (exit $ac_status); } && {
|
---|
7210 | test -z "$ac_c_werror_flag" ||
|
---|
7211 | test ! -s conftest.err
|
---|
7212 | } && test -s conftest.$ac_objext; then
|
---|
7213 | ac_hi=$ac_mid; break
|
---|
7214 | else
|
---|
7215 | echo "$as_me: failed program was:" >&5
|
---|
7216 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7217 |
|
---|
7218 | ac_lo=`expr $ac_mid + 1`
|
---|
7219 | if test $ac_lo -le $ac_mid; then
|
---|
7220 | ac_lo= ac_hi=
|
---|
7221 | break
|
---|
7222 | fi
|
---|
7223 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
7224 | fi
|
---|
7225 |
|
---|
7226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7227 | done
|
---|
7228 | else
|
---|
7229 | echo "$as_me: failed program was:" >&5
|
---|
7230 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7231 |
|
---|
7232 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7233 | /* confdefs.h. */
|
---|
7234 | _ACEOF
|
---|
7235 | cat confdefs.h >>conftest.$ac_ext
|
---|
7236 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7237 | /* end confdefs.h. */
|
---|
7238 | $ac_includes_default
|
---|
7239 | typedef unsigned char * ac__type_sizeof_;
|
---|
7240 | int
|
---|
7241 | main ()
|
---|
7242 | {
|
---|
7243 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
---|
7244 | test_array [0] = 0
|
---|
7245 |
|
---|
7246 | ;
|
---|
7247 | return 0;
|
---|
7248 | }
|
---|
7249 | _ACEOF
|
---|
7250 | rm -f conftest.$ac_objext
|
---|
7251 | if { (ac_try="$ac_compile"
|
---|
7252 | case "(($ac_try" in
|
---|
7253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7254 | *) ac_try_echo=$ac_try;;
|
---|
7255 | esac
|
---|
7256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7257 | (eval "$ac_compile") 2>conftest.er1
|
---|
7258 | ac_status=$?
|
---|
7259 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7260 | rm -f conftest.er1
|
---|
7261 | cat conftest.err >&5
|
---|
7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7263 | (exit $ac_status); } && {
|
---|
7264 | test -z "$ac_c_werror_flag" ||
|
---|
7265 | test ! -s conftest.err
|
---|
7266 | } && test -s conftest.$ac_objext; then
|
---|
7267 | ac_hi=-1 ac_mid=-1
|
---|
7268 | while :; do
|
---|
7269 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7270 | /* confdefs.h. */
|
---|
7271 | _ACEOF
|
---|
7272 | cat confdefs.h >>conftest.$ac_ext
|
---|
7273 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7274 | /* end confdefs.h. */
|
---|
7275 | $ac_includes_default
|
---|
7276 | typedef unsigned char * ac__type_sizeof_;
|
---|
7277 | int
|
---|
7278 | main ()
|
---|
7279 | {
|
---|
7280 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
---|
7281 | test_array [0] = 0
|
---|
7282 |
|
---|
7283 | ;
|
---|
7284 | return 0;
|
---|
7285 | }
|
---|
7286 | _ACEOF
|
---|
7287 | rm -f conftest.$ac_objext
|
---|
7288 | if { (ac_try="$ac_compile"
|
---|
7289 | case "(($ac_try" in
|
---|
7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7291 | *) ac_try_echo=$ac_try;;
|
---|
7292 | esac
|
---|
7293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7294 | (eval "$ac_compile") 2>conftest.er1
|
---|
7295 | ac_status=$?
|
---|
7296 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7297 | rm -f conftest.er1
|
---|
7298 | cat conftest.err >&5
|
---|
7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7300 | (exit $ac_status); } && {
|
---|
7301 | test -z "$ac_c_werror_flag" ||
|
---|
7302 | test ! -s conftest.err
|
---|
7303 | } && test -s conftest.$ac_objext; then
|
---|
7304 | ac_lo=$ac_mid; break
|
---|
7305 | else
|
---|
7306 | echo "$as_me: failed program was:" >&5
|
---|
7307 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7308 |
|
---|
7309 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
7310 | if test $ac_mid -le $ac_hi; then
|
---|
7311 | ac_lo= ac_hi=
|
---|
7312 | break
|
---|
7313 | fi
|
---|
7314 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
7315 | fi
|
---|
7316 |
|
---|
7317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7318 | done
|
---|
7319 | else
|
---|
7320 | echo "$as_me: failed program was:" >&5
|
---|
7321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7322 |
|
---|
7323 | ac_lo= ac_hi=
|
---|
7324 | fi
|
---|
7325 |
|
---|
7326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7327 | fi
|
---|
7328 |
|
---|
7329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7330 | # Binary search between lo and hi bounds.
|
---|
7331 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
7332 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
7333 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7334 | /* confdefs.h. */
|
---|
7335 | _ACEOF
|
---|
7336 | cat confdefs.h >>conftest.$ac_ext
|
---|
7337 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7338 | /* end confdefs.h. */
|
---|
7339 | $ac_includes_default
|
---|
7340 | typedef unsigned char * ac__type_sizeof_;
|
---|
7341 | int
|
---|
7342 | main ()
|
---|
7343 | {
|
---|
7344 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
7345 | test_array [0] = 0
|
---|
7346 |
|
---|
7347 | ;
|
---|
7348 | return 0;
|
---|
7349 | }
|
---|
7350 | _ACEOF
|
---|
7351 | rm -f conftest.$ac_objext
|
---|
7352 | if { (ac_try="$ac_compile"
|
---|
7353 | case "(($ac_try" in
|
---|
7354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7355 | *) ac_try_echo=$ac_try;;
|
---|
7356 | esac
|
---|
7357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7358 | (eval "$ac_compile") 2>conftest.er1
|
---|
7359 | ac_status=$?
|
---|
7360 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7361 | rm -f conftest.er1
|
---|
7362 | cat conftest.err >&5
|
---|
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7364 | (exit $ac_status); } && {
|
---|
7365 | test -z "$ac_c_werror_flag" ||
|
---|
7366 | test ! -s conftest.err
|
---|
7367 | } && test -s conftest.$ac_objext; then
|
---|
7368 | ac_hi=$ac_mid
|
---|
7369 | else
|
---|
7370 | echo "$as_me: failed program was:" >&5
|
---|
7371 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7372 |
|
---|
7373 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
7374 | fi
|
---|
7375 |
|
---|
7376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7377 | done
|
---|
7378 | case $ac_lo in
|
---|
7379 | ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
|
---|
7380 | '') if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
7381 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
|
---|
7382 | See \`config.log' for more details." >&5
|
---|
7383 | echo "$as_me: error: cannot compute sizeof (unsigned char *)
|
---|
7384 | See \`config.log' for more details." >&2;}
|
---|
7385 | { (exit 77); exit 77; }; }
|
---|
7386 | else
|
---|
7387 | ac_cv_sizeof_unsigned_char_p=0
|
---|
7388 | fi ;;
|
---|
7389 | esac
|
---|
7390 | else
|
---|
7391 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7392 | /* confdefs.h. */
|
---|
7393 | _ACEOF
|
---|
7394 | cat confdefs.h >>conftest.$ac_ext
|
---|
7395 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7396 | /* end confdefs.h. */
|
---|
7397 | $ac_includes_default
|
---|
7398 | typedef unsigned char * ac__type_sizeof_;
|
---|
7399 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
7400 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
7401 | #include <stdio.h>
|
---|
7402 | #include <stdlib.h>
|
---|
7403 | int
|
---|
7404 | main ()
|
---|
7405 | {
|
---|
7406 |
|
---|
7407 | FILE *f = fopen ("conftest.val", "w");
|
---|
7408 | if (! f)
|
---|
7409 | return 1;
|
---|
7410 | if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
---|
7411 | {
|
---|
7412 | long int i = longval ();
|
---|
7413 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
7414 | return 1;
|
---|
7415 | fprintf (f, "%ld\n", i);
|
---|
7416 | }
|
---|
7417 | else
|
---|
7418 | {
|
---|
7419 | unsigned long int i = ulongval ();
|
---|
7420 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
7421 | return 1;
|
---|
7422 | fprintf (f, "%lu\n", i);
|
---|
7423 | }
|
---|
7424 | return ferror (f) || fclose (f) != 0;
|
---|
7425 |
|
---|
7426 | ;
|
---|
7427 | return 0;
|
---|
7428 | }
|
---|
7429 | _ACEOF
|
---|
7430 | rm -f conftest$ac_exeext
|
---|
7431 | if { (ac_try="$ac_link"
|
---|
7432 | case "(($ac_try" in
|
---|
7433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7434 | *) ac_try_echo=$ac_try;;
|
---|
7435 | esac
|
---|
7436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7437 | (eval "$ac_link") 2>&5
|
---|
7438 | ac_status=$?
|
---|
7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7441 | { (case "(($ac_try" in
|
---|
7442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7443 | *) ac_try_echo=$ac_try;;
|
---|
7444 | esac
|
---|
7445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7446 | (eval "$ac_try") 2>&5
|
---|
7447 | ac_status=$?
|
---|
7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7449 | (exit $ac_status); }; }; then
|
---|
7450 | ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
|
---|
7451 | else
|
---|
7452 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7453 | echo "$as_me: failed program was:" >&5
|
---|
7454 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7455 |
|
---|
7456 | ( exit $ac_status )
|
---|
7457 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
7458 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
|
---|
7459 | See \`config.log' for more details." >&5
|
---|
7460 | echo "$as_me: error: cannot compute sizeof (unsigned char *)
|
---|
7461 | See \`config.log' for more details." >&2;}
|
---|
7462 | { (exit 77); exit 77; }; }
|
---|
7463 | else
|
---|
7464 | ac_cv_sizeof_unsigned_char_p=0
|
---|
7465 | fi
|
---|
7466 | fi
|
---|
7467 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7468 | fi
|
---|
7469 | rm -f conftest.val
|
---|
7470 | fi
|
---|
7471 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
7472 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
7473 |
|
---|
7474 |
|
---|
7475 |
|
---|
7476 | cat >>confdefs.h <<_ACEOF
|
---|
7477 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
7478 | _ACEOF
|
---|
7479 |
|
---|
7480 |
|
---|
7481 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
7482 | then
|
---|
7483 | { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
|
---|
7484 | find a local rx library and the one included with this
|
---|
7485 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
7486 | echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
7487 | find a local rx library and the one included with this
|
---|
7488 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
7489 | case " $LIBOBJS " in
|
---|
7490 | *" regex.$ac_objext "* ) ;;
|
---|
7491 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
7492 | ;;
|
---|
7493 | esac
|
---|
7494 |
|
---|
7495 | else
|
---|
7496 | case " $LIBOBJS " in
|
---|
7497 | *" rx.$ac_objext "* ) ;;
|
---|
7498 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
7499 | ;;
|
---|
7500 | esac
|
---|
7501 |
|
---|
7502 | fi
|
---|
7503 |
|
---|
7504 | fi
|
---|
7505 |
|
---|
7506 | fi
|
---|
7507 |
|
---|
7508 | { echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
|
---|
7509 | echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6; }
|
---|
7510 |
|
---|
7511 | # Check whether --with-gnu_readline was given.
|
---|
7512 | if test "${with_gnu_readline+set}" = set; then
|
---|
7513 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
7514 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7515 | echo "${ECHO_T}yes" >&6; }
|
---|
7516 | ac_with_gnu_readline=1
|
---|
7517 | else
|
---|
7518 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7519 | echo "${ECHO_T}no" >&6; }
|
---|
7520 | fi
|
---|
7521 | else
|
---|
7522 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7523 | echo "${ECHO_T}no" >&6; }
|
---|
7524 | fi
|
---|
7525 |
|
---|
7526 |
|
---|
7527 | if test -n "$ac_with_gnu_readline"; then
|
---|
7528 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
7529 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
7530 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
|
---|
7531 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
7532 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7533 | fi
|
---|
7534 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
7535 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
|
---|
7536 | else
|
---|
7537 | # Is the header compilable?
|
---|
7538 | { echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
|
---|
7539 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
|
---|
7540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7541 | /* confdefs.h. */
|
---|
7542 | _ACEOF
|
---|
7543 | cat confdefs.h >>conftest.$ac_ext
|
---|
7544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7545 | /* end confdefs.h. */
|
---|
7546 | $ac_includes_default
|
---|
7547 | #include <readline/readline.h>
|
---|
7548 | _ACEOF
|
---|
7549 | rm -f conftest.$ac_objext
|
---|
7550 | if { (ac_try="$ac_compile"
|
---|
7551 | case "(($ac_try" in
|
---|
7552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7553 | *) ac_try_echo=$ac_try;;
|
---|
7554 | esac
|
---|
7555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7556 | (eval "$ac_compile") 2>conftest.er1
|
---|
7557 | ac_status=$?
|
---|
7558 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7559 | rm -f conftest.er1
|
---|
7560 | cat conftest.err >&5
|
---|
7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7562 | (exit $ac_status); } && {
|
---|
7563 | test -z "$ac_c_werror_flag" ||
|
---|
7564 | test ! -s conftest.err
|
---|
7565 | } && test -s conftest.$ac_objext; then
|
---|
7566 | ac_header_compiler=yes
|
---|
7567 | else
|
---|
7568 | echo "$as_me: failed program was:" >&5
|
---|
7569 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7570 |
|
---|
7571 | ac_header_compiler=no
|
---|
7572 | fi
|
---|
7573 |
|
---|
7574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7575 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7576 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
7577 |
|
---|
7578 | # Is the header present?
|
---|
7579 | { echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
|
---|
7580 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
|
---|
7581 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7582 | /* confdefs.h. */
|
---|
7583 | _ACEOF
|
---|
7584 | cat confdefs.h >>conftest.$ac_ext
|
---|
7585 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7586 | /* end confdefs.h. */
|
---|
7587 | #include <readline/readline.h>
|
---|
7588 | _ACEOF
|
---|
7589 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
7590 | case "(($ac_try" in
|
---|
7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7592 | *) ac_try_echo=$ac_try;;
|
---|
7593 | esac
|
---|
7594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
7596 | ac_status=$?
|
---|
7597 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7598 | rm -f conftest.er1
|
---|
7599 | cat conftest.err >&5
|
---|
7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7601 | (exit $ac_status); } >/dev/null && {
|
---|
7602 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
7603 | test ! -s conftest.err
|
---|
7604 | }; then
|
---|
7605 | ac_header_preproc=yes
|
---|
7606 | else
|
---|
7607 | echo "$as_me: failed program was:" >&5
|
---|
7608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7609 |
|
---|
7610 | ac_header_preproc=no
|
---|
7611 | fi
|
---|
7612 |
|
---|
7613 | rm -f conftest.err conftest.$ac_ext
|
---|
7614 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7615 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
7616 |
|
---|
7617 | # So? What about this header?
|
---|
7618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7619 | yes:no: )
|
---|
7620 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7621 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7622 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
|
---|
7623 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
|
---|
7624 | ac_header_preproc=yes
|
---|
7625 | ;;
|
---|
7626 | no:yes:* )
|
---|
7627 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
|
---|
7628 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
|
---|
7629 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
|
---|
7630 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
|
---|
7631 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
|
---|
7632 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
|
---|
7633 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7634 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7635 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
|
---|
7636 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
|
---|
7637 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
|
---|
7638 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
|
---|
7639 |
|
---|
7640 | ;;
|
---|
7641 | esac
|
---|
7642 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
7643 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
|
---|
7644 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
7645 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7646 | else
|
---|
7647 | ac_cv_header_readline_readline_h=$ac_header_preproc
|
---|
7648 | fi
|
---|
7649 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
7650 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
|
---|
7651 |
|
---|
7652 | fi
|
---|
7653 | if test $ac_cv_header_readline_readline_h = yes; then
|
---|
7654 | ac_mg_readline_header_found=1
|
---|
7655 | else
|
---|
7656 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
|
---|
7657 | GNU readline support" >&5
|
---|
7658 | echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
7659 | GNU readline support" >&2;}
|
---|
7660 | fi
|
---|
7661 |
|
---|
7662 |
|
---|
7663 | if test -n "$ac_mg_readline_header_found"; then
|
---|
7664 | # first check whether we can find the readline library itself
|
---|
7665 | { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
|
---|
7666 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
|
---|
7667 | if test "${ac_cv_lib_readline_main+set}" = set; then
|
---|
7668 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7669 | else
|
---|
7670 | ac_check_lib_save_LIBS=$LIBS
|
---|
7671 | LIBS="-lreadline $LIBS"
|
---|
7672 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7673 | /* confdefs.h. */
|
---|
7674 | _ACEOF
|
---|
7675 | cat confdefs.h >>conftest.$ac_ext
|
---|
7676 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7677 | /* end confdefs.h. */
|
---|
7678 |
|
---|
7679 |
|
---|
7680 | int
|
---|
7681 | main ()
|
---|
7682 | {
|
---|
7683 | return main ();
|
---|
7684 | ;
|
---|
7685 | return 0;
|
---|
7686 | }
|
---|
7687 | _ACEOF
|
---|
7688 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7689 | if { (ac_try="$ac_link"
|
---|
7690 | case "(($ac_try" in
|
---|
7691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7692 | *) ac_try_echo=$ac_try;;
|
---|
7693 | esac
|
---|
7694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7695 | (eval "$ac_link") 2>conftest.er1
|
---|
7696 | ac_status=$?
|
---|
7697 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7698 | rm -f conftest.er1
|
---|
7699 | cat conftest.err >&5
|
---|
7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7701 | (exit $ac_status); } && {
|
---|
7702 | test -z "$ac_c_werror_flag" ||
|
---|
7703 | test ! -s conftest.err
|
---|
7704 | } && test -s conftest$ac_exeext &&
|
---|
7705 | $as_test_x conftest$ac_exeext; then
|
---|
7706 | ac_cv_lib_readline_main=yes
|
---|
7707 | else
|
---|
7708 | echo "$as_me: failed program was:" >&5
|
---|
7709 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7710 |
|
---|
7711 | ac_cv_lib_readline_main=no
|
---|
7712 | fi
|
---|
7713 |
|
---|
7714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7715 | conftest$ac_exeext conftest.$ac_ext
|
---|
7716 | LIBS=$ac_check_lib_save_LIBS
|
---|
7717 | fi
|
---|
7718 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
|
---|
7719 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
|
---|
7720 | if test $ac_cv_lib_readline_main = yes; then
|
---|
7721 | ac_mg_readline_lib_found=1
|
---|
7722 | cat >>confdefs.h <<\_ACEOF
|
---|
7723 | #define WITH_GNU_READLINE 1
|
---|
7724 | _ACEOF
|
---|
7725 |
|
---|
7726 | LIBS="$LIBS -lreadline"
|
---|
7727 | else
|
---|
7728 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
|
---|
7729 | GNU readline support" >&5
|
---|
7730 | echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
7731 | GNU readline support" >&2;}
|
---|
7732 | fi
|
---|
7733 |
|
---|
7734 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
7735 | # on some systems, readline needs curses. It is difficult to
|
---|
7736 | # determine whether this is necessary on the current system,
|
---|
7737 | # since other undefined symbols can be turned up by an
|
---|
7738 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
7739 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
7740 | # we just bung it on and hope for the best.
|
---|
7741 | { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
|
---|
7742 | echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
|
---|
7743 | if test "${ac_cv_lib_curses_main+set}" = set; then
|
---|
7744 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7745 | else
|
---|
7746 | ac_check_lib_save_LIBS=$LIBS
|
---|
7747 | LIBS="-lcurses $LIBS"
|
---|
7748 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7749 | /* confdefs.h. */
|
---|
7750 | _ACEOF
|
---|
7751 | cat confdefs.h >>conftest.$ac_ext
|
---|
7752 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7753 | /* end confdefs.h. */
|
---|
7754 |
|
---|
7755 |
|
---|
7756 | int
|
---|
7757 | main ()
|
---|
7758 | {
|
---|
7759 | return main ();
|
---|
7760 | ;
|
---|
7761 | return 0;
|
---|
7762 | }
|
---|
7763 | _ACEOF
|
---|
7764 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7765 | if { (ac_try="$ac_link"
|
---|
7766 | case "(($ac_try" in
|
---|
7767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7768 | *) ac_try_echo=$ac_try;;
|
---|
7769 | esac
|
---|
7770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7771 | (eval "$ac_link") 2>conftest.er1
|
---|
7772 | ac_status=$?
|
---|
7773 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7774 | rm -f conftest.er1
|
---|
7775 | cat conftest.err >&5
|
---|
7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7777 | (exit $ac_status); } && {
|
---|
7778 | test -z "$ac_c_werror_flag" ||
|
---|
7779 | test ! -s conftest.err
|
---|
7780 | } && test -s conftest$ac_exeext &&
|
---|
7781 | $as_test_x conftest$ac_exeext; then
|
---|
7782 | ac_cv_lib_curses_main=yes
|
---|
7783 | else
|
---|
7784 | echo "$as_me: failed program was:" >&5
|
---|
7785 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7786 |
|
---|
7787 | ac_cv_lib_curses_main=no
|
---|
7788 | fi
|
---|
7789 |
|
---|
7790 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7791 | conftest$ac_exeext conftest.$ac_ext
|
---|
7792 | LIBS=$ac_check_lib_save_LIBS
|
---|
7793 | fi
|
---|
7794 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
|
---|
7795 | echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
|
---|
7796 | if test $ac_cv_lib_curses_main = yes; then
|
---|
7797 | LIBS="$LIBS -lcurses"
|
---|
7798 | fi
|
---|
7799 |
|
---|
7800 | fi
|
---|
7801 | fi
|
---|
7802 | fi
|
---|
7803 |
|
---|
7804 |
|
---|
7805 | # text for endianness
|
---|
7806 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
7807 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
7808 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
7809 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7810 | else
|
---|
7811 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
7812 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7813 | /* confdefs.h. */
|
---|
7814 | _ACEOF
|
---|
7815 | cat confdefs.h >>conftest.$ac_ext
|
---|
7816 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7817 | /* end confdefs.h. */
|
---|
7818 | #include <sys/types.h>
|
---|
7819 | #include <sys/param.h>
|
---|
7820 |
|
---|
7821 | int
|
---|
7822 | main ()
|
---|
7823 | {
|
---|
7824 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
7825 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
7826 | bogus endian macros
|
---|
7827 | #endif
|
---|
7828 |
|
---|
7829 | ;
|
---|
7830 | return 0;
|
---|
7831 | }
|
---|
7832 | _ACEOF
|
---|
7833 | rm -f conftest.$ac_objext
|
---|
7834 | if { (ac_try="$ac_compile"
|
---|
7835 | case "(($ac_try" in
|
---|
7836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7837 | *) ac_try_echo=$ac_try;;
|
---|
7838 | esac
|
---|
7839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7840 | (eval "$ac_compile") 2>conftest.er1
|
---|
7841 | ac_status=$?
|
---|
7842 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7843 | rm -f conftest.er1
|
---|
7844 | cat conftest.err >&5
|
---|
7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7846 | (exit $ac_status); } && {
|
---|
7847 | test -z "$ac_c_werror_flag" ||
|
---|
7848 | test ! -s conftest.err
|
---|
7849 | } && test -s conftest.$ac_objext; then
|
---|
7850 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7851 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7852 | /* confdefs.h. */
|
---|
7853 | _ACEOF
|
---|
7854 | cat confdefs.h >>conftest.$ac_ext
|
---|
7855 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7856 | /* end confdefs.h. */
|
---|
7857 | #include <sys/types.h>
|
---|
7858 | #include <sys/param.h>
|
---|
7859 |
|
---|
7860 | int
|
---|
7861 | main ()
|
---|
7862 | {
|
---|
7863 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7864 | not big endian
|
---|
7865 | #endif
|
---|
7866 |
|
---|
7867 | ;
|
---|
7868 | return 0;
|
---|
7869 | }
|
---|
7870 | _ACEOF
|
---|
7871 | rm -f conftest.$ac_objext
|
---|
7872 | if { (ac_try="$ac_compile"
|
---|
7873 | case "(($ac_try" in
|
---|
7874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7875 | *) ac_try_echo=$ac_try;;
|
---|
7876 | esac
|
---|
7877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7878 | (eval "$ac_compile") 2>conftest.er1
|
---|
7879 | ac_status=$?
|
---|
7880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7881 | rm -f conftest.er1
|
---|
7882 | cat conftest.err >&5
|
---|
7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7884 | (exit $ac_status); } && {
|
---|
7885 | test -z "$ac_c_werror_flag" ||
|
---|
7886 | test ! -s conftest.err
|
---|
7887 | } && test -s conftest.$ac_objext; then
|
---|
7888 | ac_cv_c_bigendian=yes
|
---|
7889 | else
|
---|
7890 | echo "$as_me: failed program was:" >&5
|
---|
7891 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7892 |
|
---|
7893 | ac_cv_c_bigendian=no
|
---|
7894 | fi
|
---|
7895 |
|
---|
7896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7897 | else
|
---|
7898 | echo "$as_me: failed program was:" >&5
|
---|
7899 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7900 |
|
---|
7901 | # It does not; compile a test program.
|
---|
7902 | if test "$cross_compiling" = yes; then
|
---|
7903 | # try to guess the endianness by grepping values into an object file
|
---|
7904 | ac_cv_c_bigendian=unknown
|
---|
7905 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7906 | /* confdefs.h. */
|
---|
7907 | _ACEOF
|
---|
7908 | cat confdefs.h >>conftest.$ac_ext
|
---|
7909 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7910 | /* end confdefs.h. */
|
---|
7911 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7912 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7913 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7914 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7915 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7916 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7917 | int
|
---|
7918 | main ()
|
---|
7919 | {
|
---|
7920 | _ascii (); _ebcdic ();
|
---|
7921 | ;
|
---|
7922 | return 0;
|
---|
7923 | }
|
---|
7924 | _ACEOF
|
---|
7925 | rm -f conftest.$ac_objext
|
---|
7926 | if { (ac_try="$ac_compile"
|
---|
7927 | case "(($ac_try" in
|
---|
7928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7929 | *) ac_try_echo=$ac_try;;
|
---|
7930 | esac
|
---|
7931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7932 | (eval "$ac_compile") 2>conftest.er1
|
---|
7933 | ac_status=$?
|
---|
7934 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7935 | rm -f conftest.er1
|
---|
7936 | cat conftest.err >&5
|
---|
7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7938 | (exit $ac_status); } && {
|
---|
7939 | test -z "$ac_c_werror_flag" ||
|
---|
7940 | test ! -s conftest.err
|
---|
7941 | } && test -s conftest.$ac_objext; then
|
---|
7942 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7943 | ac_cv_c_bigendian=yes
|
---|
7944 | fi
|
---|
7945 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7946 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7947 | ac_cv_c_bigendian=no
|
---|
7948 | else
|
---|
7949 | # finding both strings is unlikely to happen, but who knows?
|
---|
7950 | ac_cv_c_bigendian=unknown
|
---|
7951 | fi
|
---|
7952 | fi
|
---|
7953 | else
|
---|
7954 | echo "$as_me: failed program was:" >&5
|
---|
7955 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7956 |
|
---|
7957 |
|
---|
7958 | fi
|
---|
7959 |
|
---|
7960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7961 | else
|
---|
7962 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7963 | /* confdefs.h. */
|
---|
7964 | _ACEOF
|
---|
7965 | cat confdefs.h >>conftest.$ac_ext
|
---|
7966 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7967 | /* end confdefs.h. */
|
---|
7968 | $ac_includes_default
|
---|
7969 | int
|
---|
7970 | main ()
|
---|
7971 | {
|
---|
7972 |
|
---|
7973 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7974 | union
|
---|
7975 | {
|
---|
7976 | long int l;
|
---|
7977 | char c[sizeof (long int)];
|
---|
7978 | } u;
|
---|
7979 | u.l = 1;
|
---|
7980 | return u.c[sizeof (long int) - 1] == 1;
|
---|
7981 |
|
---|
7982 | ;
|
---|
7983 | return 0;
|
---|
7984 | }
|
---|
7985 | _ACEOF
|
---|
7986 | rm -f conftest$ac_exeext
|
---|
7987 | if { (ac_try="$ac_link"
|
---|
7988 | case "(($ac_try" in
|
---|
7989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7990 | *) ac_try_echo=$ac_try;;
|
---|
7991 | esac
|
---|
7992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7993 | (eval "$ac_link") 2>&5
|
---|
7994 | ac_status=$?
|
---|
7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7996 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7997 | { (case "(($ac_try" in
|
---|
7998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7999 | *) ac_try_echo=$ac_try;;
|
---|
8000 | esac
|
---|
8001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8002 | (eval "$ac_try") 2>&5
|
---|
8003 | ac_status=$?
|
---|
8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8005 | (exit $ac_status); }; }; then
|
---|
8006 | ac_cv_c_bigendian=no
|
---|
8007 | else
|
---|
8008 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8009 | echo "$as_me: failed program was:" >&5
|
---|
8010 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8011 |
|
---|
8012 | ( exit $ac_status )
|
---|
8013 | ac_cv_c_bigendian=yes
|
---|
8014 | fi
|
---|
8015 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8016 | fi
|
---|
8017 |
|
---|
8018 |
|
---|
8019 | fi
|
---|
8020 |
|
---|
8021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8022 | fi
|
---|
8023 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
8024 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
8025 | case $ac_cv_c_bigendian in
|
---|
8026 | yes)
|
---|
8027 |
|
---|
8028 | cat >>confdefs.h <<\_ACEOF
|
---|
8029 | #define WORDS_BIGENDIAN 1
|
---|
8030 | _ACEOF
|
---|
8031 | ;;
|
---|
8032 | no)
|
---|
8033 | ;;
|
---|
8034 | *)
|
---|
8035 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
8036 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
8037 | echo "$as_me: error: unknown endianness
|
---|
8038 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
8039 | { (exit 1); exit 1; }; } ;;
|
---|
8040 | esac
|
---|
8041 |
|
---|
8042 |
|
---|
8043 | # ---------------------------------------------------------------------------
|
---|
8044 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
8045 | case " $LIBOBJS " in
|
---|
8046 | *" xmalloc.$ac_objext "* ) ;;
|
---|
8047 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
8048 | ;;
|
---|
8049 | esac
|
---|
8050 |
|
---|
8051 | case " $LIBOBJS " in
|
---|
8052 | *" error.$ac_objext "* ) ;;
|
---|
8053 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
8054 | ;;
|
---|
8055 | esac
|
---|
8056 |
|
---|
8057 | fi
|
---|
8058 |
|
---|
8059 |
|
---|
8060 | # ---------------------------------------------------------------------------
|
---|
8061 | # see if the user wants to override use of long long
|
---|
8062 | # Check whether --enable-override-longlong was given.
|
---|
8063 | if test "${enable_override_longlong+set}" = set; then
|
---|
8064 | enableval=$enable_override_longlong; cat >>confdefs.h <<\_ACEOF
|
---|
8065 | #define DISABLE_LONG_LONG 1
|
---|
8066 | _ACEOF
|
---|
8067 |
|
---|
8068 | fi
|
---|
8069 |
|
---|
8070 |
|
---|
8071 |
|
---|
8072 | # ---------------------------------------------------------------------------
|
---|
8073 |
|
---|
8074 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
8075 |
|
---|
8076 | ac_config_commands="$ac_config_commands default"
|
---|
8077 |
|
---|
8078 | cat >confcache <<\_ACEOF
|
---|
8079 | # This file is a shell script that caches the results of configure
|
---|
8080 | # tests run on this system so they can be shared between configure
|
---|
8081 | # scripts and configure runs, see configure's option --config-cache.
|
---|
8082 | # It is not useful on other systems. If it contains results you don't
|
---|
8083 | # want to keep, you may remove or edit it.
|
---|
8084 | #
|
---|
8085 | # config.status only pays attention to the cache file if you give it
|
---|
8086 | # the --recheck option to rerun configure.
|
---|
8087 | #
|
---|
8088 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
8089 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
8090 | # following values.
|
---|
8091 |
|
---|
8092 | _ACEOF
|
---|
8093 |
|
---|
8094 | # The following way of writing the cache mishandles newlines in values,
|
---|
8095 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
8096 | # So, we kill variables containing newlines.
|
---|
8097 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
8098 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
8099 | (
|
---|
8100 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
8101 | eval ac_val=\$$ac_var
|
---|
8102 | case $ac_val in #(
|
---|
8103 | *${as_nl}*)
|
---|
8104 | case $ac_var in #(
|
---|
8105 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
8106 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
8107 | esac
|
---|
8108 | case $ac_var in #(
|
---|
8109 | _ | IFS | as_nl) ;; #(
|
---|
8110 | *) $as_unset $ac_var ;;
|
---|
8111 | esac ;;
|
---|
8112 | esac
|
---|
8113 | done
|
---|
8114 |
|
---|
8115 | (set) 2>&1 |
|
---|
8116 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
8117 | *${as_nl}ac_space=\ *)
|
---|
8118 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
8119 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
8120 | sed -n \
|
---|
8121 | "s/'/'\\\\''/g;
|
---|
8122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
8123 | ;; #(
|
---|
8124 | *)
|
---|
8125 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
8126 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
8127 | ;;
|
---|
8128 | esac |
|
---|
8129 | sort
|
---|
8130 | ) |
|
---|
8131 | sed '
|
---|
8132 | /^ac_cv_env_/b end
|
---|
8133 | t clear
|
---|
8134 | :clear
|
---|
8135 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
8136 | t end
|
---|
8137 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
8138 | :end' >>confcache
|
---|
8139 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
8140 | if test -w "$cache_file"; then
|
---|
8141 | test "x$cache_file" != "x/dev/null" &&
|
---|
8142 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
8143 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
8144 | cat confcache >$cache_file
|
---|
8145 | else
|
---|
8146 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
8147 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
8148 | fi
|
---|
8149 | fi
|
---|
8150 | rm -f confcache
|
---|
8151 |
|
---|
8152 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
8153 | # Let make expand exec_prefix.
|
---|
8154 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
8155 |
|
---|
8156 | DEFS=-DHAVE_CONFIG_H
|
---|
8157 |
|
---|
8158 | ac_libobjs=
|
---|
8159 | ac_ltlibobjs=
|
---|
8160 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
8161 | # 1. Remove the extension, and $U if already installed.
|
---|
8162 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
8163 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
8164 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
8165 | # will be set to the directory where LIBOBJS objects are built.
|
---|
8166 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
8167 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
8168 | done
|
---|
8169 | LIBOBJS=$ac_libobjs
|
---|
8170 |
|
---|
8171 | LTLIBOBJS=$ac_ltlibobjs
|
---|
8172 |
|
---|
8173 |
|
---|
8174 |
|
---|
8175 | : ${CONFIG_STATUS=./config.status}
|
---|
8176 | ac_clean_files_save=$ac_clean_files
|
---|
8177 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
8178 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
8179 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
8180 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
8181 | #! $SHELL
|
---|
8182 | # Generated by $as_me.
|
---|
8183 | # Run this file to recreate the current configuration.
|
---|
8184 | # Compiler output produced by configure, useful for debugging
|
---|
8185 | # configure, is in config.log if it exists.
|
---|
8186 |
|
---|
8187 | debug=false
|
---|
8188 | ac_cs_recheck=false
|
---|
8189 | ac_cs_silent=false
|
---|
8190 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
8191 | _ACEOF
|
---|
8192 |
|
---|
8193 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8194 | ## --------------------- ##
|
---|
8195 | ## M4sh Initialization. ##
|
---|
8196 | ## --------------------- ##
|
---|
8197 |
|
---|
8198 | # Be more Bourne compatible
|
---|
8199 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
8200 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
8201 | emulate sh
|
---|
8202 | NULLCMD=:
|
---|
8203 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
8204 | # is contrary to our usage. Disable this feature.
|
---|
8205 | alias -g '${1+"$@"}'='"$@"'
|
---|
8206 | setopt NO_GLOB_SUBST
|
---|
8207 | else
|
---|
8208 | case `(set -o) 2>/dev/null` in
|
---|
8209 | *posix*) set -o posix ;;
|
---|
8210 | esac
|
---|
8211 |
|
---|
8212 | fi
|
---|
8213 |
|
---|
8214 |
|
---|
8215 |
|
---|
8216 |
|
---|
8217 | # PATH needs CR
|
---|
8218 | # Avoid depending upon Character Ranges.
|
---|
8219 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
8220 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
8221 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
8222 | as_cr_digits='0123456789'
|
---|
8223 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
8224 |
|
---|
8225 | # The user is always right.
|
---|
8226 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
8227 | echo "#! /bin/sh" >conf$$.sh
|
---|
8228 | echo "exit 0" >>conf$$.sh
|
---|
8229 | chmod +x conf$$.sh
|
---|
8230 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
8231 | PATH_SEPARATOR=';'
|
---|
8232 | else
|
---|
8233 | PATH_SEPARATOR=:
|
---|
8234 | fi
|
---|
8235 | rm -f conf$$.sh
|
---|
8236 | fi
|
---|
8237 |
|
---|
8238 | # Support unset when possible.
|
---|
8239 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
8240 | as_unset=unset
|
---|
8241 | else
|
---|
8242 | as_unset=false
|
---|
8243 | fi
|
---|
8244 |
|
---|
8245 |
|
---|
8246 | # IFS
|
---|
8247 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
8248 | # there to prevent editors from complaining about space-tab.
|
---|
8249 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
8250 | # splitting by setting IFS to empty value.)
|
---|
8251 | as_nl='
|
---|
8252 | '
|
---|
8253 | IFS=" "" $as_nl"
|
---|
8254 |
|
---|
8255 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
8256 | case $0 in
|
---|
8257 | *[\\/]* ) as_myself=$0 ;;
|
---|
8258 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8259 | for as_dir in $PATH
|
---|
8260 | do
|
---|
8261 | IFS=$as_save_IFS
|
---|
8262 | test -z "$as_dir" && as_dir=.
|
---|
8263 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
8264 | done
|
---|
8265 | IFS=$as_save_IFS
|
---|
8266 |
|
---|
8267 | ;;
|
---|
8268 | esac
|
---|
8269 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
8270 | # in which case we are not to be found in the path.
|
---|
8271 | if test "x$as_myself" = x; then
|
---|
8272 | as_myself=$0
|
---|
8273 | fi
|
---|
8274 | if test ! -f "$as_myself"; then
|
---|
8275 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
8276 | { (exit 1); exit 1; }
|
---|
8277 | fi
|
---|
8278 |
|
---|
8279 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
8280 | for as_var in ENV MAIL MAILPATH
|
---|
8281 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
8282 | done
|
---|
8283 | PS1='$ '
|
---|
8284 | PS2='> '
|
---|
8285 | PS4='+ '
|
---|
8286 |
|
---|
8287 | # NLS nuisances.
|
---|
8288 | for as_var in \
|
---|
8289 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
8290 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
8291 | LC_TELEPHONE LC_TIME
|
---|
8292 | do
|
---|
8293 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
8294 | eval $as_var=C; export $as_var
|
---|
8295 | else
|
---|
8296 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
8297 | fi
|
---|
8298 | done
|
---|
8299 |
|
---|
8300 | # Required to use basename.
|
---|
8301 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
8302 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
8303 | as_expr=expr
|
---|
8304 | else
|
---|
8305 | as_expr=false
|
---|
8306 | fi
|
---|
8307 |
|
---|
8308 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
8309 | as_basename=basename
|
---|
8310 | else
|
---|
8311 | as_basename=false
|
---|
8312 | fi
|
---|
8313 |
|
---|
8314 |
|
---|
8315 | # Name of the executable.
|
---|
8316 | as_me=`$as_basename -- "$0" ||
|
---|
8317 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
8318 | X"$0" : 'X\(//\)$' \| \
|
---|
8319 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8320 | echo X/"$0" |
|
---|
8321 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
8322 | s//\1/
|
---|
8323 | q
|
---|
8324 | }
|
---|
8325 | /^X\/\(\/\/\)$/{
|
---|
8326 | s//\1/
|
---|
8327 | q
|
---|
8328 | }
|
---|
8329 | /^X\/\(\/\).*/{
|
---|
8330 | s//\1/
|
---|
8331 | q
|
---|
8332 | }
|
---|
8333 | s/.*/./; q'`
|
---|
8334 |
|
---|
8335 | # CDPATH.
|
---|
8336 | $as_unset CDPATH
|
---|
8337 |
|
---|
8338 |
|
---|
8339 |
|
---|
8340 | as_lineno_1=$LINENO
|
---|
8341 | as_lineno_2=$LINENO
|
---|
8342 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
8343 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
8344 |
|
---|
8345 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
8346 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
8347 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
8348 | # does the real work. The second script uses 'N' to pair each
|
---|
8349 | # line-number line with the line containing $LINENO, and appends
|
---|
8350 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
8351 | # case at line end.
|
---|
8352 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
8353 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
8354 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
8355 | sed -n '
|
---|
8356 | p
|
---|
8357 | /[$]LINENO/=
|
---|
8358 | ' <$as_myself |
|
---|
8359 | sed '
|
---|
8360 | s/[$]LINENO.*/&-/
|
---|
8361 | t lineno
|
---|
8362 | b
|
---|
8363 | :lineno
|
---|
8364 | N
|
---|
8365 | :loop
|
---|
8366 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
8367 | t loop
|
---|
8368 | s/-\n.*//
|
---|
8369 | ' >$as_me.lineno &&
|
---|
8370 | chmod +x "$as_me.lineno" ||
|
---|
8371 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
8372 | { (exit 1); exit 1; }; }
|
---|
8373 |
|
---|
8374 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
8375 | # (the dirname of $[0] is not the place where we might find the
|
---|
8376 | # original and so on. Autoconf is especially sensitive to this).
|
---|
8377 | . "./$as_me.lineno"
|
---|
8378 | # Exit status is that of the last command.
|
---|
8379 | exit
|
---|
8380 | }
|
---|
8381 |
|
---|
8382 |
|
---|
8383 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
8384 | as_dirname=dirname
|
---|
8385 | else
|
---|
8386 | as_dirname=false
|
---|
8387 | fi
|
---|
8388 |
|
---|
8389 | ECHO_C= ECHO_N= ECHO_T=
|
---|
8390 | case `echo -n x` in
|
---|
8391 | -n*)
|
---|
8392 | case `echo 'x\c'` in
|
---|
8393 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
8394 | *) ECHO_C='\c';;
|
---|
8395 | esac;;
|
---|
8396 | *)
|
---|
8397 | ECHO_N='-n';;
|
---|
8398 | esac
|
---|
8399 |
|
---|
8400 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
8401 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
8402 | as_expr=expr
|
---|
8403 | else
|
---|
8404 | as_expr=false
|
---|
8405 | fi
|
---|
8406 |
|
---|
8407 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
8408 | if test -d conf$$.dir; then
|
---|
8409 | rm -f conf$$.dir/conf$$.file
|
---|
8410 | else
|
---|
8411 | rm -f conf$$.dir
|
---|
8412 | mkdir conf$$.dir
|
---|
8413 | fi
|
---|
8414 | echo >conf$$.file
|
---|
8415 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
8416 | as_ln_s='ln -s'
|
---|
8417 | # ... but there are two gotchas:
|
---|
8418 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
8419 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
8420 | # In both cases, we have to default to `cp -p'.
|
---|
8421 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
8422 | as_ln_s='cp -p'
|
---|
8423 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
8424 | as_ln_s=ln
|
---|
8425 | else
|
---|
8426 | as_ln_s='cp -p'
|
---|
8427 | fi
|
---|
8428 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
8429 | rmdir conf$$.dir 2>/dev/null
|
---|
8430 |
|
---|
8431 | if mkdir -p . 2>/dev/null; then
|
---|
8432 | as_mkdir_p=:
|
---|
8433 | else
|
---|
8434 | test -d ./-p && rmdir ./-p
|
---|
8435 | as_mkdir_p=false
|
---|
8436 | fi
|
---|
8437 |
|
---|
8438 | if test -x / >/dev/null 2>&1; then
|
---|
8439 | as_test_x='test -x'
|
---|
8440 | else
|
---|
8441 | if ls -dL / >/dev/null 2>&1; then
|
---|
8442 | as_ls_L_option=L
|
---|
8443 | else
|
---|
8444 | as_ls_L_option=
|
---|
8445 | fi
|
---|
8446 | as_test_x='
|
---|
8447 | eval sh -c '\''
|
---|
8448 | if test -d "$1"; then
|
---|
8449 | test -d "$1/.";
|
---|
8450 | else
|
---|
8451 | case $1 in
|
---|
8452 | -*)set "./$1";;
|
---|
8453 | esac;
|
---|
8454 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
8455 | ???[sx]*):;;*)false;;esac;fi
|
---|
8456 | '\'' sh
|
---|
8457 | '
|
---|
8458 | fi
|
---|
8459 | as_executable_p=$as_test_x
|
---|
8460 |
|
---|
8461 | # Sed expression to map a string onto a valid CPP name.
|
---|
8462 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8463 |
|
---|
8464 | # Sed expression to map a string onto a valid variable name.
|
---|
8465 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8466 |
|
---|
8467 |
|
---|
8468 | exec 6>&1
|
---|
8469 |
|
---|
8470 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
8471 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
8472 | # values after options handling.
|
---|
8473 | ac_log="
|
---|
8474 | This file was extended by $as_me, which was
|
---|
8475 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
8476 |
|
---|
8477 | CONFIG_FILES = $CONFIG_FILES
|
---|
8478 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
8479 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
8480 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
8481 | $ $0 $@
|
---|
8482 |
|
---|
8483 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
8484 | "
|
---|
8485 |
|
---|
8486 | _ACEOF
|
---|
8487 |
|
---|
8488 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8489 | # Files that config.status was made for.
|
---|
8490 | config_files="$ac_config_files"
|
---|
8491 | config_headers="$ac_config_headers"
|
---|
8492 | config_commands="$ac_config_commands"
|
---|
8493 |
|
---|
8494 | _ACEOF
|
---|
8495 |
|
---|
8496 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8497 | ac_cs_usage="\
|
---|
8498 | \`$as_me' instantiates files from templates according to the
|
---|
8499 | current configuration.
|
---|
8500 |
|
---|
8501 | Usage: $0 [OPTIONS] [FILE]...
|
---|
8502 |
|
---|
8503 | -h, --help print this help, then exit
|
---|
8504 | -V, --version print version number and configuration settings, then exit
|
---|
8505 | -q, --quiet do not print progress messages
|
---|
8506 | -d, --debug don't remove temporary files
|
---|
8507 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
8508 | --file=FILE[:TEMPLATE]
|
---|
8509 | instantiate the configuration file FILE
|
---|
8510 | --header=FILE[:TEMPLATE]
|
---|
8511 | instantiate the configuration header FILE
|
---|
8512 |
|
---|
8513 | Configuration files:
|
---|
8514 | $config_files
|
---|
8515 |
|
---|
8516 | Configuration headers:
|
---|
8517 | $config_headers
|
---|
8518 |
|
---|
8519 | Configuration commands:
|
---|
8520 | $config_commands
|
---|
8521 |
|
---|
8522 | Report bugs to <[email protected]>."
|
---|
8523 |
|
---|
8524 | _ACEOF
|
---|
8525 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8526 | ac_cs_version="\\
|
---|
8527 | config.status
|
---|
8528 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
8529 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
8530 |
|
---|
8531 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
8532 | This config.status script is free software; the Free Software Foundation
|
---|
8533 | gives unlimited permission to copy, distribute and modify it."
|
---|
8534 |
|
---|
8535 | ac_pwd='$ac_pwd'
|
---|
8536 | srcdir='$srcdir'
|
---|
8537 | INSTALL='$INSTALL'
|
---|
8538 | _ACEOF
|
---|
8539 |
|
---|
8540 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8541 | # If no file are specified by the user, then we need to provide default
|
---|
8542 | # value. By we need to know if files were specified by the user.
|
---|
8543 | ac_need_defaults=:
|
---|
8544 | while test $# != 0
|
---|
8545 | do
|
---|
8546 | case $1 in
|
---|
8547 | --*=*)
|
---|
8548 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8549 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
8550 | ac_shift=:
|
---|
8551 | ;;
|
---|
8552 | *)
|
---|
8553 | ac_option=$1
|
---|
8554 | ac_optarg=$2
|
---|
8555 | ac_shift=shift
|
---|
8556 | ;;
|
---|
8557 | esac
|
---|
8558 |
|
---|
8559 | case $ac_option in
|
---|
8560 | # Handling of the options.
|
---|
8561 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
8562 | ac_cs_recheck=: ;;
|
---|
8563 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
8564 | echo "$ac_cs_version"; exit ;;
|
---|
8565 | --debug | --debu | --deb | --de | --d | -d )
|
---|
8566 | debug=: ;;
|
---|
8567 | --file | --fil | --fi | --f )
|
---|
8568 | $ac_shift
|
---|
8569 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
8570 | ac_need_defaults=false;;
|
---|
8571 | --header | --heade | --head | --hea )
|
---|
8572 | $ac_shift
|
---|
8573 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
8574 | ac_need_defaults=false;;
|
---|
8575 | --he | --h)
|
---|
8576 | # Conflict between --help and --header
|
---|
8577 | { echo "$as_me: error: ambiguous option: $1
|
---|
8578 | Try \`$0 --help' for more information." >&2
|
---|
8579 | { (exit 1); exit 1; }; };;
|
---|
8580 | --help | --hel | -h )
|
---|
8581 | echo "$ac_cs_usage"; exit ;;
|
---|
8582 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
8583 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
8584 | ac_cs_silent=: ;;
|
---|
8585 |
|
---|
8586 | # This is an error.
|
---|
8587 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
8588 | Try \`$0 --help' for more information." >&2
|
---|
8589 | { (exit 1); exit 1; }; } ;;
|
---|
8590 |
|
---|
8591 | *) ac_config_targets="$ac_config_targets $1"
|
---|
8592 | ac_need_defaults=false ;;
|
---|
8593 |
|
---|
8594 | esac
|
---|
8595 | shift
|
---|
8596 | done
|
---|
8597 |
|
---|
8598 | ac_configure_extra_args=
|
---|
8599 |
|
---|
8600 | if $ac_cs_silent; then
|
---|
8601 | exec 6>/dev/null
|
---|
8602 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
8603 | fi
|
---|
8604 |
|
---|
8605 | _ACEOF
|
---|
8606 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8607 | if \$ac_cs_recheck; then
|
---|
8608 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
8609 | CONFIG_SHELL=$SHELL
|
---|
8610 | export CONFIG_SHELL
|
---|
8611 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
8612 | fi
|
---|
8613 |
|
---|
8614 | _ACEOF
|
---|
8615 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8616 | exec 5>>config.log
|
---|
8617 | {
|
---|
8618 | echo
|
---|
8619 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
8620 | ## Running $as_me. ##
|
---|
8621 | _ASBOX
|
---|
8622 | echo "$ac_log"
|
---|
8623 | } >&5
|
---|
8624 |
|
---|
8625 | _ACEOF
|
---|
8626 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8627 | _ACEOF
|
---|
8628 |
|
---|
8629 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8630 |
|
---|
8631 | # Handling of arguments.
|
---|
8632 | for ac_config_target in $ac_config_targets
|
---|
8633 | do
|
---|
8634 | case $ac_config_target in
|
---|
8635 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
8636 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
8637 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
8638 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
8639 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
8640 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
8641 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
8642 |
|
---|
8643 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
8644 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
8645 | { (exit 1); exit 1; }; };;
|
---|
8646 | esac
|
---|
8647 | done
|
---|
8648 |
|
---|
8649 |
|
---|
8650 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
8651 | # then the envvar interface is used. Set only those that are not.
|
---|
8652 | # We use the long form for the default assignment because of an extremely
|
---|
8653 | # bizarre bug on SunOS 4.1.3.
|
---|
8654 | if $ac_need_defaults; then
|
---|
8655 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
8656 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
8657 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
8658 | fi
|
---|
8659 |
|
---|
8660 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
8661 | # simply because there is no reason against having it here, and in addition,
|
---|
8662 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
8663 | # Hook for its removal unless debugging.
|
---|
8664 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
8665 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
8666 | $debug ||
|
---|
8667 | {
|
---|
8668 | tmp=
|
---|
8669 | trap 'exit_status=$?
|
---|
8670 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
8671 | ' 0
|
---|
8672 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
8673 | }
|
---|
8674 | # Create a (secure) tmp directory for tmp files.
|
---|
8675 |
|
---|
8676 | {
|
---|
8677 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
8678 | test -n "$tmp" && test -d "$tmp"
|
---|
8679 | } ||
|
---|
8680 | {
|
---|
8681 | tmp=./conf$$-$RANDOM
|
---|
8682 | (umask 077 && mkdir "$tmp")
|
---|
8683 | } ||
|
---|
8684 | {
|
---|
8685 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
8686 | { (exit 1); exit 1; }
|
---|
8687 | }
|
---|
8688 |
|
---|
8689 | #
|
---|
8690 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
8691 | #
|
---|
8692 |
|
---|
8693 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
8694 | # This happens for instance when ./config.status config.h
|
---|
8695 | if test -n "$CONFIG_FILES"; then
|
---|
8696 |
|
---|
8697 | _ACEOF
|
---|
8698 |
|
---|
8699 |
|
---|
8700 |
|
---|
8701 | ac_delim='%!_!# '
|
---|
8702 | for ac_last_try in false false false false false :; do
|
---|
8703 | cat >conf$$subs.sed <<_ACEOF
|
---|
8704 | SHELL!$SHELL$ac_delim
|
---|
8705 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
8706 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
8707 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
8708 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
8709 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
8710 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
8711 | exec_prefix!$exec_prefix$ac_delim
|
---|
8712 | prefix!$prefix$ac_delim
|
---|
8713 | program_transform_name!$program_transform_name$ac_delim
|
---|
8714 | bindir!$bindir$ac_delim
|
---|
8715 | sbindir!$sbindir$ac_delim
|
---|
8716 | libexecdir!$libexecdir$ac_delim
|
---|
8717 | datarootdir!$datarootdir$ac_delim
|
---|
8718 | datadir!$datadir$ac_delim
|
---|
8719 | sysconfdir!$sysconfdir$ac_delim
|
---|
8720 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
8721 | localstatedir!$localstatedir$ac_delim
|
---|
8722 | includedir!$includedir$ac_delim
|
---|
8723 | oldincludedir!$oldincludedir$ac_delim
|
---|
8724 | docdir!$docdir$ac_delim
|
---|
8725 | infodir!$infodir$ac_delim
|
---|
8726 | htmldir!$htmldir$ac_delim
|
---|
8727 | dvidir!$dvidir$ac_delim
|
---|
8728 | pdfdir!$pdfdir$ac_delim
|
---|
8729 | psdir!$psdir$ac_delim
|
---|
8730 | libdir!$libdir$ac_delim
|
---|
8731 | localedir!$localedir$ac_delim
|
---|
8732 | mandir!$mandir$ac_delim
|
---|
8733 | DEFS!$DEFS$ac_delim
|
---|
8734 | ECHO_C!$ECHO_C$ac_delim
|
---|
8735 | ECHO_N!$ECHO_N$ac_delim
|
---|
8736 | ECHO_T!$ECHO_T$ac_delim
|
---|
8737 | LIBS!$LIBS$ac_delim
|
---|
8738 | build_alias!$build_alias$ac_delim
|
---|
8739 | host_alias!$host_alias$ac_delim
|
---|
8740 | target_alias!$target_alias$ac_delim
|
---|
8741 | build!$build$ac_delim
|
---|
8742 | build_cpu!$build_cpu$ac_delim
|
---|
8743 | build_vendor!$build_vendor$ac_delim
|
---|
8744 | build_os!$build_os$ac_delim
|
---|
8745 | host!$host$ac_delim
|
---|
8746 | host_cpu!$host_cpu$ac_delim
|
---|
8747 | host_vendor!$host_vendor$ac_delim
|
---|
8748 | host_os!$host_os$ac_delim
|
---|
8749 | target!$target$ac_delim
|
---|
8750 | target_cpu!$target_cpu$ac_delim
|
---|
8751 | target_vendor!$target_vendor$ac_delim
|
---|
8752 | target_os!$target_os$ac_delim
|
---|
8753 | PACKAGE!$PACKAGE$ac_delim
|
---|
8754 | VERSION!$VERSION$ac_delim
|
---|
8755 | COMPAT32BITFLAGS!$COMPAT32BITFLAGS$ac_delim
|
---|
8756 | ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
|
---|
8757 | CXX!$CXX$ac_delim
|
---|
8758 | CXXFLAGS!$CXXFLAGS$ac_delim
|
---|
8759 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
8760 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
8761 | ac_ct_CXX!$ac_ct_CXX$ac_delim
|
---|
8762 | EXEEXT!$EXEEXT$ac_delim
|
---|
8763 | OBJEXT!$OBJEXT$ac_delim
|
---|
8764 | AWK!$AWK$ac_delim
|
---|
8765 | YACC!$YACC$ac_delim
|
---|
8766 | YFLAGS!$YFLAGS$ac_delim
|
---|
8767 | CC!$CC$ac_delim
|
---|
8768 | CFLAGS!$CFLAGS$ac_delim
|
---|
8769 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
8770 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
8771 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
8772 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
8773 | LN_S!$LN_S$ac_delim
|
---|
8774 | SET_MAKE!$SET_MAKE$ac_delim
|
---|
8775 | RANLIB!$RANLIB$ac_delim
|
---|
8776 | CPP!$CPP$ac_delim
|
---|
8777 | GREP!$GREP$ac_delim
|
---|
8778 | EGREP!$EGREP$ac_delim
|
---|
8779 | U!$U$ac_delim
|
---|
8780 | ANSI2KNR!$ANSI2KNR$ac_delim
|
---|
8781 | UNAC_DIR!$UNAC_DIR$ac_delim
|
---|
8782 | ALLOCA!$ALLOCA$ac_delim
|
---|
8783 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
8784 | JNIINC!$JNIINC$ac_delim
|
---|
8785 | JNISUFFIX!$JNISUFFIX$ac_delim
|
---|
8786 | JNIFLAGS!$JNIFLAGS$ac_delim
|
---|
8787 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
8788 | _ACEOF
|
---|
8789 |
|
---|
8790 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
|
---|
8791 | break
|
---|
8792 | elif $ac_last_try; then
|
---|
8793 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
8794 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
8795 | { (exit 1); exit 1; }; }
|
---|
8796 | else
|
---|
8797 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
8798 | fi
|
---|
8799 | done
|
---|
8800 |
|
---|
8801 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
8802 | if test -n "$ac_eof"; then
|
---|
8803 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
8804 | ac_eof=`expr $ac_eof + 1`
|
---|
8805 | fi
|
---|
8806 |
|
---|
8807 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8808 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
8809 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
8810 | _ACEOF
|
---|
8811 | sed '
|
---|
8812 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
8813 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
8814 | :n
|
---|
8815 | t n
|
---|
8816 | s/'"$ac_delim"'$/,g/; t
|
---|
8817 | s/$/\\/; p
|
---|
8818 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
8819 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
8820 | rm -f conf$$subs.sed
|
---|
8821 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8822 | :end
|
---|
8823 | s/|#_!!_#|//g
|
---|
8824 | CEOF$ac_eof
|
---|
8825 | _ACEOF
|
---|
8826 |
|
---|
8827 |
|
---|
8828 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
8829 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
8830 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
8831 | # (actually we leave an empty line to preserve line numbers).
|
---|
8832 | if test "x$srcdir" = x.; then
|
---|
8833 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
8834 | s/:*\$(srcdir):*/:/
|
---|
8835 | s/:*\${srcdir}:*/:/
|
---|
8836 | s/:*@srcdir@:*/:/
|
---|
8837 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
8838 | s/:*$//
|
---|
8839 | s/^[^=]*=[ ]*$//
|
---|
8840 | }'
|
---|
8841 | fi
|
---|
8842 |
|
---|
8843 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8844 | fi # test -n "$CONFIG_FILES"
|
---|
8845 |
|
---|
8846 |
|
---|
8847 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
|
---|
8848 | do
|
---|
8849 | case $ac_tag in
|
---|
8850 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
8851 | esac
|
---|
8852 | case $ac_mode$ac_tag in
|
---|
8853 | :[FHL]*:*);;
|
---|
8854 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
8855 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
8856 | { (exit 1); exit 1; }; };;
|
---|
8857 | :[FH]-) ac_tag=-:-;;
|
---|
8858 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
8859 | esac
|
---|
8860 | ac_save_IFS=$IFS
|
---|
8861 | IFS=:
|
---|
8862 | set x $ac_tag
|
---|
8863 | IFS=$ac_save_IFS
|
---|
8864 | shift
|
---|
8865 | ac_file=$1
|
---|
8866 | shift
|
---|
8867 |
|
---|
8868 | case $ac_mode in
|
---|
8869 | :L) ac_source=$1;;
|
---|
8870 | :[FH])
|
---|
8871 | ac_file_inputs=
|
---|
8872 | for ac_f
|
---|
8873 | do
|
---|
8874 | case $ac_f in
|
---|
8875 | -) ac_f="$tmp/stdin";;
|
---|
8876 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8877 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8878 | # because $ac_f cannot contain `:'.
|
---|
8879 | test -f "$ac_f" ||
|
---|
8880 | case $ac_f in
|
---|
8881 | [\\/$]*) false;;
|
---|
8882 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8883 | esac ||
|
---|
8884 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
8885 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
8886 | { (exit 1); exit 1; }; };;
|
---|
8887 | esac
|
---|
8888 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
8889 | done
|
---|
8890 |
|
---|
8891 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8892 | # use $as_me), people would be surprised to read:
|
---|
8893 | # /* config.h. Generated by config.status. */
|
---|
8894 | configure_input="Generated from "`IFS=:
|
---|
8895 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
8896 | if test x"$ac_file" != x-; then
|
---|
8897 | configure_input="$ac_file. $configure_input"
|
---|
8898 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8899 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8900 | fi
|
---|
8901 |
|
---|
8902 | case $ac_tag in
|
---|
8903 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
8904 | esac
|
---|
8905 | ;;
|
---|
8906 | esac
|
---|
8907 |
|
---|
8908 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8909 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8910 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8911 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8912 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8913 | echo X"$ac_file" |
|
---|
8914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8915 | s//\1/
|
---|
8916 | q
|
---|
8917 | }
|
---|
8918 | /^X\(\/\/\)[^/].*/{
|
---|
8919 | s//\1/
|
---|
8920 | q
|
---|
8921 | }
|
---|
8922 | /^X\(\/\/\)$/{
|
---|
8923 | s//\1/
|
---|
8924 | q
|
---|
8925 | }
|
---|
8926 | /^X\(\/\).*/{
|
---|
8927 | s//\1/
|
---|
8928 | q
|
---|
8929 | }
|
---|
8930 | s/.*/./; q'`
|
---|
8931 | { as_dir="$ac_dir"
|
---|
8932 | case $as_dir in #(
|
---|
8933 | -*) as_dir=./$as_dir;;
|
---|
8934 | esac
|
---|
8935 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
8936 | as_dirs=
|
---|
8937 | while :; do
|
---|
8938 | case $as_dir in #(
|
---|
8939 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
8940 | *) as_qdir=$as_dir;;
|
---|
8941 | esac
|
---|
8942 | as_dirs="'$as_qdir' $as_dirs"
|
---|
8943 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
8944 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8945 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8946 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8947 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8948 | echo X"$as_dir" |
|
---|
8949 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8950 | s//\1/
|
---|
8951 | q
|
---|
8952 | }
|
---|
8953 | /^X\(\/\/\)[^/].*/{
|
---|
8954 | s//\1/
|
---|
8955 | q
|
---|
8956 | }
|
---|
8957 | /^X\(\/\/\)$/{
|
---|
8958 | s//\1/
|
---|
8959 | q
|
---|
8960 | }
|
---|
8961 | /^X\(\/\).*/{
|
---|
8962 | s//\1/
|
---|
8963 | q
|
---|
8964 | }
|
---|
8965 | s/.*/./; q'`
|
---|
8966 | test -d "$as_dir" && break
|
---|
8967 | done
|
---|
8968 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
8969 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
8970 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
8971 | { (exit 1); exit 1; }; }; }
|
---|
8972 | ac_builddir=.
|
---|
8973 |
|
---|
8974 | case "$ac_dir" in
|
---|
8975 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8976 | *)
|
---|
8977 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8978 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8979 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
8980 | case $ac_top_builddir_sub in
|
---|
8981 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8982 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8983 | esac ;;
|
---|
8984 | esac
|
---|
8985 | ac_abs_top_builddir=$ac_pwd
|
---|
8986 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8987 | # for backward compatibility:
|
---|
8988 | ac_top_builddir=$ac_top_build_prefix
|
---|
8989 |
|
---|
8990 | case $srcdir in
|
---|
8991 | .) # We are building in place.
|
---|
8992 | ac_srcdir=.
|
---|
8993 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8994 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8995 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8996 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8997 | ac_top_srcdir=$srcdir
|
---|
8998 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8999 | *) # Relative name.
|
---|
9000 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
9001 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
9002 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
9003 | esac
|
---|
9004 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
9005 |
|
---|
9006 |
|
---|
9007 | case $ac_mode in
|
---|
9008 | :F)
|
---|
9009 | #
|
---|
9010 | # CONFIG_FILE
|
---|
9011 | #
|
---|
9012 |
|
---|
9013 | case $INSTALL in
|
---|
9014 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
9015 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
9016 | esac
|
---|
9017 | _ACEOF
|
---|
9018 |
|
---|
9019 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
9020 | # If the template does not know about datarootdir, expand it.
|
---|
9021 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
9022 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
9023 |
|
---|
9024 | case `sed -n '/datarootdir/ {
|
---|
9025 | p
|
---|
9026 | q
|
---|
9027 | }
|
---|
9028 | /@datadir@/p
|
---|
9029 | /@docdir@/p
|
---|
9030 | /@infodir@/p
|
---|
9031 | /@localedir@/p
|
---|
9032 | /@mandir@/p
|
---|
9033 | ' $ac_file_inputs` in
|
---|
9034 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
9035 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
9036 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
9037 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
9038 | _ACEOF
|
---|
9039 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
9040 | ac_datarootdir_hack='
|
---|
9041 | s&@datadir@&$datadir&g
|
---|
9042 | s&@docdir@&$docdir&g
|
---|
9043 | s&@infodir@&$infodir&g
|
---|
9044 | s&@localedir@&$localedir&g
|
---|
9045 | s&@mandir@&$mandir&g
|
---|
9046 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
9047 | esac
|
---|
9048 | _ACEOF
|
---|
9049 |
|
---|
9050 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
9051 | # Shell code in configure.ac might set extrasub.
|
---|
9052 | # FIXME: do we really want to maintain this feature?
|
---|
9053 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
9054 | sed "$ac_vpsub
|
---|
9055 | $extrasub
|
---|
9056 | _ACEOF
|
---|
9057 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
9058 | :t
|
---|
9059 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
9060 | s&@configure_input@&$configure_input&;t t
|
---|
9061 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
9062 | s&@srcdir@&$ac_srcdir&;t t
|
---|
9063 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
9064 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
9065 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
9066 | s&@builddir@&$ac_builddir&;t t
|
---|
9067 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
9068 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
9069 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
9070 | $ac_datarootdir_hack
|
---|
9071 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
|
---|
9072 |
|
---|
9073 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
9074 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
9075 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
9076 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
9077 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
9078 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
9079 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
9080 |
|
---|
9081 | rm -f "$tmp/stdin"
|
---|
9082 | case $ac_file in
|
---|
9083 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
9084 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
9085 | esac
|
---|
9086 | ;;
|
---|
9087 | :H)
|
---|
9088 | #
|
---|
9089 | # CONFIG_HEADER
|
---|
9090 | #
|
---|
9091 | _ACEOF
|
---|
9092 |
|
---|
9093 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
9094 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
9095 | rm -f conftest.defines conftest.tail
|
---|
9096 | # First, append a space to every undef/define line, to ease matching.
|
---|
9097 | echo 's/$/ /' >conftest.defines
|
---|
9098 | # Then, protect against being on the right side of a sed subst, or in
|
---|
9099 | # an unquoted here document, in config.status. If some macros were
|
---|
9100 | # called several times there might be several #defines for the same
|
---|
9101 | # symbol, which is useless. But do not sort them, since the last
|
---|
9102 | # AC_DEFINE must be honored.
|
---|
9103 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
9104 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
9105 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
9106 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
9107 | # just an empty string.
|
---|
9108 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
9109 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
9110 | ac_dC=' '
|
---|
9111 | ac_dD=' ,'
|
---|
9112 |
|
---|
9113 | uniq confdefs.h |
|
---|
9114 | sed -n '
|
---|
9115 | t rset
|
---|
9116 | :rset
|
---|
9117 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
9118 | t ok
|
---|
9119 | d
|
---|
9120 | :ok
|
---|
9121 | s/[\\&,]/\\&/g
|
---|
9122 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
9123 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
9124 | ' >>conftest.defines
|
---|
9125 |
|
---|
9126 | # Remove the space that was appended to ease matching.
|
---|
9127 | # Then replace #undef with comments. This is necessary, for
|
---|
9128 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
9129 | # on some systems where configure will not decide to define it.
|
---|
9130 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
9131 | echo 's/ $//
|
---|
9132 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
9133 |
|
---|
9134 | # Break up conftest.defines:
|
---|
9135 | ac_max_sed_lines=50
|
---|
9136 |
|
---|
9137 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
9138 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
9139 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
9140 | # et cetera.
|
---|
9141 | ac_in='$ac_file_inputs'
|
---|
9142 | ac_out='"$tmp/out1"'
|
---|
9143 | ac_nxt='"$tmp/out2"'
|
---|
9144 |
|
---|
9145 | while :
|
---|
9146 | do
|
---|
9147 | # Write a here document:
|
---|
9148 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
9149 | # First, check the format of the line:
|
---|
9150 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
9151 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
9152 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
9153 | b
|
---|
9154 | :def
|
---|
9155 | _ACEOF
|
---|
9156 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
9157 | echo 'CEOF
|
---|
9158 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
9159 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
9160 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
9161 | grep . conftest.tail >/dev/null || break
|
---|
9162 | rm -f conftest.defines
|
---|
9163 | mv conftest.tail conftest.defines
|
---|
9164 | done
|
---|
9165 | rm -f conftest.defines conftest.tail
|
---|
9166 |
|
---|
9167 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
9168 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
9169 | if test x"$ac_file" != x-; then
|
---|
9170 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
9171 | cat "$ac_result" >>"$tmp/config.h"
|
---|
9172 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
9173 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
9174 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
9175 | else
|
---|
9176 | rm -f $ac_file
|
---|
9177 | mv "$tmp/config.h" $ac_file
|
---|
9178 | fi
|
---|
9179 | else
|
---|
9180 | echo "/* $configure_input */"
|
---|
9181 | cat "$ac_result"
|
---|
9182 | fi
|
---|
9183 | rm -f "$tmp/out12"
|
---|
9184 | ;;
|
---|
9185 |
|
---|
9186 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
|
---|
9187 | echo "$as_me: executing $ac_file commands" >&6;}
|
---|
9188 | ;;
|
---|
9189 | esac
|
---|
9190 |
|
---|
9191 |
|
---|
9192 | case $ac_file$ac_mode in
|
---|
9193 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
9194 |
|
---|
9195 | esac
|
---|
9196 | done # for ac_tag
|
---|
9197 |
|
---|
9198 |
|
---|
9199 | { (exit 0); exit 0; }
|
---|
9200 | _ACEOF
|
---|
9201 | chmod +x $CONFIG_STATUS
|
---|
9202 | ac_clean_files=$ac_clean_files_save
|
---|
9203 |
|
---|
9204 |
|
---|
9205 | # configure is writing to config.log, and then calls config.status.
|
---|
9206 | # config.status does its own redirection, appending to config.log.
|
---|
9207 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
9208 | # by configure, so config.status won't be able to write to it; its
|
---|
9209 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
9210 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
9211 | # appended to by config.status. When coming back to configure, we
|
---|
9212 | # need to make the FD available again.
|
---|
9213 | if test "$no_create" != yes; then
|
---|
9214 | ac_cs_success=:
|
---|
9215 | ac_config_status_args=
|
---|
9216 | test "$silent" = yes &&
|
---|
9217 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
9218 | exec 5>/dev/null
|
---|
9219 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
9220 | exec 5>>config.log
|
---|
9221 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
9222 | # would make configure fail if this is the last instruction.
|
---|
9223 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
9224 | fi
|
---|
9225 |
|
---|